2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
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.
578 PACKAGE_NAME
='gdbsupport'
579 PACKAGE_TARNAME
='gdbsupport'
580 PACKAGE_VERSION
='1.0'
581 PACKAGE_STRING
='gdbsupport 1.0'
585 ac_unique_file
="common-defs.h"
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>
623 ac_subst_vars
='am__EXEEXT_FALSE
627 CONFIG_STATUS_DEPENDENCIES
630 HAVE_PIPE_OR_PIPE2_FALSE
631 HAVE_PIPE_OR_PIPE2_TRUE
700 INSTALL_STRIP_PROGRAM
716 MAINTAINER_MODE_FALSE
757 program_transform_name
770 enable_option_checking
771 enable_maintainer_mode
773 enable_dependency_tracking
783 with_libxxhash_prefix
787 enable_build_warnings
788 enable_gdb_build_warnings
790 ac_precious_vars
='build_alias
804 # Initialize some variables set by options.
806 ac_init_version
=false
807 ac_unrecognized_opts
=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
818 program_transform_name
=s
,x
,x
,
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir
='${exec_prefix}/bin'
833 sbindir
='${exec_prefix}/sbin'
834 libexecdir
='${exec_prefix}/libexec'
835 datarootdir
='${prefix}/share'
836 datadir
='${datarootdir}'
837 sysconfdir
='${prefix}/etc'
838 sharedstatedir
='${prefix}/com'
839 localstatedir
='${prefix}/var'
840 includedir
='${prefix}/include'
841 oldincludedir
='/usr/include'
842 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir
='${datarootdir}/info'
848 libdir
='${exec_prefix}/lib'
849 localedir
='${datarootdir}/locale'
850 mandir
='${datarootdir}/man'
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\
$ac_option
864 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
875 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
877 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
880 -build |
--build |
--buil |
--bui |
--bu)
881 ac_prev
=build_alias
;;
882 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
883 build_alias
=$ac_optarg ;;
885 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
886 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
887 ac_prev
=cache_file
;;
888 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
889 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
890 cache_file
=$ac_optarg ;;
893 cache_file
=config.cache
;;
895 -datadir |
--datadir |
--datadi |
--datad)
897 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
898 datadir
=$ac_optarg ;;
900 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
901 |
--dataroo |
--dataro |
--datar)
902 ac_prev
=datarootdir
;;
903 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
904 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
905 datarootdir
=$ac_optarg ;;
907 -disable-* |
--disable-*)
908 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
911 as_fn_error $?
"invalid feature name: $ac_useropt"
912 ac_useropt_orig
=$ac_useropt
913 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep
=', ';;
921 eval enable_
$ac_useropt=no
;;
923 -docdir |
--docdir |
--docdi |
--doc |
--do)
925 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
928 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
930 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
933 -enable-* |
--enable-*)
934 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
937 as_fn_error $?
"invalid feature name: $ac_useropt"
938 ac_useropt_orig
=$ac_useropt
939 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep
=', ';;
947 eval enable_
$ac_useropt=\
$ac_optarg ;;
949 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
950 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
951 |
--exec |
--exe |
--ex)
952 ac_prev
=exec_prefix
;;
953 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
954 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
955 |
--exec=* |
--exe=* |
--ex=*)
956 exec_prefix
=$ac_optarg ;;
958 -gas |
--gas |
--ga |
--g)
959 # Obsolete; use --with-gas.
962 -help |
--help |
--hel |
--he |
-h)
964 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
965 ac_init_help
=recursive
;;
966 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
967 ac_init_help
=short
;;
969 -host |
--host |
--hos |
--ho)
970 ac_prev
=host_alias
;;
971 -host=* |
--host=* |
--hos=* |
--ho=*)
972 host_alias
=$ac_optarg ;;
974 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
976 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
978 htmldir
=$ac_optarg ;;
980 -includedir |
--includedir |
--includedi |
--included |
--include \
981 |
--includ |
--inclu |
--incl |
--inc)
982 ac_prev
=includedir
;;
983 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
984 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
985 includedir
=$ac_optarg ;;
987 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
989 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
990 infodir
=$ac_optarg ;;
992 -libdir |
--libdir |
--libdi |
--libd)
994 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
997 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
998 |
--libexe |
--libex |
--libe)
999 ac_prev
=libexecdir
;;
1000 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1001 |
--libexe=* |
--libex=* |
--libe=*)
1002 libexecdir
=$ac_optarg ;;
1004 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1005 ac_prev
=localedir
;;
1006 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1007 localedir
=$ac_optarg ;;
1009 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1010 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1011 ac_prev
=localstatedir
;;
1012 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1013 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1014 localstatedir
=$ac_optarg ;;
1016 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1018 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1019 mandir
=$ac_optarg ;;
1021 -nfp |
--nfp |
--nf)
1022 # Obsolete; use --without-fp.
1025 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1026 |
--no-cr |
--no-c |
-n)
1029 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1030 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1033 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1034 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1035 |
--oldin |
--oldi |
--old |
--ol |
--o)
1036 ac_prev
=oldincludedir
;;
1037 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1038 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1039 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1040 oldincludedir
=$ac_optarg ;;
1042 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1044 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1045 prefix
=$ac_optarg ;;
1047 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1048 |
--program-pre |
--program-pr |
--program-p)
1049 ac_prev
=program_prefix
;;
1050 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1051 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1052 program_prefix
=$ac_optarg ;;
1054 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1055 |
--program-suf |
--program-su |
--program-s)
1056 ac_prev
=program_suffix
;;
1057 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1058 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1059 program_suffix
=$ac_optarg ;;
1061 -program-transform-name |
--program-transform-name \
1062 |
--program-transform-nam |
--program-transform-na \
1063 |
--program-transform-n |
--program-transform- \
1064 |
--program-transform |
--program-transfor \
1065 |
--program-transfo |
--program-transf \
1066 |
--program-trans |
--program-tran \
1067 |
--progr-tra |
--program-tr |
--program-t)
1068 ac_prev
=program_transform_name
;;
1069 -program-transform-name=* |
--program-transform-name=* \
1070 |
--program-transform-nam=* |
--program-transform-na=* \
1071 |
--program-transform-n=* |
--program-transform-=* \
1072 |
--program-transform=* |
--program-transfor=* \
1073 |
--program-transfo=* |
--program-transf=* \
1074 |
--program-trans=* |
--program-tran=* \
1075 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1076 program_transform_name
=$ac_optarg ;;
1078 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1080 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1081 pdfdir
=$ac_optarg ;;
1083 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1085 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1088 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1089 |
-silent |
--silent |
--silen |
--sile |
--sil)
1092 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1094 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1096 sbindir
=$ac_optarg ;;
1098 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1099 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1100 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1102 ac_prev
=sharedstatedir
;;
1103 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1104 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1105 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1107 sharedstatedir
=$ac_optarg ;;
1109 -site |
--site |
--sit)
1111 -site=* |
--site=* |
--sit=*)
1114 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1116 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1117 srcdir
=$ac_optarg ;;
1119 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1120 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1121 ac_prev
=sysconfdir
;;
1122 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1123 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1124 sysconfdir
=$ac_optarg ;;
1126 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1127 ac_prev
=target_alias
;;
1128 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1129 target_alias
=$ac_optarg ;;
1131 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1134 -version |
--version |
--versio |
--versi |
--vers |
-V)
1135 ac_init_version
=: ;;
1138 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1141 as_fn_error $?
"invalid package name: $ac_useropt"
1142 ac_useropt_orig
=$ac_useropt
1143 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep
=', ';;
1151 eval with_
$ac_useropt=\
$ac_optarg ;;
1153 -without-* |
--without-*)
1154 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1157 as_fn_error $?
"invalid package name: $ac_useropt"
1158 ac_useropt_orig
=$ac_useropt
1159 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep
=', ';;
1167 eval with_
$ac_useropt=no
;;
1170 # Obsolete; use --with-x.
1173 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1174 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1175 ac_prev
=x_includes
;;
1176 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1177 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1178 x_includes
=$ac_optarg ;;
1180 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1181 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1182 ac_prev
=x_libraries
;;
1183 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1184 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1185 x_libraries
=$ac_optarg ;;
1187 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1192 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1196 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1198 eval $ac_envvar=\
$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 if test -n "$ac_prev"; then
1213 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $?
"missing argument to $ac_option"
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1220 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 # Check all directory arguments for consistency.
1226 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1231 eval ac_val
=\$
$ac_var
1232 # Remove trailing slashes.
1235 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\
$ac_val;;
1238 # Be sure to have absolute directory names.
1240 [\\/$
]* | ?
:[\\/]* ) continue;;
1241 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1243 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1251 target
=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x
; then
1255 if test "x$build_alias" = x
; then
1256 cross_compiling
=maybe
1257 elif test "x$build_alias" != "x$host_alias"; then
1263 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1265 test "$silent" = yes && exec 6>/dev
/null
1268 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di
=`ls -di .` &&
1270 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $?
"working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $?
"pwd does not report name of working directory"
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted
=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir
=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1308 ac_srcdir_defaulted
=no
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1312 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1314 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1326 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 for ac_var
in $ac_precious_vars; do
1329 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1331 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1336 # Report the --help message.
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1342 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1349 Defaults for the options are specified in brackets.
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1373 For better control, use the options below.
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --libdir=DIR object code libraries [EPREFIX/lib]
1383 --includedir=DIR C header files [PREFIX/include]
1384 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1387 --infodir=DIR info documentation [DATAROOTDIR/info]
1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1389 --mandir=DIR man documentation [DATAROOTDIR/man]
1390 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1405 --build=BUILD configure
for building on BUILD
[guessed
]
1406 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1407 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive
) echo "Configuration of gdbsupport 1.0:";;
1418 --disable-option-checking ignore unrecognized
--enable/--with options
1419 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1420 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1421 --enable-maintainer-mode
1422 enable make rules and dependencies not useful
(and
1423 sometimes confusing
) to the casual installer
1424 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1425 --disable-silent-rules verbose build output
(undo
: "make V=0")
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --enable-plugins Enable support
for plugins
1431 --disable-largefile omit support
for large files
1432 --enable-threading include support
for parallel processing of data
1434 --disable-rpath do not hardcode runtime library paths
1435 --enable-unit-tests Enable the inclusion of unit tests when compiling
1437 --enable-werror treat compile warnings as errors
1438 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1439 --enable-gdb-build-warnings
1440 enable GDB specific build-time compiler warnings
if
1444 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1445 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1446 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1447 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1448 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1449 --without-libipt-prefix don
't search for libipt in includedir and libdir
1450 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1451 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1452 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1453 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1454 --with-libxxhash-type=TYPE
type of library to search
for (auto
/static
/shared
)
1456 Some influential environment variables
:
1457 CC C compiler
command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1460 nonstandard directory
<lib dir
>
1461 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1462 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1463 you have headers
in a nonstandard directory
<include dir
>
1464 CXX C
++ compiler
command
1465 CXXFLAGS C
++ compiler flags
1468 Use these variables to override the choices made by
`configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to the package provider.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 gdbsupport configure 1.0
1535 generated by GNU Autoconf 2.69
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1558 *) ac_try_echo
=$ac_try;;
1560 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1564 if test -s conftest.err
; then
1565 grep -v '^ *+' conftest.err
>conftest.er1
1566 cat conftest.er1
>&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.
$ac_objext; then :
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.
$ac_ext >&5
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status
$ac_retval
1584 } # ac_fn_c_try_compile
1586 # ac_fn_cxx_try_compile LINENO
1587 # ----------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_cxx_try_compile
()
1591 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1592 rm -f conftest.
$ac_objext
1593 if { { ac_try
="$ac_compile"
1595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_cxx_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1622 } # ac_fn_cxx_try_compile
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1633 *) ac_try_echo
=$ac_try;;
1635 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 if test -s conftest.err
; then
1640 grep -v '^ *+' conftest.err
>conftest.er1
1641 cat conftest.er1
>&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i
&& {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.
$ac_ext >&5
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status
$ac_retval
1661 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664 # the include files in INCLUDES and setting the cache variable VAR
1666 ac_fn_c_check_header_mongrel
()
1668 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1669 if eval \
${$3+:} false
; then :
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \
${$3+:} false
; then :
1673 $as_echo_n "(cached) " >&6
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1679 # Is the header compilable?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681 $as_echo_n "checking $2 usability... " >&6; }
1682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1687 if ac_fn_c_try_compile
"$LINENO"; then :
1688 ac_header_compiler
=yes
1690 ac_header_compiler
=no
1692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694 $as_echo "$ac_header_compiler" >&6; }
1696 # Is the header present?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698 $as_echo_n "checking $2 presence... " >&6; }
1699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1703 if ac_fn_c_try_cpp
"$LINENO"; then :
1704 ac_header_preproc
=yes
1706 ac_header_preproc
=no
1708 rm -f conftest.err conftest.i conftest.
$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710 $as_echo "$ac_header_preproc" >&6; }
1712 # So? What about this header?
1713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1724 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1728 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \
${$3+:} false
; then :
1736 $as_echo_n "(cached) " >&6
1738 eval "$3=\$ac_header_compiler"
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_header_mongrel
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1755 if { { ac_try
="$ac_link"
1757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1768 *) ac_try_echo
=$ac_try;;
1770 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.
$ac_ext >&5
1782 ac_retval
=$ac_status
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status
$ac_retval
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile
()
1796 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \
${$3+:} false
; then :
1800 $as_echo_n "(cached) " >&6
1802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1807 if ac_fn_c_try_compile
"$LINENO"; then :
1812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 } # ac_fn_c_check_header_compile
1821 # ac_fn_c_try_link LINENO
1822 # -----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded.
1826 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1827 rm -f conftest.
$ac_objext conftest
$ac_exeext
1828 if { { ac_try
="$ac_link"
1830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>conftest.err
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest$ac_exeext && {
1847 test "$cross_compiling" = yes ||
1848 test -x conftest$ac_exeext
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1859 # interfere with the next link command; also delete a directory that is
1860 # left behind by Apple's compiler. We do this before executing the actions.
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_c_try_link
1867 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1868 # -------------------------------------------
1869 # Tests whether TYPE exists after having included INCLUDES, setting cache
1870 # variable VAR accordingly.
1871 ac_fn_c_check_type ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1905 if ac_fn_c_try_compile "$LINENO"; then :
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 } # ac_fn_c_check_type
1921 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922 # --------------------------------------------
1923 # Tries to find the compile-time value of EXPR in a program that includes
1924 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1926 ac_fn_c_compute_int ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if test "$cross_compiling" = yes; then
1930 # Depending upon the size, compute the lo and hi bounds.
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1937 static int test_array [1 - 2 * !(($2) >= 0)];
1939 return test_array [0];
1945 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1954 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1956 return test_array [0];
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_hi=$ac_mid; break
1965 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1966 if test $ac_lo -le $ac_mid; then
1970 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1981 static int test_array [1 - 2 * !(($2) < 0)];
1983 return test_array [0];
1989 if ac_fn_c_try_compile "$LINENO"; then :
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1998 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2000 return test_array [0];
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_lo=$ac_mid; break
2009 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2010 if test $ac_mid -le $ac_hi; then
2014 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2035 return test_array [0];
2041 if ac_fn_c_try_compile "$LINENO"; then :
2044 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2056 static long int longval () { return $2; }
2057 static unsigned long int ulongval () { return $2; }
2064 FILE *f = fopen ("conftest.val", "w");
2069 long int i = longval ();
2072 fprintf (f, "%ld", i);
2076 unsigned long int i = ulongval ();
2079 fprintf (f, "%lu", i);
2081 /* Do not output a trailing newline, as this causes \r\n confusion
2082 on some platforms. */
2083 return ferror (f) || fclose (f) != 0;
2089 if ac_fn_c_try_run "$LINENO"; then :
2090 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2095 conftest.$ac_objext conftest.beam conftest.$ac_ext
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_c_compute_int
2104 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2105 # ---------------------------------------------
2106 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2108 ac_fn_c_check_decl ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2112 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2114 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2115 if eval \${$3+:} false; then :
2116 $as_echo_n "(cached) " >&6
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 #ifndef $as_decl_name
2126 (void) $as_decl_use;
2128 (void) $as_decl_name;
2136 if ac_fn_c_try_compile "$LINENO"; then :
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 } # ac_fn_c_check_decl
2150 # ac_fn_c_check_func LINENO FUNC VAR
2151 # ----------------------------------
2152 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2153 ac_fn_c_check_func ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2165 #define $2 innocuous_$2
2167 /* System header to define __stub macros and hopefully few prototypes,
2168 which can conflict with char $2 (); below.
2169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2170 <limits.h> exists even on freestanding compilers. */
2173 # include <limits.h>
2175 # include <assert.h>
2180 /* Override any GCC internal prototype to avoid an error.
2181 Use char because int might match the return type of a GCC
2182 builtin and then its argument prototype would still apply. */
2187 /* The GNU C library defines this for functions which it implements
2188 to always fail with ENOSYS. Some functions are actually named
2189 something starting with __ and the normal name is an alias. */
2190 #if defined __stub_$2 || defined __stub___$2
2202 if ac_fn_c_try_link "$LINENO"; then :
2207 rm -f core conftest.err conftest.$ac_objext \
2208 conftest$ac_exeext conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 } # ac_fn_c_check_func
2217 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2218 # ----------------------------------------------------
2219 # Tries to find if the field MEMBER exists in type AGGR, after including
2220 # INCLUDES, setting cache variable VAR accordingly.
2221 ac_fn_c_check_member ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2225 $as_echo_n "checking for $2.$3... " >&6; }
2226 if eval \${$4+:} false; then :
2227 $as_echo_n "(cached) " >&6
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2252 if (sizeof ac_aggr.$3)
2258 if ac_fn_c_try_compile "$LINENO"; then :
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 } # ac_fn_c_check_member
2274 # ac_fn_cxx_try_link LINENO
2275 # -------------------------
2276 # Try to link conftest.$ac_ext, and return whether this succeeded.
2277 ac_fn_cxx_try_link ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 rm -f conftest.$ac_objext conftest$ac_exeext
2281 if { { ac_try="$ac_link"
2283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2284 *) ac_try_echo
=$ac_try;;
2286 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2287 $as_echo "$ac_try_echo"; } >&5
2288 (eval "$ac_link") 2>conftest.err
2290 if test -s conftest.err
; then
2291 grep -v '^ *+' conftest.err
>conftest.er1
2292 cat conftest.er1
>&5
2293 mv -f conftest.er1 conftest.err
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && {
2297 test -z "$ac_cxx_werror_flag" ||
2298 test ! -s conftest.err
2299 } && test -s conftest
$ac_exeext && {
2300 test "$cross_compiling" = yes ||
2301 test -x conftest
$ac_exeext
2305 $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.
$ac_ext >&5
2310 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2311 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2312 # interfere with the next link command; also delete a directory that is
2313 # left behind by Apple's compiler. We do this before executing the actions.
2314 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316 as_fn_set_status
$ac_retval
2318 } # ac_fn_cxx_try_link
2320 # ac_fn_cxx_check_func LINENO FUNC VAR
2321 # ------------------------------------
2322 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2323 ac_fn_cxx_check_func
()
2325 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2327 $as_echo_n "checking for $2... " >&6; }
2328 if eval \
${$3+:} false
; then :
2329 $as_echo_n "(cached) " >&6
2331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2333 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2335 #define $2 innocuous_$2
2337 /* System header to define __stub macros and hopefully few prototypes,
2338 which can conflict with char $2 (); below.
2339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2340 <limits.h> exists even on freestanding compilers. */
2343 # include <limits.h>
2345 # include <assert.h>
2350 /* Override any GCC internal prototype to avoid an error.
2351 Use char because int might match the return type of a GCC
2352 builtin and then its argument prototype would still apply. */
2357 /* The GNU C library defines this for functions which it implements
2358 to always fail with ENOSYS. Some functions are actually named
2359 something starting with __ and the normal name is an alias. */
2360 #if defined __stub_$2 || defined __stub___$2
2372 if ac_fn_cxx_try_link
"$LINENO"; then :
2377 rm -f core conftest.err conftest.
$ac_objext \
2378 conftest
$ac_exeext conftest.
$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385 } # ac_fn_cxx_check_func
2386 cat >config.log
<<_ACEOF
2387 This file contains any messages produced by compilers while
2388 running configure, to aid debugging if configure makes a mistake.
2390 It was created by gdbsupport $as_me 1.0, which was
2391 generated by GNU Autoconf 2.69. Invocation command line was
2403 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2404 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2405 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2406 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2407 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2409 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2410 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2412 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2413 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2414 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2415 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2416 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2417 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2418 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir
=.
2427 $as_echo "PATH: $as_dir"
2443 # Keep a trace of the command line.
2444 # Strip out --no-create and --no-recursion so they do not pile up.
2445 # Strip out --silent because we don't want to record it for future runs.
2446 # Also quote any args containing shell meta-characters.
2447 # Make two passes to allow for proper duplicate-argument suppression.
2451 ac_must_keep_next
=false
2457 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2458 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2459 |
-silent |
--silent |
--silen |
--sile |
--sil)
2462 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2465 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2467 as_fn_append ac_configure_args1
" '$ac_arg'"
2468 if test $ac_must_keep_next = true
; then
2469 ac_must_keep_next
=false
# Got value, back to normal.
2472 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2473 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2474 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2475 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2476 case "$ac_configure_args0 " in
2477 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2480 -* ) ac_must_keep_next
=true
;;
2483 as_fn_append ac_configure_args
" '$ac_arg'"
2488 { ac_configure_args0
=; unset ac_configure_args0
;}
2489 { ac_configure_args1
=; unset ac_configure_args1
;}
2491 # When interrupted or exit'd, cleanup temporary files, and complete
2492 # config.log. We remove comments because anyway the quotes in there
2493 # would cause problems or look ugly.
2494 # WARNING: Use '\'' to represent an apostrophe within the trap.
2495 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2496 trap 'exit_status=$?
2497 # Save into config.log some information that might help in debugging.
2501 $as_echo "## ---------------- ##
2502 ## Cache variables. ##
2503 ## ---------------- ##"
2505 # The following way of writing the cache mishandles newlines in values,
2507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508 eval ac_val=\$$ac_var
2512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2516 _ | IFS | as_nl) ;; #(
2517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518 *) { eval $ac_var=; unset $ac_var;} ;;
2523 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524 *${as_nl}ac_space=\ *)
2526 "s/'\''/'\''\\\\'\'''\''/g;
2527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2537 $as_echo "## ----------------- ##
2538 ## Output variables. ##
2539 ## ----------------- ##"
2541 for ac_var in $ac_subst_vars
2543 eval ac_val=\$$ac_var
2545 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547 $as_echo "$ac_var='\''$ac_val'\''"
2551 if test -n "$ac_subst_files"; then
2552 $as_echo "## ------------------- ##
2553 ## File substitutions. ##
2554 ## ------------------- ##"
2556 for ac_var
in $ac_subst_files
2558 eval ac_val
=\$
$ac_var
2560 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2562 $as_echo "$ac_var='\''$ac_val'\''"
2567 if test -s confdefs.h; then
2568 $as_echo "## ----------- ##
2575 test "$ac_signal" != 0 &&
2576 $as_echo "$as_me: caught signal $ac_signal"
2577 $as_echo "$as_me: exit $exit_status"
2579 rm -f core *.core core.conftest.* &&
2580 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2583 for ac_signal
in 1 2 13 15; do
2584 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2589 rm -f -r conftest
* confdefs.h
2591 $as_echo "/* confdefs.h */" > confdefs.h
2593 # Predefined preprocessor variables.
2595 cat >>confdefs.h
<<_ACEOF
2596 #define PACKAGE_NAME "$PACKAGE_NAME"
2599 cat >>confdefs.h
<<_ACEOF
2600 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2603 cat >>confdefs.h
<<_ACEOF
2604 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2607 cat >>confdefs.h
<<_ACEOF
2608 #define PACKAGE_STRING "$PACKAGE_STRING"
2611 cat >>confdefs.h
<<_ACEOF
2612 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2615 cat >>confdefs.h
<<_ACEOF
2616 #define PACKAGE_URL "$PACKAGE_URL"
2620 # Let the site file select an alternate cache file if it wants to.
2621 # Prefer an explicitly selected file to automatically selected ones.
2624 if test -n "$CONFIG_SITE"; then
2625 # We do not want a PATH search for config.site.
2626 case $CONFIG_SITE in #((
2627 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2628 */*) ac_site_file1
=$CONFIG_SITE;;
2629 *) ac_site_file1
=.
/$CONFIG_SITE;;
2631 elif test "x$prefix" != xNONE
; then
2632 ac_site_file1
=$prefix/share
/config.site
2633 ac_site_file2
=$prefix/etc
/config.site
2635 ac_site_file1
=$ac_default_prefix/share
/config.site
2636 ac_site_file2
=$ac_default_prefix/etc
/config.site
2638 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2640 test "x$ac_site_file" = xNONE
&& continue
2641 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2643 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2644 sed 's/^/| /' "$ac_site_file" >&5
2646 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 as_fn_error $?
"failed to load site script $ac_site_file
2649 See \`config.log' for more details" "$LINENO" 5; }
2653 if test -r "$cache_file"; then
2654 # Some versions of bash will fail to source /dev/null (special files
2655 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2656 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2658 $as_echo "$as_me: loading cache $cache_file" >&6;}
2660 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2661 *) .
"./$cache_file";;
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2666 $as_echo "$as_me: creating cache $cache_file" >&6;}
2670 as_fn_append ac_header_list
" stdlib.h"
2671 as_fn_append ac_header_list
" unistd.h"
2672 as_fn_append ac_header_list
" sys/param.h"
2673 # Check that the precious variables saved in the cache have kept the same
2675 ac_cache_corrupted
=false
2676 for ac_var
in $ac_precious_vars; do
2677 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2678 eval ac_new_set
=\
$ac_env_${ac_var}_set
2679 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2680 eval ac_new_val
=\
$ac_env_${ac_var}_value
2681 case $ac_old_set,$ac_new_set in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2684 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2685 ac_cache_corrupted
=: ;;
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2688 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2689 ac_cache_corrupted
=: ;;
2692 if test "x$ac_old_val" != "x$ac_new_val"; then
2693 # differences in whitespace do not lead to failure.
2694 ac_old_val_w
=`echo x $ac_old_val`
2695 ac_new_val_w
=`echo x $ac_new_val`
2696 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2698 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2699 ac_cache_corrupted
=:
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2702 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2703 eval $ac_var=\
$ac_old_val
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2706 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2708 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2711 # Pass precious variables to config.status.
2712 if test "$ac_new_set" = set; then
2714 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2715 *) ac_arg
=$ac_var=$ac_new_val ;;
2717 case " $ac_configure_args " in
2718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2719 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2723 if $ac_cache_corrupted; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2727 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2728 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2730 ## -------------------- ##
2731 ## Main body of script. ##
2732 ## -------------------- ##
2735 ac_cpp
='$CPP $CPPFLAGS'
2736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2745 ac_config_headers
="$ac_config_headers config.h:config.in"
2748 # Set build, build_cpu, build_vendor and build_os.
2750 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2751 if test -f "$ac_dir/install-sh"; then
2753 ac_install_sh
="$ac_aux_dir/install-sh -c"
2755 elif test -f "$ac_dir/install.sh"; then
2757 ac_install_sh
="$ac_aux_dir/install.sh -c"
2759 elif test -f "$ac_dir/shtool"; then
2761 ac_install_sh
="$ac_aux_dir/shtool install -c"
2765 if test -z "$ac_aux_dir"; then
2766 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2769 # These three variables are undocumented and unsupported,
2770 # and are intended to be withdrawn in a future Autoconf release.
2771 # They can cause serious problems if a builder's source tree is in a directory
2772 # whose full name contains unusual characters.
2773 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2774 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2775 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2778 # Make sure we can run config.sub.
2779 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2780 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2783 $as_echo_n "checking build system type... " >&6; }
2784 if ${ac_cv_build+:} false
; then :
2785 $as_echo_n "(cached) " >&6
2787 ac_build_alias
=$build_alias
2788 test "x$ac_build_alias" = x
&&
2789 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2790 test "x$ac_build_alias" = x
&&
2791 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2792 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2793 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2797 $as_echo "$ac_cv_build" >&6; }
2798 case $ac_cv_build in
2800 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2803 ac_save_IFS
=$IFS; IFS
='-'
2809 # Remember, the first character of IFS is used to create $*,
2810 # except with old shells:
2813 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2817 # Set host, host_cpu, host_vendor, and host_os.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2819 $as_echo_n "checking host system type... " >&6; }
2820 if ${ac_cv_host+:} false
; then :
2821 $as_echo_n "(cached) " >&6
2823 if test "x$host_alias" = x
; then
2824 ac_cv_host
=$ac_cv_build
2826 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2827 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2832 $as_echo "$ac_cv_host" >&6; }
2835 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2838 ac_save_IFS
=$IFS; IFS
='-'
2844 # Remember, the first character of IFS is used to create $*,
2845 # except with old shells:
2848 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2852 # Set target, target_cpu, target_vendor, and target_os.
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2854 $as_echo_n "checking target system type... " >&6; }
2855 if ${ac_cv_target+:} false
; then :
2856 $as_echo_n "(cached) " >&6
2858 if test "x$target_alias" = x
; then
2859 ac_cv_target
=$ac_cv_host
2861 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2862 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2867 $as_echo "$ac_cv_target" >&6; }
2868 case $ac_cv_target in
2870 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2872 target
=$ac_cv_target
2873 ac_save_IFS
=$IFS; IFS
='-'
2879 # Remember, the first character of IFS is used to create $*,
2880 # except with old shells:
2883 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2886 # The aliases save the names the user supplied, while $host etc.
2887 # will get canonicalized.
2888 test -n "$target_alias" &&
2889 test "$program_prefix$program_suffix$program_transform_name" = \
2891 program_prefix
=${target_alias}-
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2895 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2896 # Check whether --enable-maintainer-mode was given.
2897 if test "${enable_maintainer_mode+set}" = set; then :
2898 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2900 USE_MAINTAINER_MODE
=no
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2904 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2905 if test $USE_MAINTAINER_MODE = yes; then
2906 MAINTAINER_MODE_TRUE
=
2907 MAINTAINER_MODE_FALSE
='#'
2909 MAINTAINER_MODE_TRUE
='#'
2910 MAINTAINER_MODE_FALSE
=
2913 MAINT
=$MAINTAINER_MODE_TRUE
2917 for ac_dir
in ..
"$srcdir"/..
; do
2918 if test -f "$ac_dir/install-sh"; then
2920 ac_install_sh
="$ac_aux_dir/install-sh -c"
2922 elif test -f "$ac_dir/install.sh"; then
2924 ac_install_sh
="$ac_aux_dir/install.sh -c"
2926 elif test -f "$ac_dir/shtool"; then
2928 ac_install_sh
="$ac_aux_dir/shtool install -c"
2932 if test -z "$ac_aux_dir"; then
2933 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2936 # These three variables are undocumented and unsupported,
2937 # and are intended to be withdrawn in a future Autoconf release.
2938 # They can cause serious problems if a builder's source tree is in a directory
2939 # whose full name contains unusual characters.
2940 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2941 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2942 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2945 am__api_version
='1.15'
2947 # Find a good install program. We prefer a C program (faster),
2948 # so one script is as good as another. But avoid the broken or
2949 # incompatible versions:
2950 # SysV /etc/install, /usr/sbin/install
2951 # SunOS /usr/etc/install
2952 # IRIX /sbin/install
2954 # AmigaOS /C/install, which installs bootblocks on floppy discs
2955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2958 # OS/2's system install, which has a completely different semantic
2959 # ./install, which can be erroneously created by make from ./install.sh.
2960 # Reject install programs that cannot install multiple files.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2963 if test -z "$INSTALL"; then
2964 if ${ac_cv_path_install+:} false
; then :
2965 $as_echo_n "(cached) " >&6
2967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir
=.
2972 # Account for people who put trailing slashes in PATH elements.
2973 case $as_dir/ in #((
2974 .
/ | .
// |
/[cC
]/* | \
2975 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2976 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2979 # OSF1 and SCO ODT 3.0 have their own names for install.
2980 # Don't use installbsd from OSF since it installs stuff as root
2982 for ac_prog
in ginstall scoinst
install; do
2983 for ac_exec_ext
in '' $ac_executable_extensions; do
2984 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2985 if test $ac_prog = install &&
2986 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2987 # AIX install. It has an incompatible calling convention.
2989 elif test $ac_prog = install &&
2990 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2991 # program-specific install script used by HP pwplus--don't use.
2994 rm -rf conftest.one conftest.two conftest.dir
2995 echo one
> conftest.one
2996 echo two
> conftest.two
2998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2999 test -s conftest.one
&& test -s conftest.two
&&
3000 test -s conftest.dir
/conftest.one
&&
3001 test -s conftest.dir
/conftest.two
3003 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3016 rm -rf conftest.one conftest.two conftest.dir
3019 if test "${ac_cv_path_install+set}" = set; then
3020 INSTALL
=$ac_cv_path_install
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for INSTALL within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 INSTALL
=$ac_install_sh
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 $as_echo "$INSTALL" >&6; }
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3038 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3041 $as_echo_n "checking whether build environment is sane... " >&6; }
3042 # Reject unsafe characters in $srcdir or the absolute working directory
3043 # name. Accept space and tab only in the latter.
3047 *[\\\"\
#\$\&\'\`$am_lf]*)
3048 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3051 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3052 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3055 # Do 'set' in a subshell so we don't clobber the current shell's
3056 # arguments. Must try -L first in case configure is actually a
3057 # symlink; some systems play weird games with the mod time of symlinks
3058 # (eg FreeBSD returns the mod time of the symlink's containing
3062 for am_try
in 1 2; do
3063 echo "timestamp, slept: $am_has_slept" > conftest.
file
3064 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3065 if test "$*" = "X"; then
3067 set X
`ls -t "$srcdir/configure" conftest.file`
3069 if test "$*" != "X $srcdir/configure conftest.file" \
3070 && test "$*" != "X conftest.file $srcdir/configure"; then
3072 # If neither matched, then we have a broken ls. This can happen
3073 # if, for instance, CONFIG_SHELL is bash and it inherits a
3074 # broken ls alias from the environment. This has actually
3075 # happened. Such a system could not be considered "sane".
3076 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3077 alias in your environment" "$LINENO" 5
3079 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3086 test "$2" = conftest.
file
3092 as_fn_error $?
"newly created file is older than distributed files!
3093 Check your system clock" "$LINENO" 5
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 $as_echo "yes" >&6; }
3097 # If we didn't sleep, we still need to ensure time stamps of config.status and
3098 # generated files are strictly newer.
3100 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3107 test "$program_prefix" != NONE
&&
3108 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3109 # Use a double $ so make ignores it.
3110 test "$program_suffix" != NONE
&&
3111 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3112 # Double any \ or $.
3113 # By default was `s,x,x', remove it if useless.
3114 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3115 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3117 # Expand $ac_aux_dir to an absolute path.
3118 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3120 if test x
"${MISSING+set}" != xset
; then
3123 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3125 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3128 # Use eval to expand $SHELL
3129 if eval "$MISSING --is-lightweight"; then
3130 am_missing_run
="$MISSING "
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3134 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3137 if test x
"${install_sh+set}" != xset
; then
3140 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3142 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3146 # Installed binaries are usually stripped using 'strip' when the user
3147 # run "make install-strip". However 'strip' might not be the right
3148 # tool to use in cross-compilation environments, therefore Automake
3149 # will honor the 'STRIP' environment variable to overrule this program.
3150 if test "$cross_compiling" != no
; then
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3153 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_STRIP+:} false
; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$STRIP"; then
3160 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 STRIP
=$ac_cv_prog_STRIP
3180 if test -n "$STRIP"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3182 $as_echo "$STRIP" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$ac_cv_prog_STRIP"; then
3192 # Extract the first word of "strip", so it can be a program name with args.
3193 set dummy strip
; ac_word
=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$ac_ct_STRIP"; then
3200 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir
=.
3207 for ac_exec_ext
in '' $ac_executable_extensions; do
3208 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_ac_ct_STRIP
="strip"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3220 if test -n "$ac_ct_STRIP"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3222 $as_echo "$ac_ct_STRIP" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3228 if test "x$ac_ct_STRIP" = x
; then
3231 case $cross_compiling:$ac_tool_warned in
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned
=yes ;;
3240 STRIP
="$ac_cv_prog_STRIP"
3244 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3247 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3248 if test -z "$MKDIR_P"; then
3249 if ${ac_cv_path_mkdir+:} false
; then :
3250 $as_echo_n "(cached) " >&6
3252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3253 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3256 test -z "$as_dir" && as_dir
=.
3257 for ac_prog
in mkdir gmkdir
; do
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3260 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3261 'mkdir (GNU coreutils) '* | \
3262 'mkdir (coreutils) '* | \
3263 'mkdir (fileutils) '4.1*)
3264 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3274 test -d .
/--version && rmdir .
/--version
3275 if test "${ac_cv_path_mkdir+set}" = set; then
3276 MKDIR_P
="$ac_cv_path_mkdir -p"
3278 # As a last resort, use the slow shell script. Don't cache a
3279 # value for MKDIR_P within a source directory, because that will
3280 # break other packages using the cache if that directory is
3281 # removed, or if the value is a relative name.
3282 MKDIR_P
="$ac_install_sh -d"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3286 $as_echo "$MKDIR_P" >&6; }
3288 for ac_prog
in gawk mawk nawk
awk
3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy
$ac_prog; ac_word
=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_AWK+:} false
; then :
3295 $as_echo_n "(cached) " >&6
3297 if test -n "$AWK"; then
3298 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir
=.
3305 for ac_exec_ext
in '' $ac_executable_extensions; do
3306 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_AWK
="$ac_prog"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 if test -n "$AWK"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3320 $as_echo "$AWK" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3327 test -n "$AWK" && break
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3331 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3333 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3334 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3335 $as_echo_n "(cached) " >&6
3337 cat >conftest.
make <<\_ACEOF
3340 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3342 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3345 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3347 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3351 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353 $as_echo "yes" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 SET_MAKE
="MAKE=${MAKE-make}"
3361 rm -rf .tst
2>/dev
/null
3362 mkdir .tst
2>/dev
/null
3363 if test -d .tst
; then
3368 rmdir .tst
2>/dev
/null
3370 # Check whether --enable-silent-rules was given.
3371 if test "${enable_silent_rules+set}" = set; then :
3372 enableval
=$enable_silent_rules;
3375 case $enable_silent_rules in # (((
3376 yes) AM_DEFAULT_VERBOSITY
=0;;
3377 no
) AM_DEFAULT_VERBOSITY
=1;;
3378 *) AM_DEFAULT_VERBOSITY
=1;;
3380 am_make
=${MAKE-make}
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3382 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3383 if ${am_cv_make_support_nested_variables+:} false
; then :
3384 $as_echo_n "(cached) " >&6
3386 if $as_echo 'TRUE=$(BAR$(V))
3392 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3393 am_cv_make_support_nested_variables
=yes
3395 am_cv_make_support_nested_variables
=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3399 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3400 if test $am_cv_make_support_nested_variables = yes; then
3402 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3404 AM_V
=$AM_DEFAULT_VERBOSITY
3405 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3409 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3410 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3411 # is not polluted with repeated "-I."
3412 am__isrc
=' -I$(srcdir)'
3413 # test to see if srcdir already configured
3414 if test -f $srcdir/config.status
; then
3415 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3419 # test whether we have cygpath
3420 if test -z "$CYGPATH_W"; then
3421 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3422 CYGPATH_W
='cygpath -w'
3429 # Define the identity of the package.
3430 PACKAGE
='gdbsupport'
3434 cat >>confdefs.h
<<_ACEOF
3435 #define PACKAGE "$PACKAGE"
3439 cat >>confdefs.h
<<_ACEOF
3440 #define VERSION "$VERSION"
3443 # Some tools Automake needs.
3445 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3448 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3451 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3454 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3457 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3459 # For better backward compatibility. To be removed once Automake 1.9.x
3460 # dies out for good. For more background, see:
3461 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3462 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3463 mkdir_p
='$(MKDIR_P)'
3465 # We need awk for the "check" target (and possibly the TAP driver). The
3466 # system "awk" is bad on some platforms.
3467 # Always define AMTAR for backward compatibility. Yes, it's still used
3468 # in the wild :-( We should find a proper way to deprecate it ...
3472 # We'll loop over all known methods to create a tar archive until one works.
3473 _am_tools
='gnutar pax cpio none'
3475 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3482 # POSIX will say in a future version that running "rm -f" with no argument
3483 # is OK; and we want to be able to make that assumption in our Makefile
3484 # recipes. So use an aggressive probe to check that the usage we want is
3485 # actually supported "in the wild" to an acceptable degree.
3486 # See automake bug#10828.
3487 # To make any issue more visible, cause the running configure to be aborted
3488 # by default if the 'rm' program in use doesn't match our expectations; the
3489 # user can still override this though.
3490 if rm -f && rm -fr && rm -rf; then : OK
; else
3494 Your 'rm' program seems unable to run without file operands specified
3495 on the command line, even when the '-f' option is present. This is contrary
3496 to the behaviour of most rm programs out there, and not conforming with
3497 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3499 Please tell bug-automake@gnu.org about your system, including the value
3500 of your $PATH and any error possibly output before this message. This
3501 can help us improve future automake versions.
3504 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3505 echo 'Configuration will proceed anyway, since you have set the' >&2
3506 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3510 Aborting the configuration process, to ensure you take notice of the issue.
3512 You can download and install GNU coreutils to get an 'rm' implementation
3513 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3515 If you want to complete the configuration process using your problematic
3516 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3517 to "yes", and re-run configure.
3520 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3524 # Check whether --enable-silent-rules was given.
3525 if test "${enable_silent_rules+set}" = set; then :
3526 enableval
=$enable_silent_rules;
3529 case $enable_silent_rules in # (((
3530 yes) AM_DEFAULT_VERBOSITY
=0;;
3531 no
) AM_DEFAULT_VERBOSITY
=1;;
3532 *) AM_DEFAULT_VERBOSITY
=0;;
3534 am_make
=${MAKE-make}
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3536 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3537 if ${am_cv_make_support_nested_variables+:} false
; then :
3538 $as_echo_n "(cached) " >&6
3540 if $as_echo 'TRUE=$(BAR$(V))
3546 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3547 am_cv_make_support_nested_variables
=yes
3549 am_cv_make_support_nested_variables
=no
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3553 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3554 if test $am_cv_make_support_nested_variables = yes; then
3556 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3558 AM_V
=$AM_DEFAULT_VERBOSITY
3559 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3567 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569 if test -n "$ac_tool_prefix"; then
3570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_CC+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3608 if test -z "$ac_cv_prog_CC"; then
3610 # Extract the first word of "gcc", so it can be a program name with args.
3611 set dummy gcc; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3615 $as_echo_n "(cached) " >&6
3617 if test -n "$ac_ct_CC"; then
3618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_ac_ct_CC="gcc"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638 if test -n "$ac_ct_CC"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3640 $as_echo "$ac_ct_CC" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3646 if test "x$ac_ct_CC" = x; then
3649 case $cross_compiling:$ac_tool_warned in
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653 ac_tool_warned=yes ;;
3661 if test -z "$CC"; then
3662 if test -n "$ac_tool_prefix"; then
3663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3664 set dummy ${ac_tool_prefix}cc; ac_word=$2
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if ${ac_cv_prog_CC+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 if test -n "$CC"; then
3671 ac_cv_prog_CC="$CC" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_CC="${ac_tool_prefix}cc"
3681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 if test -n "$CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3693 $as_echo "$CC" >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3702 if test -z "$CC"; then
3703 # Extract the first word of "cc", so it can be a program name with args.
3704 set dummy cc; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_prog_CC+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3722 ac_prog_rejected=yes
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 if test $ac_prog_rejected = yes; then
3734 # We found a bogon in the path, so make sure we never use it.
3735 set dummy $ac_cv_prog_CC
3737 if test $# != 0; then
3738 # We chose a different compiler from the bogus one.
3739 # However, it has the same basename, so the bogon will be chosen
3740 # first if we set CC to just the basename; use the full file name.
3742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3748 if test -n "$CC"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3758 if test -z "$CC"; then
3759 if test -n "$ac_tool_prefix"; then
3760 for ac_prog in cl.exe
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if ${ac_cv_prog_CC+:} false; then :
3767 $as_echo_n "(cached) " >&6
3769 if test -n "$CC"; then
3770 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 if test -n "$CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792 $as_echo "$CC" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3799 test -n "$CC" && break
3802 if test -z "$CC"; then
3804 for ac_prog in cl.exe
3806 # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3811 $as_echo_n "(cached) " >&6
3813 if test -n "$ac_ct_CC"; then
3814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_ac_ct_CC="$ac_prog"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834 if test -n "$ac_ct_CC"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836 $as_echo "$ac_ct_CC" >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3843 test -n "$ac_ct_CC" && break
3846 if test "x$ac_ct_CC" = x; then
3849 case $cross_compiling:$ac_tool_warned in
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3862 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3864 as_fn_error $? "no acceptable C compiler found in \$PATH
3865 See \`config.log
' for more details" "$LINENO" 5; }
3867 # Provide some information about the compiler.
3868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3871 for ac_option in --version -v -V -qversion; do
3872 { { ac_try="$ac_compiler $ac_option >&5"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3881 if test -s conftest.err; then
3883 ... rest of stderr output deleted ...
3884 10q
' conftest.err >conftest.er1
3885 cat conftest.er1 >&5
3887 rm -f conftest.er1 conftest.err
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3903 ac_clean_files_save=$ac_clean_files
3904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3905 # Try to create an executable without -o first, disregard a.out.
3906 # It will help us diagnose broken compilers, and finding out an intuition
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3909 $as_echo_n "checking whether the C compiler works... " >&6; }
3910 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3912 # The possible output files:
3913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3916 for ac_file in $ac_files
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 if { { ac_try="$ac_link_default"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_link_default") 2>&5
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }; then :
3936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3939 # so that the user can short-circuit this test for compilers unknown to
3941 for ac_file
in $ac_files ''
3943 test -f "$ac_file" ||
continue
3945 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3948 # We found the default executable, but exeext='' is most
3952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3954 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3956 # We set ac_cv_exeext here because the later test for it is not
3957 # safe: cross compilers may not add the suffix if given an `-o'
3958 # argument, so we may need to know it at that point already.
3959 # Even if this section looks crufty: it has the advantage of
3966 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3971 if test -z "$ac_file"; then :
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3974 $as_echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.
$ac_ext >&5
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error
77 "C compiler cannot create executables
3980 See \`config.log' for more details" "$LINENO" 5; }
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3983 $as_echo "yes" >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3986 $as_echo_n "checking for C compiler default output file name... " >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3988 $as_echo "$ac_file" >&6; }
3989 ac_exeext
=$ac_cv_exeext
3991 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3992 ac_clean_files
=$ac_clean_files_save
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3994 $as_echo_n "checking for suffix of executables... " >&6; }
3995 if { { ac_try
="$ac_link"
3997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_link") 2>&5
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }; then :
4006 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4007 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4008 # work properly (i.e., refer to `conftest.exe'), while it won't with
4010 for ac_file
in conftest.exe conftest conftest.
*; do
4011 test -f "$ac_file" ||
continue
4013 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4014 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4023 See \`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest conftest
$ac_cv_exeext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4027 $as_echo "$ac_cv_exeext" >&6; }
4029 rm -f conftest.
$ac_ext
4030 EXEEXT
=$ac_cv_exeext
4032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4038 FILE *f = fopen ("conftest.out", "w");
4039 return ferror (f) || fclose (f) != 0;
4045 ac_clean_files
="$ac_clean_files conftest.out"
4046 # Check that the compiler produces executables we can run. If not, either
4047 # the compiler is broken, or we cross compile.
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4049 $as_echo_n "checking whether we are cross compiling... " >&6; }
4050 if test "$cross_compiling" != yes; then
4051 { { ac_try
="$ac_link"
4053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_link") 2>&5
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }
4062 if { ac_try='./conftest$ac_cv_exeext'
4063 { { case "(($ac_try" in
4064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4065 *) ac_try_echo
=$ac_try;;
4067 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_try") 2>&5
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; }; then
4075 if test "$cross_compiling" = maybe
; then
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $?
"cannot run C compiled programs.
4081 If you meant to cross compile, use \`--host'.
4082 See \`config.log' for more details" "$LINENO" 5; }
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4087 $as_echo "$cross_compiling" >&6; }
4089 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4090 ac_clean_files
=$ac_clean_files_save
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4092 $as_echo_n "checking for suffix of object files... " >&6; }
4093 if ${ac_cv_objext+:} false
; then :
4094 $as_echo_n "(cached) " >&6
4096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 rm -f conftest.o conftest.obj
4108 if { { ac_try
="$ac_compile"
4110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114 $as_echo "$ac_try_echo"; } >&5
4115 (eval "$ac_compile") 2>&5
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }; then :
4119 for ac_file in conftest.o conftest.obj conftest.*; do
4120 test -f "$ac_file" || continue;
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4128 $as_echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4133 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4134 See \
`config.log' for more details" "$LINENO" 5; }
4136 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4139 $as_echo "$ac_cv_objext" >&6; }
4140 OBJEXT=$ac_cv_objext
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4143 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4144 if ${ac_cv_c_compiler_gnu+:} false; then :
4145 $as_echo_n "(cached) " >&6
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4161 if ac_fn_c_try_compile "$LINENO"; then :
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4171 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4172 if test $ac_compiler_gnu = yes; then
4177 ac_test_CFLAGS=${CFLAGS+set}
4178 ac_save_CFLAGS=$CFLAGS
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4180 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4181 if ${ac_cv_prog_cc_g+:} false; then :
4182 $as_echo_n "(cached) " >&6
4184 ac_save_c_werror_flag=$ac_c_werror_flag
4185 ac_c_werror_flag=yes
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4199 if ac_fn_c_try_compile "$LINENO"; then :
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4214 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_c_werror_flag=$ac_save_c_werror_flag
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4230 if ac_fn_c_try_compile "$LINENO"; then :
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4241 $as_echo "$ac_cv_prog_cc_g" >&6; }
4242 if test "$ac_test_CFLAGS" = set; then
4243 CFLAGS=$ac_save_CFLAGS
4244 elif test $ac_cv_prog_cc_g = yes; then
4245 if test "$GCC" = yes; then
4251 if test "$GCC" = yes; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4258 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4259 if ${ac_cv_prog_cc_c89+:} false; then :
4260 $as_echo_n "(cached) " >&6
4262 ac_cv_prog_cc_c89=no
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4270 struct buf { int x; };
4271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4272 static char *e (p, i)
4278 static char *f (char * (*g) (char **, int), char **p, ...)
4283 s = g (p, va_arg (v,int));
4288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4289 function prototypes and stuff, but not '\xHH' hex character constants.
4290 These don't provoke an error unfortunately, instead are silently treated
4291 as 'x'. The following induces an error, until -std is added to get
4292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4293 array size at least. It's necessary to write '\x00'==0 to get something
4294 that's true only with -std. */
4295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4298 inside strings and character constants. */
4300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4302 int test (int i, double x);
4303 struct s1 {int (*f) (int a);};
4304 struct s2 {int (*f) (double a);};
4305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4311 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4319 CC="$ac_save_CC $ac_arg"
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_cv_prog_cc_c89=$ac_arg
4323 rm -f core conftest.err conftest.$ac_objext
4324 test "x$ac_cv_prog_cc_c89" != "xno" && break
4326 rm -f conftest.$ac_ext
4331 case "x$ac_cv_prog_cc_c89" in
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4334 $as_echo "none needed" >&6; } ;;
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4337 $as_echo "unsupported" >&6; } ;;
4339 CC="$CC $ac_cv_prog_cc_c89"
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4341 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4343 if test "x$ac_cv_prog_cc_c89" != xno; then :
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4359 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4360 if ${am_cv_prog_cc_c_o+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 # Make sure it works both with $CC and with simple cc.
4375 # Following AC_PROG_CC_C_O, we do the test twice because some
4376 # compilers refuse to overwrite an existing .o file with -o,
4377 # though they will create one.
4378 am_cv_prog_cc_c_o=yes
4380 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4381 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } \
4385 && test -f conftest2.$ac_objext; then
4388 am_cv_prog_cc_c_o=no
4392 rm -f core conftest*
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4396 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4397 if test "$am_cv_prog_cc_c_o" != yes; then
4398 # Losing compiler, so override with the script.
4399 # FIXME: It is wrong to rewrite CC.
4400 # But if we don't then we get into trouble of one sort or another.
4401 # A longer-term fix would be to have automake use am__CC in this case,
4402 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4403 CC="$am_aux_dir/compile $CC"
4406 ac_cpp='$CPP $CPPFLAGS'
4407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411 DEPDIR="${am__leading_dot}deps"
4413 ac_config_commands="$ac_config_commands depfiles"
4416 am_make=${MAKE-make}
4417 cat > confinc << 'END'
4419 @echo this is the am__doit target
4422 # If we don't find an include directive, just comment out the code.
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4424 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4428 # First try GNU make style include.
4429 echo "include confinc" > confmf
4430 # Ignore all kinds of additional output from 'make'.
4431 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4432 *the\ am__doit\ target*)
4438 # Now try BSD make style include.
4439 if test "$am__include" = "#"; then
4440 echo '.include "confinc"' > confmf
4441 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4442 *the\ am__doit\ target*)
4443 am__include=.include
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4452 $as_echo "$_am_result" >&6; }
4453 rm -f confinc confmf
4455 # Check whether --enable-dependency-tracking was given.
4456 if test "${enable_dependency_tracking+set}" = set; then :
4457 enableval=$enable_dependency_tracking;
4460 if test "x$enable_dependency_tracking" != xno; then
4461 am_depcomp="$ac_aux_dir/depcomp"
4465 if test "x$enable_dependency_tracking" != xno; then
4475 depcc="$CC" am_compiler_list=
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4478 $as_echo_n "checking dependency style of $depcc... " >&6; }
4479 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4480 $as_echo_n "(cached) " >&6
4482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4483 # We make a subdir and do the tests there. Otherwise we can end up
4484 # making bogus files that we don't know about and never remove. For
4485 # instance it was reported that on HP-UX the gcc test will end up
4486 # making a dummy file named 'D' -- because '-MD' means "put the output
4490 # Copy depcomp to subdir because otherwise we won't find it if we're
4491 # using a relative directory.
4492 cp "$am_depcomp" conftest.dir
4494 # We will build objects and dependencies in a subdirectory because
4495 # it helps to detect inapplicable dependency modes. For instance
4496 # both Tru64's cc and ICC support -MD to output dependencies as a
4497 # side effect of compilation, but ICC will put the dependencies in
4498 # the current directory while Tru64 will put them in the object
4502 am_cv_CC_dependencies_compiler_type=none
4503 if test "$am_compiler_list" = ""; then
4504 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4507 case " $depcc " in #(
4508 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4511 for depmode in $am_compiler_list; do
4512 # Setup a source with many dependencies, because some compilers
4513 # like to wrap large dependency lists on column 80 (with \), and
4514 # we should not choose a depcomp mode which is confused by this.
4516 # We need to recreate these files for each test, as the compiler may
4517 # overwrite some of them when testing with obscure command lines.
4518 # This happens at least with the AIX C compiler.
4520 for i in 1 2 3 4 5 6; do
4521 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4522 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4523 # Solaris 10 /bin/sh.
4524 echo '/* dummy */' > sub/conftst$i.h
4526 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4528 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4529 # mode. It turns out that the SunPro C++ compiler does not properly
4530 # handle '-M -o', and we need to detect this. Also, some Intel
4531 # versions had trouble with output in subdirs.
4532 am__obj=sub/conftest.${OBJEXT-o}
4533 am__minus_obj="-o $am__obj"
4536 # This depmode causes a compiler race in universal mode.
4537 test "$am__universal" = false || continue
4540 # After this tag, mechanisms are not by side-effect, so they'll
4541 # only be used when explicitly requested.
4542 if test "x$enable_dependency_tracking" = xyes; then
4548 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4549 # This compiler won't grok '-c -o', but also, the minuso test has
4550 # not run yet. These depmodes are late enough in the game, and
4551 # so weak that their functioning should not be impacted.
4552 am__obj=conftest.${OBJEXT-o}
4557 if depmode=$depmode \
4558 source=sub/conftest.c object=$am__obj \
4559 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4560 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4561 >/dev/null 2>conftest.err &&
4562 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4564 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4566 # icc doesn't choke on unknown options, it will just issue warnings
4567 # or remarks (even with -Werror). So we grep stderr for any message
4568 # that says an option was ignored or not supported.
4569 # When given -MP, icc 7.0 and 7.1 complain thusly:
4570 # icc: Command line warning: ignoring option '-M'; no argument required
4571 # The diagnosis changed in icc 8.0:
4572 # icc: Command line remark: option '-MP' not supported
4573 if (grep 'ignoring option' conftest.err ||
4574 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4575 am_cv_CC_dependencies_compiler_type=$depmode
4584 am_cv_CC_dependencies_compiler_type=none
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4589 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4590 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4593 test "x$enable_dependency_tracking" != xno \
4594 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4596 am__fastdepCC_FALSE='#'
4598 am__fastdepCC_TRUE='#'
4599 am__fastdepCC_FALSE=
4604 ac_cpp='$CXXCPP $CPPFLAGS'
4605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4608 if test -z "$CXX"; then
4609 if test -n "$CCC"; then
4612 if test -n "$ac_tool_prefix"; then
4613 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if ${ac_cv_prog_CXX+:} false; then :
4620 $as_echo_n "(cached) " >&6
4622 if test -n "$CXX"; then
4623 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 if test -n "$CXX"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4645 $as_echo "$CXX" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4652 test -n "$CXX" && break
4655 if test -z "$CXX"; then
4657 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4659 # Extract the first word of "$ac_prog", so it can be a program name with args.
4660 set dummy $ac_prog; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$ac_ct_CXX"; then
4667 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_ac_ct_CXX="$ac_prog"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4687 if test -n "$ac_ct_CXX"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4689 $as_echo "$ac_ct_CXX" >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4696 test -n "$ac_ct_CXX" && break
4699 if test "x$ac_ct_CXX" = x; then
4702 case $cross_compiling:$ac_tool_warned in
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned=yes ;;
4714 # Provide some information about the compiler.
4715 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4718 for ac_option in --version -v -V -qversion; do
4719 { { ac_try="$ac_compiler $ac_option >&5"
4721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4722 *) ac_try_echo
=$ac_try;;
4724 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4725 $as_echo "$ac_try_echo"; } >&5
4726 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4728 if test -s conftest.err
; then
4730 ... rest of stderr output deleted ...
4731 10q' conftest.err
>conftest.er1
4732 cat conftest.er1
>&5
4734 rm -f conftest.er1 conftest.err
4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4741 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4742 $as_echo_n "(cached) " >&6
4744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4758 if ac_fn_cxx_try_compile
"$LINENO"; then :
4763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4764 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4768 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4769 if test $ac_compiler_gnu = yes; then
4774 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4775 ac_save_CXXFLAGS
=$CXXFLAGS
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4777 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4778 if ${ac_cv_prog_cxx_g+:} false
; then :
4779 $as_echo_n "(cached) " >&6
4781 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4782 ac_cxx_werror_flag
=yes
4785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4796 if ac_fn_cxx_try_compile
"$LINENO"; then :
4797 ac_cv_prog_cxx_g
=yes
4800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4811 if ac_fn_cxx_try_compile
"$LINENO"; then :
4814 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4827 if ac_fn_cxx_try_compile
"$LINENO"; then :
4828 ac_cv_prog_cxx_g
=yes
4830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4835 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4838 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4839 if test "$ac_test_CXXFLAGS" = set; then
4840 CXXFLAGS
=$ac_save_CXXFLAGS
4841 elif test $ac_cv_prog_cxx_g = yes; then
4842 if test "$GXX" = yes; then
4848 if test "$GXX" = yes; then
4855 ac_cpp
='$CPP $CPPFLAGS'
4856 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4860 depcc
="$CXX" am_compiler_list
=
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4863 $as_echo_n "checking dependency style of $depcc... " >&6; }
4864 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4865 $as_echo_n "(cached) " >&6
4867 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4868 # We make a subdir and do the tests there. Otherwise we can end up
4869 # making bogus files that we don't know about and never remove. For
4870 # instance it was reported that on HP-UX the gcc test will end up
4871 # making a dummy file named 'D' -- because '-MD' means "put the output
4875 # Copy depcomp to subdir because otherwise we won't find it if we're
4876 # using a relative directory.
4877 cp "$am_depcomp" conftest.dir
4879 # We will build objects and dependencies in a subdirectory because
4880 # it helps to detect inapplicable dependency modes. For instance
4881 # both Tru64's cc and ICC support -MD to output dependencies as a
4882 # side effect of compilation, but ICC will put the dependencies in
4883 # the current directory while Tru64 will put them in the object
4887 am_cv_CXX_dependencies_compiler_type
=none
4888 if test "$am_compiler_list" = ""; then
4889 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4892 case " $depcc " in #(
4893 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4896 for depmode
in $am_compiler_list; do
4897 # Setup a source with many dependencies, because some compilers
4898 # like to wrap large dependency lists on column 80 (with \), and
4899 # we should not choose a depcomp mode which is confused by this.
4901 # We need to recreate these files for each test, as the compiler may
4902 # overwrite some of them when testing with obscure command lines.
4903 # This happens at least with the AIX C compiler.
4905 for i
in 1 2 3 4 5 6; do
4906 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4907 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4908 # Solaris 10 /bin/sh.
4909 echo '/* dummy */' > sub
/conftst
$i.h
4911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4913 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4914 # mode. It turns out that the SunPro C++ compiler does not properly
4915 # handle '-M -o', and we need to detect this. Also, some Intel
4916 # versions had trouble with output in subdirs.
4917 am__obj
=sub
/conftest.
${OBJEXT-o}
4918 am__minus_obj
="-o $am__obj"
4921 # This depmode causes a compiler race in universal mode.
4922 test "$am__universal" = false ||
continue
4925 # After this tag, mechanisms are not by side-effect, so they'll
4926 # only be used when explicitly requested.
4927 if test "x$enable_dependency_tracking" = xyes
; then
4933 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4934 # This compiler won't grok '-c -o', but also, the minuso test has
4935 # not run yet. These depmodes are late enough in the game, and
4936 # so weak that their functioning should not be impacted.
4937 am__obj
=conftest.
${OBJEXT-o}
4942 if depmode
=$depmode \
4943 source=sub
/conftest.c object
=$am__obj \
4944 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4945 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4946 >/dev
/null
2>conftest.err
&&
4947 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4948 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4949 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4950 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4951 # icc doesn't choke on unknown options, it will just issue warnings
4952 # or remarks (even with -Werror). So we grep stderr for any message
4953 # that says an option was ignored or not supported.
4954 # When given -MP, icc 7.0 and 7.1 complain thusly:
4955 # icc: Command line warning: ignoring option '-M'; no argument required
4956 # The diagnosis changed in icc 8.0:
4957 # icc: Command line remark: option '-MP' not supported
4958 if (grep 'ignoring option' conftest.err ||
4959 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4960 am_cv_CXX_dependencies_compiler_type
=$depmode
4969 am_cv_CXX_dependencies_compiler_type
=none
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4974 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4975 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4978 test "x$enable_dependency_tracking" != xno \
4979 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4980 am__fastdepCXX_TRUE
=
4981 am__fastdepCXX_FALSE
='#'
4983 am__fastdepCXX_TRUE
='#'
4984 am__fastdepCXX_FALSE
=
4988 if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4990 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_RANLIB+:} false
; then :
4994 $as_echo_n "(cached) " >&6
4996 if test -n "$RANLIB"; then
4997 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir
=.
5004 for ac_exec_ext
in '' $ac_executable_extensions; do
5005 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 RANLIB
=$ac_cv_prog_RANLIB
5017 if test -n "$RANLIB"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5019 $as_echo "$RANLIB" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5027 if test -z "$ac_cv_prog_RANLIB"; then
5028 ac_ct_RANLIB
=$RANLIB
5029 # Extract the first word of "ranlib", so it can be a program name with args.
5030 set dummy ranlib
; ac_word
=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5034 $as_echo_n "(cached) " >&6
5036 if test -n "$ac_ct_RANLIB"; then
5037 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir
=.
5044 for ac_exec_ext
in '' $ac_executable_extensions; do
5045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5057 if test -n "$ac_ct_RANLIB"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5059 $as_echo "$ac_ct_RANLIB" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5065 if test "x$ac_ct_RANLIB" = x
; then
5068 case $cross_compiling:$ac_tool_warned in
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned
=yes ;;
5074 RANLIB
=$ac_ct_RANLIB
5077 RANLIB
="$ac_cv_prog_RANLIB"
5083 ac_cpp
='$CPP $CPPFLAGS'
5084 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5088 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5089 # On Suns, sometimes $CPP names a directory.
5090 if test -n "$CPP" && test -d "$CPP"; then
5093 if test -z "$CPP"; then
5094 if ${ac_cv_prog_CPP+:} false
; then :
5095 $as_echo_n "(cached) " >&6
5097 # Double quotes because CPP needs to be expanded
5098 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5101 for ac_c_preproc_warn_flag
in '' yes
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 # include <limits.h>
5114 # include <assert.h>
5118 if ac_fn_c_try_cpp
"$LINENO"; then :
5121 # Broken: fails on valid input.
5124 rm -f conftest.err conftest.i conftest.
$ac_ext
5126 # OK, works on sane cases. Now check whether nonexistent headers
5127 # can be detected and how.
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <ac_nonexistent.h>
5132 if ac_fn_c_try_cpp
"$LINENO"; then :
5133 # Broken: success on invalid input.
5136 # Passes both tests.
5140 rm -f conftest.err conftest.i conftest.
$ac_ext
5143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144 rm -f conftest.i conftest.err conftest.
$ac_ext
5145 if $ac_preproc_ok; then :
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5158 $as_echo "$CPP" >&6; }
5160 for ac_c_preproc_warn_flag
in '' yes
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5171 # include <limits.h>
5173 # include <assert.h>
5177 if ac_fn_c_try_cpp
"$LINENO"; then :
5180 # Broken: fails on valid input.
5183 rm -f conftest.err conftest.i conftest.
$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <ac_nonexistent.h>
5191 if ac_fn_c_try_cpp
"$LINENO"; then :
5192 # Broken: success on invalid input.
5195 # Passes both tests.
5199 rm -f conftest.err conftest.i conftest.
$ac_ext
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.i conftest.err conftest.
$ac_ext
5204 if $ac_preproc_ok; then :
5207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5209 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5210 See \`config.log' for more details" "$LINENO" 5; }
5214 ac_cpp
='$CPP $CPPFLAGS'
5215 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5222 if ${ac_cv_path_GREP+:} false
; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -z "$GREP"; then
5226 ac_path_GREP_found
=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5229 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5232 test -z "$as_dir" && as_dir
=.
5233 for ac_prog
in grep ggrep
; do
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5236 as_fn_executable_p
"$ac_path_GREP" ||
continue
5237 # Check for GNU ac_path_GREP and select it if it is found.
5238 # Check for GNU $ac_path_GREP
5239 case `"$ac_path_GREP" --version 2>&1` in
5241 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5244 $as_echo_n 0123456789 >"conftest.in"
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'GREP' >> "conftest.nl"
5251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5252 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5253 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_GREP
="$ac_path_GREP"
5257 ac_path_GREP_max
=$ac_count
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5262 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5265 $ac_path_GREP_found && break 3
5270 if test -z "$ac_cv_path_GREP"; then
5271 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5274 ac_cv_path_GREP
=$GREP
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5279 $as_echo "$ac_cv_path_GREP" >&6; }
5280 GREP
="$ac_cv_path_GREP"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5284 $as_echo_n "checking for egrep... " >&6; }
5285 if ${ac_cv_path_EGREP+:} false
; then :
5286 $as_echo_n "(cached) " >&6
5288 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5289 then ac_cv_path_EGREP
="$GREP -E"
5291 if test -z "$EGREP"; then
5292 ac_path_EGREP_found
=false
5293 # Loop through the user's path and test for each of PROGNAME-LIST
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5295 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5298 test -z "$as_dir" && as_dir
=.
5299 for ac_prog
in egrep; do
5300 for ac_exec_ext
in '' $ac_executable_extensions; do
5301 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5302 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5303 # Check for GNU ac_path_EGREP and select it if it is found.
5304 # Check for GNU $ac_path_EGREP
5305 case `"$ac_path_EGREP" --version 2>&1` in
5307 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5310 $as_echo_n 0123456789 >"conftest.in"
5313 cat "conftest.in" "conftest.in" >"conftest.tmp"
5314 mv "conftest.tmp" "conftest.in"
5315 cp "conftest.in" "conftest.nl"
5316 $as_echo 'EGREP' >> "conftest.nl"
5317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5318 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5319 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5321 # Best one so far, save it but keep looking for a better one
5322 ac_cv_path_EGREP
="$ac_path_EGREP"
5323 ac_path_EGREP_max
=$ac_count
5325 # 10*(2^10) chars as input seems more than enough
5326 test $ac_count -gt 10 && break
5328 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5331 $ac_path_EGREP_found && break 3
5336 if test -z "$ac_cv_path_EGREP"; then
5337 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5340 ac_cv_path_EGREP
=$EGREP
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5346 $as_echo "$ac_cv_path_EGREP" >&6; }
5347 EGREP
="$ac_cv_path_EGREP"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5351 $as_echo_n "checking for ANSI C header files... " >&6; }
5352 if ${ac_cv_header_stdc+:} false
; then :
5353 $as_echo_n "(cached) " >&6
5355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5370 if ac_fn_c_try_compile
"$LINENO"; then :
5371 ac_cv_header_stdc
=yes
5373 ac_cv_header_stdc
=no
5375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5377 if test $ac_cv_header_stdc = yes; then
5378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 $EGREP "memchr" >/dev
/null
2>&1; then :
5388 ac_cv_header_stdc
=no
5394 if test $ac_cv_header_stdc = yes; then
5395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev
/null
2>&1; then :
5405 ac_cv_header_stdc
=no
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then :
5416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5443 if ac_fn_c_try_run
"$LINENO"; then :
5446 ac_cv_header_stdc
=no
5448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5455 $as_echo "$ac_cv_header_stdc" >&6; }
5456 if test $ac_cv_header_stdc = yes; then
5458 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5463 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5464 inttypes.h stdint.h unistd.h
5466 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5469 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5470 cat >>confdefs.h
<<_ACEOF
5471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5481 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5488 if test "$MINIX" = yes; then
5490 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5493 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5496 $as_echo "#define _MINIX 1" >>confdefs.h
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5502 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5503 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5504 $as_echo_n "(cached) " >&6
5506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5509 # define __EXTENSIONS__ 1
5510 $ac_includes_default
5519 if ac_fn_c_try_compile
"$LINENO"; then :
5520 ac_cv_safe_to_define___extensions__
=yes
5522 ac_cv_safe_to_define___extensions__
=no
5524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5527 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5528 test $ac_cv_safe_to_define___extensions__ = yes &&
5529 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5531 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5533 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5535 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5537 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5541 # The tests for host and target for $enable_largefile require
5546 # As the $enable_largefile decision depends on --enable-plugins we must set it
5547 # even in directories otherwise not depending on the $plugins option.
5551 for ac_header
in dlfcn.h
5553 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5555 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5556 cat >>confdefs.h
<<_ACEOF
5557 #define HAVE_DLFCN_H 1
5564 for ac_header
in windows.h
5566 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5568 if test "x$ac_cv_header_windows_h" = xyes
; then :
5569 cat >>confdefs.h
<<_ACEOF
5570 #define HAVE_WINDOWS_H 1
5578 # Check whether --enable-plugins was given.
5579 if test "${enable_plugins+set}" = set; then :
5580 enableval
=$enable_plugins; case "${enableval}" in
5583 if test "$maybe_plugins" != "yes" ; then
5584 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5588 plugins
=$maybe_plugins
5592 if test "$plugins" = "yes"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5594 $as_echo_n "checking for library containing dlsym... " >&6; }
5595 if ${ac_cv_search_dlsym+:} false
; then :
5596 $as_echo_n "(cached) " >&6
5598 ac_func_search_save_LIBS
=$LIBS
5599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5602 /* Override any GCC internal prototype to avoid an error.
5603 Use char because int might match the return type of a GCC
5604 builtin and then its argument prototype would still apply. */
5617 for ac_lib
in '' dl
; do
5618 if test -z "$ac_lib"; then
5619 ac_res
="none required"
5622 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5624 if ac_fn_c_try_link
"$LINENO"; then :
5625 ac_cv_search_dlsym
=$ac_res
5627 rm -f core conftest.err conftest.
$ac_objext \
5629 if ${ac_cv_search_dlsym+:} false
; then :
5633 if ${ac_cv_search_dlsym+:} false
; then :
5636 ac_cv_search_dlsym
=no
5639 LIBS
=$ac_func_search_save_LIBS
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5642 $as_echo "$ac_cv_search_dlsym" >&6; }
5643 ac_res
=$ac_cv_search_dlsym
5644 if test "$ac_res" != no
; then :
5645 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5653 sparc-
*-solaris*|i?
86-*-solaris*)
5654 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5655 # were mutually exclusive until Solaris 11.3. Without procfs support,
5656 # the bfd/ elf module cannot provide certain routines such as
5657 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5658 # explicitly requested large-file support through the
5659 # --enable-largefile switch, disable large-file support in favor of
5662 # Check if <sys/procfs.h> is incompatible with large-file support.
5663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 #define _FILE_OFFSET_BITS 64
5666 #define _STRUCTURED_PROC 1
5667 #include <sys/procfs.h>
5676 if ac_fn_c_try_compile
"$LINENO"; then :
5677 acx_cv_procfs_lfs
=yes
5679 acx_cv_procfs_lfs
=no
5681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 # Forcefully disable large-file support only if necessary, gdb is in
5685 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5686 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
5687 : ${enable_largefile="no"}
5688 if test "$plugins" = yes; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5690 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5691 $as_echo "$as_me: WARNING:
5692 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5697 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5698 # benefit of g++ 9+ which predefines it on Solaris.
5699 if test "$enable_largefile" = no
; then
5700 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
5706 # Check whether --enable-largefile was given.
5707 if test "${enable_largefile+set}" = set; then :
5708 enableval
=$enable_largefile;
5711 if test "$enable_largefile" != no
; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5714 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5715 if ${ac_cv_sys_largefile_CC+:} false
; then :
5716 $as_echo_n "(cached) " >&6
5718 ac_cv_sys_largefile_CC
=no
5719 if test "$GCC" != yes; then
5722 # IRIX 6.2 and later do not support large files by default,
5723 # so use the C compiler's -n32 option if that helps.
5724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 #include <sys/types.h>
5727 /* Check that off_t can represent 2**63 - 1 correctly.
5728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5729 since some C++ compilers masquerading as C compilers
5730 incorrectly reject 9223372036854775807. */
5731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5733 && LARGE_OFF_T % 2147483647 == 1)
5743 if ac_fn_c_try_compile
"$LINENO"; then :
5746 rm -f core conftest.err conftest.
$ac_objext
5748 if ac_fn_c_try_compile
"$LINENO"; then :
5749 ac_cv_sys_largefile_CC
=' -n32'; break
5751 rm -f core conftest.err conftest.
$ac_objext
5755 rm -f conftest.
$ac_ext
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5759 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5760 if test "$ac_cv_sys_largefile_CC" != no
; then
5761 CC
=$CC$ac_cv_sys_largefile_CC
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5765 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5766 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5767 $as_echo_n "(cached) " >&6
5770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #include <sys/types.h>
5773 /* Check that off_t can represent 2**63 - 1 correctly.
5774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5775 since some C++ compilers masquerading as C compilers
5776 incorrectly reject 9223372036854775807. */
5777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5779 && LARGE_OFF_T % 2147483647 == 1)
5789 if ac_fn_c_try_compile
"$LINENO"; then :
5790 ac_cv_sys_file_offset_bits
=no
; break
5792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 #define _FILE_OFFSET_BITS 64
5796 #include <sys/types.h>
5797 /* Check that off_t can represent 2**63 - 1 correctly.
5798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5799 since some C++ compilers masquerading as C compilers
5800 incorrectly reject 9223372036854775807. */
5801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5803 && LARGE_OFF_T % 2147483647 == 1)
5813 if ac_fn_c_try_compile
"$LINENO"; then :
5814 ac_cv_sys_file_offset_bits
=64; break
5816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5817 ac_cv_sys_file_offset_bits
=unknown
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5822 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5823 case $ac_cv_sys_file_offset_bits in #(
5826 cat >>confdefs.h
<<_ACEOF
5827 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5832 if test $ac_cv_sys_file_offset_bits = unknown
; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5834 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5835 if ${ac_cv_sys_large_files+:} false
; then :
5836 $as_echo_n "(cached) " >&6
5839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <sys/types.h>
5842 /* Check that off_t can represent 2**63 - 1 correctly.
5843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5844 since some C++ compilers masquerading as C compilers
5845 incorrectly reject 9223372036854775807. */
5846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5848 && LARGE_OFF_T % 2147483647 == 1)
5858 if ac_fn_c_try_compile
"$LINENO"; then :
5859 ac_cv_sys_large_files
=no
; break
5861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 #define _LARGE_FILES 1
5865 #include <sys/types.h>
5866 /* Check that off_t can represent 2**63 - 1 correctly.
5867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5868 since some C++ compilers masquerading as C compilers
5869 incorrectly reject 9223372036854775807. */
5870 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5872 && LARGE_OFF_T % 2147483647 == 1)
5882 if ac_fn_c_try_compile
"$LINENO"; then :
5883 ac_cv_sys_large_files
=1; break
5885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5886 ac_cv_sys_large_files
=unknown
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5891 $as_echo "$ac_cv_sys_large_files" >&6; }
5892 case $ac_cv_sys_large_files in #(
5895 cat >>confdefs.h
<<_ACEOF
5896 #define _LARGE_FILES $ac_cv_sys_large_files
5908 # We require a C++17 compiler. Check if one is available, and if
5909 # necessary, set CXX_DIALECT to some -std=xxx switch.
5911 ax_cxx_compile_alternatives
="17 1z" ax_cxx_compile_cxx17_required
=true
5913 ac_cpp
='$CXXCPP $CPPFLAGS'
5914 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
5921 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
5922 if ${ax_cv_cxx_compile_cxx17+:} false
; then :
5923 $as_echo_n "(cached) " >&6
5925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5929 // If the compiler admits that it is not ready for C++11, why torture it?
5930 // Hopefully, this will speed up the test.
5934 #error "This is not a C++ compiler"
5936 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
5937 // only set it correctly if /Zc:__cplusplus is specified as well as a
5938 // /std:c++NN switch:
5939 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
5940 #elif __cplusplus < 201103L && !defined _MSC_VER
5942 #error "This is not a C++11 compiler"
5949 namespace test_static_assert
5952 template <typename T>
5955 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5960 namespace test_final_override
5969 struct Derived : public Base
5971 virtual ~Derived() override {}
5972 virtual void f() override {}
5977 namespace test_double_right_angle_brackets
5980 template < typename T >
5983 typedef check<void> single_type;
5984 typedef check<check<void>> double_type;
5985 typedef check<check<check<void>>> triple_type;
5986 typedef check<check<check<check<void>>>> quadruple_type;
5990 namespace test_decltype
6003 namespace test_type_deduction
6006 template < typename T1, typename T2 >
6009 static const bool value = false;
6012 template < typename T >
6013 struct is_same<T, T>
6015 static const bool value = true;
6018 template < typename T1, typename T2 >
6020 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6026 test(const int c, volatile int v)
6028 static_assert(is_same<int, decltype(0)>::value == true, "");
6029 static_assert(is_same<int, decltype(c)>::value == false, "");
6030 static_assert(is_same<int, decltype(v)>::value == false, "");
6033 auto sumi = ac + av + 'x';
6034 auto sumf = ac + av + 1.0;
6035 static_assert(is_same<int, decltype(ac)>::value == true, "");
6036 static_assert(is_same<int, decltype(av)>::value == true, "");
6037 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6038 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6039 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6040 return (sumf > 0.0) ? sumi : add(c, v);
6045 namespace test_noexcept
6048 int f() { return 0; }
6049 int g() noexcept { return 0; }
6051 static_assert(noexcept(f()) == false, "");
6052 static_assert(noexcept(g()) == true, "");
6056 namespace test_constexpr
6059 template < typename CharT >
6060 unsigned long constexpr
6061 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6063 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6066 template < typename CharT >
6067 unsigned long constexpr
6068 strlen_c(const CharT *const s) noexcept
6070 return strlen_c_r(s, 0UL);
6073 static_assert(strlen_c("") == 0UL, "");
6074 static_assert(strlen_c("1") == 1UL, "");
6075 static_assert(strlen_c("example") == 7UL, "");
6076 static_assert(strlen_c("another\0example") == 7UL, "");
6080 namespace test_rvalue_references
6086 static constexpr int value = N;
6089 answer<1> f(int&) { return answer<1>(); }
6090 answer<2> f(const int&) { return answer<2>(); }
6091 answer<3> f(int&&) { return answer<3>(); }
6098 static_assert(decltype(f(i))::value == 1, "");
6099 static_assert(decltype(f(c))::value == 2, "");
6100 static_assert(decltype(f(0))::value == 3, "");
6105 namespace test_uniform_initialization
6110 static const int zero {};
6111 static const int one {1};
6114 static_assert(test::zero == 0, "");
6115 static_assert(test::one == 1, "");
6119 namespace test_lambdas
6125 auto lambda1 = [](){};
6126 auto lambda2 = lambda1;
6134 auto a = [](int i, int j){ return i + j; }(1, 2);
6135 auto b = []() -> int { return '0'; }();
6136 auto c = [=](){ return a + b; }();
6137 auto d = [&](){ return c; }();
6138 auto e = [a, &b](int x) mutable {
6139 const auto identity = [](int y){ return y; };
6140 for (auto i = 0; i < a; ++i)
6142 return x + identity(a + b);
6144 return a + b + c + d + e;
6150 const auto nullary = [](){ return 0; };
6151 const auto unary = [](int x){ return x; };
6152 using nullary_t = decltype(nullary);
6153 using unary_t = decltype(unary);
6154 const auto higher1st = [](nullary_t f){ return f(); };
6155 const auto higher2nd = [unary](nullary_t f1){
6156 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6158 return higher1st(nullary) + higher2nd(nullary)(unary);
6163 namespace test_variadic_templates
6169 template <int N0, int... N1toN>
6170 struct sum<N0, N1toN...>
6172 static constexpr auto value = N0 + sum<N1toN...>::value;
6178 static constexpr auto value = 0;
6181 static_assert(sum<>::value == 0, "");
6182 static_assert(sum<1>::value == 1, "");
6183 static_assert(sum<23>::value == 23, "");
6184 static_assert(sum<1, 2>::value == 3, "");
6185 static_assert(sum<5, 5, 11>::value == 21, "");
6186 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6190 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6191 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6193 namespace test_template_alias_sfinae
6198 template<typename T>
6199 using member = typename T::member_type;
6201 template<typename T>
6204 template<typename T>
6205 void func(member<T>*) {}
6209 void test() { func<foo>(0); }
6213 } // namespace cxx11
6215 #endif // __cplusplus >= 201103L
6220 // If the compiler admits that it is not ready for C++14, why torture it?
6221 // Hopefully, this will speed up the test.
6225 #error "This is not a C++ compiler"
6227 #elif __cplusplus < 201402L && !defined _MSC_VER
6229 #error "This is not a C++14 compiler"
6236 namespace test_polymorphic_lambdas
6242 const auto lambda = [](auto&&... args){
6243 const auto istiny = [](auto x){
6244 return (sizeof(x) == 1UL) ? 1 : 0;
6246 const int aretiny[] = { istiny(args)... };
6249 return lambda(1, 1L, 1.0f, '1');
6254 namespace test_binary_literals
6257 constexpr auto ivii = 0b0000000000101010;
6258 static_assert(ivii == 42, "wrong value");
6262 namespace test_generalized_constexpr
6265 template < typename CharT >
6266 constexpr unsigned long
6267 strlen_c(const CharT *const s) noexcept
6270 for (auto p = s; *p; ++p)
6275 static_assert(strlen_c("") == 0UL, "");
6276 static_assert(strlen_c("x") == 1UL, "");
6277 static_assert(strlen_c("test") == 4UL, "");
6278 static_assert(strlen_c("another\0test") == 7UL, "");
6282 namespace test_lambda_init_capture
6289 const auto lambda1 = [a = x](int b){ return a + b; };
6290 const auto lambda2 = [a = lambda1(x)](){ return a; };
6296 namespace test_digit_separators
6299 constexpr auto ten_million = 100'000'000;
6300 static_assert(ten_million == 100000000, "");
6304 namespace test_return_type_deduction
6307 auto f(int& x) { return x; }
6308 decltype(auto) g(int& x) { return x; }
6310 template < typename T1, typename T2 >
6313 static constexpr auto value = false;
6316 template < typename T >
6317 struct is_same<T, T>
6319 static constexpr auto value = true;
6326 static_assert(is_same<int, decltype(f(x))>::value, "");
6327 static_assert(is_same<int&, decltype(g(x))>::value, "");
6333 } // namespace cxx14
6335 #endif // __cplusplus >= 201402L
6340 // If the compiler admits that it is not ready for C++17, why torture it?
6341 // Hopefully, this will speed up the test.
6345 #error "This is not a C++ compiler"
6347 #elif __cplusplus < 201703L && !defined _MSC_VER
6349 #error "This is not a C++17 compiler"
6353 #include <initializer_list>
6355 #include <type_traits>
6360 namespace test_constexpr_lambdas
6363 constexpr int foo = [](){return 42;}();
6367 namespace test::nested_namespace::definitions
6372 namespace test_fold_expression
6375 template<typename... Args>
6376 int multiply(Args... args)
6378 return (args * ... * 1);
6381 template<typename... Args>
6382 bool all(Args... args)
6384 return (args && ...);
6389 namespace test_extended_static_assert
6392 static_assert (true);
6396 namespace test_auto_brace_init_list
6402 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
6403 static_assert(std::is_same<int, decltype(bar)>::value);
6406 namespace test_typename_in_template_template_parameter
6409 template<template<typename> typename X> struct D;
6413 namespace test_fallthrough_nodiscard_maybe_unused_attributes
6421 [[nodiscard]] int f2()
6423 [[maybe_unused]] auto unused = f1();
6438 namespace test_extended_aggregate_initialization
6454 struct derived : base1, base2
6459 derived d1 {{1, 2}, {}, 4}; // full initialization
6460 derived d2 {{}, {}, 4}; // value-initialized bases
6464 namespace test_general_range_based_for_loop
6476 const int& operator* () const
6493 bool operator== (const iter& i, const sentinel& s)
6498 bool operator!= (const iter& i, const sentinel& s)
6510 sentinel end() const
6522 [[maybe_unused]] auto v = i;
6528 namespace test_lambda_capture_asterisk_this_by_value
6545 namespace test_enum_class_construction
6548 enum class byte : unsigned char
6555 namespace test_constexpr_if
6558 template <bool cond>
6573 namespace test_selection_statement_with_initializer
6583 if (auto i = f(); i > 0)
6588 switch (auto i = f(); i + 4)
6600 namespace test_template_argument_deduction_for_class_templates
6603 template <typename T1, typename T2>
6617 [[maybe_unused]] auto p = pair{13, 42u};
6622 namespace test_non_type_auto_template_parameters
6634 namespace test_structured_bindings
6637 int arr[2] = { 1, 2 };
6638 std::pair<int, int> pr = { 1, 2 };
6640 auto f1() -> int(&)[2]
6645 auto f2() -> std::pair<int, int>&
6661 auto [ x1, y1 ] = f1();
6662 auto& [ xr1, yr1 ] = f1();
6663 auto [ x2, y2 ] = f2();
6664 auto& [ xr2, yr2 ] = f2();
6665 const auto [ x3, y3 ] = f3();
6669 namespace test_exception_spec_type_system
6678 template<typename T>
6682 template<typename T1, typename T2>
6686 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
6690 namespace test_inline_variables
6693 template<class T> void f(T)
6696 template<class T> inline T g(T)
6701 template<> inline void f<>(int)
6704 template<> int g<>(int)
6711 } // namespace cxx17
6713 #endif // __cplusplus < 201703L && !defined _MSC_VER
6718 if ac_fn_cxx_try_compile
"$LINENO"; then :
6719 ax_cv_cxx_compile_cxx17
=yes
6721 ax_cv_cxx_compile_cxx17
=no
6723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
6726 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
6727 if test x
$ax_cv_cxx_compile_cxx17 = xyes
; then
6731 if test x
$ac_success = xno
; then
6732 for alternative
in ${ax_cxx_compile_alternatives}; do
6733 switch
="-std=gnu++${alternative}"
6734 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
6736 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
6737 if eval \
${$cachevar+:} false
; then :
6738 $as_echo_n "(cached) " >&6
6742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6746 // If the compiler admits that it is not ready for C++11, why torture it?
6747 // Hopefully, this will speed up the test.
6751 #error "This is not a C++ compiler"
6753 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6754 // only set it correctly if /Zc:__cplusplus is specified as well as a
6755 // /std:c++NN switch:
6756 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6757 #elif __cplusplus < 201103L && !defined _MSC_VER
6759 #error "This is not a C++11 compiler"
6766 namespace test_static_assert
6769 template <typename T>
6772 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6777 namespace test_final_override
6786 struct Derived : public Base
6788 virtual ~Derived() override {}
6789 virtual void f() override {}
6794 namespace test_double_right_angle_brackets
6797 template < typename T >
6800 typedef check<void> single_type;
6801 typedef check<check<void>> double_type;
6802 typedef check<check<check<void>>> triple_type;
6803 typedef check<check<check<check<void>>>> quadruple_type;
6807 namespace test_decltype
6820 namespace test_type_deduction
6823 template < typename T1, typename T2 >
6826 static const bool value = false;
6829 template < typename T >
6830 struct is_same<T, T>
6832 static const bool value = true;
6835 template < typename T1, typename T2 >
6837 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6843 test(const int c, volatile int v)
6845 static_assert(is_same<int, decltype(0)>::value == true, "");
6846 static_assert(is_same<int, decltype(c)>::value == false, "");
6847 static_assert(is_same<int, decltype(v)>::value == false, "");
6850 auto sumi = ac + av + 'x';
6851 auto sumf = ac + av + 1.0;
6852 static_assert(is_same<int, decltype(ac)>::value == true, "");
6853 static_assert(is_same<int, decltype(av)>::value == true, "");
6854 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6855 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6856 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6857 return (sumf > 0.0) ? sumi : add(c, v);
6862 namespace test_noexcept
6865 int f() { return 0; }
6866 int g() noexcept { return 0; }
6868 static_assert(noexcept(f()) == false, "");
6869 static_assert(noexcept(g()) == true, "");
6873 namespace test_constexpr
6876 template < typename CharT >
6877 unsigned long constexpr
6878 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6880 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6883 template < typename CharT >
6884 unsigned long constexpr
6885 strlen_c(const CharT *const s) noexcept
6887 return strlen_c_r(s, 0UL);
6890 static_assert(strlen_c("") == 0UL, "");
6891 static_assert(strlen_c("1") == 1UL, "");
6892 static_assert(strlen_c("example") == 7UL, "");
6893 static_assert(strlen_c("another\0example") == 7UL, "");
6897 namespace test_rvalue_references
6903 static constexpr int value = N;
6906 answer<1> f(int&) { return answer<1>(); }
6907 answer<2> f(const int&) { return answer<2>(); }
6908 answer<3> f(int&&) { return answer<3>(); }
6915 static_assert(decltype(f(i))::value == 1, "");
6916 static_assert(decltype(f(c))::value == 2, "");
6917 static_assert(decltype(f(0))::value == 3, "");
6922 namespace test_uniform_initialization
6927 static const int zero {};
6928 static const int one {1};
6931 static_assert(test::zero == 0, "");
6932 static_assert(test::one == 1, "");
6936 namespace test_lambdas
6942 auto lambda1 = [](){};
6943 auto lambda2 = lambda1;
6951 auto a = [](int i, int j){ return i + j; }(1, 2);
6952 auto b = []() -> int { return '0'; }();
6953 auto c = [=](){ return a + b; }();
6954 auto d = [&](){ return c; }();
6955 auto e = [a, &b](int x) mutable {
6956 const auto identity = [](int y){ return y; };
6957 for (auto i = 0; i < a; ++i)
6959 return x + identity(a + b);
6961 return a + b + c + d + e;
6967 const auto nullary = [](){ return 0; };
6968 const auto unary = [](int x){ return x; };
6969 using nullary_t = decltype(nullary);
6970 using unary_t = decltype(unary);
6971 const auto higher1st = [](nullary_t f){ return f(); };
6972 const auto higher2nd = [unary](nullary_t f1){
6973 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6975 return higher1st(nullary) + higher2nd(nullary)(unary);
6980 namespace test_variadic_templates
6986 template <int N0, int... N1toN>
6987 struct sum<N0, N1toN...>
6989 static constexpr auto value = N0 + sum<N1toN...>::value;
6995 static constexpr auto value = 0;
6998 static_assert(sum<>::value == 0, "");
6999 static_assert(sum<1>::value == 1, "");
7000 static_assert(sum<23>::value == 23, "");
7001 static_assert(sum<1, 2>::value == 3, "");
7002 static_assert(sum<5, 5, 11>::value == 21, "");
7003 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7007 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7008 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7010 namespace test_template_alias_sfinae
7015 template<typename T>
7016 using member = typename T::member_type;
7018 template<typename T>
7021 template<typename T>
7022 void func(member<T>*) {}
7026 void test() { func<foo>(0); }
7030 } // namespace cxx11
7032 #endif // __cplusplus >= 201103L
7037 // If the compiler admits that it is not ready for C++14, why torture it?
7038 // Hopefully, this will speed up the test.
7042 #error "This is not a C++ compiler"
7044 #elif __cplusplus < 201402L && !defined _MSC_VER
7046 #error "This is not a C++14 compiler"
7053 namespace test_polymorphic_lambdas
7059 const auto lambda = [](auto&&... args){
7060 const auto istiny = [](auto x){
7061 return (sizeof(x) == 1UL) ? 1 : 0;
7063 const int aretiny[] = { istiny(args)... };
7066 return lambda(1, 1L, 1.0f, '1');
7071 namespace test_binary_literals
7074 constexpr auto ivii = 0b0000000000101010;
7075 static_assert(ivii == 42, "wrong value");
7079 namespace test_generalized_constexpr
7082 template < typename CharT >
7083 constexpr unsigned long
7084 strlen_c(const CharT *const s) noexcept
7087 for (auto p = s; *p; ++p)
7092 static_assert(strlen_c("") == 0UL, "");
7093 static_assert(strlen_c("x") == 1UL, "");
7094 static_assert(strlen_c("test") == 4UL, "");
7095 static_assert(strlen_c("another\0test") == 7UL, "");
7099 namespace test_lambda_init_capture
7106 const auto lambda1 = [a = x](int b){ return a + b; };
7107 const auto lambda2 = [a = lambda1(x)](){ return a; };
7113 namespace test_digit_separators
7116 constexpr auto ten_million = 100'000'000;
7117 static_assert(ten_million == 100000000, "");
7121 namespace test_return_type_deduction
7124 auto f(int& x) { return x; }
7125 decltype(auto) g(int& x) { return x; }
7127 template < typename T1, typename T2 >
7130 static constexpr auto value = false;
7133 template < typename T >
7134 struct is_same<T, T>
7136 static constexpr auto value = true;
7143 static_assert(is_same<int, decltype(f(x))>::value, "");
7144 static_assert(is_same<int&, decltype(g(x))>::value, "");
7150 } // namespace cxx14
7152 #endif // __cplusplus >= 201402L
7157 // If the compiler admits that it is not ready for C++17, why torture it?
7158 // Hopefully, this will speed up the test.
7162 #error "This is not a C++ compiler"
7164 #elif __cplusplus < 201703L && !defined _MSC_VER
7166 #error "This is not a C++17 compiler"
7170 #include <initializer_list>
7172 #include <type_traits>
7177 namespace test_constexpr_lambdas
7180 constexpr int foo = [](){return 42;}();
7184 namespace test::nested_namespace::definitions
7189 namespace test_fold_expression
7192 template<typename... Args>
7193 int multiply(Args... args)
7195 return (args * ... * 1);
7198 template<typename... Args>
7199 bool all(Args... args)
7201 return (args && ...);
7206 namespace test_extended_static_assert
7209 static_assert (true);
7213 namespace test_auto_brace_init_list
7219 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
7220 static_assert(std::is_same<int, decltype(bar)>::value);
7223 namespace test_typename_in_template_template_parameter
7226 template<template<typename> typename X> struct D;
7230 namespace test_fallthrough_nodiscard_maybe_unused_attributes
7238 [[nodiscard]] int f2()
7240 [[maybe_unused]] auto unused = f1();
7255 namespace test_extended_aggregate_initialization
7271 struct derived : base1, base2
7276 derived d1 {{1, 2}, {}, 4}; // full initialization
7277 derived d2 {{}, {}, 4}; // value-initialized bases
7281 namespace test_general_range_based_for_loop
7293 const int& operator* () const
7310 bool operator== (const iter& i, const sentinel& s)
7315 bool operator!= (const iter& i, const sentinel& s)
7327 sentinel end() const
7339 [[maybe_unused]] auto v = i;
7345 namespace test_lambda_capture_asterisk_this_by_value
7362 namespace test_enum_class_construction
7365 enum class byte : unsigned char
7372 namespace test_constexpr_if
7375 template <bool cond>
7390 namespace test_selection_statement_with_initializer
7400 if (auto i = f(); i > 0)
7405 switch (auto i = f(); i + 4)
7417 namespace test_template_argument_deduction_for_class_templates
7420 template <typename T1, typename T2>
7434 [[maybe_unused]] auto p = pair{13, 42u};
7439 namespace test_non_type_auto_template_parameters
7451 namespace test_structured_bindings
7454 int arr[2] = { 1, 2 };
7455 std::pair<int, int> pr = { 1, 2 };
7457 auto f1() -> int(&)[2]
7462 auto f2() -> std::pair<int, int>&
7478 auto [ x1, y1 ] = f1();
7479 auto& [ xr1, yr1 ] = f1();
7480 auto [ x2, y2 ] = f2();
7481 auto& [ xr2, yr2 ] = f2();
7482 const auto [ x3, y3 ] = f3();
7486 namespace test_exception_spec_type_system
7495 template<typename T>
7499 template<typename T1, typename T2>
7503 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
7507 namespace test_inline_variables
7510 template<class T> void f(T)
7513 template<class T> inline T g(T)
7518 template<> inline void f<>(int)
7521 template<> int g<>(int)
7528 } // namespace cxx17
7530 #endif // __cplusplus < 201703L && !defined _MSC_VER
7535 if ac_fn_cxx_try_compile
"$LINENO"; then :
7540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7543 eval ac_res
=\$
$cachevar
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7545 $as_echo "$ac_res" >&6; }
7546 if eval test x\$
$cachevar = xyes
; then
7547 CXX_DIALECT
="$switch"
7549 if test -n "$CXXCPP" ; then
7550 CXXCPP
="$CXXCPP $switch"
7558 if test x
$ac_success = xno
; then
7559 for alternative
in ${ax_cxx_compile_alternatives}; do
7560 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
7561 if test x"$switch" = xMSVC; then
7562 switch=-std:c++${alternative}
7563 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
${switch}_MSVC
" | $as_tr_sh`
7565 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
$switch" | $as_tr_sh`
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++17 features with
$switch" >&5
7568 $as_echo_n "checking whether
$CXX supports C
++17 features with
$switch...
" >&6; }
7569 if eval \${$cachevar+:} false; then :
7570 $as_echo_n "(cached
) " >&6
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7578 // If the compiler admits that it is not ready for C++11, why torture it?
7579 // Hopefully, this will speed up the test.
7583 #error "This is not a C
++ compiler
"
7585 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
7586 // only set it correctly if /Zc:__cplusplus is specified as well as a
7587 // /std:c++NN switch:
7588 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
7589 #elif __cplusplus < 201103L && !defined _MSC_VER
7591 #error "This is not a C
++11 compiler
"
7598 namespace test_static_assert
7601 template <typename T>
7604 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7609 namespace test_final_override
7618 struct Derived : public Base
7620 virtual ~Derived() override {}
7621 virtual void f() override {}
7626 namespace test_double_right_angle_brackets
7629 template < typename T >
7632 typedef check<void> single_type;
7633 typedef check<check<void>> double_type;
7634 typedef check<check<check<void>>> triple_type;
7635 typedef check<check<check<check<void>>>> quadruple_type;
7639 namespace test_decltype
7652 namespace test_type_deduction
7655 template < typename T1, typename T2 >
7658 static const bool value = false;
7661 template < typename T >
7662 struct is_same<T, T>
7664 static const bool value = true;
7667 template < typename T1, typename T2 >
7669 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7675 test(const int c, volatile int v)
7677 static_assert(is_same<int, decltype(0)>::value == true, "");
7678 static_assert(is_same<int, decltype(c)>::value == false, "");
7679 static_assert(is_same<int, decltype(v)>::value == false, "");
7682 auto sumi = ac + av + 'x';
7683 auto sumf = ac + av + 1.0;
7684 static_assert(is_same<int, decltype(ac)>::value == true, "");
7685 static_assert(is_same<int, decltype(av)>::value == true, "");
7686 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7687 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7688 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7689 return (sumf > 0.0) ? sumi : add(c, v);
7694 namespace test_noexcept
7697 int f() { return 0; }
7698 int g() noexcept { return 0; }
7700 static_assert(noexcept(f()) == false, "");
7701 static_assert(noexcept(g()) == true, "");
7705 namespace test_constexpr
7708 template < typename CharT >
7709 unsigned long constexpr
7710 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7712 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7715 template < typename CharT >
7716 unsigned long constexpr
7717 strlen_c(const CharT *const s) noexcept
7719 return strlen_c_r(s, 0UL);
7722 static_assert(strlen_c("") == 0UL, "");
7723 static_assert(strlen_c("1") == 1UL, "");
7724 static_assert(strlen_c("example
") == 7UL, "");
7725 static_assert(strlen_c("another\
0example
") == 7UL, "");
7729 namespace test_rvalue_references
7735 static constexpr int value = N;
7738 answer<1> f(int&) { return answer<1>(); }
7739 answer<2> f(const int&) { return answer<2>(); }
7740 answer<3> f(int&&) { return answer<3>(); }
7747 static_assert(decltype(f(i))::value == 1, "");
7748 static_assert(decltype(f(c))::value == 2, "");
7749 static_assert(decltype(f(0))::value == 3, "");
7754 namespace test_uniform_initialization
7759 static const int zero {};
7760 static const int one {1};
7763 static_assert(test::zero == 0, "");
7764 static_assert(test::one == 1, "");
7768 namespace test_lambdas
7774 auto lambda1 = [](){};
7775 auto lambda2 = lambda1;
7783 auto a = [](int i, int j){ return i + j; }(1, 2);
7784 auto b = []() -> int { return '0'; }();
7785 auto c = [=](){ return a + b; }();
7786 auto d = [&](){ return c; }();
7787 auto e = [a, &b](int x) mutable {
7788 const auto identity = [](int y){ return y; };
7789 for (auto i = 0; i < a; ++i)
7791 return x + identity(a + b);
7793 return a + b + c + d + e;
7799 const auto nullary = [](){ return 0; };
7800 const auto unary = [](int x){ return x; };
7801 using nullary_t = decltype(nullary);
7802 using unary_t = decltype(unary);
7803 const auto higher1st = [](nullary_t f){ return f(); };
7804 const auto higher2nd = [unary](nullary_t f1){
7805 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7807 return higher1st(nullary) + higher2nd(nullary)(unary);
7812 namespace test_variadic_templates
7818 template <int N0, int... N1toN>
7819 struct sum<N0, N1toN...>
7821 static constexpr auto value = N0 + sum<N1toN...>::value;
7827 static constexpr auto value = 0;
7830 static_assert(sum<>::value == 0, "");
7831 static_assert(sum<1>::value == 1, "");
7832 static_assert(sum<23>::value == 23, "");
7833 static_assert(sum<1, 2>::value == 3, "");
7834 static_assert(sum<5, 5, 11>::value == 21, "");
7835 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7839 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7840 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7842 namespace test_template_alias_sfinae
7847 template<typename T>
7848 using member = typename T::member_type;
7850 template<typename T>
7853 template<typename T>
7854 void func(member<T>*) {}
7858 void test() { func<foo>(0); }
7862 } // namespace cxx11
7864 #endif // __cplusplus >= 201103L
7869 // If the compiler admits that it is not ready for C++14, why torture it?
7870 // Hopefully, this will speed up the test.
7874 #error "This is not a C
++ compiler
"
7876 #elif __cplusplus < 201402L && !defined _MSC_VER
7878 #error "This is not a C
++14 compiler
"
7885 namespace test_polymorphic_lambdas
7891 const auto lambda = [](auto&&... args){
7892 const auto istiny = [](auto x){
7893 return (sizeof(x) == 1UL) ? 1 : 0;
7895 const int aretiny[] = { istiny(args)... };
7898 return lambda(1, 1L, 1.0f, '1');
7903 namespace test_binary_literals
7906 constexpr auto ivii = 0b0000000000101010;
7907 static_assert(ivii == 42, "wrong value
");
7911 namespace test_generalized_constexpr
7914 template < typename CharT >
7915 constexpr unsigned long
7916 strlen_c(const CharT *const s) noexcept
7919 for (auto p = s; *p; ++p)
7924 static_assert(strlen_c("") == 0UL, "");
7925 static_assert(strlen_c("x
") == 1UL, "");
7926 static_assert(strlen_c("test") == 4UL, "");
7927 static_assert(strlen_c("another\
0test") == 7UL, "");
7931 namespace test_lambda_init_capture
7938 const auto lambda1 = [a = x](int b){ return a + b; };
7939 const auto lambda2 = [a = lambda1(x)](){ return a; };
7945 namespace test_digit_separators
7948 constexpr auto ten_million = 100'000'000;
7949 static_assert(ten_million == 100000000, "");
7953 namespace test_return_type_deduction
7956 auto f(int& x) { return x; }
7957 decltype(auto) g(int& x) { return x; }
7959 template < typename T1, typename T2 >
7962 static constexpr auto value = false;
7965 template < typename T >
7966 struct is_same<T, T>
7968 static constexpr auto value = true;
7975 static_assert(is_same<int, decltype(f(x))>::value, "");
7976 static_assert(is_same<int&, decltype(g(x))>::value, "");
7982 } // namespace cxx14
7984 #endif // __cplusplus >= 201402L
7989 // If the compiler admits that it is not ready for C++17, why torture it?
7990 // Hopefully, this will speed up the test.
7994 #error "This is not a C
++ compiler
"
7996 #elif __cplusplus < 201703L && !defined _MSC_VER
7998 #error "This is not a C
++17 compiler
"
8002 #include <initializer_list>
8004 #include <type_traits>
8009 namespace test_constexpr_lambdas
8012 constexpr int foo = [](){return 42;}();
8016 namespace test::nested_namespace::definitions
8021 namespace test_fold_expression
8024 template<typename... Args>
8025 int multiply(Args... args)
8027 return (args * ... * 1);
8030 template<typename... Args>
8031 bool all(Args... args)
8033 return (args && ...);
8038 namespace test_extended_static_assert
8041 static_assert (true);
8045 namespace test_auto_brace_init_list
8051 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
8052 static_assert(std::is_same<int, decltype(bar)>::value);
8055 namespace test_typename_in_template_template_parameter
8058 template<template<typename> typename X> struct D;
8062 namespace test_fallthrough_nodiscard_maybe_unused_attributes
8070 [[nodiscard]] int f2()
8072 [[maybe_unused]] auto unused = f1();
8087 namespace test_extended_aggregate_initialization
8103 struct derived : base1, base2
8108 derived d1 {{1, 2}, {}, 4}; // full initialization
8109 derived d2 {{}, {}, 4}; // value-initialized bases
8113 namespace test_general_range_based_for_loop
8125 const int& operator* () const
8142 bool operator== (const iter& i, const sentinel& s)
8147 bool operator!= (const iter& i, const sentinel& s)
8159 sentinel end() const
8171 [[maybe_unused]] auto v = i;
8177 namespace test_lambda_capture_asterisk_this_by_value
8194 namespace test_enum_class_construction
8197 enum class byte : unsigned char
8204 namespace test_constexpr_if
8207 template <bool cond>
8222 namespace test_selection_statement_with_initializer
8232 if (auto i = f(); i > 0)
8237 switch (auto i = f(); i + 4)
8249 namespace test_template_argument_deduction_for_class_templates
8252 template <typename T1, typename T2>
8266 [[maybe_unused]] auto p = pair{13, 42u};
8271 namespace test_non_type_auto_template_parameters
8283 namespace test_structured_bindings
8286 int arr[2] = { 1, 2 };
8287 std::pair<int, int> pr = { 1, 2 };
8289 auto f1() -> int(&)[2]
8294 auto f2() -> std::pair<int, int>&
8310 auto [ x1, y1 ] = f1();
8311 auto& [ xr1, yr1 ] = f1();
8312 auto [ x2, y2 ] = f2();
8313 auto& [ xr2, yr2 ] = f2();
8314 const auto [ x3, y3 ] = f3();
8318 namespace test_exception_spec_type_system
8327 template<typename T>
8331 template<typename T1, typename T2>
8335 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
8339 namespace test_inline_variables
8342 template<class T> void f(T)
8345 template<class T> inline T g(T)
8350 template<> inline void f<>(int)
8353 template<> int g<>(int)
8360 } // namespace cxx17
8362 #endif // __cplusplus < 201703L && !defined _MSC_VER
8367 if ac_fn_cxx_try_compile "$LINENO"; then :
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 eval ac_res=\$$cachevar
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8377 $as_echo "$ac_res" >&6; }
8378 if eval test x\$$cachevar = xyes; then
8379 CXX_DIALECT="$switch"
8381 if test -n "$CXXCPP" ; then
8382 CXXCPP="$CXXCPP $switch"
8388 if test x$ac_success = xyes; then
8394 ac_cpp='$CPP $CPPFLAGS'
8395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8399 if test x$ax_cxx_compile_cxx17_required = xtrue; then
8400 if test x$ac_success = xno; then
8401 as_fn_error $? "*** A compiler with support
for C
++17 language features is required.
" "$LINENO" 5
8404 if test x$ac_success = xno; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++17 support was found
" >&5
8407 $as_echo "$as_me: No compiler with C
++17 support was found
" >&6;}
8411 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
8418 # If we haven't got the data from the intl directory,
8419 # assume NLS is disabled.
8428 if test -f ..
/intl
/config.intl
; then
8429 . ..
/intl
/config.intl
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8432 $as_echo_n "checking whether NLS is requested... " >&6; }
8433 if test x
"$USE_NLS" != xyes
; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8438 $as_echo "yes" >&6; }
8440 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8444 $as_echo_n "checking for catalogs to be installed... " >&6; }
8445 # Look for .po and .gmo files in the source directory.
8448 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
8449 # If there aren't any .gmo files the shell will give us the
8450 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8452 case "$cat" in *\
**)
8455 # The quadruple backslash is collapsed to a double backslash
8456 # by the backticks, then collapsed again by the double quotes,
8457 # leaving us with one backslash in the sed expression (right
8458 # before the dot that mustn't act as a wildcard).
8459 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8460 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
8461 # The user is allowed to set LINGUAS to a list of languages to
8462 # install catalogs for. If it's empty that means "all of them."
8463 if test "x$LINGUAS" = x
; then
8464 CATALOGS
="$CATALOGS $cat"
8465 XLINGUAS
="$XLINGUAS $lang"
8467 case "$LINGUAS" in *$lang*)
8468 CATALOGS
="$CATALOGS $cat"
8469 XLINGUAS
="$XLINGUAS $lang"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8476 $as_echo "$LINGUAS" >&6; }
8490 # Check for presence and size of long long.
8491 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
8492 if test "x$ac_cv_type_long_long" = xyes
; then :
8494 cat >>confdefs.h
<<_ACEOF
8495 #define HAVE_LONG_LONG 1
8498 # The cast to long int works around a bug in the HP C Compiler
8499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8501 # This bug is HP SR number 8606223364.
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8503 $as_echo_n "checking size of long long... " >&6; }
8504 if ${ac_cv_sizeof_long_long+:} false
; then :
8505 $as_echo_n "(cached) " >&6
8507 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8510 if test "$ac_cv_type_long_long" = yes; then
8511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8513 as_fn_error
77 "cannot compute sizeof (long long)
8514 See \`config.log' for more details" "$LINENO" 5; }
8516 ac_cv_sizeof_long_long
=0
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8522 $as_echo "$ac_cv_sizeof_long_long" >&6; }
8526 cat >>confdefs.h
<<_ACEOF
8527 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8534 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
8535 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
8536 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
8542 cat >>confdefs.h
<<_ACEOF
8543 #define HAVE_DECL_BASENAME $ac_have_decl
8545 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
8546 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
8552 cat >>confdefs.h
<<_ACEOF
8553 #define HAVE_DECL_FFS $ac_have_decl
8555 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
8556 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
8562 cat >>confdefs.h
<<_ACEOF
8563 #define HAVE_DECL_ASPRINTF $ac_have_decl
8565 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
8566 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
8572 cat >>confdefs.h
<<_ACEOF
8573 #define HAVE_DECL_VASPRINTF $ac_have_decl
8575 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8576 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
8582 cat >>confdefs.h
<<_ACEOF
8583 #define HAVE_DECL_SNPRINTF $ac_have_decl
8585 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
8586 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
8592 cat >>confdefs.h
<<_ACEOF
8593 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8596 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
8597 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
8603 cat >>confdefs.h
<<_ACEOF
8604 #define HAVE_DECL_STRTOL $ac_have_decl
8606 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
8607 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
8613 cat >>confdefs.h
<<_ACEOF
8614 #define HAVE_DECL_STRTOUL $ac_have_decl
8616 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
8617 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
8623 cat >>confdefs.h
<<_ACEOF
8624 #define HAVE_DECL_STRTOLL $ac_have_decl
8626 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
8627 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
8633 cat >>confdefs.h
<<_ACEOF
8634 #define HAVE_DECL_STRTOULL $ac_have_decl
8637 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
8638 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
8644 cat >>confdefs.h
<<_ACEOF
8645 #define HAVE_DECL_STRVERSCMP $ac_have_decl
8649 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8650 if test "x$ac_cv_type_size_t" = xyes
; then :
8654 cat >>confdefs.h
<<_ACEOF
8655 #define size_t unsigned int
8663 for ac_header
in $ac_header_list
8665 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8666 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8668 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8669 cat >>confdefs.h
<<_ACEOF
8670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8683 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8684 if test "x$ac_cv_type_pid_t" = xyes
; then :
8688 cat >>confdefs.h
<<_ACEOF
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8695 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8696 if ${ac_cv_path_SED+:} false
; then :
8697 $as_echo_n "(cached) " >&6
8699 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
8700 for ac_i
in 1 2 3 4 5 6 7; do
8701 ac_script
="$ac_script$as_nl$ac_script"
8703 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
8704 { ac_script
=; unset ac_script
;}
8705 if test -z "$SED"; then
8706 ac_path_SED_found
=false
8707 # Loop through the user's path and test for each of PROGNAME-LIST
8708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8712 test -z "$as_dir" && as_dir
=.
8713 for ac_prog
in sed gsed
; do
8714 for ac_exec_ext
in '' $ac_executable_extensions; do
8715 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
8716 as_fn_executable_p
"$ac_path_SED" ||
continue
8717 # Check for GNU ac_path_SED and select it if it is found.
8718 # Check for GNU $ac_path_SED
8719 case `"$ac_path_SED" --version 2>&1` in
8721 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
8724 $as_echo_n 0123456789 >"conftest.in"
8727 cat "conftest.in" "conftest.in" >"conftest.tmp"
8728 mv "conftest.tmp" "conftest.in"
8729 cp "conftest.in" "conftest.nl"
8730 $as_echo '' >> "conftest.nl"
8731 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
8732 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
8733 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
8734 if test $ac_count -gt ${ac_path_SED_max-0}; then
8735 # Best one so far, save it but keep looking for a better one
8736 ac_cv_path_SED
="$ac_path_SED"
8737 ac_path_SED_max
=$ac_count
8739 # 10*(2^10) chars as input seems more than enough
8740 test $ac_count -gt 10 && break
8742 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
8745 $ac_path_SED_found && break 3
8750 if test -z "$ac_cv_path_SED"; then
8751 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8759 $as_echo "$ac_cv_path_SED" >&6; }
8760 SED
="$ac_cv_path_SED"
8764 if test "X$prefix" = "XNONE"; then
8765 acl_final_prefix
="$ac_default_prefix"
8767 acl_final_prefix
="$prefix"
8769 if test "X$exec_prefix" = "XNONE"; then
8770 acl_final_exec_prefix
='${prefix}'
8772 acl_final_exec_prefix
="$exec_prefix"
8774 acl_save_prefix
="$prefix"
8775 prefix
="$acl_final_prefix"
8776 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8777 prefix
="$acl_save_prefix"
8780 # Check whether --with-gnu-ld was given.
8781 if test "${with_gnu_ld+set}" = set; then :
8782 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8787 # Prepare PATH_SEPARATOR.
8788 # The user is always right.
8789 if test "${PATH_SEPARATOR+set}" != set; then
8790 echo "#! /bin/sh" >conf$$.sh
8791 echo "exit 0" >>conf$$.sh
8793 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8801 if test "$GCC" = yes; then
8802 # Check if gcc -print-prog-name=ld gives a path.
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8804 $as_echo_n "checking for ld used by GCC... " >&6; }
8807 # gcc leaves a trailing carriage return which upsets mingw
8808 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8810 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8813 # Accept absolute paths.
8814 [\\/]* |
[A-Za-z
]:[\\/]*)
8815 re_direlt
='/[^/][^/]*/\.\./'
8816 # Canonicalize the path of ld
8817 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8818 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8819 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8821 test -z "$LD" && LD
="$ac_prog"
8824 # If it fails, then pretend we aren't using GCC.
8828 # If it is relative, then search for the first ld in PATH.
8832 elif test "$with_gnu_ld" = yes; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8834 $as_echo_n "checking for GNU ld... " >&6; }
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8837 $as_echo_n "checking for non-GNU ld... " >&6; }
8839 if ${acl_cv_path_LD+:} false
; then :
8840 $as_echo_n "(cached) " >&6
8842 if test -z "$LD"; then
8843 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8844 for ac_dir
in $PATH; do
8845 test -z "$ac_dir" && ac_dir
=.
8846 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8847 acl_cv_path_LD
="$ac_dir/$ac_prog"
8848 # Check to see if the program is GNU ld. I'd rather use --version,
8849 # but apparently some GNU ld's only accept -v.
8850 # Break only if it was the GNU/non-GNU ld that we prefer.
8851 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
8852 test "$with_gnu_ld" != no
&& break
8854 test "$with_gnu_ld" != yes && break
8860 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8864 LD
="$acl_cv_path_LD"
8865 if test -n "$LD"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8867 $as_echo "$LD" >&6; }
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8872 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8875 if ${acl_cv_prog_gnu_ld+:} false
; then :
8876 $as_echo_n "(cached) " >&6
8878 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8879 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
8880 acl_cv_prog_gnu_ld
=yes
8882 acl_cv_prog_gnu_ld
=no
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8886 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8887 with_gnu_ld
=$acl_cv_prog_gnu_ld
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8892 $as_echo_n "checking for shared library run path origin... " >&6; }
8893 if ${acl_cv_rpath+:} false
; then :
8894 $as_echo_n "(cached) " >&6
8897 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8898 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8905 $as_echo "$acl_cv_rpath" >&6; }
8907 libext
="$acl_cv_libext"
8908 shlibext
="$acl_cv_shlibext"
8909 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8910 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8911 hardcode_direct
="$acl_cv_hardcode_direct"
8912 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8913 # Check whether --enable-rpath was given.
8914 if test "${enable_rpath+set}" = set; then :
8915 enableval
=$enable_rpath; :
8922 # Set the 'development' global.
8923 .
$srcdir/..
/bfd
/development.sh
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8926 $as_echo_n "checking for ANSI C header files... " >&6; }
8927 if ${ac_cv_header_stdc+:} false
; then :
8928 $as_echo_n "(cached) " >&6
8930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8945 if ac_fn_c_try_compile
"$LINENO"; then :
8946 ac_cv_header_stdc
=yes
8948 ac_cv_header_stdc
=no
8950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8952 if test $ac_cv_header_stdc = yes; then
8953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960 $EGREP "memchr" >/dev
/null
2>&1; then :
8963 ac_cv_header_stdc
=no
8969 if test $ac_cv_header_stdc = yes; then
8970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8977 $EGREP "free" >/dev
/null
2>&1; then :
8980 ac_cv_header_stdc
=no
8986 if test $ac_cv_header_stdc = yes; then
8987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8988 if test "$cross_compiling" = yes; then :
8991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8995 #if ((' ' & 0x0FF) == 0x020)
8996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8999 # define ISLOWER(c) \
9000 (('a' <= (c) && (c) <= 'i') \
9001 || ('j' <= (c) && (c) <= 'r') \
9002 || ('s' <= (c) && (c) <= 'z'))
9003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9011 for (i = 0; i < 256; i++)
9012 if (XOR (islower (i), ISLOWER (i))
9013 || toupper (i) != TOUPPER (i))
9018 if ac_fn_c_try_run
"$LINENO"; then :
9021 ac_cv_header_stdc
=no
9023 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9024 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9030 $as_echo "$ac_cv_header_stdc" >&6; }
9031 if test $ac_cv_header_stdc = yes; then
9033 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9037 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9038 # for constant arguments. Useless!
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9040 $as_echo_n "checking for working alloca.h... " >&6; }
9041 if ${ac_cv_working_alloca_h+:} false
; then :
9042 $as_echo_n "(cached) " >&6
9044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9050 char *p = (char *) alloca (2 * sizeof (int));
9056 if ac_fn_c_try_link
"$LINENO"; then :
9057 ac_cv_working_alloca_h
=yes
9059 ac_cv_working_alloca_h
=no
9061 rm -f core conftest.err conftest.
$ac_objext \
9062 conftest
$ac_exeext conftest.
$ac_ext
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9065 $as_echo "$ac_cv_working_alloca_h" >&6; }
9066 if test $ac_cv_working_alloca_h = yes; then
9068 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9073 $as_echo_n "checking for alloca... " >&6; }
9074 if ${ac_cv_func_alloca_works+:} false
; then :
9075 $as_echo_n "(cached) " >&6
9077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9080 # define alloca __builtin_alloca
9083 # include <malloc.h>
9084 # define alloca _alloca
9086 # ifdef HAVE_ALLOCA_H
9087 # include <alloca.h>
9092 # ifndef alloca /* predefined by HP cc +Olibcalls */
9093 void *alloca (size_t);
9103 char *p = (char *) alloca (1);
9109 if ac_fn_c_try_link
"$LINENO"; then :
9110 ac_cv_func_alloca_works
=yes
9112 ac_cv_func_alloca_works
=no
9114 rm -f core conftest.err conftest.
$ac_objext \
9115 conftest
$ac_exeext conftest.
$ac_ext
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9118 $as_echo "$ac_cv_func_alloca_works" >&6; }
9120 if test $ac_cv_func_alloca_works = yes; then
9122 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9125 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9126 # that cause trouble. Some versions do not even contain alloca or
9127 # contain a buggy version. If you still want to use their alloca,
9128 # use ar to extract alloca.o from them instead of compiling alloca.c.
9130 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9132 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9136 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9137 if ${ac_cv_os_cray+:} false
; then :
9138 $as_echo_n "(cached) " >&6
9140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142 #if defined CRAY && ! defined CRAY2
9149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9150 $EGREP "webecray" >/dev
/null
2>&1; then :
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9159 $as_echo "$ac_cv_os_cray" >&6; }
9160 if test $ac_cv_os_cray = yes; then
9161 for ac_func
in _getb67 GETB67 getb67
; do
9162 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9163 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9164 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9166 cat >>confdefs.h
<<_ACEOF
9167 #define CRAY_STACKSEG_END $ac_func
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9177 $as_echo_n "checking stack direction for C alloca... " >&6; }
9178 if ${ac_cv_c_stack_direction+:} false
; then :
9179 $as_echo_n "(cached) " >&6
9181 if test "$cross_compiling" = yes; then :
9182 ac_cv_c_stack_direction
=0
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 $ac_includes_default
9188 find_stack_direction (int *addr, int depth)
9193 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9194 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9199 main (int argc, char **argv)
9201 return find_stack_direction (0, argc + !argv + 20) < 0;
9204 if ac_fn_c_try_run
"$LINENO"; then :
9205 ac_cv_c_stack_direction
=1
9207 ac_cv_c_stack_direction
=-1
9209 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9210 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9215 $as_echo "$ac_cv_c_stack_direction" >&6; }
9216 cat >>confdefs.h
<<_ACEOF
9217 #define STACK_DIRECTION $ac_cv_c_stack_direction
9228 $as_echo "#define USE_WIN32API 1" >>confdefs.h
9230 WIN32APILIBS
="-lws2_32"
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9236 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9237 if ${am_cv_langinfo_codeset+:} false
; then :
9238 $as_echo_n "(cached) " >&6
9240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 #include <langinfo.h>
9246 char* cs = nl_langinfo(CODESET);
9251 if ac_fn_c_try_link
"$LINENO"; then :
9252 am_cv_langinfo_codeset
=yes
9254 am_cv_langinfo_codeset
=no
9256 rm -f core conftest.err conftest.
$ac_objext \
9257 conftest
$ac_exeext conftest.
$ac_ext
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9261 $as_echo "$am_cv_langinfo_codeset" >&6; }
9262 if test $am_cv_langinfo_codeset = yes; then
9264 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9269 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 linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
9271 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9272 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9273 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9274 cat >>confdefs.h
<<_ACEOF
9275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9284 for ac_func
in getpagesize
9286 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9287 if test "x$ac_cv_func_getpagesize" = xyes
; then :
9288 cat >>confdefs.h
<<_ACEOF
9289 #define HAVE_GETPAGESIZE 1
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9296 $as_echo_n "checking for working mmap... " >&6; }
9297 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
9298 $as_echo_n "(cached) " >&6
9300 if test "$cross_compiling" = yes; then :
9301 ac_cv_func_mmap_fixed_mapped
=no
9303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305 $ac_includes_default
9306 /* malloc might have been renamed as rpl_malloc. */
9309 /* Thanks to Mike Haertel and Jim Avera for this test.
9310 Here is a matrix of mmap possibilities:
9311 mmap private not fixed
9312 mmap private fixed at somewhere currently unmapped
9313 mmap private fixed at somewhere already mapped
9314 mmap shared not fixed
9315 mmap shared fixed at somewhere currently unmapped
9316 mmap shared fixed at somewhere already mapped
9317 For private mappings, we should verify that changes cannot be read()
9318 back from the file, nor mmap's back from the file at a different
9319 address. (There have been systems where private was not correctly
9320 implemented like the infamous i386 svr4.0, and systems where the
9321 VM page cache was not coherent with the file system buffer cache
9322 like early versions of FreeBSD and possibly contemporary NetBSD.)
9323 For shared mappings, we should conversely verify that changes get
9324 propagated back to all the places they're supposed to be.
9326 Grep wants private fixed already mapped.
9327 The main things grep needs to know about mmap are:
9328 * does it exist and is it safe to write into the mmap'd area
9329 * how to use it (BSD variants) */
9332 #include <sys/mman.h>
9334 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9338 /* This mess was copied from the GNU getpagesize.h. */
9339 #ifndef HAVE_GETPAGESIZE
9340 # ifdef _SC_PAGESIZE
9341 # define getpagesize() sysconf(_SC_PAGESIZE)
9342 # else /* no _SC_PAGESIZE */
9343 # ifdef HAVE_SYS_PARAM_H
9344 # include <sys/param.h>
9345 # ifdef EXEC_PAGESIZE
9346 # define getpagesize() EXEC_PAGESIZE
9347 # else /* no EXEC_PAGESIZE */
9349 # define getpagesize() NBPG * CLSIZE
9352 # endif /* no CLSIZE */
9353 # else /* no NBPG */
9355 # define getpagesize() NBPC
9356 # else /* no NBPC */
9358 # define getpagesize() PAGESIZE
9359 # endif /* PAGESIZE */
9360 # endif /* no NBPC */
9361 # endif /* no NBPG */
9362 # endif /* no EXEC_PAGESIZE */
9363 # else /* no HAVE_SYS_PARAM_H */
9364 # define getpagesize() 8192 /* punt totally */
9365 # endif /* no HAVE_SYS_PARAM_H */
9366 # endif /* no _SC_PAGESIZE */
9368 #endif /* no HAVE_GETPAGESIZE */
9373 char *data, *data2, *data3;
9378 pagesize = getpagesize ();
9380 /* First, make a file with some known garbage in it. */
9381 data = (char *) malloc (pagesize);
9384 for (i = 0; i < pagesize; ++i)
9385 *(data + i) = rand ();
9387 fd = creat ("conftest.mmap", 0600);
9390 if (write (fd, data, pagesize) != pagesize)
9394 /* Next, check that the tail of a page is zero-filled. File must have
9395 non-zero length, otherwise we risk SIGBUS for entire page. */
9396 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9400 if (write (fd2, cdata2, 1) != 1)
9402 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9403 if (data2 == MAP_FAILED)
9405 for (i = 0; i < pagesize; ++i)
9409 if (munmap (data2, pagesize))
9412 /* Next, try to mmap the file at a fixed address which already has
9413 something else allocated at it. If we can, also make sure that
9414 we see the same garbage. */
9415 fd = open ("conftest.mmap", O_RDWR);
9418 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9419 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9421 for (i = 0; i < pagesize; ++i)
9422 if (*(data + i) != *(data2 + i))
9425 /* Finally, make sure that changes to the mapped area do not
9426 percolate back to the file as seen by read(). (This is a bug on
9427 some variants of i386 svr4.0.) */
9428 for (i = 0; i < pagesize; ++i)
9429 *(data2 + i) = *(data2 + i) + 1;
9430 data3 = (char *) malloc (pagesize);
9433 if (read (fd, data3, pagesize) != pagesize)
9435 for (i = 0; i < pagesize; ++i)
9436 if (*(data + i) != *(data3 + i))
9442 if ac_fn_c_try_run
"$LINENO"; then :
9443 ac_cv_func_mmap_fixed_mapped
=yes
9445 ac_cv_func_mmap_fixed_mapped
=no
9447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9453 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9454 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9456 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9459 rm -f conftest.mmap conftest.txt
9461 for ac_header
in vfork.h
9463 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9464 if test "x$ac_cv_header_vfork_h" = xyes
; then :
9465 cat >>confdefs.h
<<_ACEOF
9466 #define HAVE_VFORK_H 1
9473 for ac_func
in fork vfork
9475 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9476 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9477 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9478 cat >>confdefs.h
<<_ACEOF
9479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9485 if test "x$ac_cv_func_fork" = xyes
; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9487 $as_echo_n "checking for working fork... " >&6; }
9488 if ${ac_cv_func_fork_works+:} false
; then :
9489 $as_echo_n "(cached) " >&6
9491 if test "$cross_compiling" = yes; then :
9492 ac_cv_func_fork_works
=cross
9494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 $ac_includes_default
9501 /* By Ruediger Kuhlmann. */
9508 if ac_fn_c_try_run
"$LINENO"; then :
9509 ac_cv_func_fork_works
=yes
9511 ac_cv_func_fork_works
=no
9513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9519 $as_echo "$ac_cv_func_fork_works" >&6; }
9522 ac_cv_func_fork_works
=$ac_cv_func_fork
9524 if test "x$ac_cv_func_fork_works" = xcross
; then
9526 *-*-amigaos* |
*-*-msdosdjgpp*)
9527 # Override, as these systems have only a dummy fork() stub
9528 ac_cv_func_fork_works
=no
9531 ac_cv_func_fork_works
=yes
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9535 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9537 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9538 if test "x$ac_cv_func_vfork" = xyes
; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9540 $as_echo_n "checking for working vfork... " >&6; }
9541 if ${ac_cv_func_vfork_works+:} false
; then :
9542 $as_echo_n "(cached) " >&6
9544 if test "$cross_compiling" = yes; then :
9545 ac_cv_func_vfork_works
=cross
9547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 /* Thanks to Paul Eggert for this test. */
9550 $ac_includes_default
9551 #include <sys/wait.h>
9555 /* On some sparc systems, changes by the child to local and incoming
9556 argument registers are propagated back to the parent. The compiler
9557 is told about this with #include <vfork.h>, but some compilers
9558 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9559 static variable whose address is put into a register that is
9560 clobbered by the vfork. */
9563 sparc_address_test (int arg)
9565 sparc_address_test (arg) int arg;
9586 pid_t parent = getpid ();
9589 sparc_address_test (0);
9594 /* Here is another test for sparc vfork register problems. This
9595 test uses lots of local variables, at least as many local
9596 variables as main has allocated so far including compiler
9597 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9598 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9599 reuse the register of parent for one of the local variables,
9600 since it will think that parent can't possibly be used any more
9601 in this routine. Assigning to the local variable will thus
9602 munge parent in the parent process. */
9604 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9605 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9606 /* Convince the compiler that p..p7 are live; otherwise, it might
9607 use the same hardware register for all 8 local variables. */
9608 if (p != p1 || p != p2 || p != p3 || p != p4
9609 || p != p5 || p != p6 || p != p7)
9612 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9613 from child file descriptors. If the child closes a descriptor
9614 before it execs or exits, this munges the parent's descriptor
9615 as well. Test for this by closing stdout in the child. */
9616 _exit(close(fileno(stdout)) != 0);
9621 while (wait(&status) != child)
9624 /* Was there some problem with vforking? */
9627 /* Did the child fail? (This shouldn't happen.) */
9630 /* Did the vfork/compiler bug occur? */
9631 || parent != getpid()
9633 /* Did the file descriptor bug occur? */
9634 || fstat(fileno(stdout), &st) != 0
9639 if ac_fn_c_try_run
"$LINENO"; then :
9640 ac_cv_func_vfork_works
=yes
9642 ac_cv_func_vfork_works
=no
9644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9645 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9650 $as_echo "$ac_cv_func_vfork_works" >&6; }
9653 if test "x$ac_cv_func_fork_works" = xcross
; then
9654 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9656 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9659 if test "x$ac_cv_func_vfork_works" = xyes
; then
9661 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9665 $as_echo "#define vfork fork" >>confdefs.h
9668 if test "x$ac_cv_func_fork_works" = xyes
; then
9670 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9674 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9676 $as_echo_n "checking for library containing socketpair... " >&6; }
9677 if ${ac_cv_search_socketpair+:} false
; then :
9678 $as_echo_n "(cached) " >&6
9680 ac_func_search_save_LIBS
=$LIBS
9681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9694 return socketpair ();
9699 for ac_lib
in '' socket
; do
9700 if test -z "$ac_lib"; then
9701 ac_res
="none required"
9704 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9706 if ac_fn_c_try_link
"$LINENO"; then :
9707 ac_cv_search_socketpair
=$ac_res
9709 rm -f core conftest.err conftest.
$ac_objext \
9711 if ${ac_cv_search_socketpair+:} false
; then :
9715 if ${ac_cv_search_socketpair+:} false
; then :
9718 ac_cv_search_socketpair
=no
9721 LIBS
=$ac_func_search_save_LIBS
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9724 $as_echo "$ac_cv_search_socketpair" >&6; }
9725 ac_res
=$ac_cv_search_socketpair
9726 if test "$ac_res" != no
; then :
9727 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9731 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
9732 ptrace64 sbrk setns sigaltstack sigprocmask \
9733 setpgid setpgrp getrusage getauxval sigtimedwait
9735 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9737 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9738 cat >>confdefs.h
<<_ACEOF
9739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9746 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
9747 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
9748 # only in linux/personality.h.
9749 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
9751 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
9757 cat >>confdefs.h
<<_ACEOF
9758 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
9762 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9763 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
9769 cat >>confdefs.h
<<_ACEOF
9770 #define HAVE_DECL_STRSTR $ac_have_decl
9774 # ----------------------- #
9775 # Checks for structures. #
9776 # ----------------------- #
9778 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9779 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
9781 cat >>confdefs.h
<<_ACEOF
9782 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9787 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9788 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
9790 cat >>confdefs.h
<<_ACEOF
9791 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9798 # On FreeBSD we need libutil for the kinfo_get* functions. On
9799 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
9800 # Figure out which one to use.
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
9802 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
9803 if ${ac_cv_search_kinfo_getfile+:} false
; then :
9804 $as_echo_n "(cached) " >&6
9806 ac_func_search_save_LIBS
=$LIBS
9807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9816 char kinfo_getfile ();
9820 return kinfo_getfile ();
9825 for ac_lib
in '' util util-freebsd
; do
9826 if test -z "$ac_lib"; then
9827 ac_res
="none required"
9830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9832 if ac_fn_c_try_link
"$LINENO"; then :
9833 ac_cv_search_kinfo_getfile
=$ac_res
9835 rm -f core conftest.err conftest.
$ac_objext \
9837 if ${ac_cv_search_kinfo_getfile+:} false
; then :
9841 if ${ac_cv_search_kinfo_getfile+:} false
; then :
9844 ac_cv_search_kinfo_getfile
=no
9847 LIBS
=$ac_func_search_save_LIBS
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
9850 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
9851 ac_res
=$ac_cv_search_kinfo_getfile
9852 if test "$ac_res" != no
; then :
9853 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9858 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
9859 for ac_func
in kinfo_getfile
9861 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
9862 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
9863 cat >>confdefs.h
<<_ACEOF
9864 #define HAVE_KINFO_GETFILE 1
9871 # ----------------------- #
9872 # Check for threading. #
9873 # ----------------------- #
9875 # Check whether --enable-threading was given.
9876 if test "${enable_threading+set}" = set; then :
9877 enableval
=$enable_threading; case "$enableval" in
9878 yes) want_threading
=yes ;;
9879 no
) want_threading
=no
;;
9880 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
9887 # Check for std::thread. This does not work on some platforms, like
9890 ac_cpp
='$CXXCPP $CPPFLAGS'
9891 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9892 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9893 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9900 ac_cpp
='$CPP $CPPFLAGS'
9901 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9902 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9903 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9907 # We used to check for pthread.h first, but this fails if pthread.h
9908 # requires special compiler flags (e.g. on Tru64 or Sequent).
9909 # It gets checked for in the link test anyway.
9911 # First of all, check if the user has set any of the PTHREAD_LIBS,
9912 # etcetera environment variables, and if threads linking works using
9914 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9915 ax_pthread_save_CC
="$CC"
9916 ax_pthread_save_CFLAGS
="$CFLAGS"
9917 ax_pthread_save_LIBS
="$LIBS"
9918 if test "x$PTHREAD_CC" != "x"; then :
9921 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9922 LIBS
="$PTHREAD_LIBS $LIBS"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9924 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9928 /* Override any GCC internal prototype to avoid an error.
9929 Use char because int might match the return type of a GCC
9930 builtin and then its argument prototype would still apply. */
9934 char pthread_join ();
9938 return pthread_join ();
9943 if ac_fn_c_try_link
"$LINENO"; then :
9946 rm -f core conftest.err conftest.
$ac_objext \
9947 conftest
$ac_exeext conftest.
$ac_ext
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9949 $as_echo "$ax_pthread_ok" >&6; }
9950 if test "x$ax_pthread_ok" = "xno"; then
9954 CC
="$ax_pthread_save_CC"
9955 CFLAGS
="$ax_pthread_save_CFLAGS"
9956 LIBS
="$ax_pthread_save_LIBS"
9959 # We must check for the threads library under a number of different
9960 # names; the ordering is very important because some systems
9961 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9962 # libraries is broken (non-POSIX).
9964 # Create a list of thread flags to try. Items starting with a "-" are
9965 # C compiler flags, and other items are library names, except for "none"
9966 # which indicates that we try without any flags at all, and "pthread-config"
9967 # which is a program returning the flags for the Pth emulation library.
9969 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9971 # The ordering *is* (sometimes) important. Some notes on the
9972 # individual items follow:
9974 # pthreads: AIX (must check this before -lpthread)
9975 # none: in case threads are in libc; should be tried before -Kthread and
9976 # other compiler flags to prevent continual compiler warnings
9977 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9978 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9979 # (Note: HP C rejects this with "bad form for `-t' option")
9980 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9981 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9982 # doesn't hurt to check since this sometimes defines pthreads and
9983 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9984 # is present but should not be used directly; and before -mthreads,
9985 # because the compiler interprets this as "-mt" + "-hreads")
9986 # -mthreads: Mingw32/gcc, Lynx/gcc
9987 # pthread: Linux, etcetera
9988 # --thread-safe: KAI C++
9989 # pthread-config: use pthread-config program (for GNU Pth library)
9995 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9996 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9998 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10003 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10004 # multi-threading and also sets -lpthread."
10006 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10011 # IBM z/OS requires a feature-test macro to be defined in order to
10012 # enable POSIX threads at all, so give the user a hint if this is
10013 # not set. (We don't define these ourselves, as they can affect
10014 # other portions of the system API in unpredictable ways.)
10016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10019 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10020 AX_PTHREAD_ZOS_MISSING
10024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10025 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10027 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10035 # On Solaris (at least, for some versions), libc contains stubbed
10036 # (non-functional) versions of the pthreads routines, so link-based
10037 # tests will erroneously succeed. (N.B.: The stubs are missing
10038 # pthread_cleanup_push, or rather a function called by this macro,
10039 # so we could check for that, but who knows whether they'll stub
10040 # that too in a future libc.) So we'll check first for the
10041 # standard Solaris way of linking pthreads (-mt -lpthread).
10043 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10047 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10049 if test "x$GCC" = "xyes"; then :
10050 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10053 # The presence of a feature test macro requesting re-entrant function
10054 # definitions is, on some systems, a strong hint that pthreads support is
10055 # correctly enabled
10058 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10059 ax_pthread_check_macro
="_REENTRANT"
10063 ax_pthread_check_macro
="_THREAD_SAFE"
10067 ax_pthread_check_macro
="--"
10070 if test "x$ax_pthread_check_macro" = "x--"; then :
10071 ax_pthread_check_cond
=0
10073 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10076 # Are we compiling with Clang?
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10079 $as_echo_n "checking whether $CC is Clang... " >&6; }
10080 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10081 $as_echo_n "(cached) " >&6
10083 ax_cv_PTHREAD_CLANG
=no
10084 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10085 if test "x$GCC" = "xyes"; then
10086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10089 # if defined(__clang__) && defined(__llvm__)
10090 AX_PTHREAD_CC_IS_CLANG
10094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10095 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10096 ax_cv_PTHREAD_CLANG
=yes
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10104 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10105 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10107 ax_pthread_clang_warning
=no
10109 # Clang needs special handling, because older versions handle the -pthread
10110 # option in a rather... idiosyncratic way
10112 if test "x$ax_pthread_clang" = "xyes"; then
10114 # Clang takes -pthread; it has never supported any other flag
10116 # (Note 1: This will need to be revisited if a system that Clang
10117 # supports has POSIX threads in a separate library. This tends not
10118 # to be the way of modern systems, but it's conceivable.)
10120 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10121 # to get POSIX threads support; the API is always present and
10122 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10123 # -pthread does define _REENTRANT, and while the Darwin headers
10124 # ignore this macro, third-party headers might not.)
10126 PTHREAD_CFLAGS
="-pthread"
10131 # However, older versions of Clang make a point of warning the user
10132 # that, in an invocation where only linking and no compilation is
10133 # taking place, the -pthread option has no effect ("argument unused
10134 # during compilation"). They expect -pthread to be passed in only
10135 # when source code is being compiled.
10137 # Problem is, this is at odds with the way Automake and most other
10138 # C build frameworks function, which is that the same flags used in
10139 # compilation (CFLAGS) are also used in linking. Many systems
10140 # supported by AX_PTHREAD require exactly this for POSIX threads
10141 # support, and in fact it is often not straightforward to specify a
10142 # flag that is used only in the compilation phase and not in
10143 # linking. Such a scenario is extremely rare in practice.
10145 # Even though use of the -pthread flag in linking would only print
10146 # a warning, this can be a nuisance for well-run software projects
10147 # that build with -Werror. So if the active version of Clang has
10148 # this misfeature, we search for an option to squash it.
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10151 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10152 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10153 $as_echo_n "(cached) " >&6
10155 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10156 # Create an alternate version of $ac_link that compiles and
10157 # links in two steps (.c -> .o, .o -> exe) instead of one
10158 # (.c -> exe), because the warning occurs only in the second
10160 ax_pthread_save_ac_link
="$ac_link"
10161 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10162 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10163 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10164 ax_pthread_save_CFLAGS
="$CFLAGS"
10165 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10166 if test "x$ax_pthread_try" = "xunknown"; then :
10169 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10170 ac_link
="$ax_pthread_save_ac_link"
10171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10173 int main(void){return 0;}
10175 if ac_fn_c_try_link
"$LINENO"; then :
10176 ac_link
="$ax_pthread_2step_ac_link"
10177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 int main(void){return 0;}
10181 if ac_fn_c_try_link
"$LINENO"; then :
10184 rm -f core conftest.err conftest.
$ac_objext \
10185 conftest
$ac_exeext conftest.
$ac_ext
10188 rm -f core conftest.err conftest.
$ac_objext \
10189 conftest
$ac_exeext conftest.
$ac_ext
10191 ac_link
="$ax_pthread_save_ac_link"
10192 CFLAGS
="$ax_pthread_save_CFLAGS"
10193 if test "x$ax_pthread_try" = "x"; then :
10196 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10200 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10202 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10204 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10207 fi # $ax_pthread_clang = yes
10209 if test "x$ax_pthread_ok" = "xno"; then
10210 for ax_pthread_try_flag
in $ax_pthread_flags; do
10212 case $ax_pthread_try_flag in
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10215 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10220 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10221 PTHREAD_CFLAGS
="-mt"
10222 PTHREAD_LIBS
="-lpthread"
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10227 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10228 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
10232 # Extract the first word of "pthread-config", so it can be a program name with args.
10233 set dummy pthread-config
; ac_word
=$2
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10235 $as_echo_n "checking for $ac_word... " >&6; }
10236 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
10237 $as_echo_n "(cached) " >&6
10239 if test -n "$ax_pthread_config"; then
10240 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
10242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10243 for as_dir
in $PATH
10246 test -z "$as_dir" && as_dir
=.
10247 for ac_exec_ext
in '' $ac_executable_extensions; do
10248 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10249 ac_cv_prog_ax_pthread_config
="yes"
10250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10257 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
10260 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
10261 if test -n "$ax_pthread_config"; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10263 $as_echo "$ax_pthread_config" >&6; }
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10270 if test "x$ax_pthread_config" = "xno"; then :
10273 PTHREAD_CFLAGS
="`pthread-config --cflags`"
10274 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10279 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10280 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
10284 ax_pthread_save_CFLAGS
="$CFLAGS"
10285 ax_pthread_save_LIBS
="$LIBS"
10286 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10287 LIBS
="$PTHREAD_LIBS $LIBS"
10289 # Check for various functions. We must include pthread.h,
10290 # since some functions may be macros. (On the Sequent, we
10291 # need a special flag -Kthread to make this header compile.)
10292 # We check for pthread_join because it is in -lpthread on IRIX
10293 # while pthread_create is in libc. We check for pthread_attr_init
10294 # due to DEC craziness with -lpthreads. We check for
10295 # pthread_cleanup_push because it is one of the few pthread
10296 # functions on Solaris that doesn't have a non-functional libc stub.
10297 # We try pthread_create on general principles.
10299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301 #include <pthread.h>
10302 # if $ax_pthread_check_cond
10303 # error "$ax_pthread_check_macro must be defined"
10305 static void routine(void *a) { a = 0; }
10306 static void *start_routine(void *a) { return a; }
10310 pthread_t th; pthread_attr_t attr;
10311 pthread_create(&th, 0, start_routine, 0);
10312 pthread_join(th, 0);
10313 pthread_attr_init(&attr);
10314 pthread_cleanup_push(routine, 0);
10315 pthread_cleanup_pop(0) /* ; */
10320 if ac_fn_c_try_link
"$LINENO"; then :
10323 rm -f core conftest.err conftest.
$ac_objext \
10324 conftest
$ac_exeext conftest.
$ac_ext
10326 CFLAGS
="$ax_pthread_save_CFLAGS"
10327 LIBS
="$ax_pthread_save_LIBS"
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10330 $as_echo "$ax_pthread_ok" >&6; }
10331 if test "x$ax_pthread_ok" = "xyes"; then :
10340 # Various other checks:
10341 if test "x$ax_pthread_ok" = "xyes"; then
10342 ax_pthread_save_CFLAGS
="$CFLAGS"
10343 ax_pthread_save_LIBS
="$LIBS"
10344 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10345 LIBS
="$PTHREAD_LIBS $LIBS"
10347 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10349 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10350 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
10351 $as_echo_n "(cached) " >&6
10353 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
10354 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
10355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 #include <pthread.h>
10361 int attr = $ax_pthread_attr; return attr /* ; */
10366 if ac_fn_c_try_link
"$LINENO"; then :
10367 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
10369 rm -f core conftest.err conftest.
$ac_objext \
10370 conftest
$ac_exeext conftest.
$ac_ext
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10375 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10376 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10377 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10378 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10380 cat >>confdefs.h
<<_ACEOF
10381 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10384 ax_pthread_joinable_attr_defined
=yes
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10389 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10390 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
10391 $as_echo_n "(cached) " >&6
10393 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
10396 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10402 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10403 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10404 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10405 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10406 ax_pthread_special_flags_added
=yes
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10410 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10411 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
10412 $as_echo_n "(cached) " >&6
10414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #include <pthread.h>
10420 int i = PTHREAD_PRIO_INHERIT;
10425 if ac_fn_c_try_link
"$LINENO"; then :
10426 ax_cv_PTHREAD_PRIO_INHERIT
=yes
10428 ax_cv_PTHREAD_PRIO_INHERIT
=no
10430 rm -f core conftest.err conftest.
$ac_objext \
10431 conftest
$ac_exeext conftest.
$ac_ext
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10435 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10436 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
10437 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
10439 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10441 ax_pthread_prio_inherit_defined
=yes
10445 CFLAGS
="$ax_pthread_save_CFLAGS"
10446 LIBS
="$ax_pthread_save_LIBS"
10448 # More AIX lossage: compile with *_r variant
10449 if test "x$GCC" != "xyes"; then
10453 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
10454 #handle absolute path differently from PATH based program lookup
10457 if as_fn_executable_p
${CC}_r
; then :
10458 PTHREAD_CC
="${CC}_r"
10461 for ac_prog
in ${CC}_r
10463 # Extract the first word of "$ac_prog", so it can be a program name with args.
10464 set dummy
$ac_prog; ac_word
=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
10468 $as_echo_n "(cached) " >&6
10470 if test -n "$PTHREAD_CC"; then
10471 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
10473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10474 for as_dir
in $PATH
10477 test -z "$as_dir" && as_dir
=.
10478 for ac_exec_ext
in '' $ac_executable_extensions; do
10479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_prog_PTHREAD_CC
="$ac_prog"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
10491 if test -n "$PTHREAD_CC"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10493 $as_echo "$PTHREAD_CC" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10500 test -n "$PTHREAD_CC" && break
10502 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
10513 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
10519 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10520 if test "x$ax_pthread_ok" = "xyes"; then
10528 ac_cpp
='$CXXCPP $CPPFLAGS'
10529 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10535 LIBS
="$PTHREAD_LIBS $LIBS"
10536 save_CXXFLAGS
="$CXXFLAGS"
10537 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
10539 $as_echo_n "checking for std::thread... " >&6; }
10540 if ${gdb_cv_cxx_std_thread+:} false
; then :
10541 $as_echo_n "(cached) " >&6
10543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 #if defined (__MINGW32__) || defined (__CYGWIN__)
10546 # ifdef _WIN32_WINNT
10547 # if _WIN32_WINNT < 0x0501
10548 # undef _WIN32_WINNT
10549 # define _WIN32_WINNT 0x0501
10552 # define _WIN32_WINNT 0x0501
10554 #endif /* __MINGW32__ || __CYGWIN__ */
10556 void callback() { }
10560 std::thread t(callback);
10565 if ac_fn_cxx_try_compile
"$LINENO"; then :
10566 gdb_cv_cxx_std_thread
=yes
10568 gdb_cv_cxx_std_thread
=no
10570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
10573 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
10575 if test "$threads" = "yes"; then
10576 # This check must be here, while LIBS includes any necessary
10577 # threading library.
10578 for ac_func
in pthread_sigmask pthread_setname_np
10580 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10581 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10582 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10583 cat >>confdefs.h
<<_ACEOF
10584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10592 CXXFLAGS
="$save_CXXFLAGS"
10594 if test "$want_threading" = "yes"; then
10595 if test "$gdb_cv_cxx_std_thread" = "yes"; then
10597 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
10602 ac_cpp
='$CPP $CPPFLAGS'
10603 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10604 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10605 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10609 $as_echo_n "checking for sigsetjmp... " >&6; }
10610 if ${gdb_cv_func_sigsetjmp+:} false
; then :
10611 $as_echo_n "(cached) " >&6
10613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 #include <setjmp.h>
10620 while (! sigsetjmp (env, 1))
10621 siglongjmp (env, 1);
10627 if ac_fn_c_try_compile
"$LINENO"; then :
10628 gdb_cv_func_sigsetjmp
=yes
10630 gdb_cv_func_sigsetjmp
=no
10633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10637 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10638 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
10640 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10645 # Check whether --with-intel_pt was given.
10646 if test "${with_intel_pt+set}" = set; then :
10647 withval
=$with_intel_pt;
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10653 $as_echo_n "checking whether to use intel pt... " >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10655 $as_echo "$with_intel_pt" >&6; }
10657 if test "${with_intel_pt}" = no
; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10659 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10665 #include <linux/perf_event.h>
10666 #ifndef PERF_ATTR_SIZE_VER5
10671 if ac_fn_c_try_cpp
"$LINENO"; then :
10676 rm -f conftest.err conftest.i conftest.
$ac_ext
10677 if test "$perf_event" != yes; then
10678 if test "$with_intel_pt" = yes; then
10679 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10682 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10696 acl_save_prefix
="$prefix"
10697 prefix
="$acl_final_prefix"
10698 acl_save_exec_prefix
="$exec_prefix"
10699 exec_prefix
="$acl_final_exec_prefix"
10701 eval additional_includedir
=\"$includedir\"
10702 eval additional_libdir
=\"$libdir\"
10704 exec_prefix
="$acl_save_exec_prefix"
10705 prefix
="$acl_save_prefix"
10708 # Check whether --with-libipt-prefix was given.
10709 if test "${with_libipt_prefix+set}" = set; then :
10710 withval
=$with_libipt_prefix;
10711 if test "X$withval" = "Xno"; then
10714 if test "X$withval" = "X"; then
10716 acl_save_prefix
="$prefix"
10717 prefix
="$acl_final_prefix"
10718 acl_save_exec_prefix
="$exec_prefix"
10719 exec_prefix
="$acl_final_exec_prefix"
10721 eval additional_includedir
=\"$includedir\"
10722 eval additional_libdir
=\"$libdir\"
10724 exec_prefix
="$acl_save_exec_prefix"
10725 prefix
="$acl_save_prefix"
10728 additional_includedir
="$withval/include"
10729 additional_libdir
="$withval/lib"
10736 # Check whether --with-libipt-type was given.
10737 if test "${with_libipt_type+set}" = set; then :
10738 withval
=$with_libipt_type; with_libipt_type
=$withval
10740 with_libipt_type
=auto
10743 lib_type
=`eval echo \$with_libipt_type`
10750 names_already_handled
=
10751 names_next_round
='ipt '
10752 while test -n "$names_next_round"; do
10753 names_this_round
="$names_next_round"
10755 for name
in $names_this_round; do
10757 for n
in $names_already_handled; do
10758 if test "$n" = "$name"; then
10759 already_handled
=yes
10763 if test -z "$already_handled"; then
10764 names_already_handled
="$names_already_handled $name"
10765 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10766 eval value
=\"\
$HAVE_LIB$uppername\"
10767 if test -n "$value"; then
10768 if test "$value" = yes; then
10769 eval value
=\"\
$LIB$uppername\"
10770 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
10771 eval value
=\"\
$LTLIB$uppername\"
10772 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
10781 if test $use_additional = yes; then
10782 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10783 found_dir
="$additional_libdir"
10784 found_so
="$additional_libdir/lib$name.$shlibext"
10785 if test -f "$additional_libdir/lib$name.la"; then
10786 found_la
="$additional_libdir/lib$name.la"
10788 elif test x
$lib_type != xshared
; then
10789 if test -f "$additional_libdir/lib$name.$libext"; then
10790 found_dir
="$additional_libdir"
10791 found_a
="$additional_libdir/lib$name.$libext"
10792 if test -f "$additional_libdir/lib$name.la"; then
10793 found_la
="$additional_libdir/lib$name.la"
10798 if test "X$found_dir" = "X"; then
10799 for x
in $LDFLAGS $LTLIBIPT; do
10801 acl_save_prefix
="$prefix"
10802 prefix
="$acl_final_prefix"
10803 acl_save_exec_prefix
="$exec_prefix"
10804 exec_prefix
="$acl_final_exec_prefix"
10806 exec_prefix
="$acl_save_exec_prefix"
10807 prefix
="$acl_save_prefix"
10811 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10812 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10814 found_so
="$dir/lib$name.$shlibext"
10815 if test -f "$dir/lib$name.la"; then
10816 found_la
="$dir/lib$name.la"
10818 elif test x
$lib_type != xshared
; then
10819 if test -f "$dir/lib$name.$libext"; then
10821 found_a
="$dir/lib$name.$libext"
10822 if test -f "$dir/lib$name.la"; then
10823 found_la
="$dir/lib$name.la"
10829 if test "X$found_dir" != "X"; then
10834 if test "X$found_dir" != "X"; then
10835 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10836 if test "X$found_so" != "X"; then
10837 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10838 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10841 for x
in $ltrpathdirs; do
10842 if test "X$x" = "X$found_dir"; then
10847 if test -z "$haveit"; then
10848 ltrpathdirs
="$ltrpathdirs $found_dir"
10850 if test "$hardcode_direct" = yes; then
10851 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10853 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10854 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10856 for x
in $rpathdirs; do
10857 if test "X$x" = "X$found_dir"; then
10862 if test -z "$haveit"; then
10863 rpathdirs
="$rpathdirs $found_dir"
10867 for x
in $LDFLAGS $LIBIPT; do
10869 acl_save_prefix
="$prefix"
10870 prefix
="$acl_final_prefix"
10871 acl_save_exec_prefix
="$exec_prefix"
10872 exec_prefix
="$acl_final_exec_prefix"
10874 exec_prefix
="$acl_save_exec_prefix"
10875 prefix
="$acl_save_prefix"
10877 if test "X$x" = "X-L$found_dir"; then
10882 if test -z "$haveit"; then
10883 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10885 if test "$hardcode_minus_L" != no
; then
10886 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10888 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10894 if test "X$found_a" != "X"; then
10895 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
10897 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10900 additional_includedir
=
10901 case "$found_dir" in
10903 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10904 additional_includedir
="$basedir/include"
10907 if test "X$additional_includedir" != "X"; then
10908 if test "X$additional_includedir" != "X/usr/include"; then
10910 if test "X$additional_includedir" = "X/usr/local/include"; then
10911 if test -n "$GCC"; then
10913 linux
*) haveit
=yes;;
10917 if test -z "$haveit"; then
10918 for x
in $CPPFLAGS $INCIPT; do
10920 acl_save_prefix
="$prefix"
10921 prefix
="$acl_final_prefix"
10922 acl_save_exec_prefix
="$exec_prefix"
10923 exec_prefix
="$acl_final_exec_prefix"
10925 exec_prefix
="$acl_save_exec_prefix"
10926 prefix
="$acl_save_prefix"
10928 if test "X$x" = "X-I$additional_includedir"; then
10933 if test -z "$haveit"; then
10934 if test -d "$additional_includedir"; then
10935 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10941 if test -n "$found_la"; then
10942 save_libdir
="$libdir"
10943 case "$found_la" in
10944 */* |
*\\*) .
"$found_la" ;;
10945 *) .
"./$found_la" ;;
10947 libdir
="$save_libdir"
10948 for dep
in $dependency_libs; do
10951 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10952 if test "X$additional_libdir" != "X/usr/lib"; then
10954 if test "X$additional_libdir" = "X/usr/local/lib"; then
10955 if test -n "$GCC"; then
10957 linux
*) haveit
=yes;;
10961 if test -z "$haveit"; then
10963 for x
in $LDFLAGS $LIBIPT; do
10965 acl_save_prefix
="$prefix"
10966 prefix
="$acl_final_prefix"
10967 acl_save_exec_prefix
="$exec_prefix"
10968 exec_prefix
="$acl_final_exec_prefix"
10970 exec_prefix
="$acl_save_exec_prefix"
10971 prefix
="$acl_save_prefix"
10973 if test "X$x" = "X-L$additional_libdir"; then
10978 if test -z "$haveit"; then
10979 if test -d "$additional_libdir"; then
10980 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10984 for x
in $LDFLAGS $LTLIBIPT; do
10986 acl_save_prefix
="$prefix"
10987 prefix
="$acl_final_prefix"
10988 acl_save_exec_prefix
="$exec_prefix"
10989 exec_prefix
="$acl_final_exec_prefix"
10991 exec_prefix
="$acl_save_exec_prefix"
10992 prefix
="$acl_save_prefix"
10994 if test "X$x" = "X-L$additional_libdir"; then
10999 if test -z "$haveit"; then
11000 if test -d "$additional_libdir"; then
11001 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11008 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11009 if test "$enable_rpath" != no
; then
11011 for x
in $rpathdirs; do
11012 if test "X$x" = "X$dir"; then
11017 if test -z "$haveit"; then
11018 rpathdirs
="$rpathdirs $dir"
11021 for x
in $ltrpathdirs; do
11022 if test "X$x" = "X$dir"; then
11027 if test -z "$haveit"; then
11028 ltrpathdirs
="$ltrpathdirs $dir"
11033 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11036 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11039 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11040 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11046 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11047 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11048 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11050 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
11051 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
11058 if test "X$rpathdirs" != "X"; then
11059 if test -n "$hardcode_libdir_separator"; then
11061 for found_dir
in $rpathdirs; do
11062 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11064 acl_save_libdir
="$libdir"
11066 eval flag
=\"$hardcode_libdir_flag_spec\"
11067 libdir
="$acl_save_libdir"
11068 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11070 for found_dir
in $rpathdirs; do
11071 acl_save_libdir
="$libdir"
11072 libdir
="$found_dir"
11073 eval flag
=\"$hardcode_libdir_flag_spec\"
11074 libdir
="$acl_save_libdir"
11075 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11079 if test "X$ltrpathdirs" != "X"; then
11080 for found_dir
in $ltrpathdirs; do
11081 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11086 ac_save_CPPFLAGS
="$CPPFLAGS"
11088 for element
in $INCIPT; do
11090 for x
in $CPPFLAGS; do
11092 acl_save_prefix
="$prefix"
11093 prefix
="$acl_final_prefix"
11094 acl_save_exec_prefix
="$exec_prefix"
11095 exec_prefix
="$acl_final_exec_prefix"
11097 exec_prefix
="$acl_save_exec_prefix"
11098 prefix
="$acl_save_prefix"
11100 if test "X$x" = "X$element"; then
11105 if test -z "$haveit"; then
11106 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11112 $as_echo_n "checking for libipt... " >&6; }
11113 if ${ac_cv_libipt+:} false
; then :
11114 $as_echo_n "(cached) " >&6
11117 ac_save_LIBS
="$LIBS"
11118 LIBS
="$LIBS $LIBIPT"
11119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11121 #include "intel-pt.h"
11125 pt_insn_alloc_decoder (0);
11130 if ac_fn_c_try_link
"$LINENO"; then :
11135 rm -f core conftest.err conftest.
$ac_objext \
11136 conftest
$ac_exeext conftest.
$ac_ext
11137 LIBS
="$ac_save_LIBS"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11141 $as_echo "$ac_cv_libipt" >&6; }
11142 if test "$ac_cv_libipt" = yes; then
11145 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11148 $as_echo_n "checking how to link with libipt... " >&6; }
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11150 $as_echo "$LIBIPT" >&6; }
11153 CPPFLAGS
="$ac_save_CPPFLAGS"
11163 if test "$HAVE_LIBIPT" != yes; then
11164 if test "$with_intel_pt" = yes; then
11165 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11168 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11172 LIBS
="$LIBS $LIBIPT"
11173 for ac_func
in pt_insn_event
11175 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11176 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
11177 cat >>confdefs.h
<<_ACEOF
11178 #define HAVE_PT_INSN_EVENT 1
11184 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11186 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
11188 cat >>confdefs.h
<<_ACEOF
11189 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11194 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11196 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
11198 cat >>confdefs.h
<<_ACEOF
11199 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11209 # Check if the compiler and runtime support printing long longs.
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11212 $as_echo_n "checking for long long support in printf... " >&6; }
11213 if ${gdb_cv_printf_has_long_long+:} false
; then :
11214 $as_echo_n "(cached) " >&6
11216 if test "$cross_compiling" = yes; then :
11217 gdb_cv_printf_has_long_long
=no
11219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 $ac_includes_default
11227 l = (l << 16) + 0x0123;
11228 l = (l << 16) + 0x4567;
11229 l = (l << 16) + 0x89ab;
11230 l = (l << 16) + 0xcdef;
11231 sprintf (buf, "0x%016llx", l);
11232 return (strcmp ("0x0123456789abcdef", buf));
11237 if ac_fn_c_try_run
"$LINENO"; then :
11238 gdb_cv_printf_has_long_long
=yes
11240 gdb_cv_printf_has_long_long
=no
11242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11248 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11249 if test "$gdb_cv_printf_has_long_long" = yes; then
11251 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11256 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
11258 for ac_header
in sys
/procfs.h
11260 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
11261 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
11262 cat >>confdefs.h
<<_ACEOF
11263 #define HAVE_SYS_PROCFS_H 1
11270 if test "$ac_cv_header_sys_procfs_h" = yes; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11273 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11274 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
11275 $as_echo_n "(cached) " >&6
11277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11281 #include <sys/procfs.h>
11290 if ac_fn_c_try_compile
"$LINENO"; then :
11291 bfd_cv_have_sys_procfs_type_gregset_t
=yes
11293 bfd_cv_have_sys_procfs_type_gregset_t
=no
11296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11299 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11301 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11305 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11309 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11310 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
11311 $as_echo_n "(cached) " >&6
11313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11317 #include <sys/procfs.h>
11326 if ac_fn_c_try_compile
"$LINENO"; then :
11327 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
11329 bfd_cv_have_sys_procfs_type_fpregset_t
=no
11332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11335 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11337 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11341 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11345 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11346 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
11347 $as_echo_n "(cached) " >&6
11349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11353 #include <sys/procfs.h>
11362 if ac_fn_c_try_compile
"$LINENO"; then :
11363 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
11365 bfd_cv_have_sys_procfs_type_prgregset_t
=no
11368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11371 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11373 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11377 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11381 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11382 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
11383 $as_echo_n "(cached) " >&6
11385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11389 #include <sys/procfs.h>
11398 if ac_fn_c_try_compile
"$LINENO"; then :
11399 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
11401 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
11404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11407 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11409 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11413 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11417 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11418 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
11419 $as_echo_n "(cached) " >&6
11421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11425 #include <sys/procfs.h>
11434 if ac_fn_c_try_compile
"$LINENO"; then :
11435 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
11437 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
11440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11443 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11445 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11449 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11453 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11454 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
11455 $as_echo_n "(cached) " >&6
11457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11461 #include <sys/procfs.h>
11470 if ac_fn_c_try_compile
"$LINENO"; then :
11471 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11473 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11479 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11481 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11485 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11489 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11490 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
11491 $as_echo_n "(cached) " >&6
11493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11497 #include <sys/procfs.h>
11506 if ac_fn_c_try_compile
"$LINENO"; then :
11507 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11509 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11515 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11517 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11521 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
11525 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
11526 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
11527 $as_echo_n "(cached) " >&6
11529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11533 #include <sys/procfs.h>
11537 elf_fpregset_t avar
11542 if ac_fn_c_try_compile
"$LINENO"; then :
11543 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
11545 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
11548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11551 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
11553 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
11557 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
11563 # Check whether --with-xxhash was given.
11564 if test "${with_xxhash+set}" = set; then :
11565 withval
=$with_xxhash;
11571 if test "x$with_xxhash" != "xno"; then
11582 acl_save_prefix
="$prefix"
11583 prefix
="$acl_final_prefix"
11584 acl_save_exec_prefix
="$exec_prefix"
11585 exec_prefix
="$acl_final_exec_prefix"
11587 eval additional_includedir
=\"$includedir\"
11588 eval additional_libdir
=\"$libdir\"
11590 exec_prefix
="$acl_save_exec_prefix"
11591 prefix
="$acl_save_prefix"
11594 # Check whether --with-libxxhash-prefix was given.
11595 if test "${with_libxxhash_prefix+set}" = set; then :
11596 withval
=$with_libxxhash_prefix;
11597 if test "X$withval" = "Xno"; then
11600 if test "X$withval" = "X"; then
11602 acl_save_prefix
="$prefix"
11603 prefix
="$acl_final_prefix"
11604 acl_save_exec_prefix
="$exec_prefix"
11605 exec_prefix
="$acl_final_exec_prefix"
11607 eval additional_includedir
=\"$includedir\"
11608 eval additional_libdir
=\"$libdir\"
11610 exec_prefix
="$acl_save_exec_prefix"
11611 prefix
="$acl_save_prefix"
11614 additional_includedir
="$withval/include"
11615 additional_libdir
="$withval/lib"
11622 # Check whether --with-libxxhash-type was given.
11623 if test "${with_libxxhash_type+set}" = set; then :
11624 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
11626 with_libxxhash_type
=auto
11629 lib_type
=`eval echo \$with_libxxhash_type`
11636 names_already_handled
=
11637 names_next_round
='xxhash '
11638 while test -n "$names_next_round"; do
11639 names_this_round
="$names_next_round"
11641 for name
in $names_this_round; do
11643 for n
in $names_already_handled; do
11644 if test "$n" = "$name"; then
11645 already_handled
=yes
11649 if test -z "$already_handled"; then
11650 names_already_handled
="$names_already_handled $name"
11651 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11652 eval value
=\"\
$HAVE_LIB$uppername\"
11653 if test -n "$value"; then
11654 if test "$value" = yes; then
11655 eval value
=\"\
$LIB$uppername\"
11656 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
11657 eval value
=\"\
$LTLIB$uppername\"
11658 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
11667 if test $use_additional = yes; then
11668 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11669 found_dir
="$additional_libdir"
11670 found_so
="$additional_libdir/lib$name.$shlibext"
11671 if test -f "$additional_libdir/lib$name.la"; then
11672 found_la
="$additional_libdir/lib$name.la"
11674 elif test x
$lib_type != xshared
; then
11675 if test -f "$additional_libdir/lib$name.$libext"; then
11676 found_dir
="$additional_libdir"
11677 found_a
="$additional_libdir/lib$name.$libext"
11678 if test -f "$additional_libdir/lib$name.la"; then
11679 found_la
="$additional_libdir/lib$name.la"
11684 if test "X$found_dir" = "X"; then
11685 for x
in $LDFLAGS $LTLIBXXHASH; do
11687 acl_save_prefix
="$prefix"
11688 prefix
="$acl_final_prefix"
11689 acl_save_exec_prefix
="$exec_prefix"
11690 exec_prefix
="$acl_final_exec_prefix"
11692 exec_prefix
="$acl_save_exec_prefix"
11693 prefix
="$acl_save_prefix"
11697 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11698 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11700 found_so
="$dir/lib$name.$shlibext"
11701 if test -f "$dir/lib$name.la"; then
11702 found_la
="$dir/lib$name.la"
11704 elif test x
$lib_type != xshared
; then
11705 if test -f "$dir/lib$name.$libext"; then
11707 found_a
="$dir/lib$name.$libext"
11708 if test -f "$dir/lib$name.la"; then
11709 found_la
="$dir/lib$name.la"
11715 if test "X$found_dir" != "X"; then
11720 if test "X$found_dir" != "X"; then
11721 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
11722 if test "X$found_so" != "X"; then
11723 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11724 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
11727 for x
in $ltrpathdirs; do
11728 if test "X$x" = "X$found_dir"; then
11733 if test -z "$haveit"; then
11734 ltrpathdirs
="$ltrpathdirs $found_dir"
11736 if test "$hardcode_direct" = yes; then
11737 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
11739 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11740 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
11742 for x
in $rpathdirs; do
11743 if test "X$x" = "X$found_dir"; then
11748 if test -z "$haveit"; then
11749 rpathdirs
="$rpathdirs $found_dir"
11753 for x
in $LDFLAGS $LIBXXHASH; do
11755 acl_save_prefix
="$prefix"
11756 prefix
="$acl_final_prefix"
11757 acl_save_exec_prefix
="$exec_prefix"
11758 exec_prefix
="$acl_final_exec_prefix"
11760 exec_prefix
="$acl_save_exec_prefix"
11761 prefix
="$acl_save_prefix"
11763 if test "X$x" = "X-L$found_dir"; then
11768 if test -z "$haveit"; then
11769 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
11771 if test "$hardcode_minus_L" != no
; then
11772 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
11774 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
11780 if test "X$found_a" != "X"; then
11781 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
11783 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
11786 additional_includedir
=
11787 case "$found_dir" in
11789 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11790 additional_includedir
="$basedir/include"
11793 if test "X$additional_includedir" != "X"; then
11794 if test "X$additional_includedir" != "X/usr/include"; then
11796 if test "X$additional_includedir" = "X/usr/local/include"; then
11797 if test -n "$GCC"; then
11799 linux
*) haveit
=yes;;
11803 if test -z "$haveit"; then
11804 for x
in $CPPFLAGS $INCXXHASH; do
11806 acl_save_prefix
="$prefix"
11807 prefix
="$acl_final_prefix"
11808 acl_save_exec_prefix
="$exec_prefix"
11809 exec_prefix
="$acl_final_exec_prefix"
11811 exec_prefix
="$acl_save_exec_prefix"
11812 prefix
="$acl_save_prefix"
11814 if test "X$x" = "X-I$additional_includedir"; then
11819 if test -z "$haveit"; then
11820 if test -d "$additional_includedir"; then
11821 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
11827 if test -n "$found_la"; then
11828 save_libdir
="$libdir"
11829 case "$found_la" in
11830 */* |
*\\*) .
"$found_la" ;;
11831 *) .
"./$found_la" ;;
11833 libdir
="$save_libdir"
11834 for dep
in $dependency_libs; do
11837 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11838 if test "X$additional_libdir" != "X/usr/lib"; then
11840 if test "X$additional_libdir" = "X/usr/local/lib"; then
11841 if test -n "$GCC"; then
11843 linux
*) haveit
=yes;;
11847 if test -z "$haveit"; then
11849 for x
in $LDFLAGS $LIBXXHASH; do
11851 acl_save_prefix
="$prefix"
11852 prefix
="$acl_final_prefix"
11853 acl_save_exec_prefix
="$exec_prefix"
11854 exec_prefix
="$acl_final_exec_prefix"
11856 exec_prefix
="$acl_save_exec_prefix"
11857 prefix
="$acl_save_prefix"
11859 if test "X$x" = "X-L$additional_libdir"; then
11864 if test -z "$haveit"; then
11865 if test -d "$additional_libdir"; then
11866 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
11870 for x
in $LDFLAGS $LTLIBXXHASH; do
11872 acl_save_prefix
="$prefix"
11873 prefix
="$acl_final_prefix"
11874 acl_save_exec_prefix
="$exec_prefix"
11875 exec_prefix
="$acl_final_exec_prefix"
11877 exec_prefix
="$acl_save_exec_prefix"
11878 prefix
="$acl_save_prefix"
11880 if test "X$x" = "X-L$additional_libdir"; then
11885 if test -z "$haveit"; then
11886 if test -d "$additional_libdir"; then
11887 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
11894 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11895 if test "$enable_rpath" != no
; then
11897 for x
in $rpathdirs; do
11898 if test "X$x" = "X$dir"; then
11903 if test -z "$haveit"; then
11904 rpathdirs
="$rpathdirs $dir"
11907 for x
in $ltrpathdirs; do
11908 if test "X$x" = "X$dir"; then
11913 if test -z "$haveit"; then
11914 ltrpathdirs
="$ltrpathdirs $dir"
11919 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11922 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11925 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
11926 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
11932 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11933 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
11934 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
11936 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
11937 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
11944 if test "X$rpathdirs" != "X"; then
11945 if test -n "$hardcode_libdir_separator"; then
11947 for found_dir
in $rpathdirs; do
11948 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11950 acl_save_libdir
="$libdir"
11952 eval flag
=\"$hardcode_libdir_flag_spec\"
11953 libdir
="$acl_save_libdir"
11954 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
11956 for found_dir
in $rpathdirs; do
11957 acl_save_libdir
="$libdir"
11958 libdir
="$found_dir"
11959 eval flag
=\"$hardcode_libdir_flag_spec\"
11960 libdir
="$acl_save_libdir"
11961 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
11965 if test "X$ltrpathdirs" != "X"; then
11966 for found_dir
in $ltrpathdirs; do
11967 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
11972 ac_save_CPPFLAGS
="$CPPFLAGS"
11974 for element
in $INCXXHASH; do
11976 for x
in $CPPFLAGS; do
11978 acl_save_prefix
="$prefix"
11979 prefix
="$acl_final_prefix"
11980 acl_save_exec_prefix
="$exec_prefix"
11981 exec_prefix
="$acl_final_exec_prefix"
11983 exec_prefix
="$acl_save_exec_prefix"
11984 prefix
="$acl_save_prefix"
11986 if test "X$x" = "X$element"; then
11991 if test -z "$haveit"; then
11992 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
11998 $as_echo_n "checking for libxxhash... " >&6; }
11999 if ${ac_cv_libxxhash+:} false
; then :
12000 $as_echo_n "(cached) " >&6
12003 ac_save_LIBS
="$LIBS"
12004 LIBS
="$LIBS $LIBXXHASH"
12005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007 #include <xxhash.h>
12011 XXH32("foo", 3, 0);
12017 if ac_fn_c_try_link
"$LINENO"; then :
12018 ac_cv_libxxhash
=yes
12022 rm -f core conftest.err conftest.
$ac_objext \
12023 conftest
$ac_exeext conftest.
$ac_ext
12024 LIBS
="$ac_save_LIBS"
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
12028 $as_echo "$ac_cv_libxxhash" >&6; }
12029 if test "$ac_cv_libxxhash" = yes; then
12032 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
12035 $as_echo_n "checking how to link with libxxhash... " >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
12037 $as_echo "$LIBXXHASH" >&6; }
12040 CPPFLAGS
="$ac_save_CPPFLAGS"
12050 if test "$HAVE_LIBXXHASH" != yes; then
12051 if test "$with_xxhash" = yes; then
12052 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
12055 if test "x$with_xxhash" = "xauto"; then
12056 with_xxhash
="$HAVE_LIBXXHASH"
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
12061 $as_echo_n "checking whether to use xxhash... " >&6; }
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
12063 $as_echo "$with_xxhash" >&6; }
12066 # Check whether we will enable the inclusion of unit tests when
12069 # The default value of this option changes depending whether we're on
12070 # development mode (in which case it's "true") or not (in which case
12071 # it's "false"). The $development variable is set by the GDB_AC_COMMON
12072 # macro, which must therefore be used before GDB_AC_SELFTEST.
12074 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
12075 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
12078 # Check whether --enable-unit-tests was given.
12079 if test "${enable_unit_tests+set}" = set; then :
12080 enableval
=$enable_unit_tests; case "${enableval}" in
12081 yes) enable_unittests
=true
;;
12082 no
) enable_unittests
=false
;;
12083 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
12086 enable_unittests
=$development
12090 if $enable_unittests; then
12092 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
12097 if $enable_unittests; then
12106 if test x
$ac_cv_func_pipe = xyes
-o x
$ac_cv_func_pipe2 = xyes
; then
12107 HAVE_PIPE_OR_PIPE2_TRUE
=
12108 HAVE_PIPE_OR_PIPE2_FALSE
='#'
12110 HAVE_PIPE_OR_PIPE2_TRUE
='#'
12111 HAVE_PIPE_OR_PIPE2_FALSE
=
12115 # Check the return and argument types of ptrace.
12118 for ac_header
in sys
/ptrace.h ptrace.h
12120 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12121 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12122 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12123 cat >>confdefs.h
<<_ACEOF
12124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12132 gdb_ptrace_headers
='
12133 #include <sys/types.h>
12134 #if HAVE_SYS_PTRACE_H
12135 # include <sys/ptrace.h>
12138 # include <unistd.h>
12142 # Check return type. Varargs (used on GNU/Linux) conflict with the
12143 # empty argument list, so check for that explicitly.
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12145 $as_echo_n "checking return type of ptrace... " >&6; }
12146 if ${gdb_cv_func_ptrace_ret+:} false
; then :
12147 $as_echo_n "(cached) " >&6
12149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151 Â $gdb_ptrace_headers
12155 extern long ptrace (enum __ptrace_request, ...);
12161 if ac_fn_c_try_compile
"$LINENO"; then :
12162 gdb_cv_func_ptrace_ret
='long'
12164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 $gdb_ptrace_headers
12170 extern int ptrace ();
12176 if ac_fn_c_try_compile
"$LINENO"; then :
12177 gdb_cv_func_ptrace_ret
='int'
12179 gdb_cv_func_ptrace_ret
='long'
12182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12189 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12192 cat >>confdefs.h
<<_ACEOF
12193 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12197 # Check argument types.
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12199 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12200 if ${gdb_cv_func_ptrace_args+:} false
; then :
12201 $as_echo_n "(cached) " >&6
12203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 $gdb_ptrace_headers
12209 extern long ptrace (enum __ptrace_request, ...);
12215 if ac_fn_c_try_compile
"$LINENO"; then :
12216 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
12218 for gdb_arg1
in 'int' 'long'; do
12219 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12220 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12221 for gdb_arg4
in 'int' 'long' 'void *'; do
12222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224 $gdb_ptrace_headers
12228 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12234 if ac_fn_c_try_compile
"$LINENO"; then :
12235 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12241 for gdb_arg5
in 'int *' 'int' 'long'; do
12242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12244 $gdb_ptrace_headers
12248 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12254 if ac_fn_c_try_compile
"$LINENO"; then :
12255 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12265 # Provide a safe default value.
12266 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12273 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12275 ac_save_IFS
=$IFS; IFS
=','
12276 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12280 cat >>confdefs.h
<<_ACEOF
12281 #define PTRACE_TYPE_ARG1 $1
12285 cat >>confdefs.h
<<_ACEOF
12286 #define PTRACE_TYPE_ARG3 $3
12290 cat >>confdefs.h
<<_ACEOF
12291 #define PTRACE_TYPE_ARG4 $4
12294 if test -n "$5"; then
12296 cat >>confdefs.h
<<_ACEOF
12297 #define PTRACE_TYPE_ARG5 $5
12303 # Detect support warning flags.
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
12307 $as_echo_n "checking the compiler type... " >&6; }
12308 if ${gdb_cv_compiler_type+:} false
; then :
12309 $as_echo_n "(cached) " >&6
12311 gdb_cv_compiler_type
=unknown
12312 if test "$gdb_cv_compiler_type" = unknown
; then
12313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12320 #if !defined __GNUC__ || defined __clang__
12328 if ac_fn_c_try_compile
"$LINENO"; then :
12329 gdb_cv_compiler_type
=gcc
12331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12334 if test "$gdb_cv_compiler_type" = unknown
; then
12335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12350 if ac_fn_c_try_compile
"$LINENO"; then :
12351 gdb_cv_compiler_type
=clang
12353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
12358 $as_echo "$gdb_cv_compiler_type" >&6; }
12360 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
12363 # Check whether --enable-werror was given.
12364 if test "${enable_werror+set}" = set; then :
12365 enableval
=$enable_werror; case "${enableval}" in
12366 yes | y
) ERROR_ON_WARNING
="yes" ;;
12367 no | n
) ERROR_ON_WARNING
="no" ;;
12368 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12373 # Enable -Werror by default when using gcc. Turn it off for releases.
12374 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12375 ERROR_ON_WARNING
=yes
12379 if test "${ERROR_ON_WARNING}" = yes ; then
12380 WERROR_CFLAGS
="-Werror"
12383 # The options we'll try to enable.
12384 build_warnings
="-Wall -Wpointer-arith \
12385 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
12386 -Wno-switch -Wno-char-subscripts \
12387 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
12388 -Wno-sign-compare -Wno-error=maybe-uninitialized \
12389 -Wno-mismatched-tags \
12390 -Wno-error=deprecated-register \
12391 -Wsuggest-override \
12392 -Wimplicit-fallthrough=3 \
12393 -Wduplicated-cond \
12395 -Wdeprecated-copy \
12396 -Wdeprecated-copy-dtor \
12398 -Wmissing-declarations \
12399 -Wstrict-null-sentinel \
12402 # The -Wmissing-prototypes flag will be accepted by GCC, but results
12403 # in a warning being printed about the flag not being valid for C++,
12404 # this is something to do with using ccache, and argument ordering.
12405 if test "$GDB_COMPILER_TYPE" != gcc
; then
12406 build_warnings
="$build_warnings -Wmissing-prototypes"
12411 # Enable -Wno-format by default when using gcc on mingw since many
12412 # GCC versions complain about %I64.
12413 build_warnings
="$build_warnings -Wno-format" ;;
12415 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
12416 # doesn't understand.
12417 build_warnings
="$build_warnings -Wno-unknown-pragmas"
12418 # Solaris 11 <unistd.h> marks vfork deprecated.
12419 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
12421 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
12422 # but there's a special case for this below.
12423 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
12426 # Check whether --enable-build-warnings was given.
12427 if test "${enable_build_warnings+set}" = set; then :
12428 enableval
=$enable_build_warnings; case "${enableval}" in
12430 no
) build_warnings
="-w";;
12431 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12432 build_warnings
="${build_warnings} ${t}";;
12433 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12434 build_warnings
="${t} ${build_warnings}";;
12435 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12437 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12438 echo "Setting compiler warning flags = $build_warnings" 6>&1
12441 # Check whether --enable-gdb-build-warnings was given.
12442 if test "${enable_gdb_build_warnings+set}" = set; then :
12443 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
12445 no
) build_warnings
="-w";;
12446 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12447 build_warnings
="${build_warnings} ${t}";;
12448 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12449 build_warnings
="${t} ${build_warnings}";;
12450 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12452 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12453 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12457 # The set of warnings supported by a C++ compiler is not the same as
12458 # of the C compiler.
12460 ac_cpp
='$CXXCPP $CPPFLAGS'
12461 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12462 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12463 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12467 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12470 $as_echo_n "checking compiler warning flags... " >&6; }
12471 # Separate out the -Werror flag as some files just cannot be
12472 # compiled with it enabled.
12473 for w
in ${build_warnings}; do
12474 # GCC does not complain about -Wno-unknown-warning. Invert
12475 # and test -Wunknown-warning instead.
12478 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
12479 -Wformat-nonliteral)
12480 # gcc requires -Wformat before -Wformat-nonliteral
12481 # will work, so stick them together.
12490 -Werr*) WERROR_CFLAGS
=-Werror ;;
12492 # Check whether GCC accepts it.
12493 saved_CFLAGS
="$CFLAGS"
12494 CFLAGS
="$CFLAGS -Werror $wtest"
12495 saved_CXXFLAGS
="$CXXFLAGS"
12496 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
12497 if test "x$w" = "x-Wunused-variable"; then
12498 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
12499 # fixed in GCC 4.9. This test is derived from the gdb
12500 # source code that triggered this bug in GCC.
12501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12503 struct scoped_restore_base {};
12504 struct scoped_restore_tmpl : public scoped_restore_base {
12505 ~scoped_restore_tmpl() {}
12510 const scoped_restore_base &b = scoped_restore_tmpl();
12516 if ac_fn_cxx_try_compile
"$LINENO"; then :
12517 WARN_CFLAGS
="${WARN_CFLAGS} $w"
12519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12532 if ac_fn_cxx_try_compile
"$LINENO"; then :
12533 WARN_CFLAGS
="${WARN_CFLAGS} $w"
12535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12537 CFLAGS
="$saved_CFLAGS"
12538 CXXFLAGS
="$saved_CXXFLAGS"
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12542 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12548 ac_cpp='$CPP $CPPFLAGS'
12549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12555 # Set the 'development' global.
12556 . $srcdir/../bfd/development.sh
12558 if test "$development" = true ; then
12560 $as_echo "#define DEVELOPMENT 1" >>confdefs.h
12567 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12572 CONFIG_STATUS_DEPENDENCIES
='$(srcdir)/../bfd/development.sh'
12575 ac_config_files
="$ac_config_files Makefile"
12577 cat >confcache
<<\_ACEOF
12578 # This file is a shell script that caches the results of configure
12579 # tests run on this system so they can be shared between configure
12580 # scripts and configure runs, see configure's option --config-cache.
12581 # It is not useful on other systems. If it contains results you don't
12582 # want to keep, you may remove or edit it.
12584 # config.status only pays attention to the cache file if you give it
12585 # the --recheck option to rerun configure.
12587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12589 # following values.
12593 # The following way of writing the cache mishandles newlines in values,
12594 # but we know of no workaround that is simple, portable, and efficient.
12595 # So, we kill variables containing newlines.
12596 # Ultrix sh set writes to stderr and can't be redirected directly,
12597 # and sets the high bit in the cache file unless we assign to the vars.
12599 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12600 eval ac_val
=\$
$ac_var
12604 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12608 _ | IFS | as_nl
) ;; #(
12609 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12610 *) { eval $ac_var=; unset $ac_var;} ;;
12616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12617 *${as_nl}ac_space
=\
*)
12618 # `set' does not quote correctly, so add quotes: double-quote
12619 # substitution turns \\\\ into \\, and sed turns \\ into \.
12622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12625 # `set' quotes correctly as required by POSIX, so do not add quotes.
12626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12639 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12640 if test -w "$cache_file"; then
12641 if test "x$cache_file" != "x/dev/null"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12643 $as_echo "$as_me: updating cache $cache_file" >&6;}
12644 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
12645 cat confcache
>"$cache_file"
12647 case $cache_file in #(
12649 mv -f confcache
"$cache_file"$$
&&
12650 mv -f "$cache_file"$$
"$cache_file" ;; #(
12652 mv -f confcache
"$cache_file" ;;
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12658 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12663 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12664 # Let make expand exec_prefix.
12665 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12667 DEFS
=-DHAVE_CONFIG_H
12672 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12673 # 1. Remove the extension, and $U if already installed.
12674 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12675 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12676 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12677 # will be set to the directory where LIBOBJS objects are built.
12678 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12679 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12681 LIBOBJS
=$ac_libobjs
12683 LTLIBOBJS
=$ac_ltlibobjs
12686 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12687 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
12688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12691 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12692 if test -n "$am_sleep_pid"; then
12693 # Hide warnings about reused PIDs.
12694 wait $am_sleep_pid 2>/dev
/null
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12697 $as_echo "done" >&6; }
12698 if test -n "$EXEEXT"; then
12700 am__EXEEXT_FALSE
='#'
12702 am__EXEEXT_TRUE
='#'
12706 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12707 as_fn_error $?
"conditional \"AMDEP\" was never defined.
12708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12710 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12711 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
12712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12714 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12715 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
12716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12718 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
12719 as_fn_error $?
"conditional \"SELFTEST\" was never defined.
12720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12722 if test -z "${HAVE_PIPE_OR_PIPE2_TRUE}" && test -z "${HAVE_PIPE_OR_PIPE2_FALSE}"; then
12723 as_fn_error $?
"conditional \"HAVE_PIPE_OR_PIPE2\" was never defined.
12724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12727 : "${CONFIG_STATUS=./config.status}"
12729 ac_clean_files_save
=$ac_clean_files
12730 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12732 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12734 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12736 # Generated by $as_me.
12737 # Run this file to recreate the current configuration.
12738 # Compiler output produced by configure, useful for debugging
12739 # configure, is in config.log if it exists.
12742 ac_cs_recheck=false
12745 SHELL=\${CONFIG_SHELL-$SHELL}
12748 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12749 ## -------------------- ##
12750 ## M4sh Initialization. ##
12751 ## -------------------- ##
12753 # Be more Bourne compatible
12754 DUALCASE
=1; export DUALCASE
# for MKS sh
12755 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12758 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12759 # is contrary to our usage. Disable this feature.
12760 alias -g '${1+"$@"}'='"$@"'
12761 setopt NO_GLOB_SUBST
12763 case `(set -o) 2>/dev/null` in #(
12775 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12776 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12779 # Prefer a ksh shell builtin over an external printf program on Solaris,
12780 # but without wasting forks for bash or zsh.
12781 if test -z "$BASH_VERSION$ZSH_VERSION" \
12782 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12783 as_echo='print
-r --'
12784 as_echo_n='print
-rn --'
12785 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12786 as_echo='printf %s
\n'
12787 as_echo_n='printf %s
'
12789 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12790 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12791 as_echo_n='/usr
/ucb
/echo -n'
12793 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12794 as_echo_n_body='eval
12798 expr "X$arg" : "X\\(.*\\)$as_nl";
12799 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12801 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12803 export as_echo_n_body
12804 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12806 export as_echo_body
12807 as_echo='sh
-c $as_echo_body as_echo
'
12810 # The user is always right.
12811 if test "${PATH_SEPARATOR+set}" != set; then
12813 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12814 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12821 # We need space, tab and new line, in precisely that order. Quoting is
12822 # there to prevent editors from complaining about space-tab.
12823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12824 # splitting by setting IFS to empty value.)
12827 # Find who we are. Look in the path if we contain no directory separator.
12830 *[\\/]* ) as_myself=$0 ;;
12831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12835 test -z "$as_dir" && as_dir=.
12836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12842 # We did not find ourselves, most probably we were run as `sh COMMAND'
12843 # in which case we are not to be found in the path.
12844 if test "x$as_myself" = x
; then
12847 if test ! -f "$as_myself"; then
12848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12852 # Unset variables that we do not need and which cause bugs (e.g. in
12853 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12854 # suppresses any "Segmentation fault" message there. '((' could
12855 # trigger a bug in pdksh 5.2.14.
12856 for as_var
in BASH_ENV ENV MAIL MAILPATH
12857 do eval test x\
${$as_var+set} = xset \
12858 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12871 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12874 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12875 # ----------------------------------------
12876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12878 # script with STATUS, using 1 if that was 0.
12881 as_status
=$1; test $as_status -eq 0 && as_status
=1
12883 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12886 $as_echo "$as_me: error: $2" >&2
12887 as_fn_exit
$as_status
12891 # as_fn_set_status STATUS
12892 # -----------------------
12893 # Set $? to STATUS, without forking.
12894 as_fn_set_status
()
12897 } # as_fn_set_status
12899 # as_fn_exit STATUS
12900 # -----------------
12901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12905 as_fn_set_status
$1
12911 # Portably unset VAR.
12914 { eval $1=; unset $1;}
12916 as_unset
=as_fn_unset
12917 # as_fn_append VAR VALUE
12918 # ----------------------
12919 # Append the text in VALUE to the end of the definition contained in VAR. Take
12920 # advantage of any shell optimizations that allow amortized linear growth over
12921 # repeated appends, instead of the typical quadratic growth present in naive
12923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12924 eval 'as_fn_append ()
12935 # as_fn_arith ARG...
12936 # ------------------
12937 # Perform arithmetic evaluation on the ARGs, and store the result in the
12938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12939 # must be portable across $(()) and expr.
12940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12941 eval 'as_fn_arith ()
12948 as_val
=`expr "$@" || test $? -eq 1`
12953 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12954 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12960 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12961 as_basename
=basename
12966 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12972 as_me
=`$as_basename -- "$0" ||
12973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12974 X"$0" : 'X\(//\)$' \| \
12975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12977 sed '/^.*\/\([^/][^/]*\)\/*$/{
12991 # Avoid depending upon Character Ranges.
12992 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12993 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12994 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12995 as_cr_digits
='0123456789'
12996 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12998 ECHO_C
= ECHO_N
= ECHO_T
=
12999 case `echo -n x` in #(((((
13001 case `echo 'xy\c'` in
13002 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13004 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13011 rm -f conf$$ conf$$.exe conf$$.
file
13012 if test -d conf$$.dir
; then
13013 rm -f conf$$.dir
/conf$$.
file
13016 mkdir conf$$.dir
2>/dev
/null
13018 if (echo >conf$$.
file) 2>/dev
/null
; then
13019 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13021 # ... but there are two gotchas:
13022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13024 # In both cases, we have to default to `cp -pR'.
13025 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13027 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13035 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13036 rmdir conf$$.dir
2>/dev
/null
13041 # Create "$as_dir" as a directory, including parents if necessary.
13046 -*) as_dir
=.
/$as_dir;;
13048 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13052 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13053 *) as_qdir
=$as_dir;;
13055 as_dirs
="'$as_qdir' $as_dirs"
13056 as_dir
=`$as_dirname -- "$as_dir" ||
13057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13058 X"$as_dir" : 'X\(//\)[^/]' \| \
13059 X"$as_dir" : 'X\(//\)$' \| \
13060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13061 $as_echo X"$as_dir" |
13062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13066 /^X\(\/\/\)[^/].*/{
13079 test -d "$as_dir" && break
13081 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13082 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
13086 if mkdir
-p .
2>/dev
/null
; then
13087 as_mkdir_p
='mkdir -p "$as_dir"'
13089 test -d .
/-p && rmdir .
/-p
13094 # as_fn_executable_p FILE
13095 # -----------------------
13096 # Test if FILE is an executable regular file.
13097 as_fn_executable_p
()
13099 test -f "$1" && test -x "$1"
13100 } # as_fn_executable_p
13101 as_test_x
='test -x'
13102 as_executable_p
=as_fn_executable_p
13104 # Sed expression to map a string onto a valid CPP name.
13105 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13107 # Sed expression to map a string onto a valid variable name.
13108 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13112 ## ----------------------------------- ##
13113 ## Main body of $CONFIG_STATUS script. ##
13114 ## ----------------------------------- ##
13116 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13119 # Save the log message, to keep $0 and so on meaningful, and to
13120 # report actual input values of CONFIG_FILES etc. instead of their
13121 # values after options handling.
13123 This file was extended by gdbsupport $as_me 1.0, which was
13124 generated by GNU Autoconf 2.69. Invocation command line was
13126 CONFIG_FILES = $CONFIG_FILES
13127 CONFIG_HEADERS = $CONFIG_HEADERS
13128 CONFIG_LINKS = $CONFIG_LINKS
13129 CONFIG_COMMANDS = $CONFIG_COMMANDS
13132 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13137 case $ac_config_files in *"
13138 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13141 case $ac_config_headers in *"
13142 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13147 # Files that config.status was made for.
13148 config_files="$ac_config_files"
13149 config_headers="$ac_config_headers"
13150 config_commands="$ac_config_commands"
13154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13156 \`$as_me' instantiates files and other configuration actions
13157 from templates according to the current configuration. Unless the files
13158 and actions are specified as TAGs, all are instantiated by default.
13160 Usage: $0 [OPTION]... [TAG]...
13162 -h, --help print this help, then exit
13163 -V, --version print version number and configuration settings, then exit
13164 --config print configuration, then exit
13165 -q, --quiet, --silent
13166 do not print progress messages
13167 -d, --debug don't remove temporary files
13168 --recheck update $as_me by reconfiguring in the same conditions
13169 --file=FILE[:TEMPLATE]
13170 instantiate the configuration file FILE
13171 --header=FILE[:TEMPLATE]
13172 instantiate the configuration header FILE
13174 Configuration files:
13177 Configuration headers:
13180 Configuration commands:
13183 Report bugs to the package provider."
13186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13187 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13189 gdbsupport config.status 1.0
13190 configured by $0, generated by GNU Autoconf 2.69,
13191 with options \\"\$ac_cs_config\\"
13193 Copyright (C) 2012 Free Software Foundation, Inc.
13194 This config.status script is free software; the Free Software Foundation
13195 gives unlimited permission to copy, distribute and modify it."
13202 test -n "\$AWK" || AWK=awk
13205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13206 # The default lists apply if the user does not specify any file.
13212 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13213 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13217 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13229 # Handling of the options.
13230 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13232 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13233 $as_echo "$ac_cs_version"; exit ;;
13234 --config |
--confi |
--conf |
--con |
--co |
--c )
13235 $as_echo "$ac_cs_config"; exit ;;
13236 --debug |
--debu |
--deb |
--de |
--d |
-d )
13238 --file |
--fil |
--fi |
--f )
13241 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13242 '') as_fn_error $?
"missing file argument" ;;
13244 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13245 ac_need_defaults
=false
;;
13246 --header |
--heade |
--head |
--hea )
13249 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13251 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13252 ac_need_defaults
=false
;;
13254 # Conflict between --help and --header
13255 as_fn_error $?
"ambiguous option: \`$1'
13256 Try \`$0 --help' for more information.";;
13257 --help |
--hel |
-h )
13258 $as_echo "$ac_cs_usage"; exit ;;
13259 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13260 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13263 # This is an error.
13264 -*) as_fn_error $?
"unrecognized option: \`$1'
13265 Try \`$0 --help' for more information." ;;
13267 *) as_fn_append ac_config_targets
" $1"
13268 ac_need_defaults
=false
;;
13274 ac_configure_extra_args
=
13276 if $ac_cs_silent; then
13278 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13283 if \$ac_cs_recheck; then
13284 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13286 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13287 CONFIG_SHELL='$SHELL'
13288 export CONFIG_SHELL
13293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13298 ## Running $as_me. ##
13304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13314 # Handling of arguments.
13315 for ac_config_target
in $ac_config_targets
13317 case $ac_config_target in
13318 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
13319 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13320 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13322 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13327 # If the user did not use the arguments to specify the items to instantiate,
13328 # then the envvar interface is used. Set only those that are not.
13329 # We use the long form for the default assignment because of an extremely
13330 # bizarre bug on SunOS 4.1.3.
13331 if $ac_need_defaults; then
13332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13337 # Have a temporary directory for convenience. Make it in the build tree
13338 # simply because there is no reason against having it here, and in addition,
13339 # creating and moving files from /tmp can sometimes cause problems.
13340 # Hook for its removal unless debugging.
13341 # Note that there is a small window in which the directory will not be cleaned:
13342 # after its creation but before its name has been assigned to `$tmp'.
13346 trap 'exit_status=$?
13347 : "${ac_tmp:=$tmp}"
13348 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13350 trap 'as_fn_exit 1' 1 2 13 15
13352 # Create a (secure) tmp directory for tmp files.
13355 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13359 tmp
=.
/conf$$
-$RANDOM
13360 (umask 077 && mkdir
"$tmp")
13361 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
13364 # Set up the scripts for CONFIG_FILES section.
13365 # No need to generate them if there are no CONFIG_FILES.
13366 # This happens for instance with `./config.status config.h'.
13367 if test -n "$CONFIG_FILES"; then
13370 ac_cr
=`echo X | tr X '\015'`
13371 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13372 # But we know of no other shell where ac_cr would be empty at this
13373 # point, so we can use a bashism as a fallback.
13374 if test "x$ac_cr" = x
; then
13375 eval ac_cr
=\$
\'\\r
\'
13377 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13378 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13381 ac_cs_awk_cr
=$ac_cr
13384 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13389 echo "cat >conf$$subs.awk <<_ACEOF" &&
13390 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13392 } >conf$$subs.sh ||
13393 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13396 for ac_last_try in false false false false false :; do
13397 . ./conf$$subs.sh ||
13398 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13400 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13401 if test $ac_delim_n = $ac_delim_num; then
13403 elif $ac_last_try; then
13404 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13406 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13409 rm -f conf$$subs.sh
13411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13412 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
13416 s/^/S["/; s
/!.
*/"]=/
13426 s/\(.\{148\}\)..*/\1/
13428 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13433 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13440 s/\(.\{148\}\)..*/\1/
13442 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13446 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13451 ' <conf$$subs.awk | sed '
13456 ' >>$CONFIG_STATUS || ac_write_fail=1
13457 rm -f conf$$subs.awk
13458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13460 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
13461 for (key in S) S_is_set[key] = 1
13467 nfields = split(line, field, "@
")
13469 len = length(field[1])
13470 for (i = 2; i < nfields; i++) {
13472 keylen = length(key)
13473 if (S_is_set[key]) {
13475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13476 len += length(value) + length(field[++i])
13487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13488 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13489 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13492 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
13493 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
13496 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13497 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
13498 # trailing colons and then remove the whole line if VPATH becomes empty
13499 # (actually we leave an empty line to preserve line numbers).
13500 if test "x
$srcdir" = x.; then
13501 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13520 fi # test -n "$CONFIG_FILES"
13522 # Set up the scripts for CONFIG_HEADERS section.
13523 # No need to generate them if there are no CONFIG_HEADERS.
13524 # This happens for instance with `./config.status Makefile'.
13525 if test -n "$CONFIG_HEADERS"; then
13526 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
13530 # Transform confdefs.h into an awk script `defines.awk', embedded as
13531 # here-document in config.status, that substitutes the proper values into
13532 # config.h.in to produce config.h.
13534 # Create a delimiter string that does not exist in confdefs.h, to ease
13535 # handling of long lines.
13537 for ac_last_try in false false :; do
13538 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
13539 if test -z "$ac_tt"; then
13541 elif $ac_last_try; then
13542 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
13544 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13548 # For the awk script, D is an array of macro values keyed by name,
13549 # likewise P contains macro parameters if any. Preserve backslash
13550 # newline sequences.
13552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13554 s/.\{148\}/&'"$ac_delim"'/g
13557 s/^[ ]*#[ ]*define[ ][ ]*/ /
13564 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13566 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13571 D["\
1"]=" \
3\\\\\\n
"\\/p
13573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13578 s/.\{148\}/&'"$ac_delim"'/g
13583 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13586 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13588 ' <confdefs.h | sed '
13589 s/'"$ac_delim"'/"\\\
13590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13593 for (key in D) D_is_set[key] = 1
13596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13598 split(line, arg, " ")
13599 if (arg[1] == "#") {
13603 defundef
= substr
(arg
[1], 2)
13606 split(mac1
, mac2
, "(") #)
13608 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13609 if (D_is_set
[macro
]) {
13610 # Preserve the white space surrounding the "#".
13611 print prefix
"define", macro P
[macro
] D
[macro
]
13614 # Replace #undef with comments. This is necessary, for example,
13615 # in the case of _POSIX_SOURCE, which is predefined and required
13616 # on some systems where configure will not decide to define it.
13617 if (defundef
== "undef") {
13618 print
"/*", prefix defundef
, macro
, "*/"
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13627 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
13628 fi # test -n "$CONFIG_HEADERS"
13631 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13636 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13638 case $ac_mode$ac_tag in
13640 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13641 :[FH
]-) ac_tag
=-:-;;
13642 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13659 -) ac_f
="$ac_tmp/stdin";;
13660 *) # Look for the file first in the build tree, then in the source tree
13661 # (if the path is not absolute). The absolute path cannot be DOS-style,
13662 # because $ac_f cannot contain `:'.
13666 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13668 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13670 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13671 as_fn_append ac_file_inputs
" '$ac_f'"
13674 # Let's still pretend it is `configure' which instantiates (i.e., don't
13675 # use $as_me), people would be surprised to read:
13676 # /* config.h. Generated by config.status. */
13677 configure_input
='Generated from '`
13678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13680 if test x
"$ac_file" != x-
; then
13681 configure_input
="$ac_file. $configure_input"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13683 $as_echo "$as_me: creating $ac_file" >&6;}
13685 # Neutralize special characters interpreted by sed in replacement strings.
13686 case $configure_input in #(
13687 *\
&* |
*\|
* |
*\\* )
13688 ac_sed_conf_input
=`$as_echo "$configure_input" |
13689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13690 *) ac_sed_conf_input
=$configure_input;;
13694 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
13695 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
13700 ac_dir
=`$as_dirname -- "$ac_file" ||
13701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13702 X"$ac_file" : 'X\(//\)[^/]' \| \
13703 X"$ac_file" : 'X\(//\)$' \| \
13704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13705 $as_echo X"$ac_file" |
13706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13710 /^X\(\/\/\)[^/].*/{
13723 as_dir
="$ac_dir"; as_fn_mkdir_p
13727 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13729 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13730 # A ".." for each directory in $ac_dir_suffix.
13731 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13732 case $ac_top_builddir_sub in
13733 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13734 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13737 ac_abs_top_builddir
=$ac_pwd
13738 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13739 # for backward compatibility:
13740 ac_top_builddir
=$ac_top_build_prefix
13743 .
) # We are building in place.
13745 ac_top_srcdir
=$ac_top_builddir_sub
13746 ac_abs_top_srcdir
=$ac_pwd ;;
13747 [\\/]* | ?
:[\\/]* ) # Absolute name.
13748 ac_srcdir
=$srcdir$ac_dir_suffix;
13749 ac_top_srcdir
=$srcdir
13750 ac_abs_top_srcdir
=$srcdir ;;
13751 *) # Relative name.
13752 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13753 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13754 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13756 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13766 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13767 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13769 ac_MKDIR_P
=$MKDIR_P
13771 [\\/$
]* | ?
:[\\/]* ) ;;
13772 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13777 # If the template does not know about datarootdir, expand it.
13778 # FIXME: This hack should be removed a few years after 2.60.
13779 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13791 *datarootdir
*) ac_datarootdir_seen
=yes;;
13792 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13797 ac_datarootdir_hack='
13798 s&@datadir@&$datadir&g
13799 s&@docdir@&$docdir&g
13800 s&@infodir@&$infodir&g
13801 s&@localedir@&$localedir&g
13802 s&@mandir@&$mandir&g
13803 s&\\\${datarootdir}&$datarootdir&g' ;;
13807 # Neutralize VPATH when `$srcdir' = `.'.
13808 # Shell code in configure.ac might set extrasub.
13809 # FIXME: do we really want to maintain this feature?
13810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13811 ac_sed_extra="$ac_vpsub
13814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13816 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13817 s|@configure_input@|
$ac_sed_conf_input|
;t t
13818 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13819 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13820 s
&@srcdir@
&$ac_srcdir&;t t
13821 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13822 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13823 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13824 s
&@builddir@
&$ac_builddir&;t t
13825 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13826 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13827 s
&@INSTALL@
&$ac_INSTALL&;t t
13828 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13829 $ac_datarootdir_hack
13831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13832 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13835 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13837 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13839 which seems to be undefined. Please make sure it is defined" >&5
13840 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13841 which seems to be undefined. Please make sure it is defined" >&2;}
13843 rm -f "$ac_tmp/stdin"
13845 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13846 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13854 if test x"$ac_file" != x-; then
13856 $as_echo "/* $configure_input */" \
13857 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13858 } >"$ac_tmp/config.h" \
13859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13860 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13862 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13865 mv "$ac_tmp/config.h" "$ac_file" \
13866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13869 $as_echo "/* $configure_input */" \
13870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13871 || as_fn_error $? "could not create -" "$LINENO" 5
13873 # Compute "$ac_file"'s index
in $config_headers.
13876 for _am_header
in $config_headers :; do
13877 case $_am_header in
13878 $_am_arg |
$_am_arg:* )
13881 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
13884 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13885 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13886 X"$_am_arg" : 'X\(//\)[^/]' \| \
13887 X"$_am_arg" : 'X\(//\)$' \| \
13888 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13889 $as_echo X"$_am_arg" |
13890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13894 /^X\(\/\/\)[^/].*/{
13906 s/.*/./; q'`/stamp-h
$_am_stamp_count
13909 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13910 $as_echo "$as_me: executing $ac_file commands" >&6;}
13915 case $ac_file$ac_mode in
13916 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
13917 # Older Autoconf quotes --file arguments for eval, but not when files
13918 # are listed without --file. Let's play safe and only enable the eval
13919 # if we detect the quoting.
13920 case $CONFIG_FILES in
13921 *\'*) eval set x
"$CONFIG_FILES" ;;
13922 *) set x
$CONFIG_FILES ;;
13927 # Strip MF so we end up with the name of the file.
13928 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13929 # Check whether this is an Automake generated Makefile or not.
13930 # We used to match only the files named 'Makefile.in', but
13931 # some people rename them; so instead we look at the file content.
13932 # Grep'ing the first line is not enough: some people post-process
13933 # each Makefile.in and add a new line on top of each file to say so.
13934 # Grep'ing the whole file is not good either: AIX grep has a line
13935 # limit of 2048, but all sed's we know have understand at least 4000.
13936 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
13937 dirpart
=`$as_dirname -- "$mf" ||
13938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13939 X"$mf" : 'X\(//\)[^/]' \| \
13940 X"$mf" : 'X\(//\)$' \| \
13941 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13947 /^X\(\/\/\)[^/].*/{
13963 # Extract the definition of DEPDIR, am__include, and am__quote
13964 # from the Makefile without running 'make'.
13965 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13966 test -z "$DEPDIR" && continue
13967 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13968 test -z "$am__include" && continue
13969 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13970 # Find all dependency output files, they are included files with
13971 # $(DEPDIR) in their names. We invoke sed twice because it is the
13972 # simplest approach to changing $(DEPDIR) to its actual value in the
13974 for file in `sed -n "
13975 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13976 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13977 # Make sure the directory exists.
13978 test -f "$dirpart/$file" && continue
13979 fdir
=`$as_dirname -- "$file" ||
13980 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13981 X"$file" : 'X\(//\)[^/]' \| \
13982 X"$file" : 'X\(//\)$' \| \
13983 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13984 $as_echo X"$file" |
13985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13989 /^X\(\/\/\)[^/].*/{
14002 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
14003 # echo "creating $dirpart/$file"
14004 echo '# dummy' > "$dirpart/$file"
14016 ac_clean_files
=$ac_clean_files_save
14018 test $ac_write_fail = 0 ||
14019 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14022 # configure is writing to config.log, and then calls config.status.
14023 # config.status does its own redirection, appending to config.log.
14024 # Unfortunately, on DOS this fails, as config.log is still kept open
14025 # by configure, so config.status won't be able to write to it; its
14026 # output is simply discarded. So we exec the FD to /dev/null,
14027 # effectively closing config.log, so it can be properly (re)opened and
14028 # appended to by config.status. When coming back to configure, we
14029 # need to make the FD available again.
14030 if test "$no_create" != yes; then
14032 ac_config_status_args
=
14033 test "$silent" = yes &&
14034 ac_config_status_args
="$ac_config_status_args --quiet"
14036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14039 # would make configure fail if this is the last instruction.
14040 $ac_cs_success || as_fn_exit
1
14042 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14044 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}