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
693 INSTALL_STRIP_PROGRAM
709 MAINTAINER_MODE_FALSE
750 program_transform_name
763 enable_option_checking
764 enable_maintainer_mode
766 enable_dependency_tracking
776 enable_build_warnings
777 enable_gdb_build_warnings
779 ac_precious_vars
='build_alias
793 # Initialize some variables set by options.
795 ac_init_version
=false
796 ac_unrecognized_opts
=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name
=s
,x
,x
,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir
='${exec_prefix}/bin'
822 sbindir
='${exec_prefix}/sbin'
823 libexecdir
='${exec_prefix}/libexec'
824 datarootdir
='${prefix}/share'
825 datadir
='${datarootdir}'
826 sysconfdir
='${prefix}/etc'
827 sharedstatedir
='${prefix}/com'
828 localstatedir
='${prefix}/var'
829 includedir
='${prefix}/include'
830 oldincludedir
='/usr/include'
831 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir
='${datarootdir}/info'
837 libdir
='${exec_prefix}/lib'
838 localedir
='${datarootdir}/locale'
839 mandir
='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\
$ac_option
853 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
864 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
866 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
869 -build |
--build |
--buil |
--bui |
--bu)
870 ac_prev
=build_alias
;;
871 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
872 build_alias
=$ac_optarg ;;
874 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
875 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
876 ac_prev
=cache_file
;;
877 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
878 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
879 cache_file
=$ac_optarg ;;
882 cache_file
=config.cache
;;
884 -datadir |
--datadir |
--datadi |
--datad)
886 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
887 datadir
=$ac_optarg ;;
889 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
890 |
--dataroo |
--dataro |
--datar)
891 ac_prev
=datarootdir
;;
892 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
893 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
894 datarootdir
=$ac_optarg ;;
896 -disable-* |
--disable-*)
897 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
900 as_fn_error $?
"invalid feature name: $ac_useropt"
901 ac_useropt_orig
=$ac_useropt
902 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep
=', ';;
910 eval enable_
$ac_useropt=no
;;
912 -docdir |
--docdir |
--docdi |
--doc |
--do)
914 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
917 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
919 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
922 -enable-* |
--enable-*)
923 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
926 as_fn_error $?
"invalid feature name: $ac_useropt"
927 ac_useropt_orig
=$ac_useropt
928 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep
=', ';;
936 eval enable_
$ac_useropt=\
$ac_optarg ;;
938 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
939 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
940 |
--exec |
--exe |
--ex)
941 ac_prev
=exec_prefix
;;
942 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
943 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
944 |
--exec=* |
--exe=* |
--ex=*)
945 exec_prefix
=$ac_optarg ;;
947 -gas |
--gas |
--ga |
--g)
948 # Obsolete; use --with-gas.
951 -help |
--help |
--hel |
--he |
-h)
953 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
954 ac_init_help
=recursive
;;
955 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
956 ac_init_help
=short
;;
958 -host |
--host |
--hos |
--ho)
959 ac_prev
=host_alias
;;
960 -host=* |
--host=* |
--hos=* |
--ho=*)
961 host_alias
=$ac_optarg ;;
963 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
965 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
967 htmldir
=$ac_optarg ;;
969 -includedir |
--includedir |
--includedi |
--included |
--include \
970 |
--includ |
--inclu |
--incl |
--inc)
971 ac_prev
=includedir
;;
972 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
973 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
974 includedir
=$ac_optarg ;;
976 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
978 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
979 infodir
=$ac_optarg ;;
981 -libdir |
--libdir |
--libdi |
--libd)
983 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
986 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
987 |
--libexe |
--libex |
--libe)
988 ac_prev
=libexecdir
;;
989 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
990 |
--libexe=* |
--libex=* |
--libe=*)
991 libexecdir
=$ac_optarg ;;
993 -localedir |
--localedir |
--localedi |
--localed |
--locale)
995 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
996 localedir
=$ac_optarg ;;
998 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
999 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1000 ac_prev
=localstatedir
;;
1001 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1002 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1003 localstatedir
=$ac_optarg ;;
1005 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1007 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1008 mandir
=$ac_optarg ;;
1010 -nfp |
--nfp |
--nf)
1011 # Obsolete; use --without-fp.
1014 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1015 |
--no-cr |
--no-c |
-n)
1018 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1019 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1022 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1023 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1024 |
--oldin |
--oldi |
--old |
--ol |
--o)
1025 ac_prev
=oldincludedir
;;
1026 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1027 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1028 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1029 oldincludedir
=$ac_optarg ;;
1031 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1033 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1034 prefix
=$ac_optarg ;;
1036 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1037 |
--program-pre |
--program-pr |
--program-p)
1038 ac_prev
=program_prefix
;;
1039 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1040 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1041 program_prefix
=$ac_optarg ;;
1043 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1044 |
--program-suf |
--program-su |
--program-s)
1045 ac_prev
=program_suffix
;;
1046 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1047 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1048 program_suffix
=$ac_optarg ;;
1050 -program-transform-name |
--program-transform-name \
1051 |
--program-transform-nam |
--program-transform-na \
1052 |
--program-transform-n |
--program-transform- \
1053 |
--program-transform |
--program-transfor \
1054 |
--program-transfo |
--program-transf \
1055 |
--program-trans |
--program-tran \
1056 |
--progr-tra |
--program-tr |
--program-t)
1057 ac_prev
=program_transform_name
;;
1058 -program-transform-name=* |
--program-transform-name=* \
1059 |
--program-transform-nam=* |
--program-transform-na=* \
1060 |
--program-transform-n=* |
--program-transform-=* \
1061 |
--program-transform=* |
--program-transfor=* \
1062 |
--program-transfo=* |
--program-transf=* \
1063 |
--program-trans=* |
--program-tran=* \
1064 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1065 program_transform_name
=$ac_optarg ;;
1067 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1069 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1070 pdfdir
=$ac_optarg ;;
1072 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1074 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1077 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1078 |
-silent |
--silent |
--silen |
--sile |
--sil)
1081 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1083 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1085 sbindir
=$ac_optarg ;;
1087 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1088 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1089 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1091 ac_prev
=sharedstatedir
;;
1092 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1093 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1094 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1096 sharedstatedir
=$ac_optarg ;;
1098 -site |
--site |
--sit)
1100 -site=* |
--site=* |
--sit=*)
1103 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1105 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1106 srcdir
=$ac_optarg ;;
1108 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1109 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1110 ac_prev
=sysconfdir
;;
1111 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1112 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1113 sysconfdir
=$ac_optarg ;;
1115 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1116 ac_prev
=target_alias
;;
1117 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1118 target_alias
=$ac_optarg ;;
1120 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1123 -version |
--version |
--versio |
--versi |
--vers |
-V)
1124 ac_init_version
=: ;;
1127 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1130 as_fn_error $?
"invalid package name: $ac_useropt"
1131 ac_useropt_orig
=$ac_useropt
1132 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
1140 eval with_
$ac_useropt=\
$ac_optarg ;;
1142 -without-* |
--without-*)
1143 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1146 as_fn_error $?
"invalid package name: $ac_useropt"
1147 ac_useropt_orig
=$ac_useropt
1148 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep
=', ';;
1156 eval with_
$ac_useropt=no
;;
1159 # Obsolete; use --with-x.
1162 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1163 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1164 ac_prev
=x_includes
;;
1165 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1166 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1167 x_includes
=$ac_optarg ;;
1169 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1170 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1171 ac_prev
=x_libraries
;;
1172 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1173 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1174 x_libraries
=$ac_optarg ;;
1176 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1181 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1185 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1187 eval $ac_envvar=\
$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 if test -n "$ac_prev"; then
1202 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $?
"missing argument to $ac_option"
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1209 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 # Check all directory arguments for consistency.
1215 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val
=\$
$ac_var
1221 # Remove trailing slashes.
1224 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\
$ac_val;;
1227 # Be sure to have absolute directory names.
1229 [\\/$
]* | ?
:[\\/]* ) continue;;
1230 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1232 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1240 target
=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x
; then
1244 if test "x$build_alias" = x
; then
1245 cross_compiling
=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1252 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1254 test "$silent" = yes && exec 6>/dev
/null
1257 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di
=`ls -di .` &&
1259 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $?
"working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $?
"pwd does not report name of working directory"
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted
=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir
=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1297 ac_srcdir_defaulted
=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1301 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1303 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var
in $ac_precious_vars; do
1318 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1320 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1394 --build=BUILD configure
for building on BUILD
[guessed
]
1395 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1396 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive
) echo "Configuration of gdbsupport 1.0:";;
1407 --disable-option-checking ignore unrecognized
--enable/--with options
1408 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1409 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1410 --enable-maintainer-mode
1411 enable make rules and dependencies not useful
(and
1412 sometimes confusing
) to the casual installer
1413 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1414 --disable-silent-rules verbose build output
(undo
: "make V=0")
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --enable-plugins Enable support
for plugins
1420 --disable-largefile omit support
for large files
1421 --disable-rpath do not hardcode runtime library paths
1422 --enable-unit-tests Enable the inclusion of unit tests when compiling
1424 --enable-werror treat compile warnings as errors
1425 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1426 --enable-gdb-build-warnings
1427 enable GDB specific build-time compiler warnings
if
1431 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1432 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1433 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1434 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1435 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1436 --without-libipt-prefix don
't search for libipt in includedir and libdir
1437 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 CXX C++ compiler command
1448 CXXFLAGS C++ compiler flags
1451 Use these variables to override the choices made by `configure' or to
help
1452 it to
find libraries and programs with nonstandard names
/locations.
1454 Report bugs to the package provider.
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1468 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1470 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1475 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1478 ac_abs_top_builddir
=$ac_pwd
1479 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir
=$ac_top_build_prefix
1484 .
) # We are building in place.
1486 ac_top_srcdir
=$ac_top_builddir_sub
1487 ac_abs_top_srcdir
=$ac_pwd ;;
1488 [\\/]* | ?
:[\\/]* ) # Absolute name.
1489 ac_srcdir
=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir
=$srcdir
1491 ac_abs_top_srcdir
=$srcdir ;;
1493 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1497 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1499 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1517 gdbsupport configure
1.0
1518 generated by GNU Autoconf
2.69
1520 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1521 This configure
script is free software
; the Free Software Foundation
1522 gives unlimited permission to copy
, distribute and modify it.
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile
()
1536 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1537 rm -f conftest.
$ac_objext
1538 if { { ac_try
="$ac_compile"
1540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1567 } # ac_fn_c_try_compile
1569 # ac_fn_cxx_try_compile LINENO
1570 # ----------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_cxx_try_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1579 *) ac_try_echo
=$ac_try;;
1581 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1585 if test -s conftest.err
; then
1586 grep -v '^ *+' conftest.err
>conftest.er1
1587 cat conftest.er1
>&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_cxx_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.
$ac_objext; then :
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.
$ac_ext >&5
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status
$ac_retval
1605 } # ac_fn_cxx_try_compile
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1613 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647 # the include files in INCLUDES and setting the cache variable VAR
1649 ac_fn_c_check_header_mongrel ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if eval \${$3+:} false; then :
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1662 # Is the header compilable?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664 $as_echo_n "checking $2 usability... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_header_compiler=yes
1673 ac_header_compiler=no
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677 $as_echo "$ac_header_compiler" >&6; }
1679 # Is the header present?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681 $as_echo_n "checking $2 presence... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1686 if ac_fn_c_try_cpp "$LINENO"; then :
1687 ac_header_preproc=yes
1689 ac_header_preproc=no
1691 rm -f conftest.err conftest.i conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693 $as_echo "$ac_header_preproc" >&6; }
1695 # So? What about this header?
1696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1707 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1711 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1721 eval "$3=\$ac_header_compiler"
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 } # ac_fn_c_check_header_mongrel
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1741 *) ac_try_echo
=$ac_try;;
1743 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists and can be compiled using the include files in
1776 # INCLUDES, setting the cache variable VAR accordingly.
1777 ac_fn_c_check_header_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1790 if ac_fn_c_try_compile "$LINENO"; then :
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 } # ac_fn_c_check_header_compile
1804 # ac_fn_c_try_link LINENO
1805 # -----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext conftest$ac_exeext
1811 if { { ac_try="$ac_link"
1813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1814 *) ac_try_echo
=$ac_try;;
1816 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>conftest.err
1820 if test -s conftest.err
; then
1821 grep -v '^ *+' conftest.err
>conftest.er1
1822 cat conftest.er1
>&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest
$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 test -x conftest
$ac_exeext
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.
$ac_ext >&5
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status
$ac_retval
1848 } # ac_fn_c_try_link
1850 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1851 # -------------------------------------------
1852 # Tests whether TYPE exists after having included INCLUDES, setting cache
1853 # variable VAR accordingly.
1854 ac_fn_c_check_type
()
1856 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \
${$3+:} false
; then :
1860 $as_echo_n "(cached) " >&6
1863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1875 if ac_fn_c_try_compile
"$LINENO"; then :
1876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1888 if ac_fn_c_try_compile
"$LINENO"; then :
1893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 } # ac_fn_c_check_type
1904 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1905 # --------------------------------------------
1906 # Tries to find the compile-time value of EXPR in a program that includes
1907 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1909 ac_fn_c_compute_int
()
1911 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1912 if test "$cross_compiling" = yes; then
1913 # Depending upon the size, compute the lo and hi bounds.
1914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1920 static int test_array [1 - 2 * !(($2) >= 0)];
1922 return test_array [0];
1928 if ac_fn_c_try_compile
"$LINENO"; then :
1931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1937 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1939 return test_array [0];
1945 if ac_fn_c_try_compile
"$LINENO"; then :
1946 ac_hi
=$ac_mid; break
1948 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1949 if test $ac_lo -le $ac_mid; then
1953 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1964 static int test_array [1 - 2 * !(($2) < 0)];
1966 return test_array [0];
1972 if ac_fn_c_try_compile
"$LINENO"; then :
1975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1981 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1983 return test_array [0];
1989 if ac_fn_c_try_compile
"$LINENO"; then :
1990 ac_lo
=$ac_mid; break
1992 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1993 if test $ac_mid -le $ac_hi; then
1997 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2007 # Binary search between lo and hi bounds.
2008 while test "x$ac_lo" != "x$ac_hi"; do
2009 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2018 return test_array [0];
2024 if ac_fn_c_try_compile
"$LINENO"; then :
2027 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2032 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2039 static long int longval () { return $2; }
2040 static unsigned long int ulongval () { return $2; }
2047 FILE *f = fopen ("conftest.val", "w");
2052 long int i = longval ();
2055 fprintf (f, "%ld", i);
2059 unsigned long int i = ulongval ();
2062 fprintf (f, "%lu", i);
2064 /* Do not output a trailing newline, as this causes \r\n confusion
2065 on some platforms. */
2066 return ferror (f) || fclose (f) != 0;
2072 if ac_fn_c_try_run
"$LINENO"; then :
2073 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status
$ac_retval
2085 } # ac_fn_c_compute_int
2087 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2088 # ---------------------------------------------
2089 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2091 ac_fn_c_check_decl
()
2093 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2094 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2095 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2097 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2098 if eval \
${$3+:} false
; then :
2099 $as_echo_n "(cached) " >&6
2101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 #ifndef $as_decl_name
2109 (void) $as_decl_use;
2111 (void) $as_decl_name;
2119 if ac_fn_c_try_compile
"$LINENO"; then :
2124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_decl
2133 # ac_fn_c_check_func LINENO FUNC VAR
2134 # ----------------------------------
2135 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2136 ac_fn_c_check_func
()
2138 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \
${$3+:} false
; then :
2142 $as_echo_n "(cached) " >&6
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2146 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2148 #define $2 innocuous_$2
2150 /* System header to define __stub macros and hopefully few prototypes,
2151 which can conflict with char $2 (); below.
2152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2153 <limits.h> exists even on freestanding compilers. */
2156 # include <limits.h>
2158 # include <assert.h>
2163 /* Override any GCC internal prototype to avoid an error.
2164 Use char because int might match the return type of a GCC
2165 builtin and then its argument prototype would still apply. */
2170 /* The GNU C library defines this for functions which it implements
2171 to always fail with ENOSYS. Some functions are actually named
2172 something starting with __ and the normal name is an alias. */
2173 #if defined __stub_$2 || defined __stub___$2
2185 if ac_fn_c_try_link
"$LINENO"; then :
2190 rm -f core conftest.err conftest.
$ac_objext \
2191 conftest
$ac_exeext conftest.
$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_check_func
2200 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2201 # ----------------------------------------------------
2202 # Tries to find if the field MEMBER exists in type AGGR, after including
2203 # INCLUDES, setting cache variable VAR accordingly.
2204 ac_fn_c_check_member
()
2206 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2208 $as_echo_n "checking for $2.$3... " >&6; }
2209 if eval \
${$4+:} false
; then :
2210 $as_echo_n "(cached) " >&6
2212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2225 if ac_fn_c_try_compile
"$LINENO"; then :
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2235 if (sizeof ac_aggr.$3)
2241 if ac_fn_c_try_compile
"$LINENO"; then :
2246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 } # ac_fn_c_check_member
2257 # ac_fn_cxx_try_link LINENO
2258 # -------------------------
2259 # Try to link conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_cxx_try_link
()
2262 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2263 rm -f conftest.
$ac_objext conftest
$ac_exeext
2264 if { { ac_try
="$ac_link"
2266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>conftest.err
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest$ac_exeext && {
2283 test "$cross_compiling" = yes ||
2284 test -x conftest$ac_exeext
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2294 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2295 # interfere with the next link command; also delete a directory that is
2296 # left behind by Apple's compiler. We do this before executing the actions.
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 as_fn_set_status $ac_retval
2301 } # ac_fn_cxx_try_link
2303 # ac_fn_cxx_check_func LINENO FUNC VAR
2304 # ------------------------------------
2305 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2306 ac_fn_cxx_check_func ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if eval \${$3+:} false; then :
2312 $as_echo_n "(cached) " >&6
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2316 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2318 #define $2 innocuous_$2
2320 /* System header to define __stub macros and hopefully few prototypes,
2321 which can conflict with char $2 (); below.
2322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323 <limits.h> exists even on freestanding compilers. */
2326 # include <limits.h>
2328 # include <assert.h>
2333 /* Override any GCC internal prototype to avoid an error.
2334 Use char because int might match the return type of a GCC
2335 builtin and then its argument prototype would still apply. */
2340 /* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343 #if defined __stub_$2 || defined __stub___$2
2355 if ac_fn_cxx_try_link "$LINENO"; then :
2360 rm -f core conftest.err conftest.$ac_objext \
2361 conftest$ac_exeext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 } # ac_fn_cxx_check_func
2369 cat >config.log <<_ACEOF
2370 This file contains any messages produced by compilers while
2371 running configure, to aid debugging if configure makes a mistake.
2373 It was created by gdbsupport $as_me 1.0, which was
2374 generated by GNU Autoconf 2.69. Invocation command line was
2386 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2387 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2388 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2389 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2390 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2392 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2393 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2395 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2396 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2397 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2398 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2399 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2400 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2401 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 $as_echo "PATH: $as_dir"
2426 # Keep a trace of the command line.
2427 # Strip out --no-create and --no-recursion so they do not pile up.
2428 # Strip out --silent because we don't want to record it for future runs.
2429 # Also quote any args containing shell meta-characters.
2430 # Make two passes to allow for proper duplicate-argument suppression.
2434 ac_must_keep_next=false
2440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2442 | -silent | --silent | --silen | --sile | --sil)
2445 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2448 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2450 as_fn_append ac_configure_args1 " '$ac_arg'"
2451 if test $ac_must_keep_next = true; then
2452 ac_must_keep_next=false # Got value, back to normal.
2455 *=* | --config-cache | -C | -disable-* | --disable-* \
2456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2458 | -with-* | --with-* | -without-* | --without-* | --x)
2459 case "$ac_configure_args0 " in
2460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2463 -* ) ac_must_keep_next=true ;;
2466 as_fn_append ac_configure_args " '$ac_arg'"
2471 { ac_configure_args0=; unset ac_configure_args0;}
2472 { ac_configure_args1=; unset ac_configure_args1;}
2474 # When interrupted or exit'd, cleanup temporary files, and complete
2475 # config.log. We remove comments because anyway the quotes in there
2476 # would cause problems or look ugly.
2477 # WARNING: Use '\'' to represent an apostrophe within the trap.
2478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2479 trap 'exit_status=$?
2480 # Save into config.log some information that might help in debugging.
2484 $as_echo "## ---------------- ##
2485 ## Cache variables. ##
2486 ## ---------------- ##"
2488 # The following way of writing the cache mishandles newlines in values,
2490 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2491 eval ac_val=\$$ac_var
2495 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2496 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2499 _ | IFS | as_nl) ;; #(
2500 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2501 *) { eval $ac_var=; unset $ac_var;} ;;
2506 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2507 *${as_nl}ac_space=\ *)
2509 "s/'\''/'\''\\\\'\'''\''/g;
2510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2520 $as_echo "## ----------------- ##
2521 ## Output variables. ##
2522 ## ----------------- ##"
2524 for ac_var in $ac_subst_vars
2526 eval ac_val=\$$ac_var
2528 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 $as_echo "$ac_var='\''$ac_val'\''"
2534 if test -n "$ac_subst_files"; then
2535 $as_echo "## ------------------- ##
2536 ## File substitutions. ##
2537 ## ------------------- ##"
2539 for ac_var in $ac_subst_files
2541 eval ac_val=\$$ac_var
2543 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 $as_echo "$ac_var='\''$ac_val'\''"
2550 if test -s confdefs.h; then
2551 $as_echo "## ----------- ##
2558 test "$ac_signal" != 0 &&
2559 $as_echo "$as_me: caught signal $ac_signal"
2560 $as_echo "$as_me: exit $exit_status"
2562 rm -f core *.core core.conftest.* &&
2563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2566 for ac_signal in 1 2 13 15; do
2567 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2571 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2572 rm -f -r conftest* confdefs.h
2574 $as_echo "/* confdefs.h */" > confdefs.h
2576 # Predefined preprocessor variables.
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_NAME "$PACKAGE_NAME"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_STRING "$PACKAGE_STRING"
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_URL "$PACKAGE_URL"
2603 # Let the site file select an alternate cache file if it wants to.
2604 # Prefer an explicitly selected file to automatically selected ones.
2607 if test -n "$CONFIG_SITE"; then
2608 # We do not want a PATH search for config.site.
2609 case $CONFIG_SITE in #((
2610 -*) ac_site_file1=./$CONFIG_SITE;;
2611 */*) ac_site_file1=$CONFIG_SITE;;
2612 *) ac_site_file1=./$CONFIG_SITE;;
2614 elif test "x$prefix" != xNONE; then
2615 ac_site_file1=$prefix/share/config.site
2616 ac_site_file2=$prefix/etc/config.site
2618 ac_site_file1=$ac_default_prefix/share/config.site
2619 ac_site_file2=$ac_default_prefix/etc/config.site
2621 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2623 test "x$ac_site_file" = xNONE && continue
2624 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2626 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2627 sed 's/^/| /' "$ac_site_file" >&5
2629 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631 as_fn_error $? "failed to load site
script $ac_site_file
2632 See \
`config.log' for more details" "$LINENO" 5; }
2636 if test -r "$cache_file"; then
2637 # Some versions of bash will fail to source /dev/null (special files
2638 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2639 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2641 $as_echo "$as_me: loading cache $cache_file" >&6;}
2643 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2644 *) . "./$cache_file";;
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2649 $as_echo "$as_me: creating cache $cache_file" >&6;}
2653 as_fn_append ac_header_list " stdlib.h"
2654 as_fn_append ac_header_list " unistd.h"
2655 as_fn_append ac_header_list " sys/param.h"
2656 # Check that the precious variables saved in the cache have kept the same
2658 ac_cache_corrupted=false
2659 for ac_var in $ac_precious_vars; do
2660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661 eval ac_new_set=\$ac_env_${ac_var}_set
2662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663 eval ac_new_val=\$ac_env_${ac_var}_value
2664 case $ac_old_set,$ac_new_set in
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2667 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2671 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2675 if test "x$ac_old_val" != "x$ac_new_val"; then
2676 # differences in whitespace do not lead to failure.
2677 ac_old_val_w=`echo x
$ac_old_val`
2678 ac_new_val_w=`echo x
$ac_new_val`
2679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2681 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2682 ac_cache_corrupted=:
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2685 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686 eval $ac_var=\$ac_old_val
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2689 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2691 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2694 # Pass precious variables to config.status.
2695 if test "$ac_new_set" = set; then
2697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2698 *) ac_arg=$ac_var=$ac_new_val ;;
2700 case " $ac_configure_args " in
2701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706 if $ac_cache_corrupted; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2710 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2711 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2713 ## -------------------- ##
2714 ## Main body of script. ##
2715 ## -------------------- ##
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 ac_config_headers="$ac_config_headers config.h:config.in"
2731 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2732 if test -f "$ac_dir/install-sh"; then
2734 ac_install_sh="$ac_aux_dir/install-sh -c"
2736 elif test -f "$ac_dir/install.sh"; then
2738 ac_install_sh="$ac_aux_dir/install.sh -c"
2740 elif test -f "$ac_dir/shtool"; then
2742 ac_install_sh="$ac_aux_dir/shtool install -c"
2746 if test -z "$ac_aux_dir"; then
2747 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2750 # These three variables are undocumented and unsupported,
2751 # and are intended to be withdrawn in a future Autoconf release.
2752 # They can cause serious problems if a builder's source tree is in a directory
2753 # whose full name contains unusual characters.
2754 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2755 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2756 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2759 # Make sure we can run config.sub.
2760 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2761 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2764 $as_echo_n "checking build system type... " >&6; }
2765 if ${ac_cv_build+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 ac_build_alias=$build_alias
2769 test "x$ac_build_alias" = x &&
2770 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2771 test "x$ac_build_alias" = x &&
2772 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2773 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2778 $as_echo "$ac_cv_build" >&6; }
2779 case $ac_cv_build in
2781 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784 ac_save_IFS=$IFS; IFS='-'
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2794 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2798 $as_echo_n "checking host system type... " >&6; }
2799 if ${ac_cv_host+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 if test "x$host_alias" = x; then
2803 ac_cv_host=$ac_cv_build
2805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2811 $as_echo "$ac_cv_host" >&6; }
2814 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817 ac_save_IFS=$IFS; IFS='-'
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2827 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2831 $as_echo_n "checking target system type... " >&6; }
2832 if ${ac_cv_target+:} false; then :
2833 $as_echo_n "(cached) " >&6
2835 if test "x$target_alias" = x; then
2836 ac_cv_target=$ac_cv_host
2838 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2844 $as_echo "$ac_cv_target" >&6; }
2845 case $ac_cv_target in
2847 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2849 target=$ac_cv_target
2850 ac_save_IFS=$IFS; IFS='-'
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2860 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2863 # The aliases save the names the user supplied, while $host etc.
2864 # will get canonicalized.
2865 test -n "$target_alias" &&
2866 test "$program_prefix$program_suffix$program_transform_name" = \
2868 program_prefix=${target_alias}-
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2872 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2873 # Check whether --enable-maintainer-mode was given.
2874 if test "${enable_maintainer_mode+set}" = set; then :
2875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2877 USE_MAINTAINER_MODE=no
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2881 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2882 if test $USE_MAINTAINER_MODE = yes; then
2883 MAINTAINER_MODE_TRUE=
2884 MAINTAINER_MODE_FALSE='#'
2886 MAINTAINER_MODE_TRUE='#'
2887 MAINTAINER_MODE_FALSE=
2890 MAINT=$MAINTAINER_MODE_TRUE
2894 for ac_dir in .. "$srcdir"/..; do
2895 if test -f "$ac_dir/install-sh"; then
2897 ac_install_sh="$ac_aux_dir/install-sh -c"
2899 elif test -f "$ac_dir/install.sh"; then
2901 ac_install_sh="$ac_aux_dir/install.sh -c"
2903 elif test -f "$ac_dir/shtool"; then
2905 ac_install_sh="$ac_aux_dir/shtool install -c"
2909 if test -z "$ac_aux_dir"; then
2910 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2913 # These three variables are undocumented and unsupported,
2914 # and are intended to be withdrawn in a future Autoconf release.
2915 # They can cause serious problems if a builder's source tree is in a directory
2916 # whose full name contains unusual characters.
2917 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2918 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2919 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2922 am__api_version='1.15'
2924 # Find a good install program. We prefer a C program (faster),
2925 # so one script is as good as another. But avoid the broken or
2926 # incompatible versions:
2927 # SysV /etc/install, /usr/sbin/install
2928 # SunOS /usr/etc/install
2929 # IRIX /sbin/install
2931 # AmigaOS /C/install, which installs bootblocks on floppy discs
2932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2935 # OS/2's system install, which has a completely different semantic
2936 # ./install, which can be erroneously created by make from ./install.sh.
2937 # Reject install programs that cannot install multiple files.
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2939 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2940 if test -z "$INSTALL"; then
2941 if ${ac_cv_path_install+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 # Account for people who put trailing slashes in PATH elements.
2950 case $as_dir/ in #((
2951 ./ | .// | /[cC]/* | \
2952 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2953 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2956 # OSF1 and SCO ODT 3.0 have their own names for install.
2957 # Don't use installbsd from OSF since it installs stuff as root
2959 for ac_prog in ginstall scoinst install; do
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2962 if test $ac_prog = install &&
2963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964 # AIX install. It has an incompatible calling convention.
2966 elif test $ac_prog = install &&
2967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # program-specific install script used by HP pwplus--don't use.
2971 rm -rf conftest.one conftest.two conftest.dir
2972 echo one > conftest.one
2973 echo two > conftest.two
2975 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2976 test -s conftest.one && test -s conftest.two &&
2977 test -s conftest.dir/conftest.one &&
2978 test -s conftest.dir/conftest.two
2980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2993 rm -rf conftest.one conftest.two conftest.dir
2996 if test "${ac_cv_path_install+set}" = set; then
2997 INSTALL=$ac_cv_path_install
2999 # As a last resort, use the slow shell script. Don't cache a
3000 # value for INSTALL within a source directory, because that will
3001 # break other packages using the cache if that directory is
3002 # removed, or if the value is a relative name.
3003 INSTALL=$ac_install_sh
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3007 $as_echo "$INSTALL" >&6; }
3009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3010 # It thinks the first close brace ends the variable substitution.
3011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3018 $as_echo_n "checking whether build environment is sane... " >&6; }
3019 # Reject unsafe characters in $srcdir or the absolute working directory
3020 # name. Accept space and tab only in the latter.
3024 *[\\\"\#\$\&\'\`$am_lf]*)
3025 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3028 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3029 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3032 # Do 'set' in a subshell so we don't clobber the current shell's
3033 # arguments. Must try -L first in case configure is actually a
3034 # symlink; some systems play weird games with the mod time of symlinks
3035 # (eg FreeBSD returns the mod time of the symlink's containing
3039 for am_try
in 1 2; do
3040 echo "timestamp, slept: $am_has_slept" > conftest.
file
3041 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3042 if test "$*" = "X"; then
3044 set X
`ls -t "$srcdir/configure" conftest.file`
3046 if test "$*" != "X $srcdir/configure conftest.file" \
3047 && test "$*" != "X conftest.file $srcdir/configure"; then
3049 # If neither matched, then we have a broken ls. This can happen
3050 # if, for instance, CONFIG_SHELL is bash and it inherits a
3051 # broken ls alias from the environment. This has actually
3052 # happened. Such a system could not be considered "sane".
3053 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3054 alias in your environment" "$LINENO" 5
3056 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3063 test "$2" = conftest.
file
3069 as_fn_error $?
"newly created file is older than distributed files!
3070 Check your system clock" "$LINENO" 5
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073 $as_echo "yes" >&6; }
3074 # If we didn't sleep, we still need to ensure time stamps of config.status and
3075 # generated files are strictly newer.
3077 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3084 test "$program_prefix" != NONE
&&
3085 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3086 # Use a double $ so make ignores it.
3087 test "$program_suffix" != NONE
&&
3088 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3089 # Double any \ or $.
3090 # By default was `s,x,x', remove it if useless.
3091 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3092 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3094 # Expand $ac_aux_dir to an absolute path.
3095 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3097 if test x
"${MISSING+set}" != xset
; then
3100 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3102 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3105 # Use eval to expand $SHELL
3106 if eval "$MISSING --is-lightweight"; then
3107 am_missing_run
="$MISSING "
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3111 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3114 if test x
"${install_sh+set}" != xset
; then
3117 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3119 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3123 # Installed binaries are usually stripped using 'strip' when the user
3124 # run "make install-strip". However 'strip' might not be the right
3125 # tool to use in cross-compilation environments, therefore Automake
3126 # will honor the 'STRIP' environment variable to overrule this program.
3127 if test "$cross_compiling" != no
; then
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3130 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_STRIP+:} false
; then :
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$STRIP"; then
3137 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir
=.
3144 for ac_exec_ext
in '' $ac_executable_extensions; do
3145 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 STRIP
=$ac_cv_prog_STRIP
3157 if test -n "$STRIP"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3159 $as_echo "$STRIP" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3167 if test -z "$ac_cv_prog_STRIP"; then
3169 # Extract the first word of "strip", so it can be a program name with args.
3170 set dummy strip
; ac_word
=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3174 $as_echo_n "(cached) " >&6
3176 if test -n "$ac_ct_STRIP"; then
3177 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3183 test -z "$as_dir" && as_dir
=.
3184 for ac_exec_ext
in '' $ac_executable_extensions; do
3185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_ac_ct_STRIP
="strip"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3197 if test -n "$ac_ct_STRIP"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3199 $as_echo "$ac_ct_STRIP" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3205 if test "x$ac_ct_STRIP" = x
; then
3208 case $cross_compiling:$ac_tool_warned in
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned
=yes ;;
3217 STRIP
="$ac_cv_prog_STRIP"
3221 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3224 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3225 if test -z "$MKDIR_P"; then
3226 if ${ac_cv_path_mkdir+:} false
; then :
3227 $as_echo_n "(cached) " >&6
3229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3230 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3233 test -z "$as_dir" && as_dir
=.
3234 for ac_prog
in mkdir gmkdir
; do
3235 for ac_exec_ext
in '' $ac_executable_extensions; do
3236 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3238 'mkdir (GNU coreutils) '* | \
3239 'mkdir (coreutils) '* | \
3240 'mkdir (fileutils) '4.1*)
3241 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3251 test -d .
/--version && rmdir .
/--version
3252 if test "${ac_cv_path_mkdir+set}" = set; then
3253 MKDIR_P
="$ac_cv_path_mkdir -p"
3255 # As a last resort, use the slow shell script. Don't cache a
3256 # value for MKDIR_P within a source directory, because that will
3257 # break other packages using the cache if that directory is
3258 # removed, or if the value is a relative name.
3259 MKDIR_P
="$ac_install_sh -d"
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3263 $as_echo "$MKDIR_P" >&6; }
3265 for ac_prog
in gawk mawk nawk
awk
3267 # Extract the first word of "$ac_prog", so it can be a program name with args.
3268 set dummy
$ac_prog; ac_word
=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_AWK+:} false
; then :
3272 $as_echo_n "(cached) " >&6
3274 if test -n "$AWK"; then
3275 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir
=.
3282 for ac_exec_ext
in '' $ac_executable_extensions; do
3283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_AWK
="$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 if test -n "$AWK"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3297 $as_echo "$AWK" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3304 test -n "$AWK" && break
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3308 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3310 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3311 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3312 $as_echo_n "(cached) " >&6
3314 cat >conftest.
make <<\_ACEOF
3317 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3319 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3320 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3322 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3324 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3328 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 SET_MAKE
="MAKE=${MAKE-make}"
3338 rm -rf .tst
2>/dev
/null
3339 mkdir .tst
2>/dev
/null
3340 if test -d .tst
; then
3345 rmdir .tst
2>/dev
/null
3347 # Check whether --enable-silent-rules was given.
3348 if test "${enable_silent_rules+set}" = set; then :
3349 enableval
=$enable_silent_rules;
3352 case $enable_silent_rules in # (((
3353 yes) AM_DEFAULT_VERBOSITY
=0;;
3354 no
) AM_DEFAULT_VERBOSITY
=1;;
3355 *) AM_DEFAULT_VERBOSITY
=1;;
3357 am_make
=${MAKE-make}
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3359 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3360 if ${am_cv_make_support_nested_variables+:} false
; then :
3361 $as_echo_n "(cached) " >&6
3363 if $as_echo 'TRUE=$(BAR$(V))
3369 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3370 am_cv_make_support_nested_variables
=yes
3372 am_cv_make_support_nested_variables
=no
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3376 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3377 if test $am_cv_make_support_nested_variables = yes; then
3379 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3381 AM_V
=$AM_DEFAULT_VERBOSITY
3382 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3388 # is not polluted with repeated "-I."
3389 am__isrc
=' -I$(srcdir)'
3390 # test to see if srcdir already configured
3391 if test -f $srcdir/config.status
; then
3392 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3396 # test whether we have cygpath
3397 if test -z "$CYGPATH_W"; then
3398 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3399 CYGPATH_W
='cygpath -w'
3406 # Define the identity of the package.
3407 PACKAGE
='gdbsupport'
3411 cat >>confdefs.h
<<_ACEOF
3412 #define PACKAGE "$PACKAGE"
3416 cat >>confdefs.h
<<_ACEOF
3417 #define VERSION "$VERSION"
3420 # Some tools Automake needs.
3422 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3425 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3428 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3431 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3434 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3436 # For better backward compatibility. To be removed once Automake 1.9.x
3437 # dies out for good. For more background, see:
3438 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3439 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3440 mkdir_p
='$(MKDIR_P)'
3442 # We need awk for the "check" target (and possibly the TAP driver). The
3443 # system "awk" is bad on some platforms.
3444 # Always define AMTAR for backward compatibility. Yes, it's still used
3445 # in the wild :-( We should find a proper way to deprecate it ...
3449 # We'll loop over all known methods to create a tar archive until one works.
3450 _am_tools
='gnutar pax cpio none'
3452 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3459 # POSIX will say in a future version that running "rm -f" with no argument
3460 # is OK; and we want to be able to make that assumption in our Makefile
3461 # recipes. So use an aggressive probe to check that the usage we want is
3462 # actually supported "in the wild" to an acceptable degree.
3463 # See automake bug#10828.
3464 # To make any issue more visible, cause the running configure to be aborted
3465 # by default if the 'rm' program in use doesn't match our expectations; the
3466 # user can still override this though.
3467 if rm -f && rm -fr && rm -rf; then : OK
; else
3471 Your 'rm' program seems unable to run without file operands specified
3472 on the command line, even when the '-f' option is present. This is contrary
3473 to the behaviour of most rm programs out there, and not conforming with
3474 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3476 Please tell bug-automake@gnu.org about your system, including the value
3477 of your $PATH and any error possibly output before this message. This
3478 can help us improve future automake versions.
3481 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3482 echo 'Configuration will proceed anyway, since you have set the' >&2
3483 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3487 Aborting the configuration process, to ensure you take notice of the issue.
3489 You can download and install GNU coreutils to get an 'rm' implementation
3490 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3492 If you want to complete the configuration process using your problematic
3493 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3494 to "yes", and re-run configure.
3497 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3501 # Check whether --enable-silent-rules was given.
3502 if test "${enable_silent_rules+set}" = set; then :
3503 enableval
=$enable_silent_rules;
3506 case $enable_silent_rules in # (((
3507 yes) AM_DEFAULT_VERBOSITY
=0;;
3508 no
) AM_DEFAULT_VERBOSITY
=1;;
3509 *) AM_DEFAULT_VERBOSITY
=0;;
3511 am_make
=${MAKE-make}
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3513 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3514 if ${am_cv_make_support_nested_variables+:} false
; then :
3515 $as_echo_n "(cached) " >&6
3517 if $as_echo 'TRUE=$(BAR$(V))
3523 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3524 am_cv_make_support_nested_variables
=yes
3526 am_cv_make_support_nested_variables
=no
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3530 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3531 if test $am_cv_make_support_nested_variables = yes; then
3533 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3535 AM_V
=$AM_DEFAULT_VERBOSITY
3536 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3544 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3585 if test -z "$ac_cv_prog_CC"; then
3587 # Extract the first word of "gcc", so it can be a program name with args.
3588 set dummy gcc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_ac_ct_CC="gcc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3615 if test -n "$ac_ct_CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3617 $as_echo "$ac_ct_CC" >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3623 if test "x$ac_ct_CC" = x; then
3626 case $cross_compiling:$ac_tool_warned in
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3630 ac_tool_warned=yes ;;
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3641 set dummy ${ac_tool_prefix}cc; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_CC+:} false; then :
3645 $as_echo_n "(cached) " >&6
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_CC="${ac_tool_prefix}cc"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 if test -n "$CC"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3670 $as_echo "$CC" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3679 if test -z "$CC"; then
3680 # Extract the first word of "cc", so it can be a program name with args.
3681 set dummy cc; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_CC+:} false; then :
3685 $as_echo_n "(cached) " >&6
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3699 ac_prog_rejected=yes
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 if test $ac_prog_rejected = yes; then
3711 # We found a bogon in the path, so make sure we never use it.
3712 set dummy $ac_cv_prog_CC
3714 if test $# != 0; then
3715 # We chose a different compiler from the bogus one.
3716 # However, it has the same basename, so the bogon will be chosen
3717 # first if we set CC to just the basename; use the full file name.
3719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3725 if test -n "$CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3735 if test -z "$CC"; then
3736 if test -n "$ac_tool_prefix"; then
3737 for ac_prog in cl.exe
3739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_prog_CC+:} false; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769 $as_echo "$CC" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$CC" && break
3779 if test -z "$CC"; then
3781 for ac_prog in cl.exe
3783 # Extract the first word of "$ac_prog", so it can be a program name with args.
3784 set dummy $ac_prog; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_CC="$ac_prog"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3820 test -n "$ac_ct_CC" && break
3823 if test "x$ac_ct_CC" = x; then
3826 case $cross_compiling:$ac_tool_warned in
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3839 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3841 as_fn_error $? "no acceptable C compiler found in \$PATH
3842 See \`config.log
' for more details" "$LINENO" 5; }
3844 # Provide some information about the compiler.
3845 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3848 for ac_option in --version -v -V -qversion; do
3849 { { ac_try="$ac_compiler $ac_option >&5"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3858 if test -s conftest.err; then
3860 ... rest of stderr output deleted ...
3861 10q
' conftest.err >conftest.er1
3862 cat conftest.er1 >&5
3864 rm -f conftest.er1 conftest.err
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3880 ac_clean_files_save=$ac_clean_files
3881 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3882 # Try to create an executable without -o first, disregard a.out.
3883 # It will help us diagnose broken compilers, and finding out an intuition
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3886 $as_echo_n "checking whether the C compiler works... " >&6; }
3887 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3889 # The possible output files:
3890 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3893 for ac_file in $ac_files
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3902 if { { ac_try="$ac_link_default"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link_default") 2>&5
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3914 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3915 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3916 # so that the user can short-circuit this test for compilers unknown to
3918 for ac_file
in $ac_files ''
3920 test -f "$ac_file" ||
continue
3922 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3925 # We found the default executable, but exeext='' is most
3929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3931 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933 # We set ac_cv_exeext here because the later test for it is not
3934 # safe: cross compilers may not add the suffix if given an `-o'
3935 # argument, so we may need to know it at that point already.
3936 # Even if this section looks crufty: it has the advantage of
3943 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3948 if test -z "$ac_file"; then :
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 $as_echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.
$ac_ext >&5
3954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error
77 "C compiler cannot create executables
3957 See \`config.log' for more details" "$LINENO" 5; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 $as_echo "yes" >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3963 $as_echo_n "checking for C compiler default output file name... " >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3965 $as_echo "$ac_file" >&6; }
3966 ac_exeext
=$ac_cv_exeext
3968 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3969 ac_clean_files
=$ac_clean_files_save
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3971 $as_echo_n "checking for suffix of executables... " >&6; }
3972 if { { ac_try
="$ac_link"
3974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_link") 2>&5
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }; then :
3983 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3984 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3985 # work properly (i.e., refer to `conftest.exe'), while it won't with
3987 for ac_file
in conftest.exe conftest conftest.
*; do
3988 test -f "$ac_file" ||
continue
3990 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3991 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3999 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4000 See \`config.log' for more details" "$LINENO" 5; }
4002 rm -f conftest conftest
$ac_cv_exeext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4004 $as_echo "$ac_cv_exeext" >&6; }
4006 rm -f conftest.
$ac_ext
4007 EXEEXT
=$ac_cv_exeext
4009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4015 FILE *f = fopen ("conftest.out", "w");
4016 return ferror (f) || fclose (f) != 0;
4022 ac_clean_files
="$ac_clean_files conftest.out"
4023 # Check that the compiler produces executables we can run. If not, either
4024 # the compiler is broken, or we cross compile.
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4026 $as_echo_n "checking whether we are cross compiling... " >&6; }
4027 if test "$cross_compiling" != yes; then
4028 { { ac_try
="$ac_link"
4030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_link") 2>&5
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4039 if { ac_try='./conftest$ac_cv_exeext'
4040 { { case "(($ac_try" in
4041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4042 *) ac_try_echo
=$ac_try;;
4044 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_try") 2>&5
4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }; }; then
4052 if test "$cross_compiling" = maybe
; then
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error $?
"cannot run C compiled programs.
4058 If you meant to cross compile, use \`--host'.
4059 See \`config.log' for more details" "$LINENO" 5; }
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4064 $as_echo "$cross_compiling" >&6; }
4066 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4067 ac_clean_files
=$ac_clean_files_save
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4069 $as_echo_n "checking for suffix of object files... " >&6; }
4070 if ${ac_cv_objext+:} false
; then :
4071 $as_echo_n "(cached) " >&6
4073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4084 rm -f conftest.o conftest.obj
4085 if { { ac_try
="$ac_compile"
4087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compile") 2>&5
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }; then :
4096 for ac_file in conftest.o conftest.obj conftest.*; do
4097 test -f "$ac_file" || continue;
4099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4111 See \
`config.log' for more details" "$LINENO" 5; }
4113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4116 $as_echo "$ac_cv_objext" >&6; }
4117 OBJEXT=$ac_cv_objext
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4120 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4121 if ${ac_cv_c_compiler_gnu+:} false; then :
4122 $as_echo_n "(cached) " >&6
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4148 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4149 if test $ac_compiler_gnu = yes; then
4154 ac_test_CFLAGS=${CFLAGS+set}
4155 ac_save_CFLAGS=$CFLAGS
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4157 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4158 if ${ac_cv_prog_cc_g+:} false; then :
4159 $as_echo_n "(cached) " >&6
4161 ac_save_c_werror_flag=$ac_c_werror_flag
4162 ac_c_werror_flag=yes
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4176 if ac_fn_c_try_compile "$LINENO"; then :
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4191 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4207 if ac_fn_c_try_compile "$LINENO"; then :
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_c_werror_flag=$ac_save_c_werror_flag
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4218 $as_echo "$ac_cv_prog_cc_g" >&6; }
4219 if test "$ac_test_CFLAGS" = set; then
4220 CFLAGS=$ac_save_CFLAGS
4221 elif test $ac_cv_prog_cc_g = yes; then
4222 if test "$GCC" = yes; then
4228 if test "$GCC" = yes; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4235 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4236 if ${ac_cv_prog_cc_c89+:} false; then :
4237 $as_echo_n "(cached) " >&6
4239 ac_cv_prog_cc_c89=no
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247 struct buf { int x; };
4248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249 static char *e (p, i)
4255 static char *f (char * (*g) (char **, int), char **p, ...)
4260 s = g (p, va_arg (v,int));
4265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
4268 as 'x'. The following induces an error, until -std is added to get
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
4271 that's true only with -std. */
4272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279 int test (int i, double x);
4280 struct s1 {int (*f) (int a);};
4281 struct s2 {int (*f) (double a);};
4282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4296 CC="$ac_save_CC $ac_arg"
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_prog_cc_c89=$ac_arg
4300 rm -f core conftest.err conftest.$ac_objext
4301 test "x$ac_cv_prog_cc_c89" != "xno" && break
4303 rm -f conftest.$ac_ext
4308 case "x$ac_cv_prog_cc_c89" in
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 $as_echo "none needed" >&6; } ;;
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314 $as_echo "unsupported" >&6; } ;;
4316 CC="$CC $ac_cv_prog_cc_c89"
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4318 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4320 if test "x$ac_cv_prog_cc_c89" != xno; then :
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4336 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4337 if ${am_cv_prog_cc_c_o+:} false; then :
4338 $as_echo_n "(cached) " >&6
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4351 # Make sure it works both with $CC and with simple cc.
4352 # Following AC_PROG_CC_C_O, we do the test twice because some
4353 # compilers refuse to overwrite an existing .o file with -o,
4354 # though they will create one.
4355 am_cv_prog_cc_c_o=yes
4357 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4358 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } \
4362 && test -f conftest2.$ac_objext; then
4365 am_cv_prog_cc_c_o=no
4369 rm -f core conftest*
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4373 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4374 if test "$am_cv_prog_cc_c_o" != yes; then
4375 # Losing compiler, so override with the script.
4376 # FIXME: It is wrong to rewrite CC.
4377 # But if we don't then we get into trouble of one sort or another.
4378 # A longer-term fix would be to have automake use am__CC in this case,
4379 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4380 CC="$am_aux_dir/compile $CC"
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 DEPDIR="${am__leading_dot}deps"
4390 ac_config_commands="$ac_config_commands depfiles"
4393 am_make=${MAKE-make}
4394 cat > confinc << 'END'
4396 @echo this is the am__doit target
4399 # If we don't find an include directive, just comment out the code.
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4401 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4405 # First try GNU make style include.
4406 echo "include confinc" > confmf
4407 # Ignore all kinds of additional output from 'make'.
4408 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4409 *the\ am__doit\ target*)
4415 # Now try BSD make style include.
4416 if test "$am__include" = "#"; then
4417 echo '.include "confinc"' > confmf
4418 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4419 *the\ am__doit\ target*)
4420 am__include=.include
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4429 $as_echo "$_am_result" >&6; }
4430 rm -f confinc confmf
4432 # Check whether --enable-dependency-tracking was given.
4433 if test "${enable_dependency_tracking+set}" = set; then :
4434 enableval=$enable_dependency_tracking;
4437 if test "x$enable_dependency_tracking" != xno; then
4438 am_depcomp="$ac_aux_dir/depcomp"
4442 if test "x$enable_dependency_tracking" != xno; then
4452 depcc="$CC" am_compiler_list=
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4455 $as_echo_n "checking dependency style of $depcc... " >&6; }
4456 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4457 $as_echo_n "(cached) " >&6
4459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4460 # We make a subdir and do the tests there. Otherwise we can end up
4461 # making bogus files that we don't know about and never remove. For
4462 # instance it was reported that on HP-UX the gcc test will end up
4463 # making a dummy file named 'D' -- because '-MD' means "put the output
4467 # Copy depcomp to subdir because otherwise we won't find it if we're
4468 # using a relative directory.
4469 cp "$am_depcomp" conftest.dir
4471 # We will build objects and dependencies in a subdirectory because
4472 # it helps to detect inapplicable dependency modes. For instance
4473 # both Tru64's cc and ICC support -MD to output dependencies as a
4474 # side effect of compilation, but ICC will put the dependencies in
4475 # the current directory while Tru64 will put them in the object
4479 am_cv_CC_dependencies_compiler_type=none
4480 if test "$am_compiler_list" = ""; then
4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4484 case " $depcc " in #(
4485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4488 for depmode in $am_compiler_list; do
4489 # Setup a source with many dependencies, because some compilers
4490 # like to wrap large dependency lists on column 80 (with \), and
4491 # we should not choose a depcomp mode which is confused by this.
4493 # We need to recreate these files for each test, as the compiler may
4494 # overwrite some of them when testing with obscure command lines.
4495 # This happens at least with the AIX C compiler.
4497 for i in 1 2 3 4 5 6; do
4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4500 # Solaris 10 /bin/sh.
4501 echo '/* dummy */' > sub/conftst$i.h
4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4505 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4506 # mode. It turns out that the SunPro C++ compiler does not properly
4507 # handle '-M -o', and we need to detect this. Also, some Intel
4508 # versions had trouble with output in subdirs.
4509 am__obj=sub/conftest.${OBJEXT-o}
4510 am__minus_obj="-o $am__obj"
4513 # This depmode causes a compiler race in universal mode.
4514 test "$am__universal" = false || continue
4517 # After this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested.
4519 if test "x$enable_dependency_tracking" = xyes; then
4525 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4526 # This compiler won't grok '-c -o', but also, the minuso test has
4527 # not run yet. These depmodes are late enough in the game, and
4528 # so weak that their functioning should not be impacted.
4529 am__obj=conftest.${OBJEXT-o}
4534 if depmode=$depmode \
4535 source=sub/conftest.c object=$am__obj \
4536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4538 >/dev/null 2>conftest.err &&
4539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CC_dependencies_compiler_type=$depmode
4561 am_cv_CC_dependencies_compiler_type=none
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4566 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4567 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4570 test "x$enable_dependency_tracking" != xno \
4571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4573 am__fastdepCC_FALSE='#'
4575 am__fastdepCC_TRUE='#'
4576 am__fastdepCC_FALSE=
4581 ac_cpp='$CXXCPP $CPPFLAGS'
4582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4585 if test -z "$CXX"; then
4586 if test -n "$CCC"; then
4589 if test -n "$ac_tool_prefix"; then
4590 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_CXX+:} false; then :
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$CXX"; then
4600 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 if test -n "$CXX"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4622 $as_echo "$CXX" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4629 test -n "$CXX" && break
4632 if test -z "$CXX"; then
4634 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637 set dummy $ac_prog; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$ac_ct_CXX"; then
4644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_CXX="$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4664 if test -n "$ac_ct_CXX"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4666 $as_echo "$ac_ct_CXX" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4673 test -n "$ac_ct_CXX" && break
4676 if test "x$ac_ct_CXX" = x; then
4679 case $cross_compiling:$ac_tool_warned in
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4691 # Provide some information about the compiler.
4692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4695 for ac_option in --version -v -V -qversion; do
4696 { { ac_try="$ac_compiler $ac_option >&5"
4698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4699 *) ac_try_echo
=$ac_try;;
4701 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4705 if test -s conftest.err
; then
4707 ... rest of stderr output deleted ...
4708 10q' conftest.err
>conftest.er1
4709 cat conftest.er1
>&5
4711 rm -f conftest.er1 conftest.err
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4717 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4718 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4719 $as_echo_n "(cached) " >&6
4721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4735 if ac_fn_cxx_try_compile
"$LINENO"; then :
4740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4741 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4745 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4746 if test $ac_compiler_gnu = yes; then
4751 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4752 ac_save_CXXFLAGS
=$CXXFLAGS
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4754 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4755 if ${ac_cv_prog_cxx_g+:} false
; then :
4756 $as_echo_n "(cached) " >&6
4758 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4759 ac_cxx_werror_flag
=yes
4762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4773 if ac_fn_cxx_try_compile
"$LINENO"; then :
4774 ac_cv_prog_cxx_g
=yes
4777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4788 if ac_fn_cxx_try_compile
"$LINENO"; then :
4791 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4804 if ac_fn_cxx_try_compile
"$LINENO"; then :
4805 ac_cv_prog_cxx_g
=yes
4807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4812 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4815 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4816 if test "$ac_test_CXXFLAGS" = set; then
4817 CXXFLAGS
=$ac_save_CXXFLAGS
4818 elif test $ac_cv_prog_cxx_g = yes; then
4819 if test "$GXX" = yes; then
4825 if test "$GXX" = yes; then
4832 ac_cpp
='$CPP $CPPFLAGS'
4833 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4837 depcc
="$CXX" am_compiler_list
=
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840 $as_echo_n "checking dependency style of $depcc... " >&6; }
4841 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4842 $as_echo_n "(cached) " >&6
4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named 'D' -- because '-MD' means "put the output
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4864 am_cv_CXX_dependencies_compiler_type
=none
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4869 case " $depcc " in #(
4870 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4873 for depmode
in $am_compiler_list; do
4874 # Setup a source with many dependencies, because some compilers
4875 # like to wrap large dependency lists on column 80 (with \), and
4876 # we should not choose a depcomp mode which is confused by this.
4878 # We need to recreate these files for each test, as the compiler may
4879 # overwrite some of them when testing with obscure command lines.
4880 # This happens at least with the AIX C compiler.
4882 for i
in 1 2 3 4 5 6; do
4883 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4885 # Solaris 10 /bin/sh.
4886 echo '/* dummy */' > sub
/conftst
$i.h
4888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4891 # mode. It turns out that the SunPro C++ compiler does not properly
4892 # handle '-M -o', and we need to detect this. Also, some Intel
4893 # versions had trouble with output in subdirs.
4894 am__obj
=sub
/conftest.
${OBJEXT-o}
4895 am__minus_obj
="-o $am__obj"
4898 # This depmode causes a compiler race in universal mode.
4899 test "$am__universal" = false ||
continue
4902 # After this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested.
4904 if test "x$enable_dependency_tracking" = xyes
; then
4910 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4911 # This compiler won't grok '-c -o', but also, the minuso test has
4912 # not run yet. These depmodes are late enough in the game, and
4913 # so weak that their functioning should not be impacted.
4914 am__obj
=conftest.
${OBJEXT-o}
4919 if depmode
=$depmode \
4920 source=sub
/conftest.c object
=$am__obj \
4921 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4922 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4923 >/dev
/null
2>conftest.err
&&
4924 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4925 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4926 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4927 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4928 # icc doesn't choke on unknown options, it will just issue warnings
4929 # or remarks (even with -Werror). So we grep stderr for any message
4930 # that says an option was ignored or not supported.
4931 # When given -MP, icc 7.0 and 7.1 complain thusly:
4932 # icc: Command line warning: ignoring option '-M'; no argument required
4933 # The diagnosis changed in icc 8.0:
4934 # icc: Command line remark: option '-MP' not supported
4935 if (grep 'ignoring option' conftest.err ||
4936 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4937 am_cv_CXX_dependencies_compiler_type
=$depmode
4946 am_cv_CXX_dependencies_compiler_type
=none
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4951 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4952 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4955 test "x$enable_dependency_tracking" != xno \
4956 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4957 am__fastdepCXX_TRUE
=
4958 am__fastdepCXX_FALSE
='#'
4960 am__fastdepCXX_TRUE
='#'
4961 am__fastdepCXX_FALSE
=
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_RANLIB+:} false
; then :
4971 $as_echo_n "(cached) " >&6
4973 if test -n "$RANLIB"; then
4974 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir
=.
4981 for ac_exec_ext
in '' $ac_executable_extensions; do
4982 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 RANLIB
=$ac_cv_prog_RANLIB
4994 if test -n "$RANLIB"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4996 $as_echo "$RANLIB" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5004 if test -z "$ac_cv_prog_RANLIB"; then
5005 ac_ct_RANLIB
=$RANLIB
5006 # Extract the first word of "ranlib", so it can be a program name with args.
5007 set dummy ranlib
; ac_word
=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5011 $as_echo_n "(cached) " >&6
5013 if test -n "$ac_ct_RANLIB"; then
5014 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir
=.
5021 for ac_exec_ext
in '' $ac_executable_extensions; do
5022 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5034 if test -n "$ac_ct_RANLIB"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5036 $as_echo "$ac_ct_RANLIB" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5042 if test "x$ac_ct_RANLIB" = x
; then
5045 case $cross_compiling:$ac_tool_warned in
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049 ac_tool_warned
=yes ;;
5051 RANLIB
=$ac_ct_RANLIB
5054 RANLIB
="$ac_cv_prog_RANLIB"
5060 ac_cpp
='$CPP $CPPFLAGS'
5061 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5065 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5066 # On Suns, sometimes $CPP names a directory.
5067 if test -n "$CPP" && test -d "$CPP"; then
5070 if test -z "$CPP"; then
5071 if ${ac_cv_prog_CPP+:} false
; then :
5072 $as_echo_n "(cached) " >&6
5074 # Double quotes because CPP needs to be expanded
5075 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5078 for ac_c_preproc_warn_flag
in '' yes
5080 # Use a header file that comes with gcc, so configuring glibc
5081 # with a fresh cross-compiler works.
5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083 # <limits.h> exists even on freestanding compilers.
5084 # On the NeXT, cc -E runs the code through the compiler's parser,
5085 # not just through cpp. "Syntax error" is here to catch this case.
5086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5089 # include <limits.h>
5091 # include <assert.h>
5095 if ac_fn_c_try_cpp
"$LINENO"; then :
5098 # Broken: fails on valid input.
5101 rm -f conftest.err conftest.i conftest.
$ac_ext
5103 # OK, works on sane cases. Now check whether nonexistent headers
5104 # can be detected and how.
5105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5109 if ac_fn_c_try_cpp
"$LINENO"; then :
5110 # Broken: success on invalid input.
5113 # Passes both tests.
5117 rm -f conftest.err conftest.i conftest.
$ac_ext
5120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121 rm -f conftest.i conftest.err conftest.
$ac_ext
5122 if $ac_preproc_ok; then :
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5135 $as_echo "$CPP" >&6; }
5137 for ac_c_preproc_warn_flag
in '' yes
5139 # Use a header file that comes with gcc, so configuring glibc
5140 # with a fresh cross-compiler works.
5141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5142 # <limits.h> exists even on freestanding compilers.
5143 # On the NeXT, cc -E runs the code through the compiler's parser,
5144 # not just through cpp. "Syntax error" is here to catch this case.
5145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5148 # include <limits.h>
5150 # include <assert.h>
5154 if ac_fn_c_try_cpp
"$LINENO"; then :
5157 # Broken: fails on valid input.
5160 rm -f conftest.err conftest.i conftest.
$ac_ext
5162 # OK, works on sane cases. Now check whether nonexistent headers
5163 # can be detected and how.
5164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 #include <ac_nonexistent.h>
5168 if ac_fn_c_try_cpp
"$LINENO"; then :
5169 # Broken: success on invalid input.
5172 # Passes both tests.
5176 rm -f conftest.err conftest.i conftest.
$ac_ext
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.i conftest.err conftest.
$ac_ext
5181 if $ac_preproc_ok; then :
5184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5186 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5187 See \`config.log' for more details" "$LINENO" 5; }
5191 ac_cpp
='$CPP $CPPFLAGS'
5192 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5199 if ${ac_cv_path_GREP+:} false
; then :
5200 $as_echo_n "(cached) " >&6
5202 if test -z "$GREP"; then
5203 ac_path_GREP_found
=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5206 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5209 test -z "$as_dir" && as_dir
=.
5210 for ac_prog
in grep ggrep
; do
5211 for ac_exec_ext
in '' $ac_executable_extensions; do
5212 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p
"$ac_path_GREP" ||
continue
5214 # Check for GNU ac_path_GREP and select it if it is found.
5215 # Check for GNU $ac_path_GREP
5216 case `"$ac_path_GREP" --version 2>&1` in
5218 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5221 $as_echo_n 0123456789 >"conftest.in"
5224 cat "conftest.in" "conftest.in" >"conftest.tmp"
5225 mv "conftest.tmp" "conftest.in"
5226 cp "conftest.in" "conftest.nl"
5227 $as_echo 'GREP' >> "conftest.nl"
5228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5229 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5230 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_GREP
="$ac_path_GREP"
5234 ac_path_GREP_max
=$ac_count
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5239 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5242 $ac_path_GREP_found && break 3
5247 if test -z "$ac_cv_path_GREP"; then
5248 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5251 ac_cv_path_GREP
=$GREP
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5256 $as_echo "$ac_cv_path_GREP" >&6; }
5257 GREP
="$ac_cv_path_GREP"
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5261 $as_echo_n "checking for egrep... " >&6; }
5262 if ${ac_cv_path_EGREP+:} false
; then :
5263 $as_echo_n "(cached) " >&6
5265 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5266 then ac_cv_path_EGREP
="$GREP -E"
5268 if test -z "$EGREP"; then
5269 ac_path_EGREP_found
=false
5270 # Loop through the user's path and test for each of PROGNAME-LIST
5271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5272 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5275 test -z "$as_dir" && as_dir
=.
5276 for ac_prog
in egrep; do
5277 for ac_exec_ext
in '' $ac_executable_extensions; do
5278 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5279 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5280 # Check for GNU ac_path_EGREP and select it if it is found.
5281 # Check for GNU $ac_path_EGREP
5282 case `"$ac_path_EGREP" --version 2>&1` in
5284 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5287 $as_echo_n 0123456789 >"conftest.in"
5290 cat "conftest.in" "conftest.in" >"conftest.tmp"
5291 mv "conftest.tmp" "conftest.in"
5292 cp "conftest.in" "conftest.nl"
5293 $as_echo 'EGREP' >> "conftest.nl"
5294 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5295 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5296 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5297 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5298 # Best one so far, save it but keep looking for a better one
5299 ac_cv_path_EGREP
="$ac_path_EGREP"
5300 ac_path_EGREP_max
=$ac_count
5302 # 10*(2^10) chars as input seems more than enough
5303 test $ac_count -gt 10 && break
5305 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5308 $ac_path_EGREP_found && break 3
5313 if test -z "$ac_cv_path_EGREP"; then
5314 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5317 ac_cv_path_EGREP
=$EGREP
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5323 $as_echo "$ac_cv_path_EGREP" >&6; }
5324 EGREP
="$ac_cv_path_EGREP"
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5328 $as_echo_n "checking for ANSI C header files... " >&6; }
5329 if ${ac_cv_header_stdc+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5347 if ac_fn_c_try_compile
"$LINENO"; then :
5348 ac_cv_header_stdc
=yes
5350 ac_cv_header_stdc
=no
5352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5354 if test $ac_cv_header_stdc = yes; then
5355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5362 $EGREP "memchr" >/dev
/null
2>&1; then :
5365 ac_cv_header_stdc
=no
5371 if test $ac_cv_header_stdc = yes; then
5372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "free" >/dev
/null
2>&1; then :
5382 ac_cv_header_stdc
=no
5388 if test $ac_cv_header_stdc = yes; then
5389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390 if test "$cross_compiling" = yes; then :
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5397 #if ((' ' & 0x0FF) == 0x020)
5398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5401 # define ISLOWER(c) \
5402 (('a' <= (c) && (c) <= 'i') \
5403 || ('j' <= (c) && (c) <= 'r') \
5404 || ('s' <= (c) && (c) <= 'z'))
5405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5413 for (i = 0; i < 256; i++)
5414 if (XOR (islower (i), ISLOWER (i))
5415 || toupper (i) != TOUPPER (i))
5420 if ac_fn_c_try_run
"$LINENO"; then :
5423 ac_cv_header_stdc
=no
5425 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5426 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5432 $as_echo "$ac_cv_header_stdc" >&6; }
5433 if test $ac_cv_header_stdc = yes; then
5435 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5440 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5441 inttypes.h stdint.h unistd.h
5443 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5446 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5447 cat >>confdefs.h
<<_ACEOF
5448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5458 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5465 if test "$MINIX" = yes; then
5467 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5470 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5473 $as_echo "#define _MINIX 1" >>confdefs.h
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5479 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5480 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5481 $as_echo_n "(cached) " >&6
5483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5486 # define __EXTENSIONS__ 1
5487 $ac_includes_default
5496 if ac_fn_c_try_compile
"$LINENO"; then :
5497 ac_cv_safe_to_define___extensions__
=yes
5499 ac_cv_safe_to_define___extensions__
=no
5501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5504 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5505 test $ac_cv_safe_to_define___extensions__ = yes &&
5506 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5508 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5510 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5512 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5514 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5518 # The tests for host and target for $enable_largefile require
5523 # As the $enable_largefile decision depends on --enable-plugins we must set it
5524 # even in directories otherwise not depending on the $plugins option.
5528 for ac_header
in dlfcn.h
5530 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5532 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5533 cat >>confdefs.h
<<_ACEOF
5534 #define HAVE_DLFCN_H 1
5541 for ac_header
in windows.h
5543 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5545 if test "x$ac_cv_header_windows_h" = xyes
; then :
5546 cat >>confdefs.h
<<_ACEOF
5547 #define HAVE_WINDOWS_H 1
5555 # Check whether --enable-plugins was given.
5556 if test "${enable_plugins+set}" = set; then :
5557 enableval
=$enable_plugins; case "${enableval}" in
5560 if test "$maybe_plugins" != "yes" ; then
5561 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5565 plugins
=$maybe_plugins
5569 if test "$plugins" = "yes"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5571 $as_echo_n "checking for library containing dlsym... " >&6; }
5572 if ${ac_cv_search_dlsym+:} false
; then :
5573 $as_echo_n "(cached) " >&6
5575 ac_func_search_save_LIBS
=$LIBS
5576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5579 /* Override any GCC internal prototype to avoid an error.
5580 Use char because int might match the return type of a GCC
5581 builtin and then its argument prototype would still apply. */
5594 for ac_lib
in '' dl
; do
5595 if test -z "$ac_lib"; then
5596 ac_res
="none required"
5599 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5601 if ac_fn_c_try_link
"$LINENO"; then :
5602 ac_cv_search_dlsym
=$ac_res
5604 rm -f core conftest.err conftest.
$ac_objext \
5606 if ${ac_cv_search_dlsym+:} false
; then :
5610 if ${ac_cv_search_dlsym+:} false
; then :
5613 ac_cv_search_dlsym
=no
5616 LIBS
=$ac_func_search_save_LIBS
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5619 $as_echo "$ac_cv_search_dlsym" >&6; }
5620 ac_res
=$ac_cv_search_dlsym
5621 if test "$ac_res" != no
; then :
5622 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5630 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
5631 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5632 # are mutually exclusive; and without procfs support, the bfd/ elf module
5633 # cannot provide certain routines such as elfcore_write_prpsinfo
5634 # or elfcore_write_prstatus. So unless the user explicitly requested
5635 # large-file support through the --enable-largefile switch, disable
5636 # large-file support in favor of procfs support.
5637 test "${target}" = "${host}" -a "x$plugins" = xno \
5638 && : ${enable_largefile="no"}
5642 # Check whether --enable-largefile was given.
5643 if test "${enable_largefile+set}" = set; then :
5644 enableval
=$enable_largefile;
5647 if test "$enable_largefile" != no
; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5650 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5651 if ${ac_cv_sys_largefile_CC+:} false
; then :
5652 $as_echo_n "(cached) " >&6
5654 ac_cv_sys_largefile_CC
=no
5655 if test "$GCC" != yes; then
5658 # IRIX 6.2 and later do not support large files by default,
5659 # so use the C compiler's -n32 option if that helps.
5660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5679 if ac_fn_c_try_compile
"$LINENO"; then :
5682 rm -f core conftest.err conftest.
$ac_objext
5684 if ac_fn_c_try_compile
"$LINENO"; then :
5685 ac_cv_sys_largefile_CC
=' -n32'; break
5687 rm -f core conftest.err conftest.
$ac_objext
5691 rm -f conftest.
$ac_ext
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5695 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5696 if test "$ac_cv_sys_largefile_CC" != no
; then
5697 CC
=$CC$ac_cv_sys_largefile_CC
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5701 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5702 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5703 $as_echo_n "(cached) " >&6
5706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <sys/types.h>
5709 /* Check that off_t can represent 2**63 - 1 correctly.
5710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5711 since some C++ compilers masquerading as C compilers
5712 incorrectly reject 9223372036854775807. */
5713 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5715 && LARGE_OFF_T % 2147483647 == 1)
5725 if ac_fn_c_try_compile
"$LINENO"; then :
5726 ac_cv_sys_file_offset_bits
=no
; break
5728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #define _FILE_OFFSET_BITS 64
5732 #include <sys/types.h>
5733 /* Check that off_t can represent 2**63 - 1 correctly.
5734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5735 since some C++ compilers masquerading as C compilers
5736 incorrectly reject 9223372036854775807. */
5737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5739 && LARGE_OFF_T % 2147483647 == 1)
5749 if ac_fn_c_try_compile
"$LINENO"; then :
5750 ac_cv_sys_file_offset_bits
=64; break
5752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5753 ac_cv_sys_file_offset_bits
=unknown
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5758 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5759 case $ac_cv_sys_file_offset_bits in #(
5762 cat >>confdefs.h
<<_ACEOF
5763 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5768 if test $ac_cv_sys_file_offset_bits = unknown
; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5770 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5771 if ${ac_cv_sys_large_files+:} false
; then :
5772 $as_echo_n "(cached) " >&6
5775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5794 if ac_fn_c_try_compile
"$LINENO"; then :
5795 ac_cv_sys_large_files
=no
; break
5797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #define _LARGE_FILES 1
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5818 if ac_fn_c_try_compile
"$LINENO"; then :
5819 ac_cv_sys_large_files
=1; break
5821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5822 ac_cv_sys_large_files
=unknown
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5827 $as_echo "$ac_cv_sys_large_files" >&6; }
5828 case $ac_cv_sys_large_files in #(
5831 cat >>confdefs.h
<<_ACEOF
5832 #define _LARGE_FILES $ac_cv_sys_large_files
5844 ac_cpp
='$CPP $CPPFLAGS'
5845 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5850 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_prog_CC+:} false
; then :
5854 $as_echo_n "(cached) " >&6
5856 if test -n "$CC"; then
5857 ac_cv_prog_CC
="$CC" # Let the user override the test.
5859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir
=.
5864 for ac_exec_ext
in '' $ac_executable_extensions; do
5865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 if test -n "$CC"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5879 $as_echo "$CC" >&6; }
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5887 if test -z "$ac_cv_prog_CC"; then
5889 # Extract the first word of "gcc", so it can be a program name with args.
5890 set dummy gcc
; ac_word
=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5894 $as_echo_n "(cached) " >&6
5896 if test -n "$ac_ct_CC"; then
5897 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir
=.
5904 for ac_exec_ext
in '' $ac_executable_extensions; do
5905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_CC
="gcc"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5917 if test -n "$ac_ct_CC"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5919 $as_echo "$ac_ct_CC" >&6; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5925 if test "x$ac_ct_CC" = x
; then
5928 case $cross_compiling:$ac_tool_warned in
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932 ac_tool_warned
=yes ;;
5940 if test -z "$CC"; then
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5943 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_CC+:} false
; then :
5947 $as_echo_n "(cached) " >&6
5949 if test -n "$CC"; then
5950 ac_cv_prog_CC
="$CC" # Let the user override the test.
5952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir
=.
5957 for ac_exec_ext
in '' $ac_executable_extensions; do
5958 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 if test -n "$CC"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5972 $as_echo "$CC" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5981 if test -z "$CC"; then
5982 # Extract the first word of "cc", so it can be a program name with args.
5983 set dummy cc
; ac_word
=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_CC+:} false
; then :
5987 $as_echo_n "(cached) " >&6
5989 if test -n "$CC"; then
5990 ac_cv_prog_CC
="$CC" # Let the user override the test.
5993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir
=.
5998 for ac_exec_ext
in '' $ac_executable_extensions; do
5999 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6001 ac_prog_rejected
=yes
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 if test $ac_prog_rejected = yes; then
6013 # We found a bogon in the path, so make sure we never use it.
6014 set dummy
$ac_cv_prog_CC
6016 if test $# != 0; then
6017 # We chose a different compiler from the bogus one.
6018 # However, it has the same basename, so the bogon will be chosen
6019 # first if we set CC to just the basename; use the full file name.
6021 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6027 if test -n "$CC"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6029 $as_echo "$CC" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6037 if test -z "$CC"; then
6038 if test -n "$ac_tool_prefix"; then
6039 for ac_prog
in cl.exe
6041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6042 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_CC+:} false
; then :
6046 $as_echo_n "(cached) " >&6
6048 if test -n "$CC"; then
6049 ac_cv_prog_CC
="$CC" # Let the user override the test.
6051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir
=.
6056 for ac_exec_ext
in '' $ac_executable_extensions; do
6057 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 if test -n "$CC"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6071 $as_echo "$CC" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6078 test -n "$CC" && break
6081 if test -z "$CC"; then
6083 for ac_prog
in cl.exe
6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
6086 set dummy
$ac_prog; ac_word
=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6090 $as_echo_n "(cached) " >&6
6092 if test -n "$ac_ct_CC"; then
6093 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir
=.
6100 for ac_exec_ext
in '' $ac_executable_extensions; do
6101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_ac_ct_CC
="$ac_prog"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6113 if test -n "$ac_ct_CC"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6115 $as_echo "$ac_ct_CC" >&6; }
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6122 test -n "$ac_ct_CC" && break
6125 if test "x$ac_ct_CC" = x
; then
6128 case $cross_compiling:$ac_tool_warned in
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned
=yes ;;
6141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6143 as_fn_error $?
"no acceptable C compiler found in \$PATH
6144 See \`config.log' for more details" "$LINENO" 5; }
6146 # Provide some information about the compiler.
6147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6150 for ac_option
in --version -v -V -qversion; do
6151 { { ac_try
="$ac_compiler $ac_option >&5"
6153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6157 $as_echo "$ac_try_echo"; } >&5
6158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6160 if test -s conftest.err; then
6162 ... rest of stderr output deleted ...
6163 10q' conftest.err >conftest.er1
6164 cat conftest.er1 >&5
6166 rm -f conftest.er1 conftest.err
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6172 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6173 if ${ac_cv_c_compiler_gnu+:} false; then :
6174 $as_echo_n "(cached) " >&6
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6190 if ac_fn_c_try_compile "$LINENO"; then :
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6201 if test $ac_compiler_gnu = yes; then
6206 ac_test_CFLAGS=${CFLAGS+set}
6207 ac_save_CFLAGS=$CFLAGS
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6210 if ${ac_cv_prog_cc_g+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 ac_save_c_werror_flag=$ac_c_werror_flag
6214 ac_c_werror_flag=yes
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6228 if ac_fn_c_try_compile "$LINENO"; then :
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6243 if ac_fn_c_try_compile "$LINENO"; then :
6246 ac_c_werror_flag=$ac_save_c_werror_flag
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6259 if ac_fn_c_try_compile "$LINENO"; then :
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_c_werror_flag=$ac_save_c_werror_flag
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6270 $as_echo "$ac_cv_prog_cc_g" >&6; }
6271 if test "$ac_test_CFLAGS" = set; then
6272 CFLAGS=$ac_save_CFLAGS
6273 elif test $ac_cv_prog_cc_g = yes; then
6274 if test "$GCC" = yes; then
6280 if test "$GCC" = yes; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6287 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6288 if ${ac_cv_prog_cc_c89+:} false; then :
6289 $as_echo_n "(cached) " >&6
6291 ac_cv_prog_cc_c89=no
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6298 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6299 struct buf { int x; };
6300 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6301 static char *e (p, i)
6307 static char *f (char * (*g) (char **, int), char **p, ...)
6312 s = g (p, va_arg (v,int));
6317 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6318 function prototypes and stuff, but not '\xHH' hex character constants.
6319 These don't provoke an error unfortunately, instead are silently treated
6320 as 'x'. The following induces an error, until -std is added to get
6321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6322 array size at least. It's necessary to write '\x00'==0 to get something
6323 that's true only with -std. */
6324 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6326 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6327 inside strings and character constants. */
6329 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6331 int test (int i, double x);
6332 struct s1 {int (*f) (int a);};
6333 struct s2 {int (*f) (double a);};
6334 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6340 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6345 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6346 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6348 CC="$ac_save_CC $ac_arg"
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 ac_cv_prog_cc_c89=$ac_arg
6352 rm -f core conftest.err conftest.$ac_objext
6353 test "x$ac_cv_prog_cc_c89" != "xno" && break
6355 rm -f conftest.$ac_ext
6360 case "x$ac_cv_prog_cc_c89" in
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6363 $as_echo "none needed" >&6; } ;;
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6366 $as_echo "unsupported" >&6; } ;;
6368 CC="$CC $ac_cv_prog_cc_c89"
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6370 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6372 if test "x$ac_cv_prog_cc_c89" != xno; then :
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383 ac_cpp='$CPP $CPPFLAGS'
6384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6388 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6389 if ${am_cv_prog_cc_c_o+:} false; then :
6390 $as_echo_n "(cached) " >&6
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6403 # Make sure it works both with $CC and with simple cc.
6404 # Following AC_PROG_CC_C_O, we do the test twice because some
6405 # compilers refuse to overwrite an existing .o file with -o,
6406 # though they will create one.
6407 am_cv_prog_cc_c_o=yes
6409 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6410 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } \
6414 && test -f conftest2.$ac_objext; then
6417 am_cv_prog_cc_c_o=no
6421 rm -f core conftest*
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6425 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6426 if test "$am_cv_prog_cc_c_o" != yes; then
6427 # Losing compiler, so override with the script.
6428 # FIXME: It is wrong to rewrite CC.
6429 # But if we don't then we get into trouble of one sort or another.
6430 # A longer-term fix would be to have automake use am__CC in this case,
6431 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6432 CC="$am_aux_dir/compile $CC"
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441 depcc="$CC" am_compiler_list=
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6444 $as_echo_n "checking dependency style of $depcc... " >&6; }
6445 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6446 $as_echo_n "(cached) " >&6
6448 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6449 # We make a subdir and do the tests there. Otherwise we can end up
6450 # making bogus files that we don't know about and never remove. For
6451 # instance it was reported that on HP-UX the gcc test will end up
6452 # making a dummy file named 'D' -- because '-MD' means "put the output
6456 # Copy depcomp to subdir because otherwise we won't find it if we're
6457 # using a relative directory.
6458 cp "$am_depcomp" conftest.dir
6460 # We will build objects and dependencies in a subdirectory because
6461 # it helps to detect inapplicable dependency modes. For instance
6462 # both Tru64's cc and ICC support -MD to output dependencies as a
6463 # side effect of compilation, but ICC will put the dependencies in
6464 # the current directory while Tru64 will put them in the object
6468 am_cv_CC_dependencies_compiler_type=none
6469 if test "$am_compiler_list" = ""; then
6470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6473 case " $depcc " in #(
6474 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6477 for depmode in $am_compiler_list; do
6478 # Setup a source with many dependencies, because some compilers
6479 # like to wrap large dependency lists on column 80 (with \), and
6480 # we should not choose a depcomp mode which is confused by this.
6482 # We need to recreate these files for each test, as the compiler may
6483 # overwrite some of them when testing with obscure command lines.
6484 # This happens at least with the AIX C compiler.
6486 for i in 1 2 3 4 5 6; do
6487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6488 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6489 # Solaris 10 /bin/sh.
6490 echo '/* dummy */' > sub/conftst$i.h
6492 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6494 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6495 # mode. It turns out that the SunPro C++ compiler does not properly
6496 # handle '-M -o', and we need to detect this. Also, some Intel
6497 # versions had trouble with output in subdirs.
6498 am__obj=sub/conftest.${OBJEXT-o}
6499 am__minus_obj="-o $am__obj"
6502 # This depmode causes a compiler race in universal mode.
6503 test "$am__universal" = false || continue
6506 # After this tag, mechanisms are not by side-effect, so they'll
6507 # only be used when explicitly requested.
6508 if test "x$enable_dependency_tracking" = xyes; then
6514 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6515 # This compiler won't grok '-c -o', but also, the minuso test has
6516 # not run yet. These depmodes are late enough in the game, and
6517 # so weak that their functioning should not be impacted.
6518 am__obj=conftest.${OBJEXT-o}
6523 if depmode=$depmode \
6524 source=sub/conftest.c object=$am__obj \
6525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6526 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6527 >/dev/null 2>conftest.err &&
6528 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6530 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6532 # icc doesn't choke on unknown options, it will just issue warnings
6533 # or remarks (even with -Werror). So we grep stderr for any message
6534 # that says an option was ignored or not supported.
6535 # When given -MP, icc 7.0 and 7.1 complain thusly:
6536 # icc: Command line warning: ignoring option '-M'; no argument required
6537 # The diagnosis changed in icc 8.0:
6538 # icc: Command line remark: option '-MP' not supported
6539 if (grep 'ignoring option' conftest.err ||
6540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6541 am_cv_CC_dependencies_compiler_type=$depmode
6550 am_cv_CC_dependencies_compiler_type=none
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6555 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6559 test "x$enable_dependency_tracking" != xno \
6560 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6562 am__fastdepCC_FALSE='#'
6564 am__fastdepCC_TRUE='#'
6565 am__fastdepCC_FALSE=
6569 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6572 # We require a C++11 compiler. Check if one is available, and if
6573 # necessary, set CXX_DIALECT to some -std=xxx switch.
6575 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6577 ac_cpp='$CXXCPP $CPPFLAGS'
6578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6584 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6585 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6586 $as_echo_n "(cached) " >&6
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6592 // If the compiler admits that it is not ready for C++11, why torture it?
6593 // Hopefully, this will speed up the test.
6597 #error "This is not a C++ compiler"
6599 #elif __cplusplus < 201103L
6601 #error "This is not a C++11 compiler"
6608 namespace test_static_assert
6611 template <typename T>
6614 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6619 namespace test_final_override
6627 struct Derived : public Base
6629 virtual void f() override {}
6634 namespace test_double_right_angle_brackets
6637 template < typename T >
6640 typedef check<void> single_type;
6641 typedef check<check<void>> double_type;
6642 typedef check<check<check<void>>> triple_type;
6643 typedef check<check<check<check<void>>>> quadruple_type;
6647 namespace test_decltype
6660 namespace test_type_deduction
6663 template < typename T1, typename T2 >
6666 static const bool value = false;
6669 template < typename T >
6670 struct is_same<T, T>
6672 static const bool value = true;
6675 template < typename T1, typename T2 >
6677 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6683 test(const int c, volatile int v)
6685 static_assert(is_same<int, decltype(0)>::value == true, "");
6686 static_assert(is_same<int, decltype(c)>::value == false, "");
6687 static_assert(is_same<int, decltype(v)>::value == false, "");
6690 auto sumi = ac + av + 'x';
6691 auto sumf = ac + av + 1.0;
6692 static_assert(is_same<int, decltype(ac)>::value == true, "");
6693 static_assert(is_same<int, decltype(av)>::value == true, "");
6694 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6695 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6696 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6697 return (sumf > 0.0) ? sumi : add(c, v);
6702 namespace test_noexcept
6705 int f() { return 0; }
6706 int g() noexcept { return 0; }
6708 static_assert(noexcept(f()) == false, "");
6709 static_assert(noexcept(g()) == true, "");
6713 namespace test_constexpr
6716 template < typename CharT >
6717 unsigned long constexpr
6718 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6720 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6723 template < typename CharT >
6724 unsigned long constexpr
6725 strlen_c(const CharT *const s) noexcept
6727 return strlen_c_r(s, 0UL);
6730 static_assert(strlen_c("") == 0UL, "");
6731 static_assert(strlen_c("1") == 1UL, "");
6732 static_assert(strlen_c("example") == 7UL, "");
6733 static_assert(strlen_c("another\0example") == 7UL, "");
6737 namespace test_rvalue_references
6743 static constexpr int value = N;
6746 answer<1> f(int&) { return answer<1>(); }
6747 answer<2> f(const int&) { return answer<2>(); }
6748 answer<3> f(int&&) { return answer<3>(); }
6755 static_assert(decltype(f(i))::value == 1, "");
6756 static_assert(decltype(f(c))::value == 2, "");
6757 static_assert(decltype(f(0))::value == 3, "");
6762 namespace test_uniform_initialization
6767 static const int zero {};
6768 static const int one {1};
6771 static_assert(test::zero == 0, "");
6772 static_assert(test::one == 1, "");
6776 namespace test_lambdas
6782 auto lambda1 = [](){};
6783 auto lambda2 = lambda1;
6791 auto a = [](int i, int j){ return i + j; }(1, 2);
6792 auto b = []() -> int { return '0'; }();
6793 auto c = [=](){ return a + b; }();
6794 auto d = [&](){ return c; }();
6795 auto e = [a, &b](int x) mutable {
6796 const auto identity = [](int y){ return y; };
6797 for (auto i = 0; i < a; ++i)
6799 return x + identity(a + b);
6801 return a + b + c + d + e;
6807 const auto nullary = [](){ return 0; };
6808 const auto unary = [](int x){ return x; };
6809 using nullary_t = decltype(nullary);
6810 using unary_t = decltype(unary);
6811 const auto higher1st = [](nullary_t f){ return f(); };
6812 const auto higher2nd = [unary](nullary_t f1){
6813 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6815 return higher1st(nullary) + higher2nd(nullary)(unary);
6820 namespace test_variadic_templates
6826 template <int N0, int... N1toN>
6827 struct sum<N0, N1toN...>
6829 static constexpr auto value = N0 + sum<N1toN...>::value;
6835 static constexpr auto value = 0;
6838 static_assert(sum<>::value == 0, "");
6839 static_assert(sum<1>::value == 1, "");
6840 static_assert(sum<23>::value == 23, "");
6841 static_assert(sum<1, 2>::value == 3, "");
6842 static_assert(sum<5, 5, 11>::value == 21, "");
6843 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6847 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6848 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6850 namespace test_template_alias_sfinae
6855 template<typename T>
6856 using member = typename T::member_type;
6858 template<typename T>
6861 template<typename T>
6862 void func(member<T>*) {}
6866 void test() { func<foo>(0); }
6870 } // namespace cxx11
6872 #endif // __cplusplus >= 201103L
6877 if ac_fn_cxx_try_compile "$LINENO"; then :
6878 ax_cv_cxx_compile_cxx11=yes
6880 ax_cv_cxx_compile_cxx11=no
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6885 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6886 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6890 if test x$ac_success = xno; then
6891 for alternative in ${ax_cxx_compile_alternatives}; do
6892 switch="-std=gnu++${alternative}"
6893 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6895 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6896 if eval \${$cachevar+:} false; then :
6897 $as_echo_n "(cached) " >&6
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6905 // If the compiler admits that it is not ready for C++11, why torture it?
6906 // Hopefully, this will speed up the test.
6910 #error "This is not a C++ compiler"
6912 #elif __cplusplus < 201103L
6914 #error "This is not a C++11 compiler"
6921 namespace test_static_assert
6924 template <typename T>
6927 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6932 namespace test_final_override
6940 struct Derived : public Base
6942 virtual void f() override {}
6947 namespace test_double_right_angle_brackets
6950 template < typename T >
6953 typedef check<void> single_type;
6954 typedef check<check<void>> double_type;
6955 typedef check<check<check<void>>> triple_type;
6956 typedef check<check<check<check<void>>>> quadruple_type;
6960 namespace test_decltype
6973 namespace test_type_deduction
6976 template < typename T1, typename T2 >
6979 static const bool value = false;
6982 template < typename T >
6983 struct is_same<T, T>
6985 static const bool value = true;
6988 template < typename T1, typename T2 >
6990 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6996 test(const int c, volatile int v)
6998 static_assert(is_same<int, decltype(0)>::value == true, "");
6999 static_assert(is_same<int, decltype(c)>::value == false, "");
7000 static_assert(is_same<int, decltype(v)>::value == false, "");
7003 auto sumi = ac + av + 'x';
7004 auto sumf = ac + av + 1.0;
7005 static_assert(is_same<int, decltype(ac)>::value == true, "");
7006 static_assert(is_same<int, decltype(av)>::value == true, "");
7007 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7008 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7009 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7010 return (sumf > 0.0) ? sumi : add(c, v);
7015 namespace test_noexcept
7018 int f() { return 0; }
7019 int g() noexcept { return 0; }
7021 static_assert(noexcept(f()) == false, "");
7022 static_assert(noexcept(g()) == true, "");
7026 namespace test_constexpr
7029 template < typename CharT >
7030 unsigned long constexpr
7031 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7033 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7036 template < typename CharT >
7037 unsigned long constexpr
7038 strlen_c(const CharT *const s) noexcept
7040 return strlen_c_r(s, 0UL);
7043 static_assert(strlen_c("") == 0UL, "");
7044 static_assert(strlen_c("1") == 1UL, "");
7045 static_assert(strlen_c("example") == 7UL, "");
7046 static_assert(strlen_c("another\0example") == 7UL, "");
7050 namespace test_rvalue_references
7056 static constexpr int value = N;
7059 answer<1> f(int&) { return answer<1>(); }
7060 answer<2> f(const int&) { return answer<2>(); }
7061 answer<3> f(int&&) { return answer<3>(); }
7068 static_assert(decltype(f(i))::value == 1, "");
7069 static_assert(decltype(f(c))::value == 2, "");
7070 static_assert(decltype(f(0))::value == 3, "");
7075 namespace test_uniform_initialization
7080 static const int zero {};
7081 static const int one {1};
7084 static_assert(test::zero == 0, "");
7085 static_assert(test::one == 1, "");
7089 namespace test_lambdas
7095 auto lambda1 = [](){};
7096 auto lambda2 = lambda1;
7104 auto a = [](int i, int j){ return i + j; }(1, 2);
7105 auto b = []() -> int { return '0'; }();
7106 auto c = [=](){ return a + b; }();
7107 auto d = [&](){ return c; }();
7108 auto e = [a, &b](int x) mutable {
7109 const auto identity = [](int y){ return y; };
7110 for (auto i = 0; i < a; ++i)
7112 return x + identity(a + b);
7114 return a + b + c + d + e;
7120 const auto nullary = [](){ return 0; };
7121 const auto unary = [](int x){ return x; };
7122 using nullary_t = decltype(nullary);
7123 using unary_t = decltype(unary);
7124 const auto higher1st = [](nullary_t f){ return f(); };
7125 const auto higher2nd = [unary](nullary_t f1){
7126 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7128 return higher1st(nullary) + higher2nd(nullary)(unary);
7133 namespace test_variadic_templates
7139 template <int N0, int... N1toN>
7140 struct sum<N0, N1toN...>
7142 static constexpr auto value = N0 + sum<N1toN...>::value;
7148 static constexpr auto value = 0;
7151 static_assert(sum<>::value == 0, "");
7152 static_assert(sum<1>::value == 1, "");
7153 static_assert(sum<23>::value == 23, "");
7154 static_assert(sum<1, 2>::value == 3, "");
7155 static_assert(sum<5, 5, 11>::value == 21, "");
7156 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7160 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7161 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7163 namespace test_template_alias_sfinae
7168 template<typename T>
7169 using member = typename T::member_type;
7171 template<typename T>
7174 template<typename T>
7175 void func(member<T>*) {}
7179 void test() { func<foo>(0); }
7183 } // namespace cxx11
7185 #endif // __cplusplus >= 201103L
7190 if ac_fn_cxx_try_compile "$LINENO"; then :
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 eval ac_res=\$$cachevar
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7200 $as_echo "$ac_res" >&6; }
7201 if eval test x\$$cachevar = xyes; then
7202 CXX_DIALECT="$switch"
7209 if test x$ac_success = xno; then
7210 for alternative in ${ax_cxx_compile_alternatives}; do
7211 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7212 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7214 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7215 if eval \${$cachevar+:} false; then :
7216 $as_echo_n "(cached) " >&6
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7224 // If the compiler admits that it is not ready for C++11, why torture it?
7225 // Hopefully, this will speed up the test.
7229 #error "This is not a C++ compiler"
7231 #elif __cplusplus < 201103L
7233 #error "This is not a C++11 compiler"
7240 namespace test_static_assert
7243 template <typename T>
7246 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7251 namespace test_final_override
7259 struct Derived : public Base
7261 virtual void f() override {}
7266 namespace test_double_right_angle_brackets
7269 template < typename T >
7272 typedef check<void> single_type;
7273 typedef check<check<void>> double_type;
7274 typedef check<check<check<void>>> triple_type;
7275 typedef check<check<check<check<void>>>> quadruple_type;
7279 namespace test_decltype
7292 namespace test_type_deduction
7295 template < typename T1, typename T2 >
7298 static const bool value = false;
7301 template < typename T >
7302 struct is_same<T, T>
7304 static const bool value = true;
7307 template < typename T1, typename T2 >
7309 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7315 test(const int c, volatile int v)
7317 static_assert(is_same<int, decltype(0)>::value == true, "");
7318 static_assert(is_same<int, decltype(c)>::value == false, "");
7319 static_assert(is_same<int, decltype(v)>::value == false, "");
7322 auto sumi = ac + av + 'x';
7323 auto sumf = ac + av + 1.0;
7324 static_assert(is_same<int, decltype(ac)>::value == true, "");
7325 static_assert(is_same<int, decltype(av)>::value == true, "");
7326 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7327 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7328 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7329 return (sumf > 0.0) ? sumi : add(c, v);
7334 namespace test_noexcept
7337 int f() { return 0; }
7338 int g() noexcept { return 0; }
7340 static_assert(noexcept(f()) == false, "");
7341 static_assert(noexcept(g()) == true, "");
7345 namespace test_constexpr
7348 template < typename CharT >
7349 unsigned long constexpr
7350 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7352 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7355 template < typename CharT >
7356 unsigned long constexpr
7357 strlen_c(const CharT *const s) noexcept
7359 return strlen_c_r(s, 0UL);
7362 static_assert(strlen_c("") == 0UL, "");
7363 static_assert(strlen_c("1") == 1UL, "");
7364 static_assert(strlen_c("example") == 7UL, "");
7365 static_assert(strlen_c("another\0example") == 7UL, "");
7369 namespace test_rvalue_references
7375 static constexpr int value = N;
7378 answer<1> f(int&) { return answer<1>(); }
7379 answer<2> f(const int&) { return answer<2>(); }
7380 answer<3> f(int&&) { return answer<3>(); }
7387 static_assert(decltype(f(i))::value == 1, "");
7388 static_assert(decltype(f(c))::value == 2, "");
7389 static_assert(decltype(f(0))::value == 3, "");
7394 namespace test_uniform_initialization
7399 static const int zero {};
7400 static const int one {1};
7403 static_assert(test::zero == 0, "");
7404 static_assert(test::one == 1, "");
7408 namespace test_lambdas
7414 auto lambda1 = [](){};
7415 auto lambda2 = lambda1;
7423 auto a = [](int i, int j){ return i + j; }(1, 2);
7424 auto b = []() -> int { return '0'; }();
7425 auto c = [=](){ return a + b; }();
7426 auto d = [&](){ return c; }();
7427 auto e = [a, &b](int x) mutable {
7428 const auto identity = [](int y){ return y; };
7429 for (auto i = 0; i < a; ++i)
7431 return x + identity(a + b);
7433 return a + b + c + d + e;
7439 const auto nullary = [](){ return 0; };
7440 const auto unary = [](int x){ return x; };
7441 using nullary_t = decltype(nullary);
7442 using unary_t = decltype(unary);
7443 const auto higher1st = [](nullary_t f){ return f(); };
7444 const auto higher2nd = [unary](nullary_t f1){
7445 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7447 return higher1st(nullary) + higher2nd(nullary)(unary);
7452 namespace test_variadic_templates
7458 template <int N0, int... N1toN>
7459 struct sum<N0, N1toN...>
7461 static constexpr auto value = N0 + sum<N1toN...>::value;
7467 static constexpr auto value = 0;
7470 static_assert(sum<>::value == 0, "");
7471 static_assert(sum<1>::value == 1, "");
7472 static_assert(sum<23>::value == 23, "");
7473 static_assert(sum<1, 2>::value == 3, "");
7474 static_assert(sum<5, 5, 11>::value == 21, "");
7475 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7479 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7480 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7482 namespace test_template_alias_sfinae
7487 template<typename T>
7488 using member = typename T::member_type;
7490 template<typename T>
7493 template<typename T>
7494 void func(member<T>*) {}
7498 void test() { func<foo>(0); }
7502 } // namespace cxx11
7504 #endif // __cplusplus >= 201103L
7509 if ac_fn_cxx_try_compile "$LINENO"; then :
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 eval ac_res=\$$cachevar
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7519 $as_echo "$ac_res" >&6; }
7520 if eval test x\$$cachevar = xyes; then
7521 CXX_DIALECT="$switch"
7526 if test x$ac_success = xyes; then
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7538 if test x$ac_success = xno; then
7539 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7542 if test x$ac_success = xno; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7545 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7549 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7556 # If we haven't got the data from the intl directory,
7557 # assume NLS is disabled.
7566 if test -f ../intl/config.intl; then
7567 . ../intl/config.intl
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7570 $as_echo_n "checking whether NLS is requested... " >&6; }
7571 if test x"$USE_NLS" != xyes; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576 $as_echo "yes" >&6; }
7578 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7582 $as_echo_n "checking for catalogs to be installed... " >&6; }
7583 # Look for .po and .gmo files in the source directory.
7586 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7587 # If there aren't any .gmo files the shell will give us the
7588 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7590 case "$cat" in *\**)
7593 # The quadruple backslash is collapsed to a double backslash
7594 # by the backticks, then collapsed again by the double quotes,
7595 # leaving us with one backslash in the sed expression (right
7596 # before the dot that mustn't act as a wildcard).
7597 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7598 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
7599 # The user is allowed to set LINGUAS to a list of languages to
7600 # install catalogs for. If it's empty that means "all of them."
7601 if test "x$LINGUAS" = x; then
7602 CATALOGS="$CATALOGS $cat"
7603 XLINGUAS="$XLINGUAS $lang"
7605 case "$LINGUAS" in *$lang*)
7606 CATALOGS="$CATALOGS $cat"
7607 XLINGUAS="$XLINGUAS $lang"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7614 $as_echo "$LINGUAS" >&6; }
7628 # Check for presence and size of long long.
7629 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7630 if test "x$ac_cv_type_long_long" = xyes; then :
7632 cat >>confdefs.h <<_ACEOF
7633 #define HAVE_LONG_LONG 1
7636 # The cast to long int works around a bug in the HP C Compiler
7637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7638 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7639 # This bug is HP SR number 8606223364.
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7641 $as_echo_n "checking size of long long... " >&6; }
7642 if ${ac_cv_sizeof_long_long+:} false; then :
7643 $as_echo_n "(cached) " >&6
7645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7648 if test "$ac_cv_type_long_long" = yes; then
7649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
7651 as_fn_error 77 "cannot compute sizeof (long long)
7652 See \`config.log
' for more details" "$LINENO" 5; }
7654 ac_cv_sizeof_long_long=0
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7660 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7664 cat >>confdefs.h <<_ACEOF
7665 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7672 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7673 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7674 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7680 cat >>confdefs.h <<_ACEOF
7681 #define HAVE_DECL_BASENAME $ac_have_decl
7683 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7684 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_DECL_FFS $ac_have_decl
7693 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7694 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7700 cat >>confdefs.h <<_ACEOF
7701 #define HAVE_DECL_ASPRINTF $ac_have_decl
7703 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7704 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_DECL_VASPRINTF $ac_have_decl
7713 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7714 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7720 cat >>confdefs.h <<_ACEOF
7721 #define HAVE_DECL_SNPRINTF $ac_have_decl
7723 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7724 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7730 cat >>confdefs.h <<_ACEOF
7731 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7734 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7735 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7741 cat >>confdefs.h <<_ACEOF
7742 #define HAVE_DECL_STRTOL $ac_have_decl
7744 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7745 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7751 cat >>confdefs.h <<_ACEOF
7752 #define HAVE_DECL_STRTOUL $ac_have_decl
7754 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7755 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7761 cat >>confdefs.h <<_ACEOF
7762 #define HAVE_DECL_STRTOLL $ac_have_decl
7764 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7765 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7771 cat >>confdefs.h <<_ACEOF
7772 #define HAVE_DECL_STRTOULL $ac_have_decl
7775 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7776 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7782 cat >>confdefs.h <<_ACEOF
7783 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7787 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7788 if test "x$ac_cv_type_size_t" = xyes; then :
7792 cat >>confdefs.h <<_ACEOF
7793 #define size_t unsigned int
7801 for ac_header in $ac_header_list
7803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7807 cat >>confdefs.h <<_ACEOF
7808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7821 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7822 if test "x$ac_cv_type_pid_t" = xyes; then :
7826 cat >>confdefs.h <<_ACEOF
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7833 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7834 if ${ac_cv_path_SED+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7838 for ac_i in 1 2 3 4 5 6 7; do
7839 ac_script="$ac_script$as_nl$ac_script"
7841 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7842 { ac_script=; unset ac_script;}
7843 if test -z "$SED"; then
7844 ac_path_SED_found=false
7845 # Loop through the user's path and
test for each of PROGNAME-LIST
7846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir
=.
7851 for ac_prog
in sed gsed
; do
7852 for ac_exec_ext
in '' $ac_executable_extensions; do
7853 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
7854 as_fn_executable_p
"$ac_path_SED" ||
continue
7855 # Check for GNU ac_path_SED and select it if it is found.
7856 # Check for GNU $ac_path_SED
7857 case `"$ac_path_SED" --version 2>&1` in
7859 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
7862 $as_echo_n 0123456789 >"conftest.in"
7865 cat "conftest.in" "conftest.in" >"conftest.tmp"
7866 mv "conftest.tmp" "conftest.in"
7867 cp "conftest.in" "conftest.nl"
7868 $as_echo '' >> "conftest.nl"
7869 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7870 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7871 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7872 if test $ac_count -gt ${ac_path_SED_max-0}; then
7873 # Best one so far, save it but keep looking for a better one
7874 ac_cv_path_SED
="$ac_path_SED"
7875 ac_path_SED_max
=$ac_count
7877 # 10*(2^10) chars as input seems more than enough
7878 test $ac_count -gt 10 && break
7880 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7883 $ac_path_SED_found && break 3
7888 if test -z "$ac_cv_path_SED"; then
7889 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7897 $as_echo "$ac_cv_path_SED" >&6; }
7898 SED
="$ac_cv_path_SED"
7902 if test "X$prefix" = "XNONE"; then
7903 acl_final_prefix
="$ac_default_prefix"
7905 acl_final_prefix
="$prefix"
7907 if test "X$exec_prefix" = "XNONE"; then
7908 acl_final_exec_prefix
='${prefix}'
7910 acl_final_exec_prefix
="$exec_prefix"
7912 acl_save_prefix
="$prefix"
7913 prefix
="$acl_final_prefix"
7914 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7915 prefix
="$acl_save_prefix"
7918 # Check whether --with-gnu-ld was given.
7919 if test "${with_gnu_ld+set}" = set; then :
7920 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7925 # Prepare PATH_SEPARATOR.
7926 # The user is always right.
7927 if test "${PATH_SEPARATOR+set}" != set; then
7928 echo "#! /bin/sh" >conf$$.sh
7929 echo "exit 0" >>conf$$.sh
7931 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7939 if test "$GCC" = yes; then
7940 # Check if gcc -print-prog-name=ld gives a path.
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7942 $as_echo_n "checking for ld used by GCC... " >&6; }
7945 # gcc leaves a trailing carriage return which upsets mingw
7946 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7948 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7951 # Accept absolute paths.
7952 [\\/]* |
[A-Za-z
]:[\\/]*)
7953 re_direlt
='/[^/][^/]*/\.\./'
7954 # Canonicalize the path of ld
7955 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7956 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7957 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7959 test -z "$LD" && LD
="$ac_prog"
7962 # If it fails, then pretend we aren't using GCC.
7966 # If it is relative, then search for the first ld in PATH.
7970 elif test "$with_gnu_ld" = yes; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7972 $as_echo_n "checking for GNU ld... " >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7975 $as_echo_n "checking for non-GNU ld... " >&6; }
7977 if ${acl_cv_path_LD+:} false
; then :
7978 $as_echo_n "(cached) " >&6
7980 if test -z "$LD"; then
7981 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7982 for ac_dir
in $PATH; do
7983 test -z "$ac_dir" && ac_dir
=.
7984 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7985 acl_cv_path_LD
="$ac_dir/$ac_prog"
7986 # Check to see if the program is GNU ld. I'd rather use --version,
7987 # but apparently some GNU ld's only accept -v.
7988 # Break only if it was the GNU/non-GNU ld that we prefer.
7989 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7990 test "$with_gnu_ld" != no
&& break
7992 test "$with_gnu_ld" != yes && break
7998 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8002 LD
="$acl_cv_path_LD"
8003 if test -n "$LD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8005 $as_echo "$LD" >&6; }
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8010 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8012 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8013 if ${acl_cv_prog_gnu_ld+:} false
; then :
8014 $as_echo_n "(cached) " >&6
8016 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8017 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8018 acl_cv_prog_gnu_ld
=yes
8020 acl_cv_prog_gnu_ld
=no
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8024 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8025 with_gnu_ld
=$acl_cv_prog_gnu_ld
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8030 $as_echo_n "checking for shared library run path origin... " >&6; }
8031 if ${acl_cv_rpath+:} false
; then :
8032 $as_echo_n "(cached) " >&6
8035 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8036 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8043 $as_echo "$acl_cv_rpath" >&6; }
8045 libext
="$acl_cv_libext"
8046 shlibext
="$acl_cv_shlibext"
8047 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8048 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8049 hardcode_direct
="$acl_cv_hardcode_direct"
8050 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8051 # Check whether --enable-rpath was given.
8052 if test "${enable_rpath+set}" = set; then :
8053 enableval
=$enable_rpath; :
8060 # Set the 'development' global.
8061 .
$srcdir/..
/bfd
/development.sh
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8064 $as_echo_n "checking for ANSI C header files... " >&6; }
8065 if ${ac_cv_header_stdc+:} false
; then :
8066 $as_echo_n "(cached) " >&6
8068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8083 if ac_fn_c_try_compile
"$LINENO"; then :
8084 ac_cv_header_stdc
=yes
8086 ac_cv_header_stdc
=no
8088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8090 if test $ac_cv_header_stdc = yes; then
8091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "memchr" >/dev
/null
2>&1; then :
8101 ac_cv_header_stdc
=no
8107 if test $ac_cv_header_stdc = yes; then
8108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115 $EGREP "free" >/dev
/null
2>&1; then :
8118 ac_cv_header_stdc
=no
8124 if test $ac_cv_header_stdc = yes; then
8125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8126 if test "$cross_compiling" = yes; then :
8129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8137 # define ISLOWER(c) \
8138 (('a' <= (c) && (c) <= 'i') \
8139 || ('j' <= (c) && (c) <= 'r') \
8140 || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8149 for (i = 0; i < 256; i++)
8150 if (XOR (islower (i), ISLOWER (i))
8151 || toupper (i) != TOUPPER (i))
8156 if ac_fn_c_try_run
"$LINENO"; then :
8159 ac_cv_header_stdc
=no
8161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8162 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8168 $as_echo "$ac_cv_header_stdc" >&6; }
8169 if test $ac_cv_header_stdc = yes; then
8171 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8175 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8176 # for constant arguments. Useless!
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8178 $as_echo_n "checking for working alloca.h... " >&6; }
8179 if ${ac_cv_working_alloca_h+:} false
; then :
8180 $as_echo_n "(cached) " >&6
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8188 char *p = (char *) alloca (2 * sizeof (int));
8194 if ac_fn_c_try_link
"$LINENO"; then :
8195 ac_cv_working_alloca_h
=yes
8197 ac_cv_working_alloca_h
=no
8199 rm -f core conftest.err conftest.
$ac_objext \
8200 conftest
$ac_exeext conftest.
$ac_ext
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8203 $as_echo "$ac_cv_working_alloca_h" >&6; }
8204 if test $ac_cv_working_alloca_h = yes; then
8206 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8211 $as_echo_n "checking for alloca... " >&6; }
8212 if ${ac_cv_func_alloca_works+:} false
; then :
8213 $as_echo_n "(cached) " >&6
8215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8218 # define alloca __builtin_alloca
8221 # include <malloc.h>
8222 # define alloca _alloca
8224 # ifdef HAVE_ALLOCA_H
8225 # include <alloca.h>
8230 # ifndef alloca /* predefined by HP cc +Olibcalls */
8231 void *alloca (size_t);
8241 char *p = (char *) alloca (1);
8247 if ac_fn_c_try_link
"$LINENO"; then :
8248 ac_cv_func_alloca_works
=yes
8250 ac_cv_func_alloca_works
=no
8252 rm -f core conftest.err conftest.
$ac_objext \
8253 conftest
$ac_exeext conftest.
$ac_ext
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8256 $as_echo "$ac_cv_func_alloca_works" >&6; }
8258 if test $ac_cv_func_alloca_works = yes; then
8260 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8263 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8264 # that cause trouble. Some versions do not even contain alloca or
8265 # contain a buggy version. If you still want to use their alloca,
8266 # use ar to extract alloca.o from them instead of compiling alloca.c.
8268 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8270 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8274 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8275 if ${ac_cv_os_cray+:} false
; then :
8276 $as_echo_n "(cached) " >&6
8278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #if defined CRAY && ! defined CRAY2
8287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288 $EGREP "webecray" >/dev
/null
2>&1; then :
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8297 $as_echo "$ac_cv_os_cray" >&6; }
8298 if test $ac_cv_os_cray = yes; then
8299 for ac_func
in _getb67 GETB67 getb67
; do
8300 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8301 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8302 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8304 cat >>confdefs.h
<<_ACEOF
8305 #define CRAY_STACKSEG_END $ac_func
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8315 $as_echo_n "checking stack direction for C alloca... " >&6; }
8316 if ${ac_cv_c_stack_direction+:} false
; then :
8317 $as_echo_n "(cached) " >&6
8319 if test "$cross_compiling" = yes; then :
8320 ac_cv_c_stack_direction
=0
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 $ac_includes_default
8326 find_stack_direction (int *addr, int depth)
8331 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8332 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8337 main (int argc, char **argv)
8339 return find_stack_direction (0, argc + !argv + 20) < 0;
8342 if ac_fn_c_try_run
"$LINENO"; then :
8343 ac_cv_c_stack_direction
=1
8345 ac_cv_c_stack_direction
=-1
8347 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8348 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8353 $as_echo "$ac_cv_c_stack_direction" >&6; }
8354 cat >>confdefs.h
<<_ACEOF
8355 #define STACK_DIRECTION $ac_cv_c_stack_direction
8366 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8368 WIN32APILIBS
="-lws2_32"
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8374 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8375 if ${am_cv_langinfo_codeset+:} false
; then :
8376 $as_echo_n "(cached) " >&6
8378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380 #include <langinfo.h>
8384 char* cs = nl_langinfo(CODESET);
8389 if ac_fn_c_try_link
"$LINENO"; then :
8390 am_cv_langinfo_codeset
=yes
8392 am_cv_langinfo_codeset
=no
8394 rm -f core conftest.err conftest.
$ac_objext \
8395 conftest
$ac_exeext conftest.
$ac_ext
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8399 $as_echo "$am_cv_langinfo_codeset" >&6; }
8400 if test $am_cv_langinfo_codeset = yes; then
8402 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8407 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 sys
/procfs.h proc_service.h
8409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8410 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8411 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8412 cat >>confdefs.h
<<_ACEOF
8413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8422 for ac_func
in getpagesize
8424 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8425 if test "x$ac_cv_func_getpagesize" = xyes
; then :
8426 cat >>confdefs.h
<<_ACEOF
8427 #define HAVE_GETPAGESIZE 1
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8434 $as_echo_n "checking for working mmap... " >&6; }
8435 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
8436 $as_echo_n "(cached) " >&6
8438 if test "$cross_compiling" = yes; then :
8439 ac_cv_func_mmap_fixed_mapped
=no
8441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 $ac_includes_default
8444 /* malloc might have been renamed as rpl_malloc. */
8447 /* Thanks to Mike Haertel and Jim Avera for this test.
8448 Here is a matrix of mmap possibilities:
8449 mmap private not fixed
8450 mmap private fixed at somewhere currently unmapped
8451 mmap private fixed at somewhere already mapped
8452 mmap shared not fixed
8453 mmap shared fixed at somewhere currently unmapped
8454 mmap shared fixed at somewhere already mapped
8455 For private mappings, we should verify that changes cannot be read()
8456 back from the file, nor mmap's back from the file at a different
8457 address. (There have been systems where private was not correctly
8458 implemented like the infamous i386 svr4.0, and systems where the
8459 VM page cache was not coherent with the file system buffer cache
8460 like early versions of FreeBSD and possibly contemporary NetBSD.)
8461 For shared mappings, we should conversely verify that changes get
8462 propagated back to all the places they're supposed to be.
8464 Grep wants private fixed already mapped.
8465 The main things grep needs to know about mmap are:
8466 * does it exist and is it safe to write into the mmap'd area
8467 * how to use it (BSD variants) */
8470 #include <sys/mman.h>
8472 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8476 /* This mess was copied from the GNU getpagesize.h. */
8477 #ifndef HAVE_GETPAGESIZE
8478 # ifdef _SC_PAGESIZE
8479 # define getpagesize() sysconf(_SC_PAGESIZE)
8480 # else /* no _SC_PAGESIZE */
8481 # ifdef HAVE_SYS_PARAM_H
8482 # include <sys/param.h>
8483 # ifdef EXEC_PAGESIZE
8484 # define getpagesize() EXEC_PAGESIZE
8485 # else /* no EXEC_PAGESIZE */
8487 # define getpagesize() NBPG * CLSIZE
8490 # endif /* no CLSIZE */
8491 # else /* no NBPG */
8493 # define getpagesize() NBPC
8494 # else /* no NBPC */
8496 # define getpagesize() PAGESIZE
8497 # endif /* PAGESIZE */
8498 # endif /* no NBPC */
8499 # endif /* no NBPG */
8500 # endif /* no EXEC_PAGESIZE */
8501 # else /* no HAVE_SYS_PARAM_H */
8502 # define getpagesize() 8192 /* punt totally */
8503 # endif /* no HAVE_SYS_PARAM_H */
8504 # endif /* no _SC_PAGESIZE */
8506 #endif /* no HAVE_GETPAGESIZE */
8511 char *data, *data2, *data3;
8516 pagesize = getpagesize ();
8518 /* First, make a file with some known garbage in it. */
8519 data = (char *) malloc (pagesize);
8522 for (i = 0; i < pagesize; ++i)
8523 *(data + i) = rand ();
8525 fd = creat ("conftest.mmap", 0600);
8528 if (write (fd, data, pagesize) != pagesize)
8532 /* Next, check that the tail of a page is zero-filled. File must have
8533 non-zero length, otherwise we risk SIGBUS for entire page. */
8534 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8538 if (write (fd2, cdata2, 1) != 1)
8540 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8541 if (data2 == MAP_FAILED)
8543 for (i = 0; i < pagesize; ++i)
8547 if (munmap (data2, pagesize))
8550 /* Next, try to mmap the file at a fixed address which already has
8551 something else allocated at it. If we can, also make sure that
8552 we see the same garbage. */
8553 fd = open ("conftest.mmap", O_RDWR);
8556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8559 for (i = 0; i < pagesize; ++i)
8560 if (*(data + i) != *(data2 + i))
8563 /* Finally, make sure that changes to the mapped area do not
8564 percolate back to the file as seen by read(). (This is a bug on
8565 some variants of i386 svr4.0.) */
8566 for (i = 0; i < pagesize; ++i)
8567 *(data2 + i) = *(data2 + i) + 1;
8568 data3 = (char *) malloc (pagesize);
8571 if (read (fd, data3, pagesize) != pagesize)
8573 for (i = 0; i < pagesize; ++i)
8574 if (*(data + i) != *(data3 + i))
8580 if ac_fn_c_try_run
"$LINENO"; then :
8581 ac_cv_func_mmap_fixed_mapped
=yes
8583 ac_cv_func_mmap_fixed_mapped
=no
8585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8591 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8592 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8594 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8597 rm -f conftest.mmap conftest.txt
8599 for ac_header
in vfork.h
8601 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8602 if test "x$ac_cv_header_vfork_h" = xyes
; then :
8603 cat >>confdefs.h
<<_ACEOF
8604 #define HAVE_VFORK_H 1
8611 for ac_func
in fork vfork
8613 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8614 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8615 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8616 cat >>confdefs.h
<<_ACEOF
8617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8623 if test "x$ac_cv_func_fork" = xyes
; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8625 $as_echo_n "checking for working fork... " >&6; }
8626 if ${ac_cv_func_fork_works+:} false
; then :
8627 $as_echo_n "(cached) " >&6
8629 if test "$cross_compiling" = yes; then :
8630 ac_cv_func_fork_works
=cross
8632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 $ac_includes_default
8639 /* By Ruediger Kuhlmann. */
8646 if ac_fn_c_try_run
"$LINENO"; then :
8647 ac_cv_func_fork_works
=yes
8649 ac_cv_func_fork_works
=no
8651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8657 $as_echo "$ac_cv_func_fork_works" >&6; }
8660 ac_cv_func_fork_works
=$ac_cv_func_fork
8662 if test "x$ac_cv_func_fork_works" = xcross
; then
8664 *-*-amigaos* |
*-*-msdosdjgpp*)
8665 # Override, as these systems have only a dummy fork() stub
8666 ac_cv_func_fork_works
=no
8669 ac_cv_func_fork_works
=yes
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8673 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8675 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8676 if test "x$ac_cv_func_vfork" = xyes
; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8678 $as_echo_n "checking for working vfork... " >&6; }
8679 if ${ac_cv_func_vfork_works+:} false
; then :
8680 $as_echo_n "(cached) " >&6
8682 if test "$cross_compiling" = yes; then :
8683 ac_cv_func_vfork_works
=cross
8685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 /* Thanks to Paul Eggert for this test. */
8688 $ac_includes_default
8689 #include <sys/wait.h>
8693 /* On some sparc systems, changes by the child to local and incoming
8694 argument registers are propagated back to the parent. The compiler
8695 is told about this with #include <vfork.h>, but some compilers
8696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8697 static variable whose address is put into a register that is
8698 clobbered by the vfork. */
8701 sparc_address_test (int arg)
8703 sparc_address_test (arg) int arg;
8724 pid_t parent = getpid ();
8727 sparc_address_test (0);
8732 /* Here is another test for sparc vfork register problems. This
8733 test uses lots of local variables, at least as many local
8734 variables as main has allocated so far including compiler
8735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8737 reuse the register of parent for one of the local variables,
8738 since it will think that parent can't possibly be used any more
8739 in this routine. Assigning to the local variable will thus
8740 munge parent in the parent process. */
8742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8744 /* Convince the compiler that p..p7 are live; otherwise, it might
8745 use the same hardware register for all 8 local variables. */
8746 if (p != p1 || p != p2 || p != p3 || p != p4
8747 || p != p5 || p != p6 || p != p7)
8750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8751 from child file descriptors. If the child closes a descriptor
8752 before it execs or exits, this munges the parent's descriptor
8753 as well. Test for this by closing stdout in the child. */
8754 _exit(close(fileno(stdout)) != 0);
8759 while (wait(&status) != child)
8762 /* Was there some problem with vforking? */
8765 /* Did the child fail? (This shouldn't happen.) */
8768 /* Did the vfork/compiler bug occur? */
8769 || parent != getpid()
8771 /* Did the file descriptor bug occur? */
8772 || fstat(fileno(stdout), &st) != 0
8777 if ac_fn_c_try_run
"$LINENO"; then :
8778 ac_cv_func_vfork_works
=yes
8780 ac_cv_func_vfork_works
=no
8782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8788 $as_echo "$ac_cv_func_vfork_works" >&6; }
8791 if test "x$ac_cv_func_fork_works" = xcross
; then
8792 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8794 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8797 if test "x$ac_cv_func_vfork_works" = xyes
; then
8799 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8803 $as_echo "#define vfork fork" >>confdefs.h
8806 if test "x$ac_cv_func_fork_works" = xyes
; then
8808 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8812 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
8813 ptrace64 sbrk setns sigaltstack sigprocmask \
8814 setpgid setpgrp getrusage getauxval
8816 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8817 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8818 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8819 cat >>confdefs.h
<<_ACEOF
8820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8827 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8829 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8835 cat >>confdefs.h
<<_ACEOF
8836 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8840 if test "$cross_compiling" = yes; then :
8841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <sys/personality.h>
8848 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8849 # define ADDR_NO_RANDOMIZE 0x0040000
8851 /* Test the flag could be set and stays set. */
8852 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8853 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8859 if ac_fn_c_try_link
"$LINENO"; then :
8860 have_personality
=true
8862 have_personality
=false
8864 rm -f core conftest.err conftest.
$ac_objext \
8865 conftest
$ac_exeext conftest.
$ac_ext
8867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 #include <sys/personality.h>
8874 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8875 # define ADDR_NO_RANDOMIZE 0x0040000
8877 /* Test the flag could be set and stays set. */
8878 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8879 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8885 if ac_fn_c_try_run
"$LINENO"; then :
8886 have_personality
=true
8888 have_personality
=false
8890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8894 if $have_personality
8897 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8901 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8902 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
8908 cat >>confdefs.h
<<_ACEOF
8909 #define HAVE_DECL_STRSTR $ac_have_decl
8913 # ----------------------- #
8914 # Checks for structures. #
8915 # ----------------------- #
8917 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8918 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8920 cat >>confdefs.h
<<_ACEOF
8921 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8926 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8927 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8929 cat >>confdefs.h
<<_ACEOF
8930 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8938 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8939 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8940 $as_echo_n "(cached) " >&6
8942 ac_func_search_save_LIBS
=$LIBS
8943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8946 /* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8952 char kinfo_getfile ();
8956 return kinfo_getfile ();
8961 for ac_lib
in '' util util-freebsd
; do
8962 if test -z "$ac_lib"; then
8963 ac_res
="none required"
8966 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8968 if ac_fn_c_try_link
"$LINENO"; then :
8969 ac_cv_search_kinfo_getfile
=$ac_res
8971 rm -f core conftest.err conftest.
$ac_objext \
8973 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8977 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8980 ac_cv_search_kinfo_getfile
=no
8983 LIBS
=$ac_func_search_save_LIBS
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8986 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8987 ac_res
=$ac_cv_search_kinfo_getfile
8988 if test "$ac_res" != no
; then :
8989 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8991 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8996 # Check for std::thread. This does not work on some platforms, like
8999 ac_cpp
='$CXXCPP $CPPFLAGS'
9000 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9009 ac_cpp
='$CPP $CPPFLAGS'
9010 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9011 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9012 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9016 # We used to check for pthread.h first, but this fails if pthread.h
9017 # requires special compiler flags (e.g. on Tru64 or Sequent).
9018 # It gets checked for in the link test anyway.
9020 # First of all, check if the user has set any of the PTHREAD_LIBS,
9021 # etcetera environment variables, and if threads linking works using
9023 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9024 ax_pthread_save_CC
="$CC"
9025 ax_pthread_save_CFLAGS
="$CFLAGS"
9026 ax_pthread_save_LIBS
="$LIBS"
9027 if test "x$PTHREAD_CC" != "x"; then :
9030 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9031 LIBS
="$PTHREAD_LIBS $LIBS"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9033 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9037 /* Override any GCC internal prototype to avoid an error.
9038 Use char because int might match the return type of a GCC
9039 builtin and then its argument prototype would still apply. */
9043 char pthread_join ();
9047 return pthread_join ();
9052 if ac_fn_c_try_link
"$LINENO"; then :
9055 rm -f core conftest.err conftest.
$ac_objext \
9056 conftest
$ac_exeext conftest.
$ac_ext
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9058 $as_echo "$ax_pthread_ok" >&6; }
9059 if test "x$ax_pthread_ok" = "xno"; then
9063 CC
="$ax_pthread_save_CC"
9064 CFLAGS
="$ax_pthread_save_CFLAGS"
9065 LIBS
="$ax_pthread_save_LIBS"
9068 # We must check for the threads library under a number of different
9069 # names; the ordering is very important because some systems
9070 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9071 # libraries is broken (non-POSIX).
9073 # Create a list of thread flags to try. Items starting with a "-" are
9074 # C compiler flags, and other items are library names, except for "none"
9075 # which indicates that we try without any flags at all, and "pthread-config"
9076 # which is a program returning the flags for the Pth emulation library.
9078 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9080 # The ordering *is* (sometimes) important. Some notes on the
9081 # individual items follow:
9083 # pthreads: AIX (must check this before -lpthread)
9084 # none: in case threads are in libc; should be tried before -Kthread and
9085 # other compiler flags to prevent continual compiler warnings
9086 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9087 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9088 # (Note: HP C rejects this with "bad form for `-t' option")
9089 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9090 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9091 # doesn't hurt to check since this sometimes defines pthreads and
9092 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9093 # is present but should not be used directly; and before -mthreads,
9094 # because the compiler interprets this as "-mt" + "-hreads")
9095 # -mthreads: Mingw32/gcc, Lynx/gcc
9096 # pthread: Linux, etcetera
9097 # --thread-safe: KAI C++
9098 # pthread-config: use pthread-config program (for GNU Pth library)
9104 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9105 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9107 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
9112 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9113 # multi-threading and also sets -lpthread."
9115 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
9120 # IBM z/OS requires a feature-test macro to be defined in order to
9121 # enable POSIX threads at all, so give the user a hint if this is
9122 # not set. (We don't define these ourselves, as they can affect
9123 # other portions of the system API in unpredictable ways.)
9125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9128 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9129 AX_PTHREAD_ZOS_MISSING
9133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9134 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9136 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9144 # On Solaris (at least, for some versions), libc contains stubbed
9145 # (non-functional) versions of the pthreads routines, so link-based
9146 # tests will erroneously succeed. (N.B.: The stubs are missing
9147 # pthread_cleanup_push, or rather a function called by this macro,
9148 # so we could check for that, but who knows whether they'll stub
9149 # that too in a future libc.) So we'll check first for the
9150 # standard Solaris way of linking pthreads (-mt -lpthread).
9152 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
9156 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9158 if test "x$GCC" = "xyes"; then :
9159 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
9162 # The presence of a feature test macro requesting re-entrant function
9163 # definitions is, on some systems, a strong hint that pthreads support is
9167 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
9168 ax_pthread_check_macro
="_REENTRANT"
9172 ax_pthread_check_macro
="_THREAD_SAFE"
9176 ax_pthread_check_macro
="--"
9179 if test "x$ax_pthread_check_macro" = "x--"; then :
9180 ax_pthread_check_cond
=0
9182 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
9185 # Are we compiling with Clang?
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9188 $as_echo_n "checking whether $CC is Clang... " >&6; }
9189 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
9190 $as_echo_n "(cached) " >&6
9192 ax_cv_PTHREAD_CLANG
=no
9193 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9194 if test "x$GCC" = "xyes"; then
9195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9198 # if defined(__clang__) && defined(__llvm__)
9199 AX_PTHREAD_CC_IS_CLANG
9203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9204 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
9205 ax_cv_PTHREAD_CLANG
=yes
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9213 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9214 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
9216 ax_pthread_clang_warning
=no
9218 # Clang needs special handling, because older versions handle the -pthread
9219 # option in a rather... idiosyncratic way
9221 if test "x$ax_pthread_clang" = "xyes"; then
9223 # Clang takes -pthread; it has never supported any other flag
9225 # (Note 1: This will need to be revisited if a system that Clang
9226 # supports has POSIX threads in a separate library. This tends not
9227 # to be the way of modern systems, but it's conceivable.)
9229 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9230 # to get POSIX threads support; the API is always present and
9231 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9232 # -pthread does define _REENTRANT, and while the Darwin headers
9233 # ignore this macro, third-party headers might not.)
9235 PTHREAD_CFLAGS
="-pthread"
9240 # However, older versions of Clang make a point of warning the user
9241 # that, in an invocation where only linking and no compilation is
9242 # taking place, the -pthread option has no effect ("argument unused
9243 # during compilation"). They expect -pthread to be passed in only
9244 # when source code is being compiled.
9246 # Problem is, this is at odds with the way Automake and most other
9247 # C build frameworks function, which is that the same flags used in
9248 # compilation (CFLAGS) are also used in linking. Many systems
9249 # supported by AX_PTHREAD require exactly this for POSIX threads
9250 # support, and in fact it is often not straightforward to specify a
9251 # flag that is used only in the compilation phase and not in
9252 # linking. Such a scenario is extremely rare in practice.
9254 # Even though use of the -pthread flag in linking would only print
9255 # a warning, this can be a nuisance for well-run software projects
9256 # that build with -Werror. So if the active version of Clang has
9257 # this misfeature, we search for an option to squash it.
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9260 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9261 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
9262 $as_echo_n "(cached) " >&6
9264 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
9265 # Create an alternate version of $ac_link that compiles and
9266 # links in two steps (.c -> .o, .o -> exe) instead of one
9267 # (.c -> exe), because the warning occurs only in the second
9269 ax_pthread_save_ac_link
="$ac_link"
9270 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9271 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9272 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9273 ax_pthread_save_CFLAGS
="$CFLAGS"
9274 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
9275 if test "x$ax_pthread_try" = "xunknown"; then :
9278 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9279 ac_link
="$ax_pthread_save_ac_link"
9280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 int main(void){return 0;}
9284 if ac_fn_c_try_link
"$LINENO"; then :
9285 ac_link
="$ax_pthread_2step_ac_link"
9286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 int main(void){return 0;}
9290 if ac_fn_c_try_link
"$LINENO"; then :
9293 rm -f core conftest.err conftest.
$ac_objext \
9294 conftest
$ac_exeext conftest.
$ac_ext
9297 rm -f core conftest.err conftest.
$ac_objext \
9298 conftest
$ac_exeext conftest.
$ac_ext
9300 ac_link
="$ax_pthread_save_ac_link"
9301 CFLAGS
="$ax_pthread_save_CFLAGS"
9302 if test "x$ax_pthread_try" = "x"; then :
9305 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9309 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9311 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9313 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9316 fi # $ax_pthread_clang = yes
9318 if test "x$ax_pthread_ok" = "xno"; then
9319 for ax_pthread_try_flag
in $ax_pthread_flags; do
9321 case $ax_pthread_try_flag in
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9324 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9329 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9330 PTHREAD_CFLAGS
="-mt"
9331 PTHREAD_LIBS
="-lpthread"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9336 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9337 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
9341 # Extract the first word of "pthread-config", so it can be a program name with args.
9342 set dummy pthread-config
; ac_word
=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344 $as_echo_n "checking for $ac_word... " >&6; }
9345 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
9346 $as_echo_n "(cached) " >&6
9348 if test -n "$ax_pthread_config"; then
9349 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
9351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9355 test -z "$as_dir" && as_dir
=.
9356 for ac_exec_ext
in '' $ac_executable_extensions; do
9357 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9358 ac_cv_prog_ax_pthread_config
="yes"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
9369 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
9370 if test -n "$ax_pthread_config"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9372 $as_echo "$ax_pthread_config" >&6; }
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9379 if test "x$ax_pthread_config" = "xno"; then :
9382 PTHREAD_CFLAGS
="`pthread-config --cflags`"
9383 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9388 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9389 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
9393 ax_pthread_save_CFLAGS
="$CFLAGS"
9394 ax_pthread_save_LIBS
="$LIBS"
9395 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9396 LIBS
="$PTHREAD_LIBS $LIBS"
9398 # Check for various functions. We must include pthread.h,
9399 # since some functions may be macros. (On the Sequent, we
9400 # need a special flag -Kthread to make this header compile.)
9401 # We check for pthread_join because it is in -lpthread on IRIX
9402 # while pthread_create is in libc. We check for pthread_attr_init
9403 # due to DEC craziness with -lpthreads. We check for
9404 # pthread_cleanup_push because it is one of the few pthread
9405 # functions on Solaris that doesn't have a non-functional libc stub.
9406 # We try pthread_create on general principles.
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 #include <pthread.h>
9411 # if $ax_pthread_check_cond
9412 # error "$ax_pthread_check_macro must be defined"
9414 static void routine(void *a) { a = 0; }
9415 static void *start_routine(void *a) { return a; }
9419 pthread_t th; pthread_attr_t attr;
9420 pthread_create(&th, 0, start_routine, 0);
9421 pthread_join(th, 0);
9422 pthread_attr_init(&attr);
9423 pthread_cleanup_push(routine, 0);
9424 pthread_cleanup_pop(0) /* ; */
9429 if ac_fn_c_try_link
"$LINENO"; then :
9432 rm -f core conftest.err conftest.
$ac_objext \
9433 conftest
$ac_exeext conftest.
$ac_ext
9435 CFLAGS
="$ax_pthread_save_CFLAGS"
9436 LIBS
="$ax_pthread_save_LIBS"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9439 $as_echo "$ax_pthread_ok" >&6; }
9440 if test "x$ax_pthread_ok" = "xyes"; then :
9449 # Various other checks:
9450 if test "x$ax_pthread_ok" = "xyes"; then
9451 ax_pthread_save_CFLAGS
="$CFLAGS"
9452 ax_pthread_save_LIBS
="$LIBS"
9453 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9454 LIBS
="$PTHREAD_LIBS $LIBS"
9456 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9458 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9459 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
9460 $as_echo_n "(cached) " >&6
9462 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
9463 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 #include <pthread.h>
9470 int attr = $ax_pthread_attr; return attr /* ; */
9475 if ac_fn_c_try_link
"$LINENO"; then :
9476 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
9478 rm -f core conftest.err conftest.
$ac_objext \
9479 conftest
$ac_exeext conftest.
$ac_ext
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9484 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9485 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9486 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9487 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9489 cat >>confdefs.h
<<_ACEOF
9490 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9493 ax_pthread_joinable_attr_defined
=yes
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9498 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9499 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
9500 $as_echo_n "(cached) " >&6
9502 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
9505 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9511 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9512 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9513 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9514 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9515 ax_pthread_special_flags_added
=yes
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9519 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9520 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
9521 $as_echo_n "(cached) " >&6
9523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 #include <pthread.h>
9529 int i = PTHREAD_PRIO_INHERIT;
9534 if ac_fn_c_try_link
"$LINENO"; then :
9535 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9537 ax_cv_PTHREAD_PRIO_INHERIT
=no
9539 rm -f core conftest.err conftest.
$ac_objext \
9540 conftest
$ac_exeext conftest.
$ac_ext
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9544 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9545 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9546 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9548 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9550 ax_pthread_prio_inherit_defined
=yes
9554 CFLAGS
="$ax_pthread_save_CFLAGS"
9555 LIBS
="$ax_pthread_save_LIBS"
9557 # More AIX lossage: compile with *_r variant
9558 if test "x$GCC" != "xyes"; then
9562 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
9563 #handle absolute path differently from PATH based program lookup
9566 if as_fn_executable_p
${CC}_r
; then :
9567 PTHREAD_CC
="${CC}_r"
9570 for ac_prog
in ${CC}_r
9572 # Extract the first word of "$ac_prog", so it can be a program name with args.
9573 set dummy
$ac_prog; ac_word
=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
9577 $as_echo_n "(cached) " >&6
9579 if test -n "$PTHREAD_CC"; then
9580 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
9582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9586 test -z "$as_dir" && as_dir
=.
9587 for ac_exec_ext
in '' $ac_executable_extensions; do
9588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9589 ac_cv_prog_PTHREAD_CC
="$ac_prog"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
9600 if test -n "$PTHREAD_CC"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9602 $as_echo "$PTHREAD_CC" >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9609 test -n "$PTHREAD_CC" && break
9611 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9622 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9628 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9629 if test "x$ax_pthread_ok" = "xyes"; then
9637 ac_cpp
='$CXXCPP $CPPFLAGS'
9638 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9639 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9640 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9643 if test "$threads" = "yes"; then
9645 LIBS
="$PTHREAD_LIBS $LIBS"
9646 save_CXXFLAGS
="$CXXFLAGS"
9647 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9649 $as_echo_n "checking for std::thread... " >&6; }
9650 if ${gdb_cv_cxx_std_thread+:} false
; then :
9651 $as_echo_n "(cached) " >&6
9653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9660 std::thread t(callback);
9665 if ac_fn_cxx_try_compile
"$LINENO"; then :
9666 gdb_cv_cxx_std_thread
=yes
9668 gdb_cv_cxx_std_thread
=no
9670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9673 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9675 # This check must be here, while LIBS includes any necessary
9676 # threading library.
9677 for ac_func
in pthread_sigmask pthread_setname_np
9679 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9680 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9681 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9682 cat >>confdefs.h
<<_ACEOF
9683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9691 CXXFLAGS
="$save_CXXFLAGS"
9693 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9695 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9699 ac_cpp
='$CPP $CPPFLAGS'
9700 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9701 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9702 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9706 $as_echo_n "checking for sigsetjmp... " >&6; }
9707 if ${gdb_cv_func_sigsetjmp+:} false
; then :
9708 $as_echo_n "(cached) " >&6
9710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9718 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9723 if ac_fn_c_try_compile
"$LINENO"; then :
9724 gdb_cv_func_sigsetjmp
=yes
9726 gdb_cv_func_sigsetjmp
=no
9728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9731 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9732 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9734 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9739 # Check whether --with-intel_pt was given.
9740 if test "${with_intel_pt+set}" = set; then :
9741 withval
=$with_intel_pt;
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9747 $as_echo_n "checking whether to use intel pt... " >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9749 $as_echo "$with_intel_pt" >&6; }
9751 if test "${with_intel_pt}" = no
; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9753 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9759 #include <linux/perf_event.h>
9760 #ifndef PERF_ATTR_SIZE_VER5
9765 if ac_fn_c_try_cpp
"$LINENO"; then :
9770 rm -f conftest.err conftest.i conftest.
$ac_ext
9771 if test "$perf_event" != yes; then
9772 if test "$with_intel_pt" = yes; then
9773 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9776 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9790 acl_save_prefix
="$prefix"
9791 prefix
="$acl_final_prefix"
9792 acl_save_exec_prefix
="$exec_prefix"
9793 exec_prefix
="$acl_final_exec_prefix"
9795 eval additional_includedir
=\"$includedir\"
9796 eval additional_libdir
=\"$libdir\"
9798 exec_prefix
="$acl_save_exec_prefix"
9799 prefix
="$acl_save_prefix"
9802 # Check whether --with-libipt-prefix was given.
9803 if test "${with_libipt_prefix+set}" = set; then :
9804 withval
=$with_libipt_prefix;
9805 if test "X$withval" = "Xno"; then
9808 if test "X$withval" = "X"; then
9810 acl_save_prefix
="$prefix"
9811 prefix
="$acl_final_prefix"
9812 acl_save_exec_prefix
="$exec_prefix"
9813 exec_prefix
="$acl_final_exec_prefix"
9815 eval additional_includedir
=\"$includedir\"
9816 eval additional_libdir
=\"$libdir\"
9818 exec_prefix
="$acl_save_exec_prefix"
9819 prefix
="$acl_save_prefix"
9822 additional_includedir
="$withval/include"
9823 additional_libdir
="$withval/lib"
9830 # Check whether --with-libipt-type was given.
9831 if test "${with_libipt_type+set}" = set; then :
9832 withval
=$with_libipt_type; with_libipt_type
=$withval
9834 with_libipt_type
=auto
9837 lib_type
=`eval echo \$with_libipt_type`
9844 names_already_handled
=
9845 names_next_round
='ipt '
9846 while test -n "$names_next_round"; do
9847 names_this_round
="$names_next_round"
9849 for name
in $names_this_round; do
9851 for n
in $names_already_handled; do
9852 if test "$n" = "$name"; then
9857 if test -z "$already_handled"; then
9858 names_already_handled
="$names_already_handled $name"
9859 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9860 eval value
=\"\
$HAVE_LIB$uppername\"
9861 if test -n "$value"; then
9862 if test "$value" = yes; then
9863 eval value
=\"\
$LIB$uppername\"
9864 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
9865 eval value
=\"\
$LTLIB$uppername\"
9866 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
9875 if test $use_additional = yes; then
9876 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9877 found_dir
="$additional_libdir"
9878 found_so
="$additional_libdir/lib$name.$shlibext"
9879 if test -f "$additional_libdir/lib$name.la"; then
9880 found_la
="$additional_libdir/lib$name.la"
9882 elif test x
$lib_type != xshared
; then
9883 if test -f "$additional_libdir/lib$name.$libext"; then
9884 found_dir
="$additional_libdir"
9885 found_a
="$additional_libdir/lib$name.$libext"
9886 if test -f "$additional_libdir/lib$name.la"; then
9887 found_la
="$additional_libdir/lib$name.la"
9892 if test "X$found_dir" = "X"; then
9893 for x
in $LDFLAGS $LTLIBIPT; do
9895 acl_save_prefix
="$prefix"
9896 prefix
="$acl_final_prefix"
9897 acl_save_exec_prefix
="$exec_prefix"
9898 exec_prefix
="$acl_final_exec_prefix"
9900 exec_prefix
="$acl_save_exec_prefix"
9901 prefix
="$acl_save_prefix"
9905 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9906 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9908 found_so
="$dir/lib$name.$shlibext"
9909 if test -f "$dir/lib$name.la"; then
9910 found_la
="$dir/lib$name.la"
9912 elif test x
$lib_type != xshared
; then
9913 if test -f "$dir/lib$name.$libext"; then
9915 found_a
="$dir/lib$name.$libext"
9916 if test -f "$dir/lib$name.la"; then
9917 found_la
="$dir/lib$name.la"
9923 if test "X$found_dir" != "X"; then
9928 if test "X$found_dir" != "X"; then
9929 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9930 if test "X$found_so" != "X"; then
9931 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9932 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9935 for x
in $ltrpathdirs; do
9936 if test "X$x" = "X$found_dir"; then
9941 if test -z "$haveit"; then
9942 ltrpathdirs
="$ltrpathdirs $found_dir"
9944 if test "$hardcode_direct" = yes; then
9945 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9947 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9948 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9950 for x
in $rpathdirs; do
9951 if test "X$x" = "X$found_dir"; then
9956 if test -z "$haveit"; then
9957 rpathdirs
="$rpathdirs $found_dir"
9961 for x
in $LDFLAGS $LIBIPT; do
9963 acl_save_prefix
="$prefix"
9964 prefix
="$acl_final_prefix"
9965 acl_save_exec_prefix
="$exec_prefix"
9966 exec_prefix
="$acl_final_exec_prefix"
9968 exec_prefix
="$acl_save_exec_prefix"
9969 prefix
="$acl_save_prefix"
9971 if test "X$x" = "X-L$found_dir"; then
9976 if test -z "$haveit"; then
9977 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9979 if test "$hardcode_minus_L" != no
; then
9980 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9982 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
9988 if test "X$found_a" != "X"; then
9989 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
9991 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9994 additional_includedir
=
9995 case "$found_dir" in
9997 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9998 additional_includedir
="$basedir/include"
10001 if test "X$additional_includedir" != "X"; then
10002 if test "X$additional_includedir" != "X/usr/include"; then
10004 if test "X$additional_includedir" = "X/usr/local/include"; then
10005 if test -n "$GCC"; then
10007 linux
*) haveit
=yes;;
10011 if test -z "$haveit"; then
10012 for x
in $CPPFLAGS $INCIPT; do
10014 acl_save_prefix
="$prefix"
10015 prefix
="$acl_final_prefix"
10016 acl_save_exec_prefix
="$exec_prefix"
10017 exec_prefix
="$acl_final_exec_prefix"
10019 exec_prefix
="$acl_save_exec_prefix"
10020 prefix
="$acl_save_prefix"
10022 if test "X$x" = "X-I$additional_includedir"; then
10027 if test -z "$haveit"; then
10028 if test -d "$additional_includedir"; then
10029 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10035 if test -n "$found_la"; then
10036 save_libdir
="$libdir"
10037 case "$found_la" in
10038 */* |
*\\*) .
"$found_la" ;;
10039 *) .
"./$found_la" ;;
10041 libdir
="$save_libdir"
10042 for dep
in $dependency_libs; do
10045 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10046 if test "X$additional_libdir" != "X/usr/lib"; then
10048 if test "X$additional_libdir" = "X/usr/local/lib"; then
10049 if test -n "$GCC"; then
10051 linux
*) haveit
=yes;;
10055 if test -z "$haveit"; then
10057 for x
in $LDFLAGS $LIBIPT; do
10059 acl_save_prefix
="$prefix"
10060 prefix
="$acl_final_prefix"
10061 acl_save_exec_prefix
="$exec_prefix"
10062 exec_prefix
="$acl_final_exec_prefix"
10064 exec_prefix
="$acl_save_exec_prefix"
10065 prefix
="$acl_save_prefix"
10067 if test "X$x" = "X-L$additional_libdir"; then
10072 if test -z "$haveit"; then
10073 if test -d "$additional_libdir"; then
10074 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10078 for x
in $LDFLAGS $LTLIBIPT; do
10080 acl_save_prefix
="$prefix"
10081 prefix
="$acl_final_prefix"
10082 acl_save_exec_prefix
="$exec_prefix"
10083 exec_prefix
="$acl_final_exec_prefix"
10085 exec_prefix
="$acl_save_exec_prefix"
10086 prefix
="$acl_save_prefix"
10088 if test "X$x" = "X-L$additional_libdir"; then
10093 if test -z "$haveit"; then
10094 if test -d "$additional_libdir"; then
10095 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10102 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10103 if test "$enable_rpath" != no
; then
10105 for x
in $rpathdirs; do
10106 if test "X$x" = "X$dir"; then
10111 if test -z "$haveit"; then
10112 rpathdirs
="$rpathdirs $dir"
10115 for x
in $ltrpathdirs; do
10116 if test "X$x" = "X$dir"; then
10121 if test -z "$haveit"; then
10122 ltrpathdirs
="$ltrpathdirs $dir"
10127 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10130 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10133 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10134 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10140 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10141 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10142 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10144 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10145 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10152 if test "X$rpathdirs" != "X"; then
10153 if test -n "$hardcode_libdir_separator"; then
10155 for found_dir
in $rpathdirs; do
10156 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10158 acl_save_libdir
="$libdir"
10160 eval flag
=\"$hardcode_libdir_flag_spec\"
10161 libdir
="$acl_save_libdir"
10162 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10164 for found_dir
in $rpathdirs; do
10165 acl_save_libdir
="$libdir"
10166 libdir
="$found_dir"
10167 eval flag
=\"$hardcode_libdir_flag_spec\"
10168 libdir
="$acl_save_libdir"
10169 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10173 if test "X$ltrpathdirs" != "X"; then
10174 for found_dir
in $ltrpathdirs; do
10175 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10180 ac_save_CPPFLAGS
="$CPPFLAGS"
10182 for element
in $INCIPT; do
10184 for x
in $CPPFLAGS; do
10186 acl_save_prefix
="$prefix"
10187 prefix
="$acl_final_prefix"
10188 acl_save_exec_prefix
="$exec_prefix"
10189 exec_prefix
="$acl_final_exec_prefix"
10191 exec_prefix
="$acl_save_exec_prefix"
10192 prefix
="$acl_save_prefix"
10194 if test "X$x" = "X$element"; then
10199 if test -z "$haveit"; then
10200 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10206 $as_echo_n "checking for libipt... " >&6; }
10207 if ${ac_cv_libipt+:} false
; then :
10208 $as_echo_n "(cached) " >&6
10211 ac_save_LIBS
="$LIBS"
10212 LIBS
="$LIBS $LIBIPT"
10213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 #include "intel-pt.h"
10219 pt_insn_alloc_decoder (0);
10224 if ac_fn_c_try_link
"$LINENO"; then :
10229 rm -f core conftest.err conftest.
$ac_objext \
10230 conftest
$ac_exeext conftest.
$ac_ext
10231 LIBS
="$ac_save_LIBS"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10235 $as_echo "$ac_cv_libipt" >&6; }
10236 if test "$ac_cv_libipt" = yes; then
10239 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10242 $as_echo_n "checking how to link with libipt... " >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10244 $as_echo "$LIBIPT" >&6; }
10247 CPPFLAGS
="$ac_save_CPPFLAGS"
10257 if test "$HAVE_LIBIPT" != yes; then
10258 if test "$with_intel_pt" = yes; then
10259 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10262 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10266 LIBS
="$LIBS $LIBIPT"
10267 for ac_func
in pt_insn_event
10269 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10270 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
10271 cat >>confdefs.h
<<_ACEOF
10272 #define HAVE_PT_INSN_EVENT 1
10278 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10280 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
10282 cat >>confdefs.h
<<_ACEOF
10283 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10288 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10290 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
10292 cat >>confdefs.h
<<_ACEOF
10293 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10303 if test "$ac_cv_header_sys_procfs_h" = yes; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10305 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10306 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
10307 $as_echo_n "(cached) " >&6
10309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10313 /* Needed for new procfs interface on sparc-solaris. */
10314 #define _STRUCTURED_PROC 1
10315 #include <sys/procfs.h>
10324 if ac_fn_c_try_compile
"$LINENO"; then :
10325 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10327 bfd_cv_have_sys_procfs_type_gregset_t
=no
10330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10333 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10335 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10339 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10342 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10343 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
10344 $as_echo_n "(cached) " >&6
10346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10350 /* Needed for new procfs interface on sparc-solaris. */
10351 #define _STRUCTURED_PROC 1
10352 #include <sys/procfs.h>
10361 if ac_fn_c_try_compile
"$LINENO"; then :
10362 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10364 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10370 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10372 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10376 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10379 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10380 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
10381 $as_echo_n "(cached) " >&6
10383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10387 /* Needed for new procfs interface on sparc-solaris. */
10388 #define _STRUCTURED_PROC 1
10389 #include <sys/procfs.h>
10398 if ac_fn_c_try_compile
"$LINENO"; then :
10399 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
10401 bfd_cv_have_sys_procfs_type_prgregset_t
=no
10404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10407 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10409 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10413 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10416 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10417 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
10418 $as_echo_n "(cached) " >&6
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10424 /* Needed for new procfs interface on sparc-solaris. */
10425 #define _STRUCTURED_PROC 1
10426 #include <sys/procfs.h>
10435 if ac_fn_c_try_compile
"$LINENO"; then :
10436 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
10438 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
10441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10444 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10446 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10450 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10453 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10454 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
10455 $as_echo_n "(cached) " >&6
10457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10461 /* Needed for new procfs interface on sparc-solaris. */
10462 #define _STRUCTURED_PROC 1
10463 #include <sys/procfs.h>
10472 if ac_fn_c_try_compile
"$LINENO"; then :
10473 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
10475 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
10478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10481 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10483 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10487 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10490 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10491 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
10492 $as_echo_n "(cached) " >&6
10494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10498 /* Needed for new procfs interface on sparc-solaris. */
10499 #define _STRUCTURED_PROC 1
10500 #include <sys/procfs.h>
10509 if ac_fn_c_try_compile
"$LINENO"; then :
10510 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
10512 bfd_cv_have_sys_procfs_type_lwpid_t
=no
10515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10518 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10520 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10524 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10527 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10528 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
10529 $as_echo_n "(cached) " >&6
10531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10535 /* Needed for new procfs interface on sparc-solaris. */
10536 #define _STRUCTURED_PROC 1
10537 #include <sys/procfs.h>
10546 if ac_fn_c_try_compile
"$LINENO"; then :
10547 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
10549 bfd_cv_have_sys_procfs_type_psaddr_t
=no
10552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10555 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10557 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10561 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10564 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10565 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
10566 $as_echo_n "(cached) " >&6
10568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10572 /* Needed for new procfs interface on sparc-solaris. */
10573 #define _STRUCTURED_PROC 1
10574 #include <sys/procfs.h>
10578 elf_fpregset_t avar
10583 if ac_fn_c_try_compile
"$LINENO"; then :
10584 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
10586 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
10589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10592 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10594 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10598 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10603 # Check whether we will enable the inclusion of unit tests when
10606 # The default value of this option changes depending whether we're on
10607 # development mode (in which case it's "true") or not (in which case
10608 # it's "false"). The $development variable is set by the GDB_AC_COMMON
10609 # macro, which must therefore be used before GDB_AC_SELFTEST.
10611 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
10612 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
10615 # Check whether --enable-unit-tests was given.
10616 if test "${enable_unit_tests+set}" = set; then :
10617 enableval
=$enable_unit_tests; case "${enableval}" in
10618 yes) enable_unittests
=true
;;
10619 no
) enable_unittests
=false
;;
10620 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10623 enable_unittests
=$development
10627 if $enable_unittests; then
10629 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10634 if $enable_unittests; then
10643 # Check the return and argument types of ptrace.
10646 for ac_header
in sys
/ptrace.h ptrace.h
10648 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10649 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10650 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10651 cat >>confdefs.h
<<_ACEOF
10652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10660 gdb_ptrace_headers
='
10661 #include <sys/types.h>
10662 #if HAVE_SYS_PTRACE_H
10663 # include <sys/ptrace.h>
10666 # include <unistd.h>
10669 # There is no point in checking if we don't have a prototype.
10670 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10672 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
10678 cat >>confdefs.h
<<_ACEOF
10679 #define HAVE_DECL_PTRACE $ac_have_decl
10681 if test $ac_have_decl = 1; then :
10685 : ${gdb_cv_func_ptrace_ret='int'}
10686 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10690 # Check return type. Varargs (used on GNU/Linux) conflict with the
10691 # empty argument list, so check for that explicitly.
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10693 $as_echo_n "checking return type of ptrace... " >&6; }
10694 if ${gdb_cv_func_ptrace_ret+:} false
; then :
10695 $as_echo_n "(cached) " >&6
10697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699 $gdb_ptrace_headers
10703 extern long ptrace (enum __ptrace_request, ...);
10708 if ac_fn_c_try_compile
"$LINENO"; then :
10709 gdb_cv_func_ptrace_ret
='long'
10711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 $gdb_ptrace_headers
10717 extern int ptrace ();
10722 if ac_fn_c_try_compile
"$LINENO"; then :
10723 gdb_cv_func_ptrace_ret
='int'
10725 gdb_cv_func_ptrace_ret
='long'
10727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10732 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10734 cat >>confdefs.h
<<_ACEOF
10735 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10738 # Check argument types.
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10740 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10741 if ${gdb_cv_func_ptrace_args+:} false
; then :
10742 $as_echo_n "(cached) " >&6
10745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10747 $gdb_ptrace_headers
10751 extern long ptrace (enum __ptrace_request, ...);
10756 if ac_fn_c_try_compile
"$LINENO"; then :
10757 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
10760 for gdb_arg1
in 'int' 'long'; do
10761 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10762 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10763 for gdb_arg4
in 'int' 'long' 'void *'; do
10764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 $gdb_ptrace_headers
10771 extern $gdb_cv_func_ptrace_ret
10772 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10778 if ac_fn_c_try_compile
"$LINENO"; then :
10779 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10783 for gdb_arg5
in 'int *' 'int' 'long'; do
10784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786 $gdb_ptrace_headers
10791 extern $gdb_cv_func_ptrace_ret
10792 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10798 if ac_fn_c_try_compile
"$LINENO"; then :
10800 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10809 # Provide a safe default value.
10810 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10816 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10817 ac_save_IFS
=$IFS; IFS
=','
10818 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10822 cat >>confdefs.h
<<_ACEOF
10823 #define PTRACE_TYPE_ARG1 $1
10827 cat >>confdefs.h
<<_ACEOF
10828 #define PTRACE_TYPE_ARG3 $3
10832 cat >>confdefs.h
<<_ACEOF
10833 #define PTRACE_TYPE_ARG4 $4
10836 if test -n "$5"; then
10838 cat >>confdefs.h
<<_ACEOF
10839 #define PTRACE_TYPE_ARG5 $5
10845 # Detect support warning flags.
10847 # Check whether --enable-werror was given.
10848 if test "${enable_werror+set}" = set; then :
10849 enableval
=$enable_werror; case "${enableval}" in
10850 yes | y
) ERROR_ON_WARNING
="yes" ;;
10851 no | n
) ERROR_ON_WARNING
="no" ;;
10852 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10857 # Enable -Werror by default when using gcc. Turn it off for releases.
10858 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10859 ERROR_ON_WARNING
=yes
10863 if test "${ERROR_ON_WARNING}" = yes ; then
10864 WERROR_CFLAGS
="-Werror"
10867 # The options we'll try to enable.
10868 build_warnings
="-Wall -Wpointer-arith \
10869 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10870 -Wno-switch -Wno-char-subscripts \
10871 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10872 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10873 -Wno-mismatched-tags \
10874 -Wno-error=deprecated-register \
10875 -Wsuggest-override \
10876 -Wimplicit-fallthrough=3 \
10877 -Wduplicated-cond \
10879 -Wdeprecated-copy \
10880 -Wdeprecated-copy-dtor \
10882 -Wmissing-declarations \
10883 -Wmissing-prototypes \
10884 -Wstrict-null-sentinel \
10889 # Enable -Wno-format by default when using gcc on mingw since many
10890 # GCC versions complain about %I64.
10891 build_warnings
="$build_warnings -Wno-format" ;;
10893 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10894 # doesn't understand.
10895 build_warnings
="$build_warnings -Wno-unknown-pragmas"
10896 # Solaris 11 <unistd.h> marks vfork deprecated.
10897 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
10899 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10900 # but there's a special case for this below.
10901 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
10904 # Check whether --enable-build-warnings was given.
10905 if test "${enable_build_warnings+set}" = set; then :
10906 enableval
=$enable_build_warnings; case "${enableval}" in
10908 no
) build_warnings
="-w";;
10909 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10910 build_warnings
="${build_warnings} ${t}";;
10911 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10912 build_warnings
="${t} ${build_warnings}";;
10913 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10915 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10916 echo "Setting compiler warning flags = $build_warnings" 6>&1
10919 # Check whether --enable-gdb-build-warnings was given.
10920 if test "${enable_gdb_build_warnings+set}" = set; then :
10921 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
10923 no
) build_warnings
="-w";;
10924 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10925 build_warnings
="${build_warnings} ${t}";;
10926 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10927 build_warnings
="${t} ${build_warnings}";;
10928 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10930 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10931 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10935 # The set of warnings supported by a C++ compiler is not the same as
10936 # of the C compiler.
10938 ac_cpp
='$CXXCPP $CPPFLAGS'
10939 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10945 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10948 $as_echo_n "checking compiler warning flags... " >&6; }
10949 # Separate out the -Werror flag as some files just cannot be
10950 # compiled with it enabled.
10951 for w
in ${build_warnings}; do
10952 # GCC does not complain about -Wno-unknown-warning. Invert
10953 # and test -Wunknown-warning instead.
10956 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
10957 -Wformat-nonliteral)
10958 # gcc requires -Wformat before -Wformat-nonliteral
10959 # will work, so stick them together.
10968 -Werr*) WERROR_CFLAGS
=-Werror ;;
10970 # Check whether GCC accepts it.
10971 saved_CFLAGS
="$CFLAGS"
10972 CFLAGS
="$CFLAGS -Werror $wtest"
10973 saved_CXXFLAGS
="$CXXFLAGS"
10974 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
10975 if test "x$w" = "x-Wunused-variable"; then
10976 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10977 # fixed in GCC 4.9. This test is derived from the gdb
10978 # source code that triggered this bug in GCC.
10979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981 struct scoped_restore_base {};
10982 struct scoped_restore_tmpl : public scoped_restore_base {
10983 ~scoped_restore_tmpl() {}
10988 const scoped_restore_base &b = scoped_restore_tmpl();
10993 if ac_fn_cxx_try_compile
"$LINENO"; then :
10994 WARN_CFLAGS
="${WARN_CFLAGS} $w"
10996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11009 if ac_fn_cxx_try_compile
"$LINENO"; then :
11010 WARN_CFLAGS
="${WARN_CFLAGS} $w"
11012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11014 CFLAGS
="$saved_CFLAGS"
11015 CXXFLAGS
="$saved_CXXFLAGS"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11019 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11025 ac_cpp='$CPP $CPPFLAGS'
11026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11032 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11034 cat >>confdefs.h <<_ACEOF
11035 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11042 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11047 ac_config_files
="$ac_config_files Makefile"
11049 cat >confcache
<<\_ACEOF
11050 # This file is a shell script that caches the results of configure
11051 # tests run on this system so they can be shared between configure
11052 # scripts and configure runs, see configure's option --config-cache.
11053 # It is not useful on other systems. If it contains results you don't
11054 # want to keep, you may remove or edit it.
11056 # config.status only pays attention to the cache file if you give it
11057 # the --recheck option to rerun configure.
11059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11061 # following values.
11065 # The following way of writing the cache mishandles newlines in values,
11066 # but we know of no workaround that is simple, portable, and efficient.
11067 # So, we kill variables containing newlines.
11068 # Ultrix sh set writes to stderr and can't be redirected directly,
11069 # and sets the high bit in the cache file unless we assign to the vars.
11071 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11072 eval ac_val
=\$
$ac_var
11076 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11080 _ | IFS | as_nl
) ;; #(
11081 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11082 *) { eval $ac_var=; unset $ac_var;} ;;
11088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11089 *${as_nl}ac_space
=\
*)
11090 # `set' does not quote correctly, so add quotes: double-quote
11091 # substitution turns \\\\ into \\, and sed turns \\ into \.
11094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11097 # `set' quotes correctly as required by POSIX, so do not add quotes.
11098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11111 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11112 if test -w "$cache_file"; then
11113 if test "x$cache_file" != "x/dev/null"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11115 $as_echo "$as_me: updating cache $cache_file" >&6;}
11116 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11117 cat confcache
>"$cache_file"
11119 case $cache_file in #(
11121 mv -f confcache
"$cache_file"$$
&&
11122 mv -f "$cache_file"$$
"$cache_file" ;; #(
11124 mv -f confcache
"$cache_file" ;;
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11130 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11135 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11136 # Let make expand exec_prefix.
11137 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11139 DEFS
=-DHAVE_CONFIG_H
11143 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11144 # 1. Remove the extension, and $U if already installed.
11145 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11146 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11147 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11148 # will be set to the directory where LIBOBJS objects are built.
11149 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11150 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11152 LIBOBJS
=$ac_libobjs
11154 LTLIBOBJS
=$ac_ltlibobjs
11157 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11158 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
11159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11162 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11163 if test -n "$am_sleep_pid"; then
11164 # Hide warnings about reused PIDs.
11165 wait $am_sleep_pid 2>/dev
/null
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11168 $as_echo "done" >&6; }
11169 if test -n "$EXEEXT"; then
11171 am__EXEEXT_FALSE
='#'
11173 am__EXEEXT_TRUE
='#'
11177 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11178 as_fn_error $?
"conditional \"AMDEP\" was never defined.
11179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11181 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11182 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
11183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11185 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11186 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
11187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11189 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11190 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
11191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11193 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11194 as_fn_error $?
"conditional \"SELFTEST\" was never defined.
11195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11198 : "${CONFIG_STATUS=./config.status}"
11200 ac_clean_files_save
=$ac_clean_files
11201 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11203 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11205 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11207 # Generated by $as_me.
11208 # Run this file to recreate the current configuration.
11209 # Compiler output produced by configure, useful for debugging
11210 # configure, is in config.log if it exists.
11213 ac_cs_recheck=false
11216 SHELL=\${CONFIG_SHELL-$SHELL}
11219 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11220 ## -------------------- ##
11221 ## M4sh Initialization. ##
11222 ## -------------------- ##
11224 # Be more Bourne compatible
11225 DUALCASE
=1; export DUALCASE
# for MKS sh
11226 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11229 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11230 # is contrary to our usage. Disable this feature.
11231 alias -g '${1+"$@"}'='"$@"'
11232 setopt NO_GLOB_SUBST
11234 case `(set -o) 2>/dev/null` in #(
11246 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11247 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11250 # Prefer a ksh shell builtin over an external printf program on Solaris,
11251 # but without wasting forks for bash or zsh.
11252 if test -z "$BASH_VERSION$ZSH_VERSION" \
11253 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11254 as_echo='print
-r --'
11255 as_echo_n='print
-rn --'
11256 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11257 as_echo='printf %s
\n'
11258 as_echo_n='printf %s
'
11260 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11261 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11262 as_echo_n='/usr
/ucb
/echo -n'
11264 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11265 as_echo_n_body='eval
11269 expr "X$arg" : "X\\(.*\\)$as_nl";
11270 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11272 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11274 export as_echo_n_body
11275 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11277 export as_echo_body
11278 as_echo='sh
-c $as_echo_body as_echo
'
11281 # The user is always right.
11282 if test "${PATH_SEPARATOR+set}" != set; then
11284 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11285 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11292 # We need space, tab and new line, in precisely that order. Quoting is
11293 # there to prevent editors from complaining about space-tab.
11294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11295 # splitting by setting IFS to empty value.)
11298 # Find who we are. Look in the path if we contain no directory separator.
11301 *[\\/]* ) as_myself=$0 ;;
11302 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11306 test -z "$as_dir" && as_dir=.
11307 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11313 # We did not find ourselves, most probably we were run as `sh COMMAND'
11314 # in which case we are not to be found in the path.
11315 if test "x$as_myself" = x
; then
11318 if test ! -f "$as_myself"; then
11319 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11323 # Unset variables that we do not need and which cause bugs (e.g. in
11324 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11325 # suppresses any "Segmentation fault" message there. '((' could
11326 # trigger a bug in pdksh 5.2.14.
11327 for as_var
in BASH_ENV ENV MAIL MAILPATH
11328 do eval test x\
${$as_var+set} = xset \
11329 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11342 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11345 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11346 # ----------------------------------------
11347 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11348 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11349 # script with STATUS, using 1 if that was 0.
11352 as_status
=$1; test $as_status -eq 0 && as_status
=1
11354 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11355 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11357 $as_echo "$as_me: error: $2" >&2
11358 as_fn_exit
$as_status
11362 # as_fn_set_status STATUS
11363 # -----------------------
11364 # Set $? to STATUS, without forking.
11365 as_fn_set_status
()
11368 } # as_fn_set_status
11370 # as_fn_exit STATUS
11371 # -----------------
11372 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11376 as_fn_set_status
$1
11382 # Portably unset VAR.
11385 { eval $1=; unset $1;}
11387 as_unset
=as_fn_unset
11388 # as_fn_append VAR VALUE
11389 # ----------------------
11390 # Append the text in VALUE to the end of the definition contained in VAR. Take
11391 # advantage of any shell optimizations that allow amortized linear growth over
11392 # repeated appends, instead of the typical quadratic growth present in naive
11394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11395 eval 'as_fn_append ()
11406 # as_fn_arith ARG...
11407 # ------------------
11408 # Perform arithmetic evaluation on the ARGs, and store the result in the
11409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11410 # must be portable across $(()) and expr.
11411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11412 eval 'as_fn_arith ()
11419 as_val
=`expr "$@" || test $? -eq 1`
11424 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11425 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11431 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11432 as_basename
=basename
11437 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11443 as_me
=`$as_basename -- "$0" ||
11444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11445 X"$0" : 'X\(//\)$' \| \
11446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11448 sed '/^.*\/\([^/][^/]*\)\/*$/{
11462 # Avoid depending upon Character Ranges.
11463 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11464 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11465 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11466 as_cr_digits
='0123456789'
11467 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11469 ECHO_C
= ECHO_N
= ECHO_T
=
11470 case `echo -n x` in #(((((
11472 case `echo 'xy\c'` in
11473 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11475 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11482 rm -f conf$$ conf$$.exe conf$$.
file
11483 if test -d conf$$.dir
; then
11484 rm -f conf$$.dir
/conf$$.
file
11487 mkdir conf$$.dir
2>/dev
/null
11489 if (echo >conf$$.
file) 2>/dev
/null
; then
11490 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11492 # ... but there are two gotchas:
11493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11495 # In both cases, we have to default to `cp -pR'.
11496 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11498 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11506 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11507 rmdir conf$$.dir
2>/dev
/null
11512 # Create "$as_dir" as a directory, including parents if necessary.
11517 -*) as_dir
=.
/$as_dir;;
11519 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11523 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11524 *) as_qdir
=$as_dir;;
11526 as_dirs
="'$as_qdir' $as_dirs"
11527 as_dir
=`$as_dirname -- "$as_dir" ||
11528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11529 X"$as_dir" : 'X\(//\)[^/]' \| \
11530 X"$as_dir" : 'X\(//\)$' \| \
11531 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11532 $as_echo X"$as_dir" |
11533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11537 /^X\(\/\/\)[^/].*/{
11550 test -d "$as_dir" && break
11552 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11553 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11557 if mkdir
-p .
2>/dev
/null
; then
11558 as_mkdir_p
='mkdir -p "$as_dir"'
11560 test -d .
/-p && rmdir .
/-p
11565 # as_fn_executable_p FILE
11566 # -----------------------
11567 # Test if FILE is an executable regular file.
11568 as_fn_executable_p
()
11570 test -f "$1" && test -x "$1"
11571 } # as_fn_executable_p
11572 as_test_x
='test -x'
11573 as_executable_p
=as_fn_executable_p
11575 # Sed expression to map a string onto a valid CPP name.
11576 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11578 # Sed expression to map a string onto a valid variable name.
11579 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11583 ## ----------------------------------- ##
11584 ## Main body of $CONFIG_STATUS script. ##
11585 ## ----------------------------------- ##
11587 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11590 # Save the log message, to keep $0 and so on meaningful, and to
11591 # report actual input values of CONFIG_FILES etc. instead of their
11592 # values after options handling.
11594 This file was extended by gdbsupport $as_me 1.0, which was
11595 generated by GNU Autoconf 2.69. Invocation command line was
11597 CONFIG_FILES = $CONFIG_FILES
11598 CONFIG_HEADERS = $CONFIG_HEADERS
11599 CONFIG_LINKS = $CONFIG_LINKS
11600 CONFIG_COMMANDS = $CONFIG_COMMANDS
11603 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11608 case $ac_config_files in *"
11609 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11612 case $ac_config_headers in *"
11613 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11618 # Files that config.status was made for.
11619 config_files="$ac_config_files"
11620 config_headers="$ac_config_headers"
11621 config_commands="$ac_config_commands"
11625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11627 \`$as_me' instantiates files and other configuration actions
11628 from templates according to the current configuration. Unless the files
11629 and actions are specified as TAGs, all are instantiated by default.
11631 Usage: $0 [OPTION]... [TAG]...
11633 -h, --help print this help, then exit
11634 -V, --version print version number and configuration settings, then exit
11635 --config print configuration, then exit
11636 -q, --quiet, --silent
11637 do not print progress messages
11638 -d, --debug don't remove temporary files
11639 --recheck update $as_me by reconfiguring in the same conditions
11640 --file=FILE[:TEMPLATE]
11641 instantiate the configuration file FILE
11642 --header=FILE[:TEMPLATE]
11643 instantiate the configuration header FILE
11645 Configuration files:
11648 Configuration headers:
11651 Configuration commands:
11654 Report bugs to the package provider."
11657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11658 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11660 gdbsupport config.status 1.0
11661 configured by $0, generated by GNU Autoconf 2.69,
11662 with options \\"\$ac_cs_config\\"
11664 Copyright (C) 2012 Free Software Foundation, Inc.
11665 This config.status script is free software; the Free Software Foundation
11666 gives unlimited permission to copy, distribute and modify it."
11673 test -n "\$AWK" || AWK=awk
11676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11677 # The default lists apply if the user does not specify any file.
11683 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11684 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11688 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11700 # Handling of the options.
11701 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11703 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11704 $as_echo "$ac_cs_version"; exit ;;
11705 --config |
--confi |
--conf |
--con |
--co |
--c )
11706 $as_echo "$ac_cs_config"; exit ;;
11707 --debug |
--debu |
--deb |
--de |
--d |
-d )
11709 --file |
--fil |
--fi |
--f )
11712 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11713 '') as_fn_error $?
"missing file argument" ;;
11715 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11716 ac_need_defaults
=false
;;
11717 --header |
--heade |
--head |
--hea )
11720 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11722 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11723 ac_need_defaults
=false
;;
11725 # Conflict between --help and --header
11726 as_fn_error $?
"ambiguous option: \`$1'
11727 Try \`$0 --help' for more information.";;
11728 --help |
--hel |
-h )
11729 $as_echo "$ac_cs_usage"; exit ;;
11730 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11731 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11734 # This is an error.
11735 -*) as_fn_error $?
"unrecognized option: \`$1'
11736 Try \`$0 --help' for more information." ;;
11738 *) as_fn_append ac_config_targets
" $1"
11739 ac_need_defaults
=false
;;
11745 ac_configure_extra_args
=
11747 if $ac_cs_silent; then
11749 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11754 if \$ac_cs_recheck; then
11755 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11757 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11758 CONFIG_SHELL='$SHELL'
11759 export CONFIG_SHELL
11764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11769 ## Running $as_me. ##
11775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11779 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11785 # Handling of arguments.
11786 for ac_config_target
in $ac_config_targets
11788 case $ac_config_target in
11789 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11790 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11791 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11793 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11798 # If the user did not use the arguments to specify the items to instantiate,
11799 # then the envvar interface is used. Set only those that are not.
11800 # We use the long form for the default assignment because of an extremely
11801 # bizarre bug on SunOS 4.1.3.
11802 if $ac_need_defaults; then
11803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11808 # Have a temporary directory for convenience. Make it in the build tree
11809 # simply because there is no reason against having it here, and in addition,
11810 # creating and moving files from /tmp can sometimes cause problems.
11811 # Hook for its removal unless debugging.
11812 # Note that there is a small window in which the directory will not be cleaned:
11813 # after its creation but before its name has been assigned to `$tmp'.
11817 trap 'exit_status=$?
11818 : "${ac_tmp:=$tmp}"
11819 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11821 trap 'as_fn_exit 1' 1 2 13 15
11823 # Create a (secure) tmp directory for tmp files.
11826 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11830 tmp
=.
/conf$$
-$RANDOM
11831 (umask 077 && mkdir
"$tmp")
11832 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11835 # Set up the scripts for CONFIG_FILES section.
11836 # No need to generate them if there are no CONFIG_FILES.
11837 # This happens for instance with `./config.status config.h'.
11838 if test -n "$CONFIG_FILES"; then
11841 ac_cr
=`echo X | tr X '\015'`
11842 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11843 # But we know of no other shell where ac_cr would be empty at this
11844 # point, so we can use a bashism as a fallback.
11845 if test "x$ac_cr" = x
; then
11846 eval ac_cr
=\$
\'\\r
\'
11848 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11849 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11852 ac_cs_awk_cr
=$ac_cr
11855 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11860 echo "cat >conf$$subs.awk <<_ACEOF" &&
11861 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11863 } >conf$$subs.sh ||
11864 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11865 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11867 for ac_last_try in false false false false false :; do
11868 . ./conf$$subs.sh ||
11869 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11871 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11872 if test $ac_delim_n = $ac_delim_num; then
11874 elif $ac_last_try; then
11875 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11877 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11880 rm -f conf$$subs.sh
11882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11883 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11887 s/^/S["/; s
/!.
*/"]=/
11897 s/\(.\{148\}\)..*/\1/
11899 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11904 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11911 s/\(.\{148\}\)..*/\1/
11913 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11917 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11922 ' <conf$$subs.awk | sed '
11927 ' >>$CONFIG_STATUS || ac_write_fail=1
11928 rm -f conf$$subs.awk
11929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11931 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11932 for (key in S) S_is_set[key] = 1
11938 nfields = split(line, field, "@
")
11940 len = length(field[1])
11941 for (i = 2; i < nfields; i++) {
11943 keylen = length(key)
11944 if (S_is_set[key]) {
11946 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11947 len += length(value) + length(field[++i])
11958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11959 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11960 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11963 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11964 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11967 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11968 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11969 # trailing colons and then remove the whole line if VPATH becomes empty
11970 # (actually we leave an empty line to preserve line numbers).
11971 if test "x
$srcdir" = x.; then
11972 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11991 fi # test -n "$CONFIG_FILES"
11993 # Set up the scripts for CONFIG_HEADERS section.
11994 # No need to generate them if there are no CONFIG_HEADERS.
11995 # This happens for instance with `./config.status Makefile'.
11996 if test -n "$CONFIG_HEADERS"; then
11997 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12001 # Transform confdefs.h into an awk script `defines.awk', embedded as
12002 # here-document in config.status, that substitutes the proper values into
12003 # config.h.in to produce config.h.
12005 # Create a delimiter string that does not exist in confdefs.h, to ease
12006 # handling of long lines.
12008 for ac_last_try in false false :; do
12009 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12010 if test -z "$ac_tt"; then
12012 elif $ac_last_try; then
12013 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12015 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12019 # For the awk script, D is an array of macro values keyed by name,
12020 # likewise P contains macro parameters if any. Preserve backslash
12021 # newline sequences.
12023 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12025 s/.\{148\}/&'"$ac_delim"'/g
12028 s/^[ ]*#[ ]*define[ ][ ]*/ /
12035 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12037 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12041 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12042 D["\
1"]=" \
3\\\\\\n
"\\/p
12044 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12049 s/.\{148\}/&'"$ac_delim"'/g
12054 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12057 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12059 ' <confdefs.h | sed '
12060 s/'"$ac_delim"'/"\\\
12061 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12064 for (key in D) D_is_set[key] = 1
12067 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12069 split(line, arg, " ")
12070 if (arg[1] == "#") {
12074 defundef
= substr
(arg
[1], 2)
12077 split(mac1
, mac2
, "(") #)
12079 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12080 if (D_is_set
[macro
]) {
12081 # Preserve the white space surrounding the "#".
12082 print prefix
"define", macro P
[macro
] D
[macro
]
12085 # Replace #undef with comments. This is necessary, for example,
12086 # in the case of _POSIX_SOURCE, which is predefined and required
12087 # on some systems where configure will not decide to define it.
12088 if (defundef
== "undef") {
12089 print
"/*", prefix defundef
, macro
, "*/"
12097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12098 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12099 fi # test -n "$CONFIG_HEADERS"
12102 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12107 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12109 case $ac_mode$ac_tag in
12111 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12112 :[FH
]-) ac_tag
=-:-;;
12113 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12130 -) ac_f
="$ac_tmp/stdin";;
12131 *) # Look for the file first in the build tree, then in the source tree
12132 # (if the path is not absolute). The absolute path cannot be DOS-style,
12133 # because $ac_f cannot contain `:'.
12137 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12139 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12141 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12142 as_fn_append ac_file_inputs
" '$ac_f'"
12145 # Let's still pretend it is `configure' which instantiates (i.e., don't
12146 # use $as_me), people would be surprised to read:
12147 # /* config.h. Generated by config.status. */
12148 configure_input
='Generated from '`
12149 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12151 if test x
"$ac_file" != x-
; then
12152 configure_input
="$ac_file. $configure_input"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12154 $as_echo "$as_me: creating $ac_file" >&6;}
12156 # Neutralize special characters interpreted by sed in replacement strings.
12157 case $configure_input in #(
12158 *\
&* |
*\|
* |
*\\* )
12159 ac_sed_conf_input
=`$as_echo "$configure_input" |
12160 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12161 *) ac_sed_conf_input
=$configure_input;;
12165 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12166 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12171 ac_dir
=`$as_dirname -- "$ac_file" ||
12172 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12173 X"$ac_file" : 'X\(//\)[^/]' \| \
12174 X"$ac_file" : 'X\(//\)$' \| \
12175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12176 $as_echo X"$ac_file" |
12177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12181 /^X\(\/\/\)[^/].*/{
12194 as_dir
="$ac_dir"; as_fn_mkdir_p
12198 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12200 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12201 # A ".." for each directory in $ac_dir_suffix.
12202 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12203 case $ac_top_builddir_sub in
12204 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12205 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12208 ac_abs_top_builddir
=$ac_pwd
12209 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12210 # for backward compatibility:
12211 ac_top_builddir
=$ac_top_build_prefix
12214 .
) # We are building in place.
12216 ac_top_srcdir
=$ac_top_builddir_sub
12217 ac_abs_top_srcdir
=$ac_pwd ;;
12218 [\\/]* | ?
:[\\/]* ) # Absolute name.
12219 ac_srcdir
=$srcdir$ac_dir_suffix;
12220 ac_top_srcdir
=$srcdir
12221 ac_abs_top_srcdir
=$srcdir ;;
12222 *) # Relative name.
12223 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12224 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12225 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12227 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12237 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12238 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12240 ac_MKDIR_P
=$MKDIR_P
12242 [\\/$
]* | ?
:[\\/]* ) ;;
12243 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
12247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12248 # If the template does not know about datarootdir, expand it.
12249 # FIXME: This hack should be removed a few years after 2.60.
12250 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12262 *datarootdir
*) ac_datarootdir_seen
=yes;;
12263 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12265 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12268 ac_datarootdir_hack='
12269 s&@datadir@&$datadir&g
12270 s&@docdir@&$docdir&g
12271 s&@infodir@&$infodir&g
12272 s&@localedir@&$localedir&g
12273 s&@mandir@&$mandir&g
12274 s&\\\${datarootdir}&$datarootdir&g' ;;
12278 # Neutralize VPATH when `$srcdir' = `.'.
12279 # Shell code in configure.ac might set extrasub.
12280 # FIXME: do we really want to maintain this feature?
12281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282 ac_sed_extra="$ac_vpsub
12285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12287 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12288 s|@configure_input@|
$ac_sed_conf_input|
;t t
12289 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12290 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12291 s
&@srcdir@
&$ac_srcdir&;t t
12292 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12293 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12294 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12295 s
&@builddir@
&$ac_builddir&;t t
12296 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12297 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12298 s
&@INSTALL@
&$ac_INSTALL&;t t
12299 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
12300 $ac_datarootdir_hack
12302 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12303 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12306 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12308 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12310 which seems to be undefined. Please make sure it is defined" >&5
12311 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12312 which seems to be undefined. Please make sure it is defined" >&2;}
12314 rm -f "$ac_tmp/stdin"
12316 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12317 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12325 if test x"$ac_file" != x-; then
12327 $as_echo "/* $configure_input */" \
12328 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12329 } >"$ac_tmp/config.h" \
12330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12331 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12333 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12336 mv "$ac_tmp/config.h" "$ac_file" \
12337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12340 $as_echo "/* $configure_input */" \
12341 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12342 || as_fn_error $? "could not create -" "$LINENO" 5
12344 # Compute "$ac_file"'s index
in $config_headers.
12347 for _am_header
in $config_headers :; do
12348 case $_am_header in
12349 $_am_arg |
$_am_arg:* )
12352 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
12355 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12356 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12357 X"$_am_arg" : 'X\(//\)[^/]' \| \
12358 X"$_am_arg" : 'X\(//\)$' \| \
12359 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12360 $as_echo X"$_am_arg" |
12361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12365 /^X\(\/\/\)[^/].*/{
12377 s/.*/./; q'`/stamp-h
$_am_stamp_count
12380 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12381 $as_echo "$as_me: executing $ac_file commands" >&6;}
12386 case $ac_file$ac_mode in
12387 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
12388 # Older Autoconf quotes --file arguments for eval, but not when files
12389 # are listed without --file. Let's play safe and only enable the eval
12390 # if we detect the quoting.
12391 case $CONFIG_FILES in
12392 *\'*) eval set x
"$CONFIG_FILES" ;;
12393 *) set x
$CONFIG_FILES ;;
12398 # Strip MF so we end up with the name of the file.
12399 mf
=`echo "$mf" | sed -e 's/:.*$//'`
12400 # Check whether this is an Automake generated Makefile or not.
12401 # We used to match only the files named 'Makefile.in', but
12402 # some people rename them; so instead we look at the file content.
12403 # Grep'ing the first line is not enough: some people post-process
12404 # each Makefile.in and add a new line on top of each file to say so.
12405 # Grep'ing the whole file is not good either: AIX grep has a line
12406 # limit of 2048, but all sed's we know have understand at least 4000.
12407 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
12408 dirpart
=`$as_dirname -- "$mf" ||
12409 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12410 X"$mf" : 'X\(//\)[^/]' \| \
12411 X"$mf" : 'X\(//\)$' \| \
12412 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12418 /^X\(\/\/\)[^/].*/{
12434 # Extract the definition of DEPDIR, am__include, and am__quote
12435 # from the Makefile without running 'make'.
12436 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
12437 test -z "$DEPDIR" && continue
12438 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
12439 test -z "$am__include" && continue
12440 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
12441 # Find all dependency output files, they are included files with
12442 # $(DEPDIR) in their names. We invoke sed twice because it is the
12443 # simplest approach to changing $(DEPDIR) to its actual value in the
12445 for file in `sed -n "
12446 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12447 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12448 # Make sure the directory exists.
12449 test -f "$dirpart/$file" && continue
12450 fdir
=`$as_dirname -- "$file" ||
12451 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12452 X"$file" : 'X\(//\)[^/]' \| \
12453 X"$file" : 'X\(//\)$' \| \
12454 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12455 $as_echo X"$file" |
12456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12460 /^X\(\/\/\)[^/].*/{
12473 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
12474 # echo "creating $dirpart/$file"
12475 echo '# dummy' > "$dirpart/$file"
12487 ac_clean_files
=$ac_clean_files_save
12489 test $ac_write_fail = 0 ||
12490 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
12493 # configure is writing to config.log, and then calls config.status.
12494 # config.status does its own redirection, appending to config.log.
12495 # Unfortunately, on DOS this fails, as config.log is still kept open
12496 # by configure, so config.status won't be able to write to it; its
12497 # output is simply discarded. So we exec the FD to /dev/null,
12498 # effectively closing config.log, so it can be properly (re)opened and
12499 # appended to by config.status. When coming back to configure, we
12500 # need to make the FD available again.
12501 if test "$no_create" != yes; then
12503 ac_config_status_args
=
12504 test "$silent" = yes &&
12505 ac_config_status_args
="$ac_config_status_args --quiet"
12507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12510 # would make configure fail if this is the last instruction.
12511 $ac_cs_success || as_fn_exit
1
12513 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12515 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}