2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='gdbsupport'
579 PACKAGE_TARNAME
='gdbsupport'
580 PACKAGE_VERSION
='1.0'
581 PACKAGE_STRING
='gdbsupport 1.0'
585 ac_unique_file
="common-defs.h"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='am__EXEEXT_FALSE
629 HAVE_PIPE_OR_PIPE2_FALSE
630 HAVE_PIPE_OR_PIPE2_TRUE
696 INSTALL_STRIP_PROGRAM
712 MAINTAINER_MODE_FALSE
753 program_transform_name
766 enable_option_checking
767 enable_maintainer_mode
769 enable_dependency_tracking
780 enable_build_warnings
781 enable_gdb_build_warnings
783 ac_precious_vars
='build_alias
797 # Initialize some variables set by options.
799 ac_init_version
=false
800 ac_unrecognized_opts
=
802 # The variables have the same names as the options, with
803 # dashes changed to underlines.
811 program_transform_name
=s
,x
,x
,
819 # Installation directory options.
820 # These are left unexpanded so users can "make install exec_prefix=/foo"
821 # and all the variables that are supposed to be based on exec_prefix
822 # by default will actually change.
823 # Use braces instead of parens because sh, perl, etc. also accept them.
824 # (The list follows the same order as the GNU Coding Standards.)
825 bindir
='${exec_prefix}/bin'
826 sbindir
='${exec_prefix}/sbin'
827 libexecdir
='${exec_prefix}/libexec'
828 datarootdir
='${prefix}/share'
829 datadir
='${datarootdir}'
830 sysconfdir
='${prefix}/etc'
831 sharedstatedir
='${prefix}/com'
832 localstatedir
='${prefix}/var'
833 includedir
='${prefix}/include'
834 oldincludedir
='/usr/include'
835 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir
='${datarootdir}/info'
841 libdir
='${exec_prefix}/lib'
842 localedir
='${datarootdir}/locale'
843 mandir
='${datarootdir}/man'
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\
$ac_option
857 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 # Accept the important Cygnus configure options, so we can diagnose typos.
864 case $ac_dashdash$ac_option in
868 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
870 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
873 -build |
--build |
--buil |
--bui |
--bu)
874 ac_prev
=build_alias
;;
875 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
876 build_alias
=$ac_optarg ;;
878 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
879 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
880 ac_prev
=cache_file
;;
881 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
882 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
883 cache_file
=$ac_optarg ;;
886 cache_file
=config.cache
;;
888 -datadir |
--datadir |
--datadi |
--datad)
890 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
891 datadir
=$ac_optarg ;;
893 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
894 |
--dataroo |
--dataro |
--datar)
895 ac_prev
=datarootdir
;;
896 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
897 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
898 datarootdir
=$ac_optarg ;;
900 -disable-* |
--disable-*)
901 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
904 as_fn_error $?
"invalid feature name: $ac_useropt"
905 ac_useropt_orig
=$ac_useropt
906 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep
=', ';;
914 eval enable_
$ac_useropt=no
;;
916 -docdir |
--docdir |
--docdi |
--doc |
--do)
918 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
921 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
923 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
926 -enable-* |
--enable-*)
927 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
930 as_fn_error $?
"invalid feature name: $ac_useropt"
931 ac_useropt_orig
=$ac_useropt
932 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
937 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep
=', ';;
940 eval enable_
$ac_useropt=\
$ac_optarg ;;
942 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
943 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
944 |
--exec |
--exe |
--ex)
945 ac_prev
=exec_prefix
;;
946 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
947 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
948 |
--exec=* |
--exe=* |
--ex=*)
949 exec_prefix
=$ac_optarg ;;
951 -gas |
--gas |
--ga |
--g)
952 # Obsolete; use --with-gas.
955 -help |
--help |
--hel |
--he |
-h)
957 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
958 ac_init_help
=recursive
;;
959 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
960 ac_init_help
=short
;;
962 -host |
--host |
--hos |
--ho)
963 ac_prev
=host_alias
;;
964 -host=* |
--host=* |
--hos=* |
--ho=*)
965 host_alias
=$ac_optarg ;;
967 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
969 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
971 htmldir
=$ac_optarg ;;
973 -includedir |
--includedir |
--includedi |
--included |
--include \
974 |
--includ |
--inclu |
--incl |
--inc)
975 ac_prev
=includedir
;;
976 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
977 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
978 includedir
=$ac_optarg ;;
980 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
982 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
983 infodir
=$ac_optarg ;;
985 -libdir |
--libdir |
--libdi |
--libd)
987 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
990 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
991 |
--libexe |
--libex |
--libe)
992 ac_prev
=libexecdir
;;
993 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
994 |
--libexe=* |
--libex=* |
--libe=*)
995 libexecdir
=$ac_optarg ;;
997 -localedir |
--localedir |
--localedi |
--localed |
--locale)
999 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1000 localedir
=$ac_optarg ;;
1002 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1003 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1004 ac_prev
=localstatedir
;;
1005 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1006 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1007 localstatedir
=$ac_optarg ;;
1009 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1011 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1012 mandir
=$ac_optarg ;;
1014 -nfp |
--nfp |
--nf)
1015 # Obsolete; use --without-fp.
1018 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1019 |
--no-cr |
--no-c |
-n)
1022 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1023 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1026 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1027 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1028 |
--oldin |
--oldi |
--old |
--ol |
--o)
1029 ac_prev
=oldincludedir
;;
1030 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1031 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1032 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1033 oldincludedir
=$ac_optarg ;;
1035 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1037 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1038 prefix
=$ac_optarg ;;
1040 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1041 |
--program-pre |
--program-pr |
--program-p)
1042 ac_prev
=program_prefix
;;
1043 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1044 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1045 program_prefix
=$ac_optarg ;;
1047 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1048 |
--program-suf |
--program-su |
--program-s)
1049 ac_prev
=program_suffix
;;
1050 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1051 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1052 program_suffix
=$ac_optarg ;;
1054 -program-transform-name |
--program-transform-name \
1055 |
--program-transform-nam |
--program-transform-na \
1056 |
--program-transform-n |
--program-transform- \
1057 |
--program-transform |
--program-transfor \
1058 |
--program-transfo |
--program-transf \
1059 |
--program-trans |
--program-tran \
1060 |
--progr-tra |
--program-tr |
--program-t)
1061 ac_prev
=program_transform_name
;;
1062 -program-transform-name=* |
--program-transform-name=* \
1063 |
--program-transform-nam=* |
--program-transform-na=* \
1064 |
--program-transform-n=* |
--program-transform-=* \
1065 |
--program-transform=* |
--program-transfor=* \
1066 |
--program-transfo=* |
--program-transf=* \
1067 |
--program-trans=* |
--program-tran=* \
1068 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1069 program_transform_name
=$ac_optarg ;;
1071 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1073 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1074 pdfdir
=$ac_optarg ;;
1076 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1078 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1081 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1082 |
-silent |
--silent |
--silen |
--sile |
--sil)
1085 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1087 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1089 sbindir
=$ac_optarg ;;
1091 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1092 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1093 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1095 ac_prev
=sharedstatedir
;;
1096 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1097 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1098 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1100 sharedstatedir
=$ac_optarg ;;
1102 -site |
--site |
--sit)
1104 -site=* |
--site=* |
--sit=*)
1107 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1109 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1110 srcdir
=$ac_optarg ;;
1112 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1113 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1114 ac_prev
=sysconfdir
;;
1115 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1116 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1117 sysconfdir
=$ac_optarg ;;
1119 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1120 ac_prev
=target_alias
;;
1121 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1122 target_alias
=$ac_optarg ;;
1124 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1127 -version |
--version |
--versio |
--versi |
--vers |
-V)
1128 ac_init_version
=: ;;
1131 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1134 as_fn_error $?
"invalid package name: $ac_useropt"
1135 ac_useropt_orig
=$ac_useropt
1136 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval with_
$ac_useropt=\
$ac_optarg ;;
1146 -without-* |
--without-*)
1147 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1150 as_fn_error $?
"invalid package name: $ac_useropt"
1151 ac_useropt_orig
=$ac_useropt
1152 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1157 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep
=', ';;
1160 eval with_
$ac_useropt=no
;;
1163 # Obsolete; use --with-x.
1166 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1167 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1168 ac_prev
=x_includes
;;
1169 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1170 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1171 x_includes
=$ac_optarg ;;
1173 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1174 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1175 ac_prev
=x_libraries
;;
1176 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1177 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1178 x_libraries
=$ac_optarg ;;
1180 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information"
1185 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1189 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1191 eval $ac_envvar=\
$ac_optarg
1192 export $ac_envvar ;;
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 if test -n "$ac_prev"; then
1206 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error $?
"missing argument to $ac_option"
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1213 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 # Check all directory arguments for consistency.
1219 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1224 eval ac_val
=\$
$ac_var
1225 # Remove trailing slashes.
1228 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\
$ac_val;;
1231 # Be sure to have absolute directory names.
1233 [\\/$
]* | ?
:[\\/]* ) continue;;
1234 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1236 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1244 target
=$target_alias
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x
; then
1248 if test "x$build_alias" = x
; then
1249 cross_compiling
=maybe
1250 elif test "x$build_alias" != "x$host_alias"; then
1256 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1258 test "$silent" = yes && exec 6>/dev
/null
1261 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di
=`ls -di .` &&
1263 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $?
"working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $?
"pwd does not report name of working directory"
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted
=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir
=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1301 ac_srcdir_defaulted
=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1305 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1307 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var
in $ac_precious_vars; do
1322 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1324 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1398 --build=BUILD configure
for building on BUILD
[guessed
]
1399 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1400 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1404 if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short | recursive
) echo "Configuration of gdbsupport 1.0:";;
1411 --disable-option-checking ignore unrecognized
--enable/--with options
1412 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1413 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1414 --enable-maintainer-mode
1415 enable make rules and dependencies not useful
(and
1416 sometimes confusing
) to the casual installer
1417 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1418 --disable-silent-rules verbose build output
(undo
: "make V=0")
1419 --enable-dependency-tracking
1420 do not reject slow dependency extractors
1421 --disable-dependency-tracking
1422 speeds up one-time build
1423 --enable-plugins Enable support
for plugins
1424 --disable-largefile omit support
for large files
1425 --enable-threading include support
for parallel processing of data
1427 --disable-rpath do not hardcode runtime library paths
1428 --enable-unit-tests Enable the inclusion of unit tests when compiling
1430 --enable-werror treat compile warnings as errors
1431 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1432 --enable-gdb-build-warnings
1433 enable GDB specific build-time compiler warnings
if
1437 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1438 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1439 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1440 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1441 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1442 --without-libipt-prefix don
't search for libipt in includedir and libdir
1443 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 CXX C++ compiler command
1454 CXXFLAGS C++ compiler flags
1457 Use these variables to override the choices made by `configure' or to
help
1458 it to
find libraries and programs with nonstandard names
/locations.
1460 Report bugs to the package provider.
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1474 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1476 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1481 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1484 ac_abs_top_builddir
=$ac_pwd
1485 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir
=$ac_top_build_prefix
1490 .
) # We are building in place.
1492 ac_top_srcdir
=$ac_top_builddir_sub
1493 ac_abs_top_srcdir
=$ac_pwd ;;
1494 [\\/]* | ?
:[\\/]* ) # Absolute name.
1495 ac_srcdir
=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir
=$srcdir
1497 ac_abs_top_srcdir
=$srcdir ;;
1499 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1503 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1523 gdbsupport configure
1.0
1524 generated by GNU Autoconf
2.69
1526 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1527 This configure
script is free software
; the Free Software Foundation
1528 gives unlimited permission to copy
, distribute and modify it.
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile
()
1542 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1543 rm -f conftest.
$ac_objext
1544 if { { ac_try
="$ac_compile"
1546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1573 } # ac_fn_c_try_compile
1575 # ac_fn_cxx_try_compile LINENO
1576 # ----------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_cxx_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1585 *) ac_try_echo
=$ac_try;;
1587 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1591 if test -s conftest.err
; then
1592 grep -v '^ *+' conftest.err
>conftest.er1
1593 cat conftest.er1
>&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_cxx_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.
$ac_objext; then :
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.
$ac_ext >&5
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status
$ac_retval
1611 } # ac_fn_cxx_try_compile
1613 # ac_fn_c_try_cpp LINENO
1614 # ----------------------
1615 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1619 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } > conftest.i && {
1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1650 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653 # the include files in INCLUDES and setting the cache variable VAR
1655 ac_fn_c_check_header_mongrel ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if eval \${$3+:} false; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1668 # Is the header compilable?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670 $as_echo_n "checking $2 usability... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1679 ac_header_compiler=no
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683 $as_echo "$ac_header_compiler" >&6; }
1685 # Is the header present?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687 $as_echo_n "checking $2 presence... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1692 if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1695 ac_header_preproc=no
1697 rm -f conftest.err conftest.i conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699 $as_echo "$ac_header_preproc" >&6; }
1701 # So? What about this header?
1702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1727 eval "$3=\$ac_header_compiler"
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_header_mongrel
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1747 *) ac_try_echo
=$ac_try;;
1749 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=$ac_status
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists and can be compiled using the include files in
1782 # INCLUDES, setting the cache variable VAR accordingly.
1783 ac_fn_c_check_header_compile ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1796 if ac_fn_c_try_compile "$LINENO"; then :
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_header_compile
1810 # ac_fn_c_try_link LINENO
1811 # -----------------------
1812 # Try to link conftest.$ac_ext, and return whether this succeeded.
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext conftest$ac_exeext
1817 if { { ac_try="$ac_link"
1819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1820 *) ac_try_echo
=$ac_try;;
1822 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>conftest.err
1826 if test -s conftest.err
; then
1827 grep -v '^ *+' conftest.err
>conftest.er1
1828 cat conftest.er1
>&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest
$ac_exeext && {
1836 test "$cross_compiling" = yes ||
1837 test -x conftest
$ac_exeext
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.
$ac_ext >&5
1846 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1847 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1848 # interfere with the next link command; also delete a directory that is
1849 # left behind by Apple's compiler. We do this before executing the actions.
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status
$ac_retval
1854 } # ac_fn_c_try_link
1856 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1857 # -------------------------------------------
1858 # Tests whether TYPE exists after having included INCLUDES, setting cache
1859 # variable VAR accordingly.
1860 ac_fn_c_check_type
()
1862 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \
${$3+:} false
; then :
1866 $as_echo_n "(cached) " >&6
1869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1881 if ac_fn_c_try_compile
"$LINENO"; then :
1882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1894 if ac_fn_c_try_compile
"$LINENO"; then :
1899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_check_type
1910 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1911 # --------------------------------------------
1912 # Tries to find the compile-time value of EXPR in a program that includes
1913 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1915 ac_fn_c_compute_int
()
1917 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1918 if test "$cross_compiling" = yes; then
1919 # Depending upon the size, compute the lo and hi bounds.
1920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1926 static int test_array [1 - 2 * !(($2) >= 0)];
1928 return test_array [0];
1934 if ac_fn_c_try_compile
"$LINENO"; then :
1937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1943 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1945 return test_array [0];
1951 if ac_fn_c_try_compile
"$LINENO"; then :
1952 ac_hi
=$ac_mid; break
1954 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1955 if test $ac_lo -le $ac_mid; then
1959 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1970 static int test_array [1 - 2 * !(($2) < 0)];
1972 return test_array [0];
1978 if ac_fn_c_try_compile
"$LINENO"; then :
1981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1987 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1989 return test_array [0];
1995 if ac_fn_c_try_compile
"$LINENO"; then :
1996 ac_lo
=$ac_mid; break
1998 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1999 if test $ac_mid -le $ac_hi; then
2003 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2013 # Binary search between lo and hi bounds.
2014 while test "x$ac_lo" != "x$ac_hi"; do
2015 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024 return test_array [0];
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2033 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2038 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2045 static long int longval () { return $2; }
2046 static unsigned long int ulongval () { return $2; }
2053 FILE *f = fopen ("conftest.val", "w");
2058 long int i = longval ();
2061 fprintf (f, "%ld", i);
2065 unsigned long int i = ulongval ();
2068 fprintf (f, "%lu", i);
2070 /* Do not output a trailing newline, as this causes \r\n confusion
2071 on some platforms. */
2072 return ferror (f) || fclose (f) != 0;
2078 if ac_fn_c_try_run
"$LINENO"; then :
2079 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2083 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2084 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 as_fn_set_status
$ac_retval
2091 } # ac_fn_c_compute_int
2093 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2094 # ---------------------------------------------
2095 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2097 ac_fn_c_check_decl
()
2099 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2100 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2101 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2103 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2104 if eval \
${$3+:} false
; then :
2105 $as_echo_n "(cached) " >&6
2107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 #ifndef $as_decl_name
2115 (void) $as_decl_use;
2117 (void) $as_decl_name;
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_decl
2139 # ac_fn_c_check_func LINENO FUNC VAR
2140 # ----------------------------------
2141 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2142 ac_fn_c_check_func
()
2144 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \
${$3+:} false
; then :
2148 $as_echo_n "(cached) " >&6
2150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2154 #define $2 innocuous_$2
2156 /* System header to define __stub macros and hopefully few prototypes,
2157 which can conflict with char $2 (); below.
2158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2159 <limits.h> exists even on freestanding compilers. */
2162 # include <limits.h>
2164 # include <assert.h>
2169 /* Override any GCC internal prototype to avoid an error.
2170 Use char because int might match the return type of a GCC
2171 builtin and then its argument prototype would still apply. */
2176 /* The GNU C library defines this for functions which it implements
2177 to always fail with ENOSYS. Some functions are actually named
2178 something starting with __ and the normal name is an alias. */
2179 #if defined __stub_$2 || defined __stub___$2
2191 if ac_fn_c_try_link
"$LINENO"; then :
2196 rm -f core conftest.err conftest.
$ac_objext \
2197 conftest
$ac_exeext conftest.
$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 } # ac_fn_c_check_func
2206 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207 # ----------------------------------------------------
2208 # Tries to find if the field MEMBER exists in type AGGR, after including
2209 # INCLUDES, setting cache variable VAR accordingly.
2210 ac_fn_c_check_member
()
2212 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214 $as_echo_n "checking for $2.$3... " >&6; }
2215 if eval \
${$4+:} false
; then :
2216 $as_echo_n "(cached) " >&6
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2231 if ac_fn_c_try_compile
"$LINENO"; then :
2234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2241 if (sizeof ac_aggr.$3)
2247 if ac_fn_c_try_compile
"$LINENO"; then :
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_check_member
2263 # ac_fn_cxx_try_link LINENO
2264 # -------------------------
2265 # Try to link conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_cxx_try_link
()
2268 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2269 rm -f conftest.
$ac_objext conftest
$ac_exeext
2270 if { { ac_try
="$ac_link"
2272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_link") 2>conftest.err
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && {
2286 test -z "$ac_cxx_werror_flag" ||
2287 test ! -s conftest.err
2288 } && test -s conftest$ac_exeext && {
2289 test "$cross_compiling" = yes ||
2290 test -x conftest$ac_exeext
2294 $as_echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2299 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2300 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2301 # interfere with the next link command; also delete a directory that is
2302 # left behind by Apple's compiler. We do this before executing the actions.
2303 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 as_fn_set_status $ac_retval
2307 } # ac_fn_cxx_try_link
2309 # ac_fn_cxx_check_func LINENO FUNC VAR
2310 # ------------------------------------
2311 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2312 ac_fn_cxx_check_func ()
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2316 $as_echo_n "checking for $2... " >&6; }
2317 if eval \${$3+:} false; then :
2318 $as_echo_n "(cached) " >&6
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2322 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2324 #define $2 innocuous_$2
2326 /* System header to define __stub macros and hopefully few prototypes,
2327 which can conflict with char $2 (); below.
2328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 <limits.h> exists even on freestanding compilers. */
2332 # include <limits.h>
2334 # include <assert.h>
2339 /* Override any GCC internal prototype to avoid an error.
2340 Use char because int might match the return type of a GCC
2341 builtin and then its argument prototype would still apply. */
2346 /* The GNU C library defines this for functions which it implements
2347 to always fail with ENOSYS. Some functions are actually named
2348 something starting with __ and the normal name is an alias. */
2349 #if defined __stub_$2 || defined __stub___$2
2361 if ac_fn_cxx_try_link "$LINENO"; then :
2366 rm -f core conftest.err conftest.$ac_objext \
2367 conftest$ac_exeext conftest.$ac_ext
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371 $as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374 } # ac_fn_cxx_check_func
2375 cat >config.log <<_ACEOF
2376 This file contains any messages produced by compilers while
2377 running configure, to aid debugging if configure makes a mistake.
2379 It was created by gdbsupport $as_me 1.0, which was
2380 generated by GNU Autoconf 2.69. Invocation command line was
2392 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2393 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2394 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2395 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2396 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2398 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2399 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2401 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2402 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2403 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2404 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2405 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2406 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2407 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir=.
2416 $as_echo "PATH: $as_dir"
2432 # Keep a trace of the command line.
2433 # Strip out --no-create and --no-recursion so they do not pile up.
2434 # Strip out --silent because we don't want to record it for future runs.
2435 # Also quote any args containing shell meta-characters.
2436 # Make two passes to allow for proper duplicate-argument suppression.
2440 ac_must_keep_next=false
2446 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2448 | -silent | --silent | --silen | --sile | --sil)
2451 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2454 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456 as_fn_append ac_configure_args1 " '$ac_arg'"
2457 if test $ac_must_keep_next = true; then
2458 ac_must_keep_next=false # Got value, back to normal.
2461 *=* | --config-cache | -C | -disable-* | --disable-* \
2462 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2463 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2464 | -with-* | --with-* | -without-* | --without-* | --x)
2465 case "$ac_configure_args0 " in
2466 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2469 -* ) ac_must_keep_next=true ;;
2472 as_fn_append ac_configure_args " '$ac_arg'"
2477 { ac_configure_args0=; unset ac_configure_args0;}
2478 { ac_configure_args1=; unset ac_configure_args1;}
2480 # When interrupted or exit'd, cleanup temporary files, and complete
2481 # config.log. We remove comments because anyway the quotes in there
2482 # would cause problems or look ugly.
2483 # WARNING: Use '\'' to represent an apostrophe within the trap.
2484 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2485 trap 'exit_status=$?
2486 # Save into config.log some information that might help in debugging.
2490 $as_echo "## ---------------- ##
2491 ## Cache variables. ##
2492 ## ---------------- ##"
2494 # The following way of writing the cache mishandles newlines in values,
2496 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2497 eval ac_val=\$$ac_var
2501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2505 _ | IFS | as_nl) ;; #(
2506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2507 *) { eval $ac_var=; unset $ac_var;} ;;
2512 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2513 *${as_nl}ac_space=\ *)
2515 "s/'\''/'\''\\\\'\'''\''/g;
2516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2526 $as_echo "## ----------------- ##
2527 ## Output variables. ##
2528 ## ----------------- ##"
2530 for ac_var in $ac_subst_vars
2532 eval ac_val=\$$ac_var
2534 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 $as_echo "$ac_var='\''$ac_val'\''"
2540 if test -n "$ac_subst_files"; then
2541 $as_echo "## ------------------- ##
2542 ## File substitutions. ##
2543 ## ------------------- ##"
2545 for ac_var in $ac_subst_files
2547 eval ac_val=\$$ac_var
2549 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551 $as_echo "$ac_var='\''$ac_val'\''"
2556 if test -s confdefs.h; then
2557 $as_echo "## ----------- ##
2564 test "$ac_signal" != 0 &&
2565 $as_echo "$as_me: caught signal $ac_signal"
2566 $as_echo "$as_me: exit $exit_status"
2568 rm -f core *.core core.conftest.* &&
2569 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2572 for ac_signal in 1 2 13 15; do
2573 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2577 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2578 rm -f -r conftest* confdefs.h
2580 $as_echo "/* confdefs.h */" > confdefs.h
2582 # Predefined preprocessor variables.
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_NAME "$PACKAGE_NAME"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_STRING "$PACKAGE_STRING"
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_URL "$PACKAGE_URL"
2609 # Let the site file select an alternate cache file if it wants to.
2610 # Prefer an explicitly selected file to automatically selected ones.
2613 if test -n "$CONFIG_SITE"; then
2614 # We do not want a PATH search for config.site.
2615 case $CONFIG_SITE in #((
2616 -*) ac_site_file1=./$CONFIG_SITE;;
2617 */*) ac_site_file1=$CONFIG_SITE;;
2618 *) ac_site_file1=./$CONFIG_SITE;;
2620 elif test "x$prefix" != xNONE; then
2621 ac_site_file1=$prefix/share/config.site
2622 ac_site_file2=$prefix/etc/config.site
2624 ac_site_file1=$ac_default_prefix/share/config.site
2625 ac_site_file2=$ac_default_prefix/etc/config.site
2627 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2629 test "x$ac_site_file" = xNONE && continue
2630 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2632 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2633 sed 's/^/| /' "$ac_site_file" >&5
2635 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 as_fn_error $? "failed to load site
script $ac_site_file
2638 See \
`config.log' for more details" "$LINENO" 5; }
2642 if test -r "$cache_file"; then
2643 # Some versions of bash will fail to source /dev/null (special files
2644 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2645 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2647 $as_echo "$as_me: loading cache $cache_file" >&6;}
2649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2650 *) . "./$cache_file";;
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2655 $as_echo "$as_me: creating cache $cache_file" >&6;}
2659 as_fn_append ac_header_list " stdlib.h"
2660 as_fn_append ac_header_list " unistd.h"
2661 as_fn_append ac_header_list " sys/param.h"
2662 # Check that the precious variables saved in the cache have kept the same
2664 ac_cache_corrupted=false
2665 for ac_var in $ac_precious_vars; do
2666 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2667 eval ac_new_set=\$ac_env_${ac_var}_set
2668 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2669 eval ac_new_val=\$ac_env_${ac_var}_value
2670 case $ac_old_set,$ac_new_set in
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2673 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2674 ac_cache_corrupted=: ;;
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2677 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2678 ac_cache_corrupted=: ;;
2681 if test "x$ac_old_val" != "x$ac_new_val"; then
2682 # differences in whitespace do not lead to failure.
2683 ac_old_val_w=`echo x
$ac_old_val`
2684 ac_new_val_w=`echo x
$ac_new_val`
2685 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2687 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2688 ac_cache_corrupted=:
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2691 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2692 eval $ac_var=\$ac_old_val
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2695 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2697 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2700 # Pass precious variables to config.status.
2701 if test "$ac_new_set" = set; then
2703 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2704 *) ac_arg=$ac_var=$ac_new_val ;;
2706 case " $ac_configure_args " in
2707 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2708 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2712 if $ac_cache_corrupted; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2716 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2717 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2719 ## -------------------- ##
2720 ## Main body of script. ##
2721 ## -------------------- ##
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 ac_config_headers="$ac_config_headers config.h:config.in"
2737 # Set build, build_cpu, build_vendor and build_os.
2739 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2740 if test -f "$ac_dir/install-sh"; then
2742 ac_install_sh="$ac_aux_dir/install-sh -c"
2744 elif test -f "$ac_dir/install.sh"; then
2746 ac_install_sh="$ac_aux_dir/install.sh -c"
2748 elif test -f "$ac_dir/shtool"; then
2750 ac_install_sh="$ac_aux_dir/shtool install -c"
2754 if test -z "$ac_aux_dir"; then
2755 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2758 # These three variables are undocumented and unsupported,
2759 # and are intended to be withdrawn in a future Autoconf release.
2760 # They can cause serious problems if a builder's source tree is in a directory
2761 # whose full name contains unusual characters.
2762 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2763 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2764 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2767 # Make sure we can run config.sub.
2768 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2769 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2772 $as_echo_n "checking build system type... " >&6; }
2773 if ${ac_cv_build+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 ac_build_alias=$build_alias
2777 test "x$ac_build_alias" = x &&
2778 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2779 test "x$ac_build_alias" = x &&
2780 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2781 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2782 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2786 $as_echo "$ac_cv_build" >&6; }
2787 case $ac_cv_build in
2789 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2792 ac_save_IFS=$IFS; IFS='-'
2798 # Remember, the first character of IFS is used to create $*,
2799 # except with old shells:
2802 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2806 # Set host, host_cpu, host_vendor, and host_os.
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2808 $as_echo_n "checking host system type... " >&6; }
2809 if ${ac_cv_host+:} false; then :
2810 $as_echo_n "(cached) " >&6
2812 if test "x$host_alias" = x; then
2813 ac_cv_host=$ac_cv_build
2815 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2821 $as_echo "$ac_cv_host" >&6; }
2824 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2827 ac_save_IFS=$IFS; IFS='-'
2833 # Remember, the first character of IFS is used to create $*,
2834 # except with old shells:
2837 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2841 # Set target, target_cpu, target_vendor, and target_os.
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2843 $as_echo_n "checking target system type... " >&6; }
2844 if ${ac_cv_target+:} false; then :
2845 $as_echo_n "(cached) " >&6
2847 if test "x$target_alias" = x; then
2848 ac_cv_target=$ac_cv_host
2850 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2851 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2856 $as_echo "$ac_cv_target" >&6; }
2857 case $ac_cv_target in
2859 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2861 target=$ac_cv_target
2862 ac_save_IFS=$IFS; IFS='-'
2868 # Remember, the first character of IFS is used to create $*,
2869 # except with old shells:
2872 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2875 # The aliases save the names the user supplied, while $host etc.
2876 # will get canonicalized.
2877 test -n "$target_alias" &&
2878 test "$program_prefix$program_suffix$program_transform_name" = \
2880 program_prefix=${target_alias}-
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2884 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2885 # Check whether --enable-maintainer-mode was given.
2886 if test "${enable_maintainer_mode+set}" = set; then :
2887 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2889 USE_MAINTAINER_MODE=no
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2893 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2894 if test $USE_MAINTAINER_MODE = yes; then
2895 MAINTAINER_MODE_TRUE=
2896 MAINTAINER_MODE_FALSE='#'
2898 MAINTAINER_MODE_TRUE='#'
2899 MAINTAINER_MODE_FALSE=
2902 MAINT=$MAINTAINER_MODE_TRUE
2906 for ac_dir in .. "$srcdir"/..; do
2907 if test -f "$ac_dir/install-sh"; then
2909 ac_install_sh="$ac_aux_dir/install-sh -c"
2911 elif test -f "$ac_dir/install.sh"; then
2913 ac_install_sh="$ac_aux_dir/install.sh -c"
2915 elif test -f "$ac_dir/shtool"; then
2917 ac_install_sh="$ac_aux_dir/shtool install -c"
2921 if test -z "$ac_aux_dir"; then
2922 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2925 # These three variables are undocumented and unsupported,
2926 # and are intended to be withdrawn in a future Autoconf release.
2927 # They can cause serious problems if a builder's source tree is in a directory
2928 # whose full name contains unusual characters.
2929 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2930 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2931 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2934 am__api_version='1.15'
2936 # Find a good install program. We prefer a C program (faster),
2937 # so one script is as good as another. But avoid the broken or
2938 # incompatible versions:
2939 # SysV /etc/install, /usr/sbin/install
2940 # SunOS /usr/etc/install
2941 # IRIX /sbin/install
2943 # AmigaOS /C/install, which installs bootblocks on floppy discs
2944 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2945 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2946 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2947 # OS/2's system install, which has a completely different semantic
2948 # ./install, which can be erroneously created by make from ./install.sh.
2949 # Reject install programs that cannot install multiple files.
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2951 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2952 if test -z "$INSTALL"; then
2953 if ${ac_cv_path_install+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 # Account for people who put trailing slashes in PATH elements.
2962 case $as_dir/ in #((
2963 ./ | .// | /[cC]/* | \
2964 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2965 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2968 # OSF1 and SCO ODT 3.0 have their own names for install.
2969 # Don't use installbsd from OSF since it installs stuff as root
2971 for ac_prog in ginstall scoinst install; do
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2974 if test $ac_prog = install &&
2975 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # AIX install. It has an incompatible calling convention.
2978 elif test $ac_prog = install &&
2979 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2980 # program-specific install script used by HP pwplus--don't use.
2983 rm -rf conftest.one conftest.two conftest.dir
2984 echo one > conftest.one
2985 echo two > conftest.two
2987 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2988 test -s conftest.one && test -s conftest.two &&
2989 test -s conftest.dir/conftest.one &&
2990 test -s conftest.dir/conftest.two
2992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3005 rm -rf conftest.one conftest.two conftest.dir
3008 if test "${ac_cv_path_install+set}" = set; then
3009 INSTALL=$ac_cv_path_install
3011 # As a last resort, use the slow shell script. Don't cache a
3012 # value for INSTALL within a source directory, because that will
3013 # break other packages using the cache if that directory is
3014 # removed, or if the value is a relative name.
3015 INSTALL=$ac_install_sh
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3019 $as_echo "$INSTALL" >&6; }
3021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3022 # It thinks the first close brace ends the variable substitution.
3023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3030 $as_echo_n "checking whether build environment is sane... " >&6; }
3031 # Reject unsafe characters in $srcdir or the absolute working directory
3032 # name. Accept space and tab only in the latter.
3036 *[\\\"\#\$\&\'\`$am_lf]*)
3037 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3040 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3041 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3044 # Do 'set' in a subshell so we don't clobber the current shell's
3045 # arguments. Must try -L first in case configure is actually a
3046 # symlink; some systems play weird games with the mod time of symlinks
3047 # (eg FreeBSD returns the mod time of the symlink's containing
3051 for am_try
in 1 2; do
3052 echo "timestamp, slept: $am_has_slept" > conftest.
file
3053 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3054 if test "$*" = "X"; then
3056 set X
`ls -t "$srcdir/configure" conftest.file`
3058 if test "$*" != "X $srcdir/configure conftest.file" \
3059 && test "$*" != "X conftest.file $srcdir/configure"; then
3061 # If neither matched, then we have a broken ls. This can happen
3062 # if, for instance, CONFIG_SHELL is bash and it inherits a
3063 # broken ls alias from the environment. This has actually
3064 # happened. Such a system could not be considered "sane".
3065 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3066 alias in your environment" "$LINENO" 5
3068 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3075 test "$2" = conftest.
file
3081 as_fn_error $?
"newly created file is older than distributed files!
3082 Check your system clock" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3086 # If we didn't sleep, we still need to ensure time stamps of config.status and
3087 # generated files are strictly newer.
3089 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3096 test "$program_prefix" != NONE
&&
3097 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3098 # Use a double $ so make ignores it.
3099 test "$program_suffix" != NONE
&&
3100 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3101 # Double any \ or $.
3102 # By default was `s,x,x', remove it if useless.
3103 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3104 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3106 # Expand $ac_aux_dir to an absolute path.
3107 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3109 if test x
"${MISSING+set}" != xset
; then
3112 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3114 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3117 # Use eval to expand $SHELL
3118 if eval "$MISSING --is-lightweight"; then
3119 am_missing_run
="$MISSING "
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3123 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3126 if test x
"${install_sh+set}" != xset
; then
3129 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3131 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3135 # Installed binaries are usually stripped using 'strip' when the user
3136 # run "make install-strip". However 'strip' might not be the right
3137 # tool to use in cross-compilation environments, therefore Automake
3138 # will honor the 'STRIP' environment variable to overrule this program.
3139 if test "$cross_compiling" != no
; then
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3142 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_STRIP+:} false
; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$STRIP"; then
3149 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir
=.
3156 for ac_exec_ext
in '' $ac_executable_extensions; do
3157 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 STRIP
=$ac_cv_prog_STRIP
3169 if test -n "$STRIP"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3171 $as_echo "$STRIP" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3179 if test -z "$ac_cv_prog_STRIP"; then
3181 # Extract the first word of "strip", so it can be a program name with args.
3182 set dummy strip
; ac_word
=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_STRIP"; then
3189 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir
=.
3196 for ac_exec_ext
in '' $ac_executable_extensions; do
3197 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_STRIP
="strip"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3209 if test -n "$ac_ct_STRIP"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3211 $as_echo "$ac_ct_STRIP" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3217 if test "x$ac_ct_STRIP" = x
; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned
=yes ;;
3229 STRIP
="$ac_cv_prog_STRIP"
3233 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3236 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3237 if test -z "$MKDIR_P"; then
3238 if ${ac_cv_path_mkdir+:} false
; then :
3239 $as_echo_n "(cached) " >&6
3241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3245 test -z "$as_dir" && as_dir
=.
3246 for ac_prog
in mkdir gmkdir
; do
3247 for ac_exec_ext
in '' $ac_executable_extensions; do
3248 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3249 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3250 'mkdir (GNU coreutils) '* | \
3251 'mkdir (coreutils) '* | \
3252 'mkdir (fileutils) '4.1*)
3253 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3263 test -d .
/--version && rmdir .
/--version
3264 if test "${ac_cv_path_mkdir+set}" = set; then
3265 MKDIR_P
="$ac_cv_path_mkdir -p"
3267 # As a last resort, use the slow shell script. Don't cache a
3268 # value for MKDIR_P within a source directory, because that will
3269 # break other packages using the cache if that directory is
3270 # removed, or if the value is a relative name.
3271 MKDIR_P
="$ac_install_sh -d"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3275 $as_echo "$MKDIR_P" >&6; }
3277 for ac_prog
in gawk mawk nawk
awk
3279 # Extract the first word of "$ac_prog", so it can be a program name with args.
3280 set dummy
$ac_prog; ac_word
=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if ${ac_cv_prog_AWK+:} false
; then :
3284 $as_echo_n "(cached) " >&6
3286 if test -n "$AWK"; then
3287 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir
=.
3294 for ac_exec_ext
in '' $ac_executable_extensions; do
3295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_AWK
="$ac_prog"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test -n "$AWK"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3309 $as_echo "$AWK" >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3316 test -n "$AWK" && break
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3320 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3322 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3323 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3324 $as_echo_n "(cached) " >&6
3326 cat >conftest.
make <<\_ACEOF
3329 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3331 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3332 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3334 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3336 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3340 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 SET_MAKE
="MAKE=${MAKE-make}"
3350 rm -rf .tst
2>/dev
/null
3351 mkdir .tst
2>/dev
/null
3352 if test -d .tst
; then
3357 rmdir .tst
2>/dev
/null
3359 # Check whether --enable-silent-rules was given.
3360 if test "${enable_silent_rules+set}" = set; then :
3361 enableval
=$enable_silent_rules;
3364 case $enable_silent_rules in # (((
3365 yes) AM_DEFAULT_VERBOSITY
=0;;
3366 no
) AM_DEFAULT_VERBOSITY
=1;;
3367 *) AM_DEFAULT_VERBOSITY
=1;;
3369 am_make
=${MAKE-make}
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3371 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3372 if ${am_cv_make_support_nested_variables+:} false
; then :
3373 $as_echo_n "(cached) " >&6
3375 if $as_echo 'TRUE=$(BAR$(V))
3381 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3382 am_cv_make_support_nested_variables
=yes
3384 am_cv_make_support_nested_variables
=no
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3388 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3389 if test $am_cv_make_support_nested_variables = yes; then
3391 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3393 AM_V
=$AM_DEFAULT_VERBOSITY
3394 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3398 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3399 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3400 # is not polluted with repeated "-I."
3401 am__isrc
=' -I$(srcdir)'
3402 # test to see if srcdir already configured
3403 if test -f $srcdir/config.status
; then
3404 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3408 # test whether we have cygpath
3409 if test -z "$CYGPATH_W"; then
3410 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3411 CYGPATH_W
='cygpath -w'
3418 # Define the identity of the package.
3419 PACKAGE
='gdbsupport'
3423 cat >>confdefs.h
<<_ACEOF
3424 #define PACKAGE "$PACKAGE"
3428 cat >>confdefs.h
<<_ACEOF
3429 #define VERSION "$VERSION"
3432 # Some tools Automake needs.
3434 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3437 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3440 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3443 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3446 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3448 # For better backward compatibility. To be removed once Automake 1.9.x
3449 # dies out for good. For more background, see:
3450 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3451 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3452 mkdir_p
='$(MKDIR_P)'
3454 # We need awk for the "check" target (and possibly the TAP driver). The
3455 # system "awk" is bad on some platforms.
3456 # Always define AMTAR for backward compatibility. Yes, it's still used
3457 # in the wild :-( We should find a proper way to deprecate it ...
3461 # We'll loop over all known methods to create a tar archive until one works.
3462 _am_tools
='gnutar pax cpio none'
3464 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3471 # POSIX will say in a future version that running "rm -f" with no argument
3472 # is OK; and we want to be able to make that assumption in our Makefile
3473 # recipes. So use an aggressive probe to check that the usage we want is
3474 # actually supported "in the wild" to an acceptable degree.
3475 # See automake bug#10828.
3476 # To make any issue more visible, cause the running configure to be aborted
3477 # by default if the 'rm' program in use doesn't match our expectations; the
3478 # user can still override this though.
3479 if rm -f && rm -fr && rm -rf; then : OK
; else
3483 Your 'rm' program seems unable to run without file operands specified
3484 on the command line, even when the '-f' option is present. This is contrary
3485 to the behaviour of most rm programs out there, and not conforming with
3486 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3488 Please tell bug-automake@gnu.org about your system, including the value
3489 of your $PATH and any error possibly output before this message. This
3490 can help us improve future automake versions.
3493 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3494 echo 'Configuration will proceed anyway, since you have set the' >&2
3495 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3499 Aborting the configuration process, to ensure you take notice of the issue.
3501 You can download and install GNU coreutils to get an 'rm' implementation
3502 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3504 If you want to complete the configuration process using your problematic
3505 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3506 to "yes", and re-run configure.
3509 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3513 # Check whether --enable-silent-rules was given.
3514 if test "${enable_silent_rules+set}" = set; then :
3515 enableval
=$enable_silent_rules;
3518 case $enable_silent_rules in # (((
3519 yes) AM_DEFAULT_VERBOSITY
=0;;
3520 no
) AM_DEFAULT_VERBOSITY
=1;;
3521 *) AM_DEFAULT_VERBOSITY
=0;;
3523 am_make
=${MAKE-make}
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3525 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3526 if ${am_cv_make_support_nested_variables+:} false
; then :
3527 $as_echo_n "(cached) " >&6
3529 if $as_echo 'TRUE=$(BAR$(V))
3535 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3536 am_cv_make_support_nested_variables
=yes
3538 am_cv_make_support_nested_variables
=no
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3542 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3543 if test $am_cv_make_support_nested_variables = yes; then
3545 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3547 AM_V
=$AM_DEFAULT_VERBOSITY
3548 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3556 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_CC+:} false; then :
3564 $as_echo_n "(cached) " >&6
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3597 if test -z "$ac_cv_prog_CC"; then
3599 # Extract the first word of "gcc", so it can be a program name with args.
3600 set dummy gcc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3604 $as_echo_n "(cached) " >&6
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_ac_ct_CC="gcc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 $as_echo "$ac_ct_CC" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3635 if test "x$ac_ct_CC" = x; then
3638 case $cross_compiling:$ac_tool_warned in
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642 ac_tool_warned=yes ;;
3650 if test -z "$CC"; then
3651 if test -n "$ac_tool_prefix"; then
3652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}cc; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if ${ac_cv_prog_CC+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_CC="${ac_tool_prefix}cc"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 # Extract the first word of "cc", so it can be a program name with args.
3693 set dummy cc; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if ${ac_cv_prog_CC+:} false; then :
3697 $as_echo_n "(cached) " >&6
3699 if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3711 ac_prog_rejected=yes
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 if test $ac_prog_rejected = yes; then
3723 # We found a bogon in the path, so make sure we never use it.
3724 set dummy $ac_cv_prog_CC
3726 if test $# != 0; then
3727 # We chose a different compiler from the bogus one.
3728 # However, it has the same basename, so the bogon will be chosen
3729 # first if we set CC to just the basename; use the full file name.
3731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3737 if test -n "$CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 for ac_prog in cl.exe
3751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if ${ac_cv_prog_CC+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 if test -n "$CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 $as_echo "$CC" >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3788 test -n "$CC" && break
3791 if test -z "$CC"; then
3793 for ac_prog in cl.exe
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_CC="$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3832 test -n "$ac_ct_CC" && break
3835 if test "x$ac_ct_CC" = x; then
3838 case $cross_compiling:$ac_tool_warned in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3853 as_fn_error $? "no acceptable C compiler found in \$PATH
3854 See \`config.log
' for more details" "$LINENO" 5; }
3856 # Provide some information about the compiler.
3857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3860 for ac_option in --version -v -V -qversion; do
3861 { { ac_try="$ac_compiler $ac_option >&5"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3870 if test -s conftest.err; then
3872 ... rest of stderr output deleted ...
3873 10q
' conftest.err >conftest.er1
3874 cat conftest.er1 >&5
3876 rm -f conftest.er1 conftest.err
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 ac_clean_files_save=$ac_clean_files
3893 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3894 # Try to create an executable without -o first, disregard a.out.
3895 # It will help us diagnose broken compilers, and finding out an intuition
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3898 $as_echo_n "checking whether the C compiler works... " >&6; }
3899 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3901 # The possible output files:
3902 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3905 for ac_file in $ac_files
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3914 if { { ac_try="$ac_link_default"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_link_default") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; then :
3925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3926 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3927 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3928 # so that the user can short-circuit this test for compilers unknown to
3930 for ac_file
in $ac_files ''
3932 test -f "$ac_file" ||
continue
3934 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3937 # We found the default executable, but exeext='' is most
3941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3943 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3945 # We set ac_cv_exeext here because the later test for it is not
3946 # safe: cross compilers may not add the suffix if given an `-o'
3947 # argument, so we may need to know it at that point already.
3948 # Even if this section looks crufty: it has the advantage of
3955 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3960 if test -z "$ac_file"; then :
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3963 $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.
$ac_ext >&5
3966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968 as_fn_error
77 "C compiler cannot create executables
3969 See \`config.log' for more details" "$LINENO" 5; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972 $as_echo "yes" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3975 $as_echo_n "checking for C compiler default output file name... " >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3977 $as_echo "$ac_file" >&6; }
3978 ac_exeext
=$ac_cv_exeext
3980 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3981 ac_clean_files
=$ac_clean_files_save
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3983 $as_echo_n "checking for suffix of executables... " >&6; }
3984 if { { ac_try
="$ac_link"
3986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990 $as_echo "$ac_try_echo"; } >&5
3991 (eval "$ac_link") 2>&5
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }; then :
3995 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3996 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3997 # work properly (i.e., refer to `conftest.exe'), while it won't with
3999 for ac_file
in conftest.exe conftest conftest.
*; do
4000 test -f "$ac_file" ||
continue
4002 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4003 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4012 See \`config.log' for more details" "$LINENO" 5; }
4014 rm -f conftest conftest
$ac_cv_exeext
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4016 $as_echo "$ac_cv_exeext" >&6; }
4018 rm -f conftest.
$ac_ext
4019 EXEEXT
=$ac_cv_exeext
4021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4027 FILE *f = fopen ("conftest.out", "w");
4028 return ferror (f) || fclose (f) != 0;
4034 ac_clean_files
="$ac_clean_files conftest.out"
4035 # Check that the compiler produces executables we can run. If not, either
4036 # the compiler is broken, or we cross compile.
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038 $as_echo_n "checking whether we are cross compiling... " >&6; }
4039 if test "$cross_compiling" != yes; then
4040 { { ac_try
="$ac_link"
4042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_link") 2>&5
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }
4051 if { ac_try='./conftest$ac_cv_exeext'
4052 { { case "(($ac_try" in
4053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4054 *) ac_try_echo
=$ac_try;;
4056 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_try") 2>&5
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }; }; then
4064 if test "$cross_compiling" = maybe
; then
4067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $?
"cannot run C compiled programs.
4070 If you meant to cross compile, use \`--host'.
4071 See \`config.log' for more details" "$LINENO" 5; }
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4076 $as_echo "$cross_compiling" >&6; }
4078 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4079 ac_clean_files
=$ac_clean_files_save
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4081 $as_echo_n "checking for suffix of object files... " >&6; }
4082 if ${ac_cv_objext+:} false
; then :
4083 $as_echo_n "(cached) " >&6
4085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4096 rm -f conftest.o conftest.obj
4097 if { { ac_try
="$ac_compile"
4099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compile") 2>&5
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }; then :
4108 for ac_file in conftest.o conftest.obj conftest.*; do
4109 test -f "$ac_file" || continue;
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4117 $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4123 See \
`config.log' for more details" "$LINENO" 5; }
4125 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4128 $as_echo "$ac_cv_objext" >&6; }
4129 OBJEXT=$ac_cv_objext
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4132 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4133 if ${ac_cv_c_compiler_gnu+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4150 if ac_fn_c_try_compile "$LINENO"; then :
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4160 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4161 if test $ac_compiler_gnu = yes; then
4166 ac_test_CFLAGS=${CFLAGS+set}
4167 ac_save_CFLAGS=$CFLAGS
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4169 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4170 if ${ac_cv_prog_cc_g+:} false; then :
4171 $as_echo_n "(cached) " >&6
4173 ac_save_c_werror_flag=$ac_c_werror_flag
4174 ac_c_werror_flag=yes
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4188 if ac_fn_c_try_compile "$LINENO"; then :
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4203 if ac_fn_c_try_compile "$LINENO"; then :
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4219 if ac_fn_c_try_compile "$LINENO"; then :
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4230 $as_echo "$ac_cv_prog_cc_g" >&6; }
4231 if test "$ac_test_CFLAGS" = set; then
4232 CFLAGS=$ac_save_CFLAGS
4233 elif test $ac_cv_prog_cc_g = yes; then
4234 if test "$GCC" = yes; then
4240 if test "$GCC" = yes; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4247 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4248 if ${ac_cv_prog_cc_c89+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 ac_cv_prog_cc_c89=no
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4259 struct buf { int x; };
4260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4261 static char *e (p, i)
4267 static char *f (char * (*g) (char **, int), char **p, ...)
4272 s = g (p, va_arg (v,int));
4277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4278 function prototypes and stuff, but not '\xHH' hex character constants.
4279 These don't provoke an error unfortunately, instead are silently treated
4280 as 'x'. The following induces an error, until -std is added to get
4281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4282 array size at least. It's necessary to write '\x00'==0 to get something
4283 that's true only with -std. */
4284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4287 inside strings and character constants. */
4289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4291 int test (int i, double x);
4292 struct s1 {int (*f) (int a);};
4293 struct s2 {int (*f) (double a);};
4294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4308 CC="$ac_save_CC $ac_arg"
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310 ac_cv_prog_cc_c89=$ac_arg
4312 rm -f core conftest.err conftest.$ac_objext
4313 test "x$ac_cv_prog_cc_c89" != "xno" && break
4315 rm -f conftest.$ac_ext
4320 case "x$ac_cv_prog_cc_c89" in
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4323 $as_echo "none needed" >&6; } ;;
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4326 $as_echo "unsupported" >&6; } ;;
4328 CC="$CC $ac_cv_prog_cc_c89"
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4332 if test "x$ac_cv_prog_cc_c89" != xno; then :
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4348 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4349 if ${am_cv_prog_cc_c_o+:} false; then :
4350 $as_echo_n "(cached) " >&6
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4363 # Make sure it works both with $CC and with simple cc.
4364 # Following AC_PROG_CC_C_O, we do the test twice because some
4365 # compilers refuse to overwrite an existing .o file with -o,
4366 # though they will create one.
4367 am_cv_prog_cc_c_o=yes
4369 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4370 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } \
4374 && test -f conftest2.$ac_objext; then
4377 am_cv_prog_cc_c_o=no
4381 rm -f core conftest*
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4385 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4386 if test "$am_cv_prog_cc_c_o" != yes; then
4387 # Losing compiler, so override with the script.
4388 # FIXME: It is wrong to rewrite CC.
4389 # But if we don't then we get into trouble of one sort or another.
4390 # A longer-term fix would be to have automake use am__CC in this case,
4391 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4392 CC="$am_aux_dir/compile $CC"
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400 DEPDIR="${am__leading_dot}deps"
4402 ac_config_commands="$ac_config_commands depfiles"
4405 am_make=${MAKE-make}
4406 cat > confinc << 'END'
4408 @echo this is the am__doit target
4411 # If we don't find an include directive, just comment out the code.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4413 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4417 # First try GNU make style include.
4418 echo "include confinc" > confmf
4419 # Ignore all kinds of additional output from 'make'.
4420 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4421 *the\ am__doit\ target*)
4427 # Now try BSD make style include.
4428 if test "$am__include" = "#"; then
4429 echo '.include "confinc"' > confmf
4430 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4431 *the\ am__doit\ target*)
4432 am__include=.include
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4441 $as_echo "$_am_result" >&6; }
4442 rm -f confinc confmf
4444 # Check whether --enable-dependency-tracking was given.
4445 if test "${enable_dependency_tracking+set}" = set; then :
4446 enableval=$enable_dependency_tracking;
4449 if test "x$enable_dependency_tracking" != xno; then
4450 am_depcomp="$ac_aux_dir/depcomp"
4454 if test "x$enable_dependency_tracking" != xno; then
4464 depcc="$CC" am_compiler_list=
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4467 $as_echo_n "checking dependency style of $depcc... " >&6; }
4468 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4472 # We make a subdir and do the tests there. Otherwise we can end up
4473 # making bogus files that we don't know about and never remove. For
4474 # instance it was reported that on HP-UX the gcc test will end up
4475 # making a dummy file named 'D' -- because '-MD' means "put the output
4479 # Copy depcomp to subdir because otherwise we won't find it if we're
4480 # using a relative directory.
4481 cp "$am_depcomp" conftest.dir
4483 # We will build objects and dependencies in a subdirectory because
4484 # it helps to detect inapplicable dependency modes. For instance
4485 # both Tru64's cc and ICC support -MD to output dependencies as a
4486 # side effect of compilation, but ICC will put the dependencies in
4487 # the current directory while Tru64 will put them in the object
4491 am_cv_CC_dependencies_compiler_type=none
4492 if test "$am_compiler_list" = ""; then
4493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4496 case " $depcc " in #(
4497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4500 for depmode in $am_compiler_list; do
4501 # Setup a source with many dependencies, because some compilers
4502 # like to wrap large dependency lists on column 80 (with \), and
4503 # we should not choose a depcomp mode which is confused by this.
4505 # We need to recreate these files for each test, as the compiler may
4506 # overwrite some of them when testing with obscure command lines.
4507 # This happens at least with the AIX C compiler.
4509 for i in 1 2 3 4 5 6; do
4510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4511 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4512 # Solaris 10 /bin/sh.
4513 echo '/* dummy */' > sub/conftst$i.h
4515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4517 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4518 # mode. It turns out that the SunPro C++ compiler does not properly
4519 # handle '-M -o', and we need to detect this. Also, some Intel
4520 # versions had trouble with output in subdirs.
4521 am__obj=sub/conftest.${OBJEXT-o}
4522 am__minus_obj="-o $am__obj"
4525 # This depmode causes a compiler race in universal mode.
4526 test "$am__universal" = false || continue
4529 # After this tag, mechanisms are not by side-effect, so they'll
4530 # only be used when explicitly requested.
4531 if test "x$enable_dependency_tracking" = xyes; then
4537 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4538 # This compiler won't grok '-c -o', but also, the minuso test has
4539 # not run yet. These depmodes are late enough in the game, and
4540 # so weak that their functioning should not be impacted.
4541 am__obj=conftest.${OBJEXT-o}
4546 if depmode=$depmode \
4547 source=sub/conftest.c object=$am__obj \
4548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4550 >/dev/null 2>conftest.err &&
4551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555 # icc doesn't choke on unknown options, it will just issue warnings
4556 # or remarks (even with -Werror). So we grep stderr for any message
4557 # that says an option was ignored or not supported.
4558 # When given -MP, icc 7.0 and 7.1 complain thusly:
4559 # icc: Command line warning: ignoring option '-M'; no argument required
4560 # The diagnosis changed in icc 8.0:
4561 # icc: Command line remark: option '-MP' not supported
4562 if (grep 'ignoring option' conftest.err ||
4563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564 am_cv_CC_dependencies_compiler_type=$depmode
4573 am_cv_CC_dependencies_compiler_type=none
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4582 test "x$enable_dependency_tracking" != xno \
4583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4585 am__fastdepCC_FALSE='#'
4587 am__fastdepCC_TRUE='#'
4588 am__fastdepCC_FALSE=
4593 ac_cpp='$CXXCPP $CPPFLAGS'
4594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4597 if test -z "$CXX"; then
4598 if test -n "$CCC"; then
4601 if test -n "$ac_tool_prefix"; then
4602 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_CXX+:} false; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -n "$CXX"; then
4612 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 if test -n "$CXX"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4634 $as_echo "$CXX" >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4641 test -n "$CXX" && break
4644 if test -z "$CXX"; then
4646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 if test -n "$ac_ct_CXX"; then
4656 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_ac_ct_CXX="$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4676 if test -n "$ac_ct_CXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4678 $as_echo "$ac_ct_CXX" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$ac_ct_CXX" && break
4688 if test "x$ac_ct_CXX" = x; then
4691 case $cross_compiling:$ac_tool_warned in
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4703 # Provide some information about the compiler.
4704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4707 for ac_option in --version -v -V -qversion; do
4708 { { ac_try="$ac_compiler $ac_option >&5"
4710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4711 *) ac_try_echo
=$ac_try;;
4713 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4714 $as_echo "$ac_try_echo"; } >&5
4715 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4717 if test -s conftest.err
; then
4719 ... rest of stderr output deleted ...
4720 10q' conftest.err
>conftest.er1
4721 cat conftest.er1
>&5
4723 rm -f conftest.er1 conftest.err
4724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4729 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4730 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4731 $as_echo_n "(cached) " >&6
4733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4747 if ac_fn_cxx_try_compile
"$LINENO"; then :
4752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4753 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4757 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4758 if test $ac_compiler_gnu = yes; then
4763 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4764 ac_save_CXXFLAGS
=$CXXFLAGS
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4766 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4767 if ${ac_cv_prog_cxx_g+:} false
; then :
4768 $as_echo_n "(cached) " >&6
4770 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4771 ac_cxx_werror_flag
=yes
4774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4785 if ac_fn_cxx_try_compile
"$LINENO"; then :
4786 ac_cv_prog_cxx_g
=yes
4789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4800 if ac_fn_cxx_try_compile
"$LINENO"; then :
4803 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4816 if ac_fn_cxx_try_compile
"$LINENO"; then :
4817 ac_cv_prog_cxx_g
=yes
4819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4824 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4827 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4828 if test "$ac_test_CXXFLAGS" = set; then
4829 CXXFLAGS
=$ac_save_CXXFLAGS
4830 elif test $ac_cv_prog_cxx_g = yes; then
4831 if test "$GXX" = yes; then
4837 if test "$GXX" = yes; then
4844 ac_cpp
='$CPP $CPPFLAGS'
4845 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4849 depcc
="$CXX" am_compiler_list
=
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4852 $as_echo_n "checking dependency style of $depcc... " >&6; }
4853 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4854 $as_echo_n "(cached) " >&6
4856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4857 # We make a subdir and do the tests there. Otherwise we can end up
4858 # making bogus files that we don't know about and never remove. For
4859 # instance it was reported that on HP-UX the gcc test will end up
4860 # making a dummy file named 'D' -- because '-MD' means "put the output
4864 # Copy depcomp to subdir because otherwise we won't find it if we're
4865 # using a relative directory.
4866 cp "$am_depcomp" conftest.dir
4868 # We will build objects and dependencies in a subdirectory because
4869 # it helps to detect inapplicable dependency modes. For instance
4870 # both Tru64's cc and ICC support -MD to output dependencies as a
4871 # side effect of compilation, but ICC will put the dependencies in
4872 # the current directory while Tru64 will put them in the object
4876 am_cv_CXX_dependencies_compiler_type
=none
4877 if test "$am_compiler_list" = ""; then
4878 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4881 case " $depcc " in #(
4882 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4885 for depmode
in $am_compiler_list; do
4886 # Setup a source with many dependencies, because some compilers
4887 # like to wrap large dependency lists on column 80 (with \), and
4888 # we should not choose a depcomp mode which is confused by this.
4890 # We need to recreate these files for each test, as the compiler may
4891 # overwrite some of them when testing with obscure command lines.
4892 # This happens at least with the AIX C compiler.
4894 for i
in 1 2 3 4 5 6; do
4895 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4896 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4897 # Solaris 10 /bin/sh.
4898 echo '/* dummy */' > sub
/conftst
$i.h
4900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4902 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4903 # mode. It turns out that the SunPro C++ compiler does not properly
4904 # handle '-M -o', and we need to detect this. Also, some Intel
4905 # versions had trouble with output in subdirs.
4906 am__obj
=sub
/conftest.
${OBJEXT-o}
4907 am__minus_obj
="-o $am__obj"
4910 # This depmode causes a compiler race in universal mode.
4911 test "$am__universal" = false ||
continue
4914 # After this tag, mechanisms are not by side-effect, so they'll
4915 # only be used when explicitly requested.
4916 if test "x$enable_dependency_tracking" = xyes
; then
4922 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4923 # This compiler won't grok '-c -o', but also, the minuso test has
4924 # not run yet. These depmodes are late enough in the game, and
4925 # so weak that their functioning should not be impacted.
4926 am__obj
=conftest.
${OBJEXT-o}
4931 if depmode
=$depmode \
4932 source=sub
/conftest.c object
=$am__obj \
4933 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4934 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4935 >/dev
/null
2>conftest.err
&&
4936 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4937 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4938 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4939 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4940 # icc doesn't choke on unknown options, it will just issue warnings
4941 # or remarks (even with -Werror). So we grep stderr for any message
4942 # that says an option was ignored or not supported.
4943 # When given -MP, icc 7.0 and 7.1 complain thusly:
4944 # icc: Command line warning: ignoring option '-M'; no argument required
4945 # The diagnosis changed in icc 8.0:
4946 # icc: Command line remark: option '-MP' not supported
4947 if (grep 'ignoring option' conftest.err ||
4948 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4949 am_cv_CXX_dependencies_compiler_type
=$depmode
4958 am_cv_CXX_dependencies_compiler_type
=none
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4963 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4964 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4967 test "x$enable_dependency_tracking" != xno \
4968 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4969 am__fastdepCXX_TRUE
=
4970 am__fastdepCXX_FALSE
='#'
4972 am__fastdepCXX_TRUE
='#'
4973 am__fastdepCXX_FALSE
=
4977 if test -n "$ac_tool_prefix"; then
4978 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4979 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_prog_RANLIB+:} false
; then :
4983 $as_echo_n "(cached) " >&6
4985 if test -n "$RANLIB"; then
4986 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir
=.
4993 for ac_exec_ext
in '' $ac_executable_extensions; do
4994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 RANLIB
=$ac_cv_prog_RANLIB
5006 if test -n "$RANLIB"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5008 $as_echo "$RANLIB" >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5016 if test -z "$ac_cv_prog_RANLIB"; then
5017 ac_ct_RANLIB
=$RANLIB
5018 # Extract the first word of "ranlib", so it can be a program name with args.
5019 set dummy ranlib
; ac_word
=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5023 $as_echo_n "(cached) " >&6
5025 if test -n "$ac_ct_RANLIB"; then
5026 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir
=.
5033 for ac_exec_ext
in '' $ac_executable_extensions; do
5034 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5046 if test -n "$ac_ct_RANLIB"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5048 $as_echo "$ac_ct_RANLIB" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5054 if test "x$ac_ct_RANLIB" = x
; then
5057 case $cross_compiling:$ac_tool_warned in
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061 ac_tool_warned
=yes ;;
5063 RANLIB
=$ac_ct_RANLIB
5066 RANLIB
="$ac_cv_prog_RANLIB"
5072 ac_cpp
='$CPP $CPPFLAGS'
5073 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5077 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5078 # On Suns, sometimes $CPP names a directory.
5079 if test -n "$CPP" && test -d "$CPP"; then
5082 if test -z "$CPP"; then
5083 if ${ac_cv_prog_CPP+:} false
; then :
5084 $as_echo_n "(cached) " >&6
5086 # Double quotes because CPP needs to be expanded
5087 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5090 for ac_c_preproc_warn_flag
in '' yes
5092 # Use a header file that comes with gcc, so configuring glibc
5093 # with a fresh cross-compiler works.
5094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5095 # <limits.h> exists even on freestanding compilers.
5096 # On the NeXT, cc -E runs the code through the compiler's parser,
5097 # not just through cpp. "Syntax error" is here to catch this case.
5098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5101 # include <limits.h>
5103 # include <assert.h>
5107 if ac_fn_c_try_cpp
"$LINENO"; then :
5110 # Broken: fails on valid input.
5113 rm -f conftest.err conftest.i conftest.
$ac_ext
5115 # OK, works on sane cases. Now check whether nonexistent headers
5116 # can be detected and how.
5117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #include <ac_nonexistent.h>
5121 if ac_fn_c_try_cpp
"$LINENO"; then :
5122 # Broken: success on invalid input.
5125 # Passes both tests.
5129 rm -f conftest.err conftest.i conftest.
$ac_ext
5132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133 rm -f conftest.i conftest.err conftest.
$ac_ext
5134 if $ac_preproc_ok; then :
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5147 $as_echo "$CPP" >&6; }
5149 for ac_c_preproc_warn_flag
in '' yes
5151 # Use a header file that comes with gcc, so configuring glibc
5152 # with a fresh cross-compiler works.
5153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5154 # <limits.h> exists even on freestanding compilers.
5155 # On the NeXT, cc -E runs the code through the compiler's parser,
5156 # not just through cpp. "Syntax error" is here to catch this case.
5157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5160 # include <limits.h>
5162 # include <assert.h>
5166 if ac_fn_c_try_cpp
"$LINENO"; then :
5169 # Broken: fails on valid input.
5172 rm -f conftest.err conftest.i conftest.
$ac_ext
5174 # OK, works on sane cases. Now check whether nonexistent headers
5175 # can be detected and how.
5176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <ac_nonexistent.h>
5180 if ac_fn_c_try_cpp
"$LINENO"; then :
5181 # Broken: success on invalid input.
5184 # Passes both tests.
5188 rm -f conftest.err conftest.i conftest.
$ac_ext
5191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5192 rm -f conftest.i conftest.err conftest.
$ac_ext
5193 if $ac_preproc_ok; then :
5196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5198 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5199 See \`config.log' for more details" "$LINENO" 5; }
5203 ac_cpp
='$CPP $CPPFLAGS'
5204 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5210 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5211 if ${ac_cv_path_GREP+:} false
; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -z "$GREP"; then
5215 ac_path_GREP_found
=false
5216 # Loop through the user's path and test for each of PROGNAME-LIST
5217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5221 test -z "$as_dir" && as_dir
=.
5222 for ac_prog
in grep ggrep
; do
5223 for ac_exec_ext
in '' $ac_executable_extensions; do
5224 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5225 as_fn_executable_p
"$ac_path_GREP" ||
continue
5226 # Check for GNU ac_path_GREP and select it if it is found.
5227 # Check for GNU $ac_path_GREP
5228 case `"$ac_path_GREP" --version 2>&1` in
5230 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5233 $as_echo_n 0123456789 >"conftest.in"
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 $as_echo 'GREP' >> "conftest.nl"
5240 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5241 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5242 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5243 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_GREP
="$ac_path_GREP"
5246 ac_path_GREP_max
=$ac_count
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5251 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5254 $ac_path_GREP_found && break 3
5259 if test -z "$ac_cv_path_GREP"; then
5260 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5263 ac_cv_path_GREP
=$GREP
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5268 $as_echo "$ac_cv_path_GREP" >&6; }
5269 GREP
="$ac_cv_path_GREP"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5273 $as_echo_n "checking for egrep... " >&6; }
5274 if ${ac_cv_path_EGREP+:} false
; then :
5275 $as_echo_n "(cached) " >&6
5277 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5278 then ac_cv_path_EGREP
="$GREP -E"
5280 if test -z "$EGREP"; then
5281 ac_path_EGREP_found
=false
5282 # Loop through the user's path and test for each of PROGNAME-LIST
5283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5284 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5287 test -z "$as_dir" && as_dir
=.
5288 for ac_prog
in egrep; do
5289 for ac_exec_ext
in '' $ac_executable_extensions; do
5290 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5291 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5292 # Check for GNU ac_path_EGREP and select it if it is found.
5293 # Check for GNU $ac_path_EGREP
5294 case `"$ac_path_EGREP" --version 2>&1` in
5296 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5299 $as_echo_n 0123456789 >"conftest.in"
5302 cat "conftest.in" "conftest.in" >"conftest.tmp"
5303 mv "conftest.tmp" "conftest.in"
5304 cp "conftest.in" "conftest.nl"
5305 $as_echo 'EGREP' >> "conftest.nl"
5306 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5307 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5308 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5309 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5310 # Best one so far, save it but keep looking for a better one
5311 ac_cv_path_EGREP
="$ac_path_EGREP"
5312 ac_path_EGREP_max
=$ac_count
5314 # 10*(2^10) chars as input seems more than enough
5315 test $ac_count -gt 10 && break
5317 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5320 $ac_path_EGREP_found && break 3
5325 if test -z "$ac_cv_path_EGREP"; then
5326 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5329 ac_cv_path_EGREP
=$EGREP
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5335 $as_echo "$ac_cv_path_EGREP" >&6; }
5336 EGREP
="$ac_cv_path_EGREP"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5340 $as_echo_n "checking for ANSI C header files... " >&6; }
5341 if ${ac_cv_header_stdc+:} false
; then :
5342 $as_echo_n "(cached) " >&6
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5359 if ac_fn_c_try_compile
"$LINENO"; then :
5360 ac_cv_header_stdc
=yes
5362 ac_cv_header_stdc
=no
5364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5366 if test $ac_cv_header_stdc = yes; then
5367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374 $EGREP "memchr" >/dev
/null
2>&1; then :
5377 ac_cv_header_stdc
=no
5383 if test $ac_cv_header_stdc = yes; then
5384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5391 $EGREP "free" >/dev
/null
2>&1; then :
5394 ac_cv_header_stdc
=no
5400 if test $ac_cv_header_stdc = yes; then
5401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5402 if test "$cross_compiling" = yes; then :
5405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5409 #if ((' ' & 0x0FF) == 0x020)
5410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5413 # define ISLOWER(c) \
5414 (('a' <= (c) && (c) <= 'i') \
5415 || ('j' <= (c) && (c) <= 'r') \
5416 || ('s' <= (c) && (c) <= 'z'))
5417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5425 for (i = 0; i < 256; i++)
5426 if (XOR (islower (i), ISLOWER (i))
5427 || toupper (i) != TOUPPER (i))
5432 if ac_fn_c_try_run
"$LINENO"; then :
5435 ac_cv_header_stdc
=no
5437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5438 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5444 $as_echo "$ac_cv_header_stdc" >&6; }
5445 if test $ac_cv_header_stdc = yes; then
5447 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5451 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5452 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5453 inttypes.h stdint.h unistd.h
5455 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5458 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5459 cat >>confdefs.h
<<_ACEOF
5460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5469 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5470 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5477 if test "$MINIX" = yes; then
5479 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5482 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5485 $as_echo "#define _MINIX 1" >>confdefs.h
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5491 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5492 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5493 $as_echo_n "(cached) " >&6
5495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5498 # define __EXTENSIONS__ 1
5499 $ac_includes_default
5508 if ac_fn_c_try_compile
"$LINENO"; then :
5509 ac_cv_safe_to_define___extensions__
=yes
5511 ac_cv_safe_to_define___extensions__
=no
5513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5516 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5517 test $ac_cv_safe_to_define___extensions__ = yes &&
5518 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5520 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5522 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5524 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5526 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5530 # The tests for host and target for $enable_largefile require
5535 # As the $enable_largefile decision depends on --enable-plugins we must set it
5536 # even in directories otherwise not depending on the $plugins option.
5540 for ac_header
in dlfcn.h
5542 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5544 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5545 cat >>confdefs.h
<<_ACEOF
5546 #define HAVE_DLFCN_H 1
5553 for ac_header
in windows.h
5555 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5557 if test "x$ac_cv_header_windows_h" = xyes
; then :
5558 cat >>confdefs.h
<<_ACEOF
5559 #define HAVE_WINDOWS_H 1
5567 # Check whether --enable-plugins was given.
5568 if test "${enable_plugins+set}" = set; then :
5569 enableval
=$enable_plugins; case "${enableval}" in
5572 if test "$maybe_plugins" != "yes" ; then
5573 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5577 plugins
=$maybe_plugins
5581 if test "$plugins" = "yes"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5583 $as_echo_n "checking for library containing dlsym... " >&6; }
5584 if ${ac_cv_search_dlsym+:} false
; then :
5585 $as_echo_n "(cached) " >&6
5587 ac_func_search_save_LIBS
=$LIBS
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5591 /* Override any GCC internal prototype to avoid an error.
5592 Use char because int might match the return type of a GCC
5593 builtin and then its argument prototype would still apply. */
5606 for ac_lib
in '' dl
; do
5607 if test -z "$ac_lib"; then
5608 ac_res
="none required"
5611 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5613 if ac_fn_c_try_link
"$LINENO"; then :
5614 ac_cv_search_dlsym
=$ac_res
5616 rm -f core conftest.err conftest.
$ac_objext \
5618 if ${ac_cv_search_dlsym+:} false
; then :
5622 if ${ac_cv_search_dlsym+:} false
; then :
5625 ac_cv_search_dlsym
=no
5628 LIBS
=$ac_func_search_save_LIBS
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5631 $as_echo "$ac_cv_search_dlsym" >&6; }
5632 ac_res
=$ac_cv_search_dlsym
5633 if test "$ac_res" != no
; then :
5634 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5642 sparc-
*-solaris*|i?
86-*-solaris*)
5643 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5644 # were mutually exclusive until Solaris 11.3. Without procfs support,
5645 # the bfd/ elf module cannot provide certain routines such as
5646 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5647 # explicitly requested large-file support through the
5648 # --enable-largefile switch, disable large-file support in favor of
5651 # Check if <sys/procfs.h> is incompatible with large-file support.
5652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #define _FILE_OFFSET_BITS 64
5655 #define _STRUCTURED_PROC 1
5656 #include <sys/procfs.h>
5665 if ac_fn_c_try_compile
"$LINENO"; then :
5666 acx_cv_procfs_lfs
=yes
5668 acx_cv_procfs_lfs
=no
5670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5672 # Forcefully disable large-file support only if necessary, gdb is in
5674 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5675 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
5676 : ${enable_largefile="no"}
5677 if test "$plugins" = yes; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5679 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5680 $as_echo "$as_me: WARNING:
5681 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5686 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5687 # benefit of g++ 9+ which predefines it on Solaris.
5688 if test "$enable_largefile" = no
; then
5689 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
5695 # Check whether --enable-largefile was given.
5696 if test "${enable_largefile+set}" = set; then :
5697 enableval
=$enable_largefile;
5700 if test "$enable_largefile" != no
; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5703 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5704 if ${ac_cv_sys_largefile_CC+:} false
; then :
5705 $as_echo_n "(cached) " >&6
5707 ac_cv_sys_largefile_CC
=no
5708 if test "$GCC" != yes; then
5711 # IRIX 6.2 and later do not support large files by default,
5712 # so use the C compiler's -n32 option if that helps.
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <sys/types.h>
5716 /* Check that off_t can represent 2**63 - 1 correctly.
5717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5718 since some C++ compilers masquerading as C compilers
5719 incorrectly reject 9223372036854775807. */
5720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5722 && LARGE_OFF_T % 2147483647 == 1)
5732 if ac_fn_c_try_compile
"$LINENO"; then :
5735 rm -f core conftest.err conftest.
$ac_objext
5737 if ac_fn_c_try_compile
"$LINENO"; then :
5738 ac_cv_sys_largefile_CC
=' -n32'; break
5740 rm -f core conftest.err conftest.
$ac_objext
5744 rm -f conftest.
$ac_ext
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5748 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5749 if test "$ac_cv_sys_largefile_CC" != no
; then
5750 CC
=$CC$ac_cv_sys_largefile_CC
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5754 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5755 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5756 $as_echo_n "(cached) " >&6
5759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #include <sys/types.h>
5762 /* Check that off_t can represent 2**63 - 1 correctly.
5763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764 since some C++ compilers masquerading as C compilers
5765 incorrectly reject 9223372036854775807. */
5766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768 && LARGE_OFF_T % 2147483647 == 1)
5778 if ac_fn_c_try_compile
"$LINENO"; then :
5779 ac_cv_sys_file_offset_bits
=no
; break
5781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 #define _FILE_OFFSET_BITS 64
5785 #include <sys/types.h>
5786 /* Check that off_t can represent 2**63 - 1 correctly.
5787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5788 since some C++ compilers masquerading as C compilers
5789 incorrectly reject 9223372036854775807. */
5790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5792 && LARGE_OFF_T % 2147483647 == 1)
5802 if ac_fn_c_try_compile
"$LINENO"; then :
5803 ac_cv_sys_file_offset_bits
=64; break
5805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5806 ac_cv_sys_file_offset_bits
=unknown
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5811 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5812 case $ac_cv_sys_file_offset_bits in #(
5815 cat >>confdefs.h
<<_ACEOF
5816 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5821 if test $ac_cv_sys_file_offset_bits = unknown
; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5823 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5824 if ${ac_cv_sys_large_files+:} false
; then :
5825 $as_echo_n "(cached) " >&6
5828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <sys/types.h>
5831 /* Check that off_t can represent 2**63 - 1 correctly.
5832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5833 since some C++ compilers masquerading as C compilers
5834 incorrectly reject 9223372036854775807. */
5835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5837 && LARGE_OFF_T % 2147483647 == 1)
5847 if ac_fn_c_try_compile
"$LINENO"; then :
5848 ac_cv_sys_large_files
=no
; break
5850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #define _LARGE_FILES 1
5854 #include <sys/types.h>
5855 /* Check that off_t can represent 2**63 - 1 correctly.
5856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5857 since some C++ compilers masquerading as C compilers
5858 incorrectly reject 9223372036854775807. */
5859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5861 && LARGE_OFF_T % 2147483647 == 1)
5871 if ac_fn_c_try_compile
"$LINENO"; then :
5872 ac_cv_sys_large_files
=1; break
5874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5875 ac_cv_sys_large_files
=unknown
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5880 $as_echo "$ac_cv_sys_large_files" >&6; }
5881 case $ac_cv_sys_large_files in #(
5884 cat >>confdefs.h
<<_ACEOF
5885 #define _LARGE_FILES $ac_cv_sys_large_files
5897 # We require a C++11 compiler. Check if one is available, and if
5898 # necessary, set CXX_DIALECT to some -std=xxx switch.
5900 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5902 ac_cpp
='$CXXCPP $CPPFLAGS'
5903 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5909 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5910 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5911 $as_echo_n "(cached) " >&6
5913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5917 // If the compiler admits that it is not ready for C++11, why torture it?
5918 // Hopefully, this will speed up the test.
5922 #error "This is not a C++ compiler"
5924 #elif __cplusplus < 201103L
5926 #error "This is not a C++11 compiler"
5933 namespace test_static_assert
5936 template <typename T>
5939 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5944 namespace test_final_override
5952 struct Derived : public Base
5954 virtual void f() override {}
5959 namespace test_double_right_angle_brackets
5962 template < typename T >
5965 typedef check<void> single_type;
5966 typedef check<check<void>> double_type;
5967 typedef check<check<check<void>>> triple_type;
5968 typedef check<check<check<check<void>>>> quadruple_type;
5972 namespace test_decltype
5985 namespace test_type_deduction
5988 template < typename T1, typename T2 >
5991 static const bool value = false;
5994 template < typename T >
5995 struct is_same<T, T>
5997 static const bool value = true;
6000 template < typename T1, typename T2 >
6002 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6008 test(const int c, volatile int v)
6010 static_assert(is_same<int, decltype(0)>::value == true, "");
6011 static_assert(is_same<int, decltype(c)>::value == false, "");
6012 static_assert(is_same<int, decltype(v)>::value == false, "");
6015 auto sumi = ac + av + 'x';
6016 auto sumf = ac + av + 1.0;
6017 static_assert(is_same<int, decltype(ac)>::value == true, "");
6018 static_assert(is_same<int, decltype(av)>::value == true, "");
6019 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6020 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6021 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6022 return (sumf > 0.0) ? sumi : add(c, v);
6027 namespace test_noexcept
6030 int f() { return 0; }
6031 int g() noexcept { return 0; }
6033 static_assert(noexcept(f()) == false, "");
6034 static_assert(noexcept(g()) == true, "");
6038 namespace test_constexpr
6041 template < typename CharT >
6042 unsigned long constexpr
6043 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6045 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6048 template < typename CharT >
6049 unsigned long constexpr
6050 strlen_c(const CharT *const s) noexcept
6052 return strlen_c_r(s, 0UL);
6055 static_assert(strlen_c("") == 0UL, "");
6056 static_assert(strlen_c("1") == 1UL, "");
6057 static_assert(strlen_c("example") == 7UL, "");
6058 static_assert(strlen_c("another\0example") == 7UL, "");
6062 namespace test_rvalue_references
6068 static constexpr int value = N;
6071 answer<1> f(int&) { return answer<1>(); }
6072 answer<2> f(const int&) { return answer<2>(); }
6073 answer<3> f(int&&) { return answer<3>(); }
6080 static_assert(decltype(f(i))::value == 1, "");
6081 static_assert(decltype(f(c))::value == 2, "");
6082 static_assert(decltype(f(0))::value == 3, "");
6087 namespace test_uniform_initialization
6092 static const int zero {};
6093 static const int one {1};
6096 static_assert(test::zero == 0, "");
6097 static_assert(test::one == 1, "");
6101 namespace test_lambdas
6107 auto lambda1 = [](){};
6108 auto lambda2 = lambda1;
6116 auto a = [](int i, int j){ return i + j; }(1, 2);
6117 auto b = []() -> int { return '0'; }();
6118 auto c = [=](){ return a + b; }();
6119 auto d = [&](){ return c; }();
6120 auto e = [a, &b](int x) mutable {
6121 const auto identity = [](int y){ return y; };
6122 for (auto i = 0; i < a; ++i)
6124 return x + identity(a + b);
6126 return a + b + c + d + e;
6132 const auto nullary = [](){ return 0; };
6133 const auto unary = [](int x){ return x; };
6134 using nullary_t = decltype(nullary);
6135 using unary_t = decltype(unary);
6136 const auto higher1st = [](nullary_t f){ return f(); };
6137 const auto higher2nd = [unary](nullary_t f1){
6138 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6140 return higher1st(nullary) + higher2nd(nullary)(unary);
6145 namespace test_variadic_templates
6151 template <int N0, int... N1toN>
6152 struct sum<N0, N1toN...>
6154 static constexpr auto value = N0 + sum<N1toN...>::value;
6160 static constexpr auto value = 0;
6163 static_assert(sum<>::value == 0, "");
6164 static_assert(sum<1>::value == 1, "");
6165 static_assert(sum<23>::value == 23, "");
6166 static_assert(sum<1, 2>::value == 3, "");
6167 static_assert(sum<5, 5, 11>::value == 21, "");
6168 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6172 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6173 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6175 namespace test_template_alias_sfinae
6180 template<typename T>
6181 using member = typename T::member_type;
6183 template<typename T>
6186 template<typename T>
6187 void func(member<T>*) {}
6191 void test() { func<foo>(0); }
6195 } // namespace cxx11
6197 #endif // __cplusplus >= 201103L
6202 if ac_fn_cxx_try_compile
"$LINENO"; then :
6203 ax_cv_cxx_compile_cxx11
=yes
6205 ax_cv_cxx_compile_cxx11
=no
6207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6210 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6211 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6215 if test x
$ac_success = xno
; then
6216 for alternative
in ${ax_cxx_compile_alternatives}; do
6217 switch
="-std=gnu++${alternative}"
6218 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6220 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6221 if eval \
${$cachevar+:} false
; then :
6222 $as_echo_n "(cached) " >&6
6226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6230 // If the compiler admits that it is not ready for C++11, why torture it?
6231 // Hopefully, this will speed up the test.
6235 #error "This is not a C++ compiler"
6237 #elif __cplusplus < 201103L
6239 #error "This is not a C++11 compiler"
6246 namespace test_static_assert
6249 template <typename T>
6252 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6257 namespace test_final_override
6265 struct Derived : public Base
6267 virtual void f() override {}
6272 namespace test_double_right_angle_brackets
6275 template < typename T >
6278 typedef check<void> single_type;
6279 typedef check<check<void>> double_type;
6280 typedef check<check<check<void>>> triple_type;
6281 typedef check<check<check<check<void>>>> quadruple_type;
6285 namespace test_decltype
6298 namespace test_type_deduction
6301 template < typename T1, typename T2 >
6304 static const bool value = false;
6307 template < typename T >
6308 struct is_same<T, T>
6310 static const bool value = true;
6313 template < typename T1, typename T2 >
6315 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6321 test(const int c, volatile int v)
6323 static_assert(is_same<int, decltype(0)>::value == true, "");
6324 static_assert(is_same<int, decltype(c)>::value == false, "");
6325 static_assert(is_same<int, decltype(v)>::value == false, "");
6328 auto sumi = ac + av + 'x';
6329 auto sumf = ac + av + 1.0;
6330 static_assert(is_same<int, decltype(ac)>::value == true, "");
6331 static_assert(is_same<int, decltype(av)>::value == true, "");
6332 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6333 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6334 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6335 return (sumf > 0.0) ? sumi : add(c, v);
6340 namespace test_noexcept
6343 int f() { return 0; }
6344 int g() noexcept { return 0; }
6346 static_assert(noexcept(f()) == false, "");
6347 static_assert(noexcept(g()) == true, "");
6351 namespace test_constexpr
6354 template < typename CharT >
6355 unsigned long constexpr
6356 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6358 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6361 template < typename CharT >
6362 unsigned long constexpr
6363 strlen_c(const CharT *const s) noexcept
6365 return strlen_c_r(s, 0UL);
6368 static_assert(strlen_c("") == 0UL, "");
6369 static_assert(strlen_c("1") == 1UL, "");
6370 static_assert(strlen_c("example") == 7UL, "");
6371 static_assert(strlen_c("another\0example") == 7UL, "");
6375 namespace test_rvalue_references
6381 static constexpr int value = N;
6384 answer<1> f(int&) { return answer<1>(); }
6385 answer<2> f(const int&) { return answer<2>(); }
6386 answer<3> f(int&&) { return answer<3>(); }
6393 static_assert(decltype(f(i))::value == 1, "");
6394 static_assert(decltype(f(c))::value == 2, "");
6395 static_assert(decltype(f(0))::value == 3, "");
6400 namespace test_uniform_initialization
6405 static const int zero {};
6406 static const int one {1};
6409 static_assert(test::zero == 0, "");
6410 static_assert(test::one == 1, "");
6414 namespace test_lambdas
6420 auto lambda1 = [](){};
6421 auto lambda2 = lambda1;
6429 auto a = [](int i, int j){ return i + j; }(1, 2);
6430 auto b = []() -> int { return '0'; }();
6431 auto c = [=](){ return a + b; }();
6432 auto d = [&](){ return c; }();
6433 auto e = [a, &b](int x) mutable {
6434 const auto identity = [](int y){ return y; };
6435 for (auto i = 0; i < a; ++i)
6437 return x + identity(a + b);
6439 return a + b + c + d + e;
6445 const auto nullary = [](){ return 0; };
6446 const auto unary = [](int x){ return x; };
6447 using nullary_t = decltype(nullary);
6448 using unary_t = decltype(unary);
6449 const auto higher1st = [](nullary_t f){ return f(); };
6450 const auto higher2nd = [unary](nullary_t f1){
6451 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6453 return higher1st(nullary) + higher2nd(nullary)(unary);
6458 namespace test_variadic_templates
6464 template <int N0, int... N1toN>
6465 struct sum<N0, N1toN...>
6467 static constexpr auto value = N0 + sum<N1toN...>::value;
6473 static constexpr auto value = 0;
6476 static_assert(sum<>::value == 0, "");
6477 static_assert(sum<1>::value == 1, "");
6478 static_assert(sum<23>::value == 23, "");
6479 static_assert(sum<1, 2>::value == 3, "");
6480 static_assert(sum<5, 5, 11>::value == 21, "");
6481 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6485 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6486 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6488 namespace test_template_alias_sfinae
6493 template<typename T>
6494 using member = typename T::member_type;
6496 template<typename T>
6499 template<typename T>
6500 void func(member<T>*) {}
6504 void test() { func<foo>(0); }
6508 } // namespace cxx11
6510 #endif // __cplusplus >= 201103L
6515 if ac_fn_cxx_try_compile
"$LINENO"; then :
6520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6523 eval ac_res
=\$
$cachevar
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6525 $as_echo "$ac_res" >&6; }
6526 if eval test x\$
$cachevar = xyes
; then
6527 CXX_DIALECT
="$switch"
6529 if test -n "$CXXCPP" ; then
6530 CXXCPP
="$CXXCPP $switch"
6538 if test x
$ac_success = xno
; then
6539 for alternative
in ${ax_cxx_compile_alternatives}; do
6540 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6541 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6543 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6544 if eval \${$cachevar+:} false; then :
6545 $as_echo_n "(cached
) " >&6
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6553 // If the compiler admits that it is not ready for C++11, why torture it?
6554 // Hopefully, this will speed up the test.
6558 #error "This is not a C
++ compiler
"
6560 #elif __cplusplus < 201103L
6562 #error "This is not a C
++11 compiler
"
6569 namespace test_static_assert
6572 template <typename T>
6575 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6580 namespace test_final_override
6588 struct Derived : public Base
6590 virtual void f() override {}
6595 namespace test_double_right_angle_brackets
6598 template < typename T >
6601 typedef check<void> single_type;
6602 typedef check<check<void>> double_type;
6603 typedef check<check<check<void>>> triple_type;
6604 typedef check<check<check<check<void>>>> quadruple_type;
6608 namespace test_decltype
6621 namespace test_type_deduction
6624 template < typename T1, typename T2 >
6627 static const bool value = false;
6630 template < typename T >
6631 struct is_same<T, T>
6633 static const bool value = true;
6636 template < typename T1, typename T2 >
6638 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6644 test(const int c, volatile int v)
6646 static_assert(is_same<int, decltype(0)>::value == true, "");
6647 static_assert(is_same<int, decltype(c)>::value == false, "");
6648 static_assert(is_same<int, decltype(v)>::value == false, "");
6651 auto sumi = ac + av + 'x';
6652 auto sumf = ac + av + 1.0;
6653 static_assert(is_same<int, decltype(ac)>::value == true, "");
6654 static_assert(is_same<int, decltype(av)>::value == true, "");
6655 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6656 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6657 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6658 return (sumf > 0.0) ? sumi : add(c, v);
6663 namespace test_noexcept
6666 int f() { return 0; }
6667 int g() noexcept { return 0; }
6669 static_assert(noexcept(f()) == false, "");
6670 static_assert(noexcept(g()) == true, "");
6674 namespace test_constexpr
6677 template < typename CharT >
6678 unsigned long constexpr
6679 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6681 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6684 template < typename CharT >
6685 unsigned long constexpr
6686 strlen_c(const CharT *const s) noexcept
6688 return strlen_c_r(s, 0UL);
6691 static_assert(strlen_c("") == 0UL, "");
6692 static_assert(strlen_c("1") == 1UL, "");
6693 static_assert(strlen_c("example
") == 7UL, "");
6694 static_assert(strlen_c("another\
0example
") == 7UL, "");
6698 namespace test_rvalue_references
6704 static constexpr int value = N;
6707 answer<1> f(int&) { return answer<1>(); }
6708 answer<2> f(const int&) { return answer<2>(); }
6709 answer<3> f(int&&) { return answer<3>(); }
6716 static_assert(decltype(f(i))::value == 1, "");
6717 static_assert(decltype(f(c))::value == 2, "");
6718 static_assert(decltype(f(0))::value == 3, "");
6723 namespace test_uniform_initialization
6728 static const int zero {};
6729 static const int one {1};
6732 static_assert(test::zero == 0, "");
6733 static_assert(test::one == 1, "");
6737 namespace test_lambdas
6743 auto lambda1 = [](){};
6744 auto lambda2 = lambda1;
6752 auto a = [](int i, int j){ return i + j; }(1, 2);
6753 auto b = []() -> int { return '0'; }();
6754 auto c = [=](){ return a + b; }();
6755 auto d = [&](){ return c; }();
6756 auto e = [a, &b](int x) mutable {
6757 const auto identity = [](int y){ return y; };
6758 for (auto i = 0; i < a; ++i)
6760 return x + identity(a + b);
6762 return a + b + c + d + e;
6768 const auto nullary = [](){ return 0; };
6769 const auto unary = [](int x){ return x; };
6770 using nullary_t = decltype(nullary);
6771 using unary_t = decltype(unary);
6772 const auto higher1st = [](nullary_t f){ return f(); };
6773 const auto higher2nd = [unary](nullary_t f1){
6774 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6776 return higher1st(nullary) + higher2nd(nullary)(unary);
6781 namespace test_variadic_templates
6787 template <int N0, int... N1toN>
6788 struct sum<N0, N1toN...>
6790 static constexpr auto value = N0 + sum<N1toN...>::value;
6796 static constexpr auto value = 0;
6799 static_assert(sum<>::value == 0, "");
6800 static_assert(sum<1>::value == 1, "");
6801 static_assert(sum<23>::value == 23, "");
6802 static_assert(sum<1, 2>::value == 3, "");
6803 static_assert(sum<5, 5, 11>::value == 21, "");
6804 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6808 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6809 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6811 namespace test_template_alias_sfinae
6816 template<typename T>
6817 using member = typename T::member_type;
6819 template<typename T>
6822 template<typename T>
6823 void func(member<T>*) {}
6827 void test() { func<foo>(0); }
6831 } // namespace cxx11
6833 #endif // __cplusplus >= 201103L
6838 if ac_fn_cxx_try_compile "$LINENO"; then :
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 eval ac_res=\$$cachevar
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6848 $as_echo "$ac_res" >&6; }
6849 if eval test x\$$cachevar = xyes; then
6850 CXX_DIALECT="$switch"
6852 if test -n "$CXXCPP" ; then
6853 CXXCPP="$CXXCPP $switch"
6859 if test x$ac_success = xyes; then
6865 ac_cpp='$CPP $CPPFLAGS'
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6871 if test x$ac_success = xno; then
6872 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6875 if test x$ac_success = xno; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6878 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6882 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6889 # If we haven't got the data from the intl directory,
6890 # assume NLS is disabled.
6899 if test -f ..
/intl
/config.intl
; then
6900 . ..
/intl
/config.intl
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6903 $as_echo_n "checking whether NLS is requested... " >&6; }
6904 if test x
"$USE_NLS" != xyes
; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6909 $as_echo "yes" >&6; }
6911 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6915 $as_echo_n "checking for catalogs to be installed... " >&6; }
6916 # Look for .po and .gmo files in the source directory.
6919 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6920 # If there aren't any .gmo files the shell will give us the
6921 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6923 case "$cat" in *\
**)
6926 # The quadruple backslash is collapsed to a double backslash
6927 # by the backticks, then collapsed again by the double quotes,
6928 # leaving us with one backslash in the sed expression (right
6929 # before the dot that mustn't act as a wildcard).
6930 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6931 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6932 # The user is allowed to set LINGUAS to a list of languages to
6933 # install catalogs for. If it's empty that means "all of them."
6934 if test "x$LINGUAS" = x
; then
6935 CATALOGS
="$CATALOGS $cat"
6936 XLINGUAS
="$XLINGUAS $lang"
6938 case "$LINGUAS" in *$lang*)
6939 CATALOGS
="$CATALOGS $cat"
6940 XLINGUAS
="$XLINGUAS $lang"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6947 $as_echo "$LINGUAS" >&6; }
6961 # Check for presence and size of long long.
6962 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6963 if test "x$ac_cv_type_long_long" = xyes
; then :
6965 cat >>confdefs.h
<<_ACEOF
6966 #define HAVE_LONG_LONG 1
6969 # The cast to long int works around a bug in the HP C Compiler
6970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6972 # This bug is HP SR number 8606223364.
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6974 $as_echo_n "checking size of long long... " >&6; }
6975 if ${ac_cv_sizeof_long_long+:} false
; then :
6976 $as_echo_n "(cached) " >&6
6978 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6981 if test "$ac_cv_type_long_long" = yes; then
6982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6984 as_fn_error
77 "cannot compute sizeof (long long)
6985 See \`config.log' for more details" "$LINENO" 5; }
6987 ac_cv_sizeof_long_long
=0
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6993 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6997 cat >>confdefs.h
<<_ACEOF
6998 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7005 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7006 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7007 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
7013 cat >>confdefs.h
<<_ACEOF
7014 #define HAVE_DECL_BASENAME $ac_have_decl
7016 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7017 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
7023 cat >>confdefs.h
<<_ACEOF
7024 #define HAVE_DECL_FFS $ac_have_decl
7026 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7027 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
7033 cat >>confdefs.h
<<_ACEOF
7034 #define HAVE_DECL_ASPRINTF $ac_have_decl
7036 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7037 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
7043 cat >>confdefs.h
<<_ACEOF
7044 #define HAVE_DECL_VASPRINTF $ac_have_decl
7046 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7047 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
7053 cat >>confdefs.h
<<_ACEOF
7054 #define HAVE_DECL_SNPRINTF $ac_have_decl
7056 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7057 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
7063 cat >>confdefs.h
<<_ACEOF
7064 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7067 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7068 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
7074 cat >>confdefs.h
<<_ACEOF
7075 #define HAVE_DECL_STRTOL $ac_have_decl
7077 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7078 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
7084 cat >>confdefs.h
<<_ACEOF
7085 #define HAVE_DECL_STRTOUL $ac_have_decl
7087 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7088 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
7094 cat >>confdefs.h
<<_ACEOF
7095 #define HAVE_DECL_STRTOLL $ac_have_decl
7097 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7098 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
7104 cat >>confdefs.h
<<_ACEOF
7105 #define HAVE_DECL_STRTOULL $ac_have_decl
7108 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7109 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
7115 cat >>confdefs.h
<<_ACEOF
7116 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7120 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7121 if test "x$ac_cv_type_size_t" = xyes
; then :
7125 cat >>confdefs.h
<<_ACEOF
7126 #define size_t unsigned int
7134 for ac_header
in $ac_header_list
7136 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7139 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7140 cat >>confdefs.h
<<_ACEOF
7141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7154 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7155 if test "x$ac_cv_type_pid_t" = xyes
; then :
7159 cat >>confdefs.h
<<_ACEOF
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7166 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7167 if ${ac_cv_path_SED+:} false
; then :
7168 $as_echo_n "(cached) " >&6
7170 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
7171 for ac_i
in 1 2 3 4 5 6 7; do
7172 ac_script
="$ac_script$as_nl$ac_script"
7174 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
7175 { ac_script
=; unset ac_script
;}
7176 if test -z "$SED"; then
7177 ac_path_SED_found
=false
7178 # Loop through the user's path and test for each of PROGNAME-LIST
7179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir
=.
7184 for ac_prog
in sed gsed
; do
7185 for ac_exec_ext
in '' $ac_executable_extensions; do
7186 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
7187 as_fn_executable_p
"$ac_path_SED" ||
continue
7188 # Check for GNU ac_path_SED and select it if it is found.
7189 # Check for GNU $ac_path_SED
7190 case `"$ac_path_SED" --version 2>&1` in
7192 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
7195 $as_echo_n 0123456789 >"conftest.in"
7198 cat "conftest.in" "conftest.in" >"conftest.tmp"
7199 mv "conftest.tmp" "conftest.in"
7200 cp "conftest.in" "conftest.nl"
7201 $as_echo '' >> "conftest.nl"
7202 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7203 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7204 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7205 if test $ac_count -gt ${ac_path_SED_max-0}; then
7206 # Best one so far, save it but keep looking for a better one
7207 ac_cv_path_SED
="$ac_path_SED"
7208 ac_path_SED_max
=$ac_count
7210 # 10*(2^10) chars as input seems more than enough
7211 test $ac_count -gt 10 && break
7213 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7216 $ac_path_SED_found && break 3
7221 if test -z "$ac_cv_path_SED"; then
7222 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7230 $as_echo "$ac_cv_path_SED" >&6; }
7231 SED
="$ac_cv_path_SED"
7235 if test "X$prefix" = "XNONE"; then
7236 acl_final_prefix
="$ac_default_prefix"
7238 acl_final_prefix
="$prefix"
7240 if test "X$exec_prefix" = "XNONE"; then
7241 acl_final_exec_prefix
='${prefix}'
7243 acl_final_exec_prefix
="$exec_prefix"
7245 acl_save_prefix
="$prefix"
7246 prefix
="$acl_final_prefix"
7247 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7248 prefix
="$acl_save_prefix"
7251 # Check whether --with-gnu-ld was given.
7252 if test "${with_gnu_ld+set}" = set; then :
7253 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7258 # Prepare PATH_SEPARATOR.
7259 # The user is always right.
7260 if test "${PATH_SEPARATOR+set}" != set; then
7261 echo "#! /bin/sh" >conf$$.sh
7262 echo "exit 0" >>conf$$.sh
7264 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7272 if test "$GCC" = yes; then
7273 # Check if gcc -print-prog-name=ld gives a path.
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7275 $as_echo_n "checking for ld used by GCC... " >&6; }
7278 # gcc leaves a trailing carriage return which upsets mingw
7279 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7281 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7284 # Accept absolute paths.
7285 [\\/]* |
[A-Za-z
]:[\\/]*)
7286 re_direlt
='/[^/][^/]*/\.\./'
7287 # Canonicalize the path of ld
7288 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7289 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7290 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7292 test -z "$LD" && LD
="$ac_prog"
7295 # If it fails, then pretend we aren't using GCC.
7299 # If it is relative, then search for the first ld in PATH.
7303 elif test "$with_gnu_ld" = yes; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7305 $as_echo_n "checking for GNU ld... " >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7308 $as_echo_n "checking for non-GNU ld... " >&6; }
7310 if ${acl_cv_path_LD+:} false
; then :
7311 $as_echo_n "(cached) " >&6
7313 if test -z "$LD"; then
7314 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7315 for ac_dir
in $PATH; do
7316 test -z "$ac_dir" && ac_dir
=.
7317 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7318 acl_cv_path_LD
="$ac_dir/$ac_prog"
7319 # Check to see if the program is GNU ld. I'd rather use --version,
7320 # but apparently some GNU ld's only accept -v.
7321 # Break only if it was the GNU/non-GNU ld that we prefer.
7322 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7323 test "$with_gnu_ld" != no
&& break
7325 test "$with_gnu_ld" != yes && break
7331 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7335 LD
="$acl_cv_path_LD"
7336 if test -n "$LD"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7338 $as_echo "$LD" >&6; }
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7343 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7346 if ${acl_cv_prog_gnu_ld+:} false
; then :
7347 $as_echo_n "(cached) " >&6
7349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7350 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7351 acl_cv_prog_gnu_ld
=yes
7353 acl_cv_prog_gnu_ld
=no
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7357 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7358 with_gnu_ld
=$acl_cv_prog_gnu_ld
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7363 $as_echo_n "checking for shared library run path origin... " >&6; }
7364 if ${acl_cv_rpath+:} false
; then :
7365 $as_echo_n "(cached) " >&6
7368 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7369 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7376 $as_echo "$acl_cv_rpath" >&6; }
7378 libext
="$acl_cv_libext"
7379 shlibext
="$acl_cv_shlibext"
7380 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7381 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7382 hardcode_direct
="$acl_cv_hardcode_direct"
7383 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7384 # Check whether --enable-rpath was given.
7385 if test "${enable_rpath+set}" = set; then :
7386 enableval
=$enable_rpath; :
7393 # Set the 'development' global.
7394 .
$srcdir/..
/bfd
/development.sh
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7397 $as_echo_n "checking for ANSI C header files... " >&6; }
7398 if ${ac_cv_header_stdc+:} false
; then :
7399 $as_echo_n "(cached) " >&6
7401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7416 if ac_fn_c_try_compile
"$LINENO"; then :
7417 ac_cv_header_stdc
=yes
7419 ac_cv_header_stdc
=no
7421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 if test $ac_cv_header_stdc = yes; then
7424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7431 $EGREP "memchr" >/dev
/null
2>&1; then :
7434 ac_cv_header_stdc
=no
7440 if test $ac_cv_header_stdc = yes; then
7441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7448 $EGREP "free" >/dev
/null
2>&1; then :
7451 ac_cv_header_stdc
=no
7457 if test $ac_cv_header_stdc = yes; then
7458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7459 if test "$cross_compiling" = yes; then :
7462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7466 #if ((' ' & 0x0FF) == 0x020)
7467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7470 # define ISLOWER(c) \
7471 (('a' <= (c) && (c) <= 'i') \
7472 || ('j' <= (c) && (c) <= 'r') \
7473 || ('s' <= (c) && (c) <= 'z'))
7474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7482 for (i = 0; i < 256; i++)
7483 if (XOR (islower (i), ISLOWER (i))
7484 || toupper (i) != TOUPPER (i))
7489 if ac_fn_c_try_run
"$LINENO"; then :
7492 ac_cv_header_stdc
=no
7494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7501 $as_echo "$ac_cv_header_stdc" >&6; }
7502 if test $ac_cv_header_stdc = yes; then
7504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7508 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7509 # for constant arguments. Useless!
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7511 $as_echo_n "checking for working alloca.h... " >&6; }
7512 if ${ac_cv_working_alloca_h+:} false
; then :
7513 $as_echo_n "(cached) " >&6
7515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7521 char *p = (char *) alloca (2 * sizeof (int));
7527 if ac_fn_c_try_link
"$LINENO"; then :
7528 ac_cv_working_alloca_h
=yes
7530 ac_cv_working_alloca_h
=no
7532 rm -f core conftest.err conftest.
$ac_objext \
7533 conftest
$ac_exeext conftest.
$ac_ext
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7536 $as_echo "$ac_cv_working_alloca_h" >&6; }
7537 if test $ac_cv_working_alloca_h = yes; then
7539 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7544 $as_echo_n "checking for alloca... " >&6; }
7545 if ${ac_cv_func_alloca_works+:} false
; then :
7546 $as_echo_n "(cached) " >&6
7548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7551 # define alloca __builtin_alloca
7554 # include <malloc.h>
7555 # define alloca _alloca
7557 # ifdef HAVE_ALLOCA_H
7558 # include <alloca.h>
7563 # ifndef alloca /* predefined by HP cc +Olibcalls */
7564 void *alloca (size_t);
7574 char *p = (char *) alloca (1);
7580 if ac_fn_c_try_link
"$LINENO"; then :
7581 ac_cv_func_alloca_works
=yes
7583 ac_cv_func_alloca_works
=no
7585 rm -f core conftest.err conftest.
$ac_objext \
7586 conftest
$ac_exeext conftest.
$ac_ext
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7589 $as_echo "$ac_cv_func_alloca_works" >&6; }
7591 if test $ac_cv_func_alloca_works = yes; then
7593 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7596 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7597 # that cause trouble. Some versions do not even contain alloca or
7598 # contain a buggy version. If you still want to use their alloca,
7599 # use ar to extract alloca.o from them instead of compiling alloca.c.
7601 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7603 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7607 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7608 if ${ac_cv_os_cray+:} false
; then :
7609 $as_echo_n "(cached) " >&6
7611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 #if defined CRAY && ! defined CRAY2
7620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621 $EGREP "webecray" >/dev
/null
2>&1; then :
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7630 $as_echo "$ac_cv_os_cray" >&6; }
7631 if test $ac_cv_os_cray = yes; then
7632 for ac_func
in _getb67 GETB67 getb67
; do
7633 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7634 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7635 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7637 cat >>confdefs.h
<<_ACEOF
7638 #define CRAY_STACKSEG_END $ac_func
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7648 $as_echo_n "checking stack direction for C alloca... " >&6; }
7649 if ${ac_cv_c_stack_direction+:} false
; then :
7650 $as_echo_n "(cached) " >&6
7652 if test "$cross_compiling" = yes; then :
7653 ac_cv_c_stack_direction
=0
7655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 $ac_includes_default
7659 find_stack_direction (int *addr, int depth)
7664 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7665 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7670 main (int argc, char **argv)
7672 return find_stack_direction (0, argc + !argv + 20) < 0;
7675 if ac_fn_c_try_run
"$LINENO"; then :
7676 ac_cv_c_stack_direction
=1
7678 ac_cv_c_stack_direction
=-1
7680 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7681 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7686 $as_echo "$ac_cv_c_stack_direction" >&6; }
7687 cat >>confdefs.h
<<_ACEOF
7688 #define STACK_DIRECTION $ac_cv_c_stack_direction
7699 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7701 WIN32APILIBS
="-lws2_32"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7707 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7708 if ${am_cv_langinfo_codeset+:} false
; then :
7709 $as_echo_n "(cached) " >&6
7711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <langinfo.h>
7717 char* cs = nl_langinfo(CODESET);
7722 if ac_fn_c_try_link
"$LINENO"; then :
7723 am_cv_langinfo_codeset
=yes
7725 am_cv_langinfo_codeset
=no
7727 rm -f core conftest.err conftest.
$ac_objext \
7728 conftest
$ac_exeext conftest.
$ac_ext
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7732 $as_echo "$am_cv_langinfo_codeset" >&6; }
7733 if test $am_cv_langinfo_codeset = yes; then
7735 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7740 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
7742 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7743 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7744 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7745 cat >>confdefs.h
<<_ACEOF
7746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7755 for ac_func
in getpagesize
7757 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7758 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7759 cat >>confdefs.h
<<_ACEOF
7760 #define HAVE_GETPAGESIZE 1
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7767 $as_echo_n "checking for working mmap... " >&6; }
7768 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7769 $as_echo_n "(cached) " >&6
7771 if test "$cross_compiling" = yes; then :
7772 ac_cv_func_mmap_fixed_mapped
=no
7774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 $ac_includes_default
7777 /* malloc might have been renamed as rpl_malloc. */
7780 /* Thanks to Mike Haertel and Jim Avera for this test.
7781 Here is a matrix of mmap possibilities:
7782 mmap private not fixed
7783 mmap private fixed at somewhere currently unmapped
7784 mmap private fixed at somewhere already mapped
7785 mmap shared not fixed
7786 mmap shared fixed at somewhere currently unmapped
7787 mmap shared fixed at somewhere already mapped
7788 For private mappings, we should verify that changes cannot be read()
7789 back from the file, nor mmap's back from the file at a different
7790 address. (There have been systems where private was not correctly
7791 implemented like the infamous i386 svr4.0, and systems where the
7792 VM page cache was not coherent with the file system buffer cache
7793 like early versions of FreeBSD and possibly contemporary NetBSD.)
7794 For shared mappings, we should conversely verify that changes get
7795 propagated back to all the places they're supposed to be.
7797 Grep wants private fixed already mapped.
7798 The main things grep needs to know about mmap are:
7799 * does it exist and is it safe to write into the mmap'd area
7800 * how to use it (BSD variants) */
7803 #include <sys/mman.h>
7805 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7809 /* This mess was copied from the GNU getpagesize.h. */
7810 #ifndef HAVE_GETPAGESIZE
7811 # ifdef _SC_PAGESIZE
7812 # define getpagesize() sysconf(_SC_PAGESIZE)
7813 # else /* no _SC_PAGESIZE */
7814 # ifdef HAVE_SYS_PARAM_H
7815 # include <sys/param.h>
7816 # ifdef EXEC_PAGESIZE
7817 # define getpagesize() EXEC_PAGESIZE
7818 # else /* no EXEC_PAGESIZE */
7820 # define getpagesize() NBPG * CLSIZE
7823 # endif /* no CLSIZE */
7824 # else /* no NBPG */
7826 # define getpagesize() NBPC
7827 # else /* no NBPC */
7829 # define getpagesize() PAGESIZE
7830 # endif /* PAGESIZE */
7831 # endif /* no NBPC */
7832 # endif /* no NBPG */
7833 # endif /* no EXEC_PAGESIZE */
7834 # else /* no HAVE_SYS_PARAM_H */
7835 # define getpagesize() 8192 /* punt totally */
7836 # endif /* no HAVE_SYS_PARAM_H */
7837 # endif /* no _SC_PAGESIZE */
7839 #endif /* no HAVE_GETPAGESIZE */
7844 char *data, *data2, *data3;
7849 pagesize = getpagesize ();
7851 /* First, make a file with some known garbage in it. */
7852 data = (char *) malloc (pagesize);
7855 for (i = 0; i < pagesize; ++i)
7856 *(data + i) = rand ();
7858 fd = creat ("conftest.mmap", 0600);
7861 if (write (fd, data, pagesize) != pagesize)
7865 /* Next, check that the tail of a page is zero-filled. File must have
7866 non-zero length, otherwise we risk SIGBUS for entire page. */
7867 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7871 if (write (fd2, cdata2, 1) != 1)
7873 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7874 if (data2 == MAP_FAILED)
7876 for (i = 0; i < pagesize; ++i)
7880 if (munmap (data2, pagesize))
7883 /* Next, try to mmap the file at a fixed address which already has
7884 something else allocated at it. If we can, also make sure that
7885 we see the same garbage. */
7886 fd = open ("conftest.mmap", O_RDWR);
7889 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7890 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7892 for (i = 0; i < pagesize; ++i)
7893 if (*(data + i) != *(data2 + i))
7896 /* Finally, make sure that changes to the mapped area do not
7897 percolate back to the file as seen by read(). (This is a bug on
7898 some variants of i386 svr4.0.) */
7899 for (i = 0; i < pagesize; ++i)
7900 *(data2 + i) = *(data2 + i) + 1;
7901 data3 = (char *) malloc (pagesize);
7904 if (read (fd, data3, pagesize) != pagesize)
7906 for (i = 0; i < pagesize; ++i)
7907 if (*(data + i) != *(data3 + i))
7913 if ac_fn_c_try_run
"$LINENO"; then :
7914 ac_cv_func_mmap_fixed_mapped
=yes
7916 ac_cv_func_mmap_fixed_mapped
=no
7918 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7919 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7924 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7925 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7927 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7930 rm -f conftest.mmap conftest.txt
7932 for ac_header
in vfork.h
7934 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7935 if test "x$ac_cv_header_vfork_h" = xyes
; then :
7936 cat >>confdefs.h
<<_ACEOF
7937 #define HAVE_VFORK_H 1
7944 for ac_func
in fork vfork
7946 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7947 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7948 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7949 cat >>confdefs.h
<<_ACEOF
7950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7956 if test "x$ac_cv_func_fork" = xyes
; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7958 $as_echo_n "checking for working fork... " >&6; }
7959 if ${ac_cv_func_fork_works+:} false
; then :
7960 $as_echo_n "(cached) " >&6
7962 if test "$cross_compiling" = yes; then :
7963 ac_cv_func_fork_works
=cross
7965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 $ac_includes_default
7972 /* By Ruediger Kuhlmann. */
7979 if ac_fn_c_try_run
"$LINENO"; then :
7980 ac_cv_func_fork_works
=yes
7982 ac_cv_func_fork_works
=no
7984 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7985 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7990 $as_echo "$ac_cv_func_fork_works" >&6; }
7993 ac_cv_func_fork_works
=$ac_cv_func_fork
7995 if test "x$ac_cv_func_fork_works" = xcross
; then
7997 *-*-amigaos* |
*-*-msdosdjgpp*)
7998 # Override, as these systems have only a dummy fork() stub
7999 ac_cv_func_fork_works
=no
8002 ac_cv_func_fork_works
=yes
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8006 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8008 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8009 if test "x$ac_cv_func_vfork" = xyes
; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8011 $as_echo_n "checking for working vfork... " >&6; }
8012 if ${ac_cv_func_vfork_works+:} false
; then :
8013 $as_echo_n "(cached) " >&6
8015 if test "$cross_compiling" = yes; then :
8016 ac_cv_func_vfork_works
=cross
8018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8020 /* Thanks to Paul Eggert for this test. */
8021 $ac_includes_default
8022 #include <sys/wait.h>
8026 /* On some sparc systems, changes by the child to local and incoming
8027 argument registers are propagated back to the parent. The compiler
8028 is told about this with #include <vfork.h>, but some compilers
8029 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8030 static variable whose address is put into a register that is
8031 clobbered by the vfork. */
8034 sparc_address_test (int arg)
8036 sparc_address_test (arg) int arg;
8057 pid_t parent = getpid ();
8060 sparc_address_test (0);
8065 /* Here is another test for sparc vfork register problems. This
8066 test uses lots of local variables, at least as many local
8067 variables as main has allocated so far including compiler
8068 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8069 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8070 reuse the register of parent for one of the local variables,
8071 since it will think that parent can't possibly be used any more
8072 in this routine. Assigning to the local variable will thus
8073 munge parent in the parent process. */
8075 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8076 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8077 /* Convince the compiler that p..p7 are live; otherwise, it might
8078 use the same hardware register for all 8 local variables. */
8079 if (p != p1 || p != p2 || p != p3 || p != p4
8080 || p != p5 || p != p6 || p != p7)
8083 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8084 from child file descriptors. If the child closes a descriptor
8085 before it execs or exits, this munges the parent's descriptor
8086 as well. Test for this by closing stdout in the child. */
8087 _exit(close(fileno(stdout)) != 0);
8092 while (wait(&status) != child)
8095 /* Was there some problem with vforking? */
8098 /* Did the child fail? (This shouldn't happen.) */
8101 /* Did the vfork/compiler bug occur? */
8102 || parent != getpid()
8104 /* Did the file descriptor bug occur? */
8105 || fstat(fileno(stdout), &st) != 0
8110 if ac_fn_c_try_run
"$LINENO"; then :
8111 ac_cv_func_vfork_works
=yes
8113 ac_cv_func_vfork_works
=no
8115 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8116 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8121 $as_echo "$ac_cv_func_vfork_works" >&6; }
8124 if test "x$ac_cv_func_fork_works" = xcross
; then
8125 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8127 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8130 if test "x$ac_cv_func_vfork_works" = xyes
; then
8132 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8136 $as_echo "#define vfork fork" >>confdefs.h
8139 if test "x$ac_cv_func_fork_works" = xyes
; then
8141 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8145 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
8146 ptrace64 sbrk setns sigaltstack sigprocmask \
8147 setpgid setpgrp getrusage getauxval sigtimedwait
8149 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8150 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8151 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8152 cat >>confdefs.h
<<_ACEOF
8153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8160 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
8161 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
8162 # only in linux/personality.h.
8163 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8165 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8171 cat >>confdefs.h
<<_ACEOF
8172 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8176 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8177 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
8183 cat >>confdefs.h
<<_ACEOF
8184 #define HAVE_DECL_STRSTR $ac_have_decl
8188 # ----------------------- #
8189 # Checks for structures. #
8190 # ----------------------- #
8192 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8193 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8195 cat >>confdefs.h
<<_ACEOF
8196 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8201 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8202 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8204 cat >>confdefs.h
<<_ACEOF
8205 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8212 # On FreeBSD we need libutil for the kinfo_get* functions. On
8213 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8214 # Figure out which one to use.
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8216 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8217 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8218 $as_echo_n "(cached) " >&6
8220 ac_func_search_save_LIBS
=$LIBS
8221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8224 /* Override any GCC internal prototype to avoid an error.
8225 Use char because int might match the return type of a GCC
8226 builtin and then its argument prototype would still apply. */
8230 char kinfo_getfile ();
8234 return kinfo_getfile ();
8239 for ac_lib
in '' util util-freebsd
; do
8240 if test -z "$ac_lib"; then
8241 ac_res
="none required"
8244 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8246 if ac_fn_c_try_link
"$LINENO"; then :
8247 ac_cv_search_kinfo_getfile
=$ac_res
8249 rm -f core conftest.err conftest.
$ac_objext \
8251 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8255 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8258 ac_cv_search_kinfo_getfile
=no
8261 LIBS
=$ac_func_search_save_LIBS
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8264 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8265 ac_res
=$ac_cv_search_kinfo_getfile
8266 if test "$ac_res" != no
; then :
8267 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8272 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
8273 for ac_func
in kinfo_getfile
8275 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
8276 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
8277 cat >>confdefs.h
<<_ACEOF
8278 #define HAVE_KINFO_GETFILE 1
8285 # ----------------------- #
8286 # Check for threading. #
8287 # ----------------------- #
8289 # Check whether --enable-threading was given.
8290 if test "${enable_threading+set}" = set; then :
8291 enableval
=$enable_threading; case "$enableval" in
8292 yes) want_threading
=yes ;;
8293 no
) want_threading
=no
;;
8294 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
8301 # Check for std::thread. This does not work on some platforms, like
8304 ac_cpp
='$CXXCPP $CPPFLAGS'
8305 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8314 ac_cpp
='$CPP $CPPFLAGS'
8315 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8316 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8317 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8321 # We used to check for pthread.h first, but this fails if pthread.h
8322 # requires special compiler flags (e.g. on Tru64 or Sequent).
8323 # It gets checked for in the link test anyway.
8325 # First of all, check if the user has set any of the PTHREAD_LIBS,
8326 # etcetera environment variables, and if threads linking works using
8328 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8329 ax_pthread_save_CC
="$CC"
8330 ax_pthread_save_CFLAGS
="$CFLAGS"
8331 ax_pthread_save_LIBS
="$LIBS"
8332 if test "x$PTHREAD_CC" != "x"; then :
8335 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8336 LIBS
="$PTHREAD_LIBS $LIBS"
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8338 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8342 /* Override any GCC internal prototype to avoid an error.
8343 Use char because int might match the return type of a GCC
8344 builtin and then its argument prototype would still apply. */
8348 char pthread_join ();
8352 return pthread_join ();
8357 if ac_fn_c_try_link
"$LINENO"; then :
8360 rm -f core conftest.err conftest.
$ac_objext \
8361 conftest
$ac_exeext conftest.
$ac_ext
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8363 $as_echo "$ax_pthread_ok" >&6; }
8364 if test "x$ax_pthread_ok" = "xno"; then
8368 CC
="$ax_pthread_save_CC"
8369 CFLAGS
="$ax_pthread_save_CFLAGS"
8370 LIBS
="$ax_pthread_save_LIBS"
8373 # We must check for the threads library under a number of different
8374 # names; the ordering is very important because some systems
8375 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8376 # libraries is broken (non-POSIX).
8378 # Create a list of thread flags to try. Items starting with a "-" are
8379 # C compiler flags, and other items are library names, except for "none"
8380 # which indicates that we try without any flags at all, and "pthread-config"
8381 # which is a program returning the flags for the Pth emulation library.
8383 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8385 # The ordering *is* (sometimes) important. Some notes on the
8386 # individual items follow:
8388 # pthreads: AIX (must check this before -lpthread)
8389 # none: in case threads are in libc; should be tried before -Kthread and
8390 # other compiler flags to prevent continual compiler warnings
8391 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8392 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8393 # (Note: HP C rejects this with "bad form for `-t' option")
8394 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8395 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8396 # doesn't hurt to check since this sometimes defines pthreads and
8397 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8398 # is present but should not be used directly; and before -mthreads,
8399 # because the compiler interprets this as "-mt" + "-hreads")
8400 # -mthreads: Mingw32/gcc, Lynx/gcc
8401 # pthread: Linux, etcetera
8402 # --thread-safe: KAI C++
8403 # pthread-config: use pthread-config program (for GNU Pth library)
8409 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8410 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8412 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
8417 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8418 # multi-threading and also sets -lpthread."
8420 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
8425 # IBM z/OS requires a feature-test macro to be defined in order to
8426 # enable POSIX threads at all, so give the user a hint if this is
8427 # not set. (We don't define these ourselves, as they can affect
8428 # other portions of the system API in unpredictable ways.)
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8433 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8434 AX_PTHREAD_ZOS_MISSING
8438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8439 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8441 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8449 # On Solaris (at least, for some versions), libc contains stubbed
8450 # (non-functional) versions of the pthreads routines, so link-based
8451 # tests will erroneously succeed. (N.B.: The stubs are missing
8452 # pthread_cleanup_push, or rather a function called by this macro,
8453 # so we could check for that, but who knows whether they'll stub
8454 # that too in a future libc.) So we'll check first for the
8455 # standard Solaris way of linking pthreads (-mt -lpthread).
8457 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
8461 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8463 if test "x$GCC" = "xyes"; then :
8464 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
8467 # The presence of a feature test macro requesting re-entrant function
8468 # definitions is, on some systems, a strong hint that pthreads support is
8472 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
8473 ax_pthread_check_macro
="_REENTRANT"
8477 ax_pthread_check_macro
="_THREAD_SAFE"
8481 ax_pthread_check_macro
="--"
8484 if test "x$ax_pthread_check_macro" = "x--"; then :
8485 ax_pthread_check_cond
=0
8487 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
8490 # Are we compiling with Clang?
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8493 $as_echo_n "checking whether $CC is Clang... " >&6; }
8494 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
8495 $as_echo_n "(cached) " >&6
8497 ax_cv_PTHREAD_CLANG
=no
8498 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8499 if test "x$GCC" = "xyes"; then
8500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8503 # if defined(__clang__) && defined(__llvm__)
8504 AX_PTHREAD_CC_IS_CLANG
8508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8509 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
8510 ax_cv_PTHREAD_CLANG
=yes
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8518 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8519 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
8521 ax_pthread_clang_warning
=no
8523 # Clang needs special handling, because older versions handle the -pthread
8524 # option in a rather... idiosyncratic way
8526 if test "x$ax_pthread_clang" = "xyes"; then
8528 # Clang takes -pthread; it has never supported any other flag
8530 # (Note 1: This will need to be revisited if a system that Clang
8531 # supports has POSIX threads in a separate library. This tends not
8532 # to be the way of modern systems, but it's conceivable.)
8534 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8535 # to get POSIX threads support; the API is always present and
8536 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8537 # -pthread does define _REENTRANT, and while the Darwin headers
8538 # ignore this macro, third-party headers might not.)
8540 PTHREAD_CFLAGS
="-pthread"
8545 # However, older versions of Clang make a point of warning the user
8546 # that, in an invocation where only linking and no compilation is
8547 # taking place, the -pthread option has no effect ("argument unused
8548 # during compilation"). They expect -pthread to be passed in only
8549 # when source code is being compiled.
8551 # Problem is, this is at odds with the way Automake and most other
8552 # C build frameworks function, which is that the same flags used in
8553 # compilation (CFLAGS) are also used in linking. Many systems
8554 # supported by AX_PTHREAD require exactly this for POSIX threads
8555 # support, and in fact it is often not straightforward to specify a
8556 # flag that is used only in the compilation phase and not in
8557 # linking. Such a scenario is extremely rare in practice.
8559 # Even though use of the -pthread flag in linking would only print
8560 # a warning, this can be a nuisance for well-run software projects
8561 # that build with -Werror. So if the active version of Clang has
8562 # this misfeature, we search for an option to squash it.
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8565 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8566 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
8567 $as_echo_n "(cached) " >&6
8569 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
8570 # Create an alternate version of $ac_link that compiles and
8571 # links in two steps (.c -> .o, .o -> exe) instead of one
8572 # (.c -> exe), because the warning occurs only in the second
8574 ax_pthread_save_ac_link
="$ac_link"
8575 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8576 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8577 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8578 ax_pthread_save_CFLAGS
="$CFLAGS"
8579 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
8580 if test "x$ax_pthread_try" = "xunknown"; then :
8583 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8584 ac_link
="$ax_pthread_save_ac_link"
8585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 int main(void){return 0;}
8589 if ac_fn_c_try_link
"$LINENO"; then :
8590 ac_link
="$ax_pthread_2step_ac_link"
8591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 int main(void){return 0;}
8595 if ac_fn_c_try_link
"$LINENO"; then :
8598 rm -f core conftest.err conftest.
$ac_objext \
8599 conftest
$ac_exeext conftest.
$ac_ext
8602 rm -f core conftest.err conftest.
$ac_objext \
8603 conftest
$ac_exeext conftest.
$ac_ext
8605 ac_link
="$ax_pthread_save_ac_link"
8606 CFLAGS
="$ax_pthread_save_CFLAGS"
8607 if test "x$ax_pthread_try" = "x"; then :
8610 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8614 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8616 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8618 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8621 fi # $ax_pthread_clang = yes
8623 if test "x$ax_pthread_ok" = "xno"; then
8624 for ax_pthread_try_flag
in $ax_pthread_flags; do
8626 case $ax_pthread_try_flag in
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8629 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8634 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8635 PTHREAD_CFLAGS
="-mt"
8636 PTHREAD_LIBS
="-lpthread"
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8641 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8642 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
8646 # Extract the first word of "pthread-config", so it can be a program name with args.
8647 set dummy pthread-config
; ac_word
=$2
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649 $as_echo_n "checking for $ac_word... " >&6; }
8650 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8651 $as_echo_n "(cached) " >&6
8653 if test -n "$ax_pthread_config"; then
8654 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8660 test -z "$as_dir" && as_dir
=.
8661 for ac_exec_ext
in '' $ac_executable_extensions; do
8662 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8663 ac_cv_prog_ax_pthread_config
="yes"
8664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8674 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8675 if test -n "$ax_pthread_config"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8677 $as_echo "$ax_pthread_config" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8684 if test "x$ax_pthread_config" = "xno"; then :
8687 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8688 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8693 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8694 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
8698 ax_pthread_save_CFLAGS
="$CFLAGS"
8699 ax_pthread_save_LIBS
="$LIBS"
8700 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8701 LIBS
="$PTHREAD_LIBS $LIBS"
8703 # Check for various functions. We must include pthread.h,
8704 # since some functions may be macros. (On the Sequent, we
8705 # need a special flag -Kthread to make this header compile.)
8706 # We check for pthread_join because it is in -lpthread on IRIX
8707 # while pthread_create is in libc. We check for pthread_attr_init
8708 # due to DEC craziness with -lpthreads. We check for
8709 # pthread_cleanup_push because it is one of the few pthread
8710 # functions on Solaris that doesn't have a non-functional libc stub.
8711 # We try pthread_create on general principles.
8713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 #include <pthread.h>
8716 # if $ax_pthread_check_cond
8717 # error "$ax_pthread_check_macro must be defined"
8719 static void routine(void *a) { a = 0; }
8720 static void *start_routine(void *a) { return a; }
8724 pthread_t th; pthread_attr_t attr;
8725 pthread_create(&th, 0, start_routine, 0);
8726 pthread_join(th, 0);
8727 pthread_attr_init(&attr);
8728 pthread_cleanup_push(routine, 0);
8729 pthread_cleanup_pop(0) /* ; */
8734 if ac_fn_c_try_link
"$LINENO"; then :
8737 rm -f core conftest.err conftest.
$ac_objext \
8738 conftest
$ac_exeext conftest.
$ac_ext
8740 CFLAGS
="$ax_pthread_save_CFLAGS"
8741 LIBS
="$ax_pthread_save_LIBS"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8744 $as_echo "$ax_pthread_ok" >&6; }
8745 if test "x$ax_pthread_ok" = "xyes"; then :
8754 # Various other checks:
8755 if test "x$ax_pthread_ok" = "xyes"; then
8756 ax_pthread_save_CFLAGS
="$CFLAGS"
8757 ax_pthread_save_LIBS
="$LIBS"
8758 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8759 LIBS
="$PTHREAD_LIBS $LIBS"
8761 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8763 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8764 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
8765 $as_echo_n "(cached) " >&6
8767 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
8768 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <pthread.h>
8775 int attr = $ax_pthread_attr; return attr /* ; */
8780 if ac_fn_c_try_link
"$LINENO"; then :
8781 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
8783 rm -f core conftest.err conftest.
$ac_objext \
8784 conftest
$ac_exeext conftest.
$ac_ext
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8789 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8790 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8791 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8792 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8794 cat >>confdefs.h
<<_ACEOF
8795 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8798 ax_pthread_joinable_attr_defined
=yes
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8803 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8804 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
8805 $as_echo_n "(cached) " >&6
8807 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
8810 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8816 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8817 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8818 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8819 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8820 ax_pthread_special_flags_added
=yes
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8824 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8825 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8826 $as_echo_n "(cached) " >&6
8828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8830 #include <pthread.h>
8834 int i = PTHREAD_PRIO_INHERIT;
8839 if ac_fn_c_try_link
"$LINENO"; then :
8840 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8842 ax_cv_PTHREAD_PRIO_INHERIT
=no
8844 rm -f core conftest.err conftest.
$ac_objext \
8845 conftest
$ac_exeext conftest.
$ac_ext
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8849 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8850 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8851 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8853 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8855 ax_pthread_prio_inherit_defined
=yes
8859 CFLAGS
="$ax_pthread_save_CFLAGS"
8860 LIBS
="$ax_pthread_save_LIBS"
8862 # More AIX lossage: compile with *_r variant
8863 if test "x$GCC" != "xyes"; then
8867 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
8868 #handle absolute path differently from PATH based program lookup
8871 if as_fn_executable_p
${CC}_r
; then :
8872 PTHREAD_CC
="${CC}_r"
8875 for ac_prog
in ${CC}_r
8877 # Extract the first word of "$ac_prog", so it can be a program name with args.
8878 set dummy
$ac_prog; ac_word
=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8882 $as_echo_n "(cached) " >&6
8884 if test -n "$PTHREAD_CC"; then
8885 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8891 test -z "$as_dir" && as_dir
=.
8892 for ac_exec_ext
in '' $ac_executable_extensions; do
8893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8894 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8905 if test -n "$PTHREAD_CC"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8907 $as_echo "$PTHREAD_CC" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8914 test -n "$PTHREAD_CC" && break
8916 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8927 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8933 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8934 if test "x$ax_pthread_ok" = "xyes"; then
8942 ac_cpp
='$CXXCPP $CPPFLAGS'
8943 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8948 if test "$threads" = "yes"; then
8950 LIBS
="$PTHREAD_LIBS $LIBS"
8951 save_CXXFLAGS
="$CXXFLAGS"
8952 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
8954 $as_echo_n "checking for std::thread... " >&6; }
8955 if ${gdb_cv_cxx_std_thread+:} false
; then :
8956 $as_echo_n "(cached) " >&6
8958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8965 std::thread t(callback);
8970 if ac_fn_cxx_try_compile
"$LINENO"; then :
8971 gdb_cv_cxx_std_thread
=yes
8973 gdb_cv_cxx_std_thread
=no
8975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
8978 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
8980 # This check must be here, while LIBS includes any necessary
8981 # threading library.
8982 for ac_func
in pthread_sigmask pthread_setname_np
8984 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8985 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8986 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8987 cat >>confdefs.h
<<_ACEOF
8988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8996 CXXFLAGS
="$save_CXXFLAGS"
8999 if test "$want_threading" = "yes"; then
9000 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9002 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9007 ac_cpp
='$CPP $CPPFLAGS'
9008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9014 $as_echo_n "checking for sigsetjmp... " >&6; }
9015 if ${gdb_cv_func_sigsetjmp+:} false
; then :
9016 $as_echo_n "(cached) " >&6
9018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9025 while (! sigsetjmp (env, 1))
9026 siglongjmp (env, 1);
9032 if ac_fn_c_try_compile
"$LINENO"; then :
9033 gdb_cv_func_sigsetjmp
=yes
9035 gdb_cv_func_sigsetjmp
=no
9038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9042 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9043 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9045 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9050 # Check whether --with-intel_pt was given.
9051 if test "${with_intel_pt+set}" = set; then :
9052 withval
=$with_intel_pt;
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9058 $as_echo_n "checking whether to use intel pt... " >&6; }
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9060 $as_echo "$with_intel_pt" >&6; }
9062 if test "${with_intel_pt}" = no
; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9064 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9070 #include <linux/perf_event.h>
9071 #ifndef PERF_ATTR_SIZE_VER5
9076 if ac_fn_c_try_cpp
"$LINENO"; then :
9081 rm -f conftest.err conftest.i conftest.
$ac_ext
9082 if test "$perf_event" != yes; then
9083 if test "$with_intel_pt" = yes; then
9084 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9087 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9101 acl_save_prefix
="$prefix"
9102 prefix
="$acl_final_prefix"
9103 acl_save_exec_prefix
="$exec_prefix"
9104 exec_prefix
="$acl_final_exec_prefix"
9106 eval additional_includedir
=\"$includedir\"
9107 eval additional_libdir
=\"$libdir\"
9109 exec_prefix
="$acl_save_exec_prefix"
9110 prefix
="$acl_save_prefix"
9113 # Check whether --with-libipt-prefix was given.
9114 if test "${with_libipt_prefix+set}" = set; then :
9115 withval
=$with_libipt_prefix;
9116 if test "X$withval" = "Xno"; then
9119 if test "X$withval" = "X"; then
9121 acl_save_prefix
="$prefix"
9122 prefix
="$acl_final_prefix"
9123 acl_save_exec_prefix
="$exec_prefix"
9124 exec_prefix
="$acl_final_exec_prefix"
9126 eval additional_includedir
=\"$includedir\"
9127 eval additional_libdir
=\"$libdir\"
9129 exec_prefix
="$acl_save_exec_prefix"
9130 prefix
="$acl_save_prefix"
9133 additional_includedir
="$withval/include"
9134 additional_libdir
="$withval/lib"
9141 # Check whether --with-libipt-type was given.
9142 if test "${with_libipt_type+set}" = set; then :
9143 withval
=$with_libipt_type; with_libipt_type
=$withval
9145 with_libipt_type
=auto
9148 lib_type
=`eval echo \$with_libipt_type`
9155 names_already_handled
=
9156 names_next_round
='ipt '
9157 while test -n "$names_next_round"; do
9158 names_this_round
="$names_next_round"
9160 for name
in $names_this_round; do
9162 for n
in $names_already_handled; do
9163 if test "$n" = "$name"; then
9168 if test -z "$already_handled"; then
9169 names_already_handled
="$names_already_handled $name"
9170 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9171 eval value
=\"\
$HAVE_LIB$uppername\"
9172 if test -n "$value"; then
9173 if test "$value" = yes; then
9174 eval value
=\"\
$LIB$uppername\"
9175 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
9176 eval value
=\"\
$LTLIB$uppername\"
9177 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
9186 if test $use_additional = yes; then
9187 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9188 found_dir
="$additional_libdir"
9189 found_so
="$additional_libdir/lib$name.$shlibext"
9190 if test -f "$additional_libdir/lib$name.la"; then
9191 found_la
="$additional_libdir/lib$name.la"
9193 elif test x
$lib_type != xshared
; then
9194 if test -f "$additional_libdir/lib$name.$libext"; then
9195 found_dir
="$additional_libdir"
9196 found_a
="$additional_libdir/lib$name.$libext"
9197 if test -f "$additional_libdir/lib$name.la"; then
9198 found_la
="$additional_libdir/lib$name.la"
9203 if test "X$found_dir" = "X"; then
9204 for x
in $LDFLAGS $LTLIBIPT; do
9206 acl_save_prefix
="$prefix"
9207 prefix
="$acl_final_prefix"
9208 acl_save_exec_prefix
="$exec_prefix"
9209 exec_prefix
="$acl_final_exec_prefix"
9211 exec_prefix
="$acl_save_exec_prefix"
9212 prefix
="$acl_save_prefix"
9216 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9217 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9219 found_so
="$dir/lib$name.$shlibext"
9220 if test -f "$dir/lib$name.la"; then
9221 found_la
="$dir/lib$name.la"
9223 elif test x
$lib_type != xshared
; then
9224 if test -f "$dir/lib$name.$libext"; then
9226 found_a
="$dir/lib$name.$libext"
9227 if test -f "$dir/lib$name.la"; then
9228 found_la
="$dir/lib$name.la"
9234 if test "X$found_dir" != "X"; then
9239 if test "X$found_dir" != "X"; then
9240 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9241 if test "X$found_so" != "X"; then
9242 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9243 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9246 for x
in $ltrpathdirs; do
9247 if test "X$x" = "X$found_dir"; then
9252 if test -z "$haveit"; then
9253 ltrpathdirs
="$ltrpathdirs $found_dir"
9255 if test "$hardcode_direct" = yes; then
9256 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9258 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9259 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9261 for x
in $rpathdirs; do
9262 if test "X$x" = "X$found_dir"; then
9267 if test -z "$haveit"; then
9268 rpathdirs
="$rpathdirs $found_dir"
9272 for x
in $LDFLAGS $LIBIPT; do
9274 acl_save_prefix
="$prefix"
9275 prefix
="$acl_final_prefix"
9276 acl_save_exec_prefix
="$exec_prefix"
9277 exec_prefix
="$acl_final_exec_prefix"
9279 exec_prefix
="$acl_save_exec_prefix"
9280 prefix
="$acl_save_prefix"
9282 if test "X$x" = "X-L$found_dir"; then
9287 if test -z "$haveit"; then
9288 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9290 if test "$hardcode_minus_L" != no
; then
9291 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9293 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
9299 if test "X$found_a" != "X"; then
9300 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
9302 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9305 additional_includedir
=
9306 case "$found_dir" in
9308 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9309 additional_includedir
="$basedir/include"
9312 if test "X$additional_includedir" != "X"; then
9313 if test "X$additional_includedir" != "X/usr/include"; then
9315 if test "X$additional_includedir" = "X/usr/local/include"; then
9316 if test -n "$GCC"; then
9318 linux
*) haveit
=yes;;
9322 if test -z "$haveit"; then
9323 for x
in $CPPFLAGS $INCIPT; do
9325 acl_save_prefix
="$prefix"
9326 prefix
="$acl_final_prefix"
9327 acl_save_exec_prefix
="$exec_prefix"
9328 exec_prefix
="$acl_final_exec_prefix"
9330 exec_prefix
="$acl_save_exec_prefix"
9331 prefix
="$acl_save_prefix"
9333 if test "X$x" = "X-I$additional_includedir"; then
9338 if test -z "$haveit"; then
9339 if test -d "$additional_includedir"; then
9340 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
9346 if test -n "$found_la"; then
9347 save_libdir
="$libdir"
9349 */* |
*\\*) .
"$found_la" ;;
9350 *) .
"./$found_la" ;;
9352 libdir
="$save_libdir"
9353 for dep
in $dependency_libs; do
9356 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9357 if test "X$additional_libdir" != "X/usr/lib"; then
9359 if test "X$additional_libdir" = "X/usr/local/lib"; then
9360 if test -n "$GCC"; then
9362 linux
*) haveit
=yes;;
9366 if test -z "$haveit"; then
9368 for x
in $LDFLAGS $LIBIPT; do
9370 acl_save_prefix
="$prefix"
9371 prefix
="$acl_final_prefix"
9372 acl_save_exec_prefix
="$exec_prefix"
9373 exec_prefix
="$acl_final_exec_prefix"
9375 exec_prefix
="$acl_save_exec_prefix"
9376 prefix
="$acl_save_prefix"
9378 if test "X$x" = "X-L$additional_libdir"; then
9383 if test -z "$haveit"; then
9384 if test -d "$additional_libdir"; then
9385 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
9389 for x
in $LDFLAGS $LTLIBIPT; do
9391 acl_save_prefix
="$prefix"
9392 prefix
="$acl_final_prefix"
9393 acl_save_exec_prefix
="$exec_prefix"
9394 exec_prefix
="$acl_final_exec_prefix"
9396 exec_prefix
="$acl_save_exec_prefix"
9397 prefix
="$acl_save_prefix"
9399 if test "X$x" = "X-L$additional_libdir"; then
9404 if test -z "$haveit"; then
9405 if test -d "$additional_libdir"; then
9406 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
9413 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9414 if test "$enable_rpath" != no
; then
9416 for x
in $rpathdirs; do
9417 if test "X$x" = "X$dir"; then
9422 if test -z "$haveit"; then
9423 rpathdirs
="$rpathdirs $dir"
9426 for x
in $ltrpathdirs; do
9427 if test "X$x" = "X$dir"; then
9432 if test -z "$haveit"; then
9433 ltrpathdirs
="$ltrpathdirs $dir"
9438 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9441 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9444 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
9445 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
9451 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9452 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
9453 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
9455 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
9456 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
9463 if test "X$rpathdirs" != "X"; then
9464 if test -n "$hardcode_libdir_separator"; then
9466 for found_dir
in $rpathdirs; do
9467 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9469 acl_save_libdir
="$libdir"
9471 eval flag
=\"$hardcode_libdir_flag_spec\"
9472 libdir
="$acl_save_libdir"
9473 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
9475 for found_dir
in $rpathdirs; do
9476 acl_save_libdir
="$libdir"
9478 eval flag
=\"$hardcode_libdir_flag_spec\"
9479 libdir
="$acl_save_libdir"
9480 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
9484 if test "X$ltrpathdirs" != "X"; then
9485 for found_dir
in $ltrpathdirs; do
9486 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
9491 ac_save_CPPFLAGS
="$CPPFLAGS"
9493 for element
in $INCIPT; do
9495 for x
in $CPPFLAGS; do
9497 acl_save_prefix
="$prefix"
9498 prefix
="$acl_final_prefix"
9499 acl_save_exec_prefix
="$exec_prefix"
9500 exec_prefix
="$acl_final_exec_prefix"
9502 exec_prefix
="$acl_save_exec_prefix"
9503 prefix
="$acl_save_prefix"
9505 if test "X$x" = "X$element"; then
9510 if test -z "$haveit"; then
9511 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
9517 $as_echo_n "checking for libipt... " >&6; }
9518 if ${ac_cv_libipt+:} false
; then :
9519 $as_echo_n "(cached) " >&6
9522 ac_save_LIBS
="$LIBS"
9523 LIBS
="$LIBS $LIBIPT"
9524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 #include "intel-pt.h"
9530 pt_insn_alloc_decoder (0);
9535 if ac_fn_c_try_link
"$LINENO"; then :
9540 rm -f core conftest.err conftest.
$ac_objext \
9541 conftest
$ac_exeext conftest.
$ac_ext
9542 LIBS
="$ac_save_LIBS"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
9546 $as_echo "$ac_cv_libipt" >&6; }
9547 if test "$ac_cv_libipt" = yes; then
9550 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
9553 $as_echo_n "checking how to link with libipt... " >&6; }
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
9555 $as_echo "$LIBIPT" >&6; }
9558 CPPFLAGS
="$ac_save_CPPFLAGS"
9568 if test "$HAVE_LIBIPT" != yes; then
9569 if test "$with_intel_pt" = yes; then
9570 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
9573 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
9577 LIBS
="$LIBS $LIBIPT"
9578 for ac_func
in pt_insn_event
9580 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
9581 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
9582 cat >>confdefs.h
<<_ACEOF
9583 #define HAVE_PT_INSN_EVENT 1
9589 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
9591 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
9593 cat >>confdefs.h
<<_ACEOF
9594 #define HAVE_STRUCT_PT_INSN_ENABLED 1
9599 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
9601 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
9603 cat >>confdefs.h
<<_ACEOF
9604 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
9614 # Check if the compiler and runtime support printing long longs.
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
9617 $as_echo_n "checking for long long support in printf... " >&6; }
9618 if ${gdb_cv_printf_has_long_long+:} false
; then :
9619 $as_echo_n "(cached) " >&6
9621 if test "$cross_compiling" = yes; then :
9622 gdb_cv_printf_has_long_long
=no
9624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626 $ac_includes_default
9632 l = (l << 16) + 0x0123;
9633 l = (l << 16) + 0x4567;
9634 l = (l << 16) + 0x89ab;
9635 l = (l << 16) + 0xcdef;
9636 sprintf (buf, "0x%016llx", l);
9637 return (strcmp ("0x0123456789abcdef", buf));
9642 if ac_fn_c_try_run
"$LINENO"; then :
9643 gdb_cv_printf_has_long_long
=yes
9645 gdb_cv_printf_has_long_long
=no
9647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9648 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
9653 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
9654 if test "$gdb_cv_printf_has_long_long" = yes; then
9656 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
9661 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
9663 for ac_header
in sys
/procfs.h
9665 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
9666 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
9667 cat >>confdefs.h
<<_ACEOF
9668 #define HAVE_SYS_PROCFS_H 1
9675 if test "$ac_cv_header_sys_procfs_h" = yes; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
9678 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
9679 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
9680 $as_echo_n "(cached) " >&6
9682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9686 #include <sys/procfs.h>
9695 if ac_fn_c_try_compile
"$LINENO"; then :
9696 bfd_cv_have_sys_procfs_type_gregset_t
=yes
9698 bfd_cv_have_sys_procfs_type_gregset_t
=no
9701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9704 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
9706 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
9710 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
9714 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
9715 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
9716 $as_echo_n "(cached) " >&6
9718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9722 #include <sys/procfs.h>
9731 if ac_fn_c_try_compile
"$LINENO"; then :
9732 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
9734 bfd_cv_have_sys_procfs_type_fpregset_t
=no
9737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9740 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
9742 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
9746 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
9750 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
9751 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
9752 $as_echo_n "(cached) " >&6
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9758 #include <sys/procfs.h>
9767 if ac_fn_c_try_compile
"$LINENO"; then :
9768 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
9770 bfd_cv_have_sys_procfs_type_prgregset_t
=no
9773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9776 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
9778 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
9782 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
9786 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
9787 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
9788 $as_echo_n "(cached) " >&6
9790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9794 #include <sys/procfs.h>
9803 if ac_fn_c_try_compile
"$LINENO"; then :
9804 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
9806 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
9809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9812 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
9814 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
9818 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
9822 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
9823 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
9824 $as_echo_n "(cached) " >&6
9826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9830 #include <sys/procfs.h>
9839 if ac_fn_c_try_compile
"$LINENO"; then :
9840 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
9842 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
9845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9848 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
9850 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
9854 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
9858 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
9859 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
9860 $as_echo_n "(cached) " >&6
9862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9866 #include <sys/procfs.h>
9875 if ac_fn_c_try_compile
"$LINENO"; then :
9876 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
9878 bfd_cv_have_sys_procfs_type_lwpid_t
=no
9881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9884 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
9886 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
9890 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
9894 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
9895 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
9896 $as_echo_n "(cached) " >&6
9898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9902 #include <sys/procfs.h>
9911 if ac_fn_c_try_compile
"$LINENO"; then :
9912 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
9914 bfd_cv_have_sys_procfs_type_psaddr_t
=no
9917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9920 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
9922 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
9926 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
9930 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
9931 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
9932 $as_echo_n "(cached) " >&6
9934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9938 #include <sys/procfs.h>
9947 if ac_fn_c_try_compile
"$LINENO"; then :
9948 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
9950 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
9953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9956 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
9958 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
9962 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
9967 # Check whether we will enable the inclusion of unit tests when
9970 # The default value of this option changes depending whether we're on
9971 # development mode (in which case it's "true") or not (in which case
9972 # it's "false"). The $development variable is set by the GDB_AC_COMMON
9973 # macro, which must therefore be used before GDB_AC_SELFTEST.
9975 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
9976 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
9979 # Check whether --enable-unit-tests was given.
9980 if test "${enable_unit_tests+set}" = set; then :
9981 enableval
=$enable_unit_tests; case "${enableval}" in
9982 yes) enable_unittests
=true
;;
9983 no
) enable_unittests
=false
;;
9984 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
9987 enable_unittests
=$development
9991 if $enable_unittests; then
9993 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
9998 if $enable_unittests; then
10007 if test x
$ac_cv_func_pipe = xyes
-o x
$ac_cv_func_pipe2 = xyes
; then
10008 HAVE_PIPE_OR_PIPE2_TRUE
=
10009 HAVE_PIPE_OR_PIPE2_FALSE
='#'
10011 HAVE_PIPE_OR_PIPE2_TRUE
='#'
10012 HAVE_PIPE_OR_PIPE2_FALSE
=
10016 # Check the return and argument types of ptrace.
10019 for ac_header
in sys
/ptrace.h ptrace.h
10021 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10022 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10023 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10024 cat >>confdefs.h
<<_ACEOF
10025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10033 gdb_ptrace_headers
='
10034 #include <sys/types.h>
10035 #if HAVE_SYS_PTRACE_H
10036 # include <sys/ptrace.h>
10039 # include <unistd.h>
10043 # Check return type. Varargs (used on GNU/Linux) conflict with the
10044 # empty argument list, so check for that explicitly.
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10046 $as_echo_n "checking return type of ptrace... " >&6; }
10047 if ${gdb_cv_func_ptrace_ret+:} false
; then :
10048 $as_echo_n "(cached) " >&6
10050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 Â $gdb_ptrace_headers
10056 extern long ptrace (enum __ptrace_request, ...);
10062 if ac_fn_c_try_compile
"$LINENO"; then :
10063 gdb_cv_func_ptrace_ret
='long'
10065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10067 $gdb_ptrace_headers
10071 extern int ptrace ();
10077 if ac_fn_c_try_compile
"$LINENO"; then :
10078 gdb_cv_func_ptrace_ret
='int'
10080 gdb_cv_func_ptrace_ret
='long'
10083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10090 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10093 cat >>confdefs.h
<<_ACEOF
10094 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10098 # Check argument types.
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10100 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10101 if ${gdb_cv_func_ptrace_args+:} false
; then :
10102 $as_echo_n "(cached) " >&6
10104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 $gdb_ptrace_headers
10110 extern long ptrace (enum __ptrace_request, ...);
10116 if ac_fn_c_try_compile
"$LINENO"; then :
10117 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
10119 for gdb_arg1
in 'int' 'long'; do
10120 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10121 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10122 for gdb_arg4
in 'int' 'long' 'void *'; do
10123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 $gdb_ptrace_headers
10129 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10135 if ac_fn_c_try_compile
"$LINENO"; then :
10136 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10142 for gdb_arg5
in 'int *' 'int' 'long'; do
10143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 $gdb_ptrace_headers
10149 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10155 if ac_fn_c_try_compile
"$LINENO"; then :
10156 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10166 # Provide a safe default value.
10167 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10174 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10176 ac_save_IFS
=$IFS; IFS
=','
10177 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10181 cat >>confdefs.h
<<_ACEOF
10182 #define PTRACE_TYPE_ARG1 $1
10186 cat >>confdefs.h
<<_ACEOF
10187 #define PTRACE_TYPE_ARG3 $3
10191 cat >>confdefs.h
<<_ACEOF
10192 #define PTRACE_TYPE_ARG4 $4
10195 if test -n "$5"; then
10197 cat >>confdefs.h
<<_ACEOF
10198 #define PTRACE_TYPE_ARG5 $5
10204 # Detect support warning flags.
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
10208 $as_echo_n "checking the compiler type... " >&6; }
10209 if ${gdb_cv_compiler_type+:} false
; then :
10210 $as_echo_n "(cached) " >&6
10212 gdb_cv_compiler_type
=unknown
10213 if test "$gdb_cv_compiler_type" = unknown
; then
10214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h. */
10221 #if !defined __GNUC__ || defined __clang__
10229 if ac_fn_c_try_compile
"$LINENO"; then :
10230 gdb_cv_compiler_type
=gcc
10232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10235 if test "$gdb_cv_compiler_type" = unknown
; then
10236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10251 if ac_fn_c_try_compile
"$LINENO"; then :
10252 gdb_cv_compiler_type
=clang
10254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
10259 $as_echo "$gdb_cv_compiler_type" >&6; }
10261 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
10264 # Check whether --enable-werror was given.
10265 if test "${enable_werror+set}" = set; then :
10266 enableval
=$enable_werror; case "${enableval}" in
10267 yes | y
) ERROR_ON_WARNING
="yes" ;;
10268 no | n
) ERROR_ON_WARNING
="no" ;;
10269 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10274 # Enable -Werror by default when using gcc. Turn it off for releases.
10275 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10276 ERROR_ON_WARNING
=yes
10280 if test "${ERROR_ON_WARNING}" = yes ; then
10281 WERROR_CFLAGS
="-Werror"
10284 # The options we'll try to enable.
10285 build_warnings
="-Wall -Wpointer-arith \
10286 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10287 -Wno-switch -Wno-char-subscripts \
10288 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10289 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10290 -Wno-mismatched-tags \
10291 -Wno-error=deprecated-register \
10292 -Wsuggest-override \
10293 -Wimplicit-fallthrough=3 \
10294 -Wduplicated-cond \
10296 -Wdeprecated-copy \
10297 -Wdeprecated-copy-dtor \
10299 -Wmissing-declarations \
10300 -Wstrict-null-sentinel \
10303 # The -Wmissing-prototypes flag will be accepted by GCC, but results
10304 # in a warning being printed about the flag not being valid for C++,
10305 # this is something to do with using ccache, and argument ordering.
10306 if test "$GDB_COMPILER_TYPE" != gcc
; then
10307 build_warnings
="$build_warnings -Wmissing-prototypes"
10312 # Enable -Wno-format by default when using gcc on mingw since many
10313 # GCC versions complain about %I64.
10314 build_warnings
="$build_warnings -Wno-format" ;;
10316 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10317 # doesn't understand.
10318 build_warnings
="$build_warnings -Wno-unknown-pragmas"
10319 # Solaris 11 <unistd.h> marks vfork deprecated.
10320 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
10322 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10323 # but there's a special case for this below.
10324 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
10327 # Check whether --enable-build-warnings was given.
10328 if test "${enable_build_warnings+set}" = set; then :
10329 enableval
=$enable_build_warnings; case "${enableval}" in
10331 no
) build_warnings
="-w";;
10332 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10333 build_warnings
="${build_warnings} ${t}";;
10334 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10335 build_warnings
="${t} ${build_warnings}";;
10336 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10338 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10339 echo "Setting compiler warning flags = $build_warnings" 6>&1
10342 # Check whether --enable-gdb-build-warnings was given.
10343 if test "${enable_gdb_build_warnings+set}" = set; then :
10344 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
10346 no
) build_warnings
="-w";;
10347 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10348 build_warnings
="${build_warnings} ${t}";;
10349 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10350 build_warnings
="${t} ${build_warnings}";;
10351 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10353 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10354 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10358 # The set of warnings supported by a C++ compiler is not the same as
10359 # of the C compiler.
10361 ac_cpp
='$CXXCPP $CPPFLAGS'
10362 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10368 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10371 $as_echo_n "checking compiler warning flags... " >&6; }
10372 # Separate out the -Werror flag as some files just cannot be
10373 # compiled with it enabled.
10374 for w
in ${build_warnings}; do
10375 # GCC does not complain about -Wno-unknown-warning. Invert
10376 # and test -Wunknown-warning instead.
10379 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
10380 -Wformat-nonliteral)
10381 # gcc requires -Wformat before -Wformat-nonliteral
10382 # will work, so stick them together.
10391 -Werr*) WERROR_CFLAGS
=-Werror ;;
10393 # Check whether GCC accepts it.
10394 saved_CFLAGS
="$CFLAGS"
10395 CFLAGS
="$CFLAGS -Werror $wtest"
10396 saved_CXXFLAGS
="$CXXFLAGS"
10397 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
10398 if test "x$w" = "x-Wunused-variable"; then
10399 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10400 # fixed in GCC 4.9. This test is derived from the gdb
10401 # source code that triggered this bug in GCC.
10402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 struct scoped_restore_base {};
10405 struct scoped_restore_tmpl : public scoped_restore_base {
10406 ~scoped_restore_tmpl() {}
10411 const scoped_restore_base &b = scoped_restore_tmpl();
10417 if ac_fn_cxx_try_compile
"$LINENO"; then :
10418 WARN_CFLAGS
="${WARN_CFLAGS} $w"
10420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10433 if ac_fn_cxx_try_compile
"$LINENO"; then :
10434 WARN_CFLAGS
="${WARN_CFLAGS} $w"
10436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10438 CFLAGS
="$saved_CFLAGS"
10439 CXXFLAGS
="$saved_CXXFLAGS"
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10443 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
10449 ac_cpp='$CPP $CPPFLAGS'
10450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10459 $as_echo "#define USE_WIN32API 1" >>confdefs.h
10464 ac_config_files
="$ac_config_files Makefile"
10466 cat >confcache
<<\_ACEOF
10467 # This file is a shell script that caches the results of configure
10468 # tests run on this system so they can be shared between configure
10469 # scripts and configure runs, see configure's option --config-cache.
10470 # It is not useful on other systems. If it contains results you don't
10471 # want to keep, you may remove or edit it.
10473 # config.status only pays attention to the cache file if you give it
10474 # the --recheck option to rerun configure.
10476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10478 # following values.
10482 # The following way of writing the cache mishandles newlines in values,
10483 # but we know of no workaround that is simple, portable, and efficient.
10484 # So, we kill variables containing newlines.
10485 # Ultrix sh set writes to stderr and can't be redirected directly,
10486 # and sets the high bit in the cache file unless we assign to the vars.
10488 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10489 eval ac_val
=\$
$ac_var
10493 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10497 _ | IFS | as_nl
) ;; #(
10498 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10499 *) { eval $ac_var=; unset $ac_var;} ;;
10505 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10506 *${as_nl}ac_space
=\
*)
10507 # `set' does not quote correctly, so add quotes: double-quote
10508 # substitution turns \\\\ into \\, and sed turns \\ into \.
10511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10514 # `set' quotes correctly as required by POSIX, so do not add quotes.
10515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10528 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10529 if test -w "$cache_file"; then
10530 if test "x$cache_file" != "x/dev/null"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10532 $as_echo "$as_me: updating cache $cache_file" >&6;}
10533 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10534 cat confcache
>"$cache_file"
10536 case $cache_file in #(
10538 mv -f confcache
"$cache_file"$$
&&
10539 mv -f "$cache_file"$$
"$cache_file" ;; #(
10541 mv -f confcache
"$cache_file" ;;
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10547 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10552 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10553 # Let make expand exec_prefix.
10554 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10556 DEFS
=-DHAVE_CONFIG_H
10561 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10562 # 1. Remove the extension, and $U if already installed.
10563 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10564 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10565 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10566 # will be set to the directory where LIBOBJS objects are built.
10567 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10568 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10570 LIBOBJS
=$ac_libobjs
10572 LTLIBOBJS
=$ac_ltlibobjs
10575 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10576 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10580 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10581 if test -n "$am_sleep_pid"; then
10582 # Hide warnings about reused PIDs.
10583 wait $am_sleep_pid 2>/dev
/null
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10586 $as_echo "done" >&6; }
10587 if test -n "$EXEEXT"; then
10589 am__EXEEXT_FALSE
='#'
10591 am__EXEEXT_TRUE
='#'
10595 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10596 as_fn_error $?
"conditional \"AMDEP\" was never defined.
10597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10599 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10600 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
10601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10603 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10604 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
10605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10607 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
10608 as_fn_error $?
"conditional \"SELFTEST\" was never defined.
10609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10611 if test -z "${HAVE_PIPE_OR_PIPE2_TRUE}" && test -z "${HAVE_PIPE_OR_PIPE2_FALSE}"; then
10612 as_fn_error $?
"conditional \"HAVE_PIPE_OR_PIPE2\" was never defined.
10613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10616 : "${CONFIG_STATUS=./config.status}"
10618 ac_clean_files_save
=$ac_clean_files
10619 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10625 # Generated by $as_me.
10626 # Run this file to recreate the current configuration.
10627 # Compiler output produced by configure, useful for debugging
10628 # configure, is in config.log if it exists.
10631 ac_cs_recheck=false
10634 SHELL=\${CONFIG_SHELL-$SHELL}
10637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10638 ## -------------------- ##
10639 ## M4sh Initialization. ##
10640 ## -------------------- ##
10642 # Be more Bourne compatible
10643 DUALCASE
=1; export DUALCASE
# for MKS sh
10644 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10648 # is contrary to our usage. Disable this feature.
10649 alias -g '${1+"$@"}'='"$@"'
10650 setopt NO_GLOB_SUBST
10652 case `(set -o) 2>/dev/null` in #(
10664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10665 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10668 # Prefer a ksh shell builtin over an external printf program on Solaris,
10669 # but without wasting forks for bash or zsh.
10670 if test -z "$BASH_VERSION$ZSH_VERSION" \
10671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10672 as_echo='print
-r --'
10673 as_echo_n='print
-rn --'
10674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10675 as_echo='printf %s
\n'
10676 as_echo_n='printf %s
'
10678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10679 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10680 as_echo_n='/usr
/ucb
/echo -n'
10682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10683 as_echo_n_body='eval
10687 expr "X$arg" : "X\\(.*\\)$as_nl";
10688 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10690 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10692 export as_echo_n_body
10693 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10695 export as_echo_body
10696 as_echo='sh
-c $as_echo_body as_echo
'
10699 # The user is always right.
10700 if test "${PATH_SEPARATOR+set}" != set; then
10702 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10703 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10710 # We need space, tab and new line, in precisely that order. Quoting is
10711 # there to prevent editors from complaining about space-tab.
10712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10713 # splitting by setting IFS to empty value.)
10716 # Find who we are. Look in the path if we contain no directory separator.
10719 *[\\/]* ) as_myself=$0 ;;
10720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10724 test -z "$as_dir" && as_dir=.
10725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10731 # We did not find ourselves, most probably we were run as `sh COMMAND'
10732 # in which case we are not to be found in the path.
10733 if test "x$as_myself" = x
; then
10736 if test ! -f "$as_myself"; then
10737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10741 # Unset variables that we do not need and which cause bugs (e.g. in
10742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10743 # suppresses any "Segmentation fault" message there. '((' could
10744 # trigger a bug in pdksh 5.2.14.
10745 for as_var
in BASH_ENV ENV MAIL MAILPATH
10746 do eval test x\
${$as_var+set} = xset \
10747 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10760 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10764 # ----------------------------------------
10765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10767 # script with STATUS, using 1 if that was 0.
10770 as_status
=$1; test $as_status -eq 0 && as_status
=1
10772 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10775 $as_echo "$as_me: error: $2" >&2
10776 as_fn_exit
$as_status
10780 # as_fn_set_status STATUS
10781 # -----------------------
10782 # Set $? to STATUS, without forking.
10783 as_fn_set_status
()
10786 } # as_fn_set_status
10788 # as_fn_exit STATUS
10789 # -----------------
10790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10794 as_fn_set_status
$1
10800 # Portably unset VAR.
10803 { eval $1=; unset $1;}
10805 as_unset
=as_fn_unset
10806 # as_fn_append VAR VALUE
10807 # ----------------------
10808 # Append the text in VALUE to the end of the definition contained in VAR. Take
10809 # advantage of any shell optimizations that allow amortized linear growth over
10810 # repeated appends, instead of the typical quadratic growth present in naive
10812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10813 eval 'as_fn_append ()
10824 # as_fn_arith ARG...
10825 # ------------------
10826 # Perform arithmetic evaluation on the ARGs, and store the result in the
10827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10828 # must be portable across $(()) and expr.
10829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10830 eval 'as_fn_arith ()
10837 as_val
=`expr "$@" || test $? -eq 1`
10842 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10843 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10849 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10850 as_basename
=basename
10855 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10861 as_me
=`$as_basename -- "$0" ||
10862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10863 X"$0" : 'X\(//\)$' \| \
10864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10866 sed '/^.*\/\([^/][^/]*\)\/*$/{
10880 # Avoid depending upon Character Ranges.
10881 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10882 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10883 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10884 as_cr_digits
='0123456789'
10885 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10887 ECHO_C
= ECHO_N
= ECHO_T
=
10888 case `echo -n x` in #(((((
10890 case `echo 'xy\c'` in
10891 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10893 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10900 rm -f conf$$ conf$$.exe conf$$.
file
10901 if test -d conf$$.dir
; then
10902 rm -f conf$$.dir
/conf$$.
file
10905 mkdir conf$$.dir
2>/dev
/null
10907 if (echo >conf$$.
file) 2>/dev
/null
; then
10908 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10910 # ... but there are two gotchas:
10911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10913 # In both cases, we have to default to `cp -pR'.
10914 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10916 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10924 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10925 rmdir conf$$.dir
2>/dev
/null
10930 # Create "$as_dir" as a directory, including parents if necessary.
10935 -*) as_dir
=.
/$as_dir;;
10937 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10941 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10942 *) as_qdir
=$as_dir;;
10944 as_dirs
="'$as_qdir' $as_dirs"
10945 as_dir
=`$as_dirname -- "$as_dir" ||
10946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10947 X"$as_dir" : 'X\(//\)[^/]' \| \
10948 X"$as_dir" : 'X\(//\)$' \| \
10949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10950 $as_echo X"$as_dir" |
10951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10955 /^X\(\/\/\)[^/].*/{
10968 test -d "$as_dir" && break
10970 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10971 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10975 if mkdir
-p .
2>/dev
/null
; then
10976 as_mkdir_p
='mkdir -p "$as_dir"'
10978 test -d .
/-p && rmdir .
/-p
10983 # as_fn_executable_p FILE
10984 # -----------------------
10985 # Test if FILE is an executable regular file.
10986 as_fn_executable_p
()
10988 test -f "$1" && test -x "$1"
10989 } # as_fn_executable_p
10990 as_test_x
='test -x'
10991 as_executable_p
=as_fn_executable_p
10993 # Sed expression to map a string onto a valid CPP name.
10994 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10996 # Sed expression to map a string onto a valid variable name.
10997 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11001 ## ----------------------------------- ##
11002 ## Main body of $CONFIG_STATUS script. ##
11003 ## ----------------------------------- ##
11005 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11008 # Save the log message, to keep $0 and so on meaningful, and to
11009 # report actual input values of CONFIG_FILES etc. instead of their
11010 # values after options handling.
11012 This file was extended by gdbsupport $as_me 1.0, which was
11013 generated by GNU Autoconf 2.69. Invocation command line was
11015 CONFIG_FILES = $CONFIG_FILES
11016 CONFIG_HEADERS = $CONFIG_HEADERS
11017 CONFIG_LINKS = $CONFIG_LINKS
11018 CONFIG_COMMANDS = $CONFIG_COMMANDS
11021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11026 case $ac_config_files in *"
11027 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11030 case $ac_config_headers in *"
11031 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11036 # Files that config.status was made for.
11037 config_files="$ac_config_files"
11038 config_headers="$ac_config_headers"
11039 config_commands="$ac_config_commands"
11043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11045 \`$as_me' instantiates files and other configuration actions
11046 from templates according to the current configuration. Unless the files
11047 and actions are specified as TAGs, all are instantiated by default.
11049 Usage: $0 [OPTION]... [TAG]...
11051 -h, --help print this help, then exit
11052 -V, --version print version number and configuration settings, then exit
11053 --config print configuration, then exit
11054 -q, --quiet, --silent
11055 do not print progress messages
11056 -d, --debug don't remove temporary files
11057 --recheck update $as_me by reconfiguring in the same conditions
11058 --file=FILE[:TEMPLATE]
11059 instantiate the configuration file FILE
11060 --header=FILE[:TEMPLATE]
11061 instantiate the configuration header FILE
11063 Configuration files:
11066 Configuration headers:
11069 Configuration commands:
11072 Report bugs to the package provider."
11075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11078 gdbsupport config.status 1.0
11079 configured by $0, generated by GNU Autoconf 2.69,
11080 with options \\"\$ac_cs_config\\"
11082 Copyright (C) 2012 Free Software Foundation, Inc.
11083 This config.status script is free software; the Free Software Foundation
11084 gives unlimited permission to copy, distribute and modify it."
11091 test -n "\$AWK" || AWK=awk
11094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11095 # The default lists apply if the user does not specify any file.
11101 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11102 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11106 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11118 # Handling of the options.
11119 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11121 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11122 $as_echo "$ac_cs_version"; exit ;;
11123 --config |
--confi |
--conf |
--con |
--co |
--c )
11124 $as_echo "$ac_cs_config"; exit ;;
11125 --debug |
--debu |
--deb |
--de |
--d |
-d )
11127 --file |
--fil |
--fi |
--f )
11130 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11131 '') as_fn_error $?
"missing file argument" ;;
11133 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11134 ac_need_defaults
=false
;;
11135 --header |
--heade |
--head |
--hea )
11138 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11140 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11141 ac_need_defaults
=false
;;
11143 # Conflict between --help and --header
11144 as_fn_error $?
"ambiguous option: \`$1'
11145 Try \`$0 --help' for more information.";;
11146 --help |
--hel |
-h )
11147 $as_echo "$ac_cs_usage"; exit ;;
11148 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11149 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11152 # This is an error.
11153 -*) as_fn_error $?
"unrecognized option: \`$1'
11154 Try \`$0 --help' for more information." ;;
11156 *) as_fn_append ac_config_targets
" $1"
11157 ac_need_defaults
=false
;;
11163 ac_configure_extra_args
=
11165 if $ac_cs_silent; then
11167 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11172 if \$ac_cs_recheck; then
11173 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11176 CONFIG_SHELL='$SHELL'
11177 export CONFIG_SHELL
11182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11187 ## Running $as_me. ##
11193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11197 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11203 # Handling of arguments.
11204 for ac_config_target
in $ac_config_targets
11206 case $ac_config_target in
11207 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11208 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11209 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11211 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11216 # If the user did not use the arguments to specify the items to instantiate,
11217 # then the envvar interface is used. Set only those that are not.
11218 # We use the long form for the default assignment because of an extremely
11219 # bizarre bug on SunOS 4.1.3.
11220 if $ac_need_defaults; then
11221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11226 # Have a temporary directory for convenience. Make it in the build tree
11227 # simply because there is no reason against having it here, and in addition,
11228 # creating and moving files from /tmp can sometimes cause problems.
11229 # Hook for its removal unless debugging.
11230 # Note that there is a small window in which the directory will not be cleaned:
11231 # after its creation but before its name has been assigned to `$tmp'.
11235 trap 'exit_status=$?
11236 : "${ac_tmp:=$tmp}"
11237 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11239 trap 'as_fn_exit 1' 1 2 13 15
11241 # Create a (secure) tmp directory for tmp files.
11244 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11248 tmp
=.
/conf$$
-$RANDOM
11249 (umask 077 && mkdir
"$tmp")
11250 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11253 # Set up the scripts for CONFIG_FILES section.
11254 # No need to generate them if there are no CONFIG_FILES.
11255 # This happens for instance with `./config.status config.h'.
11256 if test -n "$CONFIG_FILES"; then
11259 ac_cr
=`echo X | tr X '\015'`
11260 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11261 # But we know of no other shell where ac_cr would be empty at this
11262 # point, so we can use a bashism as a fallback.
11263 if test "x$ac_cr" = x
; then
11264 eval ac_cr
=\$
\'\\r
\'
11266 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11267 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11270 ac_cs_awk_cr
=$ac_cr
11273 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11278 echo "cat >conf$$subs.awk <<_ACEOF" &&
11279 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11281 } >conf$$subs.sh ||
11282 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11283 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11285 for ac_last_try in false false false false false :; do
11286 . ./conf$$subs.sh ||
11287 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11289 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11290 if test $ac_delim_n = $ac_delim_num; then
11292 elif $ac_last_try; then
11293 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11295 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11298 rm -f conf$$subs.sh
11300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11301 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11305 s/^/S["/; s
/!.
*/"]=/
11315 s/\(.\{148\}\)..*/\1/
11317 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11322 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11329 s/\(.\{148\}\)..*/\1/
11331 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11335 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11340 ' <conf$$subs.awk | sed '
11345 ' >>$CONFIG_STATUS || ac_write_fail=1
11346 rm -f conf$$subs.awk
11347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11349 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11350 for (key in S) S_is_set[key] = 1
11356 nfields = split(line, field, "@
")
11358 len = length(field[1])
11359 for (i = 2; i < nfields; i++) {
11361 keylen = length(key)
11362 if (S_is_set[key]) {
11364 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11365 len += length(value) + length(field[++i])
11376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11377 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11378 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11381 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11382 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11385 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11386 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11387 # trailing colons and then remove the whole line if VPATH becomes empty
11388 # (actually we leave an empty line to preserve line numbers).
11389 if test "x
$srcdir" = x.; then
11390 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11409 fi # test -n "$CONFIG_FILES"
11411 # Set up the scripts for CONFIG_HEADERS section.
11412 # No need to generate them if there are no CONFIG_HEADERS.
11413 # This happens for instance with `./config.status Makefile'.
11414 if test -n "$CONFIG_HEADERS"; then
11415 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11419 # Transform confdefs.h into an awk script `defines.awk', embedded as
11420 # here-document in config.status, that substitutes the proper values into
11421 # config.h.in to produce config.h.
11423 # Create a delimiter string that does not exist in confdefs.h, to ease
11424 # handling of long lines.
11426 for ac_last_try in false false :; do
11427 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11428 if test -z "$ac_tt"; then
11430 elif $ac_last_try; then
11431 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11433 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11437 # For the awk script, D is an array of macro values keyed by name,
11438 # likewise P contains macro parameters if any. Preserve backslash
11439 # newline sequences.
11441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11443 s/.\{148\}/&'"$ac_delim"'/g
11446 s/^[ ]*#[ ]*define[ ][ ]*/ /
11453 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11455 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11460 D["\
1"]=" \
3\\\\\\n
"\\/p
11462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11467 s/.\{148\}/&'"$ac_delim"'/g
11472 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11475 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11477 ' <confdefs.h | sed '
11478 s/'"$ac_delim"'/"\\\
11479 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11482 for (key in D) D_is_set[key] = 1
11485 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11487 split(line, arg, " ")
11488 if (arg[1] == "#") {
11492 defundef
= substr
(arg
[1], 2)
11495 split(mac1
, mac2
, "(") #)
11497 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11498 if (D_is_set
[macro
]) {
11499 # Preserve the white space surrounding the "#".
11500 print prefix
"define", macro P
[macro
] D
[macro
]
11503 # Replace #undef with comments. This is necessary, for example,
11504 # in the case of _POSIX_SOURCE, which is predefined and required
11505 # on some systems where configure will not decide to define it.
11506 if (defundef
== "undef") {
11507 print
"/*", prefix defundef
, macro
, "*/"
11515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11516 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11517 fi # test -n "$CONFIG_HEADERS"
11520 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11525 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11527 case $ac_mode$ac_tag in
11529 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11530 :[FH
]-) ac_tag
=-:-;;
11531 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11548 -) ac_f
="$ac_tmp/stdin";;
11549 *) # Look for the file first in the build tree, then in the source tree
11550 # (if the path is not absolute). The absolute path cannot be DOS-style,
11551 # because $ac_f cannot contain `:'.
11555 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11557 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11559 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11560 as_fn_append ac_file_inputs
" '$ac_f'"
11563 # Let's still pretend it is `configure' which instantiates (i.e., don't
11564 # use $as_me), people would be surprised to read:
11565 # /* config.h. Generated by config.status. */
11566 configure_input
='Generated from '`
11567 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11569 if test x
"$ac_file" != x-
; then
11570 configure_input
="$ac_file. $configure_input"
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11572 $as_echo "$as_me: creating $ac_file" >&6;}
11574 # Neutralize special characters interpreted by sed in replacement strings.
11575 case $configure_input in #(
11576 *\
&* |
*\|
* |
*\\* )
11577 ac_sed_conf_input
=`$as_echo "$configure_input" |
11578 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11579 *) ac_sed_conf_input
=$configure_input;;
11583 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11584 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11589 ac_dir
=`$as_dirname -- "$ac_file" ||
11590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11591 X"$ac_file" : 'X\(//\)[^/]' \| \
11592 X"$ac_file" : 'X\(//\)$' \| \
11593 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11594 $as_echo X"$ac_file" |
11595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11599 /^X\(\/\/\)[^/].*/{
11612 as_dir
="$ac_dir"; as_fn_mkdir_p
11616 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11618 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11619 # A ".." for each directory in $ac_dir_suffix.
11620 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11621 case $ac_top_builddir_sub in
11622 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11623 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11626 ac_abs_top_builddir
=$ac_pwd
11627 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11628 # for backward compatibility:
11629 ac_top_builddir
=$ac_top_build_prefix
11632 .
) # We are building in place.
11634 ac_top_srcdir
=$ac_top_builddir_sub
11635 ac_abs_top_srcdir
=$ac_pwd ;;
11636 [\\/]* | ?
:[\\/]* ) # Absolute name.
11637 ac_srcdir
=$srcdir$ac_dir_suffix;
11638 ac_top_srcdir
=$srcdir
11639 ac_abs_top_srcdir
=$srcdir ;;
11640 *) # Relative name.
11641 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11642 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11643 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11645 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11655 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11656 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11658 ac_MKDIR_P
=$MKDIR_P
11660 [\\/$
]* | ?
:[\\/]* ) ;;
11661 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11666 # If the template does not know about datarootdir, expand it.
11667 # FIXME: This hack should be removed a few years after 2.60.
11668 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11679 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11680 *datarootdir
*) ac_datarootdir_seen
=yes;;
11681 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11683 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11686 ac_datarootdir_hack='
11687 s&@datadir@&$datadir&g
11688 s&@docdir@&$docdir&g
11689 s&@infodir@&$infodir&g
11690 s&@localedir@&$localedir&g
11691 s&@mandir@&$mandir&g
11692 s&\\\${datarootdir}&$datarootdir&g' ;;
11696 # Neutralize VPATH when `$srcdir' = `.'.
11697 # Shell code in configure.ac might set extrasub.
11698 # FIXME: do we really want to maintain this feature?
11699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11700 ac_sed_extra="$ac_vpsub
11703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11705 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11706 s|@configure_input@|
$ac_sed_conf_input|
;t t
11707 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11708 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11709 s
&@srcdir@
&$ac_srcdir&;t t
11710 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11711 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11712 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11713 s
&@builddir@
&$ac_builddir&;t t
11714 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11715 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11716 s
&@INSTALL@
&$ac_INSTALL&;t t
11717 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11718 $ac_datarootdir_hack
11720 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11721 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11723 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11724 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11725 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11726 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11728 which seems to be undefined. Please make sure it is defined" >&5
11729 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11730 which seems to be undefined. Please make sure it is defined" >&2;}
11732 rm -f "$ac_tmp/stdin"
11734 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11735 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11743 if test x"$ac_file" != x-; then
11745 $as_echo "/* $configure_input */" \
11746 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11747 } >"$ac_tmp/config.h" \
11748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11749 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11751 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11754 mv "$ac_tmp/config.h" "$ac_file" \
11755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11758 $as_echo "/* $configure_input */" \
11759 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11760 || as_fn_error $? "could not create -" "$LINENO" 5
11762 # Compute "$ac_file"'s index
in $config_headers.
11765 for _am_header
in $config_headers :; do
11766 case $_am_header in
11767 $_am_arg |
$_am_arg:* )
11770 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
11773 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11774 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11775 X"$_am_arg" : 'X\(//\)[^/]' \| \
11776 X"$_am_arg" : 'X\(//\)$' \| \
11777 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11778 $as_echo X"$_am_arg" |
11779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11783 /^X\(\/\/\)[^/].*/{
11795 s/.*/./; q'`/stamp-h
$_am_stamp_count
11798 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11799 $as_echo "$as_me: executing $ac_file commands" >&6;}
11804 case $ac_file$ac_mode in
11805 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
11806 # Older Autoconf quotes --file arguments for eval, but not when files
11807 # are listed without --file. Let's play safe and only enable the eval
11808 # if we detect the quoting.
11809 case $CONFIG_FILES in
11810 *\'*) eval set x
"$CONFIG_FILES" ;;
11811 *) set x
$CONFIG_FILES ;;
11816 # Strip MF so we end up with the name of the file.
11817 mf
=`echo "$mf" | sed -e 's/:.*$//'`
11818 # Check whether this is an Automake generated Makefile or not.
11819 # We used to match only the files named 'Makefile.in', but
11820 # some people rename them; so instead we look at the file content.
11821 # Grep'ing the first line is not enough: some people post-process
11822 # each Makefile.in and add a new line on top of each file to say so.
11823 # Grep'ing the whole file is not good either: AIX grep has a line
11824 # limit of 2048, but all sed's we know have understand at least 4000.
11825 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
11826 dirpart
=`$as_dirname -- "$mf" ||
11827 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11828 X"$mf" : 'X\(//\)[^/]' \| \
11829 X"$mf" : 'X\(//\)$' \| \
11830 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11836 /^X\(\/\/\)[^/].*/{
11852 # Extract the definition of DEPDIR, am__include, and am__quote
11853 # from the Makefile without running 'make'.
11854 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
11855 test -z "$DEPDIR" && continue
11856 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
11857 test -z "$am__include" && continue
11858 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
11859 # Find all dependency output files, they are included files with
11860 # $(DEPDIR) in their names. We invoke sed twice because it is the
11861 # simplest approach to changing $(DEPDIR) to its actual value in the
11863 for file in `sed -n "
11864 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11865 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11866 # Make sure the directory exists.
11867 test -f "$dirpart/$file" && continue
11868 fdir
=`$as_dirname -- "$file" ||
11869 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11870 X"$file" : 'X\(//\)[^/]' \| \
11871 X"$file" : 'X\(//\)$' \| \
11872 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11873 $as_echo X"$file" |
11874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11878 /^X\(\/\/\)[^/].*/{
11891 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
11892 # echo "creating $dirpart/$file"
11893 echo '# dummy' > "$dirpart/$file"
11905 ac_clean_files
=$ac_clean_files_save
11907 test $ac_write_fail = 0 ||
11908 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
11911 # configure is writing to config.log, and then calls config.status.
11912 # config.status does its own redirection, appending to config.log.
11913 # Unfortunately, on DOS this fails, as config.log is still kept open
11914 # by configure, so config.status won't be able to write to it; its
11915 # output is simply discarded. So we exec the FD to /dev/null,
11916 # effectively closing config.log, so it can be properly (re)opened and
11917 # appended to by config.status. When coming back to configure, we
11918 # need to make the FD available again.
11919 if test "$no_create" != yes; then
11921 ac_config_status_args
=
11922 test "$silent" = yes &&
11923 ac_config_status_args
="$ac_config_status_args --quiet"
11925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11928 # would make configure fail if this is the last instruction.
11929 $ac_cs_success || as_fn_exit
1
11931 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11933 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}