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>
624 ac_subst_vars
='am__EXEEXT_FALSE
628 CONFIG_STATUS_DEPENDENCIES
631 HAVE_PIPE_OR_PIPE2_FALSE
632 HAVE_PIPE_OR_PIPE2_TRUE
709 INSTALL_STRIP_PROGRAM
725 MAINTAINER_MODE_FALSE
766 program_transform_name
779 enable_option_checking
780 enable_maintainer_mode
782 enable_dependency_tracking
797 with_libxxhash_prefix
801 enable_build_warnings
802 enable_gdb_build_warnings
804 ac_precious_vars
='build_alias
818 # Initialize some variables set by options.
820 ac_init_version
=false
821 ac_unrecognized_opts
=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name
=s
,x
,x
,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir
='${exec_prefix}/bin'
847 sbindir
='${exec_prefix}/sbin'
848 libexecdir
='${exec_prefix}/libexec'
849 datarootdir
='${prefix}/share'
850 datadir
='${datarootdir}'
851 sysconfdir
='${prefix}/etc'
852 sharedstatedir
='${prefix}/com'
853 localstatedir
='${prefix}/var'
854 includedir
='${prefix}/include'
855 oldincludedir
='/usr/include'
856 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir
='${datarootdir}/info'
862 libdir
='${exec_prefix}/lib'
863 localedir
='${datarootdir}/locale'
864 mandir
='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\
$ac_option
878 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
891 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
894 -build |
--build |
--buil |
--bui |
--bu)
895 ac_prev
=build_alias
;;
896 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
897 build_alias
=$ac_optarg ;;
899 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
900 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
901 ac_prev
=cache_file
;;
902 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
903 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
904 cache_file
=$ac_optarg ;;
907 cache_file
=config.cache
;;
909 -datadir |
--datadir |
--datadi |
--datad)
911 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
912 datadir
=$ac_optarg ;;
914 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
915 |
--dataroo |
--dataro |
--datar)
916 ac_prev
=datarootdir
;;
917 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
918 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
919 datarootdir
=$ac_optarg ;;
921 -disable-* |
--disable-*)
922 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
925 as_fn_error $?
"invalid feature name: $ac_useropt"
926 ac_useropt_orig
=$ac_useropt
927 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep
=', ';;
935 eval enable_
$ac_useropt=no
;;
937 -docdir |
--docdir |
--docdi |
--doc |
--do)
939 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
942 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
944 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
947 -enable-* |
--enable-*)
948 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
951 as_fn_error $?
"invalid feature name: $ac_useropt"
952 ac_useropt_orig
=$ac_useropt
953 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep
=', ';;
961 eval enable_
$ac_useropt=\
$ac_optarg ;;
963 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
964 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
965 |
--exec |
--exe |
--ex)
966 ac_prev
=exec_prefix
;;
967 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
968 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
969 |
--exec=* |
--exe=* |
--ex=*)
970 exec_prefix
=$ac_optarg ;;
972 -gas |
--gas |
--ga |
--g)
973 # Obsolete; use --with-gas.
976 -help |
--help |
--hel |
--he |
-h)
978 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
979 ac_init_help
=recursive
;;
980 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
981 ac_init_help
=short
;;
983 -host |
--host |
--hos |
--ho)
984 ac_prev
=host_alias
;;
985 -host=* |
--host=* |
--hos=* |
--ho=*)
986 host_alias
=$ac_optarg ;;
988 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
990 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
992 htmldir
=$ac_optarg ;;
994 -includedir |
--includedir |
--includedi |
--included |
--include \
995 |
--includ |
--inclu |
--incl |
--inc)
996 ac_prev
=includedir
;;
997 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
998 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
999 includedir
=$ac_optarg ;;
1001 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1003 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1004 infodir
=$ac_optarg ;;
1006 -libdir |
--libdir |
--libdi |
--libd)
1008 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1009 libdir
=$ac_optarg ;;
1011 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1012 |
--libexe |
--libex |
--libe)
1013 ac_prev
=libexecdir
;;
1014 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1015 |
--libexe=* |
--libex=* |
--libe=*)
1016 libexecdir
=$ac_optarg ;;
1018 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1019 ac_prev
=localedir
;;
1020 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1021 localedir
=$ac_optarg ;;
1023 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1024 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1025 ac_prev
=localstatedir
;;
1026 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1027 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1028 localstatedir
=$ac_optarg ;;
1030 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1032 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1033 mandir
=$ac_optarg ;;
1035 -nfp |
--nfp |
--nf)
1036 # Obsolete; use --without-fp.
1039 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1040 |
--no-cr |
--no-c |
-n)
1043 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1044 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1047 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1048 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1049 |
--oldin |
--oldi |
--old |
--ol |
--o)
1050 ac_prev
=oldincludedir
;;
1051 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1052 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1053 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1054 oldincludedir
=$ac_optarg ;;
1056 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1058 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1059 prefix
=$ac_optarg ;;
1061 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1062 |
--program-pre |
--program-pr |
--program-p)
1063 ac_prev
=program_prefix
;;
1064 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1065 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1066 program_prefix
=$ac_optarg ;;
1068 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1069 |
--program-suf |
--program-su |
--program-s)
1070 ac_prev
=program_suffix
;;
1071 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1072 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1073 program_suffix
=$ac_optarg ;;
1075 -program-transform-name |
--program-transform-name \
1076 |
--program-transform-nam |
--program-transform-na \
1077 |
--program-transform-n |
--program-transform- \
1078 |
--program-transform |
--program-transfor \
1079 |
--program-transfo |
--program-transf \
1080 |
--program-trans |
--program-tran \
1081 |
--progr-tra |
--program-tr |
--program-t)
1082 ac_prev
=program_transform_name
;;
1083 -program-transform-name=* |
--program-transform-name=* \
1084 |
--program-transform-nam=* |
--program-transform-na=* \
1085 |
--program-transform-n=* |
--program-transform-=* \
1086 |
--program-transform=* |
--program-transfor=* \
1087 |
--program-transfo=* |
--program-transf=* \
1088 |
--program-trans=* |
--program-tran=* \
1089 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1090 program_transform_name
=$ac_optarg ;;
1092 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1094 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1095 pdfdir
=$ac_optarg ;;
1097 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1099 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1102 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1103 |
-silent |
--silent |
--silen |
--sile |
--sil)
1106 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1108 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1110 sbindir
=$ac_optarg ;;
1112 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1113 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1114 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1116 ac_prev
=sharedstatedir
;;
1117 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1118 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1119 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1121 sharedstatedir
=$ac_optarg ;;
1123 -site |
--site |
--sit)
1125 -site=* |
--site=* |
--sit=*)
1128 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1130 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1131 srcdir
=$ac_optarg ;;
1133 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1134 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1135 ac_prev
=sysconfdir
;;
1136 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1137 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1138 sysconfdir
=$ac_optarg ;;
1140 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1141 ac_prev
=target_alias
;;
1142 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1143 target_alias
=$ac_optarg ;;
1145 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1148 -version |
--version |
--versio |
--versi |
--vers |
-V)
1149 ac_init_version
=: ;;
1152 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1155 as_fn_error $?
"invalid package name: $ac_useropt"
1156 ac_useropt_orig
=$ac_useropt
1157 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1162 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep
=', ';;
1165 eval with_
$ac_useropt=\
$ac_optarg ;;
1167 -without-* |
--without-*)
1168 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1171 as_fn_error $?
"invalid package name: $ac_useropt"
1172 ac_useropt_orig
=$ac_useropt
1173 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1178 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep
=', ';;
1181 eval with_
$ac_useropt=no
;;
1184 # Obsolete; use --with-x.
1187 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1188 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1189 ac_prev
=x_includes
;;
1190 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1191 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1192 x_includes
=$ac_optarg ;;
1194 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1195 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1196 ac_prev
=x_libraries
;;
1197 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1198 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1199 x_libraries
=$ac_optarg ;;
1201 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1206 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1210 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1212 eval $ac_envvar=\
$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 if test -n "$ac_prev"; then
1227 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $?
"missing argument to $ac_option"
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1234 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 # Check all directory arguments for consistency.
1240 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1245 eval ac_val
=\$
$ac_var
1246 # Remove trailing slashes.
1249 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\
$ac_val;;
1252 # Be sure to have absolute directory names.
1254 [\\/$
]* | ?
:[\\/]* ) continue;;
1255 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1257 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1265 target
=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x
; then
1269 if test "x$build_alias" = x
; then
1270 cross_compiling
=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1277 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1279 test "$silent" = yes && exec 6>/dev
/null
1282 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di
=`ls -di .` &&
1284 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $?
"working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $?
"pwd does not report name of working directory"
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted
=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir
=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1322 ac_srcdir_defaulted
=no
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1326 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1328 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1340 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 for ac_var
in $ac_precious_vars; do
1343 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1345 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1356 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1419 --build=BUILD configure
for building on BUILD
[guessed
]
1420 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1421 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive
) echo "Configuration of gdbsupport 1.0:";;
1432 --disable-option-checking ignore unrecognized
--enable/--with options
1433 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1434 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1435 --enable-maintainer-mode
1436 enable make rules and dependencies not useful
(and
1437 sometimes confusing
) to the casual installer
1438 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1439 --disable-silent-rules verbose build output
(undo
: "make V=0")
1440 --enable-dependency-tracking
1441 do not reject slow dependency extractors
1442 --disable-dependency-tracking
1443 speeds up one-time build
1444 --enable-plugins Enable support
for plugins
1445 --disable-largefile omit support
for large files
1446 --disable-nls do not use Native Language Support
1447 --disable-rpath do not hardcode runtime library paths
1448 --enable-threading include support
for parallel processing of data
1450 --enable-unit-tests Enable the inclusion of unit tests when compiling
1452 --enable-werror treat compile warnings as errors
1453 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1454 --enable-gdb-build-warnings
1455 enable GDB specific build-time compiler warnings
if
1459 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1460 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1461 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1462 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1463 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1464 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1465 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1466 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1467 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1468 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1469 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1470 --without-libipt-prefix don
't search for libipt in includedir and libdir
1471 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1472 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1473 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1474 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1475 --with-libxxhash-type=TYPE
type of library to search
for (auto
/static
/shared
)
1477 Some influential environment variables
:
1478 CC C compiler
command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1481 nonstandard directory
<lib dir
>
1482 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1483 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1484 you have headers
in a nonstandard directory
<include dir
>
1485 CXX C
++ compiler
command
1486 CXXFLAGS C
++ compiler flags
1489 Use these variables to override the choices made by
`configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to the package provider.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1555 gdbsupport configure 1.0
1556 generated by GNU Autoconf 2.69
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1579 *) ac_try_echo
=$ac_try;;
1581 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1585 if test -s conftest.err
; then
1586 grep -v '^ *+' conftest.err
>conftest.er1
1587 cat conftest.er1
>&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.
$ac_objext; then :
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.
$ac_ext >&5
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status
$ac_retval
1605 } # ac_fn_c_try_compile
1607 # ac_fn_cxx_try_compile LINENO
1608 # ----------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_cxx_try_compile
()
1612 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1613 rm -f conftest.
$ac_objext
1614 if { { ac_try
="$ac_compile"
1616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_cxx_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1643 } # ac_fn_cxx_try_compile
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1654 *) ac_try_echo
=$ac_try;;
1656 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 if test -s conftest.err
; then
1661 grep -v '^ *+' conftest.err
>conftest.er1
1662 cat conftest.er1
>&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } > conftest.i
&& {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.
$ac_ext >&5
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status
$ac_retval
1682 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685 # the include files in INCLUDES and setting the cache variable VAR
1687 ac_fn_c_check_header_mongrel
()
1689 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1690 if eval \
${$3+:} false
; then :
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \
${$3+:} false
; then :
1694 $as_echo_n "(cached) " >&6
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1700 # Is the header compilable?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702 $as_echo_n "checking $2 usability... " >&6; }
1703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1708 if ac_fn_c_try_compile
"$LINENO"; then :
1709 ac_header_compiler
=yes
1711 ac_header_compiler
=no
1713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715 $as_echo "$ac_header_compiler" >&6; }
1717 # Is the header present?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719 $as_echo_n "checking $2 presence... " >&6; }
1720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1724 if ac_fn_c_try_cpp
"$LINENO"; then :
1725 ac_header_preproc
=yes
1727 ac_header_preproc
=no
1729 rm -f conftest.err conftest.i conftest.
$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731 $as_echo "$ac_header_preproc" >&6; }
1733 # So? What about this header?
1734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1745 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1749 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \
${$3+:} false
; then :
1757 $as_echo_n "(cached) " >&6
1759 eval "$3=\$ac_header_compiler"
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 } # ac_fn_c_check_header_mongrel
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1775 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1776 if { { ac_try
="$ac_link"
1778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>&5
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787 { { case "(($ac_try" in
1788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1789 *) ac_try_echo
=$ac_try;;
1791 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_try") 2>&5
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; }; }; then :
1799 $as_echo "$as_me: program exited with status $ac_status" >&5
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.
$ac_ext >&5
1803 ac_retval
=$ac_status
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status
$ac_retval
1811 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1812 # -------------------------------------------------------
1813 # Tests whether HEADER exists and can be compiled using the include files in
1814 # INCLUDES, setting the cache variable VAR accordingly.
1815 ac_fn_c_check_header_compile
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \
${$3+:} false
; then :
1821 $as_echo_n "(cached) " >&6
1823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1828 if ac_fn_c_try_compile
"$LINENO"; then :
1833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 } # ac_fn_c_check_header_compile
1842 # ac_fn_c_try_link LINENO
1843 # -----------------------
1844 # Try to link conftest.$ac_ext, and return whether this succeeded.
1847 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1848 rm -f conftest.
$ac_objext conftest
$ac_exeext
1849 if { { ac_try
="$ac_link"
1851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 test -x conftest$ac_exeext
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1886 } # ac_fn_c_try_link
1888 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1889 # -------------------------------------------
1890 # Tests whether TYPE exists after having included INCLUDES, setting cache
1891 # variable VAR accordingly.
1892 ac_fn_c_check_type ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1926 if ac_fn_c_try_compile "$LINENO"; then :
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_type
1942 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1943 # --------------------------------------------
1944 # Tries to find the compile-time value of EXPR in a program that includes
1945 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1947 ac_fn_c_compute_int ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if test "$cross_compiling" = yes; then
1951 # Depending upon the size, compute the lo and hi bounds.
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1958 static int test_array [1 - 2 * !(($2) >= 0)];
1960 return test_array [0];
1966 if ac_fn_c_try_compile "$LINENO"; then :
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1975 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1977 return test_array [0];
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 ac_hi=$ac_mid; break
1986 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1987 if test $ac_lo -le $ac_mid; then
1991 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2002 static int test_array [1 - 2 * !(($2) < 0)];
2004 return test_array [0];
2010 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2021 return test_array [0];
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_lo=$ac_mid; break
2030 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2031 if test $ac_mid -le $ac_hi; then
2035 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 # Binary search between lo and hi bounds.
2046 while test "x$ac_lo" != "x$ac_hi"; do
2047 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2054 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2056 return test_array [0];
2062 if ac_fn_c_try_compile "$LINENO"; then :
2065 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2077 static long int longval () { return $2; }
2078 static unsigned long int ulongval () { return $2; }
2085 FILE *f = fopen ("conftest.val", "w");
2090 long int i = longval ();
2093 fprintf (f, "%ld", i);
2097 unsigned long int i = ulongval ();
2100 fprintf (f, "%lu", i);
2102 /* Do not output a trailing newline, as this causes \r\n confusion
2103 on some platforms. */
2104 return ferror (f) || fclose (f) != 0;
2110 if ac_fn_c_try_run "$LINENO"; then :
2111 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2116 conftest.$ac_objext conftest.beam conftest.$ac_ext
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
2123 } # ac_fn_c_compute_int
2125 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2126 # ---------------------------------------------
2127 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2129 ac_fn_c_check_decl ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2133 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2135 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2136 if eval \${$3+:} false; then :
2137 $as_echo_n "(cached) " >&6
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 #ifndef $as_decl_name
2147 (void) $as_decl_use;
2149 (void) $as_decl_name;
2157 if ac_fn_c_try_compile "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_decl
2171 # ac_fn_c_check_func LINENO FUNC VAR
2172 # ----------------------------------
2173 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2174 ac_fn_c_check_func ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2186 #define $2 innocuous_$2
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $2 (); below.
2190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191 <limits.h> exists even on freestanding compilers. */
2194 # include <limits.h>
2196 # include <assert.h>
2201 /* Override any GCC internal prototype to avoid an error.
2202 Use char because int might match the return type of a GCC
2203 builtin and then its argument prototype would still apply. */
2208 /* The GNU C library defines this for functions which it implements
2209 to always fail with ENOSYS. Some functions are actually named
2210 something starting with __ and the normal name is an alias. */
2211 #if defined __stub_$2 || defined __stub___$2
2223 if ac_fn_c_try_link "$LINENO"; then :
2228 rm -f core conftest.err conftest.$ac_objext \
2229 conftest$ac_exeext conftest.$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 } # ac_fn_c_check_func
2238 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2239 # ----------------------------------------------------
2240 # Tries to find if the field MEMBER exists in type AGGR, after including
2241 # INCLUDES, setting cache variable VAR accordingly.
2242 ac_fn_c_check_member ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2246 $as_echo_n "checking for $2.$3... " >&6; }
2247 if eval \${$4+:} false; then :
2248 $as_echo_n "(cached) " >&6
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2263 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2273 if (sizeof ac_aggr.$3)
2279 if ac_fn_c_try_compile "$LINENO"; then :
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 } # ac_fn_c_check_member
2295 # ac_fn_cxx_try_link LINENO
2296 # -------------------------
2297 # Try to link conftest.$ac_ext, and return whether this succeeded.
2298 ac_fn_cxx_try_link ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 rm -f conftest.$ac_objext conftest$ac_exeext
2302 if { { ac_try="$ac_link"
2304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2305 *) ac_try_echo
=$ac_try;;
2307 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>conftest.err
2311 if test -s conftest.err
; then
2312 grep -v '^ *+' conftest.err
>conftest.er1
2313 cat conftest.er1
>&5
2314 mv -f conftest.er1 conftest.err
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && {
2318 test -z "$ac_cxx_werror_flag" ||
2319 test ! -s conftest.err
2320 } && test -s conftest
$ac_exeext && {
2321 test "$cross_compiling" = yes ||
2322 test -x conftest
$ac_exeext
2326 $as_echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.
$ac_ext >&5
2331 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2332 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2333 # interfere with the next link command; also delete a directory that is
2334 # left behind by Apple's compiler. We do this before executing the actions.
2335 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 as_fn_set_status
$ac_retval
2339 } # ac_fn_cxx_try_link
2341 # ac_fn_cxx_check_func LINENO FUNC VAR
2342 # ------------------------------------
2343 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2344 ac_fn_cxx_check_func
()
2346 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if eval \
${$3+:} false
; then :
2350 $as_echo_n "(cached) " >&6
2352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2354 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2356 #define $2 innocuous_$2
2358 /* System header to define __stub macros and hopefully few prototypes,
2359 which can conflict with char $2 (); below.
2360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2361 <limits.h> exists even on freestanding compilers. */
2364 # include <limits.h>
2366 # include <assert.h>
2371 /* Override any GCC internal prototype to avoid an error.
2372 Use char because int might match the return type of a GCC
2373 builtin and then its argument prototype would still apply. */
2378 /* The GNU C library defines this for functions which it implements
2379 to always fail with ENOSYS. Some functions are actually named
2380 something starting with __ and the normal name is an alias. */
2381 #if defined __stub_$2 || defined __stub___$2
2393 if ac_fn_cxx_try_link
"$LINENO"; then :
2398 rm -f core conftest.err conftest.
$ac_objext \
2399 conftest
$ac_exeext conftest.
$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406 } # ac_fn_cxx_check_func
2407 cat >config.log
<<_ACEOF
2408 This file contains any messages produced by compilers while
2409 running configure, to aid debugging if configure makes a mistake.
2411 It was created by gdbsupport $as_me 1.0, which was
2412 generated by GNU Autoconf 2.69. Invocation command line was
2424 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2425 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2426 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2427 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2428 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2430 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2431 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2433 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2434 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2435 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2436 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2437 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2438 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2439 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir
=.
2448 $as_echo "PATH: $as_dir"
2464 # Keep a trace of the command line.
2465 # Strip out --no-create and --no-recursion so they do not pile up.
2466 # Strip out --silent because we don't want to record it for future runs.
2467 # Also quote any args containing shell meta-characters.
2468 # Make two passes to allow for proper duplicate-argument suppression.
2472 ac_must_keep_next
=false
2478 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2479 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2480 |
-silent |
--silent |
--silen |
--sile |
--sil)
2483 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2488 as_fn_append ac_configure_args1
" '$ac_arg'"
2489 if test $ac_must_keep_next = true
; then
2490 ac_must_keep_next
=false
# Got value, back to normal.
2493 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2494 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2495 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2496 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2497 case "$ac_configure_args0 " in
2498 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2501 -* ) ac_must_keep_next
=true
;;
2504 as_fn_append ac_configure_args
" '$ac_arg'"
2509 { ac_configure_args0
=; unset ac_configure_args0
;}
2510 { ac_configure_args1
=; unset ac_configure_args1
;}
2512 # When interrupted or exit'd, cleanup temporary files, and complete
2513 # config.log. We remove comments because anyway the quotes in there
2514 # would cause problems or look ugly.
2515 # WARNING: Use '\'' to represent an apostrophe within the trap.
2516 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2517 trap 'exit_status=$?
2518 # Save into config.log some information that might help in debugging.
2522 $as_echo "## ---------------- ##
2523 ## Cache variables. ##
2524 ## ---------------- ##"
2526 # The following way of writing the cache mishandles newlines in values,
2528 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2529 eval ac_val=\$$ac_var
2533 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2537 _ | IFS | as_nl) ;; #(
2538 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2539 *) { eval $ac_var=; unset $ac_var;} ;;
2544 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2545 *${as_nl}ac_space=\ *)
2547 "s/'\''/'\''\\\\'\'''\''/g;
2548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2558 $as_echo "## ----------------- ##
2559 ## Output variables. ##
2560 ## ----------------- ##"
2562 for ac_var in $ac_subst_vars
2564 eval ac_val=\$$ac_var
2566 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568 $as_echo "$ac_var='\''$ac_val'\''"
2572 if test -n "$ac_subst_files"; then
2573 $as_echo "## ------------------- ##
2574 ## File substitutions. ##
2575 ## ------------------- ##"
2577 for ac_var
in $ac_subst_files
2579 eval ac_val
=\$
$ac_var
2581 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583 $as_echo "$ac_var='\''$ac_val'\''"
2588 if test -s confdefs.h; then
2589 $as_echo "## ----------- ##
2596 test "$ac_signal" != 0 &&
2597 $as_echo "$as_me: caught signal $ac_signal"
2598 $as_echo "$as_me: exit $exit_status"
2600 rm -f core *.core core.conftest.* &&
2601 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2604 for ac_signal
in 1 2 13 15; do
2605 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2609 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2610 rm -f -r conftest
* confdefs.h
2612 $as_echo "/* confdefs.h */" > confdefs.h
2614 # Predefined preprocessor variables.
2616 cat >>confdefs.h
<<_ACEOF
2617 #define PACKAGE_NAME "$PACKAGE_NAME"
2620 cat >>confdefs.h
<<_ACEOF
2621 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2624 cat >>confdefs.h
<<_ACEOF
2625 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2628 cat >>confdefs.h
<<_ACEOF
2629 #define PACKAGE_STRING "$PACKAGE_STRING"
2632 cat >>confdefs.h
<<_ACEOF
2633 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2636 cat >>confdefs.h
<<_ACEOF
2637 #define PACKAGE_URL "$PACKAGE_URL"
2641 # Let the site file select an alternate cache file if it wants to.
2642 # Prefer an explicitly selected file to automatically selected ones.
2645 if test -n "$CONFIG_SITE"; then
2646 # We do not want a PATH search for config.site.
2647 case $CONFIG_SITE in #((
2648 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2649 */*) ac_site_file1
=$CONFIG_SITE;;
2650 *) ac_site_file1
=.
/$CONFIG_SITE;;
2652 elif test "x$prefix" != xNONE
; then
2653 ac_site_file1
=$prefix/share
/config.site
2654 ac_site_file2
=$prefix/etc
/config.site
2656 ac_site_file1
=$ac_default_prefix/share
/config.site
2657 ac_site_file2
=$ac_default_prefix/etc
/config.site
2659 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2661 test "x$ac_site_file" = xNONE
&& continue
2662 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2664 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2665 sed 's/^/| /' "$ac_site_file" >&5
2667 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669 as_fn_error $?
"failed to load site script $ac_site_file
2670 See \`config.log' for more details" "$LINENO" 5; }
2674 if test -r "$cache_file"; then
2675 # Some versions of bash will fail to source /dev/null (special files
2676 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2677 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2679 $as_echo "$as_me: loading cache $cache_file" >&6;}
2681 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2682 *) .
"./$cache_file";;
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2687 $as_echo "$as_me: creating cache $cache_file" >&6;}
2691 gt_needs
="$gt_needs "
2692 as_fn_append ac_header_list
" stdlib.h"
2693 as_fn_append ac_header_list
" unistd.h"
2694 as_fn_append ac_header_list
" sys/param.h"
2695 # Check that the precious variables saved in the cache have kept the same
2697 ac_cache_corrupted
=false
2698 for ac_var
in $ac_precious_vars; do
2699 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2700 eval ac_new_set
=\
$ac_env_${ac_var}_set
2701 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2702 eval ac_new_val
=\
$ac_env_${ac_var}_value
2703 case $ac_old_set,$ac_new_set in
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2706 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2707 ac_cache_corrupted
=: ;;
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2710 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2711 ac_cache_corrupted
=: ;;
2714 if test "x$ac_old_val" != "x$ac_new_val"; then
2715 # differences in whitespace do not lead to failure.
2716 ac_old_val_w
=`echo x $ac_old_val`
2717 ac_new_val_w
=`echo x $ac_new_val`
2718 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2720 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2721 ac_cache_corrupted
=:
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2724 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2725 eval $ac_var=\
$ac_old_val
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2728 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2730 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2733 # Pass precious variables to config.status.
2734 if test "$ac_new_set" = set; then
2736 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2737 *) ac_arg
=$ac_var=$ac_new_val ;;
2739 case " $ac_configure_args " in
2740 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2741 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2745 if $ac_cache_corrupted; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2749 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2750 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2752 ## -------------------- ##
2753 ## Main body of script. ##
2754 ## -------------------- ##
2757 ac_cpp
='$CPP $CPPFLAGS'
2758 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2767 ac_config_headers
="$ac_config_headers config.h:config.in"
2770 # Set build, build_cpu, build_vendor and build_os.
2772 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2773 if test -f "$ac_dir/install-sh"; then
2775 ac_install_sh
="$ac_aux_dir/install-sh -c"
2777 elif test -f "$ac_dir/install.sh"; then
2779 ac_install_sh
="$ac_aux_dir/install.sh -c"
2781 elif test -f "$ac_dir/shtool"; then
2783 ac_install_sh
="$ac_aux_dir/shtool install -c"
2787 if test -z "$ac_aux_dir"; then
2788 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2791 # These three variables are undocumented and unsupported,
2792 # and are intended to be withdrawn in a future Autoconf release.
2793 # They can cause serious problems if a builder's source tree is in a directory
2794 # whose full name contains unusual characters.
2795 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2796 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2797 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2800 # Make sure we can run config.sub.
2801 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2802 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2805 $as_echo_n "checking build system type... " >&6; }
2806 if ${ac_cv_build+:} false
; then :
2807 $as_echo_n "(cached) " >&6
2809 ac_build_alias
=$build_alias
2810 test "x$ac_build_alias" = x
&&
2811 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2812 test "x$ac_build_alias" = x
&&
2813 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2814 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2815 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2819 $as_echo "$ac_cv_build" >&6; }
2820 case $ac_cv_build in
2822 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2825 ac_save_IFS
=$IFS; IFS
='-'
2831 # Remember, the first character of IFS is used to create $*,
2832 # except with old shells:
2835 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2839 # Set host, host_cpu, host_vendor, and host_os.
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841 $as_echo_n "checking host system type... " >&6; }
2842 if ${ac_cv_host+:} false
; then :
2843 $as_echo_n "(cached) " >&6
2845 if test "x$host_alias" = x
; then
2846 ac_cv_host
=$ac_cv_build
2848 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854 $as_echo "$ac_cv_host" >&6; }
2857 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2860 ac_save_IFS
=$IFS; IFS
='-'
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2870 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2874 # Set target, target_cpu, target_vendor, and target_os.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2876 $as_echo_n "checking target system type... " >&6; }
2877 if ${ac_cv_target+:} false
; then :
2878 $as_echo_n "(cached) " >&6
2880 if test "x$target_alias" = x
; then
2881 ac_cv_target
=$ac_cv_host
2883 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2884 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2889 $as_echo "$ac_cv_target" >&6; }
2890 case $ac_cv_target in
2892 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2894 target
=$ac_cv_target
2895 ac_save_IFS
=$IFS; IFS
='-'
2901 # Remember, the first character of IFS is used to create $*,
2902 # except with old shells:
2905 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2908 # The aliases save the names the user supplied, while $host etc.
2909 # will get canonicalized.
2910 test -n "$target_alias" &&
2911 test "$program_prefix$program_suffix$program_transform_name" = \
2913 program_prefix
=${target_alias}-
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2917 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2918 # Check whether --enable-maintainer-mode was given.
2919 if test "${enable_maintainer_mode+set}" = set; then :
2920 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2922 USE_MAINTAINER_MODE
=no
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2926 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2927 if test $USE_MAINTAINER_MODE = yes; then
2928 MAINTAINER_MODE_TRUE
=
2929 MAINTAINER_MODE_FALSE
='#'
2931 MAINTAINER_MODE_TRUE
='#'
2932 MAINTAINER_MODE_FALSE
=
2935 MAINT
=$MAINTAINER_MODE_TRUE
2939 for ac_dir
in ..
"$srcdir"/..
; do
2940 if test -f "$ac_dir/install-sh"; then
2942 ac_install_sh
="$ac_aux_dir/install-sh -c"
2944 elif test -f "$ac_dir/install.sh"; then
2946 ac_install_sh
="$ac_aux_dir/install.sh -c"
2948 elif test -f "$ac_dir/shtool"; then
2950 ac_install_sh
="$ac_aux_dir/shtool install -c"
2954 if test -z "$ac_aux_dir"; then
2955 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2958 # These three variables are undocumented and unsupported,
2959 # and are intended to be withdrawn in a future Autoconf release.
2960 # They can cause serious problems if a builder's source tree is in a directory
2961 # whose full name contains unusual characters.
2962 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2963 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2964 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2967 am__api_version
='1.15'
2969 # Find a good install program. We prefer a C program (faster),
2970 # so one script is as good as another. But avoid the broken or
2971 # incompatible versions:
2972 # SysV /etc/install, /usr/sbin/install
2973 # SunOS /usr/etc/install
2974 # IRIX /sbin/install
2976 # AmigaOS /C/install, which installs bootblocks on floppy discs
2977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2980 # OS/2's system install, which has a completely different semantic
2981 # ./install, which can be erroneously created by make from ./install.sh.
2982 # Reject install programs that cannot install multiple files.
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2984 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2985 if test -z "$INSTALL"; then
2986 if ${ac_cv_path_install+:} false
; then :
2987 $as_echo_n "(cached) " >&6
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 # Account for people who put trailing slashes in PATH elements.
2995 case $as_dir/ in #((
2996 .
/ | .
// |
/[cC
]/* | \
2997 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2998 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3001 # OSF1 and SCO ODT 3.0 have their own names for install.
3002 # Don't use installbsd from OSF since it installs stuff as root
3004 for ac_prog
in ginstall scoinst
install; do
3005 for ac_exec_ext
in '' $ac_executable_extensions; do
3006 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3007 if test $ac_prog = install &&
3008 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3009 # AIX install. It has an incompatible calling convention.
3011 elif test $ac_prog = install &&
3012 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3013 # program-specific install script used by HP pwplus--don't use.
3016 rm -rf conftest.one conftest.two conftest.dir
3017 echo one
> conftest.one
3018 echo two
> conftest.two
3020 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3021 test -s conftest.one
&& test -s conftest.two
&&
3022 test -s conftest.dir
/conftest.one
&&
3023 test -s conftest.dir
/conftest.two
3025 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3038 rm -rf conftest.one conftest.two conftest.dir
3041 if test "${ac_cv_path_install+set}" = set; then
3042 INSTALL
=$ac_cv_path_install
3044 # As a last resort, use the slow shell script. Don't cache a
3045 # value for INSTALL within a source directory, because that will
3046 # break other packages using the cache if that directory is
3047 # removed, or if the value is a relative name.
3048 INSTALL
=$ac_install_sh
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3052 $as_echo "$INSTALL" >&6; }
3054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3055 # It thinks the first close brace ends the variable substitution.
3056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3060 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3063 $as_echo_n "checking whether build environment is sane... " >&6; }
3064 # Reject unsafe characters in $srcdir or the absolute working directory
3065 # name. Accept space and tab only in the latter.
3069 *[\\\"\
#\$\&\'\`$am_lf]*)
3070 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3073 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3074 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3077 # Do 'set' in a subshell so we don't clobber the current shell's
3078 # arguments. Must try -L first in case configure is actually a
3079 # symlink; some systems play weird games with the mod time of symlinks
3080 # (eg FreeBSD returns the mod time of the symlink's containing
3084 for am_try
in 1 2; do
3085 echo "timestamp, slept: $am_has_slept" > conftest.
file
3086 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3087 if test "$*" = "X"; then
3089 set X
`ls -t "$srcdir/configure" conftest.file`
3091 if test "$*" != "X $srcdir/configure conftest.file" \
3092 && test "$*" != "X conftest.file $srcdir/configure"; then
3094 # If neither matched, then we have a broken ls. This can happen
3095 # if, for instance, CONFIG_SHELL is bash and it inherits a
3096 # broken ls alias from the environment. This has actually
3097 # happened. Such a system could not be considered "sane".
3098 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3099 alias in your environment" "$LINENO" 5
3101 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3108 test "$2" = conftest.
file
3114 as_fn_error $?
"newly created file is older than distributed files!
3115 Check your system clock" "$LINENO" 5
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118 $as_echo "yes" >&6; }
3119 # If we didn't sleep, we still need to ensure time stamps of config.status and
3120 # generated files are strictly newer.
3122 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3129 test "$program_prefix" != NONE
&&
3130 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3131 # Use a double $ so make ignores it.
3132 test "$program_suffix" != NONE
&&
3133 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3134 # Double any \ or $.
3135 # By default was `s,x,x', remove it if useless.
3136 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3137 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3139 # Expand $ac_aux_dir to an absolute path.
3140 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3142 if test x
"${MISSING+set}" != xset
; then
3145 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3147 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3150 # Use eval to expand $SHELL
3151 if eval "$MISSING --is-lightweight"; then
3152 am_missing_run
="$MISSING "
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3156 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3159 if test x
"${install_sh+set}" != xset
; then
3162 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3164 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3168 # Installed binaries are usually stripped using 'strip' when the user
3169 # run "make install-strip". However 'strip' might not be the right
3170 # tool to use in cross-compilation environments, therefore Automake
3171 # will honor the 'STRIP' environment variable to overrule this program.
3172 if test "$cross_compiling" != no
; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3175 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_STRIP+:} false
; then :
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$STRIP"; then
3182 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir
=.
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 STRIP
=$ac_cv_prog_STRIP
3202 if test -n "$STRIP"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3204 $as_echo "$STRIP" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3212 if test -z "$ac_cv_prog_STRIP"; then
3214 # Extract the first word of "strip", so it can be a program name with args.
3215 set dummy strip
; ac_word
=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$ac_ct_STRIP"; then
3222 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir
=.
3229 for ac_exec_ext
in '' $ac_executable_extensions; do
3230 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_ac_ct_STRIP
="strip"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3242 if test -n "$ac_ct_STRIP"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3244 $as_echo "$ac_ct_STRIP" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3250 if test "x$ac_ct_STRIP" = x
; then
3253 case $cross_compiling:$ac_tool_warned in
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3257 ac_tool_warned
=yes ;;
3262 STRIP
="$ac_cv_prog_STRIP"
3266 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3269 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3270 if test -z "$MKDIR_P"; then
3271 if ${ac_cv_path_mkdir+:} false
; then :
3272 $as_echo_n "(cached) " >&6
3274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3275 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3278 test -z "$as_dir" && as_dir
=.
3279 for ac_prog
in mkdir gmkdir
; do
3280 for ac_exec_ext
in '' $ac_executable_extensions; do
3281 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3282 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3283 'mkdir (GNU coreutils) '* | \
3284 'mkdir (coreutils) '* | \
3285 'mkdir (fileutils) '4.1*)
3286 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3296 test -d .
/--version && rmdir .
/--version
3297 if test "${ac_cv_path_mkdir+set}" = set; then
3298 MKDIR_P
="$ac_cv_path_mkdir -p"
3300 # As a last resort, use the slow shell script. Don't cache a
3301 # value for MKDIR_P within a source directory, because that will
3302 # break other packages using the cache if that directory is
3303 # removed, or if the value is a relative name.
3304 MKDIR_P
="$ac_install_sh -d"
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3308 $as_echo "$MKDIR_P" >&6; }
3310 for ac_prog
in gawk mawk nawk
awk
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy
$ac_prog; ac_word
=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_AWK+:} false
; then :
3317 $as_echo_n "(cached) " >&6
3319 if test -n "$AWK"; then
3320 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir
=.
3327 for ac_exec_ext
in '' $ac_executable_extensions; do
3328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_AWK
="$ac_prog"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 if test -n "$AWK"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3342 $as_echo "$AWK" >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3349 test -n "$AWK" && break
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3353 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3355 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3356 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3357 $as_echo_n "(cached) " >&6
3359 cat >conftest.
make <<\_ACEOF
3362 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3364 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3365 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3367 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3369 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3373 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3375 $as_echo "yes" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 SET_MAKE
="MAKE=${MAKE-make}"
3383 rm -rf .tst
2>/dev
/null
3384 mkdir .tst
2>/dev
/null
3385 if test -d .tst
; then
3390 rmdir .tst
2>/dev
/null
3392 # Check whether --enable-silent-rules was given.
3393 if test "${enable_silent_rules+set}" = set; then :
3394 enableval
=$enable_silent_rules;
3397 case $enable_silent_rules in # (((
3398 yes) AM_DEFAULT_VERBOSITY
=0;;
3399 no
) AM_DEFAULT_VERBOSITY
=1;;
3400 *) AM_DEFAULT_VERBOSITY
=1;;
3402 am_make
=${MAKE-make}
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3404 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3405 if ${am_cv_make_support_nested_variables+:} false
; then :
3406 $as_echo_n "(cached) " >&6
3408 if $as_echo 'TRUE=$(BAR$(V))
3414 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3415 am_cv_make_support_nested_variables
=yes
3417 am_cv_make_support_nested_variables
=no
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3421 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3422 if test $am_cv_make_support_nested_variables = yes; then
3424 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3426 AM_V
=$AM_DEFAULT_VERBOSITY
3427 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3431 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3432 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3433 # is not polluted with repeated "-I."
3434 am__isrc
=' -I$(srcdir)'
3435 # test to see if srcdir already configured
3436 if test -f $srcdir/config.status
; then
3437 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3441 # test whether we have cygpath
3442 if test -z "$CYGPATH_W"; then
3443 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3444 CYGPATH_W
='cygpath -w'
3451 # Define the identity of the package.
3452 PACKAGE
='gdbsupport'
3456 cat >>confdefs.h
<<_ACEOF
3457 #define PACKAGE "$PACKAGE"
3461 cat >>confdefs.h
<<_ACEOF
3462 #define VERSION "$VERSION"
3465 # Some tools Automake needs.
3467 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3470 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3473 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3476 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3479 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3481 # For better backward compatibility. To be removed once Automake 1.9.x
3482 # dies out for good. For more background, see:
3483 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3484 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3485 mkdir_p
='$(MKDIR_P)'
3487 # We need awk for the "check" target (and possibly the TAP driver). The
3488 # system "awk" is bad on some platforms.
3489 # Always define AMTAR for backward compatibility. Yes, it's still used
3490 # in the wild :-( We should find a proper way to deprecate it ...
3494 # We'll loop over all known methods to create a tar archive until one works.
3495 _am_tools
='gnutar pax cpio none'
3497 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3504 # POSIX will say in a future version that running "rm -f" with no argument
3505 # is OK; and we want to be able to make that assumption in our Makefile
3506 # recipes. So use an aggressive probe to check that the usage we want is
3507 # actually supported "in the wild" to an acceptable degree.
3508 # See automake bug#10828.
3509 # To make any issue more visible, cause the running configure to be aborted
3510 # by default if the 'rm' program in use doesn't match our expectations; the
3511 # user can still override this though.
3512 if rm -f && rm -fr && rm -rf; then : OK
; else
3516 Your 'rm' program seems unable to run without file operands specified
3517 on the command line, even when the '-f' option is present. This is contrary
3518 to the behaviour of most rm programs out there, and not conforming with
3519 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3521 Please tell bug-automake@gnu.org about your system, including the value
3522 of your $PATH and any error possibly output before this message. This
3523 can help us improve future automake versions.
3526 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3527 echo 'Configuration will proceed anyway, since you have set the' >&2
3528 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3532 Aborting the configuration process, to ensure you take notice of the issue.
3534 You can download and install GNU coreutils to get an 'rm' implementation
3535 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3537 If you want to complete the configuration process using your problematic
3538 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3539 to "yes", and re-run configure.
3542 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3546 # Check whether --enable-silent-rules was given.
3547 if test "${enable_silent_rules+set}" = set; then :
3548 enableval
=$enable_silent_rules;
3551 case $enable_silent_rules in # (((
3552 yes) AM_DEFAULT_VERBOSITY
=0;;
3553 no
) AM_DEFAULT_VERBOSITY
=1;;
3554 *) AM_DEFAULT_VERBOSITY
=0;;
3556 am_make
=${MAKE-make}
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3558 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3559 if ${am_cv_make_support_nested_variables+:} false
; then :
3560 $as_echo_n "(cached) " >&6
3562 if $as_echo 'TRUE=$(BAR$(V))
3568 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3569 am_cv_make_support_nested_variables
=yes
3571 am_cv_make_support_nested_variables
=no
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3575 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3576 if test $am_cv_make_support_nested_variables = yes; then
3578 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3580 AM_V
=$AM_DEFAULT_VERBOSITY
3581 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3589 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 if test -n "$ac_tool_prefix"; then
3592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 if test -n "$CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3630 if test -z "$ac_cv_prog_CC"; then
3632 # Extract the first word of "gcc", so it can be a program name with args.
3633 set dummy gcc; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_ac_ct_CC="gcc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660 if test -n "$ac_ct_CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662 $as_echo "$ac_ct_CC" >&6; }
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3668 if test "x$ac_ct_CC" = x; then
3671 case $cross_compiling:$ac_tool_warned in
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3675 ac_tool_warned=yes ;;
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}cc; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if ${ac_cv_prog_CC+:} false; then :
3690 $as_echo_n "(cached) " >&6
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_CC="${ac_tool_prefix}cc"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3724 if test -z "$CC"; then
3725 # Extract the first word of "cc", so it can be a program name with args.
3726 set dummy cc; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if ${ac_cv_prog_CC+:} false; then :
3730 $as_echo_n "(cached) " >&6
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 test -z "$as_dir" && as_dir=.
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3744 ac_prog_rejected=yes
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 if test $ac_prog_rejected = yes; then
3756 # We found a bogon in the path, so make sure we never use it.
3757 set dummy $ac_cv_prog_CC
3759 if test $# != 0; then
3760 # We chose a different compiler from the bogus one.
3761 # However, it has the same basename, so the bogon will be chosen
3762 # first if we set CC to just the basename; use the full file name.
3764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3770 if test -n "$CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772 $as_echo "$CC" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3780 if test -z "$CC"; then
3781 if test -n "$ac_tool_prefix"; then
3782 for ac_prog in cl.exe
3784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_CC+:} false; then :
3789 $as_echo_n "(cached) " >&6
3791 if test -n "$CC"; then
3792 ac_cv_prog_CC="$CC" # Let the user override the test.
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 if test -n "$CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814 $as_echo "$CC" >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3821 test -n "$CC" && break
3824 if test -z "$CC"; then
3826 for ac_prog in cl.exe
3828 # Extract the first word of "$ac_prog", so it can be a program name with args.
3829 set dummy $ac_prog; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 if test -n "$ac_ct_CC"; then
3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_ac_ct_CC="$ac_prog"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3856 if test -n "$ac_ct_CC"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3858 $as_echo "$ac_ct_CC" >&6; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3865 test -n "$ac_ct_CC" && break
3868 if test "x$ac_ct_CC" = x; then
3871 case $cross_compiling:$ac_tool_warned in
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned=yes ;;
3884 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3886 as_fn_error $? "no acceptable C compiler found in \$PATH
3887 See \`config.log
' for more details" "$LINENO" 5; }
3889 # Provide some information about the compiler.
3890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3893 for ac_option in --version -v -V -qversion; do
3894 { { ac_try="$ac_compiler $ac_option >&5"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3903 if test -s conftest.err; then
3905 ... rest of stderr output deleted ...
3906 10q
' conftest.err >conftest.er1
3907 cat conftest.er1 >&5
3909 rm -f conftest.er1 conftest.err
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3925 ac_clean_files_save=$ac_clean_files
3926 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3927 # Try to create an executable without -o first, disregard a.out.
3928 # It will help us diagnose broken compilers, and finding out an intuition
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3931 $as_echo_n "checking whether the C compiler works... " >&6; }
3932 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3934 # The possible output files:
3935 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3938 for ac_file in $ac_files
3941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3942 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3947 if { { ac_try="$ac_link_default"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_link_default") 2>&5
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; then :
3958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3959 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3960 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3961 # so that the user can short-circuit this test for compilers unknown to
3963 for ac_file
in $ac_files ''
3965 test -f "$ac_file" ||
continue
3967 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3970 # We found the default executable, but exeext='' is most
3974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3976 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3978 # We set ac_cv_exeext here because the later test for it is not
3979 # safe: cross compilers may not add the suffix if given an `-o'
3980 # argument, so we may need to know it at that point already.
3981 # Even if this section looks crufty: it has the advantage of
3988 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3993 if test -z "$ac_file"; then :
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 $as_echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.
$ac_ext >&5
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error
77 "C compiler cannot create executables
4002 See \`config.log' for more details" "$LINENO" 5; }
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005 $as_echo "yes" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4008 $as_echo_n "checking for C compiler default output file name... " >&6; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4010 $as_echo "$ac_file" >&6; }
4011 ac_exeext
=$ac_cv_exeext
4013 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4014 ac_clean_files
=$ac_clean_files_save
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4016 $as_echo_n "checking for suffix of executables... " >&6; }
4017 if { { ac_try
="$ac_link"
4019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_link") 2>&5
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }; then :
4028 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4029 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4030 # work properly (i.e., refer to `conftest.exe'), while it won't with
4032 for ac_file
in conftest.exe conftest conftest.
*; do
4033 test -f "$ac_file" ||
continue
4035 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4036 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4045 See \`config.log' for more details" "$LINENO" 5; }
4047 rm -f conftest conftest
$ac_cv_exeext
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4049 $as_echo "$ac_cv_exeext" >&6; }
4051 rm -f conftest.
$ac_ext
4052 EXEEXT
=$ac_cv_exeext
4054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4060 FILE *f = fopen ("conftest.out", "w");
4061 return ferror (f) || fclose (f) != 0;
4067 ac_clean_files
="$ac_clean_files conftest.out"
4068 # Check that the compiler produces executables we can run. If not, either
4069 # the compiler is broken, or we cross compile.
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4071 $as_echo_n "checking whether we are cross compiling... " >&6; }
4072 if test "$cross_compiling" != yes; then
4073 { { ac_try
="$ac_link"
4075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_link") 2>&5
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }
4084 if { ac_try='./conftest$ac_cv_exeext'
4085 { { case "(($ac_try" in
4086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4087 *) ac_try_echo
=$ac_try;;
4089 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_try") 2>&5
4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094 test $ac_status = 0; }; }; then
4097 if test "$cross_compiling" = maybe
; then
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $?
"cannot run C compiled programs.
4103 If you meant to cross compile, use \`--host'.
4104 See \`config.log' for more details" "$LINENO" 5; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4109 $as_echo "$cross_compiling" >&6; }
4111 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4112 ac_clean_files
=$ac_clean_files_save
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4114 $as_echo_n "checking for suffix of object files... " >&6; }
4115 if ${ac_cv_objext+:} false
; then :
4116 $as_echo_n "(cached) " >&6
4118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 rm -f conftest.o conftest.obj
4130 if { { ac_try
="$ac_compile"
4132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4136 $as_echo "$ac_try_echo"; } >&5
4137 (eval "$ac_compile") 2>&5
4139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4140 test $ac_status = 0; }; then :
4141 for ac_file in conftest.o conftest.obj conftest.*; do
4142 test -f "$ac_file" || continue;
4144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4150 $as_echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4155 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4156 See \
`config.log' for more details" "$LINENO" 5; }
4158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4161 $as_echo "$ac_cv_objext" >&6; }
4162 OBJEXT=$ac_cv_objext
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4165 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4166 if ${ac_cv_c_compiler_gnu+:} false; then :
4167 $as_echo_n "(cached) " >&6
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4183 if ac_fn_c_try_compile "$LINENO"; then :
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4194 if test $ac_compiler_gnu = yes; then
4199 ac_test_CFLAGS=${CFLAGS+set}
4200 ac_save_CFLAGS=$CFLAGS
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4202 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4203 if ${ac_cv_prog_cc_g+:} false; then :
4204 $as_echo_n "(cached) " >&6
4206 ac_save_c_werror_flag=$ac_c_werror_flag
4207 ac_c_werror_flag=yes
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4221 if ac_fn_c_try_compile "$LINENO"; then :
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4236 if ac_fn_c_try_compile "$LINENO"; then :
4239 ac_c_werror_flag=$ac_save_c_werror_flag
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4252 if ac_fn_c_try_compile "$LINENO"; then :
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 ac_c_werror_flag=$ac_save_c_werror_flag
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4263 $as_echo "$ac_cv_prog_cc_g" >&6; }
4264 if test "$ac_test_CFLAGS" = set; then
4265 CFLAGS=$ac_save_CFLAGS
4266 elif test $ac_cv_prog_cc_g = yes; then
4267 if test "$GCC" = yes; then
4273 if test "$GCC" = yes; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4280 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4281 if ${ac_cv_prog_cc_c89+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 ac_cv_prog_cc_c89=no
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4292 struct buf { int x; };
4293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4294 static char *e (p, i)
4300 static char *f (char * (*g) (char **, int), char **p, ...)
4305 s = g (p, va_arg (v,int));
4310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4311 function prototypes and stuff, but not '\xHH' hex character constants.
4312 These don't provoke an error unfortunately, instead are silently treated
4313 as 'x'. The following induces an error, until -std is added to get
4314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4315 array size at least. It's necessary to write '\x00'==0 to get something
4316 that's true only with -std. */
4317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4320 inside strings and character constants. */
4322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4324 int test (int i, double x);
4325 struct s1 {int (*f) (int a);};
4326 struct s2 {int (*f) (double a);};
4327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4341 CC="$ac_save_CC $ac_arg"
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_cv_prog_cc_c89=$ac_arg
4345 rm -f core conftest.err conftest.$ac_objext
4346 test "x$ac_cv_prog_cc_c89" != "xno" && break
4348 rm -f conftest.$ac_ext
4353 case "x$ac_cv_prog_cc_c89" in
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4356 $as_echo "none needed" >&6; } ;;
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4359 $as_echo "unsupported" >&6; } ;;
4361 CC="$CC $ac_cv_prog_cc_c89"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4365 if test "x$ac_cv_prog_cc_c89" != xno; then :
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4381 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4382 if ${am_cv_prog_cc_c_o+:} false; then :
4383 $as_echo_n "(cached) " >&6
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4396 # Make sure it works both with $CC and with simple cc.
4397 # Following AC_PROG_CC_C_O, we do the test twice because some
4398 # compilers refuse to overwrite an existing .o file with -o,
4399 # though they will create one.
4400 am_cv_prog_cc_c_o=yes
4402 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4403 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } \
4407 && test -f conftest2.$ac_objext; then
4410 am_cv_prog_cc_c_o=no
4414 rm -f core conftest*
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4418 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4419 if test "$am_cv_prog_cc_c_o" != yes; then
4420 # Losing compiler, so override with the script.
4421 # FIXME: It is wrong to rewrite CC.
4422 # But if we don't then we get into trouble of one sort or another.
4423 # A longer-term fix would be to have automake use am__CC in this case,
4424 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4425 CC="$am_aux_dir/compile $CC"
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 DEPDIR="${am__leading_dot}deps"
4435 ac_config_commands="$ac_config_commands depfiles"
4438 am_make=${MAKE-make}
4439 cat > confinc << 'END'
4441 @echo this is the am__doit target
4444 # If we don't find an include directive, just comment out the code.
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4446 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4450 # First try GNU make style include.
4451 echo "include confinc" > confmf
4452 # Ignore all kinds of additional output from 'make'.
4453 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4454 *the\ am__doit\ target*)
4460 # Now try BSD make style include.
4461 if test "$am__include" = "#"; then
4462 echo '.include "confinc"' > confmf
4463 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4464 *the\ am__doit\ target*)
4465 am__include=.include
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4474 $as_echo "$_am_result" >&6; }
4475 rm -f confinc confmf
4477 # Check whether --enable-dependency-tracking was given.
4478 if test "${enable_dependency_tracking+set}" = set; then :
4479 enableval=$enable_dependency_tracking;
4482 if test "x$enable_dependency_tracking" != xno; then
4483 am_depcomp="$ac_aux_dir/depcomp"
4487 if test "x$enable_dependency_tracking" != xno; then
4497 depcc="$CC" am_compiler_list=
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4500 $as_echo_n "checking dependency style of $depcc... " >&6; }
4501 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4505 # We make a subdir and do the tests there. Otherwise we can end up
4506 # making bogus files that we don't know about and never remove. For
4507 # instance it was reported that on HP-UX the gcc test will end up
4508 # making a dummy file named 'D' -- because '-MD' means "put the output
4512 # Copy depcomp to subdir because otherwise we won't find it if we're
4513 # using a relative directory.
4514 cp "$am_depcomp" conftest.dir
4516 # We will build objects and dependencies in a subdirectory because
4517 # it helps to detect inapplicable dependency modes. For instance
4518 # both Tru64's cc and ICC support -MD to output dependencies as a
4519 # side effect of compilation, but ICC will put the dependencies in
4520 # the current directory while Tru64 will put them in the object
4524 am_cv_CC_dependencies_compiler_type=none
4525 if test "$am_compiler_list" = ""; then
4526 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4529 case " $depcc " in #(
4530 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4533 for depmode in $am_compiler_list; do
4534 # Setup a source with many dependencies, because some compilers
4535 # like to wrap large dependency lists on column 80 (with \), and
4536 # we should not choose a depcomp mode which is confused by this.
4538 # We need to recreate these files for each test, as the compiler may
4539 # overwrite some of them when testing with obscure command lines.
4540 # This happens at least with the AIX C compiler.
4542 for i in 1 2 3 4 5 6; do
4543 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4544 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4545 # Solaris 10 /bin/sh.
4546 echo '/* dummy */' > sub/conftst$i.h
4548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4550 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4551 # mode. It turns out that the SunPro C++ compiler does not properly
4552 # handle '-M -o', and we need to detect this. Also, some Intel
4553 # versions had trouble with output in subdirs.
4554 am__obj=sub/conftest.${OBJEXT-o}
4555 am__minus_obj="-o $am__obj"
4558 # This depmode causes a compiler race in universal mode.
4559 test "$am__universal" = false || continue
4562 # After this tag, mechanisms are not by side-effect, so they'll
4563 # only be used when explicitly requested.
4564 if test "x$enable_dependency_tracking" = xyes; then
4570 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4571 # This compiler won't grok '-c -o', but also, the minuso test has
4572 # not run yet. These depmodes are late enough in the game, and
4573 # so weak that their functioning should not be impacted.
4574 am__obj=conftest.${OBJEXT-o}
4579 if depmode=$depmode \
4580 source=sub/conftest.c object=$am__obj \
4581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4582 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4583 >/dev/null 2>conftest.err &&
4584 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4586 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4588 # icc doesn't choke on unknown options, it will just issue warnings
4589 # or remarks (even with -Werror). So we grep stderr for any message
4590 # that says an option was ignored or not supported.
4591 # When given -MP, icc 7.0 and 7.1 complain thusly:
4592 # icc: Command line warning: ignoring option '-M'; no argument required
4593 # The diagnosis changed in icc 8.0:
4594 # icc: Command line remark: option '-MP' not supported
4595 if (grep 'ignoring option' conftest.err ||
4596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4597 am_cv_CC_dependencies_compiler_type=$depmode
4606 am_cv_CC_dependencies_compiler_type=none
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4611 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4612 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4615 test "x$enable_dependency_tracking" != xno \
4616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4618 am__fastdepCC_FALSE='#'
4620 am__fastdepCC_TRUE='#'
4621 am__fastdepCC_FALSE=
4626 ac_cpp='$CXXCPP $CPPFLAGS'
4627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4630 if test -z "$CXX"; then
4631 if test -n "$CCC"; then
4634 if test -n "$ac_tool_prefix"; then
4635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_CXX+:} false; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$CXX"; then
4645 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 if test -n "$CXX"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4667 $as_echo "$CXX" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4674 test -n "$CXX" && break
4677 if test -z "$CXX"; then
4679 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682 set dummy $ac_prog; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -n "$ac_ct_CXX"; then
4689 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_ac_ct_CXX="$ac_prog"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4709 if test -n "$ac_ct_CXX"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4711 $as_echo "$ac_ct_CXX" >&6; }
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4718 test -n "$ac_ct_CXX" && break
4721 if test "x$ac_ct_CXX" = x; then
4724 case $cross_compiling:$ac_tool_warned in
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4736 # Provide some information about the compiler.
4737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4740 for ac_option in --version -v -V -qversion; do
4741 { { ac_try="$ac_compiler $ac_option >&5"
4743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4744 *) ac_try_echo
=$ac_try;;
4746 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4747 $as_echo "$ac_try_echo"; } >&5
4748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4750 if test -s conftest.err
; then
4752 ... rest of stderr output deleted ...
4753 10q' conftest.err
>conftest.er1
4754 cat conftest.er1
>&5
4756 rm -f conftest.er1 conftest.err
4757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4758 test $ac_status = 0; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4762 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4763 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4764 $as_echo_n "(cached) " >&6
4766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4780 if ac_fn_cxx_try_compile
"$LINENO"; then :
4785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4786 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4790 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4791 if test $ac_compiler_gnu = yes; then
4796 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4797 ac_save_CXXFLAGS
=$CXXFLAGS
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4799 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4800 if ${ac_cv_prog_cxx_g+:} false
; then :
4801 $as_echo_n "(cached) " >&6
4803 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4804 ac_cxx_werror_flag
=yes
4807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4818 if ac_fn_cxx_try_compile
"$LINENO"; then :
4819 ac_cv_prog_cxx_g
=yes
4822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4833 if ac_fn_cxx_try_compile
"$LINENO"; then :
4836 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4849 if ac_fn_cxx_try_compile
"$LINENO"; then :
4850 ac_cv_prog_cxx_g
=yes
4852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4857 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4860 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4861 if test "$ac_test_CXXFLAGS" = set; then
4862 CXXFLAGS
=$ac_save_CXXFLAGS
4863 elif test $ac_cv_prog_cxx_g = yes; then
4864 if test "$GXX" = yes; then
4870 if test "$GXX" = yes; then
4877 ac_cpp
='$CPP $CPPFLAGS'
4878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4882 depcc
="$CXX" am_compiler_list
=
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4885 $as_echo_n "checking dependency style of $depcc... " >&6; }
4886 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4887 $as_echo_n "(cached) " >&6
4889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4890 # We make a subdir and do the tests there. Otherwise we can end up
4891 # making bogus files that we don't know about and never remove. For
4892 # instance it was reported that on HP-UX the gcc test will end up
4893 # making a dummy file named 'D' -- because '-MD' means "put the output
4897 # Copy depcomp to subdir because otherwise we won't find it if we're
4898 # using a relative directory.
4899 cp "$am_depcomp" conftest.dir
4901 # We will build objects and dependencies in a subdirectory because
4902 # it helps to detect inapplicable dependency modes. For instance
4903 # both Tru64's cc and ICC support -MD to output dependencies as a
4904 # side effect of compilation, but ICC will put the dependencies in
4905 # the current directory while Tru64 will put them in the object
4909 am_cv_CXX_dependencies_compiler_type
=none
4910 if test "$am_compiler_list" = ""; then
4911 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4914 case " $depcc " in #(
4915 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4918 for depmode
in $am_compiler_list; do
4919 # Setup a source with many dependencies, because some compilers
4920 # like to wrap large dependency lists on column 80 (with \), and
4921 # we should not choose a depcomp mode which is confused by this.
4923 # We need to recreate these files for each test, as the compiler may
4924 # overwrite some of them when testing with obscure command lines.
4925 # This happens at least with the AIX C compiler.
4927 for i
in 1 2 3 4 5 6; do
4928 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4929 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4930 # Solaris 10 /bin/sh.
4931 echo '/* dummy */' > sub
/conftst
$i.h
4933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4935 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4936 # mode. It turns out that the SunPro C++ compiler does not properly
4937 # handle '-M -o', and we need to detect this. Also, some Intel
4938 # versions had trouble with output in subdirs.
4939 am__obj
=sub
/conftest.
${OBJEXT-o}
4940 am__minus_obj
="-o $am__obj"
4943 # This depmode causes a compiler race in universal mode.
4944 test "$am__universal" = false ||
continue
4947 # After this tag, mechanisms are not by side-effect, so they'll
4948 # only be used when explicitly requested.
4949 if test "x$enable_dependency_tracking" = xyes
; then
4955 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4956 # This compiler won't grok '-c -o', but also, the minuso test has
4957 # not run yet. These depmodes are late enough in the game, and
4958 # so weak that their functioning should not be impacted.
4959 am__obj
=conftest.
${OBJEXT-o}
4964 if depmode
=$depmode \
4965 source=sub
/conftest.c object
=$am__obj \
4966 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4967 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4968 >/dev
/null
2>conftest.err
&&
4969 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4970 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4971 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4972 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4973 # icc doesn't choke on unknown options, it will just issue warnings
4974 # or remarks (even with -Werror). So we grep stderr for any message
4975 # that says an option was ignored or not supported.
4976 # When given -MP, icc 7.0 and 7.1 complain thusly:
4977 # icc: Command line warning: ignoring option '-M'; no argument required
4978 # The diagnosis changed in icc 8.0:
4979 # icc: Command line remark: option '-MP' not supported
4980 if (grep 'ignoring option' conftest.err ||
4981 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4982 am_cv_CXX_dependencies_compiler_type
=$depmode
4991 am_cv_CXX_dependencies_compiler_type
=none
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4996 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4997 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5000 test "x$enable_dependency_tracking" != xno \
5001 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5002 am__fastdepCXX_TRUE
=
5003 am__fastdepCXX_FALSE
='#'
5005 am__fastdepCXX_TRUE
='#'
5006 am__fastdepCXX_FALSE
=
5010 if test -n "$ac_tool_prefix"; then
5011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5012 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_RANLIB+:} false
; then :
5016 $as_echo_n "(cached) " >&6
5018 if test -n "$RANLIB"; then
5019 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir
=.
5026 for ac_exec_ext
in '' $ac_executable_extensions; do
5027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 RANLIB
=$ac_cv_prog_RANLIB
5039 if test -n "$RANLIB"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5041 $as_echo "$RANLIB" >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5049 if test -z "$ac_cv_prog_RANLIB"; then
5050 ac_ct_RANLIB
=$RANLIB
5051 # Extract the first word of "ranlib", so it can be a program name with args.
5052 set dummy ranlib
; ac_word
=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5056 $as_echo_n "(cached) " >&6
5058 if test -n "$ac_ct_RANLIB"; then
5059 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir
=.
5066 for ac_exec_ext
in '' $ac_executable_extensions; do
5067 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5079 if test -n "$ac_ct_RANLIB"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5081 $as_echo "$ac_ct_RANLIB" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5087 if test "x$ac_ct_RANLIB" = x
; then
5090 case $cross_compiling:$ac_tool_warned in
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5094 ac_tool_warned
=yes ;;
5096 RANLIB
=$ac_ct_RANLIB
5099 RANLIB
="$ac_cv_prog_RANLIB"
5105 ac_cpp
='$CPP $CPPFLAGS'
5106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5110 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5111 # On Suns, sometimes $CPP names a directory.
5112 if test -n "$CPP" && test -d "$CPP"; then
5115 if test -z "$CPP"; then
5116 if ${ac_cv_prog_CPP+:} false
; then :
5117 $as_echo_n "(cached) " >&6
5119 # Double quotes because CPP needs to be expanded
5120 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5123 for ac_c_preproc_warn_flag
in '' yes
5125 # Use a header file that comes with gcc, so configuring glibc
5126 # with a fresh cross-compiler works.
5127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5128 # <limits.h> exists even on freestanding compilers.
5129 # On the NeXT, cc -E runs the code through the compiler's parser,
5130 # not just through cpp. "Syntax error" is here to catch this case.
5131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5134 # include <limits.h>
5136 # include <assert.h>
5140 if ac_fn_c_try_cpp
"$LINENO"; then :
5143 # Broken: fails on valid input.
5146 rm -f conftest.err conftest.i conftest.
$ac_ext
5148 # OK, works on sane cases. Now check whether nonexistent headers
5149 # can be detected and how.
5150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5152 #include <ac_nonexistent.h>
5154 if ac_fn_c_try_cpp
"$LINENO"; then :
5155 # Broken: success on invalid input.
5158 # Passes both tests.
5162 rm -f conftest.err conftest.i conftest.
$ac_ext
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.i conftest.err conftest.
$ac_ext
5167 if $ac_preproc_ok; then :
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5180 $as_echo "$CPP" >&6; }
5182 for ac_c_preproc_warn_flag
in '' yes
5184 # Use a header file that comes with gcc, so configuring glibc
5185 # with a fresh cross-compiler works.
5186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5187 # <limits.h> exists even on freestanding compilers.
5188 # On the NeXT, cc -E runs the code through the compiler's parser,
5189 # not just through cpp. "Syntax error" is here to catch this case.
5190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5193 # include <limits.h>
5195 # include <assert.h>
5199 if ac_fn_c_try_cpp
"$LINENO"; then :
5202 # Broken: fails on valid input.
5205 rm -f conftest.err conftest.i conftest.
$ac_ext
5207 # OK, works on sane cases. Now check whether nonexistent headers
5208 # can be detected and how.
5209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 #include <ac_nonexistent.h>
5213 if ac_fn_c_try_cpp
"$LINENO"; then :
5214 # Broken: success on invalid input.
5217 # Passes both tests.
5221 rm -f conftest.err conftest.i conftest.
$ac_ext
5224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5225 rm -f conftest.i conftest.err conftest.
$ac_ext
5226 if $ac_preproc_ok; then :
5229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5231 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5232 See \`config.log' for more details" "$LINENO" 5; }
5236 ac_cpp
='$CPP $CPPFLAGS'
5237 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5244 if ${ac_cv_path_GREP+:} false
; then :
5245 $as_echo_n "(cached) " >&6
5247 if test -z "$GREP"; then
5248 ac_path_GREP_found
=false
5249 # Loop through the user's path and test for each of PROGNAME-LIST
5250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5251 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5254 test -z "$as_dir" && as_dir
=.
5255 for ac_prog
in grep ggrep
; do
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5258 as_fn_executable_p
"$ac_path_GREP" ||
continue
5259 # Check for GNU ac_path_GREP and select it if it is found.
5260 # Check for GNU $ac_path_GREP
5261 case `"$ac_path_GREP" --version 2>&1` in
5263 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5266 $as_echo_n 0123456789 >"conftest.in"
5269 cat "conftest.in" "conftest.in" >"conftest.tmp"
5270 mv "conftest.tmp" "conftest.in"
5271 cp "conftest.in" "conftest.nl"
5272 $as_echo 'GREP' >> "conftest.nl"
5273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5274 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5275 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5277 # Best one so far, save it but keep looking for a better one
5278 ac_cv_path_GREP
="$ac_path_GREP"
5279 ac_path_GREP_max
=$ac_count
5281 # 10*(2^10) chars as input seems more than enough
5282 test $ac_count -gt 10 && break
5284 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5287 $ac_path_GREP_found && break 3
5292 if test -z "$ac_cv_path_GREP"; then
5293 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5296 ac_cv_path_GREP
=$GREP
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5301 $as_echo "$ac_cv_path_GREP" >&6; }
5302 GREP
="$ac_cv_path_GREP"
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5306 $as_echo_n "checking for egrep... " >&6; }
5307 if ${ac_cv_path_EGREP+:} false
; then :
5308 $as_echo_n "(cached) " >&6
5310 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5311 then ac_cv_path_EGREP
="$GREP -E"
5313 if test -z "$EGREP"; then
5314 ac_path_EGREP_found
=false
5315 # Loop through the user's path and test for each of PROGNAME-LIST
5316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5317 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5320 test -z "$as_dir" && as_dir
=.
5321 for ac_prog
in egrep; do
5322 for ac_exec_ext
in '' $ac_executable_extensions; do
5323 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5324 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5325 # Check for GNU ac_path_EGREP and select it if it is found.
5326 # Check for GNU $ac_path_EGREP
5327 case `"$ac_path_EGREP" --version 2>&1` in
5329 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5332 $as_echo_n 0123456789 >"conftest.in"
5335 cat "conftest.in" "conftest.in" >"conftest.tmp"
5336 mv "conftest.tmp" "conftest.in"
5337 cp "conftest.in" "conftest.nl"
5338 $as_echo 'EGREP' >> "conftest.nl"
5339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5340 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5341 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5343 # Best one so far, save it but keep looking for a better one
5344 ac_cv_path_EGREP
="$ac_path_EGREP"
5345 ac_path_EGREP_max
=$ac_count
5347 # 10*(2^10) chars as input seems more than enough
5348 test $ac_count -gt 10 && break
5350 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5353 $ac_path_EGREP_found && break 3
5358 if test -z "$ac_cv_path_EGREP"; then
5359 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5362 ac_cv_path_EGREP
=$EGREP
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5368 $as_echo "$ac_cv_path_EGREP" >&6; }
5369 EGREP
="$ac_cv_path_EGREP"
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5373 $as_echo_n "checking for ANSI C header files... " >&6; }
5374 if ${ac_cv_header_stdc+:} false
; then :
5375 $as_echo_n "(cached) " >&6
5377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5392 if ac_fn_c_try_compile
"$LINENO"; then :
5393 ac_cv_header_stdc
=yes
5395 ac_cv_header_stdc
=no
5397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5399 if test $ac_cv_header_stdc = yes; then
5400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5407 $EGREP "memchr" >/dev
/null
2>&1; then :
5410 ac_cv_header_stdc
=no
5416 if test $ac_cv_header_stdc = yes; then
5417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424 $EGREP "free" >/dev
/null
2>&1; then :
5427 ac_cv_header_stdc
=no
5433 if test $ac_cv_header_stdc = yes; then
5434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5435 if test "$cross_compiling" = yes; then :
5438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5442 #if ((' ' & 0x0FF) == 0x020)
5443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5446 # define ISLOWER(c) \
5447 (('a' <= (c) && (c) <= 'i') \
5448 || ('j' <= (c) && (c) <= 'r') \
5449 || ('s' <= (c) && (c) <= 'z'))
5450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5458 for (i = 0; i < 256; i++)
5459 if (XOR (islower (i), ISLOWER (i))
5460 || toupper (i) != TOUPPER (i))
5465 if ac_fn_c_try_run
"$LINENO"; then :
5468 ac_cv_header_stdc
=no
5470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5471 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5477 $as_echo "$ac_cv_header_stdc" >&6; }
5478 if test $ac_cv_header_stdc = yes; then
5480 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5484 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5485 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5486 inttypes.h stdint.h unistd.h
5488 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5489 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5491 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5492 cat >>confdefs.h
<<_ACEOF
5493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5503 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5510 if test "$MINIX" = yes; then
5512 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5515 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5518 $as_echo "#define _MINIX 1" >>confdefs.h
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5524 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5525 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5526 $as_echo_n "(cached) " >&6
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5531 # define __EXTENSIONS__ 1
5532 $ac_includes_default
5541 if ac_fn_c_try_compile
"$LINENO"; then :
5542 ac_cv_safe_to_define___extensions__
=yes
5544 ac_cv_safe_to_define___extensions__
=no
5546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5549 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5550 test $ac_cv_safe_to_define___extensions__ = yes &&
5551 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5553 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5555 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5557 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5559 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5563 # The tests for host and target for $enable_largefile require
5568 # As the $enable_largefile decision depends on --enable-plugins we must set it
5569 # even in directories otherwise not depending on the $plugins option.
5573 for ac_header
in dlfcn.h
5575 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5577 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5578 cat >>confdefs.h
<<_ACEOF
5579 #define HAVE_DLFCN_H 1
5586 for ac_header
in windows.h
5588 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5590 if test "x$ac_cv_header_windows_h" = xyes
; then :
5591 cat >>confdefs.h
<<_ACEOF
5592 #define HAVE_WINDOWS_H 1
5600 # Check whether --enable-plugins was given.
5601 if test "${enable_plugins+set}" = set; then :
5602 enableval
=$enable_plugins; case "${enableval}" in
5605 if test "$maybe_plugins" != "yes" ; then
5606 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5610 plugins
=$maybe_plugins
5614 if test "$plugins" = "yes"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5616 $as_echo_n "checking for library containing dlsym... " >&6; }
5617 if ${ac_cv_search_dlsym+:} false
; then :
5618 $as_echo_n "(cached) " >&6
5620 ac_func_search_save_LIBS
=$LIBS
5621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5624 /* Override any GCC internal prototype to avoid an error.
5625 Use char because int might match the return type of a GCC
5626 builtin and then its argument prototype would still apply. */
5639 for ac_lib
in '' dl
; do
5640 if test -z "$ac_lib"; then
5641 ac_res
="none required"
5644 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5646 if ac_fn_c_try_link
"$LINENO"; then :
5647 ac_cv_search_dlsym
=$ac_res
5649 rm -f core conftest.err conftest.
$ac_objext \
5651 if ${ac_cv_search_dlsym+:} false
; then :
5655 if ${ac_cv_search_dlsym+:} false
; then :
5658 ac_cv_search_dlsym
=no
5661 LIBS
=$ac_func_search_save_LIBS
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5664 $as_echo "$ac_cv_search_dlsym" >&6; }
5665 ac_res
=$ac_cv_search_dlsym
5666 if test "$ac_res" != no
; then :
5667 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5675 sparc-
*-solaris*|i?
86-*-solaris*)
5676 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5677 # were mutually exclusive until Solaris 11.3. Without procfs support,
5678 # the bfd/ elf module cannot provide certain routines such as
5679 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5680 # explicitly requested large-file support through the
5681 # --enable-largefile switch, disable large-file support in favor of
5684 # Check if <sys/procfs.h> is incompatible with large-file support.
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #define _FILE_OFFSET_BITS 64
5688 #define _STRUCTURED_PROC 1
5689 #include <sys/procfs.h>
5698 if ac_fn_c_try_compile
"$LINENO"; then :
5699 acx_cv_procfs_lfs
=yes
5701 acx_cv_procfs_lfs
=no
5703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5705 # Forcefully disable large-file support only if necessary, gdb is in
5707 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5708 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
5709 : ${enable_largefile="no"}
5710 if test "$plugins" = yes; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5712 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5713 $as_echo "$as_me: WARNING:
5714 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5719 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5720 # benefit of g++ 9+ which predefines it on Solaris.
5721 if test "$enable_largefile" = no
; then
5722 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
5728 # Check whether --enable-largefile was given.
5729 if test "${enable_largefile+set}" = set; then :
5730 enableval
=$enable_largefile;
5733 if test "$enable_largefile" != no
; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5736 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5737 if ${ac_cv_sys_largefile_CC+:} false
; then :
5738 $as_echo_n "(cached) " >&6
5740 ac_cv_sys_largefile_CC
=no
5741 if test "$GCC" != yes; then
5744 # IRIX 6.2 and later do not support large files by default,
5745 # so use the C compiler's -n32 option if that helps.
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5765 if ac_fn_c_try_compile
"$LINENO"; then :
5768 rm -f core conftest.err conftest.
$ac_objext
5770 if ac_fn_c_try_compile
"$LINENO"; then :
5771 ac_cv_sys_largefile_CC
=' -n32'; break
5773 rm -f core conftest.err conftest.
$ac_objext
5777 rm -f conftest.
$ac_ext
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5781 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5782 if test "$ac_cv_sys_largefile_CC" != no
; then
5783 CC
=$CC$ac_cv_sys_largefile_CC
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5787 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5788 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5789 $as_echo_n "(cached) " >&6
5792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <sys/types.h>
5795 /* Check that off_t can represent 2**63 - 1 correctly.
5796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5797 since some C++ compilers masquerading as C compilers
5798 incorrectly reject 9223372036854775807. */
5799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5801 && LARGE_OFF_T % 2147483647 == 1)
5811 if ac_fn_c_try_compile
"$LINENO"; then :
5812 ac_cv_sys_file_offset_bits
=no
; break
5814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #define _FILE_OFFSET_BITS 64
5818 #include <sys/types.h>
5819 /* Check that off_t can represent 2**63 - 1 correctly.
5820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5821 since some C++ compilers masquerading as C compilers
5822 incorrectly reject 9223372036854775807. */
5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5825 && LARGE_OFF_T % 2147483647 == 1)
5835 if ac_fn_c_try_compile
"$LINENO"; then :
5836 ac_cv_sys_file_offset_bits
=64; break
5838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 ac_cv_sys_file_offset_bits
=unknown
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5844 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5845 case $ac_cv_sys_file_offset_bits in #(
5848 cat >>confdefs.h
<<_ACEOF
5849 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5854 if test $ac_cv_sys_file_offset_bits = unknown
; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5856 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5857 if ${ac_cv_sys_large_files+:} false
; then :
5858 $as_echo_n "(cached) " >&6
5861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5880 if ac_fn_c_try_compile
"$LINENO"; then :
5881 ac_cv_sys_large_files
=no
; break
5883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #define _LARGE_FILES 1
5887 #include <sys/types.h>
5888 /* Check that off_t can represent 2**63 - 1 correctly.
5889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5890 since some C++ compilers masquerading as C compilers
5891 incorrectly reject 9223372036854775807. */
5892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5894 && LARGE_OFF_T % 2147483647 == 1)
5904 if ac_fn_c_try_compile
"$LINENO"; then :
5905 ac_cv_sys_large_files
=1; break
5907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5908 ac_cv_sys_large_files
=unknown
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5913 $as_echo "$ac_cv_sys_large_files" >&6; }
5914 case $ac_cv_sys_large_files in #(
5917 cat >>confdefs.h
<<_ACEOF
5918 #define _LARGE_FILES $ac_cv_sys_large_files
5930 # We require a C++17 compiler. Check if one is available, and if
5931 # necessary, set CXX_DIALECT to some -std=xxx switch.
5933 ax_cxx_compile_alternatives
="17 1z" ax_cxx_compile_cxx17_required
=true
5935 ac_cpp
='$CXXCPP $CPPFLAGS'
5936 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
5943 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
5944 if ${ax_cv_cxx_compile_cxx17+:} false
; then :
5945 $as_echo_n "(cached) " >&6
5947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5951 // If the compiler admits that it is not ready for C++11, why torture it?
5952 // Hopefully, this will speed up the test.
5956 #error "This is not a C++ compiler"
5958 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
5959 // only set it correctly if /Zc:__cplusplus is specified as well as a
5960 // /std:c++NN switch:
5961 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
5962 #elif __cplusplus < 201103L && !defined _MSC_VER
5964 #error "This is not a C++11 compiler"
5971 namespace test_static_assert
5974 template <typename T>
5977 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5982 namespace test_final_override
5991 struct Derived : public Base
5993 virtual ~Derived() override {}
5994 virtual void f() override {}
5999 namespace test_double_right_angle_brackets
6002 template < typename T >
6005 typedef check<void> single_type;
6006 typedef check<check<void>> double_type;
6007 typedef check<check<check<void>>> triple_type;
6008 typedef check<check<check<check<void>>>> quadruple_type;
6012 namespace test_decltype
6025 namespace test_type_deduction
6028 template < typename T1, typename T2 >
6031 static const bool value = false;
6034 template < typename T >
6035 struct is_same<T, T>
6037 static const bool value = true;
6040 template < typename T1, typename T2 >
6042 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6048 test(const int c, volatile int v)
6050 static_assert(is_same<int, decltype(0)>::value == true, "");
6051 static_assert(is_same<int, decltype(c)>::value == false, "");
6052 static_assert(is_same<int, decltype(v)>::value == false, "");
6055 auto sumi = ac + av + 'x';
6056 auto sumf = ac + av + 1.0;
6057 static_assert(is_same<int, decltype(ac)>::value == true, "");
6058 static_assert(is_same<int, decltype(av)>::value == true, "");
6059 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6060 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6061 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6062 return (sumf > 0.0) ? sumi : add(c, v);
6067 namespace test_noexcept
6070 int f() { return 0; }
6071 int g() noexcept { return 0; }
6073 static_assert(noexcept(f()) == false, "");
6074 static_assert(noexcept(g()) == true, "");
6078 namespace test_constexpr
6081 template < typename CharT >
6082 unsigned long constexpr
6083 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6085 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6088 template < typename CharT >
6089 unsigned long constexpr
6090 strlen_c(const CharT *const s) noexcept
6092 return strlen_c_r(s, 0UL);
6095 static_assert(strlen_c("") == 0UL, "");
6096 static_assert(strlen_c("1") == 1UL, "");
6097 static_assert(strlen_c("example") == 7UL, "");
6098 static_assert(strlen_c("another\0example") == 7UL, "");
6102 namespace test_rvalue_references
6108 static constexpr int value = N;
6111 answer<1> f(int&) { return answer<1>(); }
6112 answer<2> f(const int&) { return answer<2>(); }
6113 answer<3> f(int&&) { return answer<3>(); }
6120 static_assert(decltype(f(i))::value == 1, "");
6121 static_assert(decltype(f(c))::value == 2, "");
6122 static_assert(decltype(f(0))::value == 3, "");
6127 namespace test_uniform_initialization
6132 static const int zero {};
6133 static const int one {1};
6136 static_assert(test::zero == 0, "");
6137 static_assert(test::one == 1, "");
6141 namespace test_lambdas
6147 auto lambda1 = [](){};
6148 auto lambda2 = lambda1;
6156 auto a = [](int i, int j){ return i + j; }(1, 2);
6157 auto b = []() -> int { return '0'; }();
6158 auto c = [=](){ return a + b; }();
6159 auto d = [&](){ return c; }();
6160 auto e = [a, &b](int x) mutable {
6161 const auto identity = [](int y){ return y; };
6162 for (auto i = 0; i < a; ++i)
6164 return x + identity(a + b);
6166 return a + b + c + d + e;
6172 const auto nullary = [](){ return 0; };
6173 const auto unary = [](int x){ return x; };
6174 using nullary_t = decltype(nullary);
6175 using unary_t = decltype(unary);
6176 const auto higher1st = [](nullary_t f){ return f(); };
6177 const auto higher2nd = [unary](nullary_t f1){
6178 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6180 return higher1st(nullary) + higher2nd(nullary)(unary);
6185 namespace test_variadic_templates
6191 template <int N0, int... N1toN>
6192 struct sum<N0, N1toN...>
6194 static constexpr auto value = N0 + sum<N1toN...>::value;
6200 static constexpr auto value = 0;
6203 static_assert(sum<>::value == 0, "");
6204 static_assert(sum<1>::value == 1, "");
6205 static_assert(sum<23>::value == 23, "");
6206 static_assert(sum<1, 2>::value == 3, "");
6207 static_assert(sum<5, 5, 11>::value == 21, "");
6208 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6212 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6213 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6215 namespace test_template_alias_sfinae
6220 template<typename T>
6221 using member = typename T::member_type;
6223 template<typename T>
6226 template<typename T>
6227 void func(member<T>*) {}
6231 void test() { func<foo>(0); }
6235 } // namespace cxx11
6237 #endif // __cplusplus >= 201103L
6242 // If the compiler admits that it is not ready for C++14, why torture it?
6243 // Hopefully, this will speed up the test.
6247 #error "This is not a C++ compiler"
6249 #elif __cplusplus < 201402L && !defined _MSC_VER
6251 #error "This is not a C++14 compiler"
6258 namespace test_polymorphic_lambdas
6264 const auto lambda = [](auto&&... args){
6265 const auto istiny = [](auto x){
6266 return (sizeof(x) == 1UL) ? 1 : 0;
6268 const int aretiny[] = { istiny(args)... };
6271 return lambda(1, 1L, 1.0f, '1');
6276 namespace test_binary_literals
6279 constexpr auto ivii = 0b0000000000101010;
6280 static_assert(ivii == 42, "wrong value");
6284 namespace test_generalized_constexpr
6287 template < typename CharT >
6288 constexpr unsigned long
6289 strlen_c(const CharT *const s) noexcept
6292 for (auto p = s; *p; ++p)
6297 static_assert(strlen_c("") == 0UL, "");
6298 static_assert(strlen_c("x") == 1UL, "");
6299 static_assert(strlen_c("test") == 4UL, "");
6300 static_assert(strlen_c("another\0test") == 7UL, "");
6304 namespace test_lambda_init_capture
6311 const auto lambda1 = [a = x](int b){ return a + b; };
6312 const auto lambda2 = [a = lambda1(x)](){ return a; };
6318 namespace test_digit_separators
6321 constexpr auto ten_million = 100'000'000;
6322 static_assert(ten_million == 100000000, "");
6326 namespace test_return_type_deduction
6329 auto f(int& x) { return x; }
6330 decltype(auto) g(int& x) { return x; }
6332 template < typename T1, typename T2 >
6335 static constexpr auto value = false;
6338 template < typename T >
6339 struct is_same<T, T>
6341 static constexpr auto value = true;
6348 static_assert(is_same<int, decltype(f(x))>::value, "");
6349 static_assert(is_same<int&, decltype(g(x))>::value, "");
6355 } // namespace cxx14
6357 #endif // __cplusplus >= 201402L
6362 // If the compiler admits that it is not ready for C++17, why torture it?
6363 // Hopefully, this will speed up the test.
6367 #error "This is not a C++ compiler"
6369 #elif __cplusplus < 201703L && !defined _MSC_VER
6371 #error "This is not a C++17 compiler"
6375 #include <initializer_list>
6377 #include <type_traits>
6382 namespace test_constexpr_lambdas
6385 constexpr int foo = [](){return 42;}();
6389 namespace test::nested_namespace::definitions
6394 namespace test_fold_expression
6397 template<typename... Args>
6398 int multiply(Args... args)
6400 return (args * ... * 1);
6403 template<typename... Args>
6404 bool all(Args... args)
6406 return (args && ...);
6411 namespace test_extended_static_assert
6414 static_assert (true);
6418 namespace test_auto_brace_init_list
6424 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
6425 static_assert(std::is_same<int, decltype(bar)>::value);
6428 namespace test_typename_in_template_template_parameter
6431 template<template<typename> typename X> struct D;
6435 namespace test_fallthrough_nodiscard_maybe_unused_attributes
6443 [[nodiscard]] int f2()
6445 [[maybe_unused]] auto unused = f1();
6460 namespace test_extended_aggregate_initialization
6476 struct derived : base1, base2
6481 derived d1 {{1, 2}, {}, 4}; // full initialization
6482 derived d2 {{}, {}, 4}; // value-initialized bases
6486 namespace test_general_range_based_for_loop
6498 const int& operator* () const
6515 bool operator== (const iter& i, const sentinel& s)
6520 bool operator!= (const iter& i, const sentinel& s)
6532 sentinel end() const
6544 [[maybe_unused]] auto v = i;
6550 namespace test_lambda_capture_asterisk_this_by_value
6567 namespace test_enum_class_construction
6570 enum class byte : unsigned char
6577 namespace test_constexpr_if
6580 template <bool cond>
6595 namespace test_selection_statement_with_initializer
6605 if (auto i = f(); i > 0)
6610 switch (auto i = f(); i + 4)
6622 namespace test_template_argument_deduction_for_class_templates
6625 template <typename T1, typename T2>
6639 [[maybe_unused]] auto p = pair{13, 42u};
6644 namespace test_non_type_auto_template_parameters
6656 namespace test_structured_bindings
6659 int arr[2] = { 1, 2 };
6660 std::pair<int, int> pr = { 1, 2 };
6662 auto f1() -> int(&)[2]
6667 auto f2() -> std::pair<int, int>&
6683 auto [ x1, y1 ] = f1();
6684 auto& [ xr1, yr1 ] = f1();
6685 auto [ x2, y2 ] = f2();
6686 auto& [ xr2, yr2 ] = f2();
6687 const auto [ x3, y3 ] = f3();
6691 namespace test_exception_spec_type_system
6700 template<typename T>
6704 template<typename T1, typename T2>
6708 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
6712 namespace test_inline_variables
6715 template<class T> void f(T)
6718 template<class T> inline T g(T)
6723 template<> inline void f<>(int)
6726 template<> int g<>(int)
6733 } // namespace cxx17
6735 #endif // __cplusplus < 201703L && !defined _MSC_VER
6740 if ac_fn_cxx_try_compile
"$LINENO"; then :
6741 ax_cv_cxx_compile_cxx17
=yes
6743 ax_cv_cxx_compile_cxx17
=no
6745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
6748 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
6749 if test x
$ax_cv_cxx_compile_cxx17 = xyes
; then
6753 if test x
$ac_success = xno
; then
6754 for alternative
in ${ax_cxx_compile_alternatives}; do
6755 switch
="-std=gnu++${alternative}"
6756 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
6758 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
6759 if eval \
${$cachevar+:} false
; then :
6760 $as_echo_n "(cached) " >&6
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6768 // If the compiler admits that it is not ready for C++11, why torture it?
6769 // Hopefully, this will speed up the test.
6773 #error "This is not a C++ compiler"
6775 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6776 // only set it correctly if /Zc:__cplusplus is specified as well as a
6777 // /std:c++NN switch:
6778 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6779 #elif __cplusplus < 201103L && !defined _MSC_VER
6781 #error "This is not a C++11 compiler"
6788 namespace test_static_assert
6791 template <typename T>
6794 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6799 namespace test_final_override
6808 struct Derived : public Base
6810 virtual ~Derived() override {}
6811 virtual void f() override {}
6816 namespace test_double_right_angle_brackets
6819 template < typename T >
6822 typedef check<void> single_type;
6823 typedef check<check<void>> double_type;
6824 typedef check<check<check<void>>> triple_type;
6825 typedef check<check<check<check<void>>>> quadruple_type;
6829 namespace test_decltype
6842 namespace test_type_deduction
6845 template < typename T1, typename T2 >
6848 static const bool value = false;
6851 template < typename T >
6852 struct is_same<T, T>
6854 static const bool value = true;
6857 template < typename T1, typename T2 >
6859 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6865 test(const int c, volatile int v)
6867 static_assert(is_same<int, decltype(0)>::value == true, "");
6868 static_assert(is_same<int, decltype(c)>::value == false, "");
6869 static_assert(is_same<int, decltype(v)>::value == false, "");
6872 auto sumi = ac + av + 'x';
6873 auto sumf = ac + av + 1.0;
6874 static_assert(is_same<int, decltype(ac)>::value == true, "");
6875 static_assert(is_same<int, decltype(av)>::value == true, "");
6876 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6877 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6878 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6879 return (sumf > 0.0) ? sumi : add(c, v);
6884 namespace test_noexcept
6887 int f() { return 0; }
6888 int g() noexcept { return 0; }
6890 static_assert(noexcept(f()) == false, "");
6891 static_assert(noexcept(g()) == true, "");
6895 namespace test_constexpr
6898 template < typename CharT >
6899 unsigned long constexpr
6900 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6902 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6905 template < typename CharT >
6906 unsigned long constexpr
6907 strlen_c(const CharT *const s) noexcept
6909 return strlen_c_r(s, 0UL);
6912 static_assert(strlen_c("") == 0UL, "");
6913 static_assert(strlen_c("1") == 1UL, "");
6914 static_assert(strlen_c("example") == 7UL, "");
6915 static_assert(strlen_c("another\0example") == 7UL, "");
6919 namespace test_rvalue_references
6925 static constexpr int value = N;
6928 answer<1> f(int&) { return answer<1>(); }
6929 answer<2> f(const int&) { return answer<2>(); }
6930 answer<3> f(int&&) { return answer<3>(); }
6937 static_assert(decltype(f(i))::value == 1, "");
6938 static_assert(decltype(f(c))::value == 2, "");
6939 static_assert(decltype(f(0))::value == 3, "");
6944 namespace test_uniform_initialization
6949 static const int zero {};
6950 static const int one {1};
6953 static_assert(test::zero == 0, "");
6954 static_assert(test::one == 1, "");
6958 namespace test_lambdas
6964 auto lambda1 = [](){};
6965 auto lambda2 = lambda1;
6973 auto a = [](int i, int j){ return i + j; }(1, 2);
6974 auto b = []() -> int { return '0'; }();
6975 auto c = [=](){ return a + b; }();
6976 auto d = [&](){ return c; }();
6977 auto e = [a, &b](int x) mutable {
6978 const auto identity = [](int y){ return y; };
6979 for (auto i = 0; i < a; ++i)
6981 return x + identity(a + b);
6983 return a + b + c + d + e;
6989 const auto nullary = [](){ return 0; };
6990 const auto unary = [](int x){ return x; };
6991 using nullary_t = decltype(nullary);
6992 using unary_t = decltype(unary);
6993 const auto higher1st = [](nullary_t f){ return f(); };
6994 const auto higher2nd = [unary](nullary_t f1){
6995 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6997 return higher1st(nullary) + higher2nd(nullary)(unary);
7002 namespace test_variadic_templates
7008 template <int N0, int... N1toN>
7009 struct sum<N0, N1toN...>
7011 static constexpr auto value = N0 + sum<N1toN...>::value;
7017 static constexpr auto value = 0;
7020 static_assert(sum<>::value == 0, "");
7021 static_assert(sum<1>::value == 1, "");
7022 static_assert(sum<23>::value == 23, "");
7023 static_assert(sum<1, 2>::value == 3, "");
7024 static_assert(sum<5, 5, 11>::value == 21, "");
7025 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7029 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7030 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7032 namespace test_template_alias_sfinae
7037 template<typename T>
7038 using member = typename T::member_type;
7040 template<typename T>
7043 template<typename T>
7044 void func(member<T>*) {}
7048 void test() { func<foo>(0); }
7052 } // namespace cxx11
7054 #endif // __cplusplus >= 201103L
7059 // If the compiler admits that it is not ready for C++14, why torture it?
7060 // Hopefully, this will speed up the test.
7064 #error "This is not a C++ compiler"
7066 #elif __cplusplus < 201402L && !defined _MSC_VER
7068 #error "This is not a C++14 compiler"
7075 namespace test_polymorphic_lambdas
7081 const auto lambda = [](auto&&... args){
7082 const auto istiny = [](auto x){
7083 return (sizeof(x) == 1UL) ? 1 : 0;
7085 const int aretiny[] = { istiny(args)... };
7088 return lambda(1, 1L, 1.0f, '1');
7093 namespace test_binary_literals
7096 constexpr auto ivii = 0b0000000000101010;
7097 static_assert(ivii == 42, "wrong value");
7101 namespace test_generalized_constexpr
7104 template < typename CharT >
7105 constexpr unsigned long
7106 strlen_c(const CharT *const s) noexcept
7109 for (auto p = s; *p; ++p)
7114 static_assert(strlen_c("") == 0UL, "");
7115 static_assert(strlen_c("x") == 1UL, "");
7116 static_assert(strlen_c("test") == 4UL, "");
7117 static_assert(strlen_c("another\0test") == 7UL, "");
7121 namespace test_lambda_init_capture
7128 const auto lambda1 = [a = x](int b){ return a + b; };
7129 const auto lambda2 = [a = lambda1(x)](){ return a; };
7135 namespace test_digit_separators
7138 constexpr auto ten_million = 100'000'000;
7139 static_assert(ten_million == 100000000, "");
7143 namespace test_return_type_deduction
7146 auto f(int& x) { return x; }
7147 decltype(auto) g(int& x) { return x; }
7149 template < typename T1, typename T2 >
7152 static constexpr auto value = false;
7155 template < typename T >
7156 struct is_same<T, T>
7158 static constexpr auto value = true;
7165 static_assert(is_same<int, decltype(f(x))>::value, "");
7166 static_assert(is_same<int&, decltype(g(x))>::value, "");
7172 } // namespace cxx14
7174 #endif // __cplusplus >= 201402L
7179 // If the compiler admits that it is not ready for C++17, why torture it?
7180 // Hopefully, this will speed up the test.
7184 #error "This is not a C++ compiler"
7186 #elif __cplusplus < 201703L && !defined _MSC_VER
7188 #error "This is not a C++17 compiler"
7192 #include <initializer_list>
7194 #include <type_traits>
7199 namespace test_constexpr_lambdas
7202 constexpr int foo = [](){return 42;}();
7206 namespace test::nested_namespace::definitions
7211 namespace test_fold_expression
7214 template<typename... Args>
7215 int multiply(Args... args)
7217 return (args * ... * 1);
7220 template<typename... Args>
7221 bool all(Args... args)
7223 return (args && ...);
7228 namespace test_extended_static_assert
7231 static_assert (true);
7235 namespace test_auto_brace_init_list
7241 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
7242 static_assert(std::is_same<int, decltype(bar)>::value);
7245 namespace test_typename_in_template_template_parameter
7248 template<template<typename> typename X> struct D;
7252 namespace test_fallthrough_nodiscard_maybe_unused_attributes
7260 [[nodiscard]] int f2()
7262 [[maybe_unused]] auto unused = f1();
7277 namespace test_extended_aggregate_initialization
7293 struct derived : base1, base2
7298 derived d1 {{1, 2}, {}, 4}; // full initialization
7299 derived d2 {{}, {}, 4}; // value-initialized bases
7303 namespace test_general_range_based_for_loop
7315 const int& operator* () const
7332 bool operator== (const iter& i, const sentinel& s)
7337 bool operator!= (const iter& i, const sentinel& s)
7349 sentinel end() const
7361 [[maybe_unused]] auto v = i;
7367 namespace test_lambda_capture_asterisk_this_by_value
7384 namespace test_enum_class_construction
7387 enum class byte : unsigned char
7394 namespace test_constexpr_if
7397 template <bool cond>
7412 namespace test_selection_statement_with_initializer
7422 if (auto i = f(); i > 0)
7427 switch (auto i = f(); i + 4)
7439 namespace test_template_argument_deduction_for_class_templates
7442 template <typename T1, typename T2>
7456 [[maybe_unused]] auto p = pair{13, 42u};
7461 namespace test_non_type_auto_template_parameters
7473 namespace test_structured_bindings
7476 int arr[2] = { 1, 2 };
7477 std::pair<int, int> pr = { 1, 2 };
7479 auto f1() -> int(&)[2]
7484 auto f2() -> std::pair<int, int>&
7500 auto [ x1, y1 ] = f1();
7501 auto& [ xr1, yr1 ] = f1();
7502 auto [ x2, y2 ] = f2();
7503 auto& [ xr2, yr2 ] = f2();
7504 const auto [ x3, y3 ] = f3();
7508 namespace test_exception_spec_type_system
7517 template<typename T>
7521 template<typename T1, typename T2>
7525 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
7529 namespace test_inline_variables
7532 template<class T> void f(T)
7535 template<class T> inline T g(T)
7540 template<> inline void f<>(int)
7543 template<> int g<>(int)
7550 } // namespace cxx17
7552 #endif // __cplusplus < 201703L && !defined _MSC_VER
7557 if ac_fn_cxx_try_compile
"$LINENO"; then :
7562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7565 eval ac_res
=\$
$cachevar
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7567 $as_echo "$ac_res" >&6; }
7568 if eval test x\$
$cachevar = xyes
; then
7569 CXX_DIALECT
="$switch"
7571 if test -n "$CXXCPP" ; then
7572 CXXCPP
="$CXXCPP $switch"
7580 if test x
$ac_success = xno
; then
7581 for alternative
in ${ax_cxx_compile_alternatives}; do
7582 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
7583 if test x"$switch" = xMSVC; then
7584 switch=-std:c++${alternative}
7585 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
${switch}_MSVC
" | $as_tr_sh`
7587 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
$switch" | $as_tr_sh`
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++17 features with
$switch" >&5
7590 $as_echo_n "checking whether
$CXX supports C
++17 features with
$switch...
" >&6; }
7591 if eval \${$cachevar+:} false; then :
7592 $as_echo_n "(cached
) " >&6
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7600 // If the compiler admits that it is not ready for C++11, why torture it?
7601 // Hopefully, this will speed up the test.
7605 #error "This is not a C
++ compiler
"
7607 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
7608 // only set it correctly if /Zc:__cplusplus is specified as well as a
7609 // /std:c++NN switch:
7610 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
7611 #elif __cplusplus < 201103L && !defined _MSC_VER
7613 #error "This is not a C
++11 compiler
"
7620 namespace test_static_assert
7623 template <typename T>
7626 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7631 namespace test_final_override
7640 struct Derived : public Base
7642 virtual ~Derived() override {}
7643 virtual void f() override {}
7648 namespace test_double_right_angle_brackets
7651 template < typename T >
7654 typedef check<void> single_type;
7655 typedef check<check<void>> double_type;
7656 typedef check<check<check<void>>> triple_type;
7657 typedef check<check<check<check<void>>>> quadruple_type;
7661 namespace test_decltype
7674 namespace test_type_deduction
7677 template < typename T1, typename T2 >
7680 static const bool value = false;
7683 template < typename T >
7684 struct is_same<T, T>
7686 static const bool value = true;
7689 template < typename T1, typename T2 >
7691 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7697 test(const int c, volatile int v)
7699 static_assert(is_same<int, decltype(0)>::value == true, "");
7700 static_assert(is_same<int, decltype(c)>::value == false, "");
7701 static_assert(is_same<int, decltype(v)>::value == false, "");
7704 auto sumi = ac + av + 'x';
7705 auto sumf = ac + av + 1.0;
7706 static_assert(is_same<int, decltype(ac)>::value == true, "");
7707 static_assert(is_same<int, decltype(av)>::value == true, "");
7708 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7709 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7710 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7711 return (sumf > 0.0) ? sumi : add(c, v);
7716 namespace test_noexcept
7719 int f() { return 0; }
7720 int g() noexcept { return 0; }
7722 static_assert(noexcept(f()) == false, "");
7723 static_assert(noexcept(g()) == true, "");
7727 namespace test_constexpr
7730 template < typename CharT >
7731 unsigned long constexpr
7732 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7734 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7737 template < typename CharT >
7738 unsigned long constexpr
7739 strlen_c(const CharT *const s) noexcept
7741 return strlen_c_r(s, 0UL);
7744 static_assert(strlen_c("") == 0UL, "");
7745 static_assert(strlen_c("1") == 1UL, "");
7746 static_assert(strlen_c("example
") == 7UL, "");
7747 static_assert(strlen_c("another\
0example
") == 7UL, "");
7751 namespace test_rvalue_references
7757 static constexpr int value = N;
7760 answer<1> f(int&) { return answer<1>(); }
7761 answer<2> f(const int&) { return answer<2>(); }
7762 answer<3> f(int&&) { return answer<3>(); }
7769 static_assert(decltype(f(i))::value == 1, "");
7770 static_assert(decltype(f(c))::value == 2, "");
7771 static_assert(decltype(f(0))::value == 3, "");
7776 namespace test_uniform_initialization
7781 static const int zero {};
7782 static const int one {1};
7785 static_assert(test::zero == 0, "");
7786 static_assert(test::one == 1, "");
7790 namespace test_lambdas
7796 auto lambda1 = [](){};
7797 auto lambda2 = lambda1;
7805 auto a = [](int i, int j){ return i + j; }(1, 2);
7806 auto b = []() -> int { return '0'; }();
7807 auto c = [=](){ return a + b; }();
7808 auto d = [&](){ return c; }();
7809 auto e = [a, &b](int x) mutable {
7810 const auto identity = [](int y){ return y; };
7811 for (auto i = 0; i < a; ++i)
7813 return x + identity(a + b);
7815 return a + b + c + d + e;
7821 const auto nullary = [](){ return 0; };
7822 const auto unary = [](int x){ return x; };
7823 using nullary_t = decltype(nullary);
7824 using unary_t = decltype(unary);
7825 const auto higher1st = [](nullary_t f){ return f(); };
7826 const auto higher2nd = [unary](nullary_t f1){
7827 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7829 return higher1st(nullary) + higher2nd(nullary)(unary);
7834 namespace test_variadic_templates
7840 template <int N0, int... N1toN>
7841 struct sum<N0, N1toN...>
7843 static constexpr auto value = N0 + sum<N1toN...>::value;
7849 static constexpr auto value = 0;
7852 static_assert(sum<>::value == 0, "");
7853 static_assert(sum<1>::value == 1, "");
7854 static_assert(sum<23>::value == 23, "");
7855 static_assert(sum<1, 2>::value == 3, "");
7856 static_assert(sum<5, 5, 11>::value == 21, "");
7857 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7861 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7862 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7864 namespace test_template_alias_sfinae
7869 template<typename T>
7870 using member = typename T::member_type;
7872 template<typename T>
7875 template<typename T>
7876 void func(member<T>*) {}
7880 void test() { func<foo>(0); }
7884 } // namespace cxx11
7886 #endif // __cplusplus >= 201103L
7891 // If the compiler admits that it is not ready for C++14, why torture it?
7892 // Hopefully, this will speed up the test.
7896 #error "This is not a C
++ compiler
"
7898 #elif __cplusplus < 201402L && !defined _MSC_VER
7900 #error "This is not a C
++14 compiler
"
7907 namespace test_polymorphic_lambdas
7913 const auto lambda = [](auto&&... args){
7914 const auto istiny = [](auto x){
7915 return (sizeof(x) == 1UL) ? 1 : 0;
7917 const int aretiny[] = { istiny(args)... };
7920 return lambda(1, 1L, 1.0f, '1');
7925 namespace test_binary_literals
7928 constexpr auto ivii = 0b0000000000101010;
7929 static_assert(ivii == 42, "wrong value
");
7933 namespace test_generalized_constexpr
7936 template < typename CharT >
7937 constexpr unsigned long
7938 strlen_c(const CharT *const s) noexcept
7941 for (auto p = s; *p; ++p)
7946 static_assert(strlen_c("") == 0UL, "");
7947 static_assert(strlen_c("x
") == 1UL, "");
7948 static_assert(strlen_c("test") == 4UL, "");
7949 static_assert(strlen_c("another\
0test") == 7UL, "");
7953 namespace test_lambda_init_capture
7960 const auto lambda1 = [a = x](int b){ return a + b; };
7961 const auto lambda2 = [a = lambda1(x)](){ return a; };
7967 namespace test_digit_separators
7970 constexpr auto ten_million = 100'000'000;
7971 static_assert(ten_million == 100000000, "");
7975 namespace test_return_type_deduction
7978 auto f(int& x) { return x; }
7979 decltype(auto) g(int& x) { return x; }
7981 template < typename T1, typename T2 >
7984 static constexpr auto value = false;
7987 template < typename T >
7988 struct is_same<T, T>
7990 static constexpr auto value = true;
7997 static_assert(is_same<int, decltype(f(x))>::value, "");
7998 static_assert(is_same<int&, decltype(g(x))>::value, "");
8004 } // namespace cxx14
8006 #endif // __cplusplus >= 201402L
8011 // If the compiler admits that it is not ready for C++17, why torture it?
8012 // Hopefully, this will speed up the test.
8016 #error "This is not a C
++ compiler
"
8018 #elif __cplusplus < 201703L && !defined _MSC_VER
8020 #error "This is not a C
++17 compiler
"
8024 #include <initializer_list>
8026 #include <type_traits>
8031 namespace test_constexpr_lambdas
8034 constexpr int foo = [](){return 42;}();
8038 namespace test::nested_namespace::definitions
8043 namespace test_fold_expression
8046 template<typename... Args>
8047 int multiply(Args... args)
8049 return (args * ... * 1);
8052 template<typename... Args>
8053 bool all(Args... args)
8055 return (args && ...);
8060 namespace test_extended_static_assert
8063 static_assert (true);
8067 namespace test_auto_brace_init_list
8073 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
8074 static_assert(std::is_same<int, decltype(bar)>::value);
8077 namespace test_typename_in_template_template_parameter
8080 template<template<typename> typename X> struct D;
8084 namespace test_fallthrough_nodiscard_maybe_unused_attributes
8092 [[nodiscard]] int f2()
8094 [[maybe_unused]] auto unused = f1();
8109 namespace test_extended_aggregate_initialization
8125 struct derived : base1, base2
8130 derived d1 {{1, 2}, {}, 4}; // full initialization
8131 derived d2 {{}, {}, 4}; // value-initialized bases
8135 namespace test_general_range_based_for_loop
8147 const int& operator* () const
8164 bool operator== (const iter& i, const sentinel& s)
8169 bool operator!= (const iter& i, const sentinel& s)
8181 sentinel end() const
8193 [[maybe_unused]] auto v = i;
8199 namespace test_lambda_capture_asterisk_this_by_value
8216 namespace test_enum_class_construction
8219 enum class byte : unsigned char
8226 namespace test_constexpr_if
8229 template <bool cond>
8244 namespace test_selection_statement_with_initializer
8254 if (auto i = f(); i > 0)
8259 switch (auto i = f(); i + 4)
8271 namespace test_template_argument_deduction_for_class_templates
8274 template <typename T1, typename T2>
8288 [[maybe_unused]] auto p = pair{13, 42u};
8293 namespace test_non_type_auto_template_parameters
8305 namespace test_structured_bindings
8308 int arr[2] = { 1, 2 };
8309 std::pair<int, int> pr = { 1, 2 };
8311 auto f1() -> int(&)[2]
8316 auto f2() -> std::pair<int, int>&
8332 auto [ x1, y1 ] = f1();
8333 auto& [ xr1, yr1 ] = f1();
8334 auto [ x2, y2 ] = f2();
8335 auto& [ xr2, yr2 ] = f2();
8336 const auto [ x3, y3 ] = f3();
8340 namespace test_exception_spec_type_system
8349 template<typename T>
8353 template<typename T1, typename T2>
8357 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
8361 namespace test_inline_variables
8364 template<class T> void f(T)
8367 template<class T> inline T g(T)
8372 template<> inline void f<>(int)
8375 template<> int g<>(int)
8382 } // namespace cxx17
8384 #endif // __cplusplus < 201703L && !defined _MSC_VER
8389 if ac_fn_cxx_try_compile "$LINENO"; then :
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 eval ac_res=\$$cachevar
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8399 $as_echo "$ac_res" >&6; }
8400 if eval test x\$$cachevar = xyes; then
8401 CXX_DIALECT="$switch"
8403 if test -n "$CXXCPP" ; then
8404 CXXCPP="$CXXCPP $switch"
8410 if test x$ac_success = xyes; then
8416 ac_cpp='$CPP $CPPFLAGS'
8417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421 if test x$ax_cxx_compile_cxx17_required = xtrue; then
8422 if test x$ac_success = xno; then
8423 as_fn_error $? "*** A compiler with support
for C
++17 language features is required.
" "$LINENO" 5
8426 if test x$ac_success = xno; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++17 support was found
" >&5
8429 $as_echo "$as_me: No compiler with C
++17 support was found
" >&6;}
8433 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
8442 if test -n "$ac_aux_dir"; then
8443 case "$ac_aux_dir" in
8444 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
8445 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
8448 if test -z "$MKINSTALLDIRS"; then
8449 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8455 $as_echo_n "checking whether NLS is requested... " >&6; }
8456 # Check whether --enable-nls was given.
8457 if test "${enable_nls+set}" = set; then :
8458 enableval
=$enable_nls; USE_NLS
=$enableval
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8464 $as_echo "$USE_NLS" >&6; }
8471 # Prepare PATH_SEPARATOR.
8472 # The user is always right.
8473 if test "${PATH_SEPARATOR+set}" != set; then
8474 echo "#! /bin/sh" >conf$$.sh
8475 echo "exit 0" >>conf$$.sh
8477 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8485 # Find out how to test for executable files. Don't use a zero-byte file,
8486 # as systems may use methods other than mode bits to determine executability.
8487 cat >conf$$.
file <<_ASEOF
8491 chmod +x conf$$.
file
8492 if test -x conf$$.
file >/dev
/null
2>&1; then
8493 ac_executable_p
="test -x"
8495 ac_executable_p
="test -f"
8499 # Extract the first word of "msgfmt", so it can be a program name with args.
8500 set dummy msgfmt
; ac_word
=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_path_MSGFMT+:} false
; then :
8504 $as_echo_n "(cached) " >&6
8508 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8511 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8512 for ac_dir
in $PATH; do
8514 test -z "$ac_dir" && ac_dir
=.
8515 for ac_exec_ext
in '' $ac_executable_extensions; do
8516 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8517 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
8518 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8519 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
8526 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8530 MSGFMT
="$ac_cv_path_MSGFMT"
8531 if test "$MSGFMT" != ":"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8533 $as_echo "$MSGFMT" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8539 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8540 set dummy gmsgfmt
; ac_word
=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if ${ac_cv_path_GMSGFMT+:} false
; then :
8544 $as_echo_n "(cached) " >&6
8548 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8555 test -z "$as_dir" && as_dir
=.
8556 for ac_exec_ext
in '' $ac_executable_extensions; do
8557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8558 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8570 GMSGFMT
=$ac_cv_path_GMSGFMT
8571 if test -n "$GMSGFMT"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8573 $as_echo "$GMSGFMT" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8582 # Prepare PATH_SEPARATOR.
8583 # The user is always right.
8584 if test "${PATH_SEPARATOR+set}" != set; then
8585 echo "#! /bin/sh" >conf$$.sh
8586 echo "exit 0" >>conf$$.sh
8588 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8596 # Find out how to test for executable files. Don't use a zero-byte file,
8597 # as systems may use methods other than mode bits to determine executability.
8598 cat >conf$$.
file <<_ASEOF
8602 chmod +x conf$$.
file
8603 if test -x conf$$.
file >/dev
/null
2>&1; then
8604 ac_executable_p
="test -x"
8606 ac_executable_p
="test -f"
8610 # Extract the first word of "xgettext", so it can be a program name with args.
8611 set dummy xgettext
; ac_word
=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if ${ac_cv_path_XGETTEXT+:} false
; then :
8615 $as_echo_n "(cached) " >&6
8619 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8622 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8623 for ac_dir
in $PATH; do
8625 test -z "$ac_dir" && ac_dir
=.
8626 for ac_exec_ext
in '' $ac_executable_extensions; do
8627 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8628 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
8629 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8630 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
8637 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8641 XGETTEXT
="$ac_cv_path_XGETTEXT"
8642 if test "$XGETTEXT" != ":"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8644 $as_echo "$XGETTEXT" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8653 # Prepare PATH_SEPARATOR.
8654 # The user is always right.
8655 if test "${PATH_SEPARATOR+set}" != set; then
8656 echo "#! /bin/sh" >conf$$.sh
8657 echo "exit 0" >>conf$$.sh
8659 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8667 # Find out how to test for executable files. Don't use a zero-byte file,
8668 # as systems may use methods other than mode bits to determine executability.
8669 cat >conf$$.
file <<_ASEOF
8673 chmod +x conf$$.
file
8674 if test -x conf$$.
file >/dev
/null
2>&1; then
8675 ac_executable_p
="test -x"
8677 ac_executable_p
="test -f"
8681 # Extract the first word of "msgmerge", so it can be a program name with args.
8682 set dummy msgmerge
; ac_word
=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_path_MSGMERGE+:} false
; then :
8686 $as_echo_n "(cached) " >&6
8690 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
8693 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8694 for ac_dir
in $PATH; do
8696 test -z "$ac_dir" && ac_dir
=.
8697 for ac_exec_ext
in '' $ac_executable_extensions; do
8698 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8699 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
8700 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
8707 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
8711 MSGMERGE
="$ac_cv_path_MSGMERGE"
8712 if test "$MSGMERGE" != ":"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8714 $as_echo "$MSGMERGE" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8721 if test "$GMSGFMT" != ":"; then
8722 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
8723 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8726 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8728 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
8733 if test "$XGETTEXT" != ":"; then
8734 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
8735 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8739 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8745 ac_config_commands
="$ac_config_commands default-1"
8749 if test "X$prefix" = "XNONE"; then
8750 acl_final_prefix
="$ac_default_prefix"
8752 acl_final_prefix
="$prefix"
8754 if test "X$exec_prefix" = "XNONE"; then
8755 acl_final_exec_prefix
='${prefix}'
8757 acl_final_exec_prefix
="$exec_prefix"
8759 acl_save_prefix
="$prefix"
8760 prefix
="$acl_final_prefix"
8761 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8762 prefix
="$acl_save_prefix"
8765 # Check whether --with-gnu-ld was given.
8766 if test "${with_gnu_ld+set}" = set; then :
8767 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8772 # Prepare PATH_SEPARATOR.
8773 # The user is always right.
8774 if test "${PATH_SEPARATOR+set}" != set; then
8775 echo "#! /bin/sh" >conf$$.sh
8776 echo "exit 0" >>conf$$.sh
8778 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8786 if test "$GCC" = yes; then
8787 # Check if gcc -print-prog-name=ld gives a path.
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8789 $as_echo_n "checking for ld used by GCC... " >&6; }
8792 # gcc leaves a trailing carriage return which upsets mingw
8793 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8795 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8798 # Accept absolute paths.
8799 [\\/]* |
[A-Za-z
]:[\\/]*)
8800 re_direlt
='/[^/][^/]*/\.\./'
8801 # Canonicalize the path of ld
8802 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8803 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8804 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8806 test -z "$LD" && LD
="$ac_prog"
8809 # If it fails, then pretend we aren't using GCC.
8813 # If it is relative, then search for the first ld in PATH.
8817 elif test "$with_gnu_ld" = yes; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8819 $as_echo_n "checking for GNU ld... " >&6; }
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8822 $as_echo_n "checking for non-GNU ld... " >&6; }
8824 if ${acl_cv_path_LD+:} false
; then :
8825 $as_echo_n "(cached) " >&6
8827 if test -z "$LD"; then
8828 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8829 for ac_dir
in $PATH; do
8830 test -z "$ac_dir" && ac_dir
=.
8831 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8832 acl_cv_path_LD
="$ac_dir/$ac_prog"
8833 # Check to see if the program is GNU ld. I'd rather use --version,
8834 # but apparently some GNU ld's only accept -v.
8835 # Break only if it was the GNU/non-GNU ld that we prefer.
8836 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
8837 test "$with_gnu_ld" != no
&& break
8839 test "$with_gnu_ld" != yes && break
8845 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8849 LD
="$acl_cv_path_LD"
8850 if test -n "$LD"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8852 $as_echo "$LD" >&6; }
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8857 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8859 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8860 if ${acl_cv_prog_gnu_ld+:} false
; then :
8861 $as_echo_n "(cached) " >&6
8863 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8864 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
8865 acl_cv_prog_gnu_ld
=yes
8867 acl_cv_prog_gnu_ld
=no
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8871 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8872 with_gnu_ld
=$acl_cv_prog_gnu_ld
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8877 $as_echo_n "checking for shared library run path origin... " >&6; }
8878 if ${acl_cv_rpath+:} false
; then :
8879 $as_echo_n "(cached) " >&6
8882 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8883 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8890 $as_echo "$acl_cv_rpath" >&6; }
8892 libext
="$acl_cv_libext"
8893 shlibext
="$acl_cv_shlibext"
8894 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8895 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8896 hardcode_direct
="$acl_cv_hardcode_direct"
8897 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8898 # Check whether --enable-rpath was given.
8899 if test "${enable_rpath+set}" = set; then :
8900 enableval
=$enable_rpath; :
8914 acl_save_prefix
="$prefix"
8915 prefix
="$acl_final_prefix"
8916 acl_save_exec_prefix
="$exec_prefix"
8917 exec_prefix
="$acl_final_exec_prefix"
8919 eval additional_includedir
=\"$includedir\"
8920 eval additional_libdir
=\"$libdir\"
8922 exec_prefix
="$acl_save_exec_prefix"
8923 prefix
="$acl_save_prefix"
8926 # Check whether --with-libiconv-prefix was given.
8927 if test "${with_libiconv_prefix+set}" = set; then :
8928 withval
=$with_libiconv_prefix;
8929 if test "X$withval" = "Xno"; then
8932 if test "X$withval" = "X"; then
8934 acl_save_prefix
="$prefix"
8935 prefix
="$acl_final_prefix"
8936 acl_save_exec_prefix
="$exec_prefix"
8937 exec_prefix
="$acl_final_exec_prefix"
8939 eval additional_includedir
=\"$includedir\"
8940 eval additional_libdir
=\"$libdir\"
8942 exec_prefix
="$acl_save_exec_prefix"
8943 prefix
="$acl_save_prefix"
8946 additional_includedir
="$withval/include"
8947 additional_libdir
="$withval/lib"
8954 # Check whether --with-libiconv-type was given.
8955 if test "${with_libiconv_type+set}" = set; then :
8956 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8958 with_libiconv_type
=auto
8961 lib_type
=`eval echo \$with_libiconv_type`
8968 names_already_handled
=
8969 names_next_round
='iconv '
8970 while test -n "$names_next_round"; do
8971 names_this_round
="$names_next_round"
8973 for name
in $names_this_round; do
8975 for n
in $names_already_handled; do
8976 if test "$n" = "$name"; then
8981 if test -z "$already_handled"; then
8982 names_already_handled
="$names_already_handled $name"
8983 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8984 eval value
=\"\
$HAVE_LIB$uppername\"
8985 if test -n "$value"; then
8986 if test "$value" = yes; then
8987 eval value
=\"\
$LIB$uppername\"
8988 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8989 eval value
=\"\
$LTLIB$uppername\"
8990 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8999 if test $use_additional = yes; then
9000 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9001 found_dir
="$additional_libdir"
9002 found_so
="$additional_libdir/lib$name.$shlibext"
9003 if test -f "$additional_libdir/lib$name.la"; then
9004 found_la
="$additional_libdir/lib$name.la"
9006 elif test x
$lib_type != xshared
; then
9007 if test -f "$additional_libdir/lib$name.$libext"; then
9008 found_dir
="$additional_libdir"
9009 found_a
="$additional_libdir/lib$name.$libext"
9010 if test -f "$additional_libdir/lib$name.la"; then
9011 found_la
="$additional_libdir/lib$name.la"
9016 if test "X$found_dir" = "X"; then
9017 for x
in $LDFLAGS $LTLIBICONV; do
9019 acl_save_prefix
="$prefix"
9020 prefix
="$acl_final_prefix"
9021 acl_save_exec_prefix
="$exec_prefix"
9022 exec_prefix
="$acl_final_exec_prefix"
9024 exec_prefix
="$acl_save_exec_prefix"
9025 prefix
="$acl_save_prefix"
9029 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9030 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9032 found_so
="$dir/lib$name.$shlibext"
9033 if test -f "$dir/lib$name.la"; then
9034 found_la
="$dir/lib$name.la"
9036 elif test x
$lib_type != xshared
; then
9037 if test -f "$dir/lib$name.$libext"; then
9039 found_a
="$dir/lib$name.$libext"
9040 if test -f "$dir/lib$name.la"; then
9041 found_la
="$dir/lib$name.la"
9047 if test "X$found_dir" != "X"; then
9052 if test "X$found_dir" != "X"; then
9053 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9054 if test "X$found_so" != "X"; then
9055 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9056 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9059 for x
in $ltrpathdirs; do
9060 if test "X$x" = "X$found_dir"; then
9065 if test -z "$haveit"; then
9066 ltrpathdirs
="$ltrpathdirs $found_dir"
9068 if test "$hardcode_direct" = yes; then
9069 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9071 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9072 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9074 for x
in $rpathdirs; do
9075 if test "X$x" = "X$found_dir"; then
9080 if test -z "$haveit"; then
9081 rpathdirs
="$rpathdirs $found_dir"
9085 for x
in $LDFLAGS $LIBICONV; do
9087 acl_save_prefix
="$prefix"
9088 prefix
="$acl_final_prefix"
9089 acl_save_exec_prefix
="$exec_prefix"
9090 exec_prefix
="$acl_final_exec_prefix"
9092 exec_prefix
="$acl_save_exec_prefix"
9093 prefix
="$acl_save_prefix"
9095 if test "X$x" = "X-L$found_dir"; then
9100 if test -z "$haveit"; then
9101 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9103 if test "$hardcode_minus_L" != no
; then
9104 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9106 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9112 if test "X$found_a" != "X"; then
9113 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9115 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9118 additional_includedir
=
9119 case "$found_dir" in
9121 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9122 additional_includedir
="$basedir/include"
9125 if test "X$additional_includedir" != "X"; then
9126 if test "X$additional_includedir" != "X/usr/include"; then
9128 if test "X$additional_includedir" = "X/usr/local/include"; then
9129 if test -n "$GCC"; then
9131 linux
*) haveit
=yes;;
9135 if test -z "$haveit"; then
9136 for x
in $CPPFLAGS $INCICONV; do
9138 acl_save_prefix
="$prefix"
9139 prefix
="$acl_final_prefix"
9140 acl_save_exec_prefix
="$exec_prefix"
9141 exec_prefix
="$acl_final_exec_prefix"
9143 exec_prefix
="$acl_save_exec_prefix"
9144 prefix
="$acl_save_prefix"
9146 if test "X$x" = "X-I$additional_includedir"; then
9151 if test -z "$haveit"; then
9152 if test -d "$additional_includedir"; then
9153 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9159 if test -n "$found_la"; then
9160 save_libdir
="$libdir"
9162 */* |
*\\*) .
"$found_la" ;;
9163 *) .
"./$found_la" ;;
9165 libdir
="$save_libdir"
9166 for dep
in $dependency_libs; do
9169 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9170 if test "X$additional_libdir" != "X/usr/lib"; then
9172 if test "X$additional_libdir" = "X/usr/local/lib"; then
9173 if test -n "$GCC"; then
9175 linux
*) haveit
=yes;;
9179 if test -z "$haveit"; then
9181 for x
in $LDFLAGS $LIBICONV; do
9183 acl_save_prefix
="$prefix"
9184 prefix
="$acl_final_prefix"
9185 acl_save_exec_prefix
="$exec_prefix"
9186 exec_prefix
="$acl_final_exec_prefix"
9188 exec_prefix
="$acl_save_exec_prefix"
9189 prefix
="$acl_save_prefix"
9191 if test "X$x" = "X-L$additional_libdir"; then
9196 if test -z "$haveit"; then
9197 if test -d "$additional_libdir"; then
9198 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9202 for x
in $LDFLAGS $LTLIBICONV; do
9204 acl_save_prefix
="$prefix"
9205 prefix
="$acl_final_prefix"
9206 acl_save_exec_prefix
="$exec_prefix"
9207 exec_prefix
="$acl_final_exec_prefix"
9209 exec_prefix
="$acl_save_exec_prefix"
9210 prefix
="$acl_save_prefix"
9212 if test "X$x" = "X-L$additional_libdir"; then
9217 if test -z "$haveit"; then
9218 if test -d "$additional_libdir"; then
9219 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9226 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9227 if test "$enable_rpath" != no
; then
9229 for x
in $rpathdirs; do
9230 if test "X$x" = "X$dir"; then
9235 if test -z "$haveit"; then
9236 rpathdirs
="$rpathdirs $dir"
9239 for x
in $ltrpathdirs; do
9240 if test "X$x" = "X$dir"; then
9245 if test -z "$haveit"; then
9246 ltrpathdirs
="$ltrpathdirs $dir"
9251 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9254 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9257 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9258 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9264 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9265 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9266 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9268 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
9269 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
9276 if test "X$rpathdirs" != "X"; then
9277 if test -n "$hardcode_libdir_separator"; then
9279 for found_dir
in $rpathdirs; do
9280 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9282 acl_save_libdir
="$libdir"
9284 eval flag
=\"$hardcode_libdir_flag_spec\"
9285 libdir
="$acl_save_libdir"
9286 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9288 for found_dir
in $rpathdirs; do
9289 acl_save_libdir
="$libdir"
9291 eval flag
=\"$hardcode_libdir_flag_spec\"
9292 libdir
="$acl_save_libdir"
9293 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9297 if test "X$ltrpathdirs" != "X"; then
9298 for found_dir
in $ltrpathdirs; do
9299 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9307 if test -f ..
/gettext
/uninstalled-config.sh
; then
9308 relative_builddir
='$(top_builddir)/../gettext'
9309 . ..
/gettext
/uninstalled-config.sh
9311 # The sister gettext directory doesn't exist and won't collect information on
9312 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9337 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
9338 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
9339 $as_echo_n "(cached) " >&6
9341 gt_save_LIBS
="$LIBS"
9342 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
9343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 #include <CoreFoundation/CFPreferences.h>
9349 CFPreferencesCopyAppValue(NULL, NULL)
9354 if ac_fn_c_try_link
"$LINENO"; then :
9355 gt_cv_func_CFPreferencesCopyAppValue
=yes
9357 gt_cv_func_CFPreferencesCopyAppValue
=no
9359 rm -f core conftest.err conftest.
$ac_objext \
9360 conftest
$ac_exeext conftest.
$ac_ext
9361 LIBS
="$gt_save_LIBS"
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9364 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9365 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9367 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9371 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9372 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
9373 $as_echo_n "(cached) " >&6
9375 gt_save_LIBS
="$LIBS"
9376 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
9377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #include <CoreFoundation/CFLocale.h>
9383 CFLocaleCopyPreferredLanguages();
9388 if ac_fn_c_try_link
"$LINENO"; then :
9389 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
9391 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
9393 rm -f core conftest.err conftest.
$ac_objext \
9394 conftest
$ac_exeext conftest.
$ac_ext
9395 LIBS
="$gt_save_LIBS"
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9398 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9399 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9401 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9405 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9406 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9407 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
9419 case " $gt_needs " in
9420 *" need-formatstring-macros "*) gt_api_version
=3 ;;
9421 *" need-ngettext "*) gt_api_version
=2 ;;
9422 *) gt_api_version
=1 ;;
9424 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
9425 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
9427 if test "$USE_NLS" = "yes"; then
9428 gt_use_preinstalled_gnugettext
=no
9431 if test $gt_api_version -ge 3; then
9432 gt_revision_test_code
='
9433 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9434 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9436 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9439 gt_revision_test_code
=
9441 if test $gt_api_version -ge 2; then
9442 gt_expression_test_code
=' + * ngettext ("", "", 0)'
9444 gt_expression_test_code
=
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9448 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9449 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
9450 $as_echo_n "(cached) " >&6
9452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 #include <libintl.h>
9456 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9457 extern int _nl_msg_cat_cntr;
9458 extern int *_nl_domain_bindings;
9459 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9461 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9463 $gt_revision_test_code
9469 bindtextdomain ("", "");
9470 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9476 if ac_fn_c_try_link
"$LINENO"; then :
9477 eval "$gt_func_gnugettext_libc=yes"
9479 eval "$gt_func_gnugettext_libc=no"
9481 rm -f core conftest.err conftest.
$ac_objext \
9482 conftest
$ac_exeext conftest.
$ac_ext
9484 eval ac_res
=\$
$gt_func_gnugettext_libc
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9486 $as_echo "$ac_res" >&6; }
9488 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9494 am_save_CPPFLAGS
="$CPPFLAGS"
9496 for element
in $INCICONV; do
9498 for x
in $CPPFLAGS; do
9500 acl_save_prefix
="$prefix"
9501 prefix
="$acl_final_prefix"
9502 acl_save_exec_prefix
="$exec_prefix"
9503 exec_prefix
="$acl_final_exec_prefix"
9505 exec_prefix
="$acl_save_exec_prefix"
9506 prefix
="$acl_save_prefix"
9508 if test "X$x" = "X$element"; then
9513 if test -z "$haveit"; then
9514 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9520 $as_echo_n "checking for iconv... " >&6; }
9521 if ${am_cv_func_iconv+:} false
; then :
9522 $as_echo_n "(cached) " >&6
9525 am_cv_func_iconv
="no, consider installing GNU libiconv"
9527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9536 iconv_t cd = iconv_open("","");
9537 iconv(cd,NULL,NULL,NULL,NULL);
9543 if ac_fn_c_try_link
"$LINENO"; then :
9544 am_cv_func_iconv
=yes
9546 rm -f core conftest.err conftest.
$ac_objext \
9547 conftest
$ac_exeext conftest.
$ac_ext
9548 if test "$am_cv_func_iconv" != yes; then
9549 am_save_LIBS
="$LIBS"
9550 LIBS
="$LIBS $LIBICONV"
9551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9560 iconv_t cd = iconv_open("","");
9561 iconv(cd,NULL,NULL,NULL,NULL);
9567 if ac_fn_c_try_link
"$LINENO"; then :
9569 am_cv_func_iconv
=yes
9571 rm -f core conftest.err conftest.
$ac_objext \
9572 conftest
$ac_exeext conftest.
$ac_ext
9573 LIBS
="$am_save_LIBS"
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9578 $as_echo "$am_cv_func_iconv" >&6; }
9579 if test "$am_cv_func_iconv" = yes; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9581 $as_echo_n "checking for working iconv... " >&6; }
9582 if ${am_cv_func_iconv_works+:} false
; then :
9583 $as_echo_n "(cached) " >&6
9586 am_save_LIBS
="$LIBS"
9587 if test $am_cv_lib_iconv = yes; then
9588 LIBS
="$LIBS $LIBICONV"
9590 am_cv_func_iconv_works
=no
9591 for ac_iconv_const
in '' 'const'; do
9592 if test "$cross_compiling" = yes; then :
9594 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
9595 *) am_cv_func_iconv_works
="guessing yes" ;;
9598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9605 # define ICONV_CONST $ac_iconv_const
9612 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
9613 successful returns. This is even documented in
9614 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
9616 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9617 if (cd_utf8_to_88591 != (iconv_t)(-1))
9619 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
9621 ICONV_CONST char *inptr = input;
9622 size_t inbytesleft = strlen (input);
9624 size_t outbytesleft = sizeof (buf);
9625 size_t res = iconv (cd_utf8_to_88591,
9626 &inptr, &inbytesleft,
9627 &outptr, &outbytesleft);
9630 iconv_close (cd_utf8_to_88591);
9633 /* Test against Solaris 10 bug: Failures are not distinguishable from
9634 successful returns. */
9636 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9637 if (cd_ascii_to_88591 != (iconv_t)(-1))
9639 static ICONV_CONST char input[] = "\263";
9641 ICONV_CONST char *inptr = input;
9642 size_t inbytesleft = strlen (input);
9644 size_t outbytesleft = sizeof (buf);
9645 size_t res = iconv (cd_ascii_to_88591,
9646 &inptr, &inbytesleft,
9647 &outptr, &outbytesleft);
9650 iconv_close (cd_ascii_to_88591);
9653 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9655 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9656 if (cd_88591_to_utf8 != (iconv_t)(-1))
9658 static ICONV_CONST char input[] = "\304";
9659 static char buf[2] = { (char)0xDE, (char)0xAD };
9660 ICONV_CONST char *inptr = input;
9661 size_t inbytesleft = 1;
9663 size_t outbytesleft = 1;
9664 size_t res = iconv (cd_88591_to_utf8,
9665 &inptr, &inbytesleft,
9666 &outptr, &outbytesleft);
9667 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9669 iconv_close (cd_88591_to_utf8);
9672 #if 0 /* This bug could be worked around by the caller. */
9673 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9675 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9676 if (cd_88591_to_utf8 != (iconv_t)(-1))
9678 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9680 ICONV_CONST char *inptr = input;
9681 size_t inbytesleft = strlen (input);
9683 size_t outbytesleft = sizeof (buf);
9684 size_t res = iconv (cd_88591_to_utf8,
9685 &inptr, &inbytesleft,
9686 &outptr, &outbytesleft);
9689 iconv_close (cd_88591_to_utf8);
9693 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9696 /* Try standardized names. */
9697 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
9698 /* Try IRIX, OSF/1 names. */
9699 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
9700 /* Try AIX names. */
9701 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
9702 /* Try HP-UX names. */
9703 iconv_t cd4 = iconv_open ("utf8", "eucJP");
9704 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
9705 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
9707 if (cd1 != (iconv_t)(-1))
9709 if (cd2 != (iconv_t)(-1))
9711 if (cd3 != (iconv_t)(-1))
9713 if (cd4 != (iconv_t)(-1))
9722 if ac_fn_c_try_run
"$LINENO"; then :
9723 am_cv_func_iconv_works
=yes
9725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9729 test "$am_cv_func_iconv_works" = no ||
break
9731 LIBS
="$am_save_LIBS"
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9735 $as_echo "$am_cv_func_iconv_works" >&6; }
9736 case "$am_cv_func_iconv_works" in
9737 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
9738 *) am_func_iconv
=yes ;;
9741 am_func_iconv
=no am_cv_lib_iconv
=no
9743 if test "$am_func_iconv" = yes; then
9745 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9748 if test "$am_cv_lib_iconv" = yes; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9750 $as_echo_n "checking how to link with libiconv... " >&6; }
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9752 $as_echo "$LIBICONV" >&6; }
9754 CPPFLAGS
="$am_save_CPPFLAGS"
9766 acl_save_prefix
="$prefix"
9767 prefix
="$acl_final_prefix"
9768 acl_save_exec_prefix
="$exec_prefix"
9769 exec_prefix
="$acl_final_exec_prefix"
9771 eval additional_includedir
=\"$includedir\"
9772 eval additional_libdir
=\"$libdir\"
9774 exec_prefix
="$acl_save_exec_prefix"
9775 prefix
="$acl_save_prefix"
9778 # Check whether --with-libintl-prefix was given.
9779 if test "${with_libintl_prefix+set}" = set; then :
9780 withval
=$with_libintl_prefix;
9781 if test "X$withval" = "Xno"; then
9784 if test "X$withval" = "X"; then
9786 acl_save_prefix
="$prefix"
9787 prefix
="$acl_final_prefix"
9788 acl_save_exec_prefix
="$exec_prefix"
9789 exec_prefix
="$acl_final_exec_prefix"
9791 eval additional_includedir
=\"$includedir\"
9792 eval additional_libdir
=\"$libdir\"
9794 exec_prefix
="$acl_save_exec_prefix"
9795 prefix
="$acl_save_prefix"
9798 additional_includedir
="$withval/include"
9799 additional_libdir
="$withval/lib"
9806 # Check whether --with-libintl-type was given.
9807 if test "${with_libintl_type+set}" = set; then :
9808 withval
=$with_libintl_type; with_libintl_type
=$withval
9810 with_libintl_type
=auto
9813 lib_type
=`eval echo \$with_libintl_type`
9820 names_already_handled
=
9821 names_next_round
='intl '
9822 while test -n "$names_next_round"; do
9823 names_this_round
="$names_next_round"
9825 for name
in $names_this_round; do
9827 for n
in $names_already_handled; do
9828 if test "$n" = "$name"; then
9833 if test -z "$already_handled"; then
9834 names_already_handled
="$names_already_handled $name"
9835 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9836 eval value
=\"\
$HAVE_LIB$uppername\"
9837 if test -n "$value"; then
9838 if test "$value" = yes; then
9839 eval value
=\"\
$LIB$uppername\"
9840 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
9841 eval value
=\"\
$LTLIB$uppername\"
9842 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
9851 if test $use_additional = yes; then
9852 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9853 found_dir
="$additional_libdir"
9854 found_so
="$additional_libdir/lib$name.$shlibext"
9855 if test -f "$additional_libdir/lib$name.la"; then
9856 found_la
="$additional_libdir/lib$name.la"
9858 elif test x
$lib_type != xshared
; then
9859 if test -f "$additional_libdir/lib$name.$libext"; then
9860 found_dir
="$additional_libdir"
9861 found_a
="$additional_libdir/lib$name.$libext"
9862 if test -f "$additional_libdir/lib$name.la"; then
9863 found_la
="$additional_libdir/lib$name.la"
9868 if test "X$found_dir" = "X"; then
9869 for x
in $LDFLAGS $LTLIBINTL; do
9871 acl_save_prefix
="$prefix"
9872 prefix
="$acl_final_prefix"
9873 acl_save_exec_prefix
="$exec_prefix"
9874 exec_prefix
="$acl_final_exec_prefix"
9876 exec_prefix
="$acl_save_exec_prefix"
9877 prefix
="$acl_save_prefix"
9881 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9882 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9884 found_so
="$dir/lib$name.$shlibext"
9885 if test -f "$dir/lib$name.la"; then
9886 found_la
="$dir/lib$name.la"
9888 elif test x
$lib_type != xshared
; then
9889 if test -f "$dir/lib$name.$libext"; then
9891 found_a
="$dir/lib$name.$libext"
9892 if test -f "$dir/lib$name.la"; then
9893 found_la
="$dir/lib$name.la"
9899 if test "X$found_dir" != "X"; then
9904 if test "X$found_dir" != "X"; then
9905 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9906 if test "X$found_so" != "X"; then
9907 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9908 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9911 for x
in $ltrpathdirs; do
9912 if test "X$x" = "X$found_dir"; then
9917 if test -z "$haveit"; then
9918 ltrpathdirs
="$ltrpathdirs $found_dir"
9920 if test "$hardcode_direct" = yes; then
9921 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9923 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9924 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9926 for x
in $rpathdirs; do
9927 if test "X$x" = "X$found_dir"; then
9932 if test -z "$haveit"; then
9933 rpathdirs
="$rpathdirs $found_dir"
9937 for x
in $LDFLAGS $LIBINTL; do
9939 acl_save_prefix
="$prefix"
9940 prefix
="$acl_final_prefix"
9941 acl_save_exec_prefix
="$exec_prefix"
9942 exec_prefix
="$acl_final_exec_prefix"
9944 exec_prefix
="$acl_save_exec_prefix"
9945 prefix
="$acl_save_prefix"
9947 if test "X$x" = "X-L$found_dir"; then
9952 if test -z "$haveit"; then
9953 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9955 if test "$hardcode_minus_L" != no
; then
9956 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9958 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9964 if test "X$found_a" != "X"; then
9965 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
9967 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9970 additional_includedir
=
9971 case "$found_dir" in
9973 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9974 additional_includedir
="$basedir/include"
9977 if test "X$additional_includedir" != "X"; then
9978 if test "X$additional_includedir" != "X/usr/include"; then
9980 if test "X$additional_includedir" = "X/usr/local/include"; then
9981 if test -n "$GCC"; then
9983 linux
*) haveit
=yes;;
9987 if test -z "$haveit"; then
9988 for x
in $CPPFLAGS $INCINTL; do
9990 acl_save_prefix
="$prefix"
9991 prefix
="$acl_final_prefix"
9992 acl_save_exec_prefix
="$exec_prefix"
9993 exec_prefix
="$acl_final_exec_prefix"
9995 exec_prefix
="$acl_save_exec_prefix"
9996 prefix
="$acl_save_prefix"
9998 if test "X$x" = "X-I$additional_includedir"; then
10003 if test -z "$haveit"; then
10004 if test -d "$additional_includedir"; then
10005 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10011 if test -n "$found_la"; then
10012 save_libdir
="$libdir"
10013 case "$found_la" in
10014 */* |
*\\*) .
"$found_la" ;;
10015 *) .
"./$found_la" ;;
10017 libdir
="$save_libdir"
10018 for dep
in $dependency_libs; do
10021 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10022 if test "X$additional_libdir" != "X/usr/lib"; then
10024 if test "X$additional_libdir" = "X/usr/local/lib"; then
10025 if test -n "$GCC"; then
10027 linux
*) haveit
=yes;;
10031 if test -z "$haveit"; then
10033 for x
in $LDFLAGS $LIBINTL; do
10035 acl_save_prefix
="$prefix"
10036 prefix
="$acl_final_prefix"
10037 acl_save_exec_prefix
="$exec_prefix"
10038 exec_prefix
="$acl_final_exec_prefix"
10040 exec_prefix
="$acl_save_exec_prefix"
10041 prefix
="$acl_save_prefix"
10043 if test "X$x" = "X-L$additional_libdir"; then
10048 if test -z "$haveit"; then
10049 if test -d "$additional_libdir"; then
10050 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10054 for x
in $LDFLAGS $LTLIBINTL; do
10056 acl_save_prefix
="$prefix"
10057 prefix
="$acl_final_prefix"
10058 acl_save_exec_prefix
="$exec_prefix"
10059 exec_prefix
="$acl_final_exec_prefix"
10061 exec_prefix
="$acl_save_exec_prefix"
10062 prefix
="$acl_save_prefix"
10064 if test "X$x" = "X-L$additional_libdir"; then
10069 if test -z "$haveit"; then
10070 if test -d "$additional_libdir"; then
10071 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10078 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10079 if test "$enable_rpath" != no
; then
10081 for x
in $rpathdirs; do
10082 if test "X$x" = "X$dir"; then
10087 if test -z "$haveit"; then
10088 rpathdirs
="$rpathdirs $dir"
10091 for x
in $ltrpathdirs; do
10092 if test "X$x" = "X$dir"; then
10097 if test -z "$haveit"; then
10098 ltrpathdirs
="$ltrpathdirs $dir"
10103 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10106 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10109 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
10110 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10116 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10117 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
10118 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10120 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
10121 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
10128 if test "X$rpathdirs" != "X"; then
10129 if test -n "$hardcode_libdir_separator"; then
10131 for found_dir
in $rpathdirs; do
10132 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10134 acl_save_libdir
="$libdir"
10136 eval flag
=\"$hardcode_libdir_flag_spec\"
10137 libdir
="$acl_save_libdir"
10138 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
10140 for found_dir
in $rpathdirs; do
10141 acl_save_libdir
="$libdir"
10142 libdir
="$found_dir"
10143 eval flag
=\"$hardcode_libdir_flag_spec\"
10144 libdir
="$acl_save_libdir"
10145 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
10149 if test "X$ltrpathdirs" != "X"; then
10150 for found_dir
in $ltrpathdirs; do
10151 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10156 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10157 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
10158 $as_echo_n "(cached) " >&6
10160 gt_save_CPPFLAGS
="$CPPFLAGS"
10161 CPPFLAGS
="$CPPFLAGS $INCINTL"
10162 gt_save_LIBS
="$LIBS"
10163 LIBS
="$LIBS $LIBINTL"
10164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10167 #include <libintl.h>
10168 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10169 extern int _nl_msg_cat_cntr;
10174 const char *_nl_expand_alias (const char *);
10175 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10177 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10179 $gt_revision_test_code
10185 bindtextdomain ("", "");
10186 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10192 if ac_fn_c_try_link
"$LINENO"; then :
10193 eval "$gt_func_gnugettext_libintl=yes"
10195 eval "$gt_func_gnugettext_libintl=no"
10197 rm -f core conftest.err conftest.
$ac_objext \
10198 conftest
$ac_exeext conftest.
$ac_ext
10199 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10200 LIBS
="$LIBS $LIBICONV"
10201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 #include <libintl.h>
10205 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10206 extern int _nl_msg_cat_cntr;
10211 const char *_nl_expand_alias (const char *);
10212 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10214 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10216 $gt_revision_test_code
10222 bindtextdomain ("", "");
10223 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10229 if ac_fn_c_try_link
"$LINENO"; then :
10230 LIBINTL
="$LIBINTL $LIBICONV"
10231 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
10232 eval "$gt_func_gnugettext_libintl=yes"
10235 rm -f core conftest.err conftest.
$ac_objext \
10236 conftest
$ac_exeext conftest.
$ac_ext
10238 CPPFLAGS
="$gt_save_CPPFLAGS"
10239 LIBS
="$gt_save_LIBS"
10241 eval ac_res
=\$
$gt_func_gnugettext_libintl
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10243 $as_echo "$ac_res" >&6; }
10246 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10247 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10248 && test "$PACKAGE" != gettext-runtime \
10249 && test "$PACKAGE" != gettext-tools
; }; then
10250 gt_use_preinstalled_gnugettext
=yes
10259 if test -n "$INTL_MACOSX_LIBS"; then
10260 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10261 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
10262 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
10263 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
10267 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10268 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
10270 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10278 $as_echo_n "checking whether to use NLS... " >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10280 $as_echo "$USE_NLS" >&6; }
10281 if test "$USE_NLS" = "yes"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10283 $as_echo_n "checking where the gettext function comes from... " >&6; }
10284 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10285 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10286 gt_source
="external libintl"
10291 gt_source
="included intl directory"
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10294 $as_echo "$gt_source" >&6; }
10297 if test "$USE_NLS" = "yes"; then
10299 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10300 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10302 $as_echo_n "checking how to link with libintl... " >&6; }
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10304 $as_echo "$LIBINTL" >&6; }
10306 for element
in $INCINTL; do
10308 for x
in $CPPFLAGS; do
10310 acl_save_prefix
="$prefix"
10311 prefix
="$acl_final_prefix"
10312 acl_save_exec_prefix
="$exec_prefix"
10313 exec_prefix
="$acl_final_exec_prefix"
10315 exec_prefix
="$acl_save_exec_prefix"
10316 prefix
="$acl_save_prefix"
10318 if test "X$x" = "X$element"; then
10323 if test -z "$haveit"; then
10324 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10331 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
10334 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
10343 INTLLIBS
="$LIBINTL"
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10363 $as_echo_n "checking whether NLS is requested... " >&6; }
10364 if test x
"$USE_NLS" != xyes
; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 $as_echo "no" >&6; }
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369 $as_echo "yes" >&6; }
10371 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10375 $as_echo_n "checking for catalogs to be installed... " >&6; }
10376 # Look for .po and .gmo files in the source directory.
10379 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10380 # If there aren't any .gmo files the shell will give us the
10381 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10383 case "$cat" in *\
**)
10386 # The quadruple backslash is collapsed to a double backslash
10387 # by the backticks, then collapsed again by the double quotes,
10388 # leaving us with one backslash in the sed expression (right
10389 # before the dot that mustn't act as a wildcard).
10390 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10391 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10392 # The user is allowed to set LINGUAS to a list of languages to
10393 # install catalogs for. If it's empty that means "all of them."
10394 if test "x$LINGUAS" = x
; then
10395 CATALOGS
="$CATALOGS $cat"
10396 XLINGUAS
="$XLINGUAS $lang"
10398 case "$LINGUAS" in *$lang*)
10399 CATALOGS
="$CATALOGS $cat"
10400 XLINGUAS
="$XLINGUAS $lang"
10405 LINGUAS
="$XLINGUAS"
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10407 $as_echo "$LINGUAS" >&6; }
10420 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10421 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
10427 cat >>confdefs.h
<<_ACEOF
10428 #define HAVE_DECL_FFS $ac_have_decl
10431 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10432 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
10438 cat >>confdefs.h
<<_ACEOF
10439 #define HAVE_DECL_ASPRINTF $ac_have_decl
10442 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10443 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
10449 cat >>confdefs.h
<<_ACEOF
10450 #define HAVE_DECL_VASPRINTF $ac_have_decl
10453 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10454 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
10460 cat >>confdefs.h
<<_ACEOF
10461 #define HAVE_DECL_SNPRINTF $ac_have_decl
10464 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10465 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
10471 cat >>confdefs.h
<<_ACEOF
10472 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10475 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10476 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
10482 cat >>confdefs.h
<<_ACEOF
10483 #define HAVE_DECL_STRTOL $ac_have_decl
10486 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10487 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
10493 cat >>confdefs.h
<<_ACEOF
10494 #define HAVE_DECL_STRTOUL $ac_have_decl
10497 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10498 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
10504 cat >>confdefs.h
<<_ACEOF
10505 #define HAVE_DECL_STRTOLL $ac_have_decl
10508 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10509 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
10515 cat >>confdefs.h
<<_ACEOF
10516 #define HAVE_DECL_STRTOULL $ac_have_decl
10519 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10520 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
10526 cat >>confdefs.h
<<_ACEOF
10527 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10530 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10531 if test "x$ac_cv_type_long_long" = xyes
; then :
10533 cat >>confdefs.h
<<_ACEOF
10534 #define HAVE_LONG_LONG 1
10537 # The cast to long int works around a bug in the HP C Compiler
10538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10540 # This bug is HP SR number 8606223364.
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10542 $as_echo_n "checking size of long long... " >&6; }
10543 if ${ac_cv_sizeof_long_long+:} false
; then :
10544 $as_echo_n "(cached) " >&6
10546 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10549 if test "$ac_cv_type_long_long" = yes; then
10550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10552 as_fn_error
77 "cannot compute sizeof (long long)
10553 See \`config.log' for more details" "$LINENO" 5; }
10555 ac_cv_sizeof_long_long
=0
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10561 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10565 cat >>confdefs.h
<<_ACEOF
10566 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10573 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
10574 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
10575 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
10581 cat >>confdefs.h
<<_ACEOF
10582 #define HAVE_DECL_BASENAME $ac_have_decl
10589 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10590 if test "x$ac_cv_type_size_t" = xyes
; then :
10594 cat >>confdefs.h
<<_ACEOF
10595 #define size_t unsigned int
10603 for ac_header
in $ac_header_list
10605 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10606 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10608 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10609 cat >>confdefs.h
<<_ACEOF
10610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10623 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10624 if test "x$ac_cv_type_pid_t" = xyes
; then :
10628 cat >>confdefs.h
<<_ACEOF
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10635 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10636 if ${ac_cv_path_SED+:} false
; then :
10637 $as_echo_n "(cached) " >&6
10639 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
10640 for ac_i
in 1 2 3 4 5 6 7; do
10641 ac_script
="$ac_script$as_nl$ac_script"
10643 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
10644 { ac_script
=; unset ac_script
;}
10645 if test -z "$SED"; then
10646 ac_path_SED_found
=false
10647 # Loop through the user's path and test for each of PROGNAME-LIST
10648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10649 for as_dir
in $PATH
10652 test -z "$as_dir" && as_dir
=.
10653 for ac_prog
in sed gsed
; do
10654 for ac_exec_ext
in '' $ac_executable_extensions; do
10655 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
10656 as_fn_executable_p
"$ac_path_SED" ||
continue
10657 # Check for GNU ac_path_SED and select it if it is found.
10658 # Check for GNU $ac_path_SED
10659 case `"$ac_path_SED" --version 2>&1` in
10661 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
10664 $as_echo_n 0123456789 >"conftest.in"
10667 cat "conftest.in" "conftest.in" >"conftest.tmp"
10668 mv "conftest.tmp" "conftest.in"
10669 cp "conftest.in" "conftest.nl"
10670 $as_echo '' >> "conftest.nl"
10671 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
10672 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
10673 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
10674 if test $ac_count -gt ${ac_path_SED_max-0}; then
10675 # Best one so far, save it but keep looking for a better one
10676 ac_cv_path_SED
="$ac_path_SED"
10677 ac_path_SED_max
=$ac_count
10679 # 10*(2^10) chars as input seems more than enough
10680 test $ac_count -gt 10 && break
10682 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
10685 $ac_path_SED_found && break 3
10690 if test -z "$ac_cv_path_SED"; then
10691 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
10694 ac_cv_path_SED
=$SED
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10699 $as_echo "$ac_cv_path_SED" >&6; }
10700 SED
="$ac_cv_path_SED"
10704 # Set the 'development' global.
10705 .
$srcdir/..
/bfd
/development.sh
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10708 $as_echo_n "checking for ANSI C header files... " >&6; }
10709 if ${ac_cv_header_stdc+:} false
; then :
10710 $as_echo_n "(cached) " >&6
10712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714 #include <stdlib.h>
10715 #include <stdarg.h>
10716 #include <string.h>
10727 if ac_fn_c_try_compile
"$LINENO"; then :
10728 ac_cv_header_stdc
=yes
10730 ac_cv_header_stdc
=no
10732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10734 if test $ac_cv_header_stdc = yes; then
10735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 #include <string.h>
10741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10742 $EGREP "memchr" >/dev
/null
2>&1; then :
10745 ac_cv_header_stdc
=no
10751 if test $ac_cv_header_stdc = yes; then
10752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 #include <stdlib.h>
10758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10759 $EGREP "free" >/dev
/null
2>&1; then :
10762 ac_cv_header_stdc
=no
10768 if test $ac_cv_header_stdc = yes; then
10769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10770 if test "$cross_compiling" = yes; then :
10773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10776 #include <stdlib.h>
10777 #if ((' ' & 0x0FF) == 0x020)
10778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10781 # define ISLOWER(c) \
10782 (('a' <= (c) && (c) <= 'i') \
10783 || ('j' <= (c) && (c) <= 'r') \
10784 || ('s' <= (c) && (c) <= 'z'))
10785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10793 for (i = 0; i < 256; i++)
10794 if (XOR (islower (i), ISLOWER (i))
10795 || toupper (i) != TOUPPER (i))
10800 if ac_fn_c_try_run
"$LINENO"; then :
10803 ac_cv_header_stdc
=no
10805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10812 $as_echo "$ac_cv_header_stdc" >&6; }
10813 if test $ac_cv_header_stdc = yes; then
10815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10819 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10820 # for constant arguments. Useless!
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10822 $as_echo_n "checking for working alloca.h... " >&6; }
10823 if ${ac_cv_working_alloca_h+:} false
; then :
10824 $as_echo_n "(cached) " >&6
10826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828 #include <alloca.h>
10832 char *p = (char *) alloca (2 * sizeof (int));
10838 if ac_fn_c_try_link
"$LINENO"; then :
10839 ac_cv_working_alloca_h
=yes
10841 ac_cv_working_alloca_h
=no
10843 rm -f core conftest.err conftest.
$ac_objext \
10844 conftest
$ac_exeext conftest.
$ac_ext
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10847 $as_echo "$ac_cv_working_alloca_h" >&6; }
10848 if test $ac_cv_working_alloca_h = yes; then
10850 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10855 $as_echo_n "checking for alloca... " >&6; }
10856 if ${ac_cv_func_alloca_works+:} false
; then :
10857 $as_echo_n "(cached) " >&6
10859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10862 # define alloca __builtin_alloca
10865 # include <malloc.h>
10866 # define alloca _alloca
10868 # ifdef HAVE_ALLOCA_H
10869 # include <alloca.h>
10874 # ifndef alloca /* predefined by HP cc +Olibcalls */
10875 void *alloca (size_t);
10885 char *p = (char *) alloca (1);
10891 if ac_fn_c_try_link
"$LINENO"; then :
10892 ac_cv_func_alloca_works
=yes
10894 ac_cv_func_alloca_works
=no
10896 rm -f core conftest.err conftest.
$ac_objext \
10897 conftest
$ac_exeext conftest.
$ac_ext
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10900 $as_echo "$ac_cv_func_alloca_works" >&6; }
10902 if test $ac_cv_func_alloca_works = yes; then
10904 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10907 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10908 # that cause trouble. Some versions do not even contain alloca or
10909 # contain a buggy version. If you still want to use their alloca,
10910 # use ar to extract alloca.o from them instead of compiling alloca.c.
10912 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10914 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10918 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10919 if ${ac_cv_os_cray+:} false
; then :
10920 $as_echo_n "(cached) " >&6
10922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #if defined CRAY && ! defined CRAY2
10931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10932 $EGREP "webecray" >/dev
/null
2>&1; then :
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10941 $as_echo "$ac_cv_os_cray" >&6; }
10942 if test $ac_cv_os_cray = yes; then
10943 for ac_func
in _getb67 GETB67 getb67
; do
10944 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10945 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10946 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10948 cat >>confdefs.h
<<_ACEOF
10949 #define CRAY_STACKSEG_END $ac_func
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10959 $as_echo_n "checking stack direction for C alloca... " >&6; }
10960 if ${ac_cv_c_stack_direction+:} false
; then :
10961 $as_echo_n "(cached) " >&6
10963 if test "$cross_compiling" = yes; then :
10964 ac_cv_c_stack_direction
=0
10966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968 $ac_includes_default
10970 find_stack_direction (int *addr, int depth)
10972 int dir, dummy = 0;
10975 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
10976 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
10977 return dir + dummy;
10981 main (int argc, char **argv)
10983 return find_stack_direction (0, argc + !argv + 20) < 0;
10986 if ac_fn_c_try_run
"$LINENO"; then :
10987 ac_cv_c_stack_direction
=1
10989 ac_cv_c_stack_direction
=-1
10991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10997 $as_echo "$ac_cv_c_stack_direction" >&6; }
10998 cat >>confdefs.h
<<_ACEOF
10999 #define STACK_DIRECTION $ac_cv_c_stack_direction
11010 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11012 WIN32APILIBS
="-lws2_32"
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11018 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11019 if ${am_cv_langinfo_codeset+:} false
; then :
11020 $as_echo_n "(cached) " >&6
11022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11024 #include <langinfo.h>
11028 char* cs = nl_langinfo(CODESET);
11033 if ac_fn_c_try_link
"$LINENO"; then :
11034 am_cv_langinfo_codeset
=yes
11036 am_cv_langinfo_codeset
=no
11038 rm -f core conftest.err conftest.
$ac_objext \
11039 conftest
$ac_exeext conftest.
$ac_ext
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11043 $as_echo "$am_cv_langinfo_codeset" >&6; }
11044 if test $am_cv_langinfo_codeset = yes; then
11046 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11054 linux
/perf_event.h \
11071 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11072 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11073 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11074 cat >>confdefs.h
<<_ACEOF
11075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11084 for ac_func
in getpagesize
11086 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11087 if test "x$ac_cv_func_getpagesize" = xyes
; then :
11088 cat >>confdefs.h
<<_ACEOF
11089 #define HAVE_GETPAGESIZE 1
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11096 $as_echo_n "checking for working mmap... " >&6; }
11097 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
11098 $as_echo_n "(cached) " >&6
11100 if test "$cross_compiling" = yes; then :
11101 ac_cv_func_mmap_fixed_mapped
=no
11103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11105 $ac_includes_default
11106 /* malloc might have been renamed as rpl_malloc. */
11109 /* Thanks to Mike Haertel and Jim Avera for this test.
11110 Here is a matrix of mmap possibilities:
11111 mmap private not fixed
11112 mmap private fixed at somewhere currently unmapped
11113 mmap private fixed at somewhere already mapped
11114 mmap shared not fixed
11115 mmap shared fixed at somewhere currently unmapped
11116 mmap shared fixed at somewhere already mapped
11117 For private mappings, we should verify that changes cannot be read()
11118 back from the file, nor mmap's back from the file at a different
11119 address. (There have been systems where private was not correctly
11120 implemented like the infamous i386 svr4.0, and systems where the
11121 VM page cache was not coherent with the file system buffer cache
11122 like early versions of FreeBSD and possibly contemporary NetBSD.)
11123 For shared mappings, we should conversely verify that changes get
11124 propagated back to all the places they're supposed to be.
11126 Grep wants private fixed already mapped.
11127 The main things grep needs to know about mmap are:
11128 * does it exist and is it safe to write into the mmap'd area
11129 * how to use it (BSD variants) */
11132 #include <sys/mman.h>
11134 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11138 /* This mess was copied from the GNU getpagesize.h. */
11139 #ifndef HAVE_GETPAGESIZE
11140 # ifdef _SC_PAGESIZE
11141 # define getpagesize() sysconf(_SC_PAGESIZE)
11142 # else /* no _SC_PAGESIZE */
11143 # ifdef HAVE_SYS_PARAM_H
11144 # include <sys/param.h>
11145 # ifdef EXEC_PAGESIZE
11146 # define getpagesize() EXEC_PAGESIZE
11147 # else /* no EXEC_PAGESIZE */
11149 # define getpagesize() NBPG * CLSIZE
11152 # endif /* no CLSIZE */
11153 # else /* no NBPG */
11155 # define getpagesize() NBPC
11156 # else /* no NBPC */
11158 # define getpagesize() PAGESIZE
11159 # endif /* PAGESIZE */
11160 # endif /* no NBPC */
11161 # endif /* no NBPG */
11162 # endif /* no EXEC_PAGESIZE */
11163 # else /* no HAVE_SYS_PARAM_H */
11164 # define getpagesize() 8192 /* punt totally */
11165 # endif /* no HAVE_SYS_PARAM_H */
11166 # endif /* no _SC_PAGESIZE */
11168 #endif /* no HAVE_GETPAGESIZE */
11173 char *data, *data2, *data3;
11174 const char *cdata2;
11178 pagesize = getpagesize ();
11180 /* First, make a file with some known garbage in it. */
11181 data = (char *) malloc (pagesize);
11184 for (i = 0; i < pagesize; ++i)
11185 *(data + i) = rand ();
11187 fd = creat ("conftest.mmap", 0600);
11190 if (write (fd, data, pagesize) != pagesize)
11194 /* Next, check that the tail of a page is zero-filled. File must have
11195 non-zero length, otherwise we risk SIGBUS for entire page. */
11196 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11200 if (write (fd2, cdata2, 1) != 1)
11202 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11203 if (data2 == MAP_FAILED)
11205 for (i = 0; i < pagesize; ++i)
11209 if (munmap (data2, pagesize))
11212 /* Next, try to mmap the file at a fixed address which already has
11213 something else allocated at it. If we can, also make sure that
11214 we see the same garbage. */
11215 fd = open ("conftest.mmap", O_RDWR);
11218 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11219 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11221 for (i = 0; i < pagesize; ++i)
11222 if (*(data + i) != *(data2 + i))
11225 /* Finally, make sure that changes to the mapped area do not
11226 percolate back to the file as seen by read(). (This is a bug on
11227 some variants of i386 svr4.0.) */
11228 for (i = 0; i < pagesize; ++i)
11229 *(data2 + i) = *(data2 + i) + 1;
11230 data3 = (char *) malloc (pagesize);
11233 if (read (fd, data3, pagesize) != pagesize)
11235 for (i = 0; i < pagesize; ++i)
11236 if (*(data + i) != *(data3 + i))
11242 if ac_fn_c_try_run
"$LINENO"; then :
11243 ac_cv_func_mmap_fixed_mapped
=yes
11245 ac_cv_func_mmap_fixed_mapped
=no
11247 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11248 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11253 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11254 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11256 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11259 rm -f conftest.mmap conftest.txt
11261 for ac_header
in vfork.h
11263 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11264 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11265 cat >>confdefs.h
<<_ACEOF
11266 #define HAVE_VFORK_H 1
11273 for ac_func
in fork vfork
11275 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11276 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11277 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11278 cat >>confdefs.h
<<_ACEOF
11279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11285 if test "x$ac_cv_func_fork" = xyes
; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11287 $as_echo_n "checking for working fork... " >&6; }
11288 if ${ac_cv_func_fork_works+:} false
; then :
11289 $as_echo_n "(cached) " >&6
11291 if test "$cross_compiling" = yes; then :
11292 ac_cv_func_fork_works
=cross
11294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 $ac_includes_default
11301 /* By Ruediger Kuhlmann. */
11302 return fork () < 0;
11308 if ac_fn_c_try_run
"$LINENO"; then :
11309 ac_cv_func_fork_works
=yes
11311 ac_cv_func_fork_works
=no
11313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11319 $as_echo "$ac_cv_func_fork_works" >&6; }
11322 ac_cv_func_fork_works
=$ac_cv_func_fork
11324 if test "x$ac_cv_func_fork_works" = xcross
; then
11326 *-*-amigaos* |
*-*-msdosdjgpp*)
11327 # Override, as these systems have only a dummy fork() stub
11328 ac_cv_func_fork_works
=no
11331 ac_cv_func_fork_works
=yes
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11335 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11337 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11338 if test "x$ac_cv_func_vfork" = xyes
; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11340 $as_echo_n "checking for working vfork... " >&6; }
11341 if ${ac_cv_func_vfork_works+:} false
; then :
11342 $as_echo_n "(cached) " >&6
11344 if test "$cross_compiling" = yes; then :
11345 ac_cv_func_vfork_works
=cross
11347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349 /* Thanks to Paul Eggert for this test. */
11350 $ac_includes_default
11351 #include <sys/wait.h>
11352 #ifdef HAVE_VFORK_H
11353 # include <vfork.h>
11355 /* On some sparc systems, changes by the child to local and incoming
11356 argument registers are propagated back to the parent. The compiler
11357 is told about this with #include <vfork.h>, but some compilers
11358 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11359 static variable whose address is put into a register that is
11360 clobbered by the vfork. */
11363 sparc_address_test (int arg)
11365 sparc_address_test (arg) int arg;
11368 static pid_t child;
11386 pid_t parent = getpid ();
11389 sparc_address_test (0);
11394 /* Here is another test for sparc vfork register problems. This
11395 test uses lots of local variables, at least as many local
11396 variables as main has allocated so far including compiler
11397 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11398 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11399 reuse the register of parent for one of the local variables,
11400 since it will think that parent can't possibly be used any more
11401 in this routine. Assigning to the local variable will thus
11402 munge parent in the parent process. */
11404 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11405 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11406 /* Convince the compiler that p..p7 are live; otherwise, it might
11407 use the same hardware register for all 8 local variables. */
11408 if (p != p1 || p != p2 || p != p3 || p != p4
11409 || p != p5 || p != p6 || p != p7)
11412 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11413 from child file descriptors. If the child closes a descriptor
11414 before it execs or exits, this munges the parent's descriptor
11415 as well. Test for this by closing stdout in the child. */
11416 _exit(close(fileno(stdout)) != 0);
11421 while (wait(&status) != child)
11424 /* Was there some problem with vforking? */
11427 /* Did the child fail? (This shouldn't happen.) */
11430 /* Did the vfork/compiler bug occur? */
11431 || parent != getpid()
11433 /* Did the file descriptor bug occur? */
11434 || fstat(fileno(stdout), &st) != 0
11439 if ac_fn_c_try_run
"$LINENO"; then :
11440 ac_cv_func_vfork_works
=yes
11442 ac_cv_func_vfork_works
=no
11444 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11445 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11450 $as_echo "$ac_cv_func_vfork_works" >&6; }
11453 if test "x$ac_cv_func_fork_works" = xcross
; then
11454 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11456 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11459 if test "x$ac_cv_func_vfork_works" = xyes
; then
11461 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11465 $as_echo "#define vfork fork" >>confdefs.h
11468 if test "x$ac_cv_func_fork_works" = xyes
; then
11470 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11474 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
11476 $as_echo_n "checking for library containing socketpair... " >&6; }
11477 if ${ac_cv_search_socketpair+:} false
; then :
11478 $as_echo_n "(cached) " >&6
11480 ac_func_search_save_LIBS
=$LIBS
11481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11490 char socketpair ();
11494 return socketpair ();
11499 for ac_lib
in '' socket
; do
11500 if test -z "$ac_lib"; then
11501 ac_res
="none required"
11504 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11506 if ac_fn_c_try_link
"$LINENO"; then :
11507 ac_cv_search_socketpair
=$ac_res
11509 rm -f core conftest.err conftest.
$ac_objext \
11511 if ${ac_cv_search_socketpair+:} false
; then :
11515 if ${ac_cv_search_socketpair+:} false
; then :
11518 ac_cv_search_socketpair
=no
11520 rm conftest.
$ac_ext
11521 LIBS
=$ac_func_search_save_LIBS
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
11524 $as_echo "$ac_cv_search_socketpair" >&6; }
11525 ac_res
=$ac_cv_search_socketpair
11526 if test "$ac_res" != no
; then :
11527 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11551 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11552 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11553 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11554 cat >>confdefs.h
<<_ACEOF
11555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11562 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
11563 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
11564 # only in linux/personality.h.
11565 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
11567 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
11573 cat >>confdefs.h
<<_ACEOF
11574 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
11578 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11579 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
11585 cat >>confdefs.h
<<_ACEOF
11586 #define HAVE_DECL_STRSTR $ac_have_decl
11590 # ----------------------- #
11591 # Checks for structures. #
11592 # ----------------------- #
11594 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11595 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
11597 cat >>confdefs.h
<<_ACEOF
11598 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11603 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11604 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
11606 cat >>confdefs.h
<<_ACEOF
11607 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11614 # On FreeBSD we need libutil for the kinfo_get* functions. On
11615 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
11616 # Figure out which one to use.
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
11618 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
11619 if ${ac_cv_search_kinfo_getfile+:} false
; then :
11620 $as_echo_n "(cached) " >&6
11622 ac_func_search_save_LIBS
=$LIBS
11623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11632 char kinfo_getfile ();
11636 return kinfo_getfile ();
11641 for ac_lib
in '' util util-freebsd
; do
11642 if test -z "$ac_lib"; then
11643 ac_res
="none required"
11646 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11648 if ac_fn_c_try_link
"$LINENO"; then :
11649 ac_cv_search_kinfo_getfile
=$ac_res
11651 rm -f core conftest.err conftest.
$ac_objext \
11653 if ${ac_cv_search_kinfo_getfile+:} false
; then :
11657 if ${ac_cv_search_kinfo_getfile+:} false
; then :
11660 ac_cv_search_kinfo_getfile
=no
11662 rm conftest.
$ac_ext
11663 LIBS
=$ac_func_search_save_LIBS
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
11666 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
11667 ac_res
=$ac_cv_search_kinfo_getfile
11668 if test "$ac_res" != no
; then :
11669 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11674 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
11675 for ac_func
in kinfo_getfile
11677 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
11678 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
11679 cat >>confdefs.h
<<_ACEOF
11680 #define HAVE_KINFO_GETFILE 1
11687 # ----------------------- #
11688 # Check for threading. #
11689 # ----------------------- #
11691 # Check whether --enable-threading was given.
11692 if test "${enable_threading+set}" = set; then :
11693 enableval
=$enable_threading; case "$enableval" in
11694 yes) want_threading
=yes ;;
11695 no
) want_threading
=no
;;
11696 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
11699 want_threading
=auto
11703 # Check for std::thread. This does not work on some platforms, like
11704 # mingw using the win32 threads model with gcc older than 13, and
11707 ac_cpp
='$CXXCPP $CPPFLAGS'
11708 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11717 ac_cpp
='$CPP $CPPFLAGS'
11718 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11719 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11720 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11724 # We used to check for pthread.h first, but this fails if pthread.h
11725 # requires special compiler flags (e.g. on Tru64 or Sequent).
11726 # It gets checked for in the link test anyway.
11728 # First of all, check if the user has set any of the PTHREAD_LIBS,
11729 # etcetera environment variables, and if threads linking works using
11731 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11732 ax_pthread_save_CC
="$CC"
11733 ax_pthread_save_CFLAGS
="$CFLAGS"
11734 ax_pthread_save_LIBS
="$LIBS"
11735 if test "x$PTHREAD_CC" != "x"; then :
11738 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11739 LIBS
="$PTHREAD_LIBS $LIBS"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11741 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11745 /* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11751 char pthread_join ();
11755 return pthread_join ();
11760 if ac_fn_c_try_link
"$LINENO"; then :
11763 rm -f core conftest.err conftest.
$ac_objext \
11764 conftest
$ac_exeext conftest.
$ac_ext
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11766 $as_echo "$ax_pthread_ok" >&6; }
11767 if test "x$ax_pthread_ok" = "xno"; then
11771 CC
="$ax_pthread_save_CC"
11772 CFLAGS
="$ax_pthread_save_CFLAGS"
11773 LIBS
="$ax_pthread_save_LIBS"
11776 # We must check for the threads library under a number of different
11777 # names; the ordering is very important because some systems
11778 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11779 # libraries is broken (non-POSIX).
11781 # Create a list of thread flags to try. Items starting with a "-" are
11782 # C compiler flags, and other items are library names, except for "none"
11783 # which indicates that we try without any flags at all, and "pthread-config"
11784 # which is a program returning the flags for the Pth emulation library.
11786 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11788 # The ordering *is* (sometimes) important. Some notes on the
11789 # individual items follow:
11791 # pthreads: AIX (must check this before -lpthread)
11792 # none: in case threads are in libc; should be tried before -Kthread and
11793 # other compiler flags to prevent continual compiler warnings
11794 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11795 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11796 # (Note: HP C rejects this with "bad form for `-t' option")
11797 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11798 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11799 # doesn't hurt to check since this sometimes defines pthreads and
11800 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11801 # is present but should not be used directly; and before -mthreads,
11802 # because the compiler interprets this as "-mt" + "-hreads")
11803 # -mthreads: Mingw32/gcc, Lynx/gcc
11804 # pthread: Linux, etcetera
11805 # --thread-safe: KAI C++
11806 # pthread-config: use pthread-config program (for GNU Pth library)
11812 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11813 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11815 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
11820 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11821 # multi-threading and also sets -lpthread."
11823 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
11828 # IBM z/OS requires a feature-test macro to be defined in order to
11829 # enable POSIX threads at all, so give the user a hint if this is
11830 # not set. (We don't define these ourselves, as they can affect
11831 # other portions of the system API in unpredictable ways.)
11833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11836 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11837 AX_PTHREAD_ZOS_MISSING
11841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11842 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11844 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11852 # On Solaris (at least, for some versions), libc contains stubbed
11853 # (non-functional) versions of the pthreads routines, so link-based
11854 # tests will erroneously succeed. (N.B.: The stubs are missing
11855 # pthread_cleanup_push, or rather a function called by this macro,
11856 # so we could check for that, but who knows whether they'll stub
11857 # that too in a future libc.) So we'll check first for the
11858 # standard Solaris way of linking pthreads (-mt -lpthread).
11860 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
11864 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11866 if test "x$GCC" = "xyes"; then :
11867 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
11870 # The presence of a feature test macro requesting re-entrant function
11871 # definitions is, on some systems, a strong hint that pthreads support is
11872 # correctly enabled
11875 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
11876 ax_pthread_check_macro
="_REENTRANT"
11880 ax_pthread_check_macro
="_THREAD_SAFE"
11884 ax_pthread_check_macro
="--"
11887 if test "x$ax_pthread_check_macro" = "x--"; then :
11888 ax_pthread_check_cond
=0
11890 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
11893 # Are we compiling with Clang?
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11896 $as_echo_n "checking whether $CC is Clang... " >&6; }
11897 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
11898 $as_echo_n "(cached) " >&6
11900 ax_cv_PTHREAD_CLANG
=no
11901 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11902 if test "x$GCC" = "xyes"; then
11903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11906 # if defined(__clang__) && defined(__llvm__)
11907 AX_PTHREAD_CC_IS_CLANG
11911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11912 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
11913 ax_cv_PTHREAD_CLANG
=yes
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11921 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11922 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
11924 ax_pthread_clang_warning
=no
11926 # Clang needs special handling, because older versions handle the -pthread
11927 # option in a rather... idiosyncratic way
11929 if test "x$ax_pthread_clang" = "xyes"; then
11931 # Clang takes -pthread; it has never supported any other flag
11933 # (Note 1: This will need to be revisited if a system that Clang
11934 # supports has POSIX threads in a separate library. This tends not
11935 # to be the way of modern systems, but it's conceivable.)
11937 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11938 # to get POSIX threads support; the API is always present and
11939 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11940 # -pthread does define _REENTRANT, and while the Darwin headers
11941 # ignore this macro, third-party headers might not.)
11943 PTHREAD_CFLAGS
="-pthread"
11948 # However, older versions of Clang make a point of warning the user
11949 # that, in an invocation where only linking and no compilation is
11950 # taking place, the -pthread option has no effect ("argument unused
11951 # during compilation"). They expect -pthread to be passed in only
11952 # when source code is being compiled.
11954 # Problem is, this is at odds with the way Automake and most other
11955 # C build frameworks function, which is that the same flags used in
11956 # compilation (CFLAGS) are also used in linking. Many systems
11957 # supported by AX_PTHREAD require exactly this for POSIX threads
11958 # support, and in fact it is often not straightforward to specify a
11959 # flag that is used only in the compilation phase and not in
11960 # linking. Such a scenario is extremely rare in practice.
11962 # Even though use of the -pthread flag in linking would only print
11963 # a warning, this can be a nuisance for well-run software projects
11964 # that build with -Werror. So if the active version of Clang has
11965 # this misfeature, we search for an option to squash it.
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11968 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11969 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
11970 $as_echo_n "(cached) " >&6
11972 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
11973 # Create an alternate version of $ac_link that compiles and
11974 # links in two steps (.c -> .o, .o -> exe) instead of one
11975 # (.c -> exe), because the warning occurs only in the second
11977 ax_pthread_save_ac_link
="$ac_link"
11978 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11979 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11980 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11981 ax_pthread_save_CFLAGS
="$CFLAGS"
11982 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
11983 if test "x$ax_pthread_try" = "xunknown"; then :
11986 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11987 ac_link
="$ax_pthread_save_ac_link"
11988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11990 int main(void){return 0;}
11992 if ac_fn_c_try_link
"$LINENO"; then :
11993 ac_link
="$ax_pthread_2step_ac_link"
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 int main(void){return 0;}
11998 if ac_fn_c_try_link
"$LINENO"; then :
12001 rm -f core conftest.err conftest.
$ac_objext \
12002 conftest
$ac_exeext conftest.
$ac_ext
12005 rm -f core conftest.err conftest.
$ac_objext \
12006 conftest
$ac_exeext conftest.
$ac_ext
12008 ac_link
="$ax_pthread_save_ac_link"
12009 CFLAGS
="$ax_pthread_save_CFLAGS"
12010 if test "x$ax_pthread_try" = "x"; then :
12013 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
12017 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
12019 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
12021 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
12024 fi # $ax_pthread_clang = yes
12026 if test "x$ax_pthread_ok" = "xno"; then
12027 for ax_pthread_try_flag
in $ax_pthread_flags; do
12029 case $ax_pthread_try_flag in
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12032 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
12037 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
12038 PTHREAD_CFLAGS
="-mt"
12039 PTHREAD_LIBS
="-lpthread"
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
12044 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
12045 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
12049 # Extract the first word of "pthread-config", so it can be a program name with args.
12050 set dummy pthread-config
; ac_word
=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
12054 $as_echo_n "(cached) " >&6
12056 if test -n "$ax_pthread_config"; then
12057 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
12059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12060 for as_dir
in $PATH
12063 test -z "$as_dir" && as_dir
=.
12064 for ac_exec_ext
in '' $ac_executable_extensions; do
12065 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_prog_ax_pthread_config
="yes"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
12077 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
12078 if test -n "$ax_pthread_config"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
12080 $as_echo "$ax_pthread_config" >&6; }
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12087 if test "x$ax_pthread_config" = "xno"; then :
12090 PTHREAD_CFLAGS
="`pthread-config --cflags`"
12091 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
12096 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
12097 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
12101 ax_pthread_save_CFLAGS
="$CFLAGS"
12102 ax_pthread_save_LIBS
="$LIBS"
12103 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
12104 LIBS
="$PTHREAD_LIBS $LIBS"
12106 # Check for various functions. We must include pthread.h,
12107 # since some functions may be macros. (On the Sequent, we
12108 # need a special flag -Kthread to make this header compile.)
12109 # We check for pthread_join because it is in -lpthread on IRIX
12110 # while pthread_create is in libc. We check for pthread_attr_init
12111 # due to DEC craziness with -lpthreads. We check for
12112 # pthread_cleanup_push because it is one of the few pthread
12113 # functions on Solaris that doesn't have a non-functional libc stub.
12114 # We try pthread_create on general principles.
12116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12118 #include <pthread.h>
12119 # if $ax_pthread_check_cond
12120 # error "$ax_pthread_check_macro must be defined"
12122 static void routine(void *a) { a = 0; }
12123 static void *start_routine(void *a) { return a; }
12127 pthread_t th; pthread_attr_t attr;
12128 pthread_create(&th, 0, start_routine, 0);
12129 pthread_join(th, 0);
12130 pthread_attr_init(&attr);
12131 pthread_cleanup_push(routine, 0);
12132 pthread_cleanup_pop(0) /* ; */
12137 if ac_fn_c_try_link
"$LINENO"; then :
12140 rm -f core conftest.err conftest.
$ac_objext \
12141 conftest
$ac_exeext conftest.
$ac_ext
12143 CFLAGS
="$ax_pthread_save_CFLAGS"
12144 LIBS
="$ax_pthread_save_LIBS"
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
12147 $as_echo "$ax_pthread_ok" >&6; }
12148 if test "x$ax_pthread_ok" = "xyes"; then :
12157 # Various other checks:
12158 if test "x$ax_pthread_ok" = "xyes"; then
12159 ax_pthread_save_CFLAGS
="$CFLAGS"
12160 ax_pthread_save_LIBS
="$LIBS"
12161 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
12162 LIBS
="$PTHREAD_LIBS $LIBS"
12164 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
12166 $as_echo_n "checking for joinable pthread attribute... " >&6; }
12167 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
12168 $as_echo_n "(cached) " >&6
12170 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
12171 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
12172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174 #include <pthread.h>
12178 int attr = $ax_pthread_attr; return attr /* ; */
12183 if ac_fn_c_try_link
"$LINENO"; then :
12184 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
12186 rm -f core conftest.err conftest.
$ac_objext \
12187 conftest
$ac_exeext conftest.
$ac_ext
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
12192 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
12193 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
12194 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
12195 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
12197 cat >>confdefs.h
<<_ACEOF
12198 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
12201 ax_pthread_joinable_attr_defined
=yes
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
12206 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
12207 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
12208 $as_echo_n "(cached) " >&6
12210 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
12213 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
12219 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
12220 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
12221 test "x$ax_pthread_special_flags_added" != "xyes"; then :
12222 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
12223 ax_pthread_special_flags_added
=yes
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
12227 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
12228 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
12229 $as_echo_n "(cached) " >&6
12231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12233 #include <pthread.h>
12237 int i = PTHREAD_PRIO_INHERIT;
12242 if ac_fn_c_try_link
"$LINENO"; then :
12243 ax_cv_PTHREAD_PRIO_INHERIT
=yes
12245 ax_cv_PTHREAD_PRIO_INHERIT
=no
12247 rm -f core conftest.err conftest.
$ac_objext \
12248 conftest
$ac_exeext conftest.
$ac_ext
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
12252 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
12253 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
12254 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
12256 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
12258 ax_pthread_prio_inherit_defined
=yes
12262 CFLAGS
="$ax_pthread_save_CFLAGS"
12263 LIBS
="$ax_pthread_save_LIBS"
12265 # More AIX lossage: compile with *_r variant
12266 if test "x$GCC" != "xyes"; then
12270 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
12271 #handle absolute path differently from PATH based program lookup
12274 if as_fn_executable_p
${CC}_r
; then :
12275 PTHREAD_CC
="${CC}_r"
12278 for ac_prog
in ${CC}_r
12280 # Extract the first word of "$ac_prog", so it can be a program name with args.
12281 set dummy
$ac_prog; ac_word
=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
12285 $as_echo_n "(cached) " >&6
12287 if test -n "$PTHREAD_CC"; then
12288 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
12290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12291 for as_dir
in $PATH
12294 test -z "$as_dir" && as_dir
=.
12295 for ac_exec_ext
in '' $ac_executable_extensions; do
12296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12297 ac_cv_prog_PTHREAD_CC
="$ac_prog"
12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
12308 if test -n "$PTHREAD_CC"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12310 $as_echo "$PTHREAD_CC" >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12317 test -n "$PTHREAD_CC" && break
12319 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
12330 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
12336 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12337 if test "x$ax_pthread_ok" = "xyes"; then
12345 ac_cpp
='$CXXCPP $CPPFLAGS'
12346 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12347 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12348 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12352 LIBS
="$PTHREAD_LIBS $LIBS"
12353 save_CXXFLAGS
="$CXXFLAGS"
12354 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
12356 $as_echo_n "checking for std::thread... " >&6; }
12357 if ${gdb_cv_cxx_std_thread+:} false
; then :
12358 $as_echo_n "(cached) " >&6
12360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362 #if defined (__MINGW32__) || defined (__CYGWIN__)
12363 # ifdef _WIN32_WINNT
12364 # if _WIN32_WINNT < 0x0501
12365 # undef _WIN32_WINNT
12366 # define _WIN32_WINNT 0x0501
12369 # define _WIN32_WINNT 0x0501
12371 #endif /* __MINGW32__ || __CYGWIN__ */
12374 void callback() { }
12378 std::thread t(callback);
12383 if ac_fn_cxx_try_compile
"$LINENO"; then :
12384 gdb_cv_cxx_std_thread
=yes
12386 gdb_cv_cxx_std_thread
=no
12388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
12391 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
12393 if test "$threads" = "yes"; then
12394 # This check must be here, while LIBS includes any necessary
12395 # threading library.
12396 for ac_func
in pthread_sigmask pthread_setname_np
12398 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12399 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12400 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12401 cat >>confdefs.h
<<_ACEOF
12402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12410 CXXFLAGS
="$save_CXXFLAGS"
12412 if test "$want_threading" != "no"; then
12413 if test "$gdb_cv_cxx_std_thread" = "yes"; then
12415 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
12418 if test "$want_threading" = "yes"; then
12419 as_fn_error $?
"std::thread does not work; disable threading" "$LINENO" 5
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: std::thread does not work; disabling threading" >&5
12422 $as_echo "$as_me: WARNING: std::thread does not work; disabling threading" >&2;}
12427 ac_cpp
='$CPP $CPPFLAGS'
12428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12434 $as_echo_n "checking for sigsetjmp... " >&6; }
12435 if ${gdb_cv_func_sigsetjmp+:} false
; then :
12436 $as_echo_n "(cached) " >&6
12438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12440 #include <setjmp.h>
12445 while (! sigsetjmp (env, 1))
12446 siglongjmp (env, 1);
12452 if ac_fn_c_try_compile
"$LINENO"; then :
12453 gdb_cv_func_sigsetjmp
=yes
12455 gdb_cv_func_sigsetjmp
=no
12458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12462 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12463 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
12465 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12470 # Check whether --with-intel_pt was given.
12471 if test "${with_intel_pt+set}" = set; then :
12472 withval
=$with_intel_pt;
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
12478 $as_echo_n "checking whether to use intel pt... " >&6; }
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
12480 $as_echo "$with_intel_pt" >&6; }
12482 if test "${with_intel_pt}" = no
; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
12484 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
12487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 #include <linux/perf_event.h>
12491 #ifndef PERF_ATTR_SIZE_VER5
12496 if ac_fn_c_try_cpp
"$LINENO"; then :
12501 rm -f conftest.err conftest.i conftest.
$ac_ext
12502 if test "$perf_event" != yes; then
12503 if test "$with_intel_pt" = yes; then
12504 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
12507 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
12521 acl_save_prefix
="$prefix"
12522 prefix
="$acl_final_prefix"
12523 acl_save_exec_prefix
="$exec_prefix"
12524 exec_prefix
="$acl_final_exec_prefix"
12526 eval additional_includedir
=\"$includedir\"
12527 eval additional_libdir
=\"$libdir\"
12529 exec_prefix
="$acl_save_exec_prefix"
12530 prefix
="$acl_save_prefix"
12533 # Check whether --with-libipt-prefix was given.
12534 if test "${with_libipt_prefix+set}" = set; then :
12535 withval
=$with_libipt_prefix;
12536 if test "X$withval" = "Xno"; then
12539 if test "X$withval" = "X"; then
12541 acl_save_prefix
="$prefix"
12542 prefix
="$acl_final_prefix"
12543 acl_save_exec_prefix
="$exec_prefix"
12544 exec_prefix
="$acl_final_exec_prefix"
12546 eval additional_includedir
=\"$includedir\"
12547 eval additional_libdir
=\"$libdir\"
12549 exec_prefix
="$acl_save_exec_prefix"
12550 prefix
="$acl_save_prefix"
12553 additional_includedir
="$withval/include"
12554 additional_libdir
="$withval/lib"
12561 # Check whether --with-libipt-type was given.
12562 if test "${with_libipt_type+set}" = set; then :
12563 withval
=$with_libipt_type; with_libipt_type
=$withval
12565 with_libipt_type
=auto
12568 lib_type
=`eval echo \$with_libipt_type`
12575 names_already_handled
=
12576 names_next_round
='ipt '
12577 while test -n "$names_next_round"; do
12578 names_this_round
="$names_next_round"
12580 for name
in $names_this_round; do
12582 for n
in $names_already_handled; do
12583 if test "$n" = "$name"; then
12584 already_handled
=yes
12588 if test -z "$already_handled"; then
12589 names_already_handled
="$names_already_handled $name"
12590 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12591 eval value
=\"\
$HAVE_LIB$uppername\"
12592 if test -n "$value"; then
12593 if test "$value" = yes; then
12594 eval value
=\"\
$LIB$uppername\"
12595 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
12596 eval value
=\"\
$LTLIB$uppername\"
12597 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
12606 if test $use_additional = yes; then
12607 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
12608 found_dir
="$additional_libdir"
12609 found_so
="$additional_libdir/lib$name.$shlibext"
12610 if test -f "$additional_libdir/lib$name.la"; then
12611 found_la
="$additional_libdir/lib$name.la"
12613 elif test x
$lib_type != xshared
; then
12614 if test -f "$additional_libdir/lib$name.$libext"; then
12615 found_dir
="$additional_libdir"
12616 found_a
="$additional_libdir/lib$name.$libext"
12617 if test -f "$additional_libdir/lib$name.la"; then
12618 found_la
="$additional_libdir/lib$name.la"
12623 if test "X$found_dir" = "X"; then
12624 for x
in $LDFLAGS $LTLIBIPT; do
12626 acl_save_prefix
="$prefix"
12627 prefix
="$acl_final_prefix"
12628 acl_save_exec_prefix
="$exec_prefix"
12629 exec_prefix
="$acl_final_exec_prefix"
12631 exec_prefix
="$acl_save_exec_prefix"
12632 prefix
="$acl_save_prefix"
12636 dir
=`echo "X$x" | sed -e 's/^X-L//'`
12637 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
12639 found_so
="$dir/lib$name.$shlibext"
12640 if test -f "$dir/lib$name.la"; then
12641 found_la
="$dir/lib$name.la"
12643 elif test x
$lib_type != xshared
; then
12644 if test -f "$dir/lib$name.$libext"; then
12646 found_a
="$dir/lib$name.$libext"
12647 if test -f "$dir/lib$name.la"; then
12648 found_la
="$dir/lib$name.la"
12654 if test "X$found_dir" != "X"; then
12659 if test "X$found_dir" != "X"; then
12660 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
12661 if test "X$found_so" != "X"; then
12662 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
12663 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
12666 for x
in $ltrpathdirs; do
12667 if test "X$x" = "X$found_dir"; then
12672 if test -z "$haveit"; then
12673 ltrpathdirs
="$ltrpathdirs $found_dir"
12675 if test "$hardcode_direct" = yes; then
12676 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
12678 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
12679 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
12681 for x
in $rpathdirs; do
12682 if test "X$x" = "X$found_dir"; then
12687 if test -z "$haveit"; then
12688 rpathdirs
="$rpathdirs $found_dir"
12692 for x
in $LDFLAGS $LIBIPT; do
12694 acl_save_prefix
="$prefix"
12695 prefix
="$acl_final_prefix"
12696 acl_save_exec_prefix
="$exec_prefix"
12697 exec_prefix
="$acl_final_exec_prefix"
12699 exec_prefix
="$acl_save_exec_prefix"
12700 prefix
="$acl_save_prefix"
12702 if test "X$x" = "X-L$found_dir"; then
12707 if test -z "$haveit"; then
12708 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
12710 if test "$hardcode_minus_L" != no
; then
12711 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
12713 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
12719 if test "X$found_a" != "X"; then
12720 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
12722 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
12725 additional_includedir
=
12726 case "$found_dir" in
12728 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12729 additional_includedir
="$basedir/include"
12732 if test "X$additional_includedir" != "X"; then
12733 if test "X$additional_includedir" != "X/usr/include"; then
12735 if test "X$additional_includedir" = "X/usr/local/include"; then
12736 if test -n "$GCC"; then
12738 linux
*) haveit
=yes;;
12742 if test -z "$haveit"; then
12743 for x
in $CPPFLAGS $INCIPT; do
12745 acl_save_prefix
="$prefix"
12746 prefix
="$acl_final_prefix"
12747 acl_save_exec_prefix
="$exec_prefix"
12748 exec_prefix
="$acl_final_exec_prefix"
12750 exec_prefix
="$acl_save_exec_prefix"
12751 prefix
="$acl_save_prefix"
12753 if test "X$x" = "X-I$additional_includedir"; then
12758 if test -z "$haveit"; then
12759 if test -d "$additional_includedir"; then
12760 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
12766 if test -n "$found_la"; then
12767 save_libdir
="$libdir"
12768 case "$found_la" in
12769 */* |
*\\*) .
"$found_la" ;;
12770 *) .
"./$found_la" ;;
12772 libdir
="$save_libdir"
12773 for dep
in $dependency_libs; do
12776 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12777 if test "X$additional_libdir" != "X/usr/lib"; then
12779 if test "X$additional_libdir" = "X/usr/local/lib"; then
12780 if test -n "$GCC"; then
12782 linux
*) haveit
=yes;;
12786 if test -z "$haveit"; then
12788 for x
in $LDFLAGS $LIBIPT; do
12790 acl_save_prefix
="$prefix"
12791 prefix
="$acl_final_prefix"
12792 acl_save_exec_prefix
="$exec_prefix"
12793 exec_prefix
="$acl_final_exec_prefix"
12795 exec_prefix
="$acl_save_exec_prefix"
12796 prefix
="$acl_save_prefix"
12798 if test "X$x" = "X-L$additional_libdir"; then
12803 if test -z "$haveit"; then
12804 if test -d "$additional_libdir"; then
12805 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
12809 for x
in $LDFLAGS $LTLIBIPT; do
12811 acl_save_prefix
="$prefix"
12812 prefix
="$acl_final_prefix"
12813 acl_save_exec_prefix
="$exec_prefix"
12814 exec_prefix
="$acl_final_exec_prefix"
12816 exec_prefix
="$acl_save_exec_prefix"
12817 prefix
="$acl_save_prefix"
12819 if test "X$x" = "X-L$additional_libdir"; then
12824 if test -z "$haveit"; then
12825 if test -d "$additional_libdir"; then
12826 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
12833 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12834 if test "$enable_rpath" != no
; then
12836 for x
in $rpathdirs; do
12837 if test "X$x" = "X$dir"; then
12842 if test -z "$haveit"; then
12843 rpathdirs
="$rpathdirs $dir"
12846 for x
in $ltrpathdirs; do
12847 if test "X$x" = "X$dir"; then
12852 if test -z "$haveit"; then
12853 ltrpathdirs
="$ltrpathdirs $dir"
12858 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12861 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12864 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
12865 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
12871 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
12872 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
12873 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
12875 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
12876 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
12883 if test "X$rpathdirs" != "X"; then
12884 if test -n "$hardcode_libdir_separator"; then
12886 for found_dir
in $rpathdirs; do
12887 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12889 acl_save_libdir
="$libdir"
12891 eval flag
=\"$hardcode_libdir_flag_spec\"
12892 libdir
="$acl_save_libdir"
12893 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
12895 for found_dir
in $rpathdirs; do
12896 acl_save_libdir
="$libdir"
12897 libdir
="$found_dir"
12898 eval flag
=\"$hardcode_libdir_flag_spec\"
12899 libdir
="$acl_save_libdir"
12900 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
12904 if test "X$ltrpathdirs" != "X"; then
12905 for found_dir
in $ltrpathdirs; do
12906 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
12911 ac_save_CPPFLAGS
="$CPPFLAGS"
12913 for element
in $INCIPT; do
12915 for x
in $CPPFLAGS; do
12917 acl_save_prefix
="$prefix"
12918 prefix
="$acl_final_prefix"
12919 acl_save_exec_prefix
="$exec_prefix"
12920 exec_prefix
="$acl_final_exec_prefix"
12922 exec_prefix
="$acl_save_exec_prefix"
12923 prefix
="$acl_save_prefix"
12925 if test "X$x" = "X$element"; then
12930 if test -z "$haveit"; then
12931 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
12937 $as_echo_n "checking for libipt... " >&6; }
12938 if ${ac_cv_libipt+:} false
; then :
12939 $as_echo_n "(cached) " >&6
12942 ac_save_LIBS
="$LIBS"
12943 LIBS
="$LIBS $LIBIPT"
12944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 #include "intel-pt.h"
12950 pt_insn_alloc_decoder (0);
12955 if ac_fn_c_try_link
"$LINENO"; then :
12960 rm -f core conftest.err conftest.
$ac_objext \
12961 conftest
$ac_exeext conftest.
$ac_ext
12962 LIBS
="$ac_save_LIBS"
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
12966 $as_echo "$ac_cv_libipt" >&6; }
12967 if test "$ac_cv_libipt" = yes; then
12970 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
12973 $as_echo_n "checking how to link with libipt... " >&6; }
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
12975 $as_echo "$LIBIPT" >&6; }
12978 CPPFLAGS
="$ac_save_CPPFLAGS"
12988 if test "$HAVE_LIBIPT" != yes; then
12989 if test "$with_intel_pt" = yes; then
12990 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12993 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12997 LIBS
="$LIBS $LIBIPT"
12998 for ac_func
in pt_insn_event
13000 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
13001 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
13002 cat >>confdefs.h
<<_ACEOF
13003 #define HAVE_PT_INSN_EVENT 1
13009 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
13011 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
13013 cat >>confdefs.h
<<_ACEOF
13014 #define HAVE_STRUCT_PT_INSN_ENABLED 1
13019 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
13021 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
13023 cat >>confdefs.h
<<_ACEOF
13024 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
13030 ac_fn_c_check_member
"$LINENO" "struct pt_event" "variant.ptwrite" "ac_cv_member_struct_pt_event_variant_ptwrite" "#include <intel-pt.h>
13032 if test "x$ac_cv_member_struct_pt_event_variant_ptwrite" = xyes
; then :
13034 cat >>confdefs.h
<<_ACEOF
13035 #define HAVE_STRUCT_PT_EVENT_VARIANT_PTWRITE 1
13045 # Check if the compiler and runtime support printing long longs.
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13048 $as_echo_n "checking for long long support in printf... " >&6; }
13049 if ${gdb_cv_printf_has_long_long+:} false
; then :
13050 $as_echo_n "(cached) " >&6
13052 if test "$cross_compiling" = yes; then :
13053 gdb_cv_printf_has_long_long
=no
13055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 $ac_includes_default
13063 l = (l << 16) + 0x0123;
13064 l = (l << 16) + 0x4567;
13065 l = (l << 16) + 0x89ab;
13066 l = (l << 16) + 0xcdef;
13067 sprintf (buf, "0x%016llx", l);
13068 return (strcmp ("0x0123456789abcdef", buf));
13073 if ac_fn_c_try_run
"$LINENO"; then :
13074 gdb_cv_printf_has_long_long
=yes
13076 gdb_cv_printf_has_long_long
=no
13078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13079 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13084 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13085 if test "$gdb_cv_printf_has_long_long" = yes; then
13087 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13092 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
13094 for ac_header
in sys
/procfs.h
13096 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
13097 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
13098 cat >>confdefs.h
<<_ACEOF
13099 #define HAVE_SYS_PROCFS_H 1
13106 if test "$ac_cv_header_sys_procfs_h" = yes; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13109 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13110 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
13111 $as_echo_n "(cached) " >&6
13113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13117 #include <sys/procfs.h>
13126 if ac_fn_c_try_compile
"$LINENO"; then :
13127 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13129 bfd_cv_have_sys_procfs_type_gregset_t
=no
13132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13135 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13137 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13141 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13145 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13146 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
13147 $as_echo_n "(cached) " >&6
13149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13153 #include <sys/procfs.h>
13162 if ac_fn_c_try_compile
"$LINENO"; then :
13163 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13165 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13171 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13173 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13177 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13181 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13182 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
13183 $as_echo_n "(cached) " >&6
13185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13189 #include <sys/procfs.h>
13198 if ac_fn_c_try_compile
"$LINENO"; then :
13199 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13201 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13207 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13209 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13213 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13217 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13218 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
13219 $as_echo_n "(cached) " >&6
13221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13225 #include <sys/procfs.h>
13234 if ac_fn_c_try_compile
"$LINENO"; then :
13235 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13237 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13243 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13245 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13249 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13253 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13254 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
13255 $as_echo_n "(cached) " >&6
13257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13261 #include <sys/procfs.h>
13270 if ac_fn_c_try_compile
"$LINENO"; then :
13271 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13273 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13279 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13281 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13285 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13289 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13290 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
13291 $as_echo_n "(cached) " >&6
13293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13297 #include <sys/procfs.h>
13306 if ac_fn_c_try_compile
"$LINENO"; then :
13307 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13309 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13315 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13317 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13321 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13325 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13326 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
13327 $as_echo_n "(cached) " >&6
13329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13333 #include <sys/procfs.h>
13342 if ac_fn_c_try_compile
"$LINENO"; then :
13343 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13345 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13351 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13353 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13357 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
13361 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
13362 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
13363 $as_echo_n "(cached) " >&6
13365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13369 #include <sys/procfs.h>
13373 elf_fpregset_t avar
13378 if ac_fn_c_try_compile
"$LINENO"; then :
13379 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
13381 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
13384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13387 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
13389 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
13393 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
13399 # Check whether --with-xxhash was given.
13400 if test "${with_xxhash+set}" = set; then :
13401 withval
=$with_xxhash;
13407 if test "x$with_xxhash" != "xno"; then
13418 acl_save_prefix
="$prefix"
13419 prefix
="$acl_final_prefix"
13420 acl_save_exec_prefix
="$exec_prefix"
13421 exec_prefix
="$acl_final_exec_prefix"
13423 eval additional_includedir
=\"$includedir\"
13424 eval additional_libdir
=\"$libdir\"
13426 exec_prefix
="$acl_save_exec_prefix"
13427 prefix
="$acl_save_prefix"
13430 # Check whether --with-libxxhash-prefix was given.
13431 if test "${with_libxxhash_prefix+set}" = set; then :
13432 withval
=$with_libxxhash_prefix;
13433 if test "X$withval" = "Xno"; then
13436 if test "X$withval" = "X"; then
13438 acl_save_prefix
="$prefix"
13439 prefix
="$acl_final_prefix"
13440 acl_save_exec_prefix
="$exec_prefix"
13441 exec_prefix
="$acl_final_exec_prefix"
13443 eval additional_includedir
=\"$includedir\"
13444 eval additional_libdir
=\"$libdir\"
13446 exec_prefix
="$acl_save_exec_prefix"
13447 prefix
="$acl_save_prefix"
13450 additional_includedir
="$withval/include"
13451 additional_libdir
="$withval/lib"
13458 # Check whether --with-libxxhash-type was given.
13459 if test "${with_libxxhash_type+set}" = set; then :
13460 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
13462 with_libxxhash_type
=auto
13465 lib_type
=`eval echo \$with_libxxhash_type`
13472 names_already_handled
=
13473 names_next_round
='xxhash '
13474 while test -n "$names_next_round"; do
13475 names_this_round
="$names_next_round"
13477 for name
in $names_this_round; do
13479 for n
in $names_already_handled; do
13480 if test "$n" = "$name"; then
13481 already_handled
=yes
13485 if test -z "$already_handled"; then
13486 names_already_handled
="$names_already_handled $name"
13487 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13488 eval value
=\"\
$HAVE_LIB$uppername\"
13489 if test -n "$value"; then
13490 if test "$value" = yes; then
13491 eval value
=\"\
$LIB$uppername\"
13492 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
13493 eval value
=\"\
$LTLIB$uppername\"
13494 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
13503 if test $use_additional = yes; then
13504 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
13505 found_dir
="$additional_libdir"
13506 found_so
="$additional_libdir/lib$name.$shlibext"
13507 if test -f "$additional_libdir/lib$name.la"; then
13508 found_la
="$additional_libdir/lib$name.la"
13510 elif test x
$lib_type != xshared
; then
13511 if test -f "$additional_libdir/lib$name.$libext"; then
13512 found_dir
="$additional_libdir"
13513 found_a
="$additional_libdir/lib$name.$libext"
13514 if test -f "$additional_libdir/lib$name.la"; then
13515 found_la
="$additional_libdir/lib$name.la"
13520 if test "X$found_dir" = "X"; then
13521 for x
in $LDFLAGS $LTLIBXXHASH; do
13523 acl_save_prefix
="$prefix"
13524 prefix
="$acl_final_prefix"
13525 acl_save_exec_prefix
="$exec_prefix"
13526 exec_prefix
="$acl_final_exec_prefix"
13528 exec_prefix
="$acl_save_exec_prefix"
13529 prefix
="$acl_save_prefix"
13533 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13534 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
13536 found_so
="$dir/lib$name.$shlibext"
13537 if test -f "$dir/lib$name.la"; then
13538 found_la
="$dir/lib$name.la"
13540 elif test x
$lib_type != xshared
; then
13541 if test -f "$dir/lib$name.$libext"; then
13543 found_a
="$dir/lib$name.$libext"
13544 if test -f "$dir/lib$name.la"; then
13545 found_la
="$dir/lib$name.la"
13551 if test "X$found_dir" != "X"; then
13556 if test "X$found_dir" != "X"; then
13557 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
13558 if test "X$found_so" != "X"; then
13559 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13560 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
13563 for x
in $ltrpathdirs; do
13564 if test "X$x" = "X$found_dir"; then
13569 if test -z "$haveit"; then
13570 ltrpathdirs
="$ltrpathdirs $found_dir"
13572 if test "$hardcode_direct" = yes; then
13573 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
13575 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13576 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
13578 for x
in $rpathdirs; do
13579 if test "X$x" = "X$found_dir"; then
13584 if test -z "$haveit"; then
13585 rpathdirs
="$rpathdirs $found_dir"
13589 for x
in $LDFLAGS $LIBXXHASH; do
13591 acl_save_prefix
="$prefix"
13592 prefix
="$acl_final_prefix"
13593 acl_save_exec_prefix
="$exec_prefix"
13594 exec_prefix
="$acl_final_exec_prefix"
13596 exec_prefix
="$acl_save_exec_prefix"
13597 prefix
="$acl_save_prefix"
13599 if test "X$x" = "X-L$found_dir"; then
13604 if test -z "$haveit"; then
13605 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
13607 if test "$hardcode_minus_L" != no
; then
13608 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
13610 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
13616 if test "X$found_a" != "X"; then
13617 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
13619 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
13622 additional_includedir
=
13623 case "$found_dir" in
13625 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13626 additional_includedir
="$basedir/include"
13629 if test "X$additional_includedir" != "X"; then
13630 if test "X$additional_includedir" != "X/usr/include"; then
13632 if test "X$additional_includedir" = "X/usr/local/include"; then
13633 if test -n "$GCC"; then
13635 linux
*) haveit
=yes;;
13639 if test -z "$haveit"; then
13640 for x
in $CPPFLAGS $INCXXHASH; do
13642 acl_save_prefix
="$prefix"
13643 prefix
="$acl_final_prefix"
13644 acl_save_exec_prefix
="$exec_prefix"
13645 exec_prefix
="$acl_final_exec_prefix"
13647 exec_prefix
="$acl_save_exec_prefix"
13648 prefix
="$acl_save_prefix"
13650 if test "X$x" = "X-I$additional_includedir"; then
13655 if test -z "$haveit"; then
13656 if test -d "$additional_includedir"; then
13657 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
13663 if test -n "$found_la"; then
13664 save_libdir
="$libdir"
13665 case "$found_la" in
13666 */* |
*\\*) .
"$found_la" ;;
13667 *) .
"./$found_la" ;;
13669 libdir
="$save_libdir"
13670 for dep
in $dependency_libs; do
13673 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13674 if test "X$additional_libdir" != "X/usr/lib"; then
13676 if test "X$additional_libdir" = "X/usr/local/lib"; then
13677 if test -n "$GCC"; then
13679 linux
*) haveit
=yes;;
13683 if test -z "$haveit"; then
13685 for x
in $LDFLAGS $LIBXXHASH; do
13687 acl_save_prefix
="$prefix"
13688 prefix
="$acl_final_prefix"
13689 acl_save_exec_prefix
="$exec_prefix"
13690 exec_prefix
="$acl_final_exec_prefix"
13692 exec_prefix
="$acl_save_exec_prefix"
13693 prefix
="$acl_save_prefix"
13695 if test "X$x" = "X-L$additional_libdir"; then
13700 if test -z "$haveit"; then
13701 if test -d "$additional_libdir"; then
13702 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
13706 for x
in $LDFLAGS $LTLIBXXHASH; do
13708 acl_save_prefix
="$prefix"
13709 prefix
="$acl_final_prefix"
13710 acl_save_exec_prefix
="$exec_prefix"
13711 exec_prefix
="$acl_final_exec_prefix"
13713 exec_prefix
="$acl_save_exec_prefix"
13714 prefix
="$acl_save_prefix"
13716 if test "X$x" = "X-L$additional_libdir"; then
13721 if test -z "$haveit"; then
13722 if test -d "$additional_libdir"; then
13723 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
13730 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13731 if test "$enable_rpath" != no
; then
13733 for x
in $rpathdirs; do
13734 if test "X$x" = "X$dir"; then
13739 if test -z "$haveit"; then
13740 rpathdirs
="$rpathdirs $dir"
13743 for x
in $ltrpathdirs; do
13744 if test "X$x" = "X$dir"; then
13749 if test -z "$haveit"; then
13750 ltrpathdirs
="$ltrpathdirs $dir"
13755 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13758 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13761 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
13762 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
13768 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
13769 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
13770 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
13772 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
13773 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
13780 if test "X$rpathdirs" != "X"; then
13781 if test -n "$hardcode_libdir_separator"; then
13783 for found_dir
in $rpathdirs; do
13784 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13786 acl_save_libdir
="$libdir"
13788 eval flag
=\"$hardcode_libdir_flag_spec\"
13789 libdir
="$acl_save_libdir"
13790 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
13792 for found_dir
in $rpathdirs; do
13793 acl_save_libdir
="$libdir"
13794 libdir
="$found_dir"
13795 eval flag
=\"$hardcode_libdir_flag_spec\"
13796 libdir
="$acl_save_libdir"
13797 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
13801 if test "X$ltrpathdirs" != "X"; then
13802 for found_dir
in $ltrpathdirs; do
13803 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
13808 ac_save_CPPFLAGS
="$CPPFLAGS"
13810 for element
in $INCXXHASH; do
13812 for x
in $CPPFLAGS; do
13814 acl_save_prefix
="$prefix"
13815 prefix
="$acl_final_prefix"
13816 acl_save_exec_prefix
="$exec_prefix"
13817 exec_prefix
="$acl_final_exec_prefix"
13819 exec_prefix
="$acl_save_exec_prefix"
13820 prefix
="$acl_save_prefix"
13822 if test "X$x" = "X$element"; then
13827 if test -z "$haveit"; then
13828 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
13834 $as_echo_n "checking for libxxhash... " >&6; }
13835 if ${ac_cv_libxxhash+:} false
; then :
13836 $as_echo_n "(cached) " >&6
13839 ac_save_LIBS
="$LIBS"
13840 LIBS
="$LIBS $LIBXXHASH"
13841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 #include <xxhash.h>
13847 XXH32("foo", 3, 0);
13853 if ac_fn_c_try_link
"$LINENO"; then :
13854 ac_cv_libxxhash
=yes
13858 rm -f core conftest.err conftest.
$ac_objext \
13859 conftest
$ac_exeext conftest.
$ac_ext
13860 LIBS
="$ac_save_LIBS"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
13864 $as_echo "$ac_cv_libxxhash" >&6; }
13865 if test "$ac_cv_libxxhash" = yes; then
13868 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
13871 $as_echo_n "checking how to link with libxxhash... " >&6; }
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
13873 $as_echo "$LIBXXHASH" >&6; }
13876 CPPFLAGS
="$ac_save_CPPFLAGS"
13886 if test "$HAVE_LIBXXHASH" != yes; then
13887 if test "$with_xxhash" = yes; then
13888 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
13891 if test "x$with_xxhash" = "xauto"; then
13892 with_xxhash
="$HAVE_LIBXXHASH"
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
13897 $as_echo_n "checking whether to use xxhash... " >&6; }
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
13899 $as_echo "$with_xxhash" >&6; }
13902 # Check whether we will enable the inclusion of unit tests when
13905 # The default value of this option changes depending whether we're on
13906 # development mode (in which case it's "true") or not (in which case
13907 # it's "false"). The $development variable is set by the GDB_AC_COMMON
13908 # macro, which must therefore be used before GDB_AC_SELFTEST.
13910 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
13911 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
13914 # Check whether --enable-unit-tests was given.
13915 if test "${enable_unit_tests+set}" = set; then :
13916 enableval
=$enable_unit_tests; case "${enableval}" in
13917 yes) enable_unittests
=true
;;
13918 no
) enable_unittests
=false
;;
13919 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
13922 enable_unittests
=$development
13926 if $enable_unittests; then
13928 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
13933 if $enable_unittests; then
13942 if test x
$ac_cv_func_pipe = xyes
-o x
$ac_cv_func_pipe2 = xyes
; then
13943 HAVE_PIPE_OR_PIPE2_TRUE
=
13944 HAVE_PIPE_OR_PIPE2_FALSE
='#'
13946 HAVE_PIPE_OR_PIPE2_TRUE
='#'
13947 HAVE_PIPE_OR_PIPE2_FALSE
=
13956 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13957 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13958 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13959 cat >>confdefs.h
<<_ACEOF
13960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13967 # Check the return and argument types of ptrace.
13970 for ac_header
in sys
/ptrace.h ptrace.h
13972 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13973 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13974 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13975 cat >>confdefs.h
<<_ACEOF
13976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13984 gdb_ptrace_headers
='
13985 #include <sys/types.h>
13986 #if HAVE_SYS_PTRACE_H
13987 # include <sys/ptrace.h>
13990 # include <unistd.h>
13994 # Check return type. Varargs (used on GNU/Linux) conflict with the
13995 # empty argument list, so check for that explicitly.
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13997 $as_echo_n "checking return type of ptrace... " >&6; }
13998 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13999 $as_echo_n "(cached) " >&6
14001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003 Â $gdb_ptrace_headers
14007 extern long ptrace (enum __ptrace_request, ...);
14013 if ac_fn_c_try_compile
"$LINENO"; then :
14014 gdb_cv_func_ptrace_ret
='long'
14016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 $gdb_ptrace_headers
14022 extern int ptrace ();
14028 if ac_fn_c_try_compile
"$LINENO"; then :
14029 gdb_cv_func_ptrace_ret
='int'
14031 gdb_cv_func_ptrace_ret
='long'
14034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
14041 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
14044 cat >>confdefs.h
<<_ACEOF
14045 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
14049 # Check argument types.
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
14051 $as_echo_n "checking types of arguments for ptrace... " >&6; }
14052 if ${gdb_cv_func_ptrace_args+:} false
; then :
14053 $as_echo_n "(cached) " >&6
14055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057 $gdb_ptrace_headers
14061 extern long ptrace (enum __ptrace_request, ...);
14067 if ac_fn_c_try_compile
"$LINENO"; then :
14068 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
14070 for gdb_arg1
in 'int' 'long'; do
14071 for gdb_arg2
in 'pid_t' 'int' 'long'; do
14072 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
14073 for gdb_arg4
in 'int' 'long' 'void *'; do
14074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14076 $gdb_ptrace_headers
14080 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
14086 if ac_fn_c_try_compile
"$LINENO"; then :
14087 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
14091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14093 for gdb_arg5
in 'int *' 'int' 'long'; do
14094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14096 $gdb_ptrace_headers
14100 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
14106 if ac_fn_c_try_compile
"$LINENO"; then :
14107 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
14111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14117 # Provide a safe default value.
14118 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
14125 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
14127 ac_save_IFS
=$IFS; IFS
=','
14128 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
14132 cat >>confdefs.h
<<_ACEOF
14133 #define PTRACE_TYPE_ARG1 $1
14137 cat >>confdefs.h
<<_ACEOF
14138 #define PTRACE_TYPE_ARG3 $3
14142 cat >>confdefs.h
<<_ACEOF
14143 #define PTRACE_TYPE_ARG4 $4
14146 if test -n "$5"; then
14148 cat >>confdefs.h
<<_ACEOF
14149 #define PTRACE_TYPE_ARG5 $5
14155 # Detect support warning flags.
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
14159 $as_echo_n "checking the compiler type... " >&6; }
14160 if ${gdb_cv_compiler_type+:} false
; then :
14161 $as_echo_n "(cached) " >&6
14163 gdb_cv_compiler_type
=unknown
14164 if test "$gdb_cv_compiler_type" = unknown
; then
14165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14172 #if !defined __GNUC__ || defined __clang__
14180 if ac_fn_c_try_compile
"$LINENO"; then :
14181 gdb_cv_compiler_type
=gcc
14183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14186 if test "$gdb_cv_compiler_type" = unknown
; then
14187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14202 if ac_fn_c_try_compile
"$LINENO"; then :
14203 gdb_cv_compiler_type
=clang
14205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
14210 $as_echo "$gdb_cv_compiler_type" >&6; }
14212 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
14215 # Check whether --enable-werror was given.
14216 if test "${enable_werror+set}" = set; then :
14217 enableval
=$enable_werror; case "${enableval}" in
14218 yes | y
) ERROR_ON_WARNING
="yes" ;;
14219 no | n
) ERROR_ON_WARNING
="no" ;;
14220 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14225 # Enable -Werror by default when using gcc. Turn it off for releases.
14226 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14227 ERROR_ON_WARNING
=yes
14231 if test "${ERROR_ON_WARNING}" = yes ; then
14232 WERROR_CFLAGS
="-Werror"
14235 # The options we'll try to enable.
14236 build_warnings
="-Wall -Wpointer-arith \
14237 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
14238 -Wno-switch -Wno-char-subscripts \
14239 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
14240 -Wno-sign-compare -Wno-error=maybe-uninitialized \
14241 -Wno-mismatched-tags \
14242 -Wno-error=deprecated-register \
14243 -Wsuggest-override \
14244 -Wimplicit-fallthrough=5 \
14245 -Wduplicated-cond \
14247 -Wdeprecated-copy \
14248 -Wdeprecated-copy-dtor \
14250 -Wmissing-declarations \
14251 -Wstrict-null-sentinel \
14255 # The -Wmissing-prototypes flag will be accepted by GCC, but results
14256 # in a warning being printed about the flag not being valid for C++,
14257 # this is something to do with using ccache, and argument ordering.
14258 if test "$GDB_COMPILER_TYPE" != gcc
; then
14259 build_warnings
="$build_warnings -Wmissing-prototypes"
14264 # Enable -Wno-format by default when using gcc on mingw since many
14265 # GCC versions complain about %I64.
14266 build_warnings
="$build_warnings -Wno-format" ;;
14268 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
14269 # doesn't understand.
14270 build_warnings
="$build_warnings -Wno-unknown-pragmas"
14271 # Solaris 11 <unistd.h> marks vfork deprecated.
14272 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
14274 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
14275 # but there's a special case for this below.
14276 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
14279 # Check whether --enable-build-warnings was given.
14280 if test "${enable_build_warnings+set}" = set; then :
14281 enableval
=$enable_build_warnings; case "${enableval}" in
14283 no
) build_warnings
="-w";;
14284 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14285 build_warnings
="${build_warnings} ${t}";;
14286 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14287 build_warnings
="${t} ${build_warnings}";;
14288 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14290 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14291 echo "Setting compiler warning flags = $build_warnings" 6>&1
14294 # Check whether --enable-gdb-build-warnings was given.
14295 if test "${enable_gdb_build_warnings+set}" = set; then :
14296 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14298 no
) build_warnings
="-w";;
14299 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14300 build_warnings
="${build_warnings} ${t}";;
14301 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14302 build_warnings
="${t} ${build_warnings}";;
14303 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14305 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14306 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14310 # The set of warnings supported by a C++ compiler is not the same as
14311 # of the C compiler.
14313 ac_cpp
='$CXXCPP $CPPFLAGS'
14314 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14315 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14316 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14320 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14323 $as_echo_n "checking compiler warning flags... " >&6; }
14324 # Separate out the -Werror flag as some files just cannot be
14325 # compiled with it enabled.
14326 for w
in ${build_warnings}; do
14327 # GCC does not complain about -Wno-unknown-warning. Invert
14328 # and test -Wunknown-warning instead.
14331 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
14332 -Wformat-nonliteral)
14333 # gcc requires -Wformat before -Wformat-nonliteral
14334 # will work, so stick them together.
14343 -Werr*) WERROR_CFLAGS
=-Werror ;;
14345 # Check whether GCC accepts it.
14346 saved_CFLAGS
="$CFLAGS"
14347 CFLAGS
="$CFLAGS -Werror $wtest"
14348 saved_CXXFLAGS
="$CXXFLAGS"
14349 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
14350 if test "x$w" = "x-Wunused-variable"; then
14351 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
14352 # fixed in GCC 4.9. This test is derived from the gdb
14353 # source code that triggered this bug in GCC.
14354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356 struct scoped_restore_base {};
14357 struct scoped_restore_tmpl : public scoped_restore_base {
14358 ~scoped_restore_tmpl() {}
14363 const scoped_restore_base &b = scoped_restore_tmpl();
14369 if ac_fn_cxx_try_compile
"$LINENO"; then :
14370 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14385 if ac_fn_cxx_try_compile
"$LINENO"; then :
14386 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14390 CFLAGS
="$saved_CFLAGS"
14391 CXXFLAGS
="$saved_CXXFLAGS"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14395 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14401 ac_cpp='$CPP $CPPFLAGS'
14402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14408 # Set the 'development' global.
14409 . $srcdir/../bfd/development.sh
14411 if test "$development" = true ; then
14413 $as_echo "#define DEVELOPMENT 1" >>confdefs.h
14420 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14425 CONFIG_STATUS_DEPENDENCIES
='$(srcdir)/../bfd/development.sh'
14428 ac_config_files
="$ac_config_files Makefile"
14430 cat >confcache
<<\_ACEOF
14431 # This file is a shell script that caches the results of configure
14432 # tests run on this system so they can be shared between configure
14433 # scripts and configure runs, see configure's option --config-cache.
14434 # It is not useful on other systems. If it contains results you don't
14435 # want to keep, you may remove or edit it.
14437 # config.status only pays attention to the cache file if you give it
14438 # the --recheck option to rerun configure.
14440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14442 # following values.
14446 # The following way of writing the cache mishandles newlines in values,
14447 # but we know of no workaround that is simple, portable, and efficient.
14448 # So, we kill variables containing newlines.
14449 # Ultrix sh set writes to stderr and can't be redirected directly,
14450 # and sets the high bit in the cache file unless we assign to the vars.
14452 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14453 eval ac_val
=\$
$ac_var
14457 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14461 _ | IFS | as_nl
) ;; #(
14462 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14463 *) { eval $ac_var=; unset $ac_var;} ;;
14469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14470 *${as_nl}ac_space
=\
*)
14471 # `set' does not quote correctly, so add quotes: double-quote
14472 # substitution turns \\\\ into \\, and sed turns \\ into \.
14475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14478 # `set' quotes correctly as required by POSIX, so do not add quotes.
14479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14492 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14493 if test -w "$cache_file"; then
14494 if test "x$cache_file" != "x/dev/null"; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14496 $as_echo "$as_me: updating cache $cache_file" >&6;}
14497 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14498 cat confcache
>"$cache_file"
14500 case $cache_file in #(
14502 mv -f confcache
"$cache_file"$$
&&
14503 mv -f "$cache_file"$$
"$cache_file" ;; #(
14505 mv -f confcache
"$cache_file" ;;
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14516 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14517 # Let make expand exec_prefix.
14518 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14520 DEFS
=-DHAVE_CONFIG_H
14525 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14526 # 1. Remove the extension, and $U if already installed.
14527 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14528 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14530 # will be set to the directory where LIBOBJS objects are built.
14531 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14532 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14534 LIBOBJS
=$ac_libobjs
14536 LTLIBOBJS
=$ac_ltlibobjs
14539 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14540 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
14541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14544 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14545 if test -n "$am_sleep_pid"; then
14546 # Hide warnings about reused PIDs.
14547 wait $am_sleep_pid 2>/dev
/null
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14550 $as_echo "done" >&6; }
14551 if test -n "$EXEEXT"; then
14553 am__EXEEXT_FALSE
='#'
14555 am__EXEEXT_TRUE
='#'
14559 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14560 as_fn_error $?
"conditional \"AMDEP\" was never defined.
14561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14563 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14564 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
14565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14567 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14568 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
14569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14571 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
14572 as_fn_error $?
"conditional \"SELFTEST\" was never defined.
14573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14575 if test -z "${HAVE_PIPE_OR_PIPE2_TRUE}" && test -z "${HAVE_PIPE_OR_PIPE2_FALSE}"; then
14576 as_fn_error $?
"conditional \"HAVE_PIPE_OR_PIPE2\" was never defined.
14577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14580 : "${CONFIG_STATUS=./config.status}"
14582 ac_clean_files_save
=$ac_clean_files
14583 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14585 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14587 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14589 # Generated by $as_me.
14590 # Run this file to recreate the current configuration.
14591 # Compiler output produced by configure, useful for debugging
14592 # configure, is in config.log if it exists.
14595 ac_cs_recheck=false
14598 SHELL=\${CONFIG_SHELL-$SHELL}
14601 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14602 ## -------------------- ##
14603 ## M4sh Initialization. ##
14604 ## -------------------- ##
14606 # Be more Bourne compatible
14607 DUALCASE
=1; export DUALCASE
# for MKS sh
14608 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14611 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14612 # is contrary to our usage. Disable this feature.
14613 alias -g '${1+"$@"}'='"$@"'
14614 setopt NO_GLOB_SUBST
14616 case `(set -o) 2>/dev/null` in #(
14628 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14629 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14632 # Prefer a ksh shell builtin over an external printf program on Solaris,
14633 # but without wasting forks for bash or zsh.
14634 if test -z "$BASH_VERSION$ZSH_VERSION" \
14635 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14636 as_echo='print
-r --'
14637 as_echo_n='print
-rn --'
14638 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14639 as_echo='printf %s
\n'
14640 as_echo_n='printf %s
'
14642 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14643 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14644 as_echo_n='/usr
/ucb
/echo -n'
14646 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14647 as_echo_n_body='eval
14651 expr "X$arg" : "X\\(.*\\)$as_nl";
14652 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14654 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14656 export as_echo_n_body
14657 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14659 export as_echo_body
14660 as_echo='sh
-c $as_echo_body as_echo
'
14663 # The user is always right.
14664 if test "${PATH_SEPARATOR+set}" != set; then
14666 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14667 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14674 # We need space, tab and new line, in precisely that order. Quoting is
14675 # there to prevent editors from complaining about space-tab.
14676 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14677 # splitting by setting IFS to empty value.)
14680 # Find who we are. Look in the path if we contain no directory separator.
14683 *[\\/]* ) as_myself=$0 ;;
14684 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14685 for as_dir in $PATH
14688 test -z "$as_dir" && as_dir=.
14689 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14695 # We did not find ourselves, most probably we were run as `sh COMMAND'
14696 # in which case we are not to be found in the path.
14697 if test "x$as_myself" = x
; then
14700 if test ! -f "$as_myself"; then
14701 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14705 # Unset variables that we do not need and which cause bugs (e.g. in
14706 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14707 # suppresses any "Segmentation fault" message there. '((' could
14708 # trigger a bug in pdksh 5.2.14.
14709 for as_var
in BASH_ENV ENV MAIL MAILPATH
14710 do eval test x\
${$as_var+set} = xset \
14711 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14724 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14727 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14728 # ----------------------------------------
14729 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14730 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14731 # script with STATUS, using 1 if that was 0.
14734 as_status
=$1; test $as_status -eq 0 && as_status
=1
14736 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14737 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14739 $as_echo "$as_me: error: $2" >&2
14740 as_fn_exit
$as_status
14744 # as_fn_set_status STATUS
14745 # -----------------------
14746 # Set $? to STATUS, without forking.
14747 as_fn_set_status
()
14750 } # as_fn_set_status
14752 # as_fn_exit STATUS
14753 # -----------------
14754 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14758 as_fn_set_status
$1
14764 # Portably unset VAR.
14767 { eval $1=; unset $1;}
14769 as_unset
=as_fn_unset
14770 # as_fn_append VAR VALUE
14771 # ----------------------
14772 # Append the text in VALUE to the end of the definition contained in VAR. Take
14773 # advantage of any shell optimizations that allow amortized linear growth over
14774 # repeated appends, instead of the typical quadratic growth present in naive
14776 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14777 eval 'as_fn_append ()
14788 # as_fn_arith ARG...
14789 # ------------------
14790 # Perform arithmetic evaluation on the ARGs, and store the result in the
14791 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14792 # must be portable across $(()) and expr.
14793 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14794 eval 'as_fn_arith ()
14801 as_val
=`expr "$@" || test $? -eq 1`
14806 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14807 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14813 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14814 as_basename
=basename
14819 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14825 as_me
=`$as_basename -- "$0" ||
14826 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14827 X"$0" : 'X\(//\)$' \| \
14828 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14830 sed '/^.*\/\([^/][^/]*\)\/*$/{
14844 # Avoid depending upon Character Ranges.
14845 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14846 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14847 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14848 as_cr_digits
='0123456789'
14849 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14851 ECHO_C
= ECHO_N
= ECHO_T
=
14852 case `echo -n x` in #(((((
14854 case `echo 'xy\c'` in
14855 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14857 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14864 rm -f conf$$ conf$$.exe conf$$.
file
14865 if test -d conf$$.dir
; then
14866 rm -f conf$$.dir
/conf$$.
file
14869 mkdir conf$$.dir
2>/dev
/null
14871 if (echo >conf$$.
file) 2>/dev
/null
; then
14872 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14874 # ... but there are two gotchas:
14875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14877 # In both cases, we have to default to `cp -pR'.
14878 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14880 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14888 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14889 rmdir conf$$.dir
2>/dev
/null
14894 # Create "$as_dir" as a directory, including parents if necessary.
14899 -*) as_dir
=.
/$as_dir;;
14901 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14905 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14906 *) as_qdir
=$as_dir;;
14908 as_dirs
="'$as_qdir' $as_dirs"
14909 as_dir
=`$as_dirname -- "$as_dir" ||
14910 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14911 X"$as_dir" : 'X\(//\)[^/]' \| \
14912 X"$as_dir" : 'X\(//\)$' \| \
14913 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14914 $as_echo X"$as_dir" |
14915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14919 /^X\(\/\/\)[^/].*/{
14932 test -d "$as_dir" && break
14934 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14935 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14939 if mkdir
-p .
2>/dev
/null
; then
14940 as_mkdir_p
='mkdir -p "$as_dir"'
14942 test -d .
/-p && rmdir .
/-p
14947 # as_fn_executable_p FILE
14948 # -----------------------
14949 # Test if FILE is an executable regular file.
14950 as_fn_executable_p
()
14952 test -f "$1" && test -x "$1"
14953 } # as_fn_executable_p
14954 as_test_x
='test -x'
14955 as_executable_p
=as_fn_executable_p
14957 # Sed expression to map a string onto a valid CPP name.
14958 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14960 # Sed expression to map a string onto a valid variable name.
14961 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14965 ## ----------------------------------- ##
14966 ## Main body of $CONFIG_STATUS script. ##
14967 ## ----------------------------------- ##
14969 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14972 # Save the log message, to keep $0 and so on meaningful, and to
14973 # report actual input values of CONFIG_FILES etc. instead of their
14974 # values after options handling.
14976 This file was extended by gdbsupport $as_me 1.0, which was
14977 generated by GNU Autoconf 2.69. Invocation command line was
14979 CONFIG_FILES = $CONFIG_FILES
14980 CONFIG_HEADERS = $CONFIG_HEADERS
14981 CONFIG_LINKS = $CONFIG_LINKS
14982 CONFIG_COMMANDS = $CONFIG_COMMANDS
14985 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14990 case $ac_config_files in *"
14991 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14994 case $ac_config_headers in *"
14995 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15000 # Files that config.status was made for.
15001 config_files="$ac_config_files"
15002 config_headers="$ac_config_headers"
15003 config_commands="$ac_config_commands"
15007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15009 \`$as_me' instantiates files and other configuration actions
15010 from templates according to the current configuration. Unless the files
15011 and actions are specified as TAGs, all are instantiated by default.
15013 Usage: $0 [OPTION]... [TAG]...
15015 -h, --help print this help, then exit
15016 -V, --version print version number and configuration settings, then exit
15017 --config print configuration, then exit
15018 -q, --quiet, --silent
15019 do not print progress messages
15020 -d, --debug don't remove temporary files
15021 --recheck update $as_me by reconfiguring in the same conditions
15022 --file=FILE[:TEMPLATE]
15023 instantiate the configuration file FILE
15024 --header=FILE[:TEMPLATE]
15025 instantiate the configuration header FILE
15027 Configuration files:
15030 Configuration headers:
15033 Configuration commands:
15036 Report bugs to the package provider."
15039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15040 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15042 gdbsupport config.status 1.0
15043 configured by $0, generated by GNU Autoconf 2.69,
15044 with options \\"\$ac_cs_config\\"
15046 Copyright (C) 2012 Free Software Foundation, Inc.
15047 This config.status script is free software; the Free Software Foundation
15048 gives unlimited permission to copy, distribute and modify it."
15055 test -n "\$AWK" || AWK=awk
15058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15059 # The default lists apply if the user does not specify any file.
15065 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15066 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15070 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15082 # Handling of the options.
15083 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15085 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15086 $as_echo "$ac_cs_version"; exit ;;
15087 --config |
--confi |
--conf |
--con |
--co |
--c )
15088 $as_echo "$ac_cs_config"; exit ;;
15089 --debug |
--debu |
--deb |
--de |
--d |
-d )
15091 --file |
--fil |
--fi |
--f )
15094 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15095 '') as_fn_error $?
"missing file argument" ;;
15097 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15098 ac_need_defaults
=false
;;
15099 --header |
--heade |
--head |
--hea )
15102 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15104 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15105 ac_need_defaults
=false
;;
15107 # Conflict between --help and --header
15108 as_fn_error $?
"ambiguous option: \`$1'
15109 Try \`$0 --help' for more information.";;
15110 --help |
--hel |
-h )
15111 $as_echo "$ac_cs_usage"; exit ;;
15112 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15113 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15116 # This is an error.
15117 -*) as_fn_error $?
"unrecognized option: \`$1'
15118 Try \`$0 --help' for more information." ;;
15120 *) as_fn_append ac_config_targets
" $1"
15121 ac_need_defaults
=false
;;
15127 ac_configure_extra_args
=
15129 if $ac_cs_silent; then
15131 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15136 if \$ac_cs_recheck; then
15137 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15140 CONFIG_SHELL='$SHELL'
15141 export CONFIG_SHELL
15146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15151 ## Running $as_me. ##
15157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15162 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15163 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15165 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15166 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15167 LINGUAS="${LINGUAS-%UNSET%}"
15172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15174 # Handling of arguments.
15175 for ac_config_target
in $ac_config_targets
15177 case $ac_config_target in
15178 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
15179 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15180 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
15181 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15183 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15188 # If the user did not use the arguments to specify the items to instantiate,
15189 # then the envvar interface is used. Set only those that are not.
15190 # We use the long form for the default assignment because of an extremely
15191 # bizarre bug on SunOS 4.1.3.
15192 if $ac_need_defaults; then
15193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15194 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15195 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15198 # Have a temporary directory for convenience. Make it in the build tree
15199 # simply because there is no reason against having it here, and in addition,
15200 # creating and moving files from /tmp can sometimes cause problems.
15201 # Hook for its removal unless debugging.
15202 # Note that there is a small window in which the directory will not be cleaned:
15203 # after its creation but before its name has been assigned to `$tmp'.
15207 trap 'exit_status=$?
15208 : "${ac_tmp:=$tmp}"
15209 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15211 trap 'as_fn_exit 1' 1 2 13 15
15213 # Create a (secure) tmp directory for tmp files.
15216 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15220 tmp
=.
/conf$$
-$RANDOM
15221 (umask 077 && mkdir
"$tmp")
15222 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15225 # Set up the scripts for CONFIG_FILES section.
15226 # No need to generate them if there are no CONFIG_FILES.
15227 # This happens for instance with `./config.status config.h'.
15228 if test -n "$CONFIG_FILES"; then
15231 ac_cr
=`echo X | tr X '\015'`
15232 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15233 # But we know of no other shell where ac_cr would be empty at this
15234 # point, so we can use a bashism as a fallback.
15235 if test "x$ac_cr" = x
; then
15236 eval ac_cr
=\$
\'\\r
\'
15238 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15239 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15242 ac_cs_awk_cr
=$ac_cr
15245 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15250 echo "cat >conf$$subs.awk <<_ACEOF" &&
15251 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15253 } >conf$$subs.sh ||
15254 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15255 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15257 for ac_last_try in false false false false false :; do
15258 . ./conf$$subs.sh ||
15259 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15261 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15262 if test $ac_delim_n = $ac_delim_num; then
15264 elif $ac_last_try; then
15265 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15267 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15270 rm -f conf$$subs.sh
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15273 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15277 s/^/S["/; s
/!.
*/"]=/
15287 s/\(.\{148\}\)..*/\1/
15289 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15294 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15301 s/\(.\{148\}\)..*/\1/
15303 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15307 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15312 ' <conf$$subs.awk | sed '
15317 ' >>$CONFIG_STATUS || ac_write_fail=1
15318 rm -f conf$$subs.awk
15319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15322 for (key in S) S_is_set[key] = 1
15328 nfields = split(line, field, "@
")
15330 len = length(field[1])
15331 for (i = 2; i < nfields; i++) {
15333 keylen = length(key)
15334 if (S_is_set[key]) {
15336 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15337 len += length(value) + length(field[++i])
15348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15349 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15350 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15353 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15354 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15357 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15358 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15359 # trailing colons and then remove the whole line if VPATH becomes empty
15360 # (actually we leave an empty line to preserve line numbers).
15361 if test "x
$srcdir" = x.; then
15362 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381 fi # test -n "$CONFIG_FILES"
15383 # Set up the scripts for CONFIG_HEADERS section.
15384 # No need to generate them if there are no CONFIG_HEADERS.
15385 # This happens for instance with `./config.status Makefile'.
15386 if test -n "$CONFIG_HEADERS"; then
15387 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15391 # Transform confdefs.h into an awk script `defines.awk', embedded as
15392 # here-document in config.status, that substitutes the proper values into
15393 # config.h.in to produce config.h.
15395 # Create a delimiter string that does not exist in confdefs.h, to ease
15396 # handling of long lines.
15398 for ac_last_try in false false :; do
15399 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15400 if test -z "$ac_tt"; then
15402 elif $ac_last_try; then
15403 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15405 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15409 # For the awk script, D is an array of macro values keyed by name,
15410 # likewise P contains macro parameters if any. Preserve backslash
15411 # newline sequences.
15413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15415 s/.\{148\}/&'"$ac_delim"'/g
15418 s/^[ ]*#[ ]*define[ ][ ]*/ /
15425 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15427 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15432 D["\
1"]=" \
3\\\\\\n
"\\/p
15434 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15439 s/.\{148\}/&'"$ac_delim"'/g
15444 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15447 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15449 ' <confdefs.h | sed '
15450 s/'"$ac_delim"'/"\\\
15451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454 for (key in D) D_is_set[key] = 1
15457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15459 split(line, arg, " ")
15460 if (arg[1] == "#") {
15464 defundef
= substr
(arg
[1], 2)
15467 split(mac1
, mac2
, "(") #)
15469 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15470 if (D_is_set
[macro
]) {
15471 # Preserve the white space surrounding the "#".
15472 print prefix
"define", macro P
[macro
] D
[macro
]
15475 # Replace #undef with comments. This is necessary, for example,
15476 # in the case of _POSIX_SOURCE, which is predefined and required
15477 # on some systems where configure will not decide to define it.
15478 if (defundef
== "undef") {
15479 print
"/*", prefix defundef
, macro
, "*/"
15487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15488 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
15489 fi # test -n "$CONFIG_HEADERS"
15492 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15497 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15499 case $ac_mode$ac_tag in
15501 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15502 :[FH
]-) ac_tag
=-:-;;
15503 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15520 -) ac_f
="$ac_tmp/stdin";;
15521 *) # Look for the file first in the build tree, then in the source tree
15522 # (if the path is not absolute). The absolute path cannot be DOS-style,
15523 # because $ac_f cannot contain `:'.
15527 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15529 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15531 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15532 as_fn_append ac_file_inputs
" '$ac_f'"
15535 # Let's still pretend it is `configure' which instantiates (i.e., don't
15536 # use $as_me), people would be surprised to read:
15537 # /* config.h. Generated by config.status. */
15538 configure_input
='Generated from '`
15539 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15541 if test x
"$ac_file" != x-
; then
15542 configure_input
="$ac_file. $configure_input"
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15544 $as_echo "$as_me: creating $ac_file" >&6;}
15546 # Neutralize special characters interpreted by sed in replacement strings.
15547 case $configure_input in #(
15548 *\
&* |
*\|
* |
*\\* )
15549 ac_sed_conf_input
=`$as_echo "$configure_input" |
15550 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15551 *) ac_sed_conf_input
=$configure_input;;
15555 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15556 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15561 ac_dir
=`$as_dirname -- "$ac_file" ||
15562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15563 X"$ac_file" : 'X\(//\)[^/]' \| \
15564 X"$ac_file" : 'X\(//\)$' \| \
15565 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15566 $as_echo X"$ac_file" |
15567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15571 /^X\(\/\/\)[^/].*/{
15584 as_dir
="$ac_dir"; as_fn_mkdir_p
15588 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15590 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15591 # A ".." for each directory in $ac_dir_suffix.
15592 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15593 case $ac_top_builddir_sub in
15594 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15595 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15598 ac_abs_top_builddir
=$ac_pwd
15599 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15600 # for backward compatibility:
15601 ac_top_builddir
=$ac_top_build_prefix
15604 .
) # We are building in place.
15606 ac_top_srcdir
=$ac_top_builddir_sub
15607 ac_abs_top_srcdir
=$ac_pwd ;;
15608 [\\/]* | ?
:[\\/]* ) # Absolute name.
15609 ac_srcdir
=$srcdir$ac_dir_suffix;
15610 ac_top_srcdir
=$srcdir
15611 ac_abs_top_srcdir
=$srcdir ;;
15612 *) # Relative name.
15613 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15614 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15615 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15617 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15627 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15628 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15630 ac_MKDIR_P
=$MKDIR_P
15632 [\\/$
]* | ?
:[\\/]* ) ;;
15633 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15638 # If the template does not know about datarootdir, expand it.
15639 # FIXME: This hack should be removed a few years after 2.60.
15640 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15651 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15652 *datarootdir
*) ac_datarootdir_seen
=yes;;
15653 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15655 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15658 ac_datarootdir_hack='
15659 s&@datadir@&$datadir&g
15660 s&@docdir@&$docdir&g
15661 s&@infodir@&$infodir&g
15662 s&@localedir@&$localedir&g
15663 s&@mandir@&$mandir&g
15664 s&\\\${datarootdir}&$datarootdir&g' ;;
15668 # Neutralize VPATH when `$srcdir' = `.'.
15669 # Shell code in configure.ac might set extrasub.
15670 # FIXME: do we really want to maintain this feature?
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 ac_sed_extra="$ac_vpsub
15675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15677 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15678 s|@configure_input@|
$ac_sed_conf_input|
;t t
15679 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15680 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15681 s
&@srcdir@
&$ac_srcdir&;t t
15682 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15683 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15684 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15685 s
&@builddir@
&$ac_builddir&;t t
15686 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15687 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15688 s
&@INSTALL@
&$ac_INSTALL&;t t
15689 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15690 $ac_datarootdir_hack
15692 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15693 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15695 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15696 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15697 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15698 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15700 which seems to be undefined. Please make sure it is defined" >&5
15701 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15702 which seems to be undefined. Please make sure it is defined" >&2;}
15704 rm -f "$ac_tmp/stdin"
15706 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15707 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15715 if test x"$ac_file" != x-; then
15717 $as_echo "/* $configure_input */" \
15718 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15719 } >"$ac_tmp/config.h" \
15720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15721 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15723 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15726 mv "$ac_tmp/config.h" "$ac_file" \
15727 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15730 $as_echo "/* $configure_input */" \
15731 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15732 || as_fn_error $? "could not create -" "$LINENO" 5
15734 # Compute "$ac_file"'s index
in $config_headers.
15737 for _am_header
in $config_headers :; do
15738 case $_am_header in
15739 $_am_arg |
$_am_arg:* )
15742 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15745 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15746 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15747 X"$_am_arg" : 'X\(//\)[^/]' \| \
15748 X"$_am_arg" : 'X\(//\)$' \| \
15749 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15750 $as_echo X"$_am_arg" |
15751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15755 /^X\(\/\/\)[^/].*/{
15767 s/.*/./; q'`/stamp-h
$_am_stamp_count
15770 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15771 $as_echo "$as_me: executing $ac_file commands" >&6;}
15776 case $ac_file$ac_mode in
15777 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15778 # Older Autoconf quotes --file arguments for eval, but not when files
15779 # are listed without --file. Let's play safe and only enable the eval
15780 # if we detect the quoting.
15781 case $CONFIG_FILES in
15782 *\'*) eval set x
"$CONFIG_FILES" ;;
15783 *) set x
$CONFIG_FILES ;;
15788 # Strip MF so we end up with the name of the file.
15789 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15790 # Check whether this is an Automake generated Makefile or not.
15791 # We used to match only the files named 'Makefile.in', but
15792 # some people rename them; so instead we look at the file content.
15793 # Grep'ing the first line is not enough: some people post-process
15794 # each Makefile.in and add a new line on top of each file to say so.
15795 # Grep'ing the whole file is not good either: AIX grep has a line
15796 # limit of 2048, but all sed's we know have understand at least 4000.
15797 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15798 dirpart
=`$as_dirname -- "$mf" ||
15799 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15800 X"$mf" : 'X\(//\)[^/]' \| \
15801 X"$mf" : 'X\(//\)$' \| \
15802 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15808 /^X\(\/\/\)[^/].*/{
15824 # Extract the definition of DEPDIR, am__include, and am__quote
15825 # from the Makefile without running 'make'.
15826 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15827 test -z "$DEPDIR" && continue
15828 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15829 test -z "$am__include" && continue
15830 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15831 # Find all dependency output files, they are included files with
15832 # $(DEPDIR) in their names. We invoke sed twice because it is the
15833 # simplest approach to changing $(DEPDIR) to its actual value in the
15835 for file in `sed -n "
15836 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15837 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15838 # Make sure the directory exists.
15839 test -f "$dirpart/$file" && continue
15840 fdir
=`$as_dirname -- "$file" ||
15841 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15842 X"$file" : 'X\(//\)[^/]' \| \
15843 X"$file" : 'X\(//\)$' \| \
15844 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15845 $as_echo X"$file" |
15846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15850 /^X\(\/\/\)[^/].*/{
15863 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15864 # echo "creating $dirpart/$file"
15865 echo '# dummy' > "$dirpart/$file"
15871 for ac_file
in $CONFIG_FILES; do
15872 # Support "outfile[:infile[:infile...]]"
15874 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15876 # PO directories have a Makefile.in generated from Makefile.in.in.
15877 case "$ac_file" in */Makefile.
in)
15878 # Adjust a relative srcdir.
15879 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15880 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
15881 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15882 # In autoconf-2.13 it is called $ac_given_srcdir.
15883 # In autoconf-2.50 it is called $srcdir.
15884 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
15885 case "$ac_given_srcdir" in
15886 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
15887 /*) top_srcdir
="$ac_given_srcdir" ;;
15888 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15890 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15891 rm -f "$ac_dir/POTFILES"
15892 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
15893 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15894 POMAKEFILEDEPS
="POTFILES.in"
15895 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15896 # on $ac_dir but don't depend on user-specified configuration
15898 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15899 # The LINGUAS file contains the set of available languages.
15900 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15901 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
15903 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15904 # Hide the ALL_LINGUAS assigment from automake.
15905 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15906 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
15908 # The set of available languages was given in configure.ac.
15909 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15911 case "$ac_given_srcdir" in
15913 *) srcdirpre
='$(srcdir)/' ;;
15919 for lang
in $ALL_LINGUAS; do
15920 POFILES
="$POFILES $srcdirpre$lang.po"
15921 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
15922 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
15923 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
15925 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15926 # environment variable.
15928 if test -n "$ALL_LINGUAS"; then
15929 for presentlang
in $ALL_LINGUAS; do
15931 if test "%UNSET%" != "$LINGUAS"; then
15932 desiredlanguages
="$LINGUAS"
15934 desiredlanguages
="$ALL_LINGUAS"
15936 for desiredlang
in $desiredlanguages; do
15937 # Use the presentlang catalog if desiredlang is
15938 # a. equal to presentlang, or
15939 # b. a variant of presentlang (because in this case,
15940 # presentlang can be used as a fallback for messages
15941 # which are not translated in the desiredlang catalog).
15942 case "$desiredlang" in
15943 "$presentlang"*) useit
=yes;;
15946 if test $useit = yes; then
15947 INST_LINGUAS
="$INST_LINGUAS $presentlang"
15952 if test -n "$INST_LINGUAS"; then
15953 for lang
in $INST_LINGUAS; do
15954 CATALOGS
="$CATALOGS $lang.gmo"
15957 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
15958 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15959 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
15960 if test -f "$f"; then
15962 *.orig |
*.bak |
*~
) ;;
15963 *) cat "$f" >> "$ac_dir/Makefile" ;;
15978 ac_clean_files
=$ac_clean_files_save
15980 test $ac_write_fail = 0 ||
15981 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15984 # configure is writing to config.log, and then calls config.status.
15985 # config.status does its own redirection, appending to config.log.
15986 # Unfortunately, on DOS this fails, as config.log is still kept open
15987 # by configure, so config.status won't be able to write to it; its
15988 # output is simply discarded. So we exec the FD to /dev/null,
15989 # effectively closing config.log, so it can be properly (re)opened and
15990 # appended to by config.status. When coming back to configure, we
15991 # need to make the FD available again.
15992 if test "$no_create" != yes; then
15994 ac_config_status_args
=
15995 test "$silent" = yes &&
15996 ac_config_status_args
="$ac_config_status_args --quiet"
15998 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16000 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16001 # would make configure fail if this is the last instruction.
16002 $ac_cs_success || as_fn_exit
1
16004 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16006 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}