2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.cc"
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
='LTLIBOBJS
686 INSTALL_STRIP_PROGRAM
703 MAINTAINER_MODE_FALSE
732 program_transform_name
745 enable_option_checking
746 enable_maintainer_mode
758 enable_build_warnings
759 enable_gdb_build_warnings
763 enable_inprocess_agent
765 ac_precious_vars
='build_alias
779 # Initialize some variables set by options.
781 ac_init_version
=false
782 ac_unrecognized_opts
=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name
=s
,x
,x
,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir
='${exec_prefix}/bin'
808 sbindir
='${exec_prefix}/sbin'
809 libexecdir
='${exec_prefix}/libexec'
810 datarootdir
='${prefix}/share'
811 datadir
='${datarootdir}'
812 sysconfdir
='${prefix}/etc'
813 sharedstatedir
='${prefix}/com'
814 localstatedir
='${prefix}/var'
815 includedir
='${prefix}/include'
816 oldincludedir
='/usr/include'
817 docdir
='${datarootdir}/doc/${PACKAGE}'
818 infodir
='${datarootdir}/info'
823 libdir
='${exec_prefix}/lib'
824 localedir
='${datarootdir}/locale'
825 mandir
='${datarootdir}/man'
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\
$ac_option
839 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 # Accept the important Cygnus configure options, so we can diagnose typos.
846 case $ac_dashdash$ac_option in
850 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
852 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
855 -build |
--build |
--buil |
--bui |
--bu)
856 ac_prev
=build_alias
;;
857 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
858 build_alias
=$ac_optarg ;;
860 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
861 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
862 ac_prev
=cache_file
;;
863 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
864 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
865 cache_file
=$ac_optarg ;;
868 cache_file
=config.cache
;;
870 -datadir |
--datadir |
--datadi |
--datad)
872 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
873 datadir
=$ac_optarg ;;
875 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
876 |
--dataroo |
--dataro |
--datar)
877 ac_prev
=datarootdir
;;
878 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
879 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
880 datarootdir
=$ac_optarg ;;
882 -disable-* |
--disable-*)
883 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
886 as_fn_error $?
"invalid feature name: $ac_useropt"
887 ac_useropt_orig
=$ac_useropt
888 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep
=', ';;
896 eval enable_
$ac_useropt=no
;;
898 -docdir |
--docdir |
--docdi |
--doc |
--do)
900 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
903 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
905 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
908 -enable-* |
--enable-*)
909 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
912 as_fn_error $?
"invalid feature name: $ac_useropt"
913 ac_useropt_orig
=$ac_useropt
914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep
=', ';;
922 eval enable_
$ac_useropt=\
$ac_optarg ;;
924 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
925 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
926 |
--exec |
--exe |
--ex)
927 ac_prev
=exec_prefix
;;
928 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
929 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
930 |
--exec=* |
--exe=* |
--ex=*)
931 exec_prefix
=$ac_optarg ;;
933 -gas |
--gas |
--ga |
--g)
934 # Obsolete; use --with-gas.
937 -help |
--help |
--hel |
--he |
-h)
939 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
940 ac_init_help
=recursive
;;
941 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
942 ac_init_help
=short
;;
944 -host |
--host |
--hos |
--ho)
945 ac_prev
=host_alias
;;
946 -host=* |
--host=* |
--hos=* |
--ho=*)
947 host_alias
=$ac_optarg ;;
949 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
951 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
953 htmldir
=$ac_optarg ;;
955 -includedir |
--includedir |
--includedi |
--included |
--include \
956 |
--includ |
--inclu |
--incl |
--inc)
957 ac_prev
=includedir
;;
958 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
959 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
960 includedir
=$ac_optarg ;;
962 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
964 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
965 infodir
=$ac_optarg ;;
967 -libdir |
--libdir |
--libdi |
--libd)
969 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
972 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
973 |
--libexe |
--libex |
--libe)
974 ac_prev
=libexecdir
;;
975 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
976 |
--libexe=* |
--libex=* |
--libe=*)
977 libexecdir
=$ac_optarg ;;
979 -localedir |
--localedir |
--localedi |
--localed |
--locale)
981 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
982 localedir
=$ac_optarg ;;
984 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
985 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
986 ac_prev
=localstatedir
;;
987 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
988 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
989 localstatedir
=$ac_optarg ;;
991 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
993 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
997 # Obsolete; use --without-fp.
1000 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1001 |
--no-cr |
--no-c |
-n)
1004 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1005 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1008 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1009 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1010 |
--oldin |
--oldi |
--old |
--ol |
--o)
1011 ac_prev
=oldincludedir
;;
1012 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1013 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1014 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1015 oldincludedir
=$ac_optarg ;;
1017 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1019 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1020 prefix
=$ac_optarg ;;
1022 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1023 |
--program-pre |
--program-pr |
--program-p)
1024 ac_prev
=program_prefix
;;
1025 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1026 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1027 program_prefix
=$ac_optarg ;;
1029 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1030 |
--program-suf |
--program-su |
--program-s)
1031 ac_prev
=program_suffix
;;
1032 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1033 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1034 program_suffix
=$ac_optarg ;;
1036 -program-transform-name |
--program-transform-name \
1037 |
--program-transform-nam |
--program-transform-na \
1038 |
--program-transform-n |
--program-transform- \
1039 |
--program-transform |
--program-transfor \
1040 |
--program-transfo |
--program-transf \
1041 |
--program-trans |
--program-tran \
1042 |
--progr-tra |
--program-tr |
--program-t)
1043 ac_prev
=program_transform_name
;;
1044 -program-transform-name=* |
--program-transform-name=* \
1045 |
--program-transform-nam=* |
--program-transform-na=* \
1046 |
--program-transform-n=* |
--program-transform-=* \
1047 |
--program-transform=* |
--program-transfor=* \
1048 |
--program-transfo=* |
--program-transf=* \
1049 |
--program-trans=* |
--program-tran=* \
1050 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1051 program_transform_name
=$ac_optarg ;;
1053 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1055 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1056 pdfdir
=$ac_optarg ;;
1058 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1060 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1063 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1064 |
-silent |
--silent |
--silen |
--sile |
--sil)
1067 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1069 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1071 sbindir
=$ac_optarg ;;
1073 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1074 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1075 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1077 ac_prev
=sharedstatedir
;;
1078 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1079 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1080 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1082 sharedstatedir
=$ac_optarg ;;
1084 -site |
--site |
--sit)
1086 -site=* |
--site=* |
--sit=*)
1089 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1091 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1092 srcdir
=$ac_optarg ;;
1094 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1095 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1096 ac_prev
=sysconfdir
;;
1097 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1098 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1099 sysconfdir
=$ac_optarg ;;
1101 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1102 ac_prev
=target_alias
;;
1103 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1104 target_alias
=$ac_optarg ;;
1106 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1109 -version |
--version |
--versio |
--versi |
--vers |
-V)
1110 ac_init_version
=: ;;
1113 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1116 as_fn_error $?
"invalid package name: $ac_useropt"
1117 ac_useropt_orig
=$ac_useropt
1118 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1123 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep
=', ';;
1126 eval with_
$ac_useropt=\
$ac_optarg ;;
1128 -without-* |
--without-*)
1129 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 as_fn_error $?
"invalid package name: $ac_useropt"
1133 ac_useropt_orig
=$ac_useropt
1134 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep
=', ';;
1142 eval with_
$ac_useropt=no
;;
1145 # Obsolete; use --with-x.
1148 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1149 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1150 ac_prev
=x_includes
;;
1151 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1152 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1153 x_includes
=$ac_optarg ;;
1155 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1156 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1157 ac_prev
=x_libraries
;;
1158 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1159 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1160 x_libraries
=$ac_optarg ;;
1162 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1167 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1171 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1173 eval $ac_envvar=\
$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 if test -n "$ac_prev"; then
1188 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $?
"missing argument to $ac_option"
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1195 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 # Check all directory arguments for consistency.
1201 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val
=\$
$ac_var
1207 # Remove trailing slashes.
1210 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\
$ac_val;;
1213 # Be sure to have absolute directory names.
1215 [\\/$
]* | ?
:[\\/]* ) continue;;
1216 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1218 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target
=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x
; then
1230 if test "x$build_alias" = x
; then
1231 cross_compiling
=maybe
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1240 test "$silent" = yes && exec 6>/dev
/null
1243 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di
=`ls -di .` &&
1245 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $?
"working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $?
"pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted
=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir
=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted
=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1287 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var
in $ac_precious_vars; do
1304 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1306 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures this package to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1380 --build=BUILD configure
for building on BUILD
[guessed
]
1381 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1382 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1386 if test -n "$ac_init_help"; then
1391 --disable-option-checking ignore unrecognized
--enable/--with options
1392 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1393 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1394 --enable-maintainer-mode
1395 enable make rules and dependencies not useful
(and
1396 sometimes confusing
) to the casual installer
1397 --disable-largefile omit support
for large files
1398 --disable-rpath do not hardcode runtime library paths
1399 --enable-unit-tests Enable the inclusion of unit tests when compiling
1401 --enable-werror treat compile warnings as errors
1402 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1403 --enable-gdb-build-warnings
1404 enable GDB specific build-time compiler warnings
if
1406 --enable-inprocess-agent
1410 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1411 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1412 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1413 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1414 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1415 --without-libipt-prefix don
't search for libipt in includedir and libdir
1416 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1417 --with-ust=PATH Specify prefix directory for the installed UST package
1418 Equivalent to --with-ust-include=PATH/include
1419 plus --with-ust-lib=PATH/lib
1420 --with-ust-include=PATH Specify directory for installed UST include files
1421 --with-ust-lib=PATH Specify the directory for the installed UST library
1422 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1423 --with-bugurl=URL Direct users to URL to report a bug
1424 --with-libthread-db=PATH
1425 use given libthread_db directly
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CXX C++ compiler command
1436 CXXFLAGS C++ compiler flags
1439 Use these variables to override the choices made by `configure' or to
help
1440 it to
find libraries and programs with nonstandard names
/locations.
1442 Report bugs to the package provider.
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1456 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1458 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1463 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1466 ac_abs_top_builddir
=$ac_pwd
1467 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir
=$ac_top_build_prefix
1472 .
) # We are building in place.
1474 ac_top_srcdir
=$ac_top_builddir_sub
1475 ac_abs_top_srcdir
=$ac_pwd ;;
1476 [\\/]* | ?
:[\\/]* ) # Absolute name.
1477 ac_srcdir
=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir
=$srcdir
1479 ac_abs_top_srcdir
=$srcdir ;;
1481 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1485 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1487 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1506 generated by GNU Autoconf
2.69
1508 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1509 This configure
script is free software
; the Free Software Foundation
1510 gives unlimited permission to copy
, distribute and modify it.
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile
()
1524 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1525 rm -f conftest.
$ac_objext
1526 if { { ac_try
="$ac_compile"
1528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1555 } # ac_fn_c_try_compile
1557 # ac_fn_cxx_try_compile LINENO
1558 # ----------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_cxx_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1567 *) ac_try_echo
=$ac_try;;
1569 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1573 if test -s conftest.err
; then
1574 grep -v '^ *+' conftest.err
>conftest.er1
1575 cat conftest.er1
>&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_cxx_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.
$ac_objext; then :
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.
$ac_ext >&5
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status
$ac_retval
1593 } # ac_fn_cxx_try_compile
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1601 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1637 ac_fn_c_check_header_mongrel ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if eval \${$3+:} false; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1650 # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1661 ac_header_compiler=no
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1677 ac_header_preproc=no
1679 rm -f conftest.err conftest.i conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1683 # So? What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1709 eval "$3=\$ac_header_compiler"
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 } # ac_fn_c_check_header_mongrel
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1729 *) ac_try_echo
=$ac_try;;
1731 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=$ac_status
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1778 if ac_fn_c_try_compile "$LINENO"; then :
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_header_compile
1792 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1793 # -------------------------------------------
1794 # Tests whether TYPE exists after having included INCLUDES, setting cache
1795 # variable VAR accordingly.
1796 ac_fn_c_check_type ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 } # ac_fn_c_check_type
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1856 *) ac_try_echo
=$ac_try;;
1858 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1862 if test -s conftest.err
; then
1863 grep -v '^ *+' conftest.err
>conftest.er1
1864 cat conftest.er1
>&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest
$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 test -x conftest
$ac_exeext
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.
$ac_ext >&5
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status
$ac_retval
1890 } # ac_fn_c_try_link
1892 # ac_fn_c_check_func LINENO FUNC VAR
1893 # ----------------------------------
1894 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1895 ac_fn_c_check_func
()
1897 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \
${$3+:} false
; then :
1901 $as_echo_n "(cached) " >&6
1903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1907 #define $2 innocuous_$2
1909 /* System header to define __stub macros and hopefully few prototypes,
1910 which can conflict with char $2 (); below.
1911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912 <limits.h> exists even on freestanding compilers. */
1915 # include <limits.h>
1917 # include <assert.h>
1922 /* Override any GCC internal prototype to avoid an error.
1923 Use char because int might match the return type of a GCC
1924 builtin and then its argument prototype would still apply. */
1929 /* The GNU C library defines this for functions which it implements
1930 to always fail with ENOSYS. Some functions are actually named
1931 something starting with __ and the normal name is an alias. */
1932 #if defined __stub_$2 || defined __stub___$2
1944 if ac_fn_c_try_link
"$LINENO"; then :
1949 rm -f core conftest.err conftest.
$ac_objext \
1950 conftest
$ac_exeext conftest.
$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 } # ac_fn_c_check_func
1959 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1960 # ---------------------------------------------
1961 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1963 ac_fn_c_check_decl
()
1965 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1966 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1967 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1969 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1970 if eval \
${$3+:} false
; then :
1971 $as_echo_n "(cached) " >&6
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1979 #ifndef $as_decl_name
1981 (void) $as_decl_use;
1983 (void) $as_decl_name;
1991 if ac_fn_c_try_compile
"$LINENO"; then :
1996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_decl
2005 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006 # ----------------------------------------------------
2007 # Tries to find if the field MEMBER exists in type AGGR, after including
2008 # INCLUDES, setting cache variable VAR accordingly.
2009 ac_fn_c_check_member
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013 $as_echo_n "checking for $2.$3... " >&6; }
2014 if eval \
${$4+:} false
; then :
2015 $as_echo_n "(cached) " >&6
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2040 if (sizeof ac_aggr.$3)
2046 if ac_fn_c_try_compile
"$LINENO"; then :
2051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_member
2062 # ac_fn_cxx_try_link LINENO
2063 # -------------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded.
2065 ac_fn_cxx_try_link
()
2067 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2068 rm -f conftest.
$ac_objext conftest
$ac_exeext
2069 if { { ac_try
="$ac_link"
2071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>conftest.err
2078 if test -s conftest.err; then
2079 grep -v '^ *+' conftest.err >conftest.er1
2080 cat conftest.er1 >&5
2081 mv -f conftest.er1 conftest.err
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; } && {
2085 test -z "$ac_cxx_werror_flag" ||
2086 test ! -s conftest.err
2087 } && test -s conftest$ac_exeext && {
2088 test "$cross_compiling" = yes ||
2089 test -x conftest$ac_exeext
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2099 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2100 # interfere with the next link command; also delete a directory that is
2101 # left behind by Apple's compiler. We do this before executing the actions.
2102 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status $ac_retval
2106 } # ac_fn_cxx_try_link
2108 # ac_fn_cxx_check_func LINENO FUNC VAR
2109 # ------------------------------------
2110 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2111 ac_fn_cxx_check_func ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2123 #define $2 innocuous_$2
2125 /* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $2 (); below.
2127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2128 <limits.h> exists even on freestanding compilers. */
2131 # include <limits.h>
2133 # include <assert.h>
2138 /* Override any GCC internal prototype to avoid an error.
2139 Use char because int might match the return type of a GCC
2140 builtin and then its argument prototype would still apply. */
2145 /* The GNU C library defines this for functions which it implements
2146 to always fail with ENOSYS. Some functions are actually named
2147 something starting with __ and the normal name is an alias. */
2148 #if defined __stub_$2 || defined __stub___$2
2160 if ac_fn_cxx_try_link "$LINENO"; then :
2165 rm -f core conftest.err conftest.$ac_objext \
2166 conftest$ac_exeext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_cxx_check_func
2175 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2176 # --------------------------------------------
2177 # Tries to find the compile-time value of EXPR in a program that includes
2178 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2180 ac_fn_c_compute_int ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if test "$cross_compiling" = yes; then
2184 # Depending upon the size, compute the lo and hi bounds.
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) >= 0)];
2193 return test_array [0];
2199 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 ac_hi=$ac_mid; break
2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2220 if test $ac_lo -le $ac_mid; then
2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) < 0)];
2237 return test_array [0];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2254 return test_array [0];
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 ac_lo=$ac_mid; break
2263 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2264 if test $ac_mid -le $ac_hi; then
2268 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 # Binary search between lo and hi bounds.
2279 while test "x$ac_lo" != "x$ac_hi"; do
2280 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289 return test_array [0];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2298 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2310 static long int longval () { return $2; }
2311 static unsigned long int ulongval () { return $2; }
2318 FILE *f = fopen ("conftest.val", "w");
2323 long int i = longval ();
2326 fprintf (f, "%ld", i);
2330 unsigned long int i = ulongval ();
2333 fprintf (f, "%lu", i);
2335 /* Do not output a trailing newline, as this causes \r\n confusion
2336 on some platforms. */
2337 return ferror (f) || fclose (f) != 0;
2343 if ac_fn_c_try_run "$LINENO"; then :
2344 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2349 conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2356 } # ac_fn_c_compute_int
2357 cat >config.log <<_ACEOF
2358 This file contains any messages produced by compilers while
2359 running configure, to aid debugging if configure makes a mistake.
2361 It was created by $as_me, which was
2362 generated by GNU Autoconf 2.69. Invocation command line was
2374 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2375 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2376 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2377 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2378 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2380 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2381 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2383 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2384 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2385 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2386 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2387 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2388 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2389 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 $as_echo "PATH: $as_dir"
2414 # Keep a trace of the command line.
2415 # Strip out --no-create and --no-recursion so they do not pile up.
2416 # Strip out --silent because we don't want to record it for future runs.
2417 # Also quote any args containing shell meta-characters.
2418 # Make two passes to allow for proper duplicate-argument suppression.
2422 ac_must_keep_next=false
2428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2430 | -silent | --silent | --silen | --sile | --sil)
2433 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2436 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2438 as_fn_append ac_configure_args1 " '$ac_arg'"
2439 if test $ac_must_keep_next = true; then
2440 ac_must_keep_next=false # Got value, back to normal.
2443 *=* | --config-cache | -C | -disable-* | --disable-* \
2444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2446 | -with-* | --with-* | -without-* | --without-* | --x)
2447 case "$ac_configure_args0 " in
2448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2451 -* ) ac_must_keep_next=true ;;
2454 as_fn_append ac_configure_args " '$ac_arg'"
2459 { ac_configure_args0=; unset ac_configure_args0;}
2460 { ac_configure_args1=; unset ac_configure_args1;}
2462 # When interrupted or exit'd, cleanup temporary files, and complete
2463 # config.log. We remove comments because anyway the quotes in there
2464 # would cause problems or look ugly.
2465 # WARNING: Use '\'' to represent an apostrophe within the trap.
2466 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2467 trap 'exit_status=$?
2468 # Save into config.log some information that might help in debugging.
2472 $as_echo "## ---------------- ##
2473 ## Cache variables. ##
2474 ## ---------------- ##"
2476 # The following way of writing the cache mishandles newlines in values,
2478 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2479 eval ac_val=\$$ac_var
2483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487 _ | IFS | as_nl) ;; #(
2488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2489 *) { eval $ac_var=; unset $ac_var;} ;;
2494 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2495 *${as_nl}ac_space=\ *)
2497 "s/'\''/'\''\\\\'\'''\''/g;
2498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2508 $as_echo "## ----------------- ##
2509 ## Output variables. ##
2510 ## ----------------- ##"
2512 for ac_var in $ac_subst_vars
2514 eval ac_val=\$$ac_var
2516 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518 $as_echo "$ac_var='\''$ac_val'\''"
2522 if test -n "$ac_subst_files"; then
2523 $as_echo "## ------------------- ##
2524 ## File substitutions. ##
2525 ## ------------------- ##"
2527 for ac_var in $ac_subst_files
2529 eval ac_val=\$$ac_var
2531 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2533 $as_echo "$ac_var='\''$ac_val'\''"
2538 if test -s confdefs.h; then
2539 $as_echo "## ----------- ##
2546 test "$ac_signal" != 0 &&
2547 $as_echo "$as_me: caught signal $ac_signal"
2548 $as_echo "$as_me: exit $exit_status"
2550 rm -f core *.core core.conftest.* &&
2551 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554 for ac_signal in 1 2 13 15; do
2555 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2559 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2560 rm -f -r conftest* confdefs.h
2562 $as_echo "/* confdefs.h */" > confdefs.h
2564 # Predefined preprocessor variables.
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_NAME "$PACKAGE_NAME"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_STRING "$PACKAGE_STRING"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_URL "$PACKAGE_URL"
2591 # Let the site file select an alternate cache file if it wants to.
2592 # Prefer an explicitly selected file to automatically selected ones.
2595 if test -n "$CONFIG_SITE"; then
2596 # We do not want a PATH search for config.site.
2597 case $CONFIG_SITE in #((
2598 -*) ac_site_file1=./$CONFIG_SITE;;
2599 */*) ac_site_file1=$CONFIG_SITE;;
2600 *) ac_site_file1=./$CONFIG_SITE;;
2602 elif test "x$prefix" != xNONE; then
2603 ac_site_file1=$prefix/share/config.site
2604 ac_site_file2=$prefix/etc/config.site
2606 ac_site_file1=$ac_default_prefix/share/config.site
2607 ac_site_file2=$ac_default_prefix/etc/config.site
2609 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2611 test "x$ac_site_file" = xNONE && continue
2612 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2614 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2615 sed 's/^/| /' "$ac_site_file" >&5
2617 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 as_fn_error $? "failed to load site
script $ac_site_file
2620 See \
`config.log' for more details" "$LINENO" 5; }
2624 if test -r "$cache_file"; then
2625 # Some versions of bash will fail to source /dev/null (special files
2626 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2627 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2629 $as_echo "$as_me: loading cache $cache_file" >&6;}
2631 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2632 *) . "./$cache_file";;
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2637 $as_echo "$as_me: creating cache $cache_file" >&6;}
2641 as_fn_append ac_header_list " stdlib.h"
2642 as_fn_append ac_header_list " unistd.h"
2643 as_fn_append ac_header_list " sys/param.h"
2644 # Check that the precious variables saved in the cache have kept the same
2646 ac_cache_corrupted=false
2647 for ac_var in $ac_precious_vars; do
2648 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2649 eval ac_new_set=\$ac_env_${ac_var}_set
2650 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2651 eval ac_new_val=\$ac_env_${ac_var}_value
2652 case $ac_old_set,$ac_new_set in
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2655 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2656 ac_cache_corrupted=: ;;
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2659 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2663 if test "x$ac_old_val" != "x$ac_new_val"; then
2664 # differences in whitespace do not lead to failure.
2665 ac_old_val_w=`echo x
$ac_old_val`
2666 ac_new_val_w=`echo x
$ac_new_val`
2667 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2669 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2670 ac_cache_corrupted=:
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2673 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2674 eval $ac_var=\$ac_old_val
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2677 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2679 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2682 # Pass precious variables to config.status.
2683 if test "$ac_new_set" = set; then
2685 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2686 *) ac_arg=$ac_var=$ac_new_val ;;
2688 case " $ac_configure_args " in
2689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2690 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2694 if $ac_cache_corrupted; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2698 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2699 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2701 ## -------------------- ##
2702 ## Main body of script. ##
2703 ## -------------------- ##
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 ac_config_headers="$ac_config_headers config.h:config.in"
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2720 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2721 # Check whether --enable-maintainer-mode was given.
2722 if test "${enable_maintainer_mode+set}" = set; then :
2723 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2725 USE_MAINTAINER_MODE=no
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2729 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2730 if test $USE_MAINTAINER_MODE = yes; then
2731 MAINTAINER_MODE_TRUE=
2732 MAINTAINER_MODE_FALSE='#'
2734 MAINTAINER_MODE_TRUE='#'
2735 MAINTAINER_MODE_FALSE=
2738 MAINT=$MAINTAINER_MODE_TRUE
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 if test -n "$CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2786 if test -z "$ac_cv_prog_CC"; then
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_ac_ct_CC="gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2824 if test "x$ac_ct_CC" = x; then
2827 case $cross_compiling:$ac_tool_warned in
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}cc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_CC="${ac_tool_prefix}cc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2880 if test -z "$CC"; then
2881 # Extract the first word of "cc", so it can be a program name with args.
2882 set dummy cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900 ac_prog_rejected=yes
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test $ac_prog_rejected = yes; then
2912 # We found a bogon in the path, so make sure we never use it.
2913 set dummy $ac_cv_prog_CC
2915 if test $# != 0; then
2916 # We chose a different compiler from the bogus one.
2917 # However, it has the same basename, so the bogon will be chosen
2918 # first if we set CC to just the basename; use the full file name.
2920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926 if test -n "$CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 for ac_prog in cl.exe
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2977 test -n "$CC" && break
2980 if test -z "$CC"; then
2982 for ac_prog in cl.exe
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC="$ac_prog"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014 $as_echo "$ac_ct_CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3021 test -n "$ac_ct_CC" && break
3024 if test "x$ac_ct_CC" = x; then
3027 case $cross_compiling:$ac_tool_warned in
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3043 See \
`config.log' for more details" "$LINENO" 5; }
3045 # Provide some information about the compiler.
3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3053 *) ac_try_echo
=$ac_try;;
3055 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3059 if test -s conftest.err
; then
3061 ... rest of stderr output deleted ...
3062 10q' conftest.err
>conftest.er1
3063 cat conftest.er1
>&5
3065 rm -f conftest.er1 conftest.err
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3081 ac_clean_files_save
=$ac_clean_files
3082 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3083 # Try to create an executable without -o first, disregard a.out.
3084 # It will help us diagnose broken compilers, and finding out an intuition
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3087 $as_echo_n "checking whether the C compiler works... " >&6; }
3088 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090 # The possible output files:
3091 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094 for ac_file
in $ac_files
3097 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3098 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3103 if { { ac_try
="$ac_link_default"
3105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link_default") 2>&5
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3115 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3116 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3119 for ac_file in $ac_files ''
3121 test -f "$ac_file" || continue
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126 # We found the default executable, but exeext='' is most
3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134 # We set ac_cv_exeext here because the later test for it is not
3135 # safe: cross compilers may not add the suffix if given an `-o'
3136 # argument, so we may need to know it at that point already.
3137 # Even if this section looks crufty: it has the advantage of
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3149 if test -z "$ac_file"; then :
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 $as_echo "$as_me: failed program was:" >&5
3153 sed 's
/^
/|
/' conftest.$ac_ext >&5
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3157 as_fn_error 77 "C compiler cannot create executables
3158 See \`config.log
' for more details" "$LINENO" 5; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3164 $as_echo_n "checking for C compiler default output file name... " >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3166 $as_echo "$ac_file" >&6; }
3167 ac_exeext=$ac_cv_exeext
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172 $as_echo_n "checking for suffix of executables... " >&6; }
3173 if { { ac_try="$ac_link"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_link") 2>&5
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3185 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3186 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3188 for ac_file
in conftest.exe conftest conftest.
*; do
3189 test -f "$ac_file" ||
continue
3191 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3192 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3201 See \`config.log' for more details" "$LINENO" 5; }
3203 rm -f conftest conftest
$ac_cv_exeext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3205 $as_echo "$ac_cv_exeext" >&6; }
3207 rm -f conftest.
$ac_ext
3208 EXEEXT
=$ac_cv_exeext
3210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3216 FILE *f = fopen ("conftest.out", "w");
3217 return ferror (f) || fclose (f) != 0;
3223 ac_clean_files
="$ac_clean_files conftest.out"
3224 # Check that the compiler produces executables we can run. If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227 $as_echo_n "checking whether we are cross compiling... " >&6; }
3228 if test "$cross_compiling" != yes; then
3229 { { ac_try
="$ac_link"
3231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 if { ac_try='./conftest$ac_cv_exeext'
3241 { { case "(($ac_try" in
3242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3243 *) ac_try_echo
=$ac_try;;
3245 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_try") 2>&5
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; }; then
3253 if test "$cross_compiling" = maybe
; then
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $?
"cannot run C compiled programs.
3259 If you meant to cross compile, use \`--host'.
3260 See \`config.log' for more details" "$LINENO" 5; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3265 $as_echo "$cross_compiling" >&6; }
3267 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3268 ac_clean_files
=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3270 $as_echo_n "checking for suffix of object files... " >&6; }
3271 if ${ac_cv_objext+:} false
; then :
3272 $as_echo_n "(cached) " >&6
3274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3285 rm -f conftest.o conftest.obj
3286 if { { ac_try
="$ac_compile"
3288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compile") 2>&5
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3312 See \
`config.log' for more details" "$LINENO" 5; }
3314 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3317 $as_echo "$ac_cv_objext" >&6; }
3318 OBJEXT=$ac_cv_objext
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3321 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3322 if ${ac_cv_c_compiler_gnu+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3339 if ac_fn_c_try_compile "$LINENO"; then :
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3349 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3350 if test $ac_compiler_gnu = yes; then
3355 ac_test_CFLAGS=${CFLAGS+set}
3356 ac_save_CFLAGS=$CFLAGS
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3358 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3359 if ${ac_cv_prog_cc_g+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 ac_save_c_werror_flag=$ac_c_werror_flag
3363 ac_c_werror_flag=yes
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3377 if ac_fn_c_try_compile "$LINENO"; then :
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_c_werror_flag=$ac_save_c_werror_flag
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 if ac_fn_c_try_compile "$LINENO"; then :
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3419 $as_echo "$ac_cv_prog_cc_g" >&6; }
3420 if test "$ac_test_CFLAGS" = set; then
3421 CFLAGS=$ac_save_CFLAGS
3422 elif test $ac_cv_prog_cc_g = yes; then
3423 if test "$GCC" = yes; then
3429 if test "$GCC" = yes; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3436 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3437 if ${ac_cv_prog_cc_c89+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 ac_cv_prog_cc_c89=no
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3461 s = g (p, va_arg (v,int));
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3476 inside strings and character constants. */
3478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3480 int test (int i, double x);
3481 struct s1 {int (*f) (int a);};
3482 struct s2 {int (*f) (double a);};
3483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3497 CC="$ac_save_CC $ac_arg"
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_c89=$ac_arg
3501 rm -f core conftest.err conftest.$ac_objext
3502 test "x$ac_cv_prog_cc_c89" != "xno" && break
3504 rm -f conftest.$ac_ext
3509 case "x$ac_cv_prog_cc_c89" in
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3512 $as_echo "none needed" >&6; } ;;
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3515 $as_echo "unsupported" >&6; } ;;
3517 CC="$CC $ac_cv_prog_cc_c89"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3521 if test "x$ac_cv_prog_cc_c89" != xno; then :
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 ac_cpp='$CXXCPP $CPPFLAGS'
3533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3536 if test -z "$CXX"; then
3537 if test -n "$CCC"; then
3540 if test -n "$ac_tool_prefix"; then
3541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if ${ac_cv_prog_CXX+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$CXX"; then
3551 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test -n "$CXX"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3573 $as_echo "$CXX" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3580 test -n "$CXX" && break
3583 if test -z "$CXX"; then
3585 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3587 # Extract the first word of "$ac_prog", so it can be a program name with args.
3588 set dummy $ac_prog; 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_CXX+:} false; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$ac_ct_CXX"; then
3595 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3615 if test -n "$ac_ct_CXX"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3617 $as_echo "$ac_ct_CXX" >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3624 test -n "$ac_ct_CXX" && break
3627 if test "x$ac_ct_CXX" = x; then
3630 case $cross_compiling:$ac_tool_warned in
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3642 # Provide some information about the compiler.
3643 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3646 for ac_option in --version -v -V -qversion; do
3647 { { ac_try="$ac_compiler $ac_option >&5"
3649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3650 *) ac_try_echo
=$ac_try;;
3652 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3656 if test -s conftest.err
; then
3658 ... rest of stderr output deleted ...
3659 10q' conftest.err
>conftest.er1
3660 cat conftest.er1
>&5
3662 rm -f conftest.er1 conftest.err
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3668 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3669 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3670 $as_echo_n "(cached) " >&6
3672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3686 if ac_fn_cxx_try_compile
"$LINENO"; then :
3691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3692 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3696 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3697 if test $ac_compiler_gnu = yes; then
3702 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3703 ac_save_CXXFLAGS
=$CXXFLAGS
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3705 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3706 if ${ac_cv_prog_cxx_g+:} false
; then :
3707 $as_echo_n "(cached) " >&6
3709 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3710 ac_cxx_werror_flag
=yes
3713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3724 if ac_fn_cxx_try_compile
"$LINENO"; then :
3725 ac_cv_prog_cxx_g
=yes
3728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3739 if ac_fn_cxx_try_compile
"$LINENO"; then :
3742 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3755 if ac_fn_cxx_try_compile
"$LINENO"; then :
3756 ac_cv_prog_cxx_g
=yes
3758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3763 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3766 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3767 if test "$ac_test_CXXFLAGS" = set; then
3768 CXXFLAGS
=$ac_save_CXXFLAGS
3769 elif test $ac_cv_prog_cxx_g = yes; then
3770 if test "$GXX" = yes; then
3776 if test "$GXX" = yes; then
3783 ac_cpp
='$CPP $CPPFLAGS'
3784 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3790 ac_cpp
='$CPP $CPPFLAGS'
3791 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3796 # On Suns, sometimes $CPP names a directory.
3797 if test -n "$CPP" && test -d "$CPP"; then
3800 if test -z "$CPP"; then
3801 if ${ac_cv_prog_CPP+:} false
; then :
3802 $as_echo_n "(cached) " >&6
3804 # Double quotes because CPP needs to be expanded
3805 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3808 for ac_c_preproc_warn_flag
in '' yes
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3819 # include <limits.h>
3821 # include <assert.h>
3825 if ac_fn_c_try_cpp
"$LINENO"; then :
3828 # Broken: fails on valid input.
3831 rm -f conftest.err conftest.i conftest.
$ac_ext
3833 # OK, works on sane cases. Now check whether nonexistent headers
3834 # can be detected and how.
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #include <ac_nonexistent.h>
3839 if ac_fn_c_try_cpp
"$LINENO"; then :
3840 # Broken: success on invalid input.
3843 # Passes both tests.
3847 rm -f conftest.err conftest.i conftest.
$ac_ext
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.i conftest.err conftest.
$ac_ext
3852 if $ac_preproc_ok; then :
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3865 $as_echo "$CPP" >&6; }
3867 for ac_c_preproc_warn_flag
in '' yes
3869 # Use a header file that comes with gcc, so configuring glibc
3870 # with a fresh cross-compiler works.
3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872 # <limits.h> exists even on freestanding compilers.
3873 # On the NeXT, cc -E runs the code through the compiler's parser,
3874 # not just through cpp. "Syntax error" is here to catch this case.
3875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3878 # include <limits.h>
3880 # include <assert.h>
3884 if ac_fn_c_try_cpp
"$LINENO"; then :
3887 # Broken: fails on valid input.
3890 rm -f conftest.err conftest.i conftest.
$ac_ext
3892 # OK, works on sane cases. Now check whether nonexistent headers
3893 # can be detected and how.
3894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <ac_nonexistent.h>
3898 if ac_fn_c_try_cpp
"$LINENO"; then :
3899 # Broken: success on invalid input.
3902 # Passes both tests.
3906 rm -f conftest.err conftest.i conftest.
$ac_ext
3909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3910 rm -f conftest.i conftest.err conftest.
$ac_ext
3911 if $ac_preproc_ok; then :
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3917 See \`config.log' for more details" "$LINENO" 5; }
3921 ac_cpp
='$CPP $CPPFLAGS'
3922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3928 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3929 if ${ac_cv_path_GREP+:} false
; then :
3930 $as_echo_n "(cached) " >&6
3932 if test -z "$GREP"; then
3933 ac_path_GREP_found
=false
3934 # Loop through the user's path and test for each of PROGNAME-LIST
3935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3936 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3939 test -z "$as_dir" && as_dir
=.
3940 for ac_prog
in grep ggrep
; do
3941 for ac_exec_ext
in '' $ac_executable_extensions; do
3942 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3943 as_fn_executable_p
"$ac_path_GREP" ||
continue
3944 # Check for GNU ac_path_GREP and select it if it is found.
3945 # Check for GNU $ac_path_GREP
3946 case `"$ac_path_GREP" --version 2>&1` in
3948 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3951 $as_echo_n 0123456789 >"conftest.in"
3954 cat "conftest.in" "conftest.in" >"conftest.tmp"
3955 mv "conftest.tmp" "conftest.in"
3956 cp "conftest.in" "conftest.nl"
3957 $as_echo 'GREP' >> "conftest.nl"
3958 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3959 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3960 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3961 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3962 # Best one so far, save it but keep looking for a better one
3963 ac_cv_path_GREP
="$ac_path_GREP"
3964 ac_path_GREP_max
=$ac_count
3966 # 10*(2^10) chars as input seems more than enough
3967 test $ac_count -gt 10 && break
3969 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3972 $ac_path_GREP_found && break 3
3977 if test -z "$ac_cv_path_GREP"; then
3978 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3981 ac_cv_path_GREP
=$GREP
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3986 $as_echo "$ac_cv_path_GREP" >&6; }
3987 GREP
="$ac_cv_path_GREP"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3991 $as_echo_n "checking for egrep... " >&6; }
3992 if ${ac_cv_path_EGREP+:} false
; then :
3993 $as_echo_n "(cached) " >&6
3995 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3996 then ac_cv_path_EGREP
="$GREP -E"
3998 if test -z "$EGREP"; then
3999 ac_path_EGREP_found
=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4002 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4005 test -z "$as_dir" && as_dir
=.
4006 for ac_prog
in egrep; do
4007 for ac_exec_ext
in '' $ac_executable_extensions; do
4008 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4009 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4010 # Check for GNU ac_path_EGREP and select it if it is found.
4011 # Check for GNU $ac_path_EGREP
4012 case `"$ac_path_EGREP" --version 2>&1` in
4014 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4017 $as_echo_n 0123456789 >"conftest.in"
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 $as_echo 'EGREP' >> "conftest.nl"
4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4025 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4026 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_EGREP
="$ac_path_EGREP"
4030 ac_path_EGREP_max
=$ac_count
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4035 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4038 $ac_path_EGREP_found && break 3
4043 if test -z "$ac_cv_path_EGREP"; then
4044 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047 ac_cv_path_EGREP
=$EGREP
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4053 $as_echo "$ac_cv_path_EGREP" >&6; }
4054 EGREP
="$ac_cv_path_EGREP"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4058 $as_echo_n "checking for ANSI C header files... " >&6; }
4059 if ${ac_cv_header_stdc+:} false
; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4077 if ac_fn_c_try_compile
"$LINENO"; then :
4078 ac_cv_header_stdc
=yes
4080 ac_cv_header_stdc
=no
4082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 $EGREP "memchr" >/dev
/null
2>&1; then :
4095 ac_cv_header_stdc
=no
4101 if test $ac_cv_header_stdc = yes; then
4102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "free" >/dev
/null
2>&1; then :
4112 ac_cv_header_stdc
=no
4118 if test $ac_cv_header_stdc = yes; then
4119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4120 if test "$cross_compiling" = yes; then :
4123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 # define ISLOWER(c) \
4132 (('a' <= (c) && (c) <= 'i') \
4133 || ('j' <= (c) && (c) <= 'r') \
4134 || ('s' <= (c) && (c) <= 'z'))
4135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4143 for (i = 0; i < 256; i++)
4144 if (XOR (islower (i), ISLOWER (i))
4145 || toupper (i) != TOUPPER (i))
4150 if ac_fn_c_try_run
"$LINENO"; then :
4153 ac_cv_header_stdc
=no
4155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4156 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4162 $as_echo "$ac_cv_header_stdc" >&6; }
4163 if test $ac_cv_header_stdc = yes; then
4165 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4170 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4171 inttypes.h stdint.h unistd.h
4173 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4174 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4176 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4177 cat >>confdefs.h
<<_ACEOF
4178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4187 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4188 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4195 if test "$MINIX" = yes; then
4197 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4200 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4203 $as_echo "#define _MINIX 1" >>confdefs.h
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4209 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4210 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4211 $as_echo_n "(cached) " >&6
4213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4216 # define __EXTENSIONS__ 1
4217 $ac_includes_default
4226 if ac_fn_c_try_compile
"$LINENO"; then :
4227 ac_cv_safe_to_define___extensions__
=yes
4229 ac_cv_safe_to_define___extensions__
=no
4231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4234 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4235 test $ac_cv_safe_to_define___extensions__ = yes &&
4236 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4238 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4240 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4242 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4244 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4248 # Check whether --enable-largefile was given.
4249 if test "${enable_largefile+set}" = set; then :
4250 enableval
=$enable_largefile;
4253 if test "$enable_largefile" != no
; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4256 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4257 if ${ac_cv_sys_largefile_CC+:} false
; then :
4258 $as_echo_n "(cached) " >&6
4260 ac_cv_sys_largefile_CC
=no
4261 if test "$GCC" != yes; then
4264 # IRIX 6.2 and later do not support large files by default,
4265 # so use the C compiler's -n32 option if that helps.
4266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #include <sys/types.h>
4269 /* Check that off_t can represent 2**63 - 1 correctly.
4270 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4271 since some C++ compilers masquerading as C compilers
4272 incorrectly reject 9223372036854775807. */
4273 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4274 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4275 && LARGE_OFF_T % 2147483647 == 1)
4285 if ac_fn_c_try_compile
"$LINENO"; then :
4288 rm -f core conftest.err conftest.
$ac_objext
4290 if ac_fn_c_try_compile
"$LINENO"; then :
4291 ac_cv_sys_largefile_CC
=' -n32'; break
4293 rm -f core conftest.err conftest.
$ac_objext
4297 rm -f conftest.
$ac_ext
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4301 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4302 if test "$ac_cv_sys_largefile_CC" != no
; then
4303 CC
=$CC$ac_cv_sys_largefile_CC
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4307 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4308 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4309 $as_echo_n "(cached) " >&6
4312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <sys/types.h>
4315 /* Check that off_t can represent 2**63 - 1 correctly.
4316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4317 since some C++ compilers masquerading as C compilers
4318 incorrectly reject 9223372036854775807. */
4319 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4321 && LARGE_OFF_T % 2147483647 == 1)
4331 if ac_fn_c_try_compile
"$LINENO"; then :
4332 ac_cv_sys_file_offset_bits
=no
; break
4334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #define _FILE_OFFSET_BITS 64
4338 #include <sys/types.h>
4339 /* Check that off_t can represent 2**63 - 1 correctly.
4340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4341 since some C++ compilers masquerading as C compilers
4342 incorrectly reject 9223372036854775807. */
4343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4345 && LARGE_OFF_T % 2147483647 == 1)
4355 if ac_fn_c_try_compile
"$LINENO"; then :
4356 ac_cv_sys_file_offset_bits
=64; break
4358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4359 ac_cv_sys_file_offset_bits
=unknown
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4364 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4365 case $ac_cv_sys_file_offset_bits in #(
4368 cat >>confdefs.h
<<_ACEOF
4369 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4374 if test $ac_cv_sys_file_offset_bits = unknown
; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4376 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4377 if ${ac_cv_sys_large_files+:} false
; then :
4378 $as_echo_n "(cached) " >&6
4381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <sys/types.h>
4384 /* Check that off_t can represent 2**63 - 1 correctly.
4385 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4386 since some C++ compilers masquerading as C compilers
4387 incorrectly reject 9223372036854775807. */
4388 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4389 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4390 && LARGE_OFF_T % 2147483647 == 1)
4400 if ac_fn_c_try_compile
"$LINENO"; then :
4401 ac_cv_sys_large_files
=no
; break
4403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #define _LARGE_FILES 1
4407 #include <sys/types.h>
4408 /* Check that off_t can represent 2**63 - 1 correctly.
4409 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4410 since some C++ compilers masquerading as C compilers
4411 incorrectly reject 9223372036854775807. */
4412 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4413 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4414 && LARGE_OFF_T % 2147483647 == 1)
4424 if ac_fn_c_try_compile
"$LINENO"; then :
4425 ac_cv_sys_large_files
=1; break
4427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4428 ac_cv_sys_large_files
=unknown
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4433 $as_echo "$ac_cv_sys_large_files" >&6; }
4434 case $ac_cv_sys_large_files in #(
4437 cat >>confdefs.h
<<_ACEOF
4438 #define _LARGE_FILES $ac_cv_sys_large_files
4449 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4450 if test -f "$ac_dir/install-sh"; then
4452 ac_install_sh
="$ac_aux_dir/install-sh -c"
4454 elif test -f "$ac_dir/install.sh"; then
4456 ac_install_sh
="$ac_aux_dir/install.sh -c"
4458 elif test -f "$ac_dir/shtool"; then
4460 ac_install_sh
="$ac_aux_dir/shtool install -c"
4464 if test -z "$ac_aux_dir"; then
4465 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4468 # These three variables are undocumented and unsupported,
4469 # and are intended to be withdrawn in a future Autoconf release.
4470 # They can cause serious problems if a builder's source tree is in a directory
4471 # whose full name contains unusual characters.
4472 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4473 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4474 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4477 # Expand $ac_aux_dir to an absolute path.
4478 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4480 if test x
"${install_sh+set}" != xset
; then
4483 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4485 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4489 # Installed binaries are usually stripped using 'strip' when the user
4490 # run "make install-strip". However 'strip' might not be the right
4491 # tool to use in cross-compilation environments, therefore Automake
4492 # will honor the 'STRIP' environment variable to overrule this program.
4493 if test "$cross_compiling" != no
; then
4494 if test -n "$ac_tool_prefix"; then
4495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4496 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_STRIP+:} false
; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$STRIP"; then
4503 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir
=.
4510 for ac_exec_ext
in '' $ac_executable_extensions; do
4511 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 STRIP
=$ac_cv_prog_STRIP
4523 if test -n "$STRIP"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4525 $as_echo "$STRIP" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4533 if test -z "$ac_cv_prog_STRIP"; then
4535 # Extract the first word of "strip", so it can be a program name with args.
4536 set dummy strip
; ac_word
=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4540 $as_echo_n "(cached) " >&6
4542 if test -n "$ac_ct_STRIP"; then
4543 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir
=.
4550 for ac_exec_ext
in '' $ac_executable_extensions; do
4551 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_STRIP
="strip"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4563 if test -n "$ac_ct_STRIP"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4565 $as_echo "$ac_ct_STRIP" >&6; }
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4571 if test "x$ac_ct_STRIP" = x
; then
4574 case $cross_compiling:$ac_tool_warned in
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4578 ac_tool_warned
=yes ;;
4583 STRIP
="$ac_cv_prog_STRIP"
4587 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4590 # Make sure we can run config.sub.
4591 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4592 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4595 $as_echo_n "checking build system type... " >&6; }
4596 if ${ac_cv_build+:} false
; then :
4597 $as_echo_n "(cached) " >&6
4599 ac_build_alias
=$build_alias
4600 test "x$ac_build_alias" = x
&&
4601 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4602 test "x$ac_build_alias" = x
&&
4603 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4604 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4605 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4609 $as_echo "$ac_cv_build" >&6; }
4610 case $ac_cv_build in
4612 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4615 ac_save_IFS
=$IFS; IFS
='-'
4621 # Remember, the first character of IFS is used to create $*,
4622 # except with old shells:
4625 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4629 $as_echo_n "checking host system type... " >&6; }
4630 if ${ac_cv_host+:} false
; then :
4631 $as_echo_n "(cached) " >&6
4633 if test "x$host_alias" = x
; then
4634 ac_cv_host
=$ac_cv_build
4636 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4637 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4642 $as_echo "$ac_cv_host" >&6; }
4645 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4648 ac_save_IFS
=$IFS; IFS
='-'
4654 # Remember, the first character of IFS is used to create $*,
4655 # except with old shells:
4658 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4662 $as_echo_n "checking target system type... " >&6; }
4663 if ${ac_cv_target+:} false
; then :
4664 $as_echo_n "(cached) " >&6
4666 if test "x$target_alias" = x
; then
4667 ac_cv_target
=$ac_cv_host
4669 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4670 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4675 $as_echo "$ac_cv_target" >&6; }
4676 case $ac_cv_target in
4678 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4680 target
=$ac_cv_target
4681 ac_save_IFS
=$IFS; IFS
='-'
4687 # Remember, the first character of IFS is used to create $*,
4688 # except with old shells:
4691 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4694 # The aliases save the names the user supplied, while $host etc.
4695 # will get canonicalized.
4696 test -n "$target_alias" &&
4697 test "$program_prefix$program_suffix$program_transform_name" = \
4699 program_prefix
=${target_alias}-
4702 # Find a good install program. We prefer a C program (faster),
4703 # so one script is as good as another. But avoid the broken or
4704 # incompatible versions:
4705 # SysV /etc/install, /usr/sbin/install
4706 # SunOS /usr/etc/install
4707 # IRIX /sbin/install
4709 # AmigaOS /C/install, which installs bootblocks on floppy discs
4710 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4713 # OS/2's system install, which has a completely different semantic
4714 # ./install, which can be erroneously created by make from ./install.sh.
4715 # Reject install programs that cannot install multiple files.
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4717 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4718 if test -z "$INSTALL"; then
4719 if ${ac_cv_path_install+:} false
; then :
4720 $as_echo_n "(cached) " >&6
4722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir
=.
4727 # Account for people who put trailing slashes in PATH elements.
4728 case $as_dir/ in #((
4729 .
/ | .
// |
/[cC
]/* | \
4730 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4731 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4734 # OSF1 and SCO ODT 3.0 have their own names for install.
4735 # Don't use installbsd from OSF since it installs stuff as root
4737 for ac_prog
in ginstall scoinst
install; do
4738 for ac_exec_ext
in '' $ac_executable_extensions; do
4739 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4740 if test $ac_prog = install &&
4741 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4742 # AIX install. It has an incompatible calling convention.
4744 elif test $ac_prog = install &&
4745 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4746 # program-specific install script used by HP pwplus--don't use.
4749 rm -rf conftest.one conftest.two conftest.dir
4750 echo one
> conftest.one
4751 echo two
> conftest.two
4753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4754 test -s conftest.one
&& test -s conftest.two
&&
4755 test -s conftest.dir
/conftest.one
&&
4756 test -s conftest.dir
/conftest.two
4758 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4771 rm -rf conftest.one conftest.two conftest.dir
4774 if test "${ac_cv_path_install+set}" = set; then
4775 INSTALL
=$ac_cv_path_install
4777 # As a last resort, use the slow shell script. Don't cache a
4778 # value for INSTALL within a source directory, because that will
4779 # break other packages using the cache if that directory is
4780 # removed, or if the value is a relative name.
4781 INSTALL
=$ac_install_sh
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4785 $as_echo "$INSTALL" >&6; }
4787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4788 # It thinks the first close brace ends the variable substitution.
4789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4793 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4795 if test -n "$ac_tool_prefix"; then
4796 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4797 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_prog_AR+:} false
; then :
4801 $as_echo_n "(cached) " >&6
4803 if test -n "$AR"; then
4804 ac_cv_prog_AR
="$AR" # Let the user override the test.
4806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir
=.
4811 for ac_exec_ext
in '' $ac_executable_extensions; do
4812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 if test -n "$AR"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4826 $as_echo "$AR" >&6; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4834 if test -z "$ac_cv_prog_AR"; then
4836 # Extract the first word of "ar", so it can be a program name with args.
4837 set dummy
ar; ac_word
=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4841 $as_echo_n "(cached) " >&6
4843 if test -n "$ac_ct_AR"; then
4844 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4850 test -z "$as_dir" && as_dir
=.
4851 for ac_exec_ext
in '' $ac_executable_extensions; do
4852 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_AR
="ar"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4864 if test -n "$ac_ct_AR"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4866 $as_echo "$ac_ct_AR" >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4872 if test "x$ac_ct_AR" = x
; then
4875 case $cross_compiling:$ac_tool_warned in
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4879 ac_tool_warned
=yes ;;
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4889 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_RANLIB+:} false
; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -n "$RANLIB"; then
4896 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir
=.
4903 for ac_exec_ext
in '' $ac_executable_extensions; do
4904 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 RANLIB
=$ac_cv_prog_RANLIB
4916 if test -n "$RANLIB"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4918 $as_echo "$RANLIB" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4926 if test -z "$ac_cv_prog_RANLIB"; then
4927 ac_ct_RANLIB
=$RANLIB
4928 # Extract the first word of "ranlib", so it can be a program name with args.
4929 set dummy ranlib
; ac_word
=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4933 $as_echo_n "(cached) " >&6
4935 if test -n "$ac_ct_RANLIB"; then
4936 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir
=.
4943 for ac_exec_ext
in '' $ac_executable_extensions; do
4944 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4956 if test -n "$ac_ct_RANLIB"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4958 $as_echo "$ac_ct_RANLIB" >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4964 if test "x$ac_ct_RANLIB" = x
; then
4967 case $cross_compiling:$ac_tool_warned in
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned
=yes ;;
4973 RANLIB
=$ac_ct_RANLIB
4976 RANLIB
="$ac_cv_prog_RANLIB"
4980 test "$program_prefix" != NONE
&&
4981 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4982 # Use a double $ so make ignores it.
4983 test "$program_suffix" != NONE
&&
4984 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4985 # Double any \ or $.
4986 # By default was `s,x,x', remove it if useless.
4987 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4988 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4991 # We require a C++11 compiler. Check if one is available, and if
4992 # necessary, set CXX_DIALECT to some -std=xxx switch.
4994 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4996 ac_cpp
='$CXXCPP $CPPFLAGS'
4997 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5003 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5004 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5005 $as_echo_n "(cached) " >&6
5007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5011 // If the compiler admits that it is not ready for C++11, why torture it?
5012 // Hopefully, this will speed up the test.
5016 #error "This is not a C++ compiler"
5018 #elif __cplusplus < 201103L
5020 #error "This is not a C++11 compiler"
5027 namespace test_static_assert
5030 template <typename T>
5033 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5038 namespace test_final_override
5046 struct Derived : public Base
5048 virtual void f() override {}
5053 namespace test_double_right_angle_brackets
5056 template < typename T >
5059 typedef check<void> single_type;
5060 typedef check<check<void>> double_type;
5061 typedef check<check<check<void>>> triple_type;
5062 typedef check<check<check<check<void>>>> quadruple_type;
5066 namespace test_decltype
5079 namespace test_type_deduction
5082 template < typename T1, typename T2 >
5085 static const bool value = false;
5088 template < typename T >
5089 struct is_same<T, T>
5091 static const bool value = true;
5094 template < typename T1, typename T2 >
5096 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5102 test(const int c, volatile int v)
5104 static_assert(is_same<int, decltype(0)>::value == true, "");
5105 static_assert(is_same<int, decltype(c)>::value == false, "");
5106 static_assert(is_same<int, decltype(v)>::value == false, "");
5109 auto sumi = ac + av + 'x';
5110 auto sumf = ac + av + 1.0;
5111 static_assert(is_same<int, decltype(ac)>::value == true, "");
5112 static_assert(is_same<int, decltype(av)>::value == true, "");
5113 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5114 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5115 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5116 return (sumf > 0.0) ? sumi : add(c, v);
5121 namespace test_noexcept
5124 int f() { return 0; }
5125 int g() noexcept { return 0; }
5127 static_assert(noexcept(f()) == false, "");
5128 static_assert(noexcept(g()) == true, "");
5132 namespace test_constexpr
5135 template < typename CharT >
5136 unsigned long constexpr
5137 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5139 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5142 template < typename CharT >
5143 unsigned long constexpr
5144 strlen_c(const CharT *const s) noexcept
5146 return strlen_c_r(s, 0UL);
5149 static_assert(strlen_c("") == 0UL, "");
5150 static_assert(strlen_c("1") == 1UL, "");
5151 static_assert(strlen_c("example") == 7UL, "");
5152 static_assert(strlen_c("another\0example") == 7UL, "");
5156 namespace test_rvalue_references
5162 static constexpr int value = N;
5165 answer<1> f(int&) { return answer<1>(); }
5166 answer<2> f(const int&) { return answer<2>(); }
5167 answer<3> f(int&&) { return answer<3>(); }
5174 static_assert(decltype(f(i))::value == 1, "");
5175 static_assert(decltype(f(c))::value == 2, "");
5176 static_assert(decltype(f(0))::value == 3, "");
5181 namespace test_uniform_initialization
5186 static const int zero {};
5187 static const int one {1};
5190 static_assert(test::zero == 0, "");
5191 static_assert(test::one == 1, "");
5195 namespace test_lambdas
5201 auto lambda1 = [](){};
5202 auto lambda2 = lambda1;
5210 auto a = [](int i, int j){ return i + j; }(1, 2);
5211 auto b = []() -> int { return '0'; }();
5212 auto c = [=](){ return a + b; }();
5213 auto d = [&](){ return c; }();
5214 auto e = [a, &b](int x) mutable {
5215 const auto identity = [](int y){ return y; };
5216 for (auto i = 0; i < a; ++i)
5218 return x + identity(a + b);
5220 return a + b + c + d + e;
5226 const auto nullary = [](){ return 0; };
5227 const auto unary = [](int x){ return x; };
5228 using nullary_t = decltype(nullary);
5229 using unary_t = decltype(unary);
5230 const auto higher1st = [](nullary_t f){ return f(); };
5231 const auto higher2nd = [unary](nullary_t f1){
5232 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5234 return higher1st(nullary) + higher2nd(nullary)(unary);
5239 namespace test_variadic_templates
5245 template <int N0, int... N1toN>
5246 struct sum<N0, N1toN...>
5248 static constexpr auto value = N0 + sum<N1toN...>::value;
5254 static constexpr auto value = 0;
5257 static_assert(sum<>::value == 0, "");
5258 static_assert(sum<1>::value == 1, "");
5259 static_assert(sum<23>::value == 23, "");
5260 static_assert(sum<1, 2>::value == 3, "");
5261 static_assert(sum<5, 5, 11>::value == 21, "");
5262 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5266 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5267 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5269 namespace test_template_alias_sfinae
5274 template<typename T>
5275 using member = typename T::member_type;
5277 template<typename T>
5280 template<typename T>
5281 void func(member<T>*) {}
5285 void test() { func<foo>(0); }
5289 } // namespace cxx11
5291 #endif // __cplusplus >= 201103L
5296 if ac_fn_cxx_try_compile
"$LINENO"; then :
5297 ax_cv_cxx_compile_cxx11
=yes
5299 ax_cv_cxx_compile_cxx11
=no
5301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5304 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5305 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5309 if test x
$ac_success = xno
; then
5310 for alternative
in ${ax_cxx_compile_alternatives}; do
5311 switch
="-std=gnu++${alternative}"
5312 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5314 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5315 if eval \
${$cachevar+:} false
; then :
5316 $as_echo_n "(cached) " >&6
5320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5324 // If the compiler admits that it is not ready for C++11, why torture it?
5325 // Hopefully, this will speed up the test.
5329 #error "This is not a C++ compiler"
5331 #elif __cplusplus < 201103L
5333 #error "This is not a C++11 compiler"
5340 namespace test_static_assert
5343 template <typename T>
5346 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5351 namespace test_final_override
5359 struct Derived : public Base
5361 virtual void f() override {}
5366 namespace test_double_right_angle_brackets
5369 template < typename T >
5372 typedef check<void> single_type;
5373 typedef check<check<void>> double_type;
5374 typedef check<check<check<void>>> triple_type;
5375 typedef check<check<check<check<void>>>> quadruple_type;
5379 namespace test_decltype
5392 namespace test_type_deduction
5395 template < typename T1, typename T2 >
5398 static const bool value = false;
5401 template < typename T >
5402 struct is_same<T, T>
5404 static const bool value = true;
5407 template < typename T1, typename T2 >
5409 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5415 test(const int c, volatile int v)
5417 static_assert(is_same<int, decltype(0)>::value == true, "");
5418 static_assert(is_same<int, decltype(c)>::value == false, "");
5419 static_assert(is_same<int, decltype(v)>::value == false, "");
5422 auto sumi = ac + av + 'x';
5423 auto sumf = ac + av + 1.0;
5424 static_assert(is_same<int, decltype(ac)>::value == true, "");
5425 static_assert(is_same<int, decltype(av)>::value == true, "");
5426 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5427 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5428 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5429 return (sumf > 0.0) ? sumi : add(c, v);
5434 namespace test_noexcept
5437 int f() { return 0; }
5438 int g() noexcept { return 0; }
5440 static_assert(noexcept(f()) == false, "");
5441 static_assert(noexcept(g()) == true, "");
5445 namespace test_constexpr
5448 template < typename CharT >
5449 unsigned long constexpr
5450 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5452 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5455 template < typename CharT >
5456 unsigned long constexpr
5457 strlen_c(const CharT *const s) noexcept
5459 return strlen_c_r(s, 0UL);
5462 static_assert(strlen_c("") == 0UL, "");
5463 static_assert(strlen_c("1") == 1UL, "");
5464 static_assert(strlen_c("example") == 7UL, "");
5465 static_assert(strlen_c("another\0example") == 7UL, "");
5469 namespace test_rvalue_references
5475 static constexpr int value = N;
5478 answer<1> f(int&) { return answer<1>(); }
5479 answer<2> f(const int&) { return answer<2>(); }
5480 answer<3> f(int&&) { return answer<3>(); }
5487 static_assert(decltype(f(i))::value == 1, "");
5488 static_assert(decltype(f(c))::value == 2, "");
5489 static_assert(decltype(f(0))::value == 3, "");
5494 namespace test_uniform_initialization
5499 static const int zero {};
5500 static const int one {1};
5503 static_assert(test::zero == 0, "");
5504 static_assert(test::one == 1, "");
5508 namespace test_lambdas
5514 auto lambda1 = [](){};
5515 auto lambda2 = lambda1;
5523 auto a = [](int i, int j){ return i + j; }(1, 2);
5524 auto b = []() -> int { return '0'; }();
5525 auto c = [=](){ return a + b; }();
5526 auto d = [&](){ return c; }();
5527 auto e = [a, &b](int x) mutable {
5528 const auto identity = [](int y){ return y; };
5529 for (auto i = 0; i < a; ++i)
5531 return x + identity(a + b);
5533 return a + b + c + d + e;
5539 const auto nullary = [](){ return 0; };
5540 const auto unary = [](int x){ return x; };
5541 using nullary_t = decltype(nullary);
5542 using unary_t = decltype(unary);
5543 const auto higher1st = [](nullary_t f){ return f(); };
5544 const auto higher2nd = [unary](nullary_t f1){
5545 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5547 return higher1st(nullary) + higher2nd(nullary)(unary);
5552 namespace test_variadic_templates
5558 template <int N0, int... N1toN>
5559 struct sum<N0, N1toN...>
5561 static constexpr auto value = N0 + sum<N1toN...>::value;
5567 static constexpr auto value = 0;
5570 static_assert(sum<>::value == 0, "");
5571 static_assert(sum<1>::value == 1, "");
5572 static_assert(sum<23>::value == 23, "");
5573 static_assert(sum<1, 2>::value == 3, "");
5574 static_assert(sum<5, 5, 11>::value == 21, "");
5575 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5579 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5580 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5582 namespace test_template_alias_sfinae
5587 template<typename T>
5588 using member = typename T::member_type;
5590 template<typename T>
5593 template<typename T>
5594 void func(member<T>*) {}
5598 void test() { func<foo>(0); }
5602 } // namespace cxx11
5604 #endif // __cplusplus >= 201103L
5609 if ac_fn_cxx_try_compile
"$LINENO"; then :
5614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5617 eval ac_res
=\$
$cachevar
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5619 $as_echo "$ac_res" >&6; }
5620 if eval test x\$
$cachevar = xyes
; then
5621 CXX_DIALECT
="$switch"
5628 if test x
$ac_success = xno
; then
5629 for alternative
in ${ax_cxx_compile_alternatives}; do
5630 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5631 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5633 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5634 if eval \${$cachevar+:} false; then :
5635 $as_echo_n "(cached
) " >&6
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5643 // If the compiler admits that it is not ready for C++11, why torture it?
5644 // Hopefully, this will speed up the test.
5648 #error "This is not a C
++ compiler
"
5650 #elif __cplusplus < 201103L
5652 #error "This is not a C
++11 compiler
"
5659 namespace test_static_assert
5662 template <typename T>
5665 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5670 namespace test_final_override
5678 struct Derived : public Base
5680 virtual void f() override {}
5685 namespace test_double_right_angle_brackets
5688 template < typename T >
5691 typedef check<void> single_type;
5692 typedef check<check<void>> double_type;
5693 typedef check<check<check<void>>> triple_type;
5694 typedef check<check<check<check<void>>>> quadruple_type;
5698 namespace test_decltype
5711 namespace test_type_deduction
5714 template < typename T1, typename T2 >
5717 static const bool value = false;
5720 template < typename T >
5721 struct is_same<T, T>
5723 static const bool value = true;
5726 template < typename T1, typename T2 >
5728 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5734 test(const int c, volatile int v)
5736 static_assert(is_same<int, decltype(0)>::value == true, "");
5737 static_assert(is_same<int, decltype(c)>::value == false, "");
5738 static_assert(is_same<int, decltype(v)>::value == false, "");
5741 auto sumi = ac + av + 'x';
5742 auto sumf = ac + av + 1.0;
5743 static_assert(is_same<int, decltype(ac)>::value == true, "");
5744 static_assert(is_same<int, decltype(av)>::value == true, "");
5745 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5746 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5747 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5748 return (sumf > 0.0) ? sumi : add(c, v);
5753 namespace test_noexcept
5756 int f() { return 0; }
5757 int g() noexcept { return 0; }
5759 static_assert(noexcept(f()) == false, "");
5760 static_assert(noexcept(g()) == true, "");
5764 namespace test_constexpr
5767 template < typename CharT >
5768 unsigned long constexpr
5769 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5771 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5774 template < typename CharT >
5775 unsigned long constexpr
5776 strlen_c(const CharT *const s) noexcept
5778 return strlen_c_r(s, 0UL);
5781 static_assert(strlen_c("") == 0UL, "");
5782 static_assert(strlen_c("1") == 1UL, "");
5783 static_assert(strlen_c("example
") == 7UL, "");
5784 static_assert(strlen_c("another\
0example
") == 7UL, "");
5788 namespace test_rvalue_references
5794 static constexpr int value = N;
5797 answer<1> f(int&) { return answer<1>(); }
5798 answer<2> f(const int&) { return answer<2>(); }
5799 answer<3> f(int&&) { return answer<3>(); }
5806 static_assert(decltype(f(i))::value == 1, "");
5807 static_assert(decltype(f(c))::value == 2, "");
5808 static_assert(decltype(f(0))::value == 3, "");
5813 namespace test_uniform_initialization
5818 static const int zero {};
5819 static const int one {1};
5822 static_assert(test::zero == 0, "");
5823 static_assert(test::one == 1, "");
5827 namespace test_lambdas
5833 auto lambda1 = [](){};
5834 auto lambda2 = lambda1;
5842 auto a = [](int i, int j){ return i + j; }(1, 2);
5843 auto b = []() -> int { return '0'; }();
5844 auto c = [=](){ return a + b; }();
5845 auto d = [&](){ return c; }();
5846 auto e = [a, &b](int x) mutable {
5847 const auto identity = [](int y){ return y; };
5848 for (auto i = 0; i < a; ++i)
5850 return x + identity(a + b);
5852 return a + b + c + d + e;
5858 const auto nullary = [](){ return 0; };
5859 const auto unary = [](int x){ return x; };
5860 using nullary_t = decltype(nullary);
5861 using unary_t = decltype(unary);
5862 const auto higher1st = [](nullary_t f){ return f(); };
5863 const auto higher2nd = [unary](nullary_t f1){
5864 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5866 return higher1st(nullary) + higher2nd(nullary)(unary);
5871 namespace test_variadic_templates
5877 template <int N0, int... N1toN>
5878 struct sum<N0, N1toN...>
5880 static constexpr auto value = N0 + sum<N1toN...>::value;
5886 static constexpr auto value = 0;
5889 static_assert(sum<>::value == 0, "");
5890 static_assert(sum<1>::value == 1, "");
5891 static_assert(sum<23>::value == 23, "");
5892 static_assert(sum<1, 2>::value == 3, "");
5893 static_assert(sum<5, 5, 11>::value == 21, "");
5894 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5898 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5899 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5901 namespace test_template_alias_sfinae
5906 template<typename T>
5907 using member = typename T::member_type;
5909 template<typename T>
5912 template<typename T>
5913 void func(member<T>*) {}
5917 void test() { func<foo>(0); }
5921 } // namespace cxx11
5923 #endif // __cplusplus >= 201103L
5928 if ac_fn_cxx_try_compile "$LINENO"; then :
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 eval ac_res=\$$cachevar
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5938 $as_echo "$ac_res" >&6; }
5939 if eval test x\$$cachevar = xyes; then
5940 CXX_DIALECT="$switch"
5945 if test x$ac_success = xyes; then
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5957 if test x$ac_success = xno; then
5958 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5961 if test x$ac_success = xno; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5964 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5968 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5976 $as_echo_n "checking for ANSI C header files... " >&6; }
5977 if ${ac_cv_header_stdc+:} false
; then :
5978 $as_echo_n "(cached) " >&6
5980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5995 if ac_fn_c_try_compile
"$LINENO"; then :
5996 ac_cv_header_stdc
=yes
5998 ac_cv_header_stdc
=no
6000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6002 if test $ac_cv_header_stdc = yes; then
6003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 $EGREP "memchr" >/dev
/null
2>&1; then :
6013 ac_cv_header_stdc
=no
6019 if test $ac_cv_header_stdc = yes; then
6020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 $EGREP "free" >/dev
/null
2>&1; then :
6030 ac_cv_header_stdc
=no
6036 if test $ac_cv_header_stdc = yes; then
6037 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6038 if test "$cross_compiling" = yes; then :
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6045 #if ((' ' & 0x0FF) == 0x020)
6046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6049 # define ISLOWER(c) \
6050 (('a' <= (c) && (c) <= 'i') \
6051 || ('j' <= (c) && (c) <= 'r') \
6052 || ('s' <= (c) && (c) <= 'z'))
6053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6061 for (i = 0; i < 256; i++)
6062 if (XOR (islower (i), ISLOWER (i))
6063 || toupper (i) != TOUPPER (i))
6068 if ac_fn_c_try_run
"$LINENO"; then :
6071 ac_cv_header_stdc
=no
6073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6080 $as_echo "$ac_cv_header_stdc" >&6; }
6081 if test $ac_cv_header_stdc = yes; then
6083 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6088 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6089 if test "x$ac_cv_type_size_t" = xyes
; then :
6093 cat >>confdefs.h
<<_ACEOF
6094 #define size_t unsigned int
6102 for ac_header
in $ac_header_list
6104 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6105 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6107 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6108 cat >>confdefs.h
<<_ACEOF
6109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6122 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6123 if test "x$ac_cv_type_pid_t" = xyes
; then :
6127 cat >>confdefs.h
<<_ACEOF
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6134 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6135 if ${ac_cv_path_SED+:} false
; then :
6136 $as_echo_n "(cached) " >&6
6138 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6139 for ac_i
in 1 2 3 4 5 6 7; do
6140 ac_script
="$ac_script$as_nl$ac_script"
6142 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6143 { ac_script
=; unset ac_script
;}
6144 if test -z "$SED"; then
6145 ac_path_SED_found
=false
6146 # Loop through the user's path and test for each of PROGNAME-LIST
6147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir
=.
6152 for ac_prog
in sed gsed
; do
6153 for ac_exec_ext
in '' $ac_executable_extensions; do
6154 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6155 as_fn_executable_p
"$ac_path_SED" ||
continue
6156 # Check for GNU ac_path_SED and select it if it is found.
6157 # Check for GNU $ac_path_SED
6158 case `"$ac_path_SED" --version 2>&1` in
6160 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6163 $as_echo_n 0123456789 >"conftest.in"
6166 cat "conftest.in" "conftest.in" >"conftest.tmp"
6167 mv "conftest.tmp" "conftest.in"
6168 cp "conftest.in" "conftest.nl"
6169 $as_echo '' >> "conftest.nl"
6170 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6171 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6172 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6173 if test $ac_count -gt ${ac_path_SED_max-0}; then
6174 # Best one so far, save it but keep looking for a better one
6175 ac_cv_path_SED
="$ac_path_SED"
6176 ac_path_SED_max
=$ac_count
6178 # 10*(2^10) chars as input seems more than enough
6179 test $ac_count -gt 10 && break
6181 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6184 $ac_path_SED_found && break 3
6189 if test -z "$ac_cv_path_SED"; then
6190 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6198 $as_echo "$ac_cv_path_SED" >&6; }
6199 SED
="$ac_cv_path_SED"
6203 if test "X$prefix" = "XNONE"; then
6204 acl_final_prefix
="$ac_default_prefix"
6206 acl_final_prefix
="$prefix"
6208 if test "X$exec_prefix" = "XNONE"; then
6209 acl_final_exec_prefix
='${prefix}'
6211 acl_final_exec_prefix
="$exec_prefix"
6213 acl_save_prefix
="$prefix"
6214 prefix
="$acl_final_prefix"
6215 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6216 prefix
="$acl_save_prefix"
6219 # Check whether --with-gnu-ld was given.
6220 if test "${with_gnu_ld+set}" = set; then :
6221 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6226 # Prepare PATH_SEPARATOR.
6227 # The user is always right.
6228 if test "${PATH_SEPARATOR+set}" != set; then
6229 echo "#! /bin/sh" >conf$$.sh
6230 echo "exit 0" >>conf$$.sh
6232 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6240 if test "$GCC" = yes; then
6241 # Check if gcc -print-prog-name=ld gives a path.
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6243 $as_echo_n "checking for ld used by GCC... " >&6; }
6246 # gcc leaves a trailing carriage return which upsets mingw
6247 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6249 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6252 # Accept absolute paths.
6253 [\\/]* |
[A-Za-z
]:[\\/]*)
6254 re_direlt
='/[^/][^/]*/\.\./'
6255 # Canonicalize the path of ld
6256 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6257 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6258 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6260 test -z "$LD" && LD
="$ac_prog"
6263 # If it fails, then pretend we aren't using GCC.
6267 # If it is relative, then search for the first ld in PATH.
6271 elif test "$with_gnu_ld" = yes; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6273 $as_echo_n "checking for GNU ld... " >&6; }
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6276 $as_echo_n "checking for non-GNU ld... " >&6; }
6278 if ${acl_cv_path_LD+:} false
; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -z "$LD"; then
6282 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6283 for ac_dir
in $PATH; do
6284 test -z "$ac_dir" && ac_dir
=.
6285 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6286 acl_cv_path_LD
="$ac_dir/$ac_prog"
6287 # Check to see if the program is GNU ld. I'd rather use --version,
6288 # but apparently some GNU ld's only accept -v.
6289 # Break only if it was the GNU/non-GNU ld that we prefer.
6290 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6291 test "$with_gnu_ld" != no
&& break
6293 test "$with_gnu_ld" != yes && break
6299 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6303 LD
="$acl_cv_path_LD"
6304 if test -n "$LD"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6306 $as_echo "$LD" >&6; }
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6311 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6313 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6314 if ${acl_cv_prog_gnu_ld+:} false
; then :
6315 $as_echo_n "(cached) " >&6
6317 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6318 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6319 acl_cv_prog_gnu_ld
=yes
6321 acl_cv_prog_gnu_ld
=no
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6325 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6326 with_gnu_ld
=$acl_cv_prog_gnu_ld
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6331 $as_echo_n "checking for shared library run path origin... " >&6; }
6332 if ${acl_cv_rpath+:} false
; then :
6333 $as_echo_n "(cached) " >&6
6336 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6337 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6344 $as_echo "$acl_cv_rpath" >&6; }
6346 libext
="$acl_cv_libext"
6347 shlibext
="$acl_cv_shlibext"
6348 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6349 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6350 hardcode_direct
="$acl_cv_hardcode_direct"
6351 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6352 # Check whether --enable-rpath was given.
6353 if test "${enable_rpath+set}" = set; then :
6354 enableval
=$enable_rpath; :
6361 # Set the 'development' global.
6362 .
$srcdir/..
/bfd
/development.sh
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6365 $as_echo_n "checking for ANSI C header files... " >&6; }
6366 if ${ac_cv_header_stdc+:} false
; then :
6367 $as_echo_n "(cached) " >&6
6369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6384 if ac_fn_c_try_compile
"$LINENO"; then :
6385 ac_cv_header_stdc
=yes
6387 ac_cv_header_stdc
=no
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6391 if test $ac_cv_header_stdc = yes; then
6392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6399 $EGREP "memchr" >/dev
/null
2>&1; then :
6402 ac_cv_header_stdc
=no
6408 if test $ac_cv_header_stdc = yes; then
6409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416 $EGREP "free" >/dev
/null
2>&1; then :
6419 ac_cv_header_stdc
=no
6425 if test $ac_cv_header_stdc = yes; then
6426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6427 if test "$cross_compiling" = yes; then :
6430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6434 #if ((' ' & 0x0FF) == 0x020)
6435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6438 # define ISLOWER(c) \
6439 (('a' <= (c) && (c) <= 'i') \
6440 || ('j' <= (c) && (c) <= 'r') \
6441 || ('s' <= (c) && (c) <= 'z'))
6442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6450 for (i = 0; i < 256; i++)
6451 if (XOR (islower (i), ISLOWER (i))
6452 || toupper (i) != TOUPPER (i))
6457 if ac_fn_c_try_run
"$LINENO"; then :
6460 ac_cv_header_stdc
=no
6462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6469 $as_echo "$ac_cv_header_stdc" >&6; }
6470 if test $ac_cv_header_stdc = yes; then
6472 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6476 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6477 # for constant arguments. Useless!
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6479 $as_echo_n "checking for working alloca.h... " >&6; }
6480 if ${ac_cv_working_alloca_h+:} false
; then :
6481 $as_echo_n "(cached) " >&6
6483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6489 char *p = (char *) alloca (2 * sizeof (int));
6495 if ac_fn_c_try_link
"$LINENO"; then :
6496 ac_cv_working_alloca_h
=yes
6498 ac_cv_working_alloca_h
=no
6500 rm -f core conftest.err conftest.
$ac_objext \
6501 conftest
$ac_exeext conftest.
$ac_ext
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6504 $as_echo "$ac_cv_working_alloca_h" >&6; }
6505 if test $ac_cv_working_alloca_h = yes; then
6507 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6512 $as_echo_n "checking for alloca... " >&6; }
6513 if ${ac_cv_func_alloca_works+:} false
; then :
6514 $as_echo_n "(cached) " >&6
6516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6519 # define alloca __builtin_alloca
6522 # include <malloc.h>
6523 # define alloca _alloca
6525 # ifdef HAVE_ALLOCA_H
6526 # include <alloca.h>
6531 # ifndef alloca /* predefined by HP cc +Olibcalls */
6532 void *alloca (size_t);
6542 char *p = (char *) alloca (1);
6548 if ac_fn_c_try_link
"$LINENO"; then :
6549 ac_cv_func_alloca_works
=yes
6551 ac_cv_func_alloca_works
=no
6553 rm -f core conftest.err conftest.
$ac_objext \
6554 conftest
$ac_exeext conftest.
$ac_ext
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6557 $as_echo "$ac_cv_func_alloca_works" >&6; }
6559 if test $ac_cv_func_alloca_works = yes; then
6561 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6564 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6565 # that cause trouble. Some versions do not even contain alloca or
6566 # contain a buggy version. If you still want to use their alloca,
6567 # use ar to extract alloca.o from them instead of compiling alloca.c.
6569 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6571 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6575 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6576 if ${ac_cv_os_cray+:} false
; then :
6577 $as_echo_n "(cached) " >&6
6579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #if defined CRAY && ! defined CRAY2
6588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6589 $EGREP "webecray" >/dev
/null
2>&1; then :
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6598 $as_echo "$ac_cv_os_cray" >&6; }
6599 if test $ac_cv_os_cray = yes; then
6600 for ac_func
in _getb67 GETB67 getb67
; do
6601 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6602 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6603 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6605 cat >>confdefs.h
<<_ACEOF
6606 #define CRAY_STACKSEG_END $ac_func
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6616 $as_echo_n "checking stack direction for C alloca... " >&6; }
6617 if ${ac_cv_c_stack_direction+:} false
; then :
6618 $as_echo_n "(cached) " >&6
6620 if test "$cross_compiling" = yes; then :
6621 ac_cv_c_stack_direction
=0
6623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 $ac_includes_default
6627 find_stack_direction (int *addr, int depth)
6632 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6633 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6638 main (int argc, char **argv)
6640 return find_stack_direction (0, argc + !argv + 20) < 0;
6643 if ac_fn_c_try_run
"$LINENO"; then :
6644 ac_cv_c_stack_direction
=1
6646 ac_cv_c_stack_direction
=-1
6648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6654 $as_echo "$ac_cv_c_stack_direction" >&6; }
6655 cat >>confdefs.h
<<_ACEOF
6656 #define STACK_DIRECTION $ac_cv_c_stack_direction
6667 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6669 WIN32APILIBS
="-lws2_32"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6675 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6676 if ${am_cv_langinfo_codeset+:} false
; then :
6677 $as_echo_n "(cached) " >&6
6679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #include <langinfo.h>
6685 char* cs = nl_langinfo(CODESET);
6690 if ac_fn_c_try_link
"$LINENO"; then :
6691 am_cv_langinfo_codeset
=yes
6693 am_cv_langinfo_codeset
=no
6695 rm -f core conftest.err conftest.
$ac_objext \
6696 conftest
$ac_exeext conftest.
$ac_ext
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6700 $as_echo "$am_cv_langinfo_codeset" >&6; }
6701 if test $am_cv_langinfo_codeset = yes; then
6703 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6708 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
6710 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6711 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6712 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6713 cat >>confdefs.h
<<_ACEOF
6714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6723 for ac_func
in getpagesize
6725 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6726 if test "x$ac_cv_func_getpagesize" = xyes
; then :
6727 cat >>confdefs.h
<<_ACEOF
6728 #define HAVE_GETPAGESIZE 1
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6735 $as_echo_n "checking for working mmap... " >&6; }
6736 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
6737 $as_echo_n "(cached) " >&6
6739 if test "$cross_compiling" = yes; then :
6740 ac_cv_func_mmap_fixed_mapped
=no
6742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 /* malloc might have been renamed as rpl_malloc. */
6748 /* Thanks to Mike Haertel and Jim Avera for this test.
6749 Here is a matrix of mmap possibilities:
6750 mmap private not fixed
6751 mmap private fixed at somewhere currently unmapped
6752 mmap private fixed at somewhere already mapped
6753 mmap shared not fixed
6754 mmap shared fixed at somewhere currently unmapped
6755 mmap shared fixed at somewhere already mapped
6756 For private mappings, we should verify that changes cannot be read()
6757 back from the file, nor mmap's back from the file at a different
6758 address. (There have been systems where private was not correctly
6759 implemented like the infamous i386 svr4.0, and systems where the
6760 VM page cache was not coherent with the file system buffer cache
6761 like early versions of FreeBSD and possibly contemporary NetBSD.)
6762 For shared mappings, we should conversely verify that changes get
6763 propagated back to all the places they're supposed to be.
6765 Grep wants private fixed already mapped.
6766 The main things grep needs to know about mmap are:
6767 * does it exist and is it safe to write into the mmap'd area
6768 * how to use it (BSD variants) */
6771 #include <sys/mman.h>
6773 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6777 /* This mess was copied from the GNU getpagesize.h. */
6778 #ifndef HAVE_GETPAGESIZE
6779 # ifdef _SC_PAGESIZE
6780 # define getpagesize() sysconf(_SC_PAGESIZE)
6781 # else /* no _SC_PAGESIZE */
6782 # ifdef HAVE_SYS_PARAM_H
6783 # include <sys/param.h>
6784 # ifdef EXEC_PAGESIZE
6785 # define getpagesize() EXEC_PAGESIZE
6786 # else /* no EXEC_PAGESIZE */
6788 # define getpagesize() NBPG * CLSIZE
6791 # endif /* no CLSIZE */
6792 # else /* no NBPG */
6794 # define getpagesize() NBPC
6795 # else /* no NBPC */
6797 # define getpagesize() PAGESIZE
6798 # endif /* PAGESIZE */
6799 # endif /* no NBPC */
6800 # endif /* no NBPG */
6801 # endif /* no EXEC_PAGESIZE */
6802 # else /* no HAVE_SYS_PARAM_H */
6803 # define getpagesize() 8192 /* punt totally */
6804 # endif /* no HAVE_SYS_PARAM_H */
6805 # endif /* no _SC_PAGESIZE */
6807 #endif /* no HAVE_GETPAGESIZE */
6812 char *data, *data2, *data3;
6817 pagesize = getpagesize ();
6819 /* First, make a file with some known garbage in it. */
6820 data = (char *) malloc (pagesize);
6823 for (i = 0; i < pagesize; ++i)
6824 *(data + i) = rand ();
6826 fd = creat ("conftest.mmap", 0600);
6829 if (write (fd, data, pagesize) != pagesize)
6833 /* Next, check that the tail of a page is zero-filled. File must have
6834 non-zero length, otherwise we risk SIGBUS for entire page. */
6835 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6839 if (write (fd2, cdata2, 1) != 1)
6841 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6842 if (data2 == MAP_FAILED)
6844 for (i = 0; i < pagesize; ++i)
6848 if (munmap (data2, pagesize))
6851 /* Next, try to mmap the file at a fixed address which already has
6852 something else allocated at it. If we can, also make sure that
6853 we see the same garbage. */
6854 fd = open ("conftest.mmap", O_RDWR);
6857 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6858 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6860 for (i = 0; i < pagesize; ++i)
6861 if (*(data + i) != *(data2 + i))
6864 /* Finally, make sure that changes to the mapped area do not
6865 percolate back to the file as seen by read(). (This is a bug on
6866 some variants of i386 svr4.0.) */
6867 for (i = 0; i < pagesize; ++i)
6868 *(data2 + i) = *(data2 + i) + 1;
6869 data3 = (char *) malloc (pagesize);
6872 if (read (fd, data3, pagesize) != pagesize)
6874 for (i = 0; i < pagesize; ++i)
6875 if (*(data + i) != *(data3 + i))
6881 if ac_fn_c_try_run
"$LINENO"; then :
6882 ac_cv_func_mmap_fixed_mapped
=yes
6884 ac_cv_func_mmap_fixed_mapped
=no
6886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6892 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6893 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6895 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6898 rm -f conftest.mmap conftest.txt
6900 for ac_header
in vfork.h
6902 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6903 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6904 cat >>confdefs.h
<<_ACEOF
6905 #define HAVE_VFORK_H 1
6912 for ac_func
in fork vfork
6914 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6915 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6916 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6917 cat >>confdefs.h
<<_ACEOF
6918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6924 if test "x$ac_cv_func_fork" = xyes
; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6926 $as_echo_n "checking for working fork... " >&6; }
6927 if ${ac_cv_func_fork_works+:} false
; then :
6928 $as_echo_n "(cached) " >&6
6930 if test "$cross_compiling" = yes; then :
6931 ac_cv_func_fork_works
=cross
6933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 $ac_includes_default
6940 /* By Ruediger Kuhlmann. */
6947 if ac_fn_c_try_run
"$LINENO"; then :
6948 ac_cv_func_fork_works
=yes
6950 ac_cv_func_fork_works
=no
6952 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6953 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6958 $as_echo "$ac_cv_func_fork_works" >&6; }
6961 ac_cv_func_fork_works
=$ac_cv_func_fork
6963 if test "x$ac_cv_func_fork_works" = xcross
; then
6965 *-*-amigaos* |
*-*-msdosdjgpp*)
6966 # Override, as these systems have only a dummy fork() stub
6967 ac_cv_func_fork_works
=no
6970 ac_cv_func_fork_works
=yes
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6974 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6976 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6977 if test "x$ac_cv_func_vfork" = xyes
; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6979 $as_echo_n "checking for working vfork... " >&6; }
6980 if ${ac_cv_func_vfork_works+:} false
; then :
6981 $as_echo_n "(cached) " >&6
6983 if test "$cross_compiling" = yes; then :
6984 ac_cv_func_vfork_works
=cross
6986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988 /* Thanks to Paul Eggert for this test. */
6989 $ac_includes_default
6990 #include <sys/wait.h>
6994 /* On some sparc systems, changes by the child to local and incoming
6995 argument registers are propagated back to the parent. The compiler
6996 is told about this with #include <vfork.h>, but some compilers
6997 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6998 static variable whose address is put into a register that is
6999 clobbered by the vfork. */
7002 sparc_address_test (int arg)
7004 sparc_address_test (arg) int arg;
7025 pid_t parent = getpid ();
7028 sparc_address_test (0);
7033 /* Here is another test for sparc vfork register problems. This
7034 test uses lots of local variables, at least as many local
7035 variables as main has allocated so far including compiler
7036 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7037 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7038 reuse the register of parent for one of the local variables,
7039 since it will think that parent can't possibly be used any more
7040 in this routine. Assigning to the local variable will thus
7041 munge parent in the parent process. */
7043 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7044 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7045 /* Convince the compiler that p..p7 are live; otherwise, it might
7046 use the same hardware register for all 8 local variables. */
7047 if (p != p1 || p != p2 || p != p3 || p != p4
7048 || p != p5 || p != p6 || p != p7)
7051 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7052 from child file descriptors. If the child closes a descriptor
7053 before it execs or exits, this munges the parent's descriptor
7054 as well. Test for this by closing stdout in the child. */
7055 _exit(close(fileno(stdout)) != 0);
7060 while (wait(&status) != child)
7063 /* Was there some problem with vforking? */
7066 /* Did the child fail? (This shouldn't happen.) */
7069 /* Did the vfork/compiler bug occur? */
7070 || parent != getpid()
7072 /* Did the file descriptor bug occur? */
7073 || fstat(fileno(stdout), &st) != 0
7078 if ac_fn_c_try_run
"$LINENO"; then :
7079 ac_cv_func_vfork_works
=yes
7081 ac_cv_func_vfork_works
=no
7083 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7084 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7089 $as_echo "$ac_cv_func_vfork_works" >&6; }
7092 if test "x$ac_cv_func_fork_works" = xcross
; then
7093 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7095 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7098 if test "x$ac_cv_func_vfork_works" = xyes
; then
7100 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7104 $as_echo "#define vfork fork" >>confdefs.h
7107 if test "x$ac_cv_func_fork_works" = xyes
; then
7109 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7113 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
7114 ptrace64 sbrk setns sigaltstack sigprocmask \
7115 setpgid setpgrp getrusage getauxval
7117 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7118 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7119 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7120 cat >>confdefs.h
<<_ACEOF
7121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7128 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7130 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
7136 cat >>confdefs.h
<<_ACEOF
7137 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7141 if test "$cross_compiling" = yes; then :
7142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 #include <sys/personality.h>
7149 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7150 # define ADDR_NO_RANDOMIZE 0x0040000
7152 /* Test the flag could be set and stays set. */
7153 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7154 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7160 if ac_fn_c_try_link
"$LINENO"; then :
7161 have_personality
=true
7163 have_personality
=false
7165 rm -f core conftest.err conftest.
$ac_objext \
7166 conftest
$ac_exeext conftest.
$ac_ext
7168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 #include <sys/personality.h>
7175 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7176 # define ADDR_NO_RANDOMIZE 0x0040000
7178 /* Test the flag could be set and stays set. */
7179 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7180 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7186 if ac_fn_c_try_run
"$LINENO"; then :
7187 have_personality
=true
7189 have_personality
=false
7191 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7192 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7195 if $have_personality
7198 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7202 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7203 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7209 cat >>confdefs.h
<<_ACEOF
7210 #define HAVE_DECL_STRSTR $ac_have_decl
7214 # ----------------------- #
7215 # Checks for structures. #
7216 # ----------------------- #
7218 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7219 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7221 cat >>confdefs.h
<<_ACEOF
7222 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7227 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7228 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7230 cat >>confdefs.h
<<_ACEOF
7231 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7239 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7240 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7241 $as_echo_n "(cached) " >&6
7243 ac_func_search_save_LIBS
=$LIBS
7244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7247 /* Override any GCC internal prototype to avoid an error.
7248 Use char because int might match the return type of a GCC
7249 builtin and then its argument prototype would still apply. */
7253 char kinfo_getfile ();
7257 return kinfo_getfile ();
7262 for ac_lib
in '' util util-freebsd
; do
7263 if test -z "$ac_lib"; then
7264 ac_res
="none required"
7267 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7269 if ac_fn_c_try_link
"$LINENO"; then :
7270 ac_cv_search_kinfo_getfile
=$ac_res
7272 rm -f core conftest.err conftest.
$ac_objext \
7274 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7278 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7281 ac_cv_search_kinfo_getfile
=no
7284 LIBS
=$ac_func_search_save_LIBS
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7287 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7288 ac_res
=$ac_cv_search_kinfo_getfile
7289 if test "$ac_res" != no
; then :
7290 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7292 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7297 # Check for std::thread. This does not work on some platforms, like
7300 ac_cpp
='$CXXCPP $CPPFLAGS'
7301 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7310 ac_cpp
='$CPP $CPPFLAGS'
7311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7317 # We used to check for pthread.h first, but this fails if pthread.h
7318 # requires special compiler flags (e.g. on Tru64 or Sequent).
7319 # It gets checked for in the link test anyway.
7321 # First of all, check if the user has set any of the PTHREAD_LIBS,
7322 # etcetera environment variables, and if threads linking works using
7324 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7325 ax_pthread_save_CC
="$CC"
7326 ax_pthread_save_CFLAGS
="$CFLAGS"
7327 ax_pthread_save_LIBS
="$LIBS"
7328 if test "x$PTHREAD_CC" != "x"; then :
7331 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7332 LIBS
="$PTHREAD_LIBS $LIBS"
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7334 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7338 /* Override any GCC internal prototype to avoid an error.
7339 Use char because int might match the return type of a GCC
7340 builtin and then its argument prototype would still apply. */
7344 char pthread_join ();
7348 return pthread_join ();
7353 if ac_fn_c_try_link
"$LINENO"; then :
7356 rm -f core conftest.err conftest.
$ac_objext \
7357 conftest
$ac_exeext conftest.
$ac_ext
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7359 $as_echo "$ax_pthread_ok" >&6; }
7360 if test "x$ax_pthread_ok" = "xno"; then
7364 CC
="$ax_pthread_save_CC"
7365 CFLAGS
="$ax_pthread_save_CFLAGS"
7366 LIBS
="$ax_pthread_save_LIBS"
7369 # We must check for the threads library under a number of different
7370 # names; the ordering is very important because some systems
7371 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7372 # libraries is broken (non-POSIX).
7374 # Create a list of thread flags to try. Items starting with a "-" are
7375 # C compiler flags, and other items are library names, except for "none"
7376 # which indicates that we try without any flags at all, and "pthread-config"
7377 # which is a program returning the flags for the Pth emulation library.
7379 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7381 # The ordering *is* (sometimes) important. Some notes on the
7382 # individual items follow:
7384 # pthreads: AIX (must check this before -lpthread)
7385 # none: in case threads are in libc; should be tried before -Kthread and
7386 # other compiler flags to prevent continual compiler warnings
7387 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7388 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7389 # (Note: HP C rejects this with "bad form for `-t' option")
7390 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7391 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7392 # doesn't hurt to check since this sometimes defines pthreads and
7393 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7394 # is present but should not be used directly; and before -mthreads,
7395 # because the compiler interprets this as "-mt" + "-hreads")
7396 # -mthreads: Mingw32/gcc, Lynx/gcc
7397 # pthread: Linux, etcetera
7398 # --thread-safe: KAI C++
7399 # pthread-config: use pthread-config program (for GNU Pth library)
7405 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7406 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7408 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7413 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7414 # multi-threading and also sets -lpthread."
7416 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7421 # IBM z/OS requires a feature-test macro to be defined in order to
7422 # enable POSIX threads at all, so give the user a hint if this is
7423 # not set. (We don't define these ourselves, as they can affect
7424 # other portions of the system API in unpredictable ways.)
7426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7429 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7430 AX_PTHREAD_ZOS_MISSING
7434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7435 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7437 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7445 # On Solaris (at least, for some versions), libc contains stubbed
7446 # (non-functional) versions of the pthreads routines, so link-based
7447 # tests will erroneously succeed. (N.B.: The stubs are missing
7448 # pthread_cleanup_push, or rather a function called by this macro,
7449 # so we could check for that, but who knows whether they'll stub
7450 # that too in a future libc.) So we'll check first for the
7451 # standard Solaris way of linking pthreads (-mt -lpthread).
7453 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7457 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7459 if test "x$GCC" = "xyes"; then :
7460 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7463 # The presence of a feature test macro requesting re-entrant function
7464 # definitions is, on some systems, a strong hint that pthreads support is
7468 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7469 ax_pthread_check_macro
="_REENTRANT"
7473 ax_pthread_check_macro
="_THREAD_SAFE"
7477 ax_pthread_check_macro
="--"
7480 if test "x$ax_pthread_check_macro" = "x--"; then :
7481 ax_pthread_check_cond
=0
7483 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7486 # Are we compiling with Clang?
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7489 $as_echo_n "checking whether $CC is Clang... " >&6; }
7490 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7491 $as_echo_n "(cached) " >&6
7493 ax_cv_PTHREAD_CLANG
=no
7494 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7495 if test "x$GCC" = "xyes"; then
7496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7499 # if defined(__clang__) && defined(__llvm__)
7500 AX_PTHREAD_CC_IS_CLANG
7504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7505 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
7506 ax_cv_PTHREAD_CLANG
=yes
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7514 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7515 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
7517 ax_pthread_clang_warning
=no
7519 # Clang needs special handling, because older versions handle the -pthread
7520 # option in a rather... idiosyncratic way
7522 if test "x$ax_pthread_clang" = "xyes"; then
7524 # Clang takes -pthread; it has never supported any other flag
7526 # (Note 1: This will need to be revisited if a system that Clang
7527 # supports has POSIX threads in a separate library. This tends not
7528 # to be the way of modern systems, but it's conceivable.)
7530 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7531 # to get POSIX threads support; the API is always present and
7532 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7533 # -pthread does define _REENTRANT, and while the Darwin headers
7534 # ignore this macro, third-party headers might not.)
7536 PTHREAD_CFLAGS
="-pthread"
7541 # However, older versions of Clang make a point of warning the user
7542 # that, in an invocation where only linking and no compilation is
7543 # taking place, the -pthread option has no effect ("argument unused
7544 # during compilation"). They expect -pthread to be passed in only
7545 # when source code is being compiled.
7547 # Problem is, this is at odds with the way Automake and most other
7548 # C build frameworks function, which is that the same flags used in
7549 # compilation (CFLAGS) are also used in linking. Many systems
7550 # supported by AX_PTHREAD require exactly this for POSIX threads
7551 # support, and in fact it is often not straightforward to specify a
7552 # flag that is used only in the compilation phase and not in
7553 # linking. Such a scenario is extremely rare in practice.
7555 # Even though use of the -pthread flag in linking would only print
7556 # a warning, this can be a nuisance for well-run software projects
7557 # that build with -Werror. So if the active version of Clang has
7558 # this misfeature, we search for an option to squash it.
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7561 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7562 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
7563 $as_echo_n "(cached) " >&6
7565 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
7566 # Create an alternate version of $ac_link that compiles and
7567 # links in two steps (.c -> .o, .o -> exe) instead of one
7568 # (.c -> exe), because the warning occurs only in the second
7570 ax_pthread_save_ac_link
="$ac_link"
7571 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7572 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7573 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7574 ax_pthread_save_CFLAGS
="$CFLAGS"
7575 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
7576 if test "x$ax_pthread_try" = "xunknown"; then :
7579 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7580 ac_link
="$ax_pthread_save_ac_link"
7581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 int main(void){return 0;}
7585 if ac_fn_c_try_link
"$LINENO"; then :
7586 ac_link
="$ax_pthread_2step_ac_link"
7587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7589 int main(void){return 0;}
7591 if ac_fn_c_try_link
"$LINENO"; then :
7594 rm -f core conftest.err conftest.
$ac_objext \
7595 conftest
$ac_exeext conftest.
$ac_ext
7598 rm -f core conftest.err conftest.
$ac_objext \
7599 conftest
$ac_exeext conftest.
$ac_ext
7601 ac_link
="$ax_pthread_save_ac_link"
7602 CFLAGS
="$ax_pthread_save_CFLAGS"
7603 if test "x$ax_pthread_try" = "x"; then :
7606 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7610 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7612 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7614 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7617 fi # $ax_pthread_clang = yes
7619 if test "x$ax_pthread_ok" = "xno"; then
7620 for ax_pthread_try_flag
in $ax_pthread_flags; do
7622 case $ax_pthread_try_flag in
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7625 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
7630 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
7631 PTHREAD_CFLAGS
="-mt"
7632 PTHREAD_LIBS
="-lpthread"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7637 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7638 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
7642 # Extract the first word of "pthread-config", so it can be a program name with args.
7643 set dummy pthread-config
; ac_word
=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
7647 $as_echo_n "(cached) " >&6
7649 if test -n "$ax_pthread_config"; then
7650 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
7652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir
=.
7657 for ac_exec_ext
in '' $ac_executable_extensions; do
7658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_ax_pthread_config
="yes"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
7670 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
7671 if test -n "$ax_pthread_config"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7673 $as_echo "$ax_pthread_config" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7680 if test "x$ax_pthread_config" = "xno"; then :
7683 PTHREAD_CFLAGS
="`pthread-config --cflags`"
7684 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7689 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7690 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
7694 ax_pthread_save_CFLAGS
="$CFLAGS"
7695 ax_pthread_save_LIBS
="$LIBS"
7696 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7697 LIBS
="$PTHREAD_LIBS $LIBS"
7699 # Check for various functions. We must include pthread.h,
7700 # since some functions may be macros. (On the Sequent, we
7701 # need a special flag -Kthread to make this header compile.)
7702 # We check for pthread_join because it is in -lpthread on IRIX
7703 # while pthread_create is in libc. We check for pthread_attr_init
7704 # due to DEC craziness with -lpthreads. We check for
7705 # pthread_cleanup_push because it is one of the few pthread
7706 # functions on Solaris that doesn't have a non-functional libc stub.
7707 # We try pthread_create on general principles.
7709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <pthread.h>
7712 # if $ax_pthread_check_cond
7713 # error "$ax_pthread_check_macro must be defined"
7715 static void routine(void *a) { a = 0; }
7716 static void *start_routine(void *a) { return a; }
7720 pthread_t th; pthread_attr_t attr;
7721 pthread_create(&th, 0, start_routine, 0);
7722 pthread_join(th, 0);
7723 pthread_attr_init(&attr);
7724 pthread_cleanup_push(routine, 0);
7725 pthread_cleanup_pop(0) /* ; */
7730 if ac_fn_c_try_link
"$LINENO"; then :
7733 rm -f core conftest.err conftest.
$ac_objext \
7734 conftest
$ac_exeext conftest.
$ac_ext
7736 CFLAGS
="$ax_pthread_save_CFLAGS"
7737 LIBS
="$ax_pthread_save_LIBS"
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7740 $as_echo "$ax_pthread_ok" >&6; }
7741 if test "x$ax_pthread_ok" = "xyes"; then :
7750 # Various other checks:
7751 if test "x$ax_pthread_ok" = "xyes"; then
7752 ax_pthread_save_CFLAGS
="$CFLAGS"
7753 ax_pthread_save_LIBS
="$LIBS"
7754 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7755 LIBS
="$PTHREAD_LIBS $LIBS"
7757 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7759 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7760 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
7761 $as_echo_n "(cached) " >&6
7763 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
7764 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #include <pthread.h>
7771 int attr = $ax_pthread_attr; return attr /* ; */
7776 if ac_fn_c_try_link
"$LINENO"; then :
7777 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
7779 rm -f core conftest.err conftest.
$ac_objext \
7780 conftest
$ac_exeext conftest.
$ac_ext
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7785 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7786 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7787 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7788 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
7790 cat >>confdefs.h
<<_ACEOF
7791 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
7794 ax_pthread_joinable_attr_defined
=yes
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7799 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
7800 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
7801 $as_echo_n "(cached) " >&6
7803 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
7806 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7812 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7813 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7814 test "x$ax_pthread_special_flags_added" != "xyes"; then :
7815 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7816 ax_pthread_special_flags_added
=yes
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7820 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7821 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
7822 $as_echo_n "(cached) " >&6
7824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <pthread.h>
7830 int i = PTHREAD_PRIO_INHERIT;
7835 if ac_fn_c_try_link
"$LINENO"; then :
7836 ax_cv_PTHREAD_PRIO_INHERIT
=yes
7838 ax_cv_PTHREAD_PRIO_INHERIT
=no
7840 rm -f core conftest.err conftest.
$ac_objext \
7841 conftest
$ac_exeext conftest.
$ac_ext
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7845 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7846 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7847 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
7849 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7851 ax_pthread_prio_inherit_defined
=yes
7855 CFLAGS
="$ax_pthread_save_CFLAGS"
7856 LIBS
="$ax_pthread_save_LIBS"
7858 # More AIX lossage: compile with *_r variant
7859 if test "x$GCC" != "xyes"; then
7863 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
7864 #handle absolute path differently from PATH based program lookup
7867 if as_fn_executable_p
${CC}_r
; then :
7868 PTHREAD_CC
="${CC}_r"
7871 for ac_prog
in ${CC}_r
7873 # Extract the first word of "$ac_prog", so it can be a program name with args.
7874 set dummy
$ac_prog; ac_word
=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
7878 $as_echo_n "(cached) " >&6
7880 if test -n "$PTHREAD_CC"; then
7881 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
7883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7887 test -z "$as_dir" && as_dir
=.
7888 for ac_exec_ext
in '' $ac_executable_extensions; do
7889 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_prog_PTHREAD_CC
="$ac_prog"
7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
7901 if test -n "$PTHREAD_CC"; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7903 $as_echo "$PTHREAD_CC" >&6; }
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7910 test -n "$PTHREAD_CC" && break
7912 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7923 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7929 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7930 if test "x$ax_pthread_ok" = "xyes"; then
7938 ac_cpp
='$CXXCPP $CPPFLAGS'
7939 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7944 if test "$threads" = "yes"; then
7946 LIBS
="$PTHREAD_LIBS $LIBS"
7947 save_CXXFLAGS
="$CXXFLAGS"
7948 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
7950 $as_echo_n "checking for std::thread... " >&6; }
7951 if ${gdb_cv_cxx_std_thread+:} false
; then :
7952 $as_echo_n "(cached) " >&6
7954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7961 std::thread t(callback);
7966 if ac_fn_cxx_try_compile
"$LINENO"; then :
7967 gdb_cv_cxx_std_thread
=yes
7969 gdb_cv_cxx_std_thread
=no
7971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
7974 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
7976 # This check must be here, while LIBS includes any necessary
7977 # threading library.
7978 for ac_func
in pthread_sigmask pthread_setname_np
7980 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7981 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7982 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7983 cat >>confdefs.h
<<_ACEOF
7984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7992 CXXFLAGS
="$save_CXXFLAGS"
7994 if test "$gdb_cv_cxx_std_thread" = "yes"; then
7996 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
8000 ac_cpp
='$CPP $CPPFLAGS'
8001 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
8007 $as_echo_n "checking for sigsetjmp... " >&6; }
8008 if ${gdb_cv_func_sigsetjmp+:} false
; then :
8009 $as_echo_n "(cached) " >&6
8011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8019 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
8024 if ac_fn_c_try_compile
"$LINENO"; then :
8025 gdb_cv_func_sigsetjmp
=yes
8027 gdb_cv_func_sigsetjmp
=no
8029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8032 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8033 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8035 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8040 # Check whether --with-intel_pt was given.
8041 if test "${with_intel_pt+set}" = set; then :
8042 withval
=$with_intel_pt;
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
8048 $as_echo_n "checking whether to use intel pt... " >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
8050 $as_echo "$with_intel_pt" >&6; }
8052 if test "${with_intel_pt}" = no
; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
8054 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
8057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8060 #include <linux/perf_event.h>
8061 #ifndef PERF_ATTR_SIZE_VER5
8066 if ac_fn_c_try_cpp
"$LINENO"; then :
8071 rm -f conftest.err conftest.i conftest.
$ac_ext
8072 if test "$perf_event" != yes; then
8073 if test "$with_intel_pt" = yes; then
8074 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
8077 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
8091 acl_save_prefix
="$prefix"
8092 prefix
="$acl_final_prefix"
8093 acl_save_exec_prefix
="$exec_prefix"
8094 exec_prefix
="$acl_final_exec_prefix"
8096 eval additional_includedir
=\"$includedir\"
8097 eval additional_libdir
=\"$libdir\"
8099 exec_prefix
="$acl_save_exec_prefix"
8100 prefix
="$acl_save_prefix"
8103 # Check whether --with-libipt-prefix was given.
8104 if test "${with_libipt_prefix+set}" = set; then :
8105 withval
=$with_libipt_prefix;
8106 if test "X$withval" = "Xno"; then
8109 if test "X$withval" = "X"; then
8111 acl_save_prefix
="$prefix"
8112 prefix
="$acl_final_prefix"
8113 acl_save_exec_prefix
="$exec_prefix"
8114 exec_prefix
="$acl_final_exec_prefix"
8116 eval additional_includedir
=\"$includedir\"
8117 eval additional_libdir
=\"$libdir\"
8119 exec_prefix
="$acl_save_exec_prefix"
8120 prefix
="$acl_save_prefix"
8123 additional_includedir
="$withval/include"
8124 additional_libdir
="$withval/lib"
8131 # Check whether --with-libipt-type was given.
8132 if test "${with_libipt_type+set}" = set; then :
8133 withval
=$with_libipt_type; with_libipt_type
=$withval
8135 with_libipt_type
=auto
8138 lib_type
=`eval echo \$with_libipt_type`
8145 names_already_handled
=
8146 names_next_round
='ipt '
8147 while test -n "$names_next_round"; do
8148 names_this_round
="$names_next_round"
8150 for name
in $names_this_round; do
8152 for n
in $names_already_handled; do
8153 if test "$n" = "$name"; then
8158 if test -z "$already_handled"; then
8159 names_already_handled
="$names_already_handled $name"
8160 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8161 eval value
=\"\
$HAVE_LIB$uppername\"
8162 if test -n "$value"; then
8163 if test "$value" = yes; then
8164 eval value
=\"\
$LIB$uppername\"
8165 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
8166 eval value
=\"\
$LTLIB$uppername\"
8167 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
8176 if test $use_additional = yes; then
8177 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8178 found_dir
="$additional_libdir"
8179 found_so
="$additional_libdir/lib$name.$shlibext"
8180 if test -f "$additional_libdir/lib$name.la"; then
8181 found_la
="$additional_libdir/lib$name.la"
8183 elif test x
$lib_type != xshared
; then
8184 if test -f "$additional_libdir/lib$name.$libext"; then
8185 found_dir
="$additional_libdir"
8186 found_a
="$additional_libdir/lib$name.$libext"
8187 if test -f "$additional_libdir/lib$name.la"; then
8188 found_la
="$additional_libdir/lib$name.la"
8193 if test "X$found_dir" = "X"; then
8194 for x
in $LDFLAGS $LTLIBIPT; do
8196 acl_save_prefix
="$prefix"
8197 prefix
="$acl_final_prefix"
8198 acl_save_exec_prefix
="$exec_prefix"
8199 exec_prefix
="$acl_final_exec_prefix"
8201 exec_prefix
="$acl_save_exec_prefix"
8202 prefix
="$acl_save_prefix"
8206 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8207 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8209 found_so
="$dir/lib$name.$shlibext"
8210 if test -f "$dir/lib$name.la"; then
8211 found_la
="$dir/lib$name.la"
8213 elif test x
$lib_type != xshared
; then
8214 if test -f "$dir/lib$name.$libext"; then
8216 found_a
="$dir/lib$name.$libext"
8217 if test -f "$dir/lib$name.la"; then
8218 found_la
="$dir/lib$name.la"
8224 if test "X$found_dir" != "X"; then
8229 if test "X$found_dir" != "X"; then
8230 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
8231 if test "X$found_so" != "X"; then
8232 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8233 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8236 for x
in $ltrpathdirs; do
8237 if test "X$x" = "X$found_dir"; then
8242 if test -z "$haveit"; then
8243 ltrpathdirs
="$ltrpathdirs $found_dir"
8245 if test "$hardcode_direct" = yes; then
8246 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8248 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8249 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8251 for x
in $rpathdirs; do
8252 if test "X$x" = "X$found_dir"; then
8257 if test -z "$haveit"; then
8258 rpathdirs
="$rpathdirs $found_dir"
8262 for x
in $LDFLAGS $LIBIPT; do
8264 acl_save_prefix
="$prefix"
8265 prefix
="$acl_final_prefix"
8266 acl_save_exec_prefix
="$exec_prefix"
8267 exec_prefix
="$acl_final_exec_prefix"
8269 exec_prefix
="$acl_save_exec_prefix"
8270 prefix
="$acl_save_prefix"
8272 if test "X$x" = "X-L$found_dir"; then
8277 if test -z "$haveit"; then
8278 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
8280 if test "$hardcode_minus_L" != no
; then
8281 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8283 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8289 if test "X$found_a" != "X"; then
8290 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
8292 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
8295 additional_includedir
=
8296 case "$found_dir" in
8298 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8299 additional_includedir
="$basedir/include"
8302 if test "X$additional_includedir" != "X"; then
8303 if test "X$additional_includedir" != "X/usr/include"; then
8305 if test "X$additional_includedir" = "X/usr/local/include"; then
8306 if test -n "$GCC"; then
8308 linux
*) haveit
=yes;;
8312 if test -z "$haveit"; then
8313 for x
in $CPPFLAGS $INCIPT; do
8315 acl_save_prefix
="$prefix"
8316 prefix
="$acl_final_prefix"
8317 acl_save_exec_prefix
="$exec_prefix"
8318 exec_prefix
="$acl_final_exec_prefix"
8320 exec_prefix
="$acl_save_exec_prefix"
8321 prefix
="$acl_save_prefix"
8323 if test "X$x" = "X-I$additional_includedir"; then
8328 if test -z "$haveit"; then
8329 if test -d "$additional_includedir"; then
8330 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
8336 if test -n "$found_la"; then
8337 save_libdir
="$libdir"
8339 */* |
*\\*) .
"$found_la" ;;
8340 *) .
"./$found_la" ;;
8342 libdir
="$save_libdir"
8343 for dep
in $dependency_libs; do
8346 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8347 if test "X$additional_libdir" != "X/usr/lib"; then
8349 if test "X$additional_libdir" = "X/usr/local/lib"; then
8350 if test -n "$GCC"; then
8352 linux
*) haveit
=yes;;
8356 if test -z "$haveit"; then
8358 for x
in $LDFLAGS $LIBIPT; do
8360 acl_save_prefix
="$prefix"
8361 prefix
="$acl_final_prefix"
8362 acl_save_exec_prefix
="$exec_prefix"
8363 exec_prefix
="$acl_final_exec_prefix"
8365 exec_prefix
="$acl_save_exec_prefix"
8366 prefix
="$acl_save_prefix"
8368 if test "X$x" = "X-L$additional_libdir"; then
8373 if test -z "$haveit"; then
8374 if test -d "$additional_libdir"; then
8375 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
8379 for x
in $LDFLAGS $LTLIBIPT; do
8381 acl_save_prefix
="$prefix"
8382 prefix
="$acl_final_prefix"
8383 acl_save_exec_prefix
="$exec_prefix"
8384 exec_prefix
="$acl_final_exec_prefix"
8386 exec_prefix
="$acl_save_exec_prefix"
8387 prefix
="$acl_save_prefix"
8389 if test "X$x" = "X-L$additional_libdir"; then
8394 if test -z "$haveit"; then
8395 if test -d "$additional_libdir"; then
8396 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
8403 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8404 if test "$enable_rpath" != no
; then
8406 for x
in $rpathdirs; do
8407 if test "X$x" = "X$dir"; then
8412 if test -z "$haveit"; then
8413 rpathdirs
="$rpathdirs $dir"
8416 for x
in $ltrpathdirs; do
8417 if test "X$x" = "X$dir"; then
8422 if test -z "$haveit"; then
8423 ltrpathdirs
="$ltrpathdirs $dir"
8428 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8431 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8434 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
8435 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
8441 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8442 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8443 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
8445 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
8446 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
8453 if test "X$rpathdirs" != "X"; then
8454 if test -n "$hardcode_libdir_separator"; then
8456 for found_dir
in $rpathdirs; do
8457 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8459 acl_save_libdir
="$libdir"
8461 eval flag
=\"$hardcode_libdir_flag_spec\"
8462 libdir
="$acl_save_libdir"
8463 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8465 for found_dir
in $rpathdirs; do
8466 acl_save_libdir
="$libdir"
8468 eval flag
=\"$hardcode_libdir_flag_spec\"
8469 libdir
="$acl_save_libdir"
8470 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8474 if test "X$ltrpathdirs" != "X"; then
8475 for found_dir
in $ltrpathdirs; do
8476 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
8481 ac_save_CPPFLAGS
="$CPPFLAGS"
8483 for element
in $INCIPT; do
8485 for x
in $CPPFLAGS; do
8487 acl_save_prefix
="$prefix"
8488 prefix
="$acl_final_prefix"
8489 acl_save_exec_prefix
="$exec_prefix"
8490 exec_prefix
="$acl_final_exec_prefix"
8492 exec_prefix
="$acl_save_exec_prefix"
8493 prefix
="$acl_save_prefix"
8495 if test "X$x" = "X$element"; then
8500 if test -z "$haveit"; then
8501 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
8507 $as_echo_n "checking for libipt... " >&6; }
8508 if ${ac_cv_libipt+:} false
; then :
8509 $as_echo_n "(cached) " >&6
8512 ac_save_LIBS
="$LIBS"
8513 LIBS
="$LIBS $LIBIPT"
8514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #include "intel-pt.h"
8520 pt_insn_alloc_decoder (0);
8525 if ac_fn_c_try_link
"$LINENO"; then :
8530 rm -f core conftest.err conftest.
$ac_objext \
8531 conftest
$ac_exeext conftest.
$ac_ext
8532 LIBS
="$ac_save_LIBS"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
8536 $as_echo "$ac_cv_libipt" >&6; }
8537 if test "$ac_cv_libipt" = yes; then
8540 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
8543 $as_echo_n "checking how to link with libipt... " >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
8545 $as_echo "$LIBIPT" >&6; }
8548 CPPFLAGS
="$ac_save_CPPFLAGS"
8558 if test "$HAVE_LIBIPT" != yes; then
8559 if test "$with_intel_pt" = yes; then
8560 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
8563 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
8567 LIBS
="$LIBS $LIBIPT"
8568 for ac_func
in pt_insn_event
8570 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
8571 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
8572 cat >>confdefs.h
<<_ACEOF
8573 #define HAVE_PT_INSN_EVENT 1
8579 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
8581 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
8583 cat >>confdefs.h
<<_ACEOF
8584 #define HAVE_STRUCT_PT_INSN_ENABLED 1
8589 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
8591 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
8593 cat >>confdefs.h
<<_ACEOF
8594 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
8604 if test "$ac_cv_header_sys_procfs_h" = yes; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
8606 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
8607 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
8608 $as_echo_n "(cached) " >&6
8610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8614 /* Needed for new procfs interface on sparc-solaris. */
8615 #define _STRUCTURED_PROC 1
8616 #include <sys/procfs.h>
8625 if ac_fn_c_try_compile
"$LINENO"; then :
8626 bfd_cv_have_sys_procfs_type_gregset_t
=yes
8628 bfd_cv_have_sys_procfs_type_gregset_t
=no
8631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8634 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8636 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
8640 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
8643 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
8644 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
8645 $as_echo_n "(cached) " >&6
8647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8651 /* Needed for new procfs interface on sparc-solaris. */
8652 #define _STRUCTURED_PROC 1
8653 #include <sys/procfs.h>
8662 if ac_fn_c_try_compile
"$LINENO"; then :
8663 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
8665 bfd_cv_have_sys_procfs_type_fpregset_t
=no
8668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8671 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8673 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
8677 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8680 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8681 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8682 $as_echo_n "(cached) " >&6
8684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8688 /* Needed for new procfs interface on sparc-solaris. */
8689 #define _STRUCTURED_PROC 1
8690 #include <sys/procfs.h>
8699 if ac_fn_c_try_compile
"$LINENO"; then :
8700 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8702 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8710 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8714 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8717 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8718 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8719 $as_echo_n "(cached) " >&6
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8725 /* Needed for new procfs interface on sparc-solaris. */
8726 #define _STRUCTURED_PROC 1
8727 #include <sys/procfs.h>
8736 if ac_fn_c_try_compile
"$LINENO"; then :
8737 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8739 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8745 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8747 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8751 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
8754 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
8755 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
8756 $as_echo_n "(cached) " >&6
8758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8762 /* Needed for new procfs interface on sparc-solaris. */
8763 #define _STRUCTURED_PROC 1
8764 #include <sys/procfs.h>
8773 if ac_fn_c_try_compile
"$LINENO"; then :
8774 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8776 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8782 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8784 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
8788 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
8791 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
8792 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
8793 $as_echo_n "(cached) " >&6
8795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8799 /* Needed for new procfs interface on sparc-solaris. */
8800 #define _STRUCTURED_PROC 1
8801 #include <sys/procfs.h>
8810 if ac_fn_c_try_compile
"$LINENO"; then :
8811 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8813 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8819 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8821 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8825 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8828 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8829 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8830 $as_echo_n "(cached) " >&6
8832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8836 /* Needed for new procfs interface on sparc-solaris. */
8837 #define _STRUCTURED_PROC 1
8838 #include <sys/procfs.h>
8847 if ac_fn_c_try_compile
"$LINENO"; then :
8848 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8850 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8856 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8858 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8862 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8865 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8866 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8867 $as_echo_n "(cached) " >&6
8869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8873 /* Needed for new procfs interface on sparc-solaris. */
8874 #define _STRUCTURED_PROC 1
8875 #include <sys/procfs.h>
8884 if ac_fn_c_try_compile
"$LINENO"; then :
8885 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8887 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8893 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8895 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8899 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8905 # Check whether we will enable the inclusion of unit tests when
8908 # The default value of this option changes depending whether we're on
8909 # development mode (in which case it's "true") or not (in which case
8910 # it's "false"). The $development variable is set by the GDB_AC_COMMON
8911 # macro, which must therefore be used before GDB_AC_SELFTEST.
8913 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
8914 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
8917 # Check whether --enable-unit-tests was given.
8918 if test "${enable_unit_tests+set}" = set; then :
8919 enableval
=$enable_unit_tests; case "${enableval}" in
8920 yes) enable_unittests
=true
;;
8921 no
) enable_unittests
=false
;;
8922 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
8925 enable_unittests
=$development
8929 if $enable_unittests; then
8931 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
8934 srv_selftest_objs
="gdbsupport/selftest.o"
8939 case ${build_alias} in
8940 "") build_noncanonical
=${build} ;;
8941 *) build_noncanonical
=${build_alias} ;;
8944 case ${host_alias} in
8945 "") host_noncanonical
=${build_noncanonical} ;;
8946 *) host_noncanonical
=${host_alias} ;;
8949 case ${target_alias} in
8950 "") target_noncanonical
=${host_noncanonical} ;;
8951 *) target_noncanonical
=${target_alias} ;;
8959 # Dependency checking.
8960 rm -rf .tst
2>/dev
/null
8961 mkdir .tst
2>/dev
/null
8962 if test -d .tst
; then
8967 rmdir .tst
2>/dev
/null
8969 DEPDIR
="${am__leading_dot}deps"
8971 ac_config_commands
="$ac_config_commands depdir"
8975 # If we haven't got the data from the intl directory,
8976 # assume NLS is disabled.
8985 if test -f ..
/intl
/config.intl
; then
8986 . ..
/intl
/config.intl
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8989 $as_echo_n "checking whether NLS is requested... " >&6; }
8990 if test x
"$USE_NLS" != xyes
; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8995 $as_echo "yes" >&6; }
8997 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
9001 $as_echo_n "checking for catalogs to be installed... " >&6; }
9002 # Look for .po and .gmo files in the source directory.
9005 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9006 # If there aren't any .gmo files the shell will give us the
9007 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9009 case "$cat" in *\
**)
9012 # The quadruple backslash is collapsed to a double backslash
9013 # by the backticks, then collapsed again by the double quotes,
9014 # leaving us with one backslash in the sed expression (right
9015 # before the dot that mustn't act as a wildcard).
9016 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
9017 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
9018 # The user is allowed to set LINGUAS to a list of languages to
9019 # install catalogs for. If it's empty that means "all of them."
9020 if test "x$LINGUAS" = x
; then
9021 CATALOGS
="$CATALOGS $cat"
9022 XLINGUAS
="$XLINGUAS $lang"
9024 case "$LINGUAS" in *$lang*)
9025 CATALOGS
="$CATALOGS $cat"
9026 XLINGUAS
="$XLINGUAS $lang"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
9033 $as_echo "$LINGUAS" >&6; }
9046 # Create sub-directories for objects and dependencies.
9047 CONFIG_SRC_SUBDIR
="arch gdbsupport nat target"
9050 ac_config_commands
="$ac_config_commands gdbdepdir"
9053 depcc
="$CC" am_compiler_list
=
9055 am_depcomp
=$ac_aux_dir/depcomp
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9057 $as_echo_n "checking dependency style of $depcc... " >&6; }
9058 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
9059 $as_echo_n "(cached) " >&6
9061 if test -f "$am_depcomp"; then
9062 # We make a subdir and do the tests there. Otherwise we can end up
9063 # making bogus files that we don't know about and never remove. For
9064 # instance it was reported that on HP-UX the gcc test will end up
9065 # making a dummy file named `D' -- because `-MD' means `put the output
9068 # Copy depcomp to subdir because otherwise we won't find it if we're
9069 # using a relative directory.
9070 cp "$am_depcomp" conftest.dir
9072 # We will build objects and dependencies in a subdirectory because
9073 # it helps to detect inapplicable dependency modes. For instance
9074 # both Tru64's cc and ICC support -MD to output dependencies as a
9075 # side effect of compilation, but ICC will put the dependencies in
9076 # the current directory while Tru64 will put them in the object
9080 am_cv_CC_dependencies_compiler_type
=none
9081 if test "$am_compiler_list" = ""; then
9082 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9084 for depmode
in $am_compiler_list; do
9085 if test $depmode = none
; then break; fi
9087 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9088 # Setup a source with many dependencies, because some compilers
9089 # like to wrap large dependency lists on column 80 (with \), and
9090 # we should not choose a depcomp mode which is confused by this.
9092 # We need to recreate these files for each test, as the compiler may
9093 # overwrite some of them when testing with obscure command lines.
9094 # This happens at least with the AIX C compiler.
9096 for i
in 1 2 3 4 5 6; do
9097 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9098 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9099 # Solaris 8's {/usr,}/bin/sh.
9100 touch sub
/conftst
$i.h
9102 echo "include sub/conftest.Po" > confmf
9104 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9105 # mode. It turns out that the SunPro C++ compiler does not properly
9106 # handle `-M -o', and we need to detect this.
9107 depcmd
="depmode=$depmode \
9108 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9109 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9110 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9111 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9112 if env
$depcmd > conftest.err
2>&1 &&
9113 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9114 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9115 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9116 # icc doesn't choke on unknown options, it will just issue warnings
9117 # or remarks (even with -Werror). So we grep stderr for any message
9118 # that says an option was ignored or not supported.
9119 # When given -MP, icc 7.0 and 7.1 complain thusly:
9120 # icc: Command line warning: ignoring option '-M'; no argument required
9121 # The diagnosis changed in icc 8.0:
9122 # icc: Command line remark: option '-MP' not supported
9123 if (grep 'ignoring option' conftest.err ||
9124 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9125 am_cv_CC_dependencies_compiler_type
=$depmode
9126 $as_echo "$as_me:$LINENO: success" >&5
9130 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9131 sed -e 's/^/| /' < conftest.err
>&5
9137 am_cv_CC_dependencies_compiler_type
=none
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9142 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9143 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
9144 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9145 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
9150 for ac_header
in termios.h sys
/reg.h string.h sys
/procfs.h linux
/elf.h fcntl.h signal.h sys
/file.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h
9152 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9153 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9154 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9155 cat >>confdefs.h
<<_ACEOF
9156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9163 for ac_header
in vfork.h
9165 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9166 if test "x$ac_cv_header_vfork_h" = xyes
; then :
9167 cat >>confdefs.h
<<_ACEOF
9168 #define HAVE_VFORK_H 1
9175 for ac_func
in fork vfork
9177 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9178 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9179 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9180 cat >>confdefs.h
<<_ACEOF
9181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9187 if test "x$ac_cv_func_fork" = xyes
; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9189 $as_echo_n "checking for working fork... " >&6; }
9190 if ${ac_cv_func_fork_works+:} false
; then :
9191 $as_echo_n "(cached) " >&6
9193 if test "$cross_compiling" = yes; then :
9194 ac_cv_func_fork_works
=cross
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 $ac_includes_default
9203 /* By Ruediger Kuhlmann. */
9210 if ac_fn_c_try_run
"$LINENO"; then :
9211 ac_cv_func_fork_works
=yes
9213 ac_cv_func_fork_works
=no
9215 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9216 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9221 $as_echo "$ac_cv_func_fork_works" >&6; }
9224 ac_cv_func_fork_works
=$ac_cv_func_fork
9226 if test "x$ac_cv_func_fork_works" = xcross
; then
9228 *-*-amigaos* |
*-*-msdosdjgpp*)
9229 # Override, as these systems have only a dummy fork() stub
9230 ac_cv_func_fork_works
=no
9233 ac_cv_func_fork_works
=yes
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9237 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9239 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9240 if test "x$ac_cv_func_vfork" = xyes
; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9242 $as_echo_n "checking for working vfork... " >&6; }
9243 if ${ac_cv_func_vfork_works+:} false
; then :
9244 $as_echo_n "(cached) " >&6
9246 if test "$cross_compiling" = yes; then :
9247 ac_cv_func_vfork_works
=cross
9249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 /* Thanks to Paul Eggert for this test. */
9252 $ac_includes_default
9253 #include <sys/wait.h>
9257 /* On some sparc systems, changes by the child to local and incoming
9258 argument registers are propagated back to the parent. The compiler
9259 is told about this with #include <vfork.h>, but some compilers
9260 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9261 static variable whose address is put into a register that is
9262 clobbered by the vfork. */
9265 sparc_address_test (int arg)
9267 sparc_address_test (arg) int arg;
9288 pid_t parent = getpid ();
9291 sparc_address_test (0);
9296 /* Here is another test for sparc vfork register problems. This
9297 test uses lots of local variables, at least as many local
9298 variables as main has allocated so far including compiler
9299 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9300 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9301 reuse the register of parent for one of the local variables,
9302 since it will think that parent can't possibly be used any more
9303 in this routine. Assigning to the local variable will thus
9304 munge parent in the parent process. */
9306 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9307 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9308 /* Convince the compiler that p..p7 are live; otherwise, it might
9309 use the same hardware register for all 8 local variables. */
9310 if (p != p1 || p != p2 || p != p3 || p != p4
9311 || p != p5 || p != p6 || p != p7)
9314 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9315 from child file descriptors. If the child closes a descriptor
9316 before it execs or exits, this munges the parent's descriptor
9317 as well. Test for this by closing stdout in the child. */
9318 _exit(close(fileno(stdout)) != 0);
9323 while (wait(&status) != child)
9326 /* Was there some problem with vforking? */
9329 /* Did the child fail? (This shouldn't happen.) */
9332 /* Did the vfork/compiler bug occur? */
9333 || parent != getpid()
9335 /* Did the file descriptor bug occur? */
9336 || fstat(fileno(stdout), &st) != 0
9341 if ac_fn_c_try_run
"$LINENO"; then :
9342 ac_cv_func_vfork_works
=yes
9344 ac_cv_func_vfork_works
=no
9346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9352 $as_echo "$ac_cv_func_vfork_works" >&6; }
9355 if test "x$ac_cv_func_fork_works" = xcross
; then
9356 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9358 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9361 if test "x$ac_cv_func_vfork_works" = xyes
; then
9363 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9367 $as_echo "#define vfork fork" >>confdefs.h
9370 if test "x$ac_cv_func_fork_works" = xyes
; then
9372 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9376 for ac_func
in pread pwrite pread64
9378 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9379 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9380 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9381 cat >>confdefs.h
<<_ACEOF
9382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389 # Check the return and argument types of ptrace.
9392 for ac_header
in sys
/ptrace.h ptrace.h
9394 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9395 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9396 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9397 cat >>confdefs.h
<<_ACEOF
9398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9406 gdb_ptrace_headers
='
9407 #include <sys/types.h>
9408 #if HAVE_SYS_PTRACE_H
9409 # include <sys/ptrace.h>
9412 # include <unistd.h>
9415 # There is no point in checking if we don't have a prototype.
9416 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
9418 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
9424 cat >>confdefs.h
<<_ACEOF
9425 #define HAVE_DECL_PTRACE $ac_have_decl
9427 if test $ac_have_decl = 1; then :
9431 : ${gdb_cv_func_ptrace_ret='int'}
9432 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9436 # Check return type. Varargs (used on GNU/Linux) conflict with the
9437 # empty argument list, so check for that explicitly.
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
9439 $as_echo_n "checking return type of ptrace... " >&6; }
9440 if ${gdb_cv_func_ptrace_ret+:} false
; then :
9441 $as_echo_n "(cached) " >&6
9443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9449 extern long ptrace (enum __ptrace_request, ...);
9454 if ac_fn_c_try_compile
"$LINENO"; then :
9455 gdb_cv_func_ptrace_ret
='long'
9457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9463 extern int ptrace ();
9468 if ac_fn_c_try_compile
"$LINENO"; then :
9469 gdb_cv_func_ptrace_ret
='int'
9471 gdb_cv_func_ptrace_ret
='long'
9473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
9478 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
9480 cat >>confdefs.h
<<_ACEOF
9481 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
9484 # Check argument types.
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
9486 $as_echo_n "checking types of arguments for ptrace... " >&6; }
9487 if ${gdb_cv_func_ptrace_args+:} false
; then :
9488 $as_echo_n "(cached) " >&6
9491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9497 extern long ptrace (enum __ptrace_request, ...);
9502 if ac_fn_c_try_compile
"$LINENO"; then :
9503 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
9506 for gdb_arg1
in 'int' 'long'; do
9507 for gdb_arg2
in 'pid_t' 'int' 'long'; do
9508 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
9509 for gdb_arg4
in 'int' 'long' 'void *'; do
9510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9517 extern $gdb_cv_func_ptrace_ret
9518 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
9524 if ac_fn_c_try_compile
"$LINENO"; then :
9525 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
9528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9529 for gdb_arg5
in 'int *' 'int' 'long'; do
9530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9537 extern $gdb_cv_func_ptrace_ret
9538 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
9544 if ac_fn_c_try_compile
"$LINENO"; then :
9546 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
9549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9555 # Provide a safe default value.
9556 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
9562 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
9563 ac_save_IFS
=$IFS; IFS
=','
9564 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
9568 cat >>confdefs.h
<<_ACEOF
9569 #define PTRACE_TYPE_ARG1 $1
9573 cat >>confdefs.h
<<_ACEOF
9574 #define PTRACE_TYPE_ARG3 $3
9578 cat >>confdefs.h
<<_ACEOF
9579 #define PTRACE_TYPE_ARG4 $4
9582 if test -n "$5"; then
9584 cat >>confdefs.h
<<_ACEOF
9585 #define PTRACE_TYPE_ARG5 $5
9596 # Check whether --with-ust was given.
9597 if test "${with_ust+set}" = set; then :
9602 # Check whether --with-ust_include was given.
9603 if test "${with_ust_include+set}" = set; then :
9604 withval
=$with_ust_include;
9608 # Check whether --with-ust_lib was given.
9609 if test "${with_ust_lib+set}" = set; then :
9610 withval
=$with_ust_lib;
9624 ustlibs
="-L$with_ust/lib -lust"
9625 ustinc
="-I$with_ust/include "
9628 if test "x$with_ust_include" != x
; then
9629 ustinc
="-I$with_ust_include "
9631 if test "x$with_ust_lib" != x
; then
9632 ustlibs
="-L$with_ust_lib -lust"
9635 if test "x$with_ust" != "xno"; then
9636 saved_CFLAGS
="$CFLAGS"
9637 CFLAGS
="$CFLAGS $ustinc"
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
9639 $as_echo_n "checking for ust... " >&6; }
9640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9643 #define CONFIG_UST_GDB_INTEGRATION
9644 #include <ust/ust.h>
9654 if ac_fn_c_try_compile
"$LINENO"; then :
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9656 $as_echo "yes" >&6; };
9657 $as_echo "#define HAVE_UST 1" >>confdefs.h
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
9663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9664 CFLAGS
="$saved_CFLAGS"
9667 # Flags needed for UST
9672 # Check whether --enable-werror was given.
9673 if test "${enable_werror+set}" = set; then :
9674 enableval
=$enable_werror; case "${enableval}" in
9675 yes | y
) ERROR_ON_WARNING
="yes" ;;
9676 no | n
) ERROR_ON_WARNING
="no" ;;
9677 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9682 # Enable -Werror by default when using gcc. Turn it off for releases.
9683 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
9684 ERROR_ON_WARNING
=yes
9688 if test "${ERROR_ON_WARNING}" = yes ; then
9689 WERROR_CFLAGS
="-Werror"
9692 # The options we'll try to enable.
9693 build_warnings
="-Wall -Wpointer-arith \
9694 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
9695 -Wno-switch -Wno-char-subscripts \
9696 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
9697 -Wno-sign-compare -Wno-error=maybe-uninitialized \
9698 -Wno-mismatched-tags \
9699 -Wno-error=deprecated-register \
9700 -Wsuggest-override \
9701 -Wimplicit-fallthrough=3 \
9705 -Wdeprecated-copy-dtor \
9707 -Wmissing-declarations \
9708 -Wmissing-prototypes \
9709 -Wstrict-null-sentinel \
9714 # Enable -Wno-format by default when using gcc on mingw since many
9715 # GCC versions complain about %I64.
9716 build_warnings
="$build_warnings -Wno-format" ;;
9718 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
9719 # doesn't understand.
9720 build_warnings
="$build_warnings -Wno-unknown-pragmas"
9721 # Solaris 11 <unistd.h> marks vfork deprecated.
9722 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
9724 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
9725 # but there's a special case for this below.
9726 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
9729 # Check whether --enable-build-warnings was given.
9730 if test "${enable_build_warnings+set}" = set; then :
9731 enableval
=$enable_build_warnings; case "${enableval}" in
9733 no
) build_warnings
="-w";;
9734 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9735 build_warnings
="${build_warnings} ${t}";;
9736 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9737 build_warnings
="${t} ${build_warnings}";;
9738 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9740 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9741 echo "Setting compiler warning flags = $build_warnings" 6>&1
9744 # Check whether --enable-gdb-build-warnings was given.
9745 if test "${enable_gdb_build_warnings+set}" = set; then :
9746 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
9748 no
) build_warnings
="-w";;
9749 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9750 build_warnings
="${build_warnings} ${t}";;
9751 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9752 build_warnings
="${t} ${build_warnings}";;
9753 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9755 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9756 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9760 # The set of warnings supported by a C++ compiler is not the same as
9761 # of the C compiler.
9763 ac_cpp
='$CXXCPP $CPPFLAGS'
9764 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9765 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9766 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9770 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
9773 $as_echo_n "checking compiler warning flags... " >&6; }
9774 # Separate out the -Werror flag as some files just cannot be
9775 # compiled with it enabled.
9776 for w
in ${build_warnings}; do
9777 # GCC does not complain about -Wno-unknown-warning. Invert
9778 # and test -Wunknown-warning instead.
9781 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
9782 -Wformat-nonliteral)
9783 # gcc requires -Wformat before -Wformat-nonliteral
9784 # will work, so stick them together.
9793 -Werr*) WERROR_CFLAGS
=-Werror ;;
9795 # Check whether GCC accepts it.
9796 saved_CFLAGS
="$CFLAGS"
9797 CFLAGS
="$CFLAGS -Werror $wtest"
9798 saved_CXXFLAGS
="$CXXFLAGS"
9799 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
9800 if test "x$w" = "x-Wunused-variable"; then
9801 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
9802 # fixed in GCC 4.9. This test is derived from the gdb
9803 # source code that triggered this bug in GCC.
9804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 struct scoped_restore_base {};
9807 struct scoped_restore_tmpl : public scoped_restore_base {
9808 ~scoped_restore_tmpl() {}
9813 const scoped_restore_base &b = scoped_restore_tmpl();
9818 if ac_fn_cxx_try_compile
"$LINENO"; then :
9819 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9834 if ac_fn_cxx_try_compile
"$LINENO"; then :
9835 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9839 CFLAGS
="$saved_CFLAGS"
9840 CXXFLAGS
="$saved_CXXFLAGS"
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
9844 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
9850 ac_cpp='$CPP $CPPFLAGS'
9851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9859 for ac_func in dladdr
9861 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
9862 if test "x
$ac_cv_func_dladdr" = xyes; then :
9863 cat >>confdefs.h <<_ACEOF
9864 #define HAVE_DLADDR 1
9873 # Check for presence and size of long long.
9874 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
9875 if test "x
$ac_cv_type_long_long" = xyes; then :
9877 cat >>confdefs.h <<_ACEOF
9878 #define HAVE_LONG_LONG 1
9881 # The cast to long int works around a bug in the HP C Compiler
9882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9884 # This bug is HP SR number 8606223364.
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
9886 $as_echo_n "checking size of long long...
" >&6; }
9887 if ${ac_cv_sizeof_long_long+:} false; then :
9888 $as_echo_n "(cached
) " >&6
9890 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
9893 if test "$ac_cv_type_long_long" = yes; then
9894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
9895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9896 as_fn_error 77 "cannot compute sizeof (long long)
9897 See \`config.log' for more details
" "$LINENO" 5; }
9899 ac_cv_sizeof_long_long=0
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
9905 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9909 cat >>confdefs.h <<_ACEOF
9910 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9917 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
9918 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
9919 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
9925 cat >>confdefs.h <<_ACEOF
9926 #define HAVE_DECL_BASENAME $ac_have_decl
9928 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
9929 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
9935 cat >>confdefs.h <<_ACEOF
9936 #define HAVE_DECL_FFS $ac_have_decl
9938 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
9939 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
9945 cat >>confdefs.h <<_ACEOF
9946 #define HAVE_DECL_ASPRINTF $ac_have_decl
9948 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
9949 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_DECL_VASPRINTF $ac_have_decl
9958 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
9959 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_DECL_SNPRINTF $ac_have_decl
9968 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
9969 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
9975 cat >>confdefs.h <<_ACEOF
9976 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9979 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
9980 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
9986 cat >>confdefs.h <<_ACEOF
9987 #define HAVE_DECL_STRTOL $ac_have_decl
9989 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
9990 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
9996 cat >>confdefs.h <<_ACEOF
9997 #define HAVE_DECL_STRTOUL $ac_have_decl
9999 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
10000 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
10006 cat >>confdefs.h <<_ACEOF
10007 #define HAVE_DECL_STRTOLL $ac_have_decl
10009 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
10010 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_DECL_STRTOULL $ac_have_decl
10020 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
10021 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
10027 cat >>confdefs.h <<_ACEOF
10028 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10033 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
10034 if test "x
$ac_cv_have_decl_perror" = xyes; then :
10040 cat >>confdefs.h <<_ACEOF
10041 #define HAVE_DECL_PERROR $ac_have_decl
10043 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
10044 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
10050 cat >>confdefs.h <<_ACEOF
10051 #define HAVE_DECL_VASPRINTF $ac_have_decl
10053 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
10054 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10065 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10066 # Older amd64 Linux's don't have the fs_base and gs_base members of
10067 # `struct user_regs_struct'.
10068 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "fs_base
" "ac_cv_member_struct_user_regs_struct_fs_base
" "#include <sys/types.h>
10069 #include <sys/user.h>
10071 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10079 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "gs_base
" "ac_cv_member_struct_user_regs_struct_gs_base
" "#include <sys/types.h>
10080 #include <sys/user.h>
10082 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10093 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
10094 #include <sys/socket.h>
10097 if test "x
$ac_cv_type_socklen_t" = xyes; then :
10099 cat >>confdefs.h <<_ACEOF
10100 #define HAVE_SOCKLEN_T 1
10107 case "${target}" in
10109 # Starting with NDK version 9, <elf.h> actually includes definitions
10110 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
10111 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
10112 # leading to conflicts with the defintions from <linux/elf.h>.
10113 # This makes it impossible for us to include both <elf.h> and
10114 # <linux/elf.h>, which means that, in practice, we do not have
10115 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
10116 # Therefore, do not try to auto-detect availability, as it would
10117 # get it wrong on this platform.
10120 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
10123 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
10125 cat >>confdefs.h <<_ACEOF
10126 #define HAVE_ELF32_AUXV_T 1
10131 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
10134 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_ELF64_AUXV_T 1
10147 # Check whether --with-pkgversion was given.
10148 if test "${with_pkgversion+set}" = set; then :
10149 withval=$with_pkgversion; case "$withval" in
10150 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
10152 *) PKGVERSION="($withval) " ;;
10155 PKGVERSION="(GDB
) "
10163 # Check whether --with-bugurl was given.
10164 if test "${with_bugurl+set}" = set; then :
10165 withval=$with_bugurl; case "$withval" in
10166 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
10169 *) BUGURL="$withval"
10173 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
10183 REPORT_BUGS_TO="<$BUGURL>"
10184 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10191 cat >>confdefs.h <<_ACEOF
10192 #define PKGVERSION "$PKGVERSION"
10196 cat >>confdefs.h <<_ACEOF
10197 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
10201 # Check for various supplementary target information (beyond the
10202 # triplet) which might affect the choices in configure.srv.
10203 case "${target}" in
10204 i[34567]86-*-linux*)
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
10206 $as_echo_n "checking
if building
for x86-64...
" >&6; }
10207 if ${gdb_cv_i386_is_x86_64+:} false; then :
10208 $as_echo_n "(cached
) " >&6
10210 save_CPPFLAGS="$CPPFLAGS"
10211 CPPFLAGS="$CPPFLAGS $CFLAGS"
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10220 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10221 $EGREP "got it
" >/dev/null 2>&1; then :
10222 gdb_cv_i386_is_x86_64=yes
10224 gdb_cv_i386_is_x86_64=no
10228 CPPFLAGS="$save_CPPFLAGS"
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
10231 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
10236 $as_echo_n "checking
if building
for x32...
" >&6; }
10237 if ${gdb_cv_x86_is_x32+:} false; then :
10238 $as_echo_n "(cached
) " >&6
10240 save_CPPFLAGS="$CPPFLAGS"
10241 CPPFLAGS="$CPPFLAGS $CFLAGS"
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10245 #if __x86_64__ && __ILP32__
10250 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10251 $EGREP "got it
" >/dev/null 2>&1; then :
10252 gdb_cv_x86_is_x32=yes
10254 gdb_cv_x86_is_x32=no
10258 CPPFLAGS="$save_CPPFLAGS"
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
10261 $as_echo "$gdb_cv_x86_is_x32" >&6; }
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
10266 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
10267 if ${gdb_cv_m68k_is_coldfire+:} false; then :
10268 $as_echo_n "(cached
) " >&6
10270 save_CPPFLAGS="$CPPFLAGS"
10271 CPPFLAGS="$CPPFLAGS $CFLAGS"
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10275 #ifdef __mcoldfire__
10280 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10281 $EGREP "got it
" >/dev/null 2>&1; then :
10282 gdb_cv_m68k_is_coldfire=yes
10284 gdb_cv_m68k_is_coldfire=no
10288 CPPFLAGS="$save_CPPFLAGS"
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
10291 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
10295 . ${srcdir}/configure.srv
10297 if test "${srv_mingwce}" = "yes"; then
10299 elif test "${srv_mingw}" = "yes"; then
10300 # WIN32APILIBS is set by GDB_AC_COMMON.
10301 LIBS="$LIBS $WIN32APILIBS"
10302 elif test "${srv_qnx}" = "yes"; then
10303 LIBS="$LIBS -lsocket"
10304 elif test "${srv_lynxos}" = "yes"; then
10305 LIBS="$LIBS -lnetinet"
10308 if test "${srv_linux_usrregs}" = "yes"; then
10310 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
10314 if test "${srv_linux_regsets}" = "yes"; then
10316 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10320 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10321 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
10322 $as_echo_n "(cached) " >&6
10324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #include <sys/ptrace.h>
10335 if ac_fn_c_try_compile
"$LINENO"; then :
10336 gdbsrv_cv_have_ptrace_getregs
=yes
10338 gdbsrv_cv_have_ptrace_getregs
=no
10340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
10344 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
10345 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
10347 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10352 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10353 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
10354 $as_echo_n "(cached) " >&6
10356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 #include <sys/ptrace.h>
10367 if ac_fn_c_try_compile
"$LINENO"; then :
10368 gdbsrv_cv_have_ptrace_getfpxregs
=yes
10370 gdbsrv_cv_have_ptrace_getfpxregs
=no
10372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
10376 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
10377 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
10379 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10384 if test "${srv_linux_btrace}" = "yes"; then
10386 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
10390 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
10392 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
10393 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
10394 $as_echo_n "(cached) " >&6
10396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10399 #include <thread_db.h>
10408 if ac_fn_c_try_compile
"$LINENO"; then :
10409 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
10411 gdbserver_cv_have_thread_db_type_lwpid_t
=no
10414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10417 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
10419 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
10423 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
10427 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
10429 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
10430 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
10431 $as_echo_n "(cached) " >&6
10433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10436 #include <thread_db.h>
10445 if ac_fn_c_try_compile
"$LINENO"; then :
10446 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
10448 gdbserver_cv_have_thread_db_type_psaddr_t
=no
10451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10454 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
10456 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
10460 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10466 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10467 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10468 $as_echo_n "(cached) " >&6
10470 ac_check_lib_save_LIBS
=$LIBS
10472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10490 if ac_fn_c_try_link
"$LINENO"; then :
10491 ac_cv_lib_dl_dlopen
=yes
10493 ac_cv_lib_dl_dlopen
=no
10495 rm -f core conftest.err conftest.
$ac_objext \
10496 conftest
$ac_exeext conftest.
$ac_ext
10497 LIBS
=$ac_check_lib_save_LIBS
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10501 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10502 cat >>confdefs.h
<<_ACEOF
10503 #define HAVE_LIBDL 1
10512 srv_thread_depfiles
=
10515 if test "$srv_linux_thread_db" = "yes"; then
10516 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
10519 $as_echo_n "checking for the dynamic export flag... " >&6; }
10520 old_LDFLAGS
="$LDFLAGS"
10521 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
10523 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
10524 LDFLAGS
="$LDFLAGS $RDYNAMIC"
10525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10536 if ac_fn_c_try_link
"$LINENO"; then :
10537 found
="-Wl,--dynamic-list"
10538 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
10540 RDYNAMIC
="-rdynamic"
10541 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
10542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10553 if ac_fn_c_try_link
"$LINENO"; then :
10559 rm -f core conftest.err conftest.
$ac_objext \
10560 conftest
$ac_exeext conftest.
$ac_ext
10562 rm -f core conftest.err conftest.
$ac_objext \
10563 conftest
$ac_exeext conftest.
$ac_ext
10565 LDFLAGS
="$old_LDFLAGS"
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
10567 $as_echo "$found" >&6; }
10569 srv_libs
="-lthread_db"
10572 srv_thread_depfiles
="thread-db.o proc-service.o"
10574 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
10577 $as_echo_n "checking for TD_VERSION... " >&6; }
10578 if ${gdbsrv_cv_have_td_version+:} false
; then :
10579 $as_echo_n "(cached) " >&6
10581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583 #include <thread_db.h>
10592 if ac_fn_c_try_compile
"$LINENO"; then :
10593 gdbsrv_cv_have_td_version
=yes
10595 gdbsrv_cv_have_td_version
=no
10597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
10600 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
10601 if test "$gdbsrv_cv_have_td_version" = yes; then
10603 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
10609 # Check whether --with-libthread-db was given.
10610 if test "${with_libthread_db+set}" = set; then :
10611 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
10612 srv_libs
="$srv_libthread_db_path"
10617 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
10619 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
10623 if test "$srv_xmlfiles" != ""; then
10624 srv_xmlbuiltin
="xml-builtin.o"
10626 $as_echo "#define USE_XML 1" >>confdefs.h
10629 tmp_xmlfiles
=$srv_xmlfiles
10631 for f
in $tmp_xmlfiles; do
10632 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
10636 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
10637 GDBSERVER_LIBS
="$srv_libs"
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
10640 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
10641 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
10642 $as_echo_n "(cached) " >&6
10645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10651 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
10656 if ac_fn_c_try_link
"$LINENO"; then :
10657 gdbsrv_cv_have_sync_builtins
=yes
10659 gdbsrv_cv_have_sync_builtins
=no
10661 rm -f core conftest.err conftest.
$ac_objext \
10662 conftest
$ac_exeext conftest.
$ac_ext
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
10665 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
10666 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
10668 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
10672 saved_cflags
="$CFLAGS"
10673 CFLAGS
="$CFLAGS -fvisibility=hidden"
10674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10685 if ac_fn_c_try_compile
"$LINENO"; then :
10686 gdbsrv_cv_have_visibility_hidden
=yes
10688 gdbsrv_cv_have_visibility_hidden
=no
10690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10691 CFLAGS
="$saved_cflags"
10696 # check whether to enable the inprocess agent
10697 if test "$ipa_obj" != "" \
10698 -a "$gdbsrv_cv_have_sync_builtins" = yes \
10699 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
10705 # Check whether --enable-inprocess-agent was given.
10706 if test "${enable_inprocess_agent+set}" = set; then :
10707 enableval
=$enable_inprocess_agent; case "$enableval" in
10708 yes) want_ipa
=true
;;
10709 no
) want_ipa
=false
;;
10710 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
10717 if $want_ipa ; then
10718 if $have_ipa ; then
10719 IPA_DEPFILES
="$ipa_obj"
10720 extra_libraries
="$extra_libraries libinproctrace.so"
10722 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
10733 GNULIB
=..
/gnulib
/import
10736 if test x
"$STDINT_H" != x
; then
10737 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
10741 ac_config_files
="$ac_config_files Makefile"
10744 cat >confcache
<<\_ACEOF
10745 # This file is a shell script that caches the results of configure
10746 # tests run on this system so they can be shared between configure
10747 # scripts and configure runs, see configure's option --config-cache.
10748 # It is not useful on other systems. If it contains results you don't
10749 # want to keep, you may remove or edit it.
10751 # config.status only pays attention to the cache file if you give it
10752 # the --recheck option to rerun configure.
10754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10756 # following values.
10760 # The following way of writing the cache mishandles newlines in values,
10761 # but we know of no workaround that is simple, portable, and efficient.
10762 # So, we kill variables containing newlines.
10763 # Ultrix sh set writes to stderr and can't be redirected directly,
10764 # and sets the high bit in the cache file unless we assign to the vars.
10766 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10767 eval ac_val
=\$
$ac_var
10771 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10775 _ | IFS | as_nl
) ;; #(
10776 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10777 *) { eval $ac_var=; unset $ac_var;} ;;
10783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10784 *${as_nl}ac_space
=\
*)
10785 # `set' does not quote correctly, so add quotes: double-quote
10786 # substitution turns \\\\ into \\, and sed turns \\ into \.
10789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10792 # `set' quotes correctly as required by POSIX, so do not add quotes.
10793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10806 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10807 if test -w "$cache_file"; then
10808 if test "x$cache_file" != "x/dev/null"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10810 $as_echo "$as_me: updating cache $cache_file" >&6;}
10811 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10812 cat confcache
>"$cache_file"
10814 case $cache_file in #(
10816 mv -f confcache
"$cache_file"$$
&&
10817 mv -f "$cache_file"$$
"$cache_file" ;; #(
10819 mv -f confcache
"$cache_file" ;;
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10830 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10831 # Let make expand exec_prefix.
10832 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10834 DEFS
=-DHAVE_CONFIG_H
10839 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10840 # 1. Remove the extension, and $U if already installed.
10841 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10842 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10844 # will be set to the directory where LIBOBJS objects are built.
10845 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10846 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10848 LIBOBJS
=$ac_libobjs
10850 LTLIBOBJS
=$ac_ltlibobjs
10853 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10854 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10858 : "${CONFIG_STATUS=./config.status}"
10860 ac_clean_files_save
=$ac_clean_files
10861 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10863 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10865 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10867 # Generated by $as_me.
10868 # Run this file to recreate the current configuration.
10869 # Compiler output produced by configure, useful for debugging
10870 # configure, is in config.log if it exists.
10873 ac_cs_recheck=false
10876 SHELL=\${CONFIG_SHELL-$SHELL}
10879 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10880 ## -------------------- ##
10881 ## M4sh Initialization. ##
10882 ## -------------------- ##
10884 # Be more Bourne compatible
10885 DUALCASE
=1; export DUALCASE
# for MKS sh
10886 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10889 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10890 # is contrary to our usage. Disable this feature.
10891 alias -g '${1+"$@"}'='"$@"'
10892 setopt NO_GLOB_SUBST
10894 case `(set -o) 2>/dev/null` in #(
10906 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10907 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10910 # Prefer a ksh shell builtin over an external printf program on Solaris,
10911 # but without wasting forks for bash or zsh.
10912 if test -z "$BASH_VERSION$ZSH_VERSION" \
10913 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10914 as_echo='print
-r --'
10915 as_echo_n='print
-rn --'
10916 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10917 as_echo='printf %s
\n'
10918 as_echo_n='printf %s
'
10920 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10921 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10922 as_echo_n='/usr
/ucb
/echo -n'
10924 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10925 as_echo_n_body='eval
10929 expr "X$arg" : "X\\(.*\\)$as_nl";
10930 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10932 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10934 export as_echo_n_body
10935 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10937 export as_echo_body
10938 as_echo='sh
-c $as_echo_body as_echo
'
10941 # The user is always right.
10942 if test "${PATH_SEPARATOR+set}" != set; then
10944 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10945 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10952 # We need space, tab and new line, in precisely that order. Quoting is
10953 # there to prevent editors from complaining about space-tab.
10954 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10955 # splitting by setting IFS to empty value.)
10958 # Find who we are. Look in the path if we contain no directory separator.
10961 *[\\/]* ) as_myself=$0 ;;
10962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10966 test -z "$as_dir" && as_dir=.
10967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10973 # We did not find ourselves, most probably we were run as `sh COMMAND'
10974 # in which case we are not to be found in the path.
10975 if test "x$as_myself" = x
; then
10978 if test ! -f "$as_myself"; then
10979 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10983 # Unset variables that we do not need and which cause bugs (e.g. in
10984 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10985 # suppresses any "Segmentation fault" message there. '((' could
10986 # trigger a bug in pdksh 5.2.14.
10987 for as_var
in BASH_ENV ENV MAIL MAILPATH
10988 do eval test x\
${$as_var+set} = xset \
10989 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11002 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11005 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11006 # ----------------------------------------
11007 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11008 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11009 # script with STATUS, using 1 if that was 0.
11012 as_status
=$1; test $as_status -eq 0 && as_status
=1
11014 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11015 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11017 $as_echo "$as_me: error: $2" >&2
11018 as_fn_exit
$as_status
11022 # as_fn_set_status STATUS
11023 # -----------------------
11024 # Set $? to STATUS, without forking.
11025 as_fn_set_status
()
11028 } # as_fn_set_status
11030 # as_fn_exit STATUS
11031 # -----------------
11032 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11036 as_fn_set_status
$1
11042 # Portably unset VAR.
11045 { eval $1=; unset $1;}
11047 as_unset
=as_fn_unset
11048 # as_fn_append VAR VALUE
11049 # ----------------------
11050 # Append the text in VALUE to the end of the definition contained in VAR. Take
11051 # advantage of any shell optimizations that allow amortized linear growth over
11052 # repeated appends, instead of the typical quadratic growth present in naive
11054 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11055 eval 'as_fn_append ()
11066 # as_fn_arith ARG...
11067 # ------------------
11068 # Perform arithmetic evaluation on the ARGs, and store the result in the
11069 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11070 # must be portable across $(()) and expr.
11071 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11072 eval 'as_fn_arith ()
11079 as_val
=`expr "$@" || test $? -eq 1`
11084 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11085 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11091 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11092 as_basename
=basename
11097 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11103 as_me
=`$as_basename -- "$0" ||
11104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11105 X"$0" : 'X\(//\)$' \| \
11106 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11108 sed '/^.*\/\([^/][^/]*\)\/*$/{
11122 # Avoid depending upon Character Ranges.
11123 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11124 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11125 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11126 as_cr_digits
='0123456789'
11127 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11129 ECHO_C
= ECHO_N
= ECHO_T
=
11130 case `echo -n x` in #(((((
11132 case `echo 'xy\c'` in
11133 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11135 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11142 rm -f conf$$ conf$$.exe conf$$.
file
11143 if test -d conf$$.dir
; then
11144 rm -f conf$$.dir
/conf$$.
file
11147 mkdir conf$$.dir
2>/dev
/null
11149 if (echo >conf$$.
file) 2>/dev
/null
; then
11150 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11152 # ... but there are two gotchas:
11153 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11154 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11155 # In both cases, we have to default to `cp -pR'.
11156 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11158 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11166 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11167 rmdir conf$$.dir
2>/dev
/null
11172 # Create "$as_dir" as a directory, including parents if necessary.
11177 -*) as_dir
=.
/$as_dir;;
11179 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11183 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11184 *) as_qdir
=$as_dir;;
11186 as_dirs
="'$as_qdir' $as_dirs"
11187 as_dir
=`$as_dirname -- "$as_dir" ||
11188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11189 X"$as_dir" : 'X\(//\)[^/]' \| \
11190 X"$as_dir" : 'X\(//\)$' \| \
11191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11192 $as_echo X"$as_dir" |
11193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11197 /^X\(\/\/\)[^/].*/{
11210 test -d "$as_dir" && break
11212 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11213 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11217 if mkdir
-p .
2>/dev
/null
; then
11218 as_mkdir_p
='mkdir -p "$as_dir"'
11220 test -d .
/-p && rmdir .
/-p
11225 # as_fn_executable_p FILE
11226 # -----------------------
11227 # Test if FILE is an executable regular file.
11228 as_fn_executable_p
()
11230 test -f "$1" && test -x "$1"
11231 } # as_fn_executable_p
11232 as_test_x
='test -x'
11233 as_executable_p
=as_fn_executable_p
11235 # Sed expression to map a string onto a valid CPP name.
11236 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11238 # Sed expression to map a string onto a valid variable name.
11239 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11243 ## ----------------------------------- ##
11244 ## Main body of $CONFIG_STATUS script. ##
11245 ## ----------------------------------- ##
11247 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11250 # Save the log message, to keep $0 and so on meaningful, and to
11251 # report actual input values of CONFIG_FILES etc. instead of their
11252 # values after options handling.
11254 This file was extended by $as_me, which was
11255 generated by GNU Autoconf 2.69. Invocation command line was
11257 CONFIG_FILES = $CONFIG_FILES
11258 CONFIG_HEADERS = $CONFIG_HEADERS
11259 CONFIG_LINKS = $CONFIG_LINKS
11260 CONFIG_COMMANDS = $CONFIG_COMMANDS
11263 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11268 case $ac_config_files in *"
11269 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11272 case $ac_config_headers in *"
11273 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11278 # Files that config.status was made for.
11279 config_files="$ac_config_files"
11280 config_headers="$ac_config_headers"
11281 config_commands="$ac_config_commands"
11285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11287 \`$as_me' instantiates files and other configuration actions
11288 from templates according to the current configuration. Unless the files
11289 and actions are specified as TAGs, all are instantiated by default.
11291 Usage: $0 [OPTION]... [TAG]...
11293 -h, --help print this help, then exit
11294 -V, --version print version number and configuration settings, then exit
11295 --config print configuration, then exit
11296 -q, --quiet, --silent
11297 do not print progress messages
11298 -d, --debug don't remove temporary files
11299 --recheck update $as_me by reconfiguring in the same conditions
11300 --file=FILE[:TEMPLATE]
11301 instantiate the configuration file FILE
11302 --header=FILE[:TEMPLATE]
11303 instantiate the configuration header FILE
11305 Configuration files:
11308 Configuration headers:
11311 Configuration commands:
11314 Report bugs to the package provider."
11317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11318 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11321 configured by $0, generated by GNU Autoconf 2.69,
11322 with options \\"\$ac_cs_config\\"
11324 Copyright (C) 2012 Free Software Foundation, Inc.
11325 This config.status script is free software; the Free Software Foundation
11326 gives unlimited permission to copy, distribute and modify it."
11331 test -n "\$AWK" || AWK=awk
11334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11335 # The default lists apply if the user does not specify any file.
11341 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11342 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11346 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11358 # Handling of the options.
11359 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11361 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11362 $as_echo "$ac_cs_version"; exit ;;
11363 --config |
--confi |
--conf |
--con |
--co |
--c )
11364 $as_echo "$ac_cs_config"; exit ;;
11365 --debug |
--debu |
--deb |
--de |
--d |
-d )
11367 --file |
--fil |
--fi |
--f )
11370 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11371 '') as_fn_error $?
"missing file argument" ;;
11373 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11374 ac_need_defaults
=false
;;
11375 --header |
--heade |
--head |
--hea )
11378 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11380 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11381 ac_need_defaults
=false
;;
11383 # Conflict between --help and --header
11384 as_fn_error $?
"ambiguous option: \`$1'
11385 Try \`$0 --help' for more information.";;
11386 --help |
--hel |
-h )
11387 $as_echo "$ac_cs_usage"; exit ;;
11388 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11389 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11392 # This is an error.
11393 -*) as_fn_error $?
"unrecognized option: \`$1'
11394 Try \`$0 --help' for more information." ;;
11396 *) as_fn_append ac_config_targets
" $1"
11397 ac_need_defaults
=false
;;
11403 ac_configure_extra_args
=
11405 if $ac_cs_silent; then
11407 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11412 if \$ac_cs_recheck; then
11413 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11415 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11416 CONFIG_SHELL='$SHELL'
11417 export CONFIG_SHELL
11422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11427 ## Running $as_me. ##
11433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11437 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
11438 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
11442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11444 # Handling of arguments.
11445 for ac_config_target
in $ac_config_targets
11447 case $ac_config_target in
11448 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11449 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
11450 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
11451 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11453 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11458 # If the user did not use the arguments to specify the items to instantiate,
11459 # then the envvar interface is used. Set only those that are not.
11460 # We use the long form for the default assignment because of an extremely
11461 # bizarre bug on SunOS 4.1.3.
11462 if $ac_need_defaults; then
11463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11465 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11468 # Have a temporary directory for convenience. Make it in the build tree
11469 # simply because there is no reason against having it here, and in addition,
11470 # creating and moving files from /tmp can sometimes cause problems.
11471 # Hook for its removal unless debugging.
11472 # Note that there is a small window in which the directory will not be cleaned:
11473 # after its creation but before its name has been assigned to `$tmp'.
11477 trap 'exit_status=$?
11478 : "${ac_tmp:=$tmp}"
11479 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11481 trap 'as_fn_exit 1' 1 2 13 15
11483 # Create a (secure) tmp directory for tmp files.
11486 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11490 tmp
=.
/conf$$
-$RANDOM
11491 (umask 077 && mkdir
"$tmp")
11492 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11495 # Set up the scripts for CONFIG_FILES section.
11496 # No need to generate them if there are no CONFIG_FILES.
11497 # This happens for instance with `./config.status config.h'.
11498 if test -n "$CONFIG_FILES"; then
11501 ac_cr
=`echo X | tr X '\015'`
11502 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11503 # But we know of no other shell where ac_cr would be empty at this
11504 # point, so we can use a bashism as a fallback.
11505 if test "x$ac_cr" = x
; then
11506 eval ac_cr
=\$
\'\\r
\'
11508 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11509 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11512 ac_cs_awk_cr
=$ac_cr
11515 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11520 echo "cat >conf$$subs.awk <<_ACEOF" &&
11521 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11523 } >conf$$subs.sh ||
11524 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11525 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11527 for ac_last_try in false false false false false :; do
11528 . ./conf$$subs.sh ||
11529 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11531 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11532 if test $ac_delim_n = $ac_delim_num; then
11534 elif $ac_last_try; then
11535 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11537 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11540 rm -f conf$$subs.sh
11542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11543 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11547 s/^/S["/; s
/!.
*/"]=/
11557 s/\(.\{148\}\)..*/\1/
11559 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11564 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11571 s/\(.\{148\}\)..*/\1/
11573 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11577 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11582 ' <conf$$subs.awk | sed '
11587 ' >>$CONFIG_STATUS || ac_write_fail=1
11588 rm -f conf$$subs.awk
11589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11591 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11592 for (key in S) S_is_set[key] = 1
11598 nfields = split(line, field, "@
")
11600 len = length(field[1])
11601 for (i = 2; i < nfields; i++) {
11603 keylen = length(key)
11604 if (S_is_set[key]) {
11606 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11607 len += length(value) + length(field[++i])
11618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11619 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11620 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11623 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11624 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11627 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11628 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11629 # trailing colons and then remove the whole line if VPATH becomes empty
11630 # (actually we leave an empty line to preserve line numbers).
11631 if test "x
$srcdir" = x.; then
11632 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11651 fi # test -n "$CONFIG_FILES"
11653 # Set up the scripts for CONFIG_HEADERS section.
11654 # No need to generate them if there are no CONFIG_HEADERS.
11655 # This happens for instance with `./config.status Makefile'.
11656 if test -n "$CONFIG_HEADERS"; then
11657 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11661 # Transform confdefs.h into an awk script `defines.awk', embedded as
11662 # here-document in config.status, that substitutes the proper values into
11663 # config.h.in to produce config.h.
11665 # Create a delimiter string that does not exist in confdefs.h, to ease
11666 # handling of long lines.
11668 for ac_last_try in false false :; do
11669 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11670 if test -z "$ac_tt"; then
11672 elif $ac_last_try; then
11673 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11675 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11679 # For the awk script, D is an array of macro values keyed by name,
11680 # likewise P contains macro parameters if any. Preserve backslash
11681 # newline sequences.
11683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11685 s/.\{148\}/&'"$ac_delim"'/g
11688 s/^[ ]*#[ ]*define[ ][ ]*/ /
11695 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11697 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11702 D["\
1"]=" \
3\\\\\\n
"\\/p
11704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11709 s/.\{148\}/&'"$ac_delim"'/g
11714 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11717 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11719 ' <confdefs.h | sed '
11720 s/'"$ac_delim"'/"\\\
11721 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11724 for (key in D) D_is_set[key] = 1
11727 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11729 split(line, arg, " ")
11730 if (arg[1] == "#") {
11734 defundef
= substr
(arg
[1], 2)
11737 split(mac1
, mac2
, "(") #)
11739 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11740 if (D_is_set
[macro
]) {
11741 # Preserve the white space surrounding the "#".
11742 print prefix
"define", macro P
[macro
] D
[macro
]
11745 # Replace #undef with comments. This is necessary, for example,
11746 # in the case of _POSIX_SOURCE, which is predefined and required
11747 # on some systems where configure will not decide to define it.
11748 if (defundef
== "undef") {
11749 print
"/*", prefix defundef
, macro
, "*/"
11757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11758 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11759 fi # test -n "$CONFIG_HEADERS"
11762 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11767 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11769 case $ac_mode$ac_tag in
11771 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11772 :[FH
]-) ac_tag
=-:-;;
11773 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11790 -) ac_f
="$ac_tmp/stdin";;
11791 *) # Look for the file first in the build tree, then in the source tree
11792 # (if the path is not absolute). The absolute path cannot be DOS-style,
11793 # because $ac_f cannot contain `:'.
11797 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11799 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11801 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11802 as_fn_append ac_file_inputs
" '$ac_f'"
11805 # Let's still pretend it is `configure' which instantiates (i.e., don't
11806 # use $as_me), people would be surprised to read:
11807 # /* config.h. Generated by config.status. */
11808 configure_input
='Generated from '`
11809 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11811 if test x
"$ac_file" != x-
; then
11812 configure_input
="$ac_file. $configure_input"
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11814 $as_echo "$as_me: creating $ac_file" >&6;}
11816 # Neutralize special characters interpreted by sed in replacement strings.
11817 case $configure_input in #(
11818 *\
&* |
*\|
* |
*\\* )
11819 ac_sed_conf_input
=`$as_echo "$configure_input" |
11820 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11821 *) ac_sed_conf_input
=$configure_input;;
11825 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11826 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11831 ac_dir
=`$as_dirname -- "$ac_file" ||
11832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11833 X"$ac_file" : 'X\(//\)[^/]' \| \
11834 X"$ac_file" : 'X\(//\)$' \| \
11835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11836 $as_echo X"$ac_file" |
11837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11841 /^X\(\/\/\)[^/].*/{
11854 as_dir
="$ac_dir"; as_fn_mkdir_p
11858 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11860 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11861 # A ".." for each directory in $ac_dir_suffix.
11862 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11863 case $ac_top_builddir_sub in
11864 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11865 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11868 ac_abs_top_builddir
=$ac_pwd
11869 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11870 # for backward compatibility:
11871 ac_top_builddir
=$ac_top_build_prefix
11874 .
) # We are building in place.
11876 ac_top_srcdir
=$ac_top_builddir_sub
11877 ac_abs_top_srcdir
=$ac_pwd ;;
11878 [\\/]* | ?
:[\\/]* ) # Absolute name.
11879 ac_srcdir
=$srcdir$ac_dir_suffix;
11880 ac_top_srcdir
=$srcdir
11881 ac_abs_top_srcdir
=$srcdir ;;
11882 *) # Relative name.
11883 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11884 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11885 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11887 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11897 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11898 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11903 # If the template does not know about datarootdir, expand it.
11904 # FIXME: This hack should be removed a few years after 2.60.
11905 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11917 *datarootdir
*) ac_datarootdir_seen
=yes;;
11918 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11920 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11923 ac_datarootdir_hack='
11924 s&@datadir@&$datadir&g
11925 s&@docdir@&$docdir&g
11926 s&@infodir@&$infodir&g
11927 s&@localedir@&$localedir&g
11928 s&@mandir@&$mandir&g
11929 s&\\\${datarootdir}&$datarootdir&g' ;;
11933 # Neutralize VPATH when `$srcdir' = `.'.
11934 # Shell code in configure.ac might set extrasub.
11935 # FIXME: do we really want to maintain this feature?
11936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11937 ac_sed_extra="$ac_vpsub
11940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11942 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11943 s|@configure_input@|
$ac_sed_conf_input|
;t t
11944 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11945 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11946 s
&@srcdir@
&$ac_srcdir&;t t
11947 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11948 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11949 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11950 s
&@builddir@
&$ac_builddir&;t t
11951 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11952 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11953 s
&@INSTALL@
&$ac_INSTALL&;t t
11954 $ac_datarootdir_hack
11956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11957 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11960 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11962 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11964 which seems to be undefined. Please make sure it is defined" >&5
11965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11966 which seems to be undefined. Please make sure it is defined" >&2;}
11968 rm -f "$ac_tmp/stdin"
11970 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11971 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11979 if test x"$ac_file" != x-; then
11981 $as_echo "/* $configure_input */" \
11982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11983 } >"$ac_tmp/config.h" \
11984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11985 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11990 mv "$ac_tmp/config.h" "$ac_file" \
11991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11994 $as_echo "/* $configure_input */" \
11995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11996 || as_fn_error $? "could not create -" "$LINENO" 5
12000 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12001 $as_echo "$as_me: executing $ac_file commands" >&6;}
12006 case $ac_file$ac_mode in
12007 "config.h":H) echo > stamp-h ;;
12008 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
12010 for subdir in ${CONFIG_SRC_SUBDIR}
12012 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
12021 ac_clean_files=$ac_clean_files_save
12023 test $ac_write_fail = 0 ||
12024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12027 # configure is writing to config.log, and then calls config.status.
12028 # config.status does its own redirection, appending to config.log.
12029 # Unfortunately, on DOS this fails, as config.log is still kept open
12030 # by configure, so config.status won't be able to
write to it
; its
12031 # output is simply discarded. So we exec the FD to /dev/null,
12032 # effectively closing config.log, so it can be properly (re)opened and
12033 # appended to by config.status. When coming back to configure, we
12034 # need to make the FD available again.
12035 if test "$no_create" != yes; then
12037 ac_config_status_args
=
12038 test "$silent" = yes &&
12039 ac_config_status_args
="$ac_config_status_args --quiet"
12041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12044 # would make configure fail if this is the last instruction.
12045 $ac_cs_success || as_fn_exit
1
12047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12049 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}