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
674 INSTALL_STRIP_PROGRAM
691 MAINTAINER_MODE_FALSE
720 program_transform_name
733 enable_option_checking
734 enable_maintainer_mode
746 enable_build_warnings
747 enable_gdb_build_warnings
751 enable_inprocess_agent
753 ac_precious_vars
='build_alias
767 # Initialize some variables set by options.
769 ac_init_version
=false
770 ac_unrecognized_opts
=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
781 program_transform_name
=s
,x
,x
,
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir
='${exec_prefix}/bin'
796 sbindir
='${exec_prefix}/sbin'
797 libexecdir
='${exec_prefix}/libexec'
798 datarootdir
='${prefix}/share'
799 datadir
='${datarootdir}'
800 sysconfdir
='${prefix}/etc'
801 sharedstatedir
='${prefix}/com'
802 localstatedir
='${prefix}/var'
803 includedir
='${prefix}/include'
804 oldincludedir
='/usr/include'
805 docdir
='${datarootdir}/doc/${PACKAGE}'
806 infodir
='${datarootdir}/info'
811 libdir
='${exec_prefix}/lib'
812 localedir
='${datarootdir}/locale'
813 mandir
='${datarootdir}/man'
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\
$ac_option
827 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
838 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
840 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
843 -build |
--build |
--buil |
--bui |
--bu)
844 ac_prev
=build_alias
;;
845 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
846 build_alias
=$ac_optarg ;;
848 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
849 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
850 ac_prev
=cache_file
;;
851 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
852 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
853 cache_file
=$ac_optarg ;;
856 cache_file
=config.cache
;;
858 -datadir |
--datadir |
--datadi |
--datad)
860 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
861 datadir
=$ac_optarg ;;
863 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
864 |
--dataroo |
--dataro |
--datar)
865 ac_prev
=datarootdir
;;
866 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
867 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
868 datarootdir
=$ac_optarg ;;
870 -disable-* |
--disable-*)
871 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
874 as_fn_error $?
"invalid feature name: $ac_useropt"
875 ac_useropt_orig
=$ac_useropt
876 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep
=', ';;
884 eval enable_
$ac_useropt=no
;;
886 -docdir |
--docdir |
--docdi |
--doc |
--do)
888 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
891 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
893 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
896 -enable-* |
--enable-*)
897 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
900 as_fn_error $?
"invalid feature name: $ac_useropt"
901 ac_useropt_orig
=$ac_useropt
902 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep
=', ';;
910 eval enable_
$ac_useropt=\
$ac_optarg ;;
912 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
913 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
914 |
--exec |
--exe |
--ex)
915 ac_prev
=exec_prefix
;;
916 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
917 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
918 |
--exec=* |
--exe=* |
--ex=*)
919 exec_prefix
=$ac_optarg ;;
921 -gas |
--gas |
--ga |
--g)
922 # Obsolete; use --with-gas.
925 -help |
--help |
--hel |
--he |
-h)
927 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
928 ac_init_help
=recursive
;;
929 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
930 ac_init_help
=short
;;
932 -host |
--host |
--hos |
--ho)
933 ac_prev
=host_alias
;;
934 -host=* |
--host=* |
--hos=* |
--ho=*)
935 host_alias
=$ac_optarg ;;
937 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
939 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
941 htmldir
=$ac_optarg ;;
943 -includedir |
--includedir |
--includedi |
--included |
--include \
944 |
--includ |
--inclu |
--incl |
--inc)
945 ac_prev
=includedir
;;
946 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
947 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
948 includedir
=$ac_optarg ;;
950 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
952 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
953 infodir
=$ac_optarg ;;
955 -libdir |
--libdir |
--libdi |
--libd)
957 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
960 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
961 |
--libexe |
--libex |
--libe)
962 ac_prev
=libexecdir
;;
963 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
964 |
--libexe=* |
--libex=* |
--libe=*)
965 libexecdir
=$ac_optarg ;;
967 -localedir |
--localedir |
--localedi |
--localed |
--locale)
969 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
970 localedir
=$ac_optarg ;;
972 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
973 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
974 ac_prev
=localstatedir
;;
975 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
976 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
977 localstatedir
=$ac_optarg ;;
979 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
981 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
985 # Obsolete; use --without-fp.
988 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
989 |
--no-cr |
--no-c |
-n)
992 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
993 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
996 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
997 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
998 |
--oldin |
--oldi |
--old |
--ol |
--o)
999 ac_prev
=oldincludedir
;;
1000 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1001 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1002 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1003 oldincludedir
=$ac_optarg ;;
1005 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1007 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1008 prefix
=$ac_optarg ;;
1010 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1011 |
--program-pre |
--program-pr |
--program-p)
1012 ac_prev
=program_prefix
;;
1013 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1014 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1015 program_prefix
=$ac_optarg ;;
1017 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1018 |
--program-suf |
--program-su |
--program-s)
1019 ac_prev
=program_suffix
;;
1020 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1021 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1022 program_suffix
=$ac_optarg ;;
1024 -program-transform-name |
--program-transform-name \
1025 |
--program-transform-nam |
--program-transform-na \
1026 |
--program-transform-n |
--program-transform- \
1027 |
--program-transform |
--program-transfor \
1028 |
--program-transfo |
--program-transf \
1029 |
--program-trans |
--program-tran \
1030 |
--progr-tra |
--program-tr |
--program-t)
1031 ac_prev
=program_transform_name
;;
1032 -program-transform-name=* |
--program-transform-name=* \
1033 |
--program-transform-nam=* |
--program-transform-na=* \
1034 |
--program-transform-n=* |
--program-transform-=* \
1035 |
--program-transform=* |
--program-transfor=* \
1036 |
--program-transfo=* |
--program-transf=* \
1037 |
--program-trans=* |
--program-tran=* \
1038 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1039 program_transform_name
=$ac_optarg ;;
1041 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1043 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1044 pdfdir
=$ac_optarg ;;
1046 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1048 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1051 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1052 |
-silent |
--silent |
--silen |
--sile |
--sil)
1055 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1057 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1059 sbindir
=$ac_optarg ;;
1061 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1062 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1063 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1065 ac_prev
=sharedstatedir
;;
1066 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1067 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1068 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1070 sharedstatedir
=$ac_optarg ;;
1072 -site |
--site |
--sit)
1074 -site=* |
--site=* |
--sit=*)
1077 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1079 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1080 srcdir
=$ac_optarg ;;
1082 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1083 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1084 ac_prev
=sysconfdir
;;
1085 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1086 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1087 sysconfdir
=$ac_optarg ;;
1089 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1090 ac_prev
=target_alias
;;
1091 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1092 target_alias
=$ac_optarg ;;
1094 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1097 -version |
--version |
--versio |
--versi |
--vers |
-V)
1098 ac_init_version
=: ;;
1101 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1104 as_fn_error $?
"invalid package name: $ac_useropt"
1105 ac_useropt_orig
=$ac_useropt
1106 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep
=', ';;
1114 eval with_
$ac_useropt=\
$ac_optarg ;;
1116 -without-* |
--without-*)
1117 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1120 as_fn_error $?
"invalid package name: $ac_useropt"
1121 ac_useropt_orig
=$ac_useropt
1122 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep
=', ';;
1130 eval with_
$ac_useropt=no
;;
1133 # Obsolete; use --with-x.
1136 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1137 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1138 ac_prev
=x_includes
;;
1139 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1140 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1141 x_includes
=$ac_optarg ;;
1143 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1144 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1145 ac_prev
=x_libraries
;;
1146 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1147 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1148 x_libraries
=$ac_optarg ;;
1150 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information"
1155 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1159 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1161 eval $ac_envvar=\
$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175 if test -n "$ac_prev"; then
1176 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error $?
"missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1183 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 # Check all directory arguments for consistency.
1189 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val
=\$
$ac_var
1195 # Remove trailing slashes.
1198 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\
$ac_val;;
1201 # Be sure to have absolute directory names.
1203 [\\/$
]* | ?
:[\\/]* ) continue;;
1204 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1206 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target
=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x
; then
1218 if test "x$build_alias" = x
; then
1219 cross_compiling
=maybe
1220 elif test "x$build_alias" != "x$host_alias"; then
1226 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1228 test "$silent" = yes && exec 6>/dev
/null
1231 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di
=`ls -di .` &&
1233 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error $?
"working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error $?
"pwd does not report name of working directory"
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted
=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir
=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1271 ac_srcdir_defaulted
=no
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1275 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1277 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1289 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 for ac_var
in $ac_precious_vars; do
1292 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1294 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1299 # Report the --help message.
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1305 \`configure' configures this package to adapt to many kinds of systems.
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1312 Defaults for the options are specified in brackets.
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking ...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1336 For better control, use the options below.
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1363 --program-prefix=PREFIX prepend PREFIX to installed program names
1364 --program-suffix=SUFFIX append SUFFIX to installed program names
1365 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1368 --build=BUILD configure
for building on BUILD
[guessed
]
1369 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1370 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1374 if test -n "$ac_init_help"; then
1379 --disable-option-checking ignore unrecognized
--enable/--with options
1380 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1381 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1382 --enable-maintainer-mode
1383 enable make rules and dependencies not useful
(and
1384 sometimes confusing
) to the casual installer
1385 --disable-largefile omit support
for large files
1386 --enable-unit-tests Enable the inclusion of unit tests when compiling
1388 --disable-rpath do not hardcode runtime library paths
1389 --enable-werror treat compile warnings as errors
1390 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1391 --enable-gdb-build-warnings
1392 enable GDB specific build-time compiler warnings
if
1394 --enable-inprocess-agent
1398 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1399 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1400 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1401 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1402 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1403 --without-libipt-prefix don
't search for libipt in includedir and libdir
1404 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1405 --with-ust=PATH Specify prefix directory for the installed UST package
1406 Equivalent to --with-ust-include=PATH/include
1407 plus --with-ust-lib=PATH/lib
1408 --with-ust-include=PATH Specify directory for installed UST include files
1409 --with-ust-lib=PATH Specify the directory for the installed UST library
1410 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1411 --with-bugurl=URL Direct users to URL to report a bug
1412 --with-libthread-db=PATH
1413 use given libthread_db directly
1415 Some influential environment variables:
1416 CC C compiler command
1417 CFLAGS C compiler flags
1418 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1419 nonstandard directory <lib dir>
1420 LIBS libraries to pass to the linker, e.g. -l<library>
1421 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1422 you have headers in a nonstandard directory <include dir>
1423 CXX C++ compiler command
1424 CXXFLAGS C++ compiler flags
1427 Use these variables to override the choices made by `configure' or to
help
1428 it to
find libraries and programs with nonstandard names
/locations.
1430 Report bugs to the package provider.
1435 if test "$ac_init_help" = "recursive"; then
1436 # If there are subdirs, report their specific --help.
1437 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1438 test -d "$ac_dir" ||
1439 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1444 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1446 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447 # A ".." for each directory in $ac_dir_suffix.
1448 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1451 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1454 ac_abs_top_builddir
=$ac_pwd
1455 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1456 # for backward compatibility:
1457 ac_top_builddir
=$ac_top_build_prefix
1460 .
) # We are building in place.
1462 ac_top_srcdir
=$ac_top_builddir_sub
1463 ac_abs_top_srcdir
=$ac_pwd ;;
1464 [\\/]* | ?
:[\\/]* ) # Absolute name.
1465 ac_srcdir
=$srcdir$ac_dir_suffix;
1466 ac_top_srcdir
=$srcdir
1467 ac_abs_top_srcdir
=$srcdir ;;
1469 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1473 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1475 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1482 $SHELL "$ac_srcdir/configure" --help=recursive
1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1490 test -n "$ac_init_help" && exit $ac_status
1491 if $ac_init_version; then
1494 generated by GNU Autoconf
2.69
1496 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1497 This configure
script is free software
; the Free Software Foundation
1498 gives unlimited permission to copy
, distribute and modify it.
1503 ## ------------------------ ##
1504 ## Autoconf initialization. ##
1505 ## ------------------------ ##
1507 # ac_fn_c_try_compile LINENO
1508 # --------------------------
1509 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1510 ac_fn_c_try_compile
()
1512 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1513 rm -f conftest.
$ac_objext
1514 if { { ac_try
="$ac_compile"
1516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520 $as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_compile") 2>conftest.err
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest.$ac_objext; then :
1535 $as_echo "$as_me: failed program was:" >&5
1536 sed 's/^/| /' conftest.$ac_ext >&5
1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 as_fn_set_status $ac_retval
1543 } # ac_fn_c_try_compile
1545 # ac_fn_cxx_try_compile LINENO
1546 # ----------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_cxx_try_compile ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1555 *) ac_try_echo
=$ac_try;;
1557 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1561 if test -s conftest.err
; then
1562 grep -v '^ *+' conftest.err
>conftest.er1
1563 cat conftest.er1
>&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_cxx_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.
$ac_objext; then :
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.
$ac_ext >&5
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status
$ac_retval
1581 } # ac_fn_cxx_try_compile
1583 # ac_fn_c_try_cpp LINENO
1584 # ----------------------
1585 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1589 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1620 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1623 # the include files in INCLUDES and setting the cache variable VAR
1625 ac_fn_c_check_header_mongrel ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if eval \${$3+:} false; then :
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1638 # Is the header compilable?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1640 $as_echo_n "checking $2 usability... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1646 if ac_fn_c_try_compile "$LINENO"; then :
1647 ac_header_compiler=yes
1649 ac_header_compiler=no
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1653 $as_echo "$ac_header_compiler" >&6; }
1655 # Is the header present?
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1657 $as_echo_n "checking $2 presence... " >&6; }
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1662 if ac_fn_c_try_cpp "$LINENO"; then :
1663 ac_header_preproc=yes
1665 ac_header_preproc=no
1667 rm -f conftest.err conftest.i conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1669 $as_echo "$ac_header_preproc" >&6; }
1671 # So? What about this header?
1672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1675 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1681 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1683 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1685 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1687 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 eval "$3=\$ac_header_compiler"
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 } # ac_fn_c_check_header_mongrel
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1717 *) ac_try_echo
=$ac_try;;
1719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile "$LINENO"; then :
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_compile
1780 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1781 # -------------------------------------------
1782 # Tests whether TYPE exists after having included INCLUDES, setting cache
1783 # variable VAR accordingly.
1784 ac_fn_c_check_type ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_check_type
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1844 *) ac_try_echo
=$ac_try;;
1846 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1850 if test -s conftest.err
; then
1851 grep -v '^ *+' conftest.err
>conftest.er1
1852 cat conftest.er1
>&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest
$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 test -x conftest
$ac_exeext
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.
$ac_ext >&5
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status
$ac_retval
1878 } # ac_fn_c_try_link
1880 # ac_fn_c_check_func LINENO FUNC VAR
1881 # ----------------------------------
1882 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1883 ac_fn_c_check_func
()
1885 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \
${$3+:} false
; then :
1889 $as_echo_n "(cached) " >&6
1891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895 #define $2 innocuous_$2
1897 /* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below.
1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900 <limits.h> exists even on freestanding compilers. */
1903 # include <limits.h>
1905 # include <assert.h>
1910 /* Override any GCC internal prototype to avoid an error.
1911 Use char because int might match the return type of a GCC
1912 builtin and then its argument prototype would still apply. */
1917 /* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920 #if defined __stub_$2 || defined __stub___$2
1932 if ac_fn_c_try_link
"$LINENO"; then :
1937 rm -f core conftest.err conftest.
$ac_objext \
1938 conftest
$ac_exeext conftest.
$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 } # ac_fn_c_check_func
1947 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1948 # ---------------------------------------------
1949 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1951 ac_fn_c_check_decl
()
1953 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1954 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1955 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1957 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1958 if eval \
${$3+:} false
; then :
1959 $as_echo_n "(cached) " >&6
1961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1967 #ifndef $as_decl_name
1969 (void) $as_decl_use;
1971 (void) $as_decl_name;
1979 if ac_fn_c_try_compile
"$LINENO"; then :
1984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_decl
1993 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1994 # ----------------------------------------------------
1995 # Tries to find if the field MEMBER exists in type AGGR, after including
1996 # INCLUDES, setting cache variable VAR accordingly.
1997 ac_fn_c_check_member
()
1999 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2001 $as_echo_n "checking for $2.$3... " >&6; }
2002 if eval \
${$4+:} false
; then :
2003 $as_echo_n "(cached) " >&6
2005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2018 if ac_fn_c_try_compile
"$LINENO"; then :
2021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2028 if (sizeof ac_aggr.$3)
2034 if ac_fn_c_try_compile
"$LINENO"; then :
2039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 } # ac_fn_c_check_member
2050 # ac_fn_cxx_try_link LINENO
2051 # -------------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_link
()
2055 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2056 rm -f conftest.
$ac_objext conftest
$ac_exeext
2057 if { { ac_try
="$ac_link"
2059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_link") 2>conftest.err
2066 if test -s conftest.err; then
2067 grep -v '^ *+' conftest.err >conftest.er1
2068 cat conftest.er1 >&5
2069 mv -f conftest.er1 conftest.err
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } && {
2073 test -z "$ac_cxx_werror_flag" ||
2074 test ! -s conftest.err
2075 } && test -s conftest$ac_exeext && {
2076 test "$cross_compiling" = yes ||
2077 test -x conftest$ac_exeext
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2086 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2087 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2088 # interfere with the next link command; also delete a directory that is
2089 # left behind by Apple's compiler. We do this before executing the actions.
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2094 } # ac_fn_cxx_try_link
2096 # ac_fn_cxx_check_func LINENO FUNC VAR
2097 # ------------------------------------
2098 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2099 ac_fn_cxx_check_func ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2111 #define $2 innocuous_$2
2113 /* System header to define __stub macros and hopefully few prototypes,
2114 which can conflict with char $2 (); below.
2115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2116 <limits.h> exists even on freestanding compilers. */
2119 # include <limits.h>
2121 # include <assert.h>
2126 /* Override any GCC internal prototype to avoid an error.
2127 Use char because int might match the return type of a GCC
2128 builtin and then its argument prototype would still apply. */
2133 /* The GNU C library defines this for functions which it implements
2134 to always fail with ENOSYS. Some functions are actually named
2135 something starting with __ and the normal name is an alias. */
2136 #if defined __stub_$2 || defined __stub___$2
2148 if ac_fn_cxx_try_link "$LINENO"; then :
2153 rm -f core conftest.err conftest.$ac_objext \
2154 conftest$ac_exeext conftest.$ac_ext
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 } # ac_fn_cxx_check_func
2163 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2164 # --------------------------------------------
2165 # Tries to find the compile-time value of EXPR in a program that includes
2166 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2168 ac_fn_c_compute_int ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 if test "$cross_compiling" = yes; then
2172 # Depending upon the size, compute the lo and hi bounds.
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array [1 - 2 * !(($2) >= 0)];
2181 return test_array [0];
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 return test_array [0];
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_hi=$ac_mid; break
2207 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2208 if test $ac_lo -le $ac_mid; then
2212 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) < 0)];
2225 return test_array [0];
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_lo=$ac_mid; break
2251 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252 if test $ac_mid -le $ac_hi; then
2256 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 # Binary search between lo and hi bounds.
2267 while test "x$ac_lo" != "x$ac_hi"; do
2268 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 return test_array [0];
2283 if ac_fn_c_try_compile "$LINENO"; then :
2286 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2298 static long int longval () { return $2; }
2299 static unsigned long int ulongval () { return $2; }
2306 FILE *f = fopen ("conftest.val", "w");
2311 long int i = longval ();
2314 fprintf (f, "%ld", i);
2318 unsigned long int i = ulongval ();
2321 fprintf (f, "%lu", i);
2323 /* Do not output a trailing newline, as this causes \r\n confusion
2324 on some platforms. */
2325 return ferror (f) || fclose (f) != 0;
2331 if ac_fn_c_try_run "$LINENO"; then :
2332 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2337 conftest.$ac_objext conftest.beam conftest.$ac_ext
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 as_fn_set_status $ac_retval
2344 } # ac_fn_c_compute_int
2345 cat >config.log <<_ACEOF
2346 This file contains any messages produced by compilers while
2347 running configure, to aid debugging if configure makes a mistake.
2349 It was created by $as_me, which was
2350 generated by GNU Autoconf 2.69. Invocation command line was
2362 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2363 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2364 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2365 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2366 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2368 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2369 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2371 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2372 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2373 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2374 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2375 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2376 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2377 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir=.
2386 $as_echo "PATH: $as_dir"
2402 # Keep a trace of the command line.
2403 # Strip out --no-create and --no-recursion so they do not pile up.
2404 # Strip out --silent because we don't want to record it for future runs.
2405 # Also quote any args containing shell meta-characters.
2406 # Make two passes to allow for proper duplicate-argument suppression.
2410 ac_must_keep_next=false
2416 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2418 | -silent | --silent | --silen | --sile | --sil)
2421 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2424 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2426 as_fn_append ac_configure_args1 " '$ac_arg'"
2427 if test $ac_must_keep_next = true; then
2428 ac_must_keep_next=false # Got value, back to normal.
2431 *=* | --config-cache | -C | -disable-* | --disable-* \
2432 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2433 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2434 | -with-* | --with-* | -without-* | --without-* | --x)
2435 case "$ac_configure_args0 " in
2436 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2439 -* ) ac_must_keep_next=true ;;
2442 as_fn_append ac_configure_args " '$ac_arg'"
2447 { ac_configure_args0=; unset ac_configure_args0;}
2448 { ac_configure_args1=; unset ac_configure_args1;}
2450 # When interrupted or exit'd, cleanup temporary files, and complete
2451 # config.log. We remove comments because anyway the quotes in there
2452 # would cause problems or look ugly.
2453 # WARNING: Use '\'' to represent an apostrophe within the trap.
2454 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2455 trap 'exit_status=$?
2456 # Save into config.log some information that might help in debugging.
2460 $as_echo "## ---------------- ##
2461 ## Cache variables. ##
2462 ## ---------------- ##"
2464 # The following way of writing the cache mishandles newlines in values,
2466 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2467 eval ac_val=\$$ac_var
2471 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2472 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2475 _ | IFS | as_nl) ;; #(
2476 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2477 *) { eval $ac_var=; unset $ac_var;} ;;
2482 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2483 *${as_nl}ac_space=\ *)
2485 "s/'\''/'\''\\\\'\'''\''/g;
2486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2496 $as_echo "## ----------------- ##
2497 ## Output variables. ##
2498 ## ----------------- ##"
2500 for ac_var in $ac_subst_vars
2502 eval ac_val=\$$ac_var
2504 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2506 $as_echo "$ac_var='\''$ac_val'\''"
2510 if test -n "$ac_subst_files"; then
2511 $as_echo "## ------------------- ##
2512 ## File substitutions. ##
2513 ## ------------------- ##"
2515 for ac_var in $ac_subst_files
2517 eval ac_val=\$$ac_var
2519 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521 $as_echo "$ac_var='\''$ac_val'\''"
2526 if test -s confdefs.h; then
2527 $as_echo "## ----------- ##
2534 test "$ac_signal" != 0 &&
2535 $as_echo "$as_me: caught signal $ac_signal"
2536 $as_echo "$as_me: exit $exit_status"
2538 rm -f core *.core core.conftest.* &&
2539 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2542 for ac_signal in 1 2 13 15; do
2543 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2547 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2548 rm -f -r conftest* confdefs.h
2550 $as_echo "/* confdefs.h */" > confdefs.h
2552 # Predefined preprocessor variables.
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_NAME "$PACKAGE_NAME"
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_STRING "$PACKAGE_STRING"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_URL "$PACKAGE_URL"
2579 # Let the site file select an alternate cache file if it wants to.
2580 # Prefer an explicitly selected file to automatically selected ones.
2583 if test -n "$CONFIG_SITE"; then
2584 # We do not want a PATH search for config.site.
2585 case $CONFIG_SITE in #((
2586 -*) ac_site_file1=./$CONFIG_SITE;;
2587 */*) ac_site_file1=$CONFIG_SITE;;
2588 *) ac_site_file1=./$CONFIG_SITE;;
2590 elif test "x$prefix" != xNONE; then
2591 ac_site_file1=$prefix/share/config.site
2592 ac_site_file2=$prefix/etc/config.site
2594 ac_site_file1=$ac_default_prefix/share/config.site
2595 ac_site_file2=$ac_default_prefix/etc/config.site
2597 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2599 test "x$ac_site_file" = xNONE && continue
2600 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2602 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2603 sed 's/^/| /' "$ac_site_file" >&5
2605 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 as_fn_error $? "failed to load site
script $ac_site_file
2608 See \
`config.log' for more details" "$LINENO" 5; }
2612 if test -r "$cache_file"; then
2613 # Some versions of bash will fail to source /dev/null (special files
2614 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2615 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2617 $as_echo "$as_me: loading cache $cache_file" >&6;}
2619 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2620 *) . "./$cache_file";;
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2625 $as_echo "$as_me: creating cache $cache_file" >&6;}
2629 as_fn_append ac_header_list " stdlib.h"
2630 as_fn_append ac_header_list " unistd.h"
2631 as_fn_append ac_header_list " sys/param.h"
2632 # Check that the precious variables saved in the cache have kept the same
2634 ac_cache_corrupted=false
2635 for ac_var in $ac_precious_vars; do
2636 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2637 eval ac_new_set=\$ac_env_${ac_var}_set
2638 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2639 eval ac_new_val=\$ac_env_${ac_var}_value
2640 case $ac_old_set,$ac_new_set in
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2643 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2644 ac_cache_corrupted=: ;;
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2647 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2648 ac_cache_corrupted=: ;;
2651 if test "x$ac_old_val" != "x$ac_new_val"; then
2652 # differences in whitespace do not lead to failure.
2653 ac_old_val_w=`echo x
$ac_old_val`
2654 ac_new_val_w=`echo x
$ac_new_val`
2655 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2657 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2658 ac_cache_corrupted=:
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2661 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2662 eval $ac_var=\$ac_old_val
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2665 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2667 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2670 # Pass precious variables to config.status.
2671 if test "$ac_new_set" = set; then
2673 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2674 *) ac_arg=$ac_var=$ac_new_val ;;
2676 case " $ac_configure_args " in
2677 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2678 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2682 if $ac_cache_corrupted; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2686 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2687 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2689 ## -------------------- ##
2690 ## Main body of script. ##
2691 ## -------------------- ##
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 ac_config_headers="$ac_config_headers config.h:config.in"
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2708 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2709 # Check whether --enable-maintainer-mode was given.
2710 if test "${enable_maintainer_mode+set}" = set; then :
2711 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2713 USE_MAINTAINER_MODE=no
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2717 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2718 if test $USE_MAINTAINER_MODE = yes; then
2719 MAINTAINER_MODE_TRUE=
2720 MAINTAINER_MODE_FALSE='#'
2722 MAINTAINER_MODE_TRUE='#'
2723 MAINTAINER_MODE_FALSE=
2726 MAINT=$MAINTAINER_MODE_TRUE
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 if test -n "$CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766 $as_echo "$CC" >&6; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2774 if test -z "$ac_cv_prog_CC"; then
2776 # Extract the first word of "gcc", so it can be a program name with args.
2777 set dummy gcc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2781 $as_echo_n "(cached) " >&6
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_ac_ct_CC="gcc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2806 $as_echo "$ac_ct_CC" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2812 if test "x$ac_ct_CC" = x; then
2815 case $cross_compiling:$ac_tool_warned in
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819 ac_tool_warned=yes ;;
2827 if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2830 set dummy ${ac_tool_prefix}cc; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_CC="${ac_tool_prefix}cc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 if test -n "$CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2859 $as_echo "$CC" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2868 if test -z "$CC"; then
2869 # Extract the first word of "cc", so it can be a program name with args.
2870 set dummy cc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2888 ac_prog_rejected=yes
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 if test $ac_prog_rejected = yes; then
2900 # We found a bogon in the path, so make sure we never use it.
2901 set dummy $ac_cv_prog_CC
2903 if test $# != 0; then
2904 # We chose a different compiler from the bogus one.
2905 # However, it has the same basename, so the bogon will be chosen
2906 # first if we set CC to just the basename; use the full file name.
2908 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 for ac_prog in cl.exe
2928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2965 test -n "$CC" && break
2968 if test -z "$CC"; then
2970 for ac_prog in cl.exe
2972 # Extract the first word of "$ac_prog", so it can be a program name with args.
2973 set dummy $ac_prog; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_ac_ct_CC="$ac_prog"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000 if test -n "$ac_ct_CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002 $as_echo "$ac_ct_CC" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3009 test -n "$ac_ct_CC" && break
3012 if test "x$ac_ct_CC" = x; then
3015 case $cross_compiling:$ac_tool_warned in
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3019 ac_tool_warned=yes ;;
3028 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3031 See \
`config.log' for more details" "$LINENO" 5; }
3033 # Provide some information about the compiler.
3034 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3037 for ac_option in --version -v -V -qversion; do
3038 { { ac_try="$ac_compiler $ac_option >&5"
3040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3041 *) ac_try_echo
=$ac_try;;
3043 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3047 if test -s conftest.err
; then
3049 ... rest of stderr output deleted ...
3050 10q' conftest.err
>conftest.er1
3051 cat conftest.er1
>&5
3053 rm -f conftest.er1 conftest.err
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }
3058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3069 ac_clean_files_save
=$ac_clean_files
3070 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3071 # Try to create an executable without -o first, disregard a.out.
3072 # It will help us diagnose broken compilers, and finding out an intuition
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3075 $as_echo_n "checking whether the C compiler works... " >&6; }
3076 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078 # The possible output files:
3079 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3082 for ac_file
in $ac_files
3085 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3086 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3091 if { { ac_try
="$ac_link_default"
3093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_link_default") 2>&5
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }; then :
3102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3103 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3104 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3105 # so that the user can short-circuit this test for compilers unknown to
3107 for ac_file in $ac_files ''
3109 test -f "$ac_file" || continue
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3114 # We found the default executable, but exeext='' is most
3118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 # We set ac_cv_exeext here because the later test for it is not
3123 # safe: cross compilers may not add the suffix if given an `-o'
3124 # argument, so we may need to know it at that point already.
3125 # Even if this section looks crufty: it has the advantage of
3132 test "$ac_cv_exeext" = no && ac_cv_exeext=
3137 if test -z "$ac_file"; then :
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's
/^
/|
/' conftest.$ac_ext >&5
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3145 as_fn_error 77 "C compiler cannot create executables
3146 See \`config.log
' for more details" "$LINENO" 5; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3149 $as_echo "yes" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3152 $as_echo_n "checking for C compiler default output file name... " >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3154 $as_echo "$ac_file" >&6; }
3155 ac_exeext=$ac_cv_exeext
3157 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3158 ac_clean_files=$ac_clean_files_save
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3160 $as_echo_n "checking for suffix of executables... " >&6; }
3161 if { { ac_try="$ac_link"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link") 2>&5
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3173 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3174 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3176 for ac_file
in conftest.exe conftest conftest.
*; do
3177 test -f "$ac_file" ||
continue
3179 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3180 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details" "$LINENO" 5; }
3191 rm -f conftest conftest
$ac_cv_exeext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3193 $as_echo "$ac_cv_exeext" >&6; }
3195 rm -f conftest.
$ac_ext
3196 EXEEXT
=$ac_cv_exeext
3198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3204 FILE *f = fopen ("conftest.out", "w");
3205 return ferror (f) || fclose (f) != 0;
3211 ac_clean_files
="$ac_clean_files conftest.out"
3212 # Check that the compiler produces executables we can run. If not, either
3213 # the compiler is broken, or we cross compile.
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3215 $as_echo_n "checking whether we are cross compiling... " >&6; }
3216 if test "$cross_compiling" != yes; then
3217 { { ac_try
="$ac_link"
3219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link") 2>&5
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228 if { ac_try='./conftest$ac_cv_exeext'
3229 { { case "(($ac_try" in
3230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3231 *) ac_try_echo
=$ac_try;;
3233 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_try") 2>&5
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }; }; then
3241 if test "$cross_compiling" = maybe
; then
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $?
"cannot run C compiled programs.
3247 If you meant to cross compile, use \`--host'.
3248 See \`config.log' for more details" "$LINENO" 5; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3253 $as_echo "$cross_compiling" >&6; }
3255 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3256 ac_clean_files
=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3258 $as_echo_n "checking for suffix of object files... " >&6; }
3259 if ${ac_cv_objext+:} false
; then :
3260 $as_echo_n "(cached) " >&6
3262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3273 rm -f conftest.o conftest.obj
3274 if { { ac_try
="$ac_compile"
3276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_compile") 2>&5
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 for ac_file in conftest.o conftest.obj conftest.*; do
3286 test -f "$ac_file" || continue;
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3300 See \
`config.log' for more details" "$LINENO" 5; }
3302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3305 $as_echo "$ac_cv_objext" >&6; }
3306 OBJEXT=$ac_cv_objext
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3309 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3310 if ${ac_cv_c_compiler_gnu+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3327 if ac_fn_c_try_compile "$LINENO"; then :
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3337 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3338 if test $ac_compiler_gnu = yes; then
3343 ac_test_CFLAGS=${CFLAGS+set}
3344 ac_save_CFLAGS=$CFLAGS
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3346 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3347 if ${ac_cv_prog_cc_g+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 ac_save_c_werror_flag=$ac_c_werror_flag
3351 ac_c_werror_flag=yes
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3365 if ac_fn_c_try_compile "$LINENO"; then :
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3380 if ac_fn_c_try_compile "$LINENO"; then :
3383 ac_c_werror_flag=$ac_save_c_werror_flag
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3396 if ac_fn_c_try_compile "$LINENO"; then :
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 ac_c_werror_flag=$ac_save_c_werror_flag
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3407 $as_echo "$ac_cv_prog_cc_g" >&6; }
3408 if test "$ac_test_CFLAGS" = set; then
3409 CFLAGS=$ac_save_CFLAGS
3410 elif test $ac_cv_prog_cc_g = yes; then
3411 if test "$GCC" = yes; then
3417 if test "$GCC" = yes; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3424 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3425 if ${ac_cv_prog_cc_c89+:} false; then :
3426 $as_echo_n "(cached) " >&6
3428 ac_cv_prog_cc_c89=no
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3435 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3436 struct buf { int x; };
3437 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3438 static char *e (p, i)
3444 static char *f (char * (*g) (char **, int), char **p, ...)
3449 s = g (p, va_arg (v,int));
3454 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3455 function prototypes and stuff, but not '\xHH' hex character constants.
3456 These don't provoke an error unfortunately, instead are silently treated
3457 as 'x'. The following induces an error, until -std is added to get
3458 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3459 array size at least. It's necessary to write '\x00'==0 to get something
3460 that's true only with -std. */
3461 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3463 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3464 inside strings and character constants. */
3466 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3468 int test (int i, double x);
3469 struct s1 {int (*f) (int a);};
3470 struct s2 {int (*f) (double a);};
3471 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3477 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3482 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3483 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3485 CC="$ac_save_CC $ac_arg"
3486 if ac_fn_c_try_compile "$LINENO"; then :
3487 ac_cv_prog_cc_c89=$ac_arg
3489 rm -f core conftest.err conftest.$ac_objext
3490 test "x$ac_cv_prog_cc_c89" != "xno" && break
3492 rm -f conftest.$ac_ext
3497 case "x$ac_cv_prog_cc_c89" in
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3500 $as_echo "none needed" >&6; } ;;
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3503 $as_echo "unsupported" >&6; } ;;
3505 CC="$CC $ac_cv_prog_cc_c89"
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3507 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3509 if test "x$ac_cv_prog_cc_c89" != xno; then :
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 ac_cpp='$CXXCPP $CPPFLAGS'
3521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3524 if test -z "$CXX"; then
3525 if test -n "$CCC"; then
3528 if test -n "$ac_tool_prefix"; then
3529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if ${ac_cv_prog_CXX+:} false; then :
3536 $as_echo_n "(cached) " >&6
3538 if test -n "$CXX"; then
3539 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 if test -n "$CXX"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3561 $as_echo "$CXX" >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3568 test -n "$CXX" && break
3571 if test -z "$CXX"; then
3573 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3575 # Extract the first word of "$ac_prog", so it can be a program name with args.
3576 set dummy $ac_prog; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$ac_ct_CXX"; then
3583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_CXX="$ac_prog"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3603 if test -n "$ac_ct_CXX"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3605 $as_echo "$ac_ct_CXX" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3612 test -n "$ac_ct_CXX" && break
3615 if test "x$ac_ct_CXX" = x; then
3618 case $cross_compiling:$ac_tool_warned in
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622 ac_tool_warned=yes ;;
3630 # Provide some information about the compiler.
3631 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3634 for ac_option in --version -v -V -qversion; do
3635 { { ac_try="$ac_compiler $ac_option >&5"
3637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3638 *) ac_try_echo
=$ac_try;;
3640 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3644 if test -s conftest.err
; then
3646 ... rest of stderr output deleted ...
3647 10q' conftest.err
>conftest.er1
3648 cat conftest.er1
>&5
3650 rm -f conftest.er1 conftest.err
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3656 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3657 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3658 $as_echo_n "(cached) " >&6
3660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3674 if ac_fn_cxx_try_compile
"$LINENO"; then :
3679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3680 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3684 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3685 if test $ac_compiler_gnu = yes; then
3690 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3691 ac_save_CXXFLAGS
=$CXXFLAGS
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3693 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3694 if ${ac_cv_prog_cxx_g+:} false
; then :
3695 $as_echo_n "(cached) " >&6
3697 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3698 ac_cxx_werror_flag
=yes
3701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3712 if ac_fn_cxx_try_compile
"$LINENO"; then :
3713 ac_cv_prog_cxx_g
=yes
3716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3727 if ac_fn_cxx_try_compile
"$LINENO"; then :
3730 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3743 if ac_fn_cxx_try_compile
"$LINENO"; then :
3744 ac_cv_prog_cxx_g
=yes
3746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3751 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3754 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3755 if test "$ac_test_CXXFLAGS" = set; then
3756 CXXFLAGS
=$ac_save_CXXFLAGS
3757 elif test $ac_cv_prog_cxx_g = yes; then
3758 if test "$GXX" = yes; then
3764 if test "$GXX" = yes; then
3771 ac_cpp
='$CPP $CPPFLAGS'
3772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3778 ac_cpp
='$CPP $CPPFLAGS'
3779 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3783 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3784 # On Suns, sometimes $CPP names a directory.
3785 if test -n "$CPP" && test -d "$CPP"; then
3788 if test -z "$CPP"; then
3789 if ${ac_cv_prog_CPP+:} false
; then :
3790 $as_echo_n "(cached) " >&6
3792 # Double quotes because CPP needs to be expanded
3793 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3796 for ac_c_preproc_warn_flag
in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3807 # include <limits.h>
3809 # include <assert.h>
3813 if ac_fn_c_try_cpp
"$LINENO"; then :
3816 # Broken: fails on valid input.
3819 rm -f conftest.err conftest.i conftest.
$ac_ext
3821 # OK, works on sane cases. Now check whether nonexistent headers
3822 # can be detected and how.
3823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3827 if ac_fn_c_try_cpp
"$LINENO"; then :
3828 # Broken: success on invalid input.
3831 # Passes both tests.
3835 rm -f conftest.err conftest.i conftest.
$ac_ext
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.i conftest.err conftest.
$ac_ext
3840 if $ac_preproc_ok; then :
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3853 $as_echo "$CPP" >&6; }
3855 for ac_c_preproc_warn_flag
in '' yes
3857 # Use a header file that comes with gcc, so configuring glibc
3858 # with a fresh cross-compiler works.
3859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 # <limits.h> exists even on freestanding compilers.
3861 # On the NeXT, cc -E runs the code through the compiler's parser,
3862 # not just through cpp. "Syntax error" is here to catch this case.
3863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3866 # include <limits.h>
3868 # include <assert.h>
3872 if ac_fn_c_try_cpp
"$LINENO"; then :
3875 # Broken: fails on valid input.
3878 rm -f conftest.err conftest.i conftest.
$ac_ext
3880 # OK, works on sane cases. Now check whether nonexistent headers
3881 # can be detected and how.
3882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #include <ac_nonexistent.h>
3886 if ac_fn_c_try_cpp
"$LINENO"; then :
3887 # Broken: success on invalid input.
3890 # Passes both tests.
3894 rm -f conftest.err conftest.i conftest.
$ac_ext
3897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3898 rm -f conftest.i conftest.err conftest.
$ac_ext
3899 if $ac_preproc_ok; then :
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details" "$LINENO" 5; }
3909 ac_cpp
='$CPP $CPPFLAGS'
3910 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3916 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3917 if ${ac_cv_path_GREP+:} false
; then :
3918 $as_echo_n "(cached) " >&6
3920 if test -z "$GREP"; then
3921 ac_path_GREP_found
=false
3922 # Loop through the user's path and test for each of PROGNAME-LIST
3923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3924 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3927 test -z "$as_dir" && as_dir
=.
3928 for ac_prog
in grep ggrep
; do
3929 for ac_exec_ext
in '' $ac_executable_extensions; do
3930 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3931 as_fn_executable_p
"$ac_path_GREP" ||
continue
3932 # Check for GNU ac_path_GREP and select it if it is found.
3933 # Check for GNU $ac_path_GREP
3934 case `"$ac_path_GREP" --version 2>&1` in
3936 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3939 $as_echo_n 0123456789 >"conftest.in"
3942 cat "conftest.in" "conftest.in" >"conftest.tmp"
3943 mv "conftest.tmp" "conftest.in"
3944 cp "conftest.in" "conftest.nl"
3945 $as_echo 'GREP' >> "conftest.nl"
3946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3947 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3948 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950 # Best one so far, save it but keep looking for a better one
3951 ac_cv_path_GREP
="$ac_path_GREP"
3952 ac_path_GREP_max
=$ac_count
3954 # 10*(2^10) chars as input seems more than enough
3955 test $ac_count -gt 10 && break
3957 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3960 $ac_path_GREP_found && break 3
3965 if test -z "$ac_cv_path_GREP"; then
3966 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3969 ac_cv_path_GREP
=$GREP
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3974 $as_echo "$ac_cv_path_GREP" >&6; }
3975 GREP
="$ac_cv_path_GREP"
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3979 $as_echo_n "checking for egrep... " >&6; }
3980 if ${ac_cv_path_EGREP+:} false
; then :
3981 $as_echo_n "(cached) " >&6
3983 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3984 then ac_cv_path_EGREP
="$GREP -E"
3986 if test -z "$EGREP"; then
3987 ac_path_EGREP_found
=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_prog
in egrep; do
3995 for ac_exec_ext
in '' $ac_executable_extensions; do
3996 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3997 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3998 # Check for GNU ac_path_EGREP and select it if it is found.
3999 # Check for GNU $ac_path_EGREP
4000 case `"$ac_path_EGREP" --version 2>&1` in
4002 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4005 $as_echo_n 0123456789 >"conftest.in"
4008 cat "conftest.in" "conftest.in" >"conftest.tmp"
4009 mv "conftest.tmp" "conftest.in"
4010 cp "conftest.in" "conftest.nl"
4011 $as_echo 'EGREP' >> "conftest.nl"
4012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4013 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4014 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4016 # Best one so far, save it but keep looking for a better one
4017 ac_cv_path_EGREP
="$ac_path_EGREP"
4018 ac_path_EGREP_max
=$ac_count
4020 # 10*(2^10) chars as input seems more than enough
4021 test $ac_count -gt 10 && break
4023 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4026 $ac_path_EGREP_found && break 3
4031 if test -z "$ac_cv_path_EGREP"; then
4032 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4035 ac_cv_path_EGREP
=$EGREP
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4041 $as_echo "$ac_cv_path_EGREP" >&6; }
4042 EGREP
="$ac_cv_path_EGREP"
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4046 $as_echo_n "checking for ANSI C header files... " >&6; }
4047 if ${ac_cv_header_stdc+:} false
; then :
4048 $as_echo_n "(cached) " >&6
4050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4065 if ac_fn_c_try_compile
"$LINENO"; then :
4066 ac_cv_header_stdc
=yes
4068 ac_cv_header_stdc
=no
4070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4072 if test $ac_cv_header_stdc = yes; then
4073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4080 $EGREP "memchr" >/dev
/null
2>&1; then :
4083 ac_cv_header_stdc
=no
4089 if test $ac_cv_header_stdc = yes; then
4090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "free" >/dev
/null
2>&1; then :
4100 ac_cv_header_stdc
=no
4106 if test $ac_cv_header_stdc = yes; then
4107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4108 if test "$cross_compiling" = yes; then :
4111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 #if ((' ' & 0x0FF) == 0x020)
4116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4119 # define ISLOWER(c) \
4120 (('a' <= (c) && (c) <= 'i') \
4121 || ('j' <= (c) && (c) <= 'r') \
4122 || ('s' <= (c) && (c) <= 'z'))
4123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4131 for (i = 0; i < 256; i++)
4132 if (XOR (islower (i), ISLOWER (i))
4133 || toupper (i) != TOUPPER (i))
4138 if ac_fn_c_try_run
"$LINENO"; then :
4141 ac_cv_header_stdc
=no
4143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4144 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4150 $as_echo "$ac_cv_header_stdc" >&6; }
4151 if test $ac_cv_header_stdc = yes; then
4153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4157 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4158 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4159 inttypes.h stdint.h unistd.h
4161 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4162 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4164 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4165 cat >>confdefs.h
<<_ACEOF
4166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4175 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4176 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4183 if test "$MINIX" = yes; then
4185 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4188 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4191 $as_echo "#define _MINIX 1" >>confdefs.h
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4197 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4198 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4199 $as_echo_n "(cached) " >&6
4201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4204 # define __EXTENSIONS__ 1
4205 $ac_includes_default
4214 if ac_fn_c_try_compile
"$LINENO"; then :
4215 ac_cv_safe_to_define___extensions__
=yes
4217 ac_cv_safe_to_define___extensions__
=no
4219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4222 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4223 test $ac_cv_safe_to_define___extensions__ = yes &&
4224 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4226 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4228 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4230 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4232 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4236 # Check whether --enable-largefile was given.
4237 if test "${enable_largefile+set}" = set; then :
4238 enableval
=$enable_largefile;
4241 if test "$enable_largefile" != no
; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4244 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4245 if ${ac_cv_sys_largefile_CC+:} false
; then :
4246 $as_echo_n "(cached) " >&6
4248 ac_cv_sys_largefile_CC
=no
4249 if test "$GCC" != yes; then
4252 # IRIX 6.2 and later do not support large files by default,
4253 # so use the C compiler's -n32 option if that helps.
4254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 /* Check that off_t can represent 2**63 - 1 correctly.
4258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4259 since some C++ compilers masquerading as C compilers
4260 incorrectly reject 9223372036854775807. */
4261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4263 && LARGE_OFF_T % 2147483647 == 1)
4273 if ac_fn_c_try_compile
"$LINENO"; then :
4276 rm -f core conftest.err conftest.
$ac_objext
4278 if ac_fn_c_try_compile
"$LINENO"; then :
4279 ac_cv_sys_largefile_CC
=' -n32'; break
4281 rm -f core conftest.err conftest.
$ac_objext
4285 rm -f conftest.
$ac_ext
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4289 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4290 if test "$ac_cv_sys_largefile_CC" != no
; then
4291 CC
=$CC$ac_cv_sys_largefile_CC
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4295 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4296 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4297 $as_echo_n "(cached) " >&6
4300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <sys/types.h>
4303 /* Check that off_t can represent 2**63 - 1 correctly.
4304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4305 since some C++ compilers masquerading as C compilers
4306 incorrectly reject 9223372036854775807. */
4307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4309 && LARGE_OFF_T % 2147483647 == 1)
4319 if ac_fn_c_try_compile
"$LINENO"; then :
4320 ac_cv_sys_file_offset_bits
=no
; break
4322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #define _FILE_OFFSET_BITS 64
4326 #include <sys/types.h>
4327 /* Check that off_t can represent 2**63 - 1 correctly.
4328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4329 since some C++ compilers masquerading as C compilers
4330 incorrectly reject 9223372036854775807. */
4331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4333 && LARGE_OFF_T % 2147483647 == 1)
4343 if ac_fn_c_try_compile
"$LINENO"; then :
4344 ac_cv_sys_file_offset_bits
=64; break
4346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4347 ac_cv_sys_file_offset_bits
=unknown
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4352 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4353 case $ac_cv_sys_file_offset_bits in #(
4356 cat >>confdefs.h
<<_ACEOF
4357 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4362 if test $ac_cv_sys_file_offset_bits = unknown
; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4364 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4365 if ${ac_cv_sys_large_files+:} false
; then :
4366 $as_echo_n "(cached) " >&6
4369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <sys/types.h>
4372 /* Check that off_t can represent 2**63 - 1 correctly.
4373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4374 since some C++ compilers masquerading as C compilers
4375 incorrectly reject 9223372036854775807. */
4376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4378 && LARGE_OFF_T % 2147483647 == 1)
4388 if ac_fn_c_try_compile
"$LINENO"; then :
4389 ac_cv_sys_large_files
=no
; break
4391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #define _LARGE_FILES 1
4395 #include <sys/types.h>
4396 /* Check that off_t can represent 2**63 - 1 correctly.
4397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4398 since some C++ compilers masquerading as C compilers
4399 incorrectly reject 9223372036854775807. */
4400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4402 && LARGE_OFF_T % 2147483647 == 1)
4412 if ac_fn_c_try_compile
"$LINENO"; then :
4413 ac_cv_sys_large_files
=1; break
4415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4416 ac_cv_sys_large_files
=unknown
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4421 $as_echo "$ac_cv_sys_large_files" >&6; }
4422 case $ac_cv_sys_large_files in #(
4425 cat >>confdefs.h
<<_ACEOF
4426 #define _LARGE_FILES $ac_cv_sys_large_files
4437 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4438 if test -f "$ac_dir/install-sh"; then
4440 ac_install_sh
="$ac_aux_dir/install-sh -c"
4442 elif test -f "$ac_dir/install.sh"; then
4444 ac_install_sh
="$ac_aux_dir/install.sh -c"
4446 elif test -f "$ac_dir/shtool"; then
4448 ac_install_sh
="$ac_aux_dir/shtool install -c"
4452 if test -z "$ac_aux_dir"; then
4453 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4456 # These three variables are undocumented and unsupported,
4457 # and are intended to be withdrawn in a future Autoconf release.
4458 # They can cause serious problems if a builder's source tree is in a directory
4459 # whose full name contains unusual characters.
4460 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4461 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4462 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4465 # Expand $ac_aux_dir to an absolute path.
4466 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4468 if test x
"${install_sh+set}" != xset
; then
4471 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4473 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4477 # Installed binaries are usually stripped using 'strip' when the user
4478 # run "make install-strip". However 'strip' might not be the right
4479 # tool to use in cross-compilation environments, therefore Automake
4480 # will honor the 'STRIP' environment variable to overrule this program.
4481 if test "$cross_compiling" != no
; then
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4484 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_STRIP+:} false
; then :
4488 $as_echo_n "(cached) " >&6
4490 if test -n "$STRIP"; then
4491 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir
=.
4498 for ac_exec_ext
in '' $ac_executable_extensions; do
4499 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 STRIP
=$ac_cv_prog_STRIP
4511 if test -n "$STRIP"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4513 $as_echo "$STRIP" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4521 if test -z "$ac_cv_prog_STRIP"; then
4523 # Extract the first word of "strip", so it can be a program name with args.
4524 set dummy strip
; ac_word
=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4528 $as_echo_n "(cached) " >&6
4530 if test -n "$ac_ct_STRIP"; then
4531 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir
=.
4538 for ac_exec_ext
in '' $ac_executable_extensions; do
4539 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_ac_ct_STRIP
="strip"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4551 if test -n "$ac_ct_STRIP"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4553 $as_echo "$ac_ct_STRIP" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4559 if test "x$ac_ct_STRIP" = x
; then
4562 case $cross_compiling:$ac_tool_warned in
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned
=yes ;;
4571 STRIP
="$ac_cv_prog_STRIP"
4575 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4578 # Make sure we can run config.sub.
4579 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4580 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4583 $as_echo_n "checking build system type... " >&6; }
4584 if ${ac_cv_build+:} false
; then :
4585 $as_echo_n "(cached) " >&6
4587 ac_build_alias
=$build_alias
4588 test "x$ac_build_alias" = x
&&
4589 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4590 test "x$ac_build_alias" = x
&&
4591 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4592 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4593 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4597 $as_echo "$ac_cv_build" >&6; }
4598 case $ac_cv_build in
4600 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4603 ac_save_IFS
=$IFS; IFS
='-'
4609 # Remember, the first character of IFS is used to create $*,
4610 # except with old shells:
4613 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4617 $as_echo_n "checking host system type... " >&6; }
4618 if ${ac_cv_host+:} false
; then :
4619 $as_echo_n "(cached) " >&6
4621 if test "x$host_alias" = x
; then
4622 ac_cv_host
=$ac_cv_build
4624 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4625 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4630 $as_echo "$ac_cv_host" >&6; }
4633 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4636 ac_save_IFS
=$IFS; IFS
='-'
4642 # Remember, the first character of IFS is used to create $*,
4643 # except with old shells:
4646 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4650 $as_echo_n "checking target system type... " >&6; }
4651 if ${ac_cv_target+:} false
; then :
4652 $as_echo_n "(cached) " >&6
4654 if test "x$target_alias" = x
; then
4655 ac_cv_target
=$ac_cv_host
4657 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4658 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4663 $as_echo "$ac_cv_target" >&6; }
4664 case $ac_cv_target in
4666 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4668 target
=$ac_cv_target
4669 ac_save_IFS
=$IFS; IFS
='-'
4675 # Remember, the first character of IFS is used to create $*,
4676 # except with old shells:
4679 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4682 # The aliases save the names the user supplied, while $host etc.
4683 # will get canonicalized.
4684 test -n "$target_alias" &&
4685 test "$program_prefix$program_suffix$program_transform_name" = \
4687 program_prefix
=${target_alias}-
4690 # Find a good install program. We prefer a C program (faster),
4691 # so one script is as good as another. But avoid the broken or
4692 # incompatible versions:
4693 # SysV /etc/install, /usr/sbin/install
4694 # SunOS /usr/etc/install
4695 # IRIX /sbin/install
4697 # AmigaOS /C/install, which installs bootblocks on floppy discs
4698 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4699 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4700 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4701 # OS/2's system install, which has a completely different semantic
4702 # ./install, which can be erroneously created by make from ./install.sh.
4703 # Reject install programs that cannot install multiple files.
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4705 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4706 if test -z "$INSTALL"; then
4707 if ${ac_cv_path_install+:} false
; then :
4708 $as_echo_n "(cached) " >&6
4710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir
=.
4715 # Account for people who put trailing slashes in PATH elements.
4716 case $as_dir/ in #((
4717 .
/ | .
// |
/[cC
]/* | \
4718 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4719 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4722 # OSF1 and SCO ODT 3.0 have their own names for install.
4723 # Don't use installbsd from OSF since it installs stuff as root
4725 for ac_prog
in ginstall scoinst
install; do
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4728 if test $ac_prog = install &&
4729 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4730 # AIX install. It has an incompatible calling convention.
4732 elif test $ac_prog = install &&
4733 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4734 # program-specific install script used by HP pwplus--don't use.
4737 rm -rf conftest.one conftest.two conftest.dir
4738 echo one
> conftest.one
4739 echo two
> conftest.two
4741 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4742 test -s conftest.one
&& test -s conftest.two
&&
4743 test -s conftest.dir
/conftest.one
&&
4744 test -s conftest.dir
/conftest.two
4746 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4759 rm -rf conftest.one conftest.two conftest.dir
4762 if test "${ac_cv_path_install+set}" = set; then
4763 INSTALL
=$ac_cv_path_install
4765 # As a last resort, use the slow shell script. Don't cache a
4766 # value for INSTALL within a source directory, because that will
4767 # break other packages using the cache if that directory is
4768 # removed, or if the value is a relative name.
4769 INSTALL
=$ac_install_sh
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4773 $as_echo "$INSTALL" >&6; }
4775 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4776 # It thinks the first close brace ends the variable substitution.
4777 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4779 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4781 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4783 if test -n "$ac_tool_prefix"; then
4784 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4785 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if ${ac_cv_prog_AR+:} false
; then :
4789 $as_echo_n "(cached) " >&6
4791 if test -n "$AR"; then
4792 ac_cv_prog_AR
="$AR" # Let the user override the test.
4794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir
=.
4799 for ac_exec_ext
in '' $ac_executable_extensions; do
4800 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4801 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 if test -n "$AR"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4814 $as_echo "$AR" >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4822 if test -z "$ac_cv_prog_AR"; then
4824 # Extract the first word of "ar", so it can be a program name with args.
4825 set dummy
ar; ac_word
=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4829 $as_echo_n "(cached) " >&6
4831 if test -n "$ac_ct_AR"; then
4832 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir
=.
4839 for ac_exec_ext
in '' $ac_executable_extensions; do
4840 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4841 ac_cv_prog_ac_ct_AR
="ar"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4852 if test -n "$ac_ct_AR"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4854 $as_echo "$ac_ct_AR" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4860 if test "x$ac_ct_AR" = x
; then
4863 case $cross_compiling:$ac_tool_warned in
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4867 ac_tool_warned
=yes ;;
4875 if test -n "$ac_tool_prefix"; then
4876 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4877 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_prog_RANLIB+:} false
; then :
4881 $as_echo_n "(cached) " >&6
4883 if test -n "$RANLIB"; then
4884 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir
=.
4891 for ac_exec_ext
in '' $ac_executable_extensions; do
4892 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 RANLIB
=$ac_cv_prog_RANLIB
4904 if test -n "$RANLIB"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4906 $as_echo "$RANLIB" >&6; }
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4914 if test -z "$ac_cv_prog_RANLIB"; then
4915 ac_ct_RANLIB
=$RANLIB
4916 # Extract the first word of "ranlib", so it can be a program name with args.
4917 set dummy ranlib
; ac_word
=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4921 $as_echo_n "(cached) " >&6
4923 if test -n "$ac_ct_RANLIB"; then
4924 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir
=.
4931 for ac_exec_ext
in '' $ac_executable_extensions; do
4932 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4944 if test -n "$ac_ct_RANLIB"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4946 $as_echo "$ac_ct_RANLIB" >&6; }
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4952 if test "x$ac_ct_RANLIB" = x
; then
4955 case $cross_compiling:$ac_tool_warned in
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4959 ac_tool_warned
=yes ;;
4961 RANLIB
=$ac_ct_RANLIB
4964 RANLIB
="$ac_cv_prog_RANLIB"
4968 test "$program_prefix" != NONE
&&
4969 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4970 # Use a double $ so make ignores it.
4971 test "$program_suffix" != NONE
&&
4972 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4973 # Double any \ or $.
4974 # By default was `s,x,x', remove it if useless.
4975 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4976 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4979 # We require a C++11 compiler. Check if one is available, and if
4980 # necessary, set CXX_DIALECT to some -std=xxx switch.
4982 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4984 ac_cpp
='$CXXCPP $CPPFLAGS'
4985 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4991 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4992 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4993 $as_echo_n "(cached) " >&6
4995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4999 // If the compiler admits that it is not ready for C++11, why torture it?
5000 // Hopefully, this will speed up the test.
5004 #error "This is not a C++ compiler"
5006 #elif __cplusplus < 201103L
5008 #error "This is not a C++11 compiler"
5015 namespace test_static_assert
5018 template <typename T>
5021 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5026 namespace test_final_override
5034 struct Derived : public Base
5036 virtual void f() override {}
5041 namespace test_double_right_angle_brackets
5044 template < typename T >
5047 typedef check<void> single_type;
5048 typedef check<check<void>> double_type;
5049 typedef check<check<check<void>>> triple_type;
5050 typedef check<check<check<check<void>>>> quadruple_type;
5054 namespace test_decltype
5067 namespace test_type_deduction
5070 template < typename T1, typename T2 >
5073 static const bool value = false;
5076 template < typename T >
5077 struct is_same<T, T>
5079 static const bool value = true;
5082 template < typename T1, typename T2 >
5084 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5090 test(const int c, volatile int v)
5092 static_assert(is_same<int, decltype(0)>::value == true, "");
5093 static_assert(is_same<int, decltype(c)>::value == false, "");
5094 static_assert(is_same<int, decltype(v)>::value == false, "");
5097 auto sumi = ac + av + 'x';
5098 auto sumf = ac + av + 1.0;
5099 static_assert(is_same<int, decltype(ac)>::value == true, "");
5100 static_assert(is_same<int, decltype(av)>::value == true, "");
5101 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5102 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5103 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5104 return (sumf > 0.0) ? sumi : add(c, v);
5109 namespace test_noexcept
5112 int f() { return 0; }
5113 int g() noexcept { return 0; }
5115 static_assert(noexcept(f()) == false, "");
5116 static_assert(noexcept(g()) == true, "");
5120 namespace test_constexpr
5123 template < typename CharT >
5124 unsigned long constexpr
5125 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5127 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5130 template < typename CharT >
5131 unsigned long constexpr
5132 strlen_c(const CharT *const s) noexcept
5134 return strlen_c_r(s, 0UL);
5137 static_assert(strlen_c("") == 0UL, "");
5138 static_assert(strlen_c("1") == 1UL, "");
5139 static_assert(strlen_c("example") == 7UL, "");
5140 static_assert(strlen_c("another\0example") == 7UL, "");
5144 namespace test_rvalue_references
5150 static constexpr int value = N;
5153 answer<1> f(int&) { return answer<1>(); }
5154 answer<2> f(const int&) { return answer<2>(); }
5155 answer<3> f(int&&) { return answer<3>(); }
5162 static_assert(decltype(f(i))::value == 1, "");
5163 static_assert(decltype(f(c))::value == 2, "");
5164 static_assert(decltype(f(0))::value == 3, "");
5169 namespace test_uniform_initialization
5174 static const int zero {};
5175 static const int one {1};
5178 static_assert(test::zero == 0, "");
5179 static_assert(test::one == 1, "");
5183 namespace test_lambdas
5189 auto lambda1 = [](){};
5190 auto lambda2 = lambda1;
5198 auto a = [](int i, int j){ return i + j; }(1, 2);
5199 auto b = []() -> int { return '0'; }();
5200 auto c = [=](){ return a + b; }();
5201 auto d = [&](){ return c; }();
5202 auto e = [a, &b](int x) mutable {
5203 const auto identity = [](int y){ return y; };
5204 for (auto i = 0; i < a; ++i)
5206 return x + identity(a + b);
5208 return a + b + c + d + e;
5214 const auto nullary = [](){ return 0; };
5215 const auto unary = [](int x){ return x; };
5216 using nullary_t = decltype(nullary);
5217 using unary_t = decltype(unary);
5218 const auto higher1st = [](nullary_t f){ return f(); };
5219 const auto higher2nd = [unary](nullary_t f1){
5220 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5222 return higher1st(nullary) + higher2nd(nullary)(unary);
5227 namespace test_variadic_templates
5233 template <int N0, int... N1toN>
5234 struct sum<N0, N1toN...>
5236 static constexpr auto value = N0 + sum<N1toN...>::value;
5242 static constexpr auto value = 0;
5245 static_assert(sum<>::value == 0, "");
5246 static_assert(sum<1>::value == 1, "");
5247 static_assert(sum<23>::value == 23, "");
5248 static_assert(sum<1, 2>::value == 3, "");
5249 static_assert(sum<5, 5, 11>::value == 21, "");
5250 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5254 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5255 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5257 namespace test_template_alias_sfinae
5262 template<typename T>
5263 using member = typename T::member_type;
5265 template<typename T>
5268 template<typename T>
5269 void func(member<T>*) {}
5273 void test() { func<foo>(0); }
5277 } // namespace cxx11
5279 #endif // __cplusplus >= 201103L
5284 if ac_fn_cxx_try_compile
"$LINENO"; then :
5285 ax_cv_cxx_compile_cxx11
=yes
5287 ax_cv_cxx_compile_cxx11
=no
5289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5292 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5293 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5297 if test x
$ac_success = xno
; then
5298 for alternative
in ${ax_cxx_compile_alternatives}; do
5299 switch
="-std=gnu++${alternative}"
5300 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5302 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5303 if eval \
${$cachevar+:} false
; then :
5304 $as_echo_n "(cached) " >&6
5308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5312 // If the compiler admits that it is not ready for C++11, why torture it?
5313 // Hopefully, this will speed up the test.
5317 #error "This is not a C++ compiler"
5319 #elif __cplusplus < 201103L
5321 #error "This is not a C++11 compiler"
5328 namespace test_static_assert
5331 template <typename T>
5334 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5339 namespace test_final_override
5347 struct Derived : public Base
5349 virtual void f() override {}
5354 namespace test_double_right_angle_brackets
5357 template < typename T >
5360 typedef check<void> single_type;
5361 typedef check<check<void>> double_type;
5362 typedef check<check<check<void>>> triple_type;
5363 typedef check<check<check<check<void>>>> quadruple_type;
5367 namespace test_decltype
5380 namespace test_type_deduction
5383 template < typename T1, typename T2 >
5386 static const bool value = false;
5389 template < typename T >
5390 struct is_same<T, T>
5392 static const bool value = true;
5395 template < typename T1, typename T2 >
5397 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5403 test(const int c, volatile int v)
5405 static_assert(is_same<int, decltype(0)>::value == true, "");
5406 static_assert(is_same<int, decltype(c)>::value == false, "");
5407 static_assert(is_same<int, decltype(v)>::value == false, "");
5410 auto sumi = ac + av + 'x';
5411 auto sumf = ac + av + 1.0;
5412 static_assert(is_same<int, decltype(ac)>::value == true, "");
5413 static_assert(is_same<int, decltype(av)>::value == true, "");
5414 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5415 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5416 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5417 return (sumf > 0.0) ? sumi : add(c, v);
5422 namespace test_noexcept
5425 int f() { return 0; }
5426 int g() noexcept { return 0; }
5428 static_assert(noexcept(f()) == false, "");
5429 static_assert(noexcept(g()) == true, "");
5433 namespace test_constexpr
5436 template < typename CharT >
5437 unsigned long constexpr
5438 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5440 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5443 template < typename CharT >
5444 unsigned long constexpr
5445 strlen_c(const CharT *const s) noexcept
5447 return strlen_c_r(s, 0UL);
5450 static_assert(strlen_c("") == 0UL, "");
5451 static_assert(strlen_c("1") == 1UL, "");
5452 static_assert(strlen_c("example") == 7UL, "");
5453 static_assert(strlen_c("another\0example") == 7UL, "");
5457 namespace test_rvalue_references
5463 static constexpr int value = N;
5466 answer<1> f(int&) { return answer<1>(); }
5467 answer<2> f(const int&) { return answer<2>(); }
5468 answer<3> f(int&&) { return answer<3>(); }
5475 static_assert(decltype(f(i))::value == 1, "");
5476 static_assert(decltype(f(c))::value == 2, "");
5477 static_assert(decltype(f(0))::value == 3, "");
5482 namespace test_uniform_initialization
5487 static const int zero {};
5488 static const int one {1};
5491 static_assert(test::zero == 0, "");
5492 static_assert(test::one == 1, "");
5496 namespace test_lambdas
5502 auto lambda1 = [](){};
5503 auto lambda2 = lambda1;
5511 auto a = [](int i, int j){ return i + j; }(1, 2);
5512 auto b = []() -> int { return '0'; }();
5513 auto c = [=](){ return a + b; }();
5514 auto d = [&](){ return c; }();
5515 auto e = [a, &b](int x) mutable {
5516 const auto identity = [](int y){ return y; };
5517 for (auto i = 0; i < a; ++i)
5519 return x + identity(a + b);
5521 return a + b + c + d + e;
5527 const auto nullary = [](){ return 0; };
5528 const auto unary = [](int x){ return x; };
5529 using nullary_t = decltype(nullary);
5530 using unary_t = decltype(unary);
5531 const auto higher1st = [](nullary_t f){ return f(); };
5532 const auto higher2nd = [unary](nullary_t f1){
5533 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5535 return higher1st(nullary) + higher2nd(nullary)(unary);
5540 namespace test_variadic_templates
5546 template <int N0, int... N1toN>
5547 struct sum<N0, N1toN...>
5549 static constexpr auto value = N0 + sum<N1toN...>::value;
5555 static constexpr auto value = 0;
5558 static_assert(sum<>::value == 0, "");
5559 static_assert(sum<1>::value == 1, "");
5560 static_assert(sum<23>::value == 23, "");
5561 static_assert(sum<1, 2>::value == 3, "");
5562 static_assert(sum<5, 5, 11>::value == 21, "");
5563 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5567 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5568 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5570 namespace test_template_alias_sfinae
5575 template<typename T>
5576 using member = typename T::member_type;
5578 template<typename T>
5581 template<typename T>
5582 void func(member<T>*) {}
5586 void test() { func<foo>(0); }
5590 } // namespace cxx11
5592 #endif // __cplusplus >= 201103L
5597 if ac_fn_cxx_try_compile
"$LINENO"; then :
5602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5605 eval ac_res
=\$
$cachevar
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5607 $as_echo "$ac_res" >&6; }
5608 if eval test x\$
$cachevar = xyes
; then
5609 CXX_DIALECT
="$switch"
5616 if test x
$ac_success = xno
; then
5617 for alternative
in ${ax_cxx_compile_alternatives}; do
5618 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5619 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5621 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5622 if eval \${$cachevar+:} false; then :
5623 $as_echo_n "(cached
) " >&6
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5631 // If the compiler admits that it is not ready for C++11, why torture it?
5632 // Hopefully, this will speed up the test.
5636 #error "This is not a C
++ compiler
"
5638 #elif __cplusplus < 201103L
5640 #error "This is not a C
++11 compiler
"
5647 namespace test_static_assert
5650 template <typename T>
5653 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5658 namespace test_final_override
5666 struct Derived : public Base
5668 virtual void f() override {}
5673 namespace test_double_right_angle_brackets
5676 template < typename T >
5679 typedef check<void> single_type;
5680 typedef check<check<void>> double_type;
5681 typedef check<check<check<void>>> triple_type;
5682 typedef check<check<check<check<void>>>> quadruple_type;
5686 namespace test_decltype
5699 namespace test_type_deduction
5702 template < typename T1, typename T2 >
5705 static const bool value = false;
5708 template < typename T >
5709 struct is_same<T, T>
5711 static const bool value = true;
5714 template < typename T1, typename T2 >
5716 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5722 test(const int c, volatile int v)
5724 static_assert(is_same<int, decltype(0)>::value == true, "");
5725 static_assert(is_same<int, decltype(c)>::value == false, "");
5726 static_assert(is_same<int, decltype(v)>::value == false, "");
5729 auto sumi = ac + av + 'x';
5730 auto sumf = ac + av + 1.0;
5731 static_assert(is_same<int, decltype(ac)>::value == true, "");
5732 static_assert(is_same<int, decltype(av)>::value == true, "");
5733 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5734 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5735 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5736 return (sumf > 0.0) ? sumi : add(c, v);
5741 namespace test_noexcept
5744 int f() { return 0; }
5745 int g() noexcept { return 0; }
5747 static_assert(noexcept(f()) == false, "");
5748 static_assert(noexcept(g()) == true, "");
5752 namespace test_constexpr
5755 template < typename CharT >
5756 unsigned long constexpr
5757 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5759 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5762 template < typename CharT >
5763 unsigned long constexpr
5764 strlen_c(const CharT *const s) noexcept
5766 return strlen_c_r(s, 0UL);
5769 static_assert(strlen_c("") == 0UL, "");
5770 static_assert(strlen_c("1") == 1UL, "");
5771 static_assert(strlen_c("example
") == 7UL, "");
5772 static_assert(strlen_c("another\
0example
") == 7UL, "");
5776 namespace test_rvalue_references
5782 static constexpr int value = N;
5785 answer<1> f(int&) { return answer<1>(); }
5786 answer<2> f(const int&) { return answer<2>(); }
5787 answer<3> f(int&&) { return answer<3>(); }
5794 static_assert(decltype(f(i))::value == 1, "");
5795 static_assert(decltype(f(c))::value == 2, "");
5796 static_assert(decltype(f(0))::value == 3, "");
5801 namespace test_uniform_initialization
5806 static const int zero {};
5807 static const int one {1};
5810 static_assert(test::zero == 0, "");
5811 static_assert(test::one == 1, "");
5815 namespace test_lambdas
5821 auto lambda1 = [](){};
5822 auto lambda2 = lambda1;
5830 auto a = [](int i, int j){ return i + j; }(1, 2);
5831 auto b = []() -> int { return '0'; }();
5832 auto c = [=](){ return a + b; }();
5833 auto d = [&](){ return c; }();
5834 auto e = [a, &b](int x) mutable {
5835 const auto identity = [](int y){ return y; };
5836 for (auto i = 0; i < a; ++i)
5838 return x + identity(a + b);
5840 return a + b + c + d + e;
5846 const auto nullary = [](){ return 0; };
5847 const auto unary = [](int x){ return x; };
5848 using nullary_t = decltype(nullary);
5849 using unary_t = decltype(unary);
5850 const auto higher1st = [](nullary_t f){ return f(); };
5851 const auto higher2nd = [unary](nullary_t f1){
5852 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5854 return higher1st(nullary) + higher2nd(nullary)(unary);
5859 namespace test_variadic_templates
5865 template <int N0, int... N1toN>
5866 struct sum<N0, N1toN...>
5868 static constexpr auto value = N0 + sum<N1toN...>::value;
5874 static constexpr auto value = 0;
5877 static_assert(sum<>::value == 0, "");
5878 static_assert(sum<1>::value == 1, "");
5879 static_assert(sum<23>::value == 23, "");
5880 static_assert(sum<1, 2>::value == 3, "");
5881 static_assert(sum<5, 5, 11>::value == 21, "");
5882 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5886 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5887 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5889 namespace test_template_alias_sfinae
5894 template<typename T>
5895 using member = typename T::member_type;
5897 template<typename T>
5900 template<typename T>
5901 void func(member<T>*) {}
5905 void test() { func<foo>(0); }
5909 } // namespace cxx11
5911 #endif // __cplusplus >= 201103L
5916 if ac_fn_cxx_try_compile "$LINENO"; then :
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 eval ac_res=\$$cachevar
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5926 $as_echo "$ac_res" >&6; }
5927 if eval test x\$$cachevar = xyes; then
5928 CXX_DIALECT="$switch"
5933 if test x$ac_success = xyes; then
5939 ac_cpp='$CPP $CPPFLAGS'
5940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5944 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5945 if test x$ac_success = xno; then
5946 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5949 if test x$ac_success = xno; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5952 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5956 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5964 $as_echo_n "checking for ANSI C header files... " >&6; }
5965 if ${ac_cv_header_stdc+:} false
; then :
5966 $as_echo_n "(cached) " >&6
5968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5983 if ac_fn_c_try_compile
"$LINENO"; then :
5984 ac_cv_header_stdc
=yes
5986 ac_cv_header_stdc
=no
5988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5990 if test $ac_cv_header_stdc = yes; then
5991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5998 $EGREP "memchr" >/dev
/null
2>&1; then :
6001 ac_cv_header_stdc
=no
6007 if test $ac_cv_header_stdc = yes; then
6008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015 $EGREP "free" >/dev
/null
2>&1; then :
6018 ac_cv_header_stdc
=no
6024 if test $ac_cv_header_stdc = yes; then
6025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6026 if test "$cross_compiling" = yes; then :
6029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6033 #if ((' ' & 0x0FF) == 0x020)
6034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6037 # define ISLOWER(c) \
6038 (('a' <= (c) && (c) <= 'i') \
6039 || ('j' <= (c) && (c) <= 'r') \
6040 || ('s' <= (c) && (c) <= 'z'))
6041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6049 for (i = 0; i < 256; i++)
6050 if (XOR (islower (i), ISLOWER (i))
6051 || toupper (i) != TOUPPER (i))
6056 if ac_fn_c_try_run
"$LINENO"; then :
6059 ac_cv_header_stdc
=no
6061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6068 $as_echo "$ac_cv_header_stdc" >&6; }
6069 if test $ac_cv_header_stdc = yes; then
6071 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6076 # Set the 'development' global.
6077 .
$srcdir/..
/bfd
/development.sh
6080 # Check whether we will enable the inclusion of unit tests when
6083 # The default value of this option changes depending whether we're on
6084 # development mode (in which case it's "true") or not (in which case
6086 # Check whether --enable-unit-tests was given.
6087 if test "${enable_unit_tests+set}" = set; then :
6088 enableval
=$enable_unit_tests; case "${enableval}" in
6089 yes) enable_unittests
=true
;;
6090 no
) enable_unittests
=false
;;
6091 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
6094 enable_unittests
=$development
6098 if $enable_unittests; then
6100 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
6103 srv_selftest_objs
="gdbsupport/selftest.o"
6108 case ${build_alias} in
6109 "") build_noncanonical
=${build} ;;
6110 *) build_noncanonical
=${build_alias} ;;
6113 case ${host_alias} in
6114 "") host_noncanonical
=${build_noncanonical} ;;
6115 *) host_noncanonical
=${host_alias} ;;
6118 case ${target_alias} in
6119 "") target_noncanonical
=${host_noncanonical} ;;
6120 *) target_noncanonical
=${target_alias} ;;
6128 # Dependency checking.
6129 rm -rf .tst
2>/dev
/null
6130 mkdir .tst
2>/dev
/null
6131 if test -d .tst
; then
6136 rmdir .tst
2>/dev
/null
6138 DEPDIR
="${am__leading_dot}deps"
6140 ac_config_commands
="$ac_config_commands depdir"
6144 # Create sub-directories for objects and dependencies.
6145 CONFIG_SRC_SUBDIR
="arch gdbsupport nat target"
6148 ac_config_commands
="$ac_config_commands gdbdepdir"
6151 depcc
="$CC" am_compiler_list
=
6153 am_depcomp
=$ac_aux_dir/depcomp
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6155 $as_echo_n "checking dependency style of $depcc... " >&6; }
6156 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6157 $as_echo_n "(cached) " >&6
6159 if test -f "$am_depcomp"; then
6160 # We make a subdir and do the tests there. Otherwise we can end up
6161 # making bogus files that we don't know about and never remove. For
6162 # instance it was reported that on HP-UX the gcc test will end up
6163 # making a dummy file named `D' -- because `-MD' means `put the output
6166 # Copy depcomp to subdir because otherwise we won't find it if we're
6167 # using a relative directory.
6168 cp "$am_depcomp" conftest.dir
6170 # We will build objects and dependencies in a subdirectory because
6171 # it helps to detect inapplicable dependency modes. For instance
6172 # both Tru64's cc and ICC support -MD to output dependencies as a
6173 # side effect of compilation, but ICC will put the dependencies in
6174 # the current directory while Tru64 will put them in the object
6178 am_cv_CC_dependencies_compiler_type
=none
6179 if test "$am_compiler_list" = ""; then
6180 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6182 for depmode
in $am_compiler_list; do
6183 if test $depmode = none
; then break; fi
6185 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6186 # Setup a source with many dependencies, because some compilers
6187 # like to wrap large dependency lists on column 80 (with \), and
6188 # we should not choose a depcomp mode which is confused by this.
6190 # We need to recreate these files for each test, as the compiler may
6191 # overwrite some of them when testing with obscure command lines.
6192 # This happens at least with the AIX C compiler.
6194 for i
in 1 2 3 4 5 6; do
6195 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6197 # Solaris 8's {/usr,}/bin/sh.
6198 touch sub
/conftst
$i.h
6200 echo "include sub/conftest.Po" > confmf
6202 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6203 # mode. It turns out that the SunPro C++ compiler does not properly
6204 # handle `-M -o', and we need to detect this.
6205 depcmd
="depmode=$depmode \
6206 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6207 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6208 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6209 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6210 if env
$depcmd > conftest.err
2>&1 &&
6211 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6212 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6213 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6214 # icc doesn't choke on unknown options, it will just issue warnings
6215 # or remarks (even with -Werror). So we grep stderr for any message
6216 # that says an option was ignored or not supported.
6217 # When given -MP, icc 7.0 and 7.1 complain thusly:
6218 # icc: Command line warning: ignoring option '-M'; no argument required
6219 # The diagnosis changed in icc 8.0:
6220 # icc: Command line remark: option '-MP' not supported
6221 if (grep 'ignoring option' conftest.err ||
6222 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6223 am_cv_CC_dependencies_compiler_type
=$depmode
6224 $as_echo "$as_me:$LINENO: success" >&5
6228 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6229 sed -e 's/^/| /' < conftest.err
>&5
6235 am_cv_CC_dependencies_compiler_type
=none
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6240 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6241 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6242 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6243 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6248 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
6250 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6251 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6252 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6253 cat >>confdefs.h
<<_ACEOF
6254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6261 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6262 if test "x$ac_cv_type_pid_t" = xyes
; then :
6266 cat >>confdefs.h
<<_ACEOF
6272 for ac_header
in vfork.h
6274 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6275 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6276 cat >>confdefs.h
<<_ACEOF
6277 #define HAVE_VFORK_H 1
6284 for ac_func
in fork vfork
6286 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6287 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6288 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6289 cat >>confdefs.h
<<_ACEOF
6290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6296 if test "x$ac_cv_func_fork" = xyes
; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6298 $as_echo_n "checking for working fork... " >&6; }
6299 if ${ac_cv_func_fork_works+:} false
; then :
6300 $as_echo_n "(cached) " >&6
6302 if test "$cross_compiling" = yes; then :
6303 ac_cv_func_fork_works
=cross
6305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307 $ac_includes_default
6312 /* By Ruediger Kuhlmann. */
6319 if ac_fn_c_try_run
"$LINENO"; then :
6320 ac_cv_func_fork_works
=yes
6322 ac_cv_func_fork_works
=no
6324 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6325 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6330 $as_echo "$ac_cv_func_fork_works" >&6; }
6333 ac_cv_func_fork_works
=$ac_cv_func_fork
6335 if test "x$ac_cv_func_fork_works" = xcross
; then
6337 *-*-amigaos* |
*-*-msdosdjgpp*)
6338 # Override, as these systems have only a dummy fork() stub
6339 ac_cv_func_fork_works
=no
6342 ac_cv_func_fork_works
=yes
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6346 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6348 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6349 if test "x$ac_cv_func_vfork" = xyes
; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6351 $as_echo_n "checking for working vfork... " >&6; }
6352 if ${ac_cv_func_vfork_works+:} false
; then :
6353 $as_echo_n "(cached) " >&6
6355 if test "$cross_compiling" = yes; then :
6356 ac_cv_func_vfork_works
=cross
6358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 /* Thanks to Paul Eggert for this test. */
6361 $ac_includes_default
6362 #include <sys/wait.h>
6366 /* On some sparc systems, changes by the child to local and incoming
6367 argument registers are propagated back to the parent. The compiler
6368 is told about this with #include <vfork.h>, but some compilers
6369 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6370 static variable whose address is put into a register that is
6371 clobbered by the vfork. */
6374 sparc_address_test (int arg)
6376 sparc_address_test (arg) int arg;
6397 pid_t parent = getpid ();
6400 sparc_address_test (0);
6405 /* Here is another test for sparc vfork register problems. This
6406 test uses lots of local variables, at least as many local
6407 variables as main has allocated so far including compiler
6408 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6409 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6410 reuse the register of parent for one of the local variables,
6411 since it will think that parent can't possibly be used any more
6412 in this routine. Assigning to the local variable will thus
6413 munge parent in the parent process. */
6415 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6416 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6417 /* Convince the compiler that p..p7 are live; otherwise, it might
6418 use the same hardware register for all 8 local variables. */
6419 if (p != p1 || p != p2 || p != p3 || p != p4
6420 || p != p5 || p != p6 || p != p7)
6423 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6424 from child file descriptors. If the child closes a descriptor
6425 before it execs or exits, this munges the parent's descriptor
6426 as well. Test for this by closing stdout in the child. */
6427 _exit(close(fileno(stdout)) != 0);
6432 while (wait(&status) != child)
6435 /* Was there some problem with vforking? */
6438 /* Did the child fail? (This shouldn't happen.) */
6441 /* Did the vfork/compiler bug occur? */
6442 || parent != getpid()
6444 /* Did the file descriptor bug occur? */
6445 || fstat(fileno(stdout), &st) != 0
6450 if ac_fn_c_try_run
"$LINENO"; then :
6451 ac_cv_func_vfork_works
=yes
6453 ac_cv_func_vfork_works
=no
6455 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6456 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6461 $as_echo "$ac_cv_func_vfork_works" >&6; }
6464 if test "x$ac_cv_func_fork_works" = xcross
; then
6465 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6467 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6470 if test "x$ac_cv_func_vfork_works" = xyes
; then
6472 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6476 $as_echo "#define vfork fork" >>confdefs.h
6479 if test "x$ac_cv_func_fork_works" = xyes
; then
6481 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6485 for ac_func
in pread pwrite pread64
6487 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6488 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6489 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6490 cat >>confdefs.h
<<_ACEOF
6491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6498 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6499 if test "x$ac_cv_type_size_t" = xyes
; then :
6503 cat >>confdefs.h
<<_ACEOF
6504 #define size_t unsigned int
6512 for ac_header
in $ac_header_list
6514 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6517 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6518 cat >>confdefs.h
<<_ACEOF
6519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6533 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6534 if ${ac_cv_path_SED+:} false
; then :
6535 $as_echo_n "(cached) " >&6
6537 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6538 for ac_i
in 1 2 3 4 5 6 7; do
6539 ac_script
="$ac_script$as_nl$ac_script"
6541 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6542 { ac_script
=; unset ac_script
;}
6543 if test -z "$SED"; then
6544 ac_path_SED_found
=false
6545 # Loop through the user's path and test for each of PROGNAME-LIST
6546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir
=.
6551 for ac_prog
in sed gsed
; do
6552 for ac_exec_ext
in '' $ac_executable_extensions; do
6553 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6554 as_fn_executable_p
"$ac_path_SED" ||
continue
6555 # Check for GNU ac_path_SED and select it if it is found.
6556 # Check for GNU $ac_path_SED
6557 case `"$ac_path_SED" --version 2>&1` in
6559 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6562 $as_echo_n 0123456789 >"conftest.in"
6565 cat "conftest.in" "conftest.in" >"conftest.tmp"
6566 mv "conftest.tmp" "conftest.in"
6567 cp "conftest.in" "conftest.nl"
6568 $as_echo '' >> "conftest.nl"
6569 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6570 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6571 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6572 if test $ac_count -gt ${ac_path_SED_max-0}; then
6573 # Best one so far, save it but keep looking for a better one
6574 ac_cv_path_SED
="$ac_path_SED"
6575 ac_path_SED_max
=$ac_count
6577 # 10*(2^10) chars as input seems more than enough
6578 test $ac_count -gt 10 && break
6580 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6583 $ac_path_SED_found && break 3
6588 if test -z "$ac_cv_path_SED"; then
6589 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6597 $as_echo "$ac_cv_path_SED" >&6; }
6598 SED
="$ac_cv_path_SED"
6602 if test "X$prefix" = "XNONE"; then
6603 acl_final_prefix
="$ac_default_prefix"
6605 acl_final_prefix
="$prefix"
6607 if test "X$exec_prefix" = "XNONE"; then
6608 acl_final_exec_prefix
='${prefix}'
6610 acl_final_exec_prefix
="$exec_prefix"
6612 acl_save_prefix
="$prefix"
6613 prefix
="$acl_final_prefix"
6614 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6615 prefix
="$acl_save_prefix"
6618 # Check whether --with-gnu-ld was given.
6619 if test "${with_gnu_ld+set}" = set; then :
6620 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6625 # Prepare PATH_SEPARATOR.
6626 # The user is always right.
6627 if test "${PATH_SEPARATOR+set}" != set; then
6628 echo "#! /bin/sh" >conf$$.sh
6629 echo "exit 0" >>conf$$.sh
6631 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6639 if test "$GCC" = yes; then
6640 # Check if gcc -print-prog-name=ld gives a path.
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6642 $as_echo_n "checking for ld used by GCC... " >&6; }
6645 # gcc leaves a trailing carriage return which upsets mingw
6646 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6648 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6651 # Accept absolute paths.
6652 [\\/]* |
[A-Za-z
]:[\\/]*)
6653 re_direlt
='/[^/][^/]*/\.\./'
6654 # Canonicalize the path of ld
6655 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6656 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6657 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6659 test -z "$LD" && LD
="$ac_prog"
6662 # If it fails, then pretend we aren't using GCC.
6666 # If it is relative, then search for the first ld in PATH.
6670 elif test "$with_gnu_ld" = yes; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6672 $as_echo_n "checking for GNU ld... " >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6675 $as_echo_n "checking for non-GNU ld... " >&6; }
6677 if ${acl_cv_path_LD+:} false
; then :
6678 $as_echo_n "(cached) " >&6
6680 if test -z "$LD"; then
6681 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6682 for ac_dir
in $PATH; do
6683 test -z "$ac_dir" && ac_dir
=.
6684 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6685 acl_cv_path_LD
="$ac_dir/$ac_prog"
6686 # Check to see if the program is GNU ld. I'd rather use --version,
6687 # but apparently some GNU ld's only accept -v.
6688 # Break only if it was the GNU/non-GNU ld that we prefer.
6689 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6690 test "$with_gnu_ld" != no
&& break
6692 test "$with_gnu_ld" != yes && break
6698 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6702 LD
="$acl_cv_path_LD"
6703 if test -n "$LD"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6705 $as_echo "$LD" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6710 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6712 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6713 if ${acl_cv_prog_gnu_ld+:} false
; then :
6714 $as_echo_n "(cached) " >&6
6716 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6717 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6718 acl_cv_prog_gnu_ld
=yes
6720 acl_cv_prog_gnu_ld
=no
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6724 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6725 with_gnu_ld
=$acl_cv_prog_gnu_ld
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6730 $as_echo_n "checking for shared library run path origin... " >&6; }
6731 if ${acl_cv_rpath+:} false
; then :
6732 $as_echo_n "(cached) " >&6
6735 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6736 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6743 $as_echo "$acl_cv_rpath" >&6; }
6745 libext
="$acl_cv_libext"
6746 shlibext
="$acl_cv_shlibext"
6747 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6748 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6749 hardcode_direct
="$acl_cv_hardcode_direct"
6750 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6751 # Check whether --enable-rpath was given.
6752 if test "${enable_rpath+set}" = set; then :
6753 enableval
=$enable_rpath; :
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6761 $as_echo_n "checking for ANSI C header files... " >&6; }
6762 if ${ac_cv_header_stdc+:} false
; then :
6763 $as_echo_n "(cached) " >&6
6765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6780 if ac_fn_c_try_compile
"$LINENO"; then :
6781 ac_cv_header_stdc
=yes
6783 ac_cv_header_stdc
=no
6785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6787 if test $ac_cv_header_stdc = yes; then
6788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6795 $EGREP "memchr" >/dev
/null
2>&1; then :
6798 ac_cv_header_stdc
=no
6804 if test $ac_cv_header_stdc = yes; then
6805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "free" >/dev
/null
2>&1; then :
6815 ac_cv_header_stdc
=no
6821 if test $ac_cv_header_stdc = yes; then
6822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6823 if test "$cross_compiling" = yes; then :
6826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6830 #if ((' ' & 0x0FF) == 0x020)
6831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6834 # define ISLOWER(c) \
6835 (('a' <= (c) && (c) <= 'i') \
6836 || ('j' <= (c) && (c) <= 'r') \
6837 || ('s' <= (c) && (c) <= 'z'))
6838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6846 for (i = 0; i < 256; i++)
6847 if (XOR (islower (i), ISLOWER (i))
6848 || toupper (i) != TOUPPER (i))
6853 if ac_fn_c_try_run
"$LINENO"; then :
6856 ac_cv_header_stdc
=no
6858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6865 $as_echo "$ac_cv_header_stdc" >&6; }
6866 if test $ac_cv_header_stdc = yes; then
6868 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6872 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6873 # for constant arguments. Useless!
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6875 $as_echo_n "checking for working alloca.h... " >&6; }
6876 if ${ac_cv_working_alloca_h+:} false
; then :
6877 $as_echo_n "(cached) " >&6
6879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6885 char *p = (char *) alloca (2 * sizeof (int));
6891 if ac_fn_c_try_link
"$LINENO"; then :
6892 ac_cv_working_alloca_h
=yes
6894 ac_cv_working_alloca_h
=no
6896 rm -f core conftest.err conftest.
$ac_objext \
6897 conftest
$ac_exeext conftest.
$ac_ext
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6900 $as_echo "$ac_cv_working_alloca_h" >&6; }
6901 if test $ac_cv_working_alloca_h = yes; then
6903 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6908 $as_echo_n "checking for alloca... " >&6; }
6909 if ${ac_cv_func_alloca_works+:} false
; then :
6910 $as_echo_n "(cached) " >&6
6912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6915 # define alloca __builtin_alloca
6918 # include <malloc.h>
6919 # define alloca _alloca
6921 # ifdef HAVE_ALLOCA_H
6922 # include <alloca.h>
6927 # ifndef alloca /* predefined by HP cc +Olibcalls */
6928 void *alloca (size_t);
6938 char *p = (char *) alloca (1);
6944 if ac_fn_c_try_link
"$LINENO"; then :
6945 ac_cv_func_alloca_works
=yes
6947 ac_cv_func_alloca_works
=no
6949 rm -f core conftest.err conftest.
$ac_objext \
6950 conftest
$ac_exeext conftest.
$ac_ext
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6953 $as_echo "$ac_cv_func_alloca_works" >&6; }
6955 if test $ac_cv_func_alloca_works = yes; then
6957 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6960 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6961 # that cause trouble. Some versions do not even contain alloca or
6962 # contain a buggy version. If you still want to use their alloca,
6963 # use ar to extract alloca.o from them instead of compiling alloca.c.
6965 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6967 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6971 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6972 if ${ac_cv_os_cray+:} false
; then :
6973 $as_echo_n "(cached) " >&6
6975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6977 #if defined CRAY && ! defined CRAY2
6984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6985 $EGREP "webecray" >/dev
/null
2>&1; then :
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6994 $as_echo "$ac_cv_os_cray" >&6; }
6995 if test $ac_cv_os_cray = yes; then
6996 for ac_func
in _getb67 GETB67 getb67
; do
6997 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6998 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6999 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7001 cat >>confdefs.h
<<_ACEOF
7002 #define CRAY_STACKSEG_END $ac_func
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7012 $as_echo_n "checking stack direction for C alloca... " >&6; }
7013 if ${ac_cv_c_stack_direction+:} false
; then :
7014 $as_echo_n "(cached) " >&6
7016 if test "$cross_compiling" = yes; then :
7017 ac_cv_c_stack_direction
=0
7019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021 $ac_includes_default
7023 find_stack_direction (int *addr, int depth)
7028 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7029 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7034 main (int argc, char **argv)
7036 return find_stack_direction (0, argc + !argv + 20) < 0;
7039 if ac_fn_c_try_run
"$LINENO"; then :
7040 ac_cv_c_stack_direction
=1
7042 ac_cv_c_stack_direction
=-1
7044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7045 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7050 $as_echo "$ac_cv_c_stack_direction" >&6; }
7051 cat >>confdefs.h
<<_ACEOF
7052 #define STACK_DIRECTION $ac_cv_c_stack_direction
7063 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7065 WIN32APILIBS
="-lws2_32"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7071 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7072 if ${am_cv_langinfo_codeset+:} false
; then :
7073 $as_echo_n "(cached) " >&6
7075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077 #include <langinfo.h>
7081 char* cs = nl_langinfo(CODESET);
7086 if ac_fn_c_try_link
"$LINENO"; then :
7087 am_cv_langinfo_codeset
=yes
7089 am_cv_langinfo_codeset
=no
7091 rm -f core conftest.err conftest.
$ac_objext \
7092 conftest
$ac_exeext conftest.
$ac_ext
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7096 $as_echo "$am_cv_langinfo_codeset" >&6; }
7097 if test $am_cv_langinfo_codeset = yes; then
7099 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7104 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
7106 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7107 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7108 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7109 cat >>confdefs.h
<<_ACEOF
7110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7119 for ac_func
in getpagesize
7121 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7122 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7123 cat >>confdefs.h
<<_ACEOF
7124 #define HAVE_GETPAGESIZE 1
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7131 $as_echo_n "checking for working mmap... " >&6; }
7132 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7133 $as_echo_n "(cached) " >&6
7135 if test "$cross_compiling" = yes; then :
7136 ac_cv_func_mmap_fixed_mapped
=no
7138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 $ac_includes_default
7141 /* malloc might have been renamed as rpl_malloc. */
7144 /* Thanks to Mike Haertel and Jim Avera for this test.
7145 Here is a matrix of mmap possibilities:
7146 mmap private not fixed
7147 mmap private fixed at somewhere currently unmapped
7148 mmap private fixed at somewhere already mapped
7149 mmap shared not fixed
7150 mmap shared fixed at somewhere currently unmapped
7151 mmap shared fixed at somewhere already mapped
7152 For private mappings, we should verify that changes cannot be read()
7153 back from the file, nor mmap's back from the file at a different
7154 address. (There have been systems where private was not correctly
7155 implemented like the infamous i386 svr4.0, and systems where the
7156 VM page cache was not coherent with the file system buffer cache
7157 like early versions of FreeBSD and possibly contemporary NetBSD.)
7158 For shared mappings, we should conversely verify that changes get
7159 propagated back to all the places they're supposed to be.
7161 Grep wants private fixed already mapped.
7162 The main things grep needs to know about mmap are:
7163 * does it exist and is it safe to write into the mmap'd area
7164 * how to use it (BSD variants) */
7167 #include <sys/mman.h>
7169 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7173 /* This mess was copied from the GNU getpagesize.h. */
7174 #ifndef HAVE_GETPAGESIZE
7175 # ifdef _SC_PAGESIZE
7176 # define getpagesize() sysconf(_SC_PAGESIZE)
7177 # else /* no _SC_PAGESIZE */
7178 # ifdef HAVE_SYS_PARAM_H
7179 # include <sys/param.h>
7180 # ifdef EXEC_PAGESIZE
7181 # define getpagesize() EXEC_PAGESIZE
7182 # else /* no EXEC_PAGESIZE */
7184 # define getpagesize() NBPG * CLSIZE
7187 # endif /* no CLSIZE */
7188 # else /* no NBPG */
7190 # define getpagesize() NBPC
7191 # else /* no NBPC */
7193 # define getpagesize() PAGESIZE
7194 # endif /* PAGESIZE */
7195 # endif /* no NBPC */
7196 # endif /* no NBPG */
7197 # endif /* no EXEC_PAGESIZE */
7198 # else /* no HAVE_SYS_PARAM_H */
7199 # define getpagesize() 8192 /* punt totally */
7200 # endif /* no HAVE_SYS_PARAM_H */
7201 # endif /* no _SC_PAGESIZE */
7203 #endif /* no HAVE_GETPAGESIZE */
7208 char *data, *data2, *data3;
7213 pagesize = getpagesize ();
7215 /* First, make a file with some known garbage in it. */
7216 data = (char *) malloc (pagesize);
7219 for (i = 0; i < pagesize; ++i)
7220 *(data + i) = rand ();
7222 fd = creat ("conftest.mmap", 0600);
7225 if (write (fd, data, pagesize) != pagesize)
7229 /* Next, check that the tail of a page is zero-filled. File must have
7230 non-zero length, otherwise we risk SIGBUS for entire page. */
7231 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7235 if (write (fd2, cdata2, 1) != 1)
7237 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7238 if (data2 == MAP_FAILED)
7240 for (i = 0; i < pagesize; ++i)
7244 if (munmap (data2, pagesize))
7247 /* Next, try to mmap the file at a fixed address which already has
7248 something else allocated at it. If we can, also make sure that
7249 we see the same garbage. */
7250 fd = open ("conftest.mmap", O_RDWR);
7253 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7254 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7256 for (i = 0; i < pagesize; ++i)
7257 if (*(data + i) != *(data2 + i))
7260 /* Finally, make sure that changes to the mapped area do not
7261 percolate back to the file as seen by read(). (This is a bug on
7262 some variants of i386 svr4.0.) */
7263 for (i = 0; i < pagesize; ++i)
7264 *(data2 + i) = *(data2 + i) + 1;
7265 data3 = (char *) malloc (pagesize);
7268 if (read (fd, data3, pagesize) != pagesize)
7270 for (i = 0; i < pagesize; ++i)
7271 if (*(data + i) != *(data3 + i))
7277 if ac_fn_c_try_run
"$LINENO"; then :
7278 ac_cv_func_mmap_fixed_mapped
=yes
7280 ac_cv_func_mmap_fixed_mapped
=no
7282 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7283 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7288 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7289 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7291 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7294 rm -f conftest.mmap conftest.txt
7296 for ac_header
in vfork.h
7298 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7299 if test "x$ac_cv_header_vfork_h" = xyes
; then :
7300 cat >>confdefs.h
<<_ACEOF
7301 #define HAVE_VFORK_H 1
7308 for ac_func
in fork vfork
7310 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7311 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7312 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7313 cat >>confdefs.h
<<_ACEOF
7314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7320 if test "x$ac_cv_func_fork" = xyes
; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7322 $as_echo_n "checking for working fork... " >&6; }
7323 if ${ac_cv_func_fork_works+:} false
; then :
7324 $as_echo_n "(cached) " >&6
7326 if test "$cross_compiling" = yes; then :
7327 ac_cv_func_fork_works
=cross
7329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 $ac_includes_default
7336 /* By Ruediger Kuhlmann. */
7343 if ac_fn_c_try_run
"$LINENO"; then :
7344 ac_cv_func_fork_works
=yes
7346 ac_cv_func_fork_works
=no
7348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7354 $as_echo "$ac_cv_func_fork_works" >&6; }
7357 ac_cv_func_fork_works
=$ac_cv_func_fork
7359 if test "x$ac_cv_func_fork_works" = xcross
; then
7361 *-*-amigaos* |
*-*-msdosdjgpp*)
7362 # Override, as these systems have only a dummy fork() stub
7363 ac_cv_func_fork_works
=no
7366 ac_cv_func_fork_works
=yes
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7370 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7372 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7373 if test "x$ac_cv_func_vfork" = xyes
; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7375 $as_echo_n "checking for working vfork... " >&6; }
7376 if ${ac_cv_func_vfork_works+:} false
; then :
7377 $as_echo_n "(cached) " >&6
7379 if test "$cross_compiling" = yes; then :
7380 ac_cv_func_vfork_works
=cross
7382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384 /* Thanks to Paul Eggert for this test. */
7385 $ac_includes_default
7386 #include <sys/wait.h>
7390 /* On some sparc systems, changes by the child to local and incoming
7391 argument registers are propagated back to the parent. The compiler
7392 is told about this with #include <vfork.h>, but some compilers
7393 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7394 static variable whose address is put into a register that is
7395 clobbered by the vfork. */
7398 sparc_address_test (int arg)
7400 sparc_address_test (arg) int arg;
7421 pid_t parent = getpid ();
7424 sparc_address_test (0);
7429 /* Here is another test for sparc vfork register problems. This
7430 test uses lots of local variables, at least as many local
7431 variables as main has allocated so far including compiler
7432 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7433 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7434 reuse the register of parent for one of the local variables,
7435 since it will think that parent can't possibly be used any more
7436 in this routine. Assigning to the local variable will thus
7437 munge parent in the parent process. */
7439 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7440 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7441 /* Convince the compiler that p..p7 are live; otherwise, it might
7442 use the same hardware register for all 8 local variables. */
7443 if (p != p1 || p != p2 || p != p3 || p != p4
7444 || p != p5 || p != p6 || p != p7)
7447 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7448 from child file descriptors. If the child closes a descriptor
7449 before it execs or exits, this munges the parent's descriptor
7450 as well. Test for this by closing stdout in the child. */
7451 _exit(close(fileno(stdout)) != 0);
7456 while (wait(&status) != child)
7459 /* Was there some problem with vforking? */
7462 /* Did the child fail? (This shouldn't happen.) */
7465 /* Did the vfork/compiler bug occur? */
7466 || parent != getpid()
7468 /* Did the file descriptor bug occur? */
7469 || fstat(fileno(stdout), &st) != 0
7474 if ac_fn_c_try_run
"$LINENO"; then :
7475 ac_cv_func_vfork_works
=yes
7477 ac_cv_func_vfork_works
=no
7479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7485 $as_echo "$ac_cv_func_vfork_works" >&6; }
7488 if test "x$ac_cv_func_fork_works" = xcross
; then
7489 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7491 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7494 if test "x$ac_cv_func_vfork_works" = xyes
; then
7496 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7500 $as_echo "#define vfork fork" >>confdefs.h
7503 if test "x$ac_cv_func_fork_works" = xyes
; then
7505 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7509 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
7510 ptrace64 sbrk setns sigaltstack sigprocmask \
7511 setpgid setpgrp getrusage getauxval
7513 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7514 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7515 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7516 cat >>confdefs.h
<<_ACEOF
7517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7524 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7526 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
7532 cat >>confdefs.h
<<_ACEOF
7533 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7537 if test "$cross_compiling" = yes; then :
7538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <sys/personality.h>
7545 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7546 # define ADDR_NO_RANDOMIZE 0x0040000
7548 /* Test the flag could be set and stays set. */
7549 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7550 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7556 if ac_fn_c_try_link
"$LINENO"; then :
7557 have_personality
=true
7559 have_personality
=false
7561 rm -f core conftest.err conftest.
$ac_objext \
7562 conftest
$ac_exeext conftest.
$ac_ext
7564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 #include <sys/personality.h>
7571 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7572 # define ADDR_NO_RANDOMIZE 0x0040000
7574 /* Test the flag could be set and stays set. */
7575 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7576 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7582 if ac_fn_c_try_run
"$LINENO"; then :
7583 have_personality
=true
7585 have_personality
=false
7587 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7588 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7591 if $have_personality
7594 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7598 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7599 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7605 cat >>confdefs.h
<<_ACEOF
7606 #define HAVE_DECL_STRSTR $ac_have_decl
7610 # ----------------------- #
7611 # Checks for structures. #
7612 # ----------------------- #
7614 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7615 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7617 cat >>confdefs.h
<<_ACEOF
7618 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7623 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7624 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7626 cat >>confdefs.h
<<_ACEOF
7627 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7635 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7636 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7637 $as_echo_n "(cached) " >&6
7639 ac_func_search_save_LIBS
=$LIBS
7640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7649 char kinfo_getfile ();
7653 return kinfo_getfile ();
7658 for ac_lib
in '' util util-freebsd
; do
7659 if test -z "$ac_lib"; then
7660 ac_res
="none required"
7663 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7665 if ac_fn_c_try_link
"$LINENO"; then :
7666 ac_cv_search_kinfo_getfile
=$ac_res
7668 rm -f core conftest.err conftest.
$ac_objext \
7670 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7674 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7677 ac_cv_search_kinfo_getfile
=no
7680 LIBS
=$ac_func_search_save_LIBS
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7683 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7684 ac_res
=$ac_cv_search_kinfo_getfile
7685 if test "$ac_res" != no
; then :
7686 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7688 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7693 # Check for std::thread. This does not work on some platforms, like
7696 ac_cpp
='$CXXCPP $CPPFLAGS'
7697 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7706 ac_cpp
='$CPP $CPPFLAGS'
7707 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7713 # We used to check for pthread.h first, but this fails if pthread.h
7714 # requires special compiler flags (e.g. on Tru64 or Sequent).
7715 # It gets checked for in the link test anyway.
7717 # First of all, check if the user has set any of the PTHREAD_LIBS,
7718 # etcetera environment variables, and if threads linking works using
7720 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7721 ax_pthread_save_CC
="$CC"
7722 ax_pthread_save_CFLAGS
="$CFLAGS"
7723 ax_pthread_save_LIBS
="$LIBS"
7724 if test "x$PTHREAD_CC" != "x"; then :
7727 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7728 LIBS
="$PTHREAD_LIBS $LIBS"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7730 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7734 /* Override any GCC internal prototype to avoid an error.
7735 Use char because int might match the return type of a GCC
7736 builtin and then its argument prototype would still apply. */
7740 char pthread_join ();
7744 return pthread_join ();
7749 if ac_fn_c_try_link
"$LINENO"; then :
7752 rm -f core conftest.err conftest.
$ac_objext \
7753 conftest
$ac_exeext conftest.
$ac_ext
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7755 $as_echo "$ax_pthread_ok" >&6; }
7756 if test "x$ax_pthread_ok" = "xno"; then
7760 CC
="$ax_pthread_save_CC"
7761 CFLAGS
="$ax_pthread_save_CFLAGS"
7762 LIBS
="$ax_pthread_save_LIBS"
7765 # We must check for the threads library under a number of different
7766 # names; the ordering is very important because some systems
7767 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7768 # libraries is broken (non-POSIX).
7770 # Create a list of thread flags to try. Items starting with a "-" are
7771 # C compiler flags, and other items are library names, except for "none"
7772 # which indicates that we try without any flags at all, and "pthread-config"
7773 # which is a program returning the flags for the Pth emulation library.
7775 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7777 # The ordering *is* (sometimes) important. Some notes on the
7778 # individual items follow:
7780 # pthreads: AIX (must check this before -lpthread)
7781 # none: in case threads are in libc; should be tried before -Kthread and
7782 # other compiler flags to prevent continual compiler warnings
7783 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7784 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7785 # (Note: HP C rejects this with "bad form for `-t' option")
7786 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7787 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7788 # doesn't hurt to check since this sometimes defines pthreads and
7789 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7790 # is present but should not be used directly; and before -mthreads,
7791 # because the compiler interprets this as "-mt" + "-hreads")
7792 # -mthreads: Mingw32/gcc, Lynx/gcc
7793 # pthread: Linux, etcetera
7794 # --thread-safe: KAI C++
7795 # pthread-config: use pthread-config program (for GNU Pth library)
7801 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7802 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7804 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7809 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7810 # multi-threading and also sets -lpthread."
7812 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7817 # IBM z/OS requires a feature-test macro to be defined in order to
7818 # enable POSIX threads at all, so give the user a hint if this is
7819 # not set. (We don't define these ourselves, as they can affect
7820 # other portions of the system API in unpredictable ways.)
7822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7825 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7826 AX_PTHREAD_ZOS_MISSING
7830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7831 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7833 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7841 # On Solaris (at least, for some versions), libc contains stubbed
7842 # (non-functional) versions of the pthreads routines, so link-based
7843 # tests will erroneously succeed. (N.B.: The stubs are missing
7844 # pthread_cleanup_push, or rather a function called by this macro,
7845 # so we could check for that, but who knows whether they'll stub
7846 # that too in a future libc.) So we'll check first for the
7847 # standard Solaris way of linking pthreads (-mt -lpthread).
7849 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7853 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7855 if test "x$GCC" = "xyes"; then :
7856 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7859 # The presence of a feature test macro requesting re-entrant function
7860 # definitions is, on some systems, a strong hint that pthreads support is
7864 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7865 ax_pthread_check_macro
="_REENTRANT"
7869 ax_pthread_check_macro
="_THREAD_SAFE"
7873 ax_pthread_check_macro
="--"
7876 if test "x$ax_pthread_check_macro" = "x--"; then :
7877 ax_pthread_check_cond
=0
7879 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7882 # Are we compiling with Clang?
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7885 $as_echo_n "checking whether $CC is Clang... " >&6; }
7886 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7887 $as_echo_n "(cached) " >&6
7889 ax_cv_PTHREAD_CLANG
=no
7890 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7891 if test "x$GCC" = "xyes"; then
7892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7895 # if defined(__clang__) && defined(__llvm__)
7896 AX_PTHREAD_CC_IS_CLANG
7900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7901 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
7902 ax_cv_PTHREAD_CLANG
=yes
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7910 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7911 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
7913 ax_pthread_clang_warning
=no
7915 # Clang needs special handling, because older versions handle the -pthread
7916 # option in a rather... idiosyncratic way
7918 if test "x$ax_pthread_clang" = "xyes"; then
7920 # Clang takes -pthread; it has never supported any other flag
7922 # (Note 1: This will need to be revisited if a system that Clang
7923 # supports has POSIX threads in a separate library. This tends not
7924 # to be the way of modern systems, but it's conceivable.)
7926 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7927 # to get POSIX threads support; the API is always present and
7928 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7929 # -pthread does define _REENTRANT, and while the Darwin headers
7930 # ignore this macro, third-party headers might not.)
7932 PTHREAD_CFLAGS
="-pthread"
7937 # However, older versions of Clang make a point of warning the user
7938 # that, in an invocation where only linking and no compilation is
7939 # taking place, the -pthread option has no effect ("argument unused
7940 # during compilation"). They expect -pthread to be passed in only
7941 # when source code is being compiled.
7943 # Problem is, this is at odds with the way Automake and most other
7944 # C build frameworks function, which is that the same flags used in
7945 # compilation (CFLAGS) are also used in linking. Many systems
7946 # supported by AX_PTHREAD require exactly this for POSIX threads
7947 # support, and in fact it is often not straightforward to specify a
7948 # flag that is used only in the compilation phase and not in
7949 # linking. Such a scenario is extremely rare in practice.
7951 # Even though use of the -pthread flag in linking would only print
7952 # a warning, this can be a nuisance for well-run software projects
7953 # that build with -Werror. So if the active version of Clang has
7954 # this misfeature, we search for an option to squash it.
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7957 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7958 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
7959 $as_echo_n "(cached) " >&6
7961 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
7962 # Create an alternate version of $ac_link that compiles and
7963 # links in two steps (.c -> .o, .o -> exe) instead of one
7964 # (.c -> exe), because the warning occurs only in the second
7966 ax_pthread_save_ac_link
="$ac_link"
7967 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7968 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7969 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7970 ax_pthread_save_CFLAGS
="$CFLAGS"
7971 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
7972 if test "x$ax_pthread_try" = "xunknown"; then :
7975 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7976 ac_link
="$ax_pthread_save_ac_link"
7977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 int main(void){return 0;}
7981 if ac_fn_c_try_link
"$LINENO"; then :
7982 ac_link
="$ax_pthread_2step_ac_link"
7983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 int main(void){return 0;}
7987 if ac_fn_c_try_link
"$LINENO"; then :
7990 rm -f core conftest.err conftest.
$ac_objext \
7991 conftest
$ac_exeext conftest.
$ac_ext
7994 rm -f core conftest.err conftest.
$ac_objext \
7995 conftest
$ac_exeext conftest.
$ac_ext
7997 ac_link
="$ax_pthread_save_ac_link"
7998 CFLAGS
="$ax_pthread_save_CFLAGS"
7999 if test "x$ax_pthread_try" = "x"; then :
8002 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8006 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8008 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8010 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8013 fi # $ax_pthread_clang = yes
8015 if test "x$ax_pthread_ok" = "xno"; then
8016 for ax_pthread_try_flag
in $ax_pthread_flags; do
8018 case $ax_pthread_try_flag in
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8021 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8026 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8027 PTHREAD_CFLAGS
="-mt"
8028 PTHREAD_LIBS
="-lpthread"
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8033 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8034 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
8038 # Extract the first word of "pthread-config", so it can be a program name with args.
8039 set dummy pthread-config
; ac_word
=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8043 $as_echo_n "(cached) " >&6
8045 if test -n "$ax_pthread_config"; then
8046 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir
=.
8053 for ac_exec_ext
in '' $ac_executable_extensions; do
8054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8055 ac_cv_prog_ax_pthread_config
="yes"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8066 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8067 if test -n "$ax_pthread_config"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8069 $as_echo "$ax_pthread_config" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8076 if test "x$ax_pthread_config" = "xno"; then :
8079 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8080 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8085 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8086 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
8090 ax_pthread_save_CFLAGS
="$CFLAGS"
8091 ax_pthread_save_LIBS
="$LIBS"
8092 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8093 LIBS
="$PTHREAD_LIBS $LIBS"
8095 # Check for various functions. We must include pthread.h,
8096 # since some functions may be macros. (On the Sequent, we
8097 # need a special flag -Kthread to make this header compile.)
8098 # We check for pthread_join because it is in -lpthread on IRIX
8099 # while pthread_create is in libc. We check for pthread_attr_init
8100 # due to DEC craziness with -lpthreads. We check for
8101 # pthread_cleanup_push because it is one of the few pthread
8102 # functions on Solaris that doesn't have a non-functional libc stub.
8103 # We try pthread_create on general principles.
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 #include <pthread.h>
8108 # if $ax_pthread_check_cond
8109 # error "$ax_pthread_check_macro must be defined"
8111 static void routine(void *a) { a = 0; }
8112 static void *start_routine(void *a) { return a; }
8116 pthread_t th; pthread_attr_t attr;
8117 pthread_create(&th, 0, start_routine, 0);
8118 pthread_join(th, 0);
8119 pthread_attr_init(&attr);
8120 pthread_cleanup_push(routine, 0);
8121 pthread_cleanup_pop(0) /* ; */
8126 if ac_fn_c_try_link
"$LINENO"; then :
8129 rm -f core conftest.err conftest.
$ac_objext \
8130 conftest
$ac_exeext conftest.
$ac_ext
8132 CFLAGS
="$ax_pthread_save_CFLAGS"
8133 LIBS
="$ax_pthread_save_LIBS"
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8136 $as_echo "$ax_pthread_ok" >&6; }
8137 if test "x$ax_pthread_ok" = "xyes"; then :
8146 # Various other checks:
8147 if test "x$ax_pthread_ok" = "xyes"; then
8148 ax_pthread_save_CFLAGS
="$CFLAGS"
8149 ax_pthread_save_LIBS
="$LIBS"
8150 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8151 LIBS
="$PTHREAD_LIBS $LIBS"
8153 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8155 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8156 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
8157 $as_echo_n "(cached) " >&6
8159 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
8160 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 #include <pthread.h>
8167 int attr = $ax_pthread_attr; return attr /* ; */
8172 if ac_fn_c_try_link
"$LINENO"; then :
8173 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
8175 rm -f core conftest.err conftest.
$ac_objext \
8176 conftest
$ac_exeext conftest.
$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8181 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8182 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8183 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8184 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8186 cat >>confdefs.h
<<_ACEOF
8187 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8190 ax_pthread_joinable_attr_defined
=yes
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8195 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8196 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
8197 $as_echo_n "(cached) " >&6
8199 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
8202 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8208 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8209 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8210 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8211 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8212 ax_pthread_special_flags_added
=yes
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8216 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8217 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8218 $as_echo_n "(cached) " >&6
8220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 #include <pthread.h>
8226 int i = PTHREAD_PRIO_INHERIT;
8231 if ac_fn_c_try_link
"$LINENO"; then :
8232 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8234 ax_cv_PTHREAD_PRIO_INHERIT
=no
8236 rm -f core conftest.err conftest.
$ac_objext \
8237 conftest
$ac_exeext conftest.
$ac_ext
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8241 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8242 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8243 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8245 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8247 ax_pthread_prio_inherit_defined
=yes
8251 CFLAGS
="$ax_pthread_save_CFLAGS"
8252 LIBS
="$ax_pthread_save_LIBS"
8254 # More AIX lossage: compile with *_r variant
8255 if test "x$GCC" != "xyes"; then
8259 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
8260 #handle absolute path differently from PATH based program lookup
8263 if as_fn_executable_p
${CC}_r
; then :
8264 PTHREAD_CC
="${CC}_r"
8267 for ac_prog
in ${CC}_r
8269 # Extract the first word of "$ac_prog", so it can be a program name with args.
8270 set dummy
$ac_prog; ac_word
=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8274 $as_echo_n "(cached) " >&6
8276 if test -n "$PTHREAD_CC"; then
8277 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8283 test -z "$as_dir" && as_dir
=.
8284 for ac_exec_ext
in '' $ac_executable_extensions; do
8285 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8297 if test -n "$PTHREAD_CC"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8299 $as_echo "$PTHREAD_CC" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8306 test -n "$PTHREAD_CC" && break
8308 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8319 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8325 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8326 if test "x$ax_pthread_ok" = "xyes"; then
8334 ac_cpp
='$CXXCPP $CPPFLAGS'
8335 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8340 if test "$threads" = "yes"; then
8342 LIBS
="$PTHREAD_LIBS $LIBS"
8343 save_CXXFLAGS
="$CXXFLAGS"
8344 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
8346 $as_echo_n "checking for std::thread... " >&6; }
8347 if ${gdb_cv_cxx_std_thread+:} false
; then :
8348 $as_echo_n "(cached) " >&6
8350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8357 std::thread t(callback);
8362 if ac_fn_cxx_try_compile
"$LINENO"; then :
8363 gdb_cv_cxx_std_thread
=yes
8365 gdb_cv_cxx_std_thread
=no
8367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
8370 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
8372 # This check must be here, while LIBS includes any necessary
8373 # threading library.
8374 for ac_func
in pthread_sigmask pthread_setname_np
8376 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8377 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8378 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8379 cat >>confdefs.h
<<_ACEOF
8380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8388 CXXFLAGS
="$save_CXXFLAGS"
8390 if test "$gdb_cv_cxx_std_thread" = "yes"; then
8392 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
8396 ac_cpp
='$CPP $CPPFLAGS'
8397 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8398 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8399 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
8403 $as_echo_n "checking for sigsetjmp... " >&6; }
8404 if ${gdb_cv_func_sigsetjmp+:} false
; then :
8405 $as_echo_n "(cached) " >&6
8407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8415 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
8420 if ac_fn_c_try_compile
"$LINENO"; then :
8421 gdb_cv_func_sigsetjmp
=yes
8423 gdb_cv_func_sigsetjmp
=no
8425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8428 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8429 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8431 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8436 # Check whether --with-intel_pt was given.
8437 if test "${with_intel_pt+set}" = set; then :
8438 withval
=$with_intel_pt;
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
8444 $as_echo_n "checking whether to use intel pt... " >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
8446 $as_echo "$with_intel_pt" >&6; }
8448 if test "${with_intel_pt}" = no
; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
8450 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
8453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8456 #include <linux/perf_event.h>
8457 #ifndef PERF_ATTR_SIZE_VER5
8462 if ac_fn_c_try_cpp
"$LINENO"; then :
8467 rm -f conftest.err conftest.i conftest.
$ac_ext
8468 if test "$perf_event" != yes; then
8469 if test "$with_intel_pt" = yes; then
8470 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
8473 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
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 eval additional_includedir
=\"$includedir\"
8493 eval additional_libdir
=\"$libdir\"
8495 exec_prefix
="$acl_save_exec_prefix"
8496 prefix
="$acl_save_prefix"
8499 # Check whether --with-libipt-prefix was given.
8500 if test "${with_libipt_prefix+set}" = set; then :
8501 withval
=$with_libipt_prefix;
8502 if test "X$withval" = "Xno"; then
8505 if test "X$withval" = "X"; then
8507 acl_save_prefix
="$prefix"
8508 prefix
="$acl_final_prefix"
8509 acl_save_exec_prefix
="$exec_prefix"
8510 exec_prefix
="$acl_final_exec_prefix"
8512 eval additional_includedir
=\"$includedir\"
8513 eval additional_libdir
=\"$libdir\"
8515 exec_prefix
="$acl_save_exec_prefix"
8516 prefix
="$acl_save_prefix"
8519 additional_includedir
="$withval/include"
8520 additional_libdir
="$withval/lib"
8527 # Check whether --with-libipt-type was given.
8528 if test "${with_libipt_type+set}" = set; then :
8529 withval
=$with_libipt_type; with_libipt_type
=$withval
8531 with_libipt_type
=auto
8534 lib_type
=`eval echo \$with_libipt_type`
8541 names_already_handled
=
8542 names_next_round
='ipt '
8543 while test -n "$names_next_round"; do
8544 names_this_round
="$names_next_round"
8546 for name
in $names_this_round; do
8548 for n
in $names_already_handled; do
8549 if test "$n" = "$name"; then
8554 if test -z "$already_handled"; then
8555 names_already_handled
="$names_already_handled $name"
8556 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8557 eval value
=\"\
$HAVE_LIB$uppername\"
8558 if test -n "$value"; then
8559 if test "$value" = yes; then
8560 eval value
=\"\
$LIB$uppername\"
8561 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
8562 eval value
=\"\
$LTLIB$uppername\"
8563 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
8572 if test $use_additional = yes; then
8573 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8574 found_dir
="$additional_libdir"
8575 found_so
="$additional_libdir/lib$name.$shlibext"
8576 if test -f "$additional_libdir/lib$name.la"; then
8577 found_la
="$additional_libdir/lib$name.la"
8579 elif test x
$lib_type != xshared
; then
8580 if test -f "$additional_libdir/lib$name.$libext"; then
8581 found_dir
="$additional_libdir"
8582 found_a
="$additional_libdir/lib$name.$libext"
8583 if test -f "$additional_libdir/lib$name.la"; then
8584 found_la
="$additional_libdir/lib$name.la"
8589 if test "X$found_dir" = "X"; then
8590 for x
in $LDFLAGS $LTLIBIPT; do
8592 acl_save_prefix
="$prefix"
8593 prefix
="$acl_final_prefix"
8594 acl_save_exec_prefix
="$exec_prefix"
8595 exec_prefix
="$acl_final_exec_prefix"
8597 exec_prefix
="$acl_save_exec_prefix"
8598 prefix
="$acl_save_prefix"
8602 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8603 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8605 found_so
="$dir/lib$name.$shlibext"
8606 if test -f "$dir/lib$name.la"; then
8607 found_la
="$dir/lib$name.la"
8609 elif test x
$lib_type != xshared
; then
8610 if test -f "$dir/lib$name.$libext"; then
8612 found_a
="$dir/lib$name.$libext"
8613 if test -f "$dir/lib$name.la"; then
8614 found_la
="$dir/lib$name.la"
8620 if test "X$found_dir" != "X"; then
8625 if test "X$found_dir" != "X"; then
8626 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
8627 if test "X$found_so" != "X"; then
8628 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8629 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8632 for x
in $ltrpathdirs; do
8633 if test "X$x" = "X$found_dir"; then
8638 if test -z "$haveit"; then
8639 ltrpathdirs
="$ltrpathdirs $found_dir"
8641 if test "$hardcode_direct" = yes; then
8642 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8644 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8645 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8647 for x
in $rpathdirs; do
8648 if test "X$x" = "X$found_dir"; then
8653 if test -z "$haveit"; then
8654 rpathdirs
="$rpathdirs $found_dir"
8658 for x
in $LDFLAGS $LIBIPT; do
8660 acl_save_prefix
="$prefix"
8661 prefix
="$acl_final_prefix"
8662 acl_save_exec_prefix
="$exec_prefix"
8663 exec_prefix
="$acl_final_exec_prefix"
8665 exec_prefix
="$acl_save_exec_prefix"
8666 prefix
="$acl_save_prefix"
8668 if test "X$x" = "X-L$found_dir"; then
8673 if test -z "$haveit"; then
8674 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
8676 if test "$hardcode_minus_L" != no
; then
8677 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8679 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8685 if test "X$found_a" != "X"; then
8686 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
8688 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
8691 additional_includedir
=
8692 case "$found_dir" in
8694 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8695 additional_includedir
="$basedir/include"
8698 if test "X$additional_includedir" != "X"; then
8699 if test "X$additional_includedir" != "X/usr/include"; then
8701 if test "X$additional_includedir" = "X/usr/local/include"; then
8702 if test -n "$GCC"; then
8704 linux
*) haveit
=yes;;
8708 if test -z "$haveit"; then
8709 for x
in $CPPFLAGS $INCIPT; do
8711 acl_save_prefix
="$prefix"
8712 prefix
="$acl_final_prefix"
8713 acl_save_exec_prefix
="$exec_prefix"
8714 exec_prefix
="$acl_final_exec_prefix"
8716 exec_prefix
="$acl_save_exec_prefix"
8717 prefix
="$acl_save_prefix"
8719 if test "X$x" = "X-I$additional_includedir"; then
8724 if test -z "$haveit"; then
8725 if test -d "$additional_includedir"; then
8726 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
8732 if test -n "$found_la"; then
8733 save_libdir
="$libdir"
8735 */* |
*\\*) .
"$found_la" ;;
8736 *) .
"./$found_la" ;;
8738 libdir
="$save_libdir"
8739 for dep
in $dependency_libs; do
8742 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8743 if test "X$additional_libdir" != "X/usr/lib"; then
8745 if test "X$additional_libdir" = "X/usr/local/lib"; then
8746 if test -n "$GCC"; then
8748 linux
*) haveit
=yes;;
8752 if test -z "$haveit"; then
8754 for x
in $LDFLAGS $LIBIPT; do
8756 acl_save_prefix
="$prefix"
8757 prefix
="$acl_final_prefix"
8758 acl_save_exec_prefix
="$exec_prefix"
8759 exec_prefix
="$acl_final_exec_prefix"
8761 exec_prefix
="$acl_save_exec_prefix"
8762 prefix
="$acl_save_prefix"
8764 if test "X$x" = "X-L$additional_libdir"; then
8769 if test -z "$haveit"; then
8770 if test -d "$additional_libdir"; then
8771 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
8775 for x
in $LDFLAGS $LTLIBIPT; do
8777 acl_save_prefix
="$prefix"
8778 prefix
="$acl_final_prefix"
8779 acl_save_exec_prefix
="$exec_prefix"
8780 exec_prefix
="$acl_final_exec_prefix"
8782 exec_prefix
="$acl_save_exec_prefix"
8783 prefix
="$acl_save_prefix"
8785 if test "X$x" = "X-L$additional_libdir"; then
8790 if test -z "$haveit"; then
8791 if test -d "$additional_libdir"; then
8792 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
8799 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8800 if test "$enable_rpath" != no
; then
8802 for x
in $rpathdirs; do
8803 if test "X$x" = "X$dir"; then
8808 if test -z "$haveit"; then
8809 rpathdirs
="$rpathdirs $dir"
8812 for x
in $ltrpathdirs; do
8813 if test "X$x" = "X$dir"; then
8818 if test -z "$haveit"; then
8819 ltrpathdirs
="$ltrpathdirs $dir"
8824 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8827 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8830 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
8831 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
8837 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8838 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8839 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
8841 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
8842 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
8849 if test "X$rpathdirs" != "X"; then
8850 if test -n "$hardcode_libdir_separator"; then
8852 for found_dir
in $rpathdirs; do
8853 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8855 acl_save_libdir
="$libdir"
8857 eval flag
=\"$hardcode_libdir_flag_spec\"
8858 libdir
="$acl_save_libdir"
8859 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8861 for found_dir
in $rpathdirs; do
8862 acl_save_libdir
="$libdir"
8864 eval flag
=\"$hardcode_libdir_flag_spec\"
8865 libdir
="$acl_save_libdir"
8866 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8870 if test "X$ltrpathdirs" != "X"; then
8871 for found_dir
in $ltrpathdirs; do
8872 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
8877 ac_save_CPPFLAGS
="$CPPFLAGS"
8879 for element
in $INCIPT; do
8881 for x
in $CPPFLAGS; do
8883 acl_save_prefix
="$prefix"
8884 prefix
="$acl_final_prefix"
8885 acl_save_exec_prefix
="$exec_prefix"
8886 exec_prefix
="$acl_final_exec_prefix"
8888 exec_prefix
="$acl_save_exec_prefix"
8889 prefix
="$acl_save_prefix"
8891 if test "X$x" = "X$element"; then
8896 if test -z "$haveit"; then
8897 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
8903 $as_echo_n "checking for libipt... " >&6; }
8904 if ${ac_cv_libipt+:} false
; then :
8905 $as_echo_n "(cached) " >&6
8908 ac_save_LIBS
="$LIBS"
8909 LIBS
="$LIBS $LIBIPT"
8910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 #include "intel-pt.h"
8916 pt_insn_alloc_decoder (0);
8921 if ac_fn_c_try_link
"$LINENO"; then :
8926 rm -f core conftest.err conftest.
$ac_objext \
8927 conftest
$ac_exeext conftest.
$ac_ext
8928 LIBS
="$ac_save_LIBS"
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
8932 $as_echo "$ac_cv_libipt" >&6; }
8933 if test "$ac_cv_libipt" = yes; then
8936 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
8939 $as_echo_n "checking how to link with libipt... " >&6; }
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
8941 $as_echo "$LIBIPT" >&6; }
8944 CPPFLAGS
="$ac_save_CPPFLAGS"
8954 if test "$HAVE_LIBIPT" != yes; then
8955 if test "$with_intel_pt" = yes; then
8956 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
8959 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
8963 LIBS
="$LIBS $LIBIPT"
8964 for ac_func
in pt_insn_event
8966 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
8967 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
8968 cat >>confdefs.h
<<_ACEOF
8969 #define HAVE_PT_INSN_EVENT 1
8975 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
8977 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
8979 cat >>confdefs.h
<<_ACEOF
8980 #define HAVE_STRUCT_PT_INSN_ENABLED 1
8985 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
8987 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
8989 cat >>confdefs.h
<<_ACEOF
8990 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
9000 if test "$ac_cv_header_sys_procfs_h" = yes; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
9002 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
9003 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
9004 $as_echo_n "(cached) " >&6
9006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9010 /* Needed for new procfs interface on sparc-solaris. */
9011 #define _STRUCTURED_PROC 1
9012 #include <sys/procfs.h>
9021 if ac_fn_c_try_compile
"$LINENO"; then :
9022 bfd_cv_have_sys_procfs_type_gregset_t
=yes
9024 bfd_cv_have_sys_procfs_type_gregset_t
=no
9027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9030 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
9032 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
9036 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
9039 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
9040 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
9041 $as_echo_n "(cached) " >&6
9043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9047 /* Needed for new procfs interface on sparc-solaris. */
9048 #define _STRUCTURED_PROC 1
9049 #include <sys/procfs.h>
9058 if ac_fn_c_try_compile
"$LINENO"; then :
9059 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
9061 bfd_cv_have_sys_procfs_type_fpregset_t
=no
9064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9067 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
9069 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
9073 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
9076 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
9077 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
9078 $as_echo_n "(cached) " >&6
9080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9084 /* Needed for new procfs interface on sparc-solaris. */
9085 #define _STRUCTURED_PROC 1
9086 #include <sys/procfs.h>
9095 if ac_fn_c_try_compile
"$LINENO"; then :
9096 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
9098 bfd_cv_have_sys_procfs_type_prgregset_t
=no
9101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9104 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
9106 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
9110 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
9113 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
9114 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
9115 $as_echo_n "(cached) " >&6
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9121 /* Needed for new procfs interface on sparc-solaris. */
9122 #define _STRUCTURED_PROC 1
9123 #include <sys/procfs.h>
9132 if ac_fn_c_try_compile
"$LINENO"; then :
9133 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
9135 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
9138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9141 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
9143 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
9147 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
9150 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
9151 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
9152 $as_echo_n "(cached) " >&6
9154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9158 /* Needed for new procfs interface on sparc-solaris. */
9159 #define _STRUCTURED_PROC 1
9160 #include <sys/procfs.h>
9169 if ac_fn_c_try_compile
"$LINENO"; then :
9170 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
9172 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
9175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9178 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
9180 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
9184 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
9187 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
9188 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
9189 $as_echo_n "(cached) " >&6
9191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9195 /* Needed for new procfs interface on sparc-solaris. */
9196 #define _STRUCTURED_PROC 1
9197 #include <sys/procfs.h>
9206 if ac_fn_c_try_compile
"$LINENO"; then :
9207 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
9209 bfd_cv_have_sys_procfs_type_lwpid_t
=no
9212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9215 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
9217 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
9221 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
9224 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
9225 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
9226 $as_echo_n "(cached) " >&6
9228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9232 /* Needed for new procfs interface on sparc-solaris. */
9233 #define _STRUCTURED_PROC 1
9234 #include <sys/procfs.h>
9243 if ac_fn_c_try_compile
"$LINENO"; then :
9244 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
9246 bfd_cv_have_sys_procfs_type_psaddr_t
=no
9249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9252 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
9254 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
9258 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
9261 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
9262 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
9263 $as_echo_n "(cached) " >&6
9265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9269 /* Needed for new procfs interface on sparc-solaris. */
9270 #define _STRUCTURED_PROC 1
9271 #include <sys/procfs.h>
9280 if ac_fn_c_try_compile
"$LINENO"; then :
9281 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
9283 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
9286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9289 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
9291 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
9295 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
9300 # Check the return and argument types of ptrace.
9303 for ac_header
in sys
/ptrace.h ptrace.h
9305 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9306 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9307 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9308 cat >>confdefs.h
<<_ACEOF
9309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317 gdb_ptrace_headers
='
9318 #include <sys/types.h>
9319 #if HAVE_SYS_PTRACE_H
9320 # include <sys/ptrace.h>
9323 # include <unistd.h>
9326 # There is no point in checking if we don't have a prototype.
9327 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
9329 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
9335 cat >>confdefs.h
<<_ACEOF
9336 #define HAVE_DECL_PTRACE $ac_have_decl
9338 if test $ac_have_decl = 1; then :
9342 : ${gdb_cv_func_ptrace_ret='int'}
9343 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9347 # Check return type. Varargs (used on GNU/Linux) conflict with the
9348 # empty argument list, so check for that explicitly.
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
9350 $as_echo_n "checking return type of ptrace... " >&6; }
9351 if ${gdb_cv_func_ptrace_ret+:} false
; then :
9352 $as_echo_n "(cached) " >&6
9354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9360 extern long ptrace (enum __ptrace_request, ...);
9365 if ac_fn_c_try_compile
"$LINENO"; then :
9366 gdb_cv_func_ptrace_ret
='long'
9368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9374 extern int ptrace ();
9379 if ac_fn_c_try_compile
"$LINENO"; then :
9380 gdb_cv_func_ptrace_ret
='int'
9382 gdb_cv_func_ptrace_ret
='long'
9384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
9389 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
9391 cat >>confdefs.h
<<_ACEOF
9392 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
9395 # Check argument types.
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
9397 $as_echo_n "checking types of arguments for ptrace... " >&6; }
9398 if ${gdb_cv_func_ptrace_args+:} false
; then :
9399 $as_echo_n "(cached) " >&6
9402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9408 extern long ptrace (enum __ptrace_request, ...);
9413 if ac_fn_c_try_compile
"$LINENO"; then :
9414 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
9417 for gdb_arg1
in 'int' 'long'; do
9418 for gdb_arg2
in 'pid_t' 'int' 'long'; do
9419 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
9420 for gdb_arg4
in 'int' 'long' 'void *'; do
9421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9428 extern $gdb_cv_func_ptrace_ret
9429 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
9435 if ac_fn_c_try_compile
"$LINENO"; then :
9436 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
9439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9440 for gdb_arg5
in 'int *' 'int' 'long'; do
9441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9448 extern $gdb_cv_func_ptrace_ret
9449 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
9455 if ac_fn_c_try_compile
"$LINENO"; then :
9457 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
9460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9466 # Provide a safe default value.
9467 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
9473 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
9474 ac_save_IFS
=$IFS; IFS
=','
9475 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
9479 cat >>confdefs.h
<<_ACEOF
9480 #define PTRACE_TYPE_ARG1 $1
9484 cat >>confdefs.h
<<_ACEOF
9485 #define PTRACE_TYPE_ARG3 $3
9489 cat >>confdefs.h
<<_ACEOF
9490 #define PTRACE_TYPE_ARG4 $4
9493 if test -n "$5"; then
9495 cat >>confdefs.h
<<_ACEOF
9496 #define PTRACE_TYPE_ARG5 $5
9507 # Check whether --with-ust was given.
9508 if test "${with_ust+set}" = set; then :
9513 # Check whether --with-ust_include was given.
9514 if test "${with_ust_include+set}" = set; then :
9515 withval
=$with_ust_include;
9519 # Check whether --with-ust_lib was given.
9520 if test "${with_ust_lib+set}" = set; then :
9521 withval
=$with_ust_lib;
9535 ustlibs
="-L$with_ust/lib -lust"
9536 ustinc
="-I$with_ust/include "
9539 if test "x$with_ust_include" != x
; then
9540 ustinc
="-I$with_ust_include "
9542 if test "x$with_ust_lib" != x
; then
9543 ustlibs
="-L$with_ust_lib -lust"
9546 if test "x$with_ust" != "xno"; then
9547 saved_CFLAGS
="$CFLAGS"
9548 CFLAGS
="$CFLAGS $ustinc"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
9550 $as_echo_n "checking for ust... " >&6; }
9551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9554 #define CONFIG_UST_GDB_INTEGRATION
9555 #include <ust/ust.h>
9565 if ac_fn_c_try_compile
"$LINENO"; then :
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9567 $as_echo "yes" >&6; };
9568 $as_echo "#define HAVE_UST 1" >>confdefs.h
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
9574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9575 CFLAGS
="$saved_CFLAGS"
9578 # Flags needed for UST
9583 # Check whether --enable-werror was given.
9584 if test "${enable_werror+set}" = set; then :
9585 enableval
=$enable_werror; case "${enableval}" in
9586 yes | y
) ERROR_ON_WARNING
="yes" ;;
9587 no | n
) ERROR_ON_WARNING
="no" ;;
9588 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9593 # Enable -Werror by default when using gcc. Turn it off for releases.
9594 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
9595 ERROR_ON_WARNING
=yes
9599 if test "${ERROR_ON_WARNING}" = yes ; then
9600 WERROR_CFLAGS
="-Werror"
9603 # The options we'll try to enable.
9604 build_warnings
="-Wall -Wpointer-arith \
9605 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
9606 -Wno-switch -Wno-char-subscripts \
9607 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
9608 -Wno-sign-compare -Wno-error=maybe-uninitialized \
9609 -Wno-mismatched-tags \
9610 -Wno-error=deprecated-register \
9611 -Wsuggest-override \
9612 -Wimplicit-fallthrough=3 \
9616 -Wdeprecated-copy-dtor \
9618 -Wmissing-declarations \
9619 -Wstrict-null-sentinel \
9624 # Enable -Wno-format by default when using gcc on mingw since many
9625 # GCC versions complain about %I64.
9626 build_warnings
="$build_warnings -Wno-format" ;;
9628 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
9629 # doesn't understand.
9630 build_warnings
="$build_warnings -Wno-unknown-pragmas"
9631 # Solaris 11 <unistd.h> marks vfork deprecated.
9632 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
9634 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
9635 # but there's a special case for this below.
9636 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
9639 # Check whether --enable-build-warnings was given.
9640 if test "${enable_build_warnings+set}" = set; then :
9641 enableval
=$enable_build_warnings; case "${enableval}" in
9643 no
) build_warnings
="-w";;
9644 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9645 build_warnings
="${build_warnings} ${t}";;
9646 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9647 build_warnings
="${t} ${build_warnings}";;
9648 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9650 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9651 echo "Setting compiler warning flags = $build_warnings" 6>&1
9654 # Check whether --enable-gdb-build-warnings was given.
9655 if test "${enable_gdb_build_warnings+set}" = set; then :
9656 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
9658 no
) build_warnings
="-w";;
9659 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9660 build_warnings
="${build_warnings} ${t}";;
9661 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9662 build_warnings
="${t} ${build_warnings}";;
9663 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9665 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9666 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9670 # The set of warnings supported by a C++ compiler is not the same as
9671 # of the C compiler.
9673 ac_cpp
='$CXXCPP $CPPFLAGS'
9674 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9680 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
9683 $as_echo_n "checking compiler warning flags... " >&6; }
9684 # Separate out the -Werror flag as some files just cannot be
9685 # compiled with it enabled.
9686 for w
in ${build_warnings}; do
9687 # GCC does not complain about -Wno-unknown-warning. Invert
9688 # and test -Wunknown-warning instead.
9691 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
9692 -Wformat-nonliteral)
9693 # gcc requires -Wformat before -Wformat-nonliteral
9694 # will work, so stick them together.
9703 -Werr*) WERROR_CFLAGS
=-Werror ;;
9705 # Check whether GCC accepts it.
9706 saved_CFLAGS
="$CFLAGS"
9707 CFLAGS
="$CFLAGS -Werror $wtest"
9708 saved_CXXFLAGS
="$CXXFLAGS"
9709 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
9710 if test "x$w" = "x-Wunused-variable"; then
9711 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
9712 # fixed in GCC 4.9. This test is derived from the gdb
9713 # source code that triggered this bug in GCC.
9714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 struct scoped_restore_base {};
9717 struct scoped_restore_tmpl : public scoped_restore_base {
9718 ~scoped_restore_tmpl() {}
9723 const scoped_restore_base &b = scoped_restore_tmpl();
9728 if ac_fn_cxx_try_compile
"$LINENO"; then :
9729 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9744 if ac_fn_cxx_try_compile
"$LINENO"; then :
9745 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9749 CFLAGS
="$saved_CFLAGS"
9750 CXXFLAGS
="$saved_CXXFLAGS"
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
9754 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
9760 ac_cpp='$CPP $CPPFLAGS'
9761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9769 for ac_func in dladdr
9771 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
9772 if test "x
$ac_cv_func_dladdr" = xyes; then :
9773 cat >>confdefs.h <<_ACEOF
9774 #define HAVE_DLADDR 1
9783 # Check for presence and size of long long.
9784 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
9785 if test "x
$ac_cv_type_long_long" = xyes; then :
9787 cat >>confdefs.h <<_ACEOF
9788 #define HAVE_LONG_LONG 1
9791 # The cast to long int works around a bug in the HP C Compiler
9792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9794 # This bug is HP SR number 8606223364.
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
9796 $as_echo_n "checking size of long long...
" >&6; }
9797 if ${ac_cv_sizeof_long_long+:} false; then :
9798 $as_echo_n "(cached
) " >&6
9800 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
9803 if test "$ac_cv_type_long_long" = yes; then
9804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
9805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9806 as_fn_error 77 "cannot compute sizeof (long long)
9807 See \`config.log' for more details
" "$LINENO" 5; }
9809 ac_cv_sizeof_long_long=0
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
9815 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9819 cat >>confdefs.h <<_ACEOF
9820 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9827 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
9828 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
9829 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
9835 cat >>confdefs.h <<_ACEOF
9836 #define HAVE_DECL_BASENAME $ac_have_decl
9838 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
9839 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
9845 cat >>confdefs.h <<_ACEOF
9846 #define HAVE_DECL_FFS $ac_have_decl
9848 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
9849 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
9855 cat >>confdefs.h <<_ACEOF
9856 #define HAVE_DECL_ASPRINTF $ac_have_decl
9858 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
9859 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
9865 cat >>confdefs.h <<_ACEOF
9866 #define HAVE_DECL_VASPRINTF $ac_have_decl
9868 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
9869 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
9875 cat >>confdefs.h <<_ACEOF
9876 #define HAVE_DECL_SNPRINTF $ac_have_decl
9878 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
9879 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9889 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
9890 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
9896 cat >>confdefs.h <<_ACEOF
9897 #define HAVE_DECL_STRTOL $ac_have_decl
9899 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
9900 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
9906 cat >>confdefs.h <<_ACEOF
9907 #define HAVE_DECL_STRTOUL $ac_have_decl
9909 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
9910 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
9916 cat >>confdefs.h <<_ACEOF
9917 #define HAVE_DECL_STRTOLL $ac_have_decl
9919 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
9920 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
9926 cat >>confdefs.h <<_ACEOF
9927 #define HAVE_DECL_STRTOULL $ac_have_decl
9930 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
9931 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
9937 cat >>confdefs.h <<_ACEOF
9938 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9943 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
9944 if test "x
$ac_cv_have_decl_perror" = xyes; then :
9950 cat >>confdefs.h <<_ACEOF
9951 #define HAVE_DECL_PERROR $ac_have_decl
9953 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
9954 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
9960 cat >>confdefs.h <<_ACEOF
9961 #define HAVE_DECL_VASPRINTF $ac_have_decl
9963 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
9964 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
9970 cat >>confdefs.h <<_ACEOF
9971 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9975 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
9976 # Older amd64 Linux's don't have the fs_base and gs_base members of
9977 # `struct user_regs_struct'.
9978 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>
9979 #include <sys/user.h>
9981 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
9983 cat >>confdefs.h <<_ACEOF
9984 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
9989 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>
9990 #include <sys/user.h>
9992 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
9994 cat >>confdefs.h <<_ACEOF
9995 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10003 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
10004 #include <sys/socket.h>
10007 if test "x
$ac_cv_type_socklen_t" = xyes; then :
10009 cat >>confdefs.h <<_ACEOF
10010 #define HAVE_SOCKLEN_T 1
10017 case "${target}" in
10019 # Starting with NDK version 9, <elf.h> actually includes definitions
10020 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
10021 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
10022 # leading to conflicts with the defintions from <linux/elf.h>.
10023 # This makes it impossible for us to include both <elf.h> and
10024 # <linux/elf.h>, which means that, in practice, we do not have
10025 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
10026 # Therefore, do not try to auto-detect availability, as it would
10027 # get it wrong on this platform.
10030 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
10033 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
10035 cat >>confdefs.h <<_ACEOF
10036 #define HAVE_ELF32_AUXV_T 1
10041 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
10044 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
10046 cat >>confdefs.h <<_ACEOF
10047 #define HAVE_ELF64_AUXV_T 1
10057 # Check whether --with-pkgversion was given.
10058 if test "${with_pkgversion+set}" = set; then :
10059 withval=$with_pkgversion; case "$withval" in
10060 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
10062 *) PKGVERSION="($withval) " ;;
10065 PKGVERSION="(GDB
) "
10073 # Check whether --with-bugurl was given.
10074 if test "${with_bugurl+set}" = set; then :
10075 withval=$with_bugurl; case "$withval" in
10076 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
10079 *) BUGURL="$withval"
10083 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
10093 REPORT_BUGS_TO="<$BUGURL>"
10094 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10101 cat >>confdefs.h <<_ACEOF
10102 #define PKGVERSION "$PKGVERSION"
10106 cat >>confdefs.h <<_ACEOF
10107 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
10111 # Check for various supplementary target information (beyond the
10112 # triplet) which might affect the choices in configure.srv.
10113 case "${target}" in
10114 i[34567]86-*-linux*)
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
10116 $as_echo_n "checking
if building
for x86-64...
" >&6; }
10117 if ${gdb_cv_i386_is_x86_64+:} false; then :
10118 $as_echo_n "(cached
) " >&6
10120 save_CPPFLAGS="$CPPFLAGS"
10121 CPPFLAGS="$CPPFLAGS $CFLAGS"
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10130 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10131 $EGREP "got it
" >/dev/null 2>&1; then :
10132 gdb_cv_i386_is_x86_64=yes
10134 gdb_cv_i386_is_x86_64=no
10138 CPPFLAGS="$save_CPPFLAGS"
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
10141 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
10146 $as_echo_n "checking
if building
for x32...
" >&6; }
10147 if ${gdb_cv_x86_is_x32+:} false; then :
10148 $as_echo_n "(cached
) " >&6
10150 save_CPPFLAGS="$CPPFLAGS"
10151 CPPFLAGS="$CPPFLAGS $CFLAGS"
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10155 #if __x86_64__ && __ILP32__
10160 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10161 $EGREP "got it
" >/dev/null 2>&1; then :
10162 gdb_cv_x86_is_x32=yes
10164 gdb_cv_x86_is_x32=no
10168 CPPFLAGS="$save_CPPFLAGS"
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
10171 $as_echo "$gdb_cv_x86_is_x32" >&6; }
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
10176 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
10177 if ${gdb_cv_m68k_is_coldfire+:} false; then :
10178 $as_echo_n "(cached
) " >&6
10180 save_CPPFLAGS="$CPPFLAGS"
10181 CPPFLAGS="$CPPFLAGS $CFLAGS"
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10185 #ifdef __mcoldfire__
10190 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10191 $EGREP "got it
" >/dev/null 2>&1; then :
10192 gdb_cv_m68k_is_coldfire=yes
10194 gdb_cv_m68k_is_coldfire=no
10198 CPPFLAGS="$save_CPPFLAGS"
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
10201 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
10205 . ${srcdir}/configure.srv
10207 if test "${srv_mingwce}" = "yes"; then
10209 elif test "${srv_mingw}" = "yes"; then
10210 # WIN32APILIBS is set by GDB_AC_COMMON.
10211 LIBS="$LIBS $WIN32APILIBS"
10212 elif test "${srv_qnx}" = "yes"; then
10213 LIBS="$LIBS -lsocket"
10214 elif test "${srv_lynxos}" = "yes"; then
10215 LIBS="$LIBS -lnetinet"
10218 if test "${srv_linux_usrregs}" = "yes"; then
10220 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
10224 if test "${srv_linux_regsets}" = "yes"; then
10226 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10230 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10231 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
10232 $as_echo_n "(cached) " >&6
10234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 #include <sys/ptrace.h>
10245 if ac_fn_c_try_compile
"$LINENO"; then :
10246 gdbsrv_cv_have_ptrace_getregs
=yes
10248 gdbsrv_cv_have_ptrace_getregs
=no
10250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
10254 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
10255 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
10257 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10262 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10263 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
10264 $as_echo_n "(cached) " >&6
10266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10268 #include <sys/ptrace.h>
10277 if ac_fn_c_try_compile
"$LINENO"; then :
10278 gdbsrv_cv_have_ptrace_getfpxregs
=yes
10280 gdbsrv_cv_have_ptrace_getfpxregs
=no
10282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
10286 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
10287 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
10289 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10294 if test "${srv_linux_btrace}" = "yes"; then
10296 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
10300 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
10302 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
10303 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
10304 $as_echo_n "(cached) " >&6
10306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10309 #include <thread_db.h>
10318 if ac_fn_c_try_compile
"$LINENO"; then :
10319 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
10321 gdbserver_cv_have_thread_db_type_lwpid_t
=no
10324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10327 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
10329 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
10333 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
10337 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
10339 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
10340 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
10341 $as_echo_n "(cached) " >&6
10343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10346 #include <thread_db.h>
10355 if ac_fn_c_try_compile
"$LINENO"; then :
10356 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
10358 gdbserver_cv_have_thread_db_type_psaddr_t
=no
10361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10364 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
10366 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
10370 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10377 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10378 $as_echo_n "(cached) " >&6
10380 ac_check_lib_save_LIBS
=$LIBS
10382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10400 if ac_fn_c_try_link
"$LINENO"; then :
10401 ac_cv_lib_dl_dlopen
=yes
10403 ac_cv_lib_dl_dlopen
=no
10405 rm -f core conftest.err conftest.
$ac_objext \
10406 conftest
$ac_exeext conftest.
$ac_ext
10407 LIBS
=$ac_check_lib_save_LIBS
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10410 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10411 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10412 cat >>confdefs.h
<<_ACEOF
10413 #define HAVE_LIBDL 1
10422 srv_thread_depfiles
=
10425 if test "$srv_linux_thread_db" = "yes"; then
10426 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
10429 $as_echo_n "checking for the dynamic export flag... " >&6; }
10430 old_LDFLAGS
="$LDFLAGS"
10431 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
10433 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
10434 LDFLAGS
="$LDFLAGS $RDYNAMIC"
10435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10446 if ac_fn_c_try_link
"$LINENO"; then :
10447 found
="-Wl,--dynamic-list"
10448 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
10450 RDYNAMIC
="-rdynamic"
10451 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
10452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10463 if ac_fn_c_try_link
"$LINENO"; then :
10469 rm -f core conftest.err conftest.
$ac_objext \
10470 conftest
$ac_exeext conftest.
$ac_ext
10472 rm -f core conftest.err conftest.
$ac_objext \
10473 conftest
$ac_exeext conftest.
$ac_ext
10475 LDFLAGS
="$old_LDFLAGS"
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
10477 $as_echo "$found" >&6; }
10479 srv_libs
="-lthread_db"
10482 srv_thread_depfiles
="thread-db.o proc-service.o"
10484 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
10487 $as_echo_n "checking for TD_VERSION... " >&6; }
10488 if ${gdbsrv_cv_have_td_version+:} false
; then :
10489 $as_echo_n "(cached) " >&6
10491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493 #include <thread_db.h>
10502 if ac_fn_c_try_compile
"$LINENO"; then :
10503 gdbsrv_cv_have_td_version
=yes
10505 gdbsrv_cv_have_td_version
=no
10507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
10510 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
10511 if test "$gdbsrv_cv_have_td_version" = yes; then
10513 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
10519 # Check whether --with-libthread-db was given.
10520 if test "${with_libthread_db+set}" = set; then :
10521 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
10522 srv_libs
="$srv_libthread_db_path"
10527 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
10529 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
10533 if test "$srv_xmlfiles" != ""; then
10534 srv_xmlbuiltin
="xml-builtin.o"
10536 $as_echo "#define USE_XML 1" >>confdefs.h
10539 tmp_xmlfiles
=$srv_xmlfiles
10541 for f
in $tmp_xmlfiles; do
10542 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
10546 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
10547 GDBSERVER_LIBS
="$srv_libs"
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
10550 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
10551 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
10552 $as_echo_n "(cached) " >&6
10555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10561 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
10566 if ac_fn_c_try_link
"$LINENO"; then :
10567 gdbsrv_cv_have_sync_builtins
=yes
10569 gdbsrv_cv_have_sync_builtins
=no
10571 rm -f core conftest.err conftest.
$ac_objext \
10572 conftest
$ac_exeext conftest.
$ac_ext
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
10575 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
10576 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
10578 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
10582 saved_cflags
="$CFLAGS"
10583 CFLAGS
="$CFLAGS -fvisibility=hidden"
10584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10595 if ac_fn_c_try_compile
"$LINENO"; then :
10596 gdbsrv_cv_have_visibility_hidden
=yes
10598 gdbsrv_cv_have_visibility_hidden
=no
10600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10601 CFLAGS
="$saved_cflags"
10606 # check whether to enable the inprocess agent
10607 if test "$ipa_obj" != "" \
10608 -a "$gdbsrv_cv_have_sync_builtins" = yes \
10609 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
10615 # Check whether --enable-inprocess-agent was given.
10616 if test "${enable_inprocess_agent+set}" = set; then :
10617 enableval
=$enable_inprocess_agent; case "$enableval" in
10618 yes) want_ipa
=true
;;
10619 no
) want_ipa
=false
;;
10620 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
10627 if $want_ipa ; then
10628 if $have_ipa ; then
10629 IPA_DEPFILES
="$ipa_obj"
10630 extra_libraries
="$extra_libraries libinproctrace.so"
10632 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
10643 GNULIB
=..
/gnulib
/import
10646 if test x
"$STDINT_H" != x
; then
10647 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
10651 ac_config_files
="$ac_config_files Makefile"
10654 cat >confcache
<<\_ACEOF
10655 # This file is a shell script that caches the results of configure
10656 # tests run on this system so they can be shared between configure
10657 # scripts and configure runs, see configure's option --config-cache.
10658 # It is not useful on other systems. If it contains results you don't
10659 # want to keep, you may remove or edit it.
10661 # config.status only pays attention to the cache file if you give it
10662 # the --recheck option to rerun configure.
10664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10666 # following values.
10670 # The following way of writing the cache mishandles newlines in values,
10671 # but we know of no workaround that is simple, portable, and efficient.
10672 # So, we kill variables containing newlines.
10673 # Ultrix sh set writes to stderr and can't be redirected directly,
10674 # and sets the high bit in the cache file unless we assign to the vars.
10676 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10677 eval ac_val
=\$
$ac_var
10681 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10682 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10685 _ | IFS | as_nl
) ;; #(
10686 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10687 *) { eval $ac_var=; unset $ac_var;} ;;
10693 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10694 *${as_nl}ac_space
=\
*)
10695 # `set' does not quote correctly, so add quotes: double-quote
10696 # substitution turns \\\\ into \\, and sed turns \\ into \.
10699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10702 # `set' quotes correctly as required by POSIX, so do not add quotes.
10703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10714 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10716 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10717 if test -w "$cache_file"; then
10718 if test "x$cache_file" != "x/dev/null"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10720 $as_echo "$as_me: updating cache $cache_file" >&6;}
10721 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10722 cat confcache
>"$cache_file"
10724 case $cache_file in #(
10726 mv -f confcache
"$cache_file"$$
&&
10727 mv -f "$cache_file"$$
"$cache_file" ;; #(
10729 mv -f confcache
"$cache_file" ;;
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10740 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10741 # Let make expand exec_prefix.
10742 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10744 DEFS
=-DHAVE_CONFIG_H
10749 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10750 # 1. Remove the extension, and $U if already installed.
10751 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10752 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10753 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10754 # will be set to the directory where LIBOBJS objects are built.
10755 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10756 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10758 LIBOBJS
=$ac_libobjs
10760 LTLIBOBJS
=$ac_ltlibobjs
10763 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10764 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10768 : "${CONFIG_STATUS=./config.status}"
10770 ac_clean_files_save
=$ac_clean_files
10771 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10773 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10775 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10777 # Generated by $as_me.
10778 # Run this file to recreate the current configuration.
10779 # Compiler output produced by configure, useful for debugging
10780 # configure, is in config.log if it exists.
10783 ac_cs_recheck=false
10786 SHELL=\${CONFIG_SHELL-$SHELL}
10789 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10790 ## -------------------- ##
10791 ## M4sh Initialization. ##
10792 ## -------------------- ##
10794 # Be more Bourne compatible
10795 DUALCASE
=1; export DUALCASE
# for MKS sh
10796 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10799 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10800 # is contrary to our usage. Disable this feature.
10801 alias -g '${1+"$@"}'='"$@"'
10802 setopt NO_GLOB_SUBST
10804 case `(set -o) 2>/dev/null` in #(
10816 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10817 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10820 # Prefer a ksh shell builtin over an external printf program on Solaris,
10821 # but without wasting forks for bash or zsh.
10822 if test -z "$BASH_VERSION$ZSH_VERSION" \
10823 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10824 as_echo='print
-r --'
10825 as_echo_n='print
-rn --'
10826 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10827 as_echo='printf %s
\n'
10828 as_echo_n='printf %s
'
10830 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10831 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10832 as_echo_n='/usr
/ucb
/echo -n'
10834 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10835 as_echo_n_body='eval
10839 expr "X$arg" : "X\\(.*\\)$as_nl";
10840 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10842 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10844 export as_echo_n_body
10845 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10847 export as_echo_body
10848 as_echo='sh
-c $as_echo_body as_echo
'
10851 # The user is always right.
10852 if test "${PATH_SEPARATOR+set}" != set; then
10854 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10855 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10862 # We need space, tab and new line, in precisely that order. Quoting is
10863 # there to prevent editors from complaining about space-tab.
10864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10865 # splitting by setting IFS to empty value.)
10868 # Find who we are. Look in the path if we contain no directory separator.
10871 *[\\/]* ) as_myself=$0 ;;
10872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10876 test -z "$as_dir" && as_dir=.
10877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10883 # We did not find ourselves, most probably we were run as `sh COMMAND'
10884 # in which case we are not to be found in the path.
10885 if test "x$as_myself" = x
; then
10888 if test ! -f "$as_myself"; then
10889 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10893 # Unset variables that we do not need and which cause bugs (e.g. in
10894 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10895 # suppresses any "Segmentation fault" message there. '((' could
10896 # trigger a bug in pdksh 5.2.14.
10897 for as_var
in BASH_ENV ENV MAIL MAILPATH
10898 do eval test x\
${$as_var+set} = xset \
10899 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10912 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10915 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10916 # ----------------------------------------
10917 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10918 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10919 # script with STATUS, using 1 if that was 0.
10922 as_status
=$1; test $as_status -eq 0 && as_status
=1
10924 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10925 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10927 $as_echo "$as_me: error: $2" >&2
10928 as_fn_exit
$as_status
10932 # as_fn_set_status STATUS
10933 # -----------------------
10934 # Set $? to STATUS, without forking.
10935 as_fn_set_status
()
10938 } # as_fn_set_status
10940 # as_fn_exit STATUS
10941 # -----------------
10942 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10946 as_fn_set_status
$1
10952 # Portably unset VAR.
10955 { eval $1=; unset $1;}
10957 as_unset
=as_fn_unset
10958 # as_fn_append VAR VALUE
10959 # ----------------------
10960 # Append the text in VALUE to the end of the definition contained in VAR. Take
10961 # advantage of any shell optimizations that allow amortized linear growth over
10962 # repeated appends, instead of the typical quadratic growth present in naive
10964 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10965 eval 'as_fn_append ()
10976 # as_fn_arith ARG...
10977 # ------------------
10978 # Perform arithmetic evaluation on the ARGs, and store the result in the
10979 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10980 # must be portable across $(()) and expr.
10981 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10982 eval 'as_fn_arith ()
10989 as_val
=`expr "$@" || test $? -eq 1`
10994 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10995 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11001 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11002 as_basename
=basename
11007 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11013 as_me
=`$as_basename -- "$0" ||
11014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11015 X"$0" : 'X\(//\)$' \| \
11016 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11018 sed '/^.*\/\([^/][^/]*\)\/*$/{
11032 # Avoid depending upon Character Ranges.
11033 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11034 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11035 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11036 as_cr_digits
='0123456789'
11037 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11039 ECHO_C
= ECHO_N
= ECHO_T
=
11040 case `echo -n x` in #(((((
11042 case `echo 'xy\c'` in
11043 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11045 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11052 rm -f conf$$ conf$$.exe conf$$.
file
11053 if test -d conf$$.dir
; then
11054 rm -f conf$$.dir
/conf$$.
file
11057 mkdir conf$$.dir
2>/dev
/null
11059 if (echo >conf$$.
file) 2>/dev
/null
; then
11060 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11062 # ... but there are two gotchas:
11063 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11064 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11065 # In both cases, we have to default to `cp -pR'.
11066 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11068 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11076 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11077 rmdir conf$$.dir
2>/dev
/null
11082 # Create "$as_dir" as a directory, including parents if necessary.
11087 -*) as_dir
=.
/$as_dir;;
11089 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11093 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11094 *) as_qdir
=$as_dir;;
11096 as_dirs
="'$as_qdir' $as_dirs"
11097 as_dir
=`$as_dirname -- "$as_dir" ||
11098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11099 X"$as_dir" : 'X\(//\)[^/]' \| \
11100 X"$as_dir" : 'X\(//\)$' \| \
11101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11102 $as_echo X"$as_dir" |
11103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11107 /^X\(\/\/\)[^/].*/{
11120 test -d "$as_dir" && break
11122 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11123 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11127 if mkdir
-p .
2>/dev
/null
; then
11128 as_mkdir_p
='mkdir -p "$as_dir"'
11130 test -d .
/-p && rmdir .
/-p
11135 # as_fn_executable_p FILE
11136 # -----------------------
11137 # Test if FILE is an executable regular file.
11138 as_fn_executable_p
()
11140 test -f "$1" && test -x "$1"
11141 } # as_fn_executable_p
11142 as_test_x
='test -x'
11143 as_executable_p
=as_fn_executable_p
11145 # Sed expression to map a string onto a valid CPP name.
11146 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11148 # Sed expression to map a string onto a valid variable name.
11149 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11153 ## ----------------------------------- ##
11154 ## Main body of $CONFIG_STATUS script. ##
11155 ## ----------------------------------- ##
11157 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11160 # Save the log message, to keep $0 and so on meaningful, and to
11161 # report actual input values of CONFIG_FILES etc. instead of their
11162 # values after options handling.
11164 This file was extended by $as_me, which was
11165 generated by GNU Autoconf 2.69. Invocation command line was
11167 CONFIG_FILES = $CONFIG_FILES
11168 CONFIG_HEADERS = $CONFIG_HEADERS
11169 CONFIG_LINKS = $CONFIG_LINKS
11170 CONFIG_COMMANDS = $CONFIG_COMMANDS
11173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11178 case $ac_config_files in *"
11179 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11182 case $ac_config_headers in *"
11183 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11188 # Files that config.status was made for.
11189 config_files="$ac_config_files"
11190 config_headers="$ac_config_headers"
11191 config_commands="$ac_config_commands"
11195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11197 \`$as_me' instantiates files and other configuration actions
11198 from templates according to the current configuration. Unless the files
11199 and actions are specified as TAGs, all are instantiated by default.
11201 Usage: $0 [OPTION]... [TAG]...
11203 -h, --help print this help, then exit
11204 -V, --version print version number and configuration settings, then exit
11205 --config print configuration, then exit
11206 -q, --quiet, --silent
11207 do not print progress messages
11208 -d, --debug don't remove temporary files
11209 --recheck update $as_me by reconfiguring in the same conditions
11210 --file=FILE[:TEMPLATE]
11211 instantiate the configuration file FILE
11212 --header=FILE[:TEMPLATE]
11213 instantiate the configuration header FILE
11215 Configuration files:
11218 Configuration headers:
11221 Configuration commands:
11224 Report bugs to the package provider."
11227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11228 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11231 configured by $0, generated by GNU Autoconf 2.69,
11232 with options \\"\$ac_cs_config\\"
11234 Copyright (C) 2012 Free Software Foundation, Inc.
11235 This config.status script is free software; the Free Software Foundation
11236 gives unlimited permission to copy, distribute and modify it."
11241 test -n "\$AWK" || AWK=awk
11244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11245 # The default lists apply if the user does not specify any file.
11251 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11252 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11256 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11268 # Handling of the options.
11269 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11271 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11272 $as_echo "$ac_cs_version"; exit ;;
11273 --config |
--confi |
--conf |
--con |
--co |
--c )
11274 $as_echo "$ac_cs_config"; exit ;;
11275 --debug |
--debu |
--deb |
--de |
--d |
-d )
11277 --file |
--fil |
--fi |
--f )
11280 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11281 '') as_fn_error $?
"missing file argument" ;;
11283 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11284 ac_need_defaults
=false
;;
11285 --header |
--heade |
--head |
--hea )
11288 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11290 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11291 ac_need_defaults
=false
;;
11293 # Conflict between --help and --header
11294 as_fn_error $?
"ambiguous option: \`$1'
11295 Try \`$0 --help' for more information.";;
11296 --help |
--hel |
-h )
11297 $as_echo "$ac_cs_usage"; exit ;;
11298 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11299 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11302 # This is an error.
11303 -*) as_fn_error $?
"unrecognized option: \`$1'
11304 Try \`$0 --help' for more information." ;;
11306 *) as_fn_append ac_config_targets
" $1"
11307 ac_need_defaults
=false
;;
11313 ac_configure_extra_args
=
11315 if $ac_cs_silent; then
11317 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11322 if \$ac_cs_recheck; then
11323 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11326 CONFIG_SHELL='$SHELL'
11327 export CONFIG_SHELL
11332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11337 ## Running $as_me. ##
11343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11347 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
11348 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
11352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11354 # Handling of arguments.
11355 for ac_config_target
in $ac_config_targets
11357 case $ac_config_target in
11358 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11359 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
11360 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
11361 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11363 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11368 # If the user did not use the arguments to specify the items to instantiate,
11369 # then the envvar interface is used. Set only those that are not.
11370 # We use the long form for the default assignment because of an extremely
11371 # bizarre bug on SunOS 4.1.3.
11372 if $ac_need_defaults; then
11373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11375 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11378 # Have a temporary directory for convenience. Make it in the build tree
11379 # simply because there is no reason against having it here, and in addition,
11380 # creating and moving files from /tmp can sometimes cause problems.
11381 # Hook for its removal unless debugging.
11382 # Note that there is a small window in which the directory will not be cleaned:
11383 # after its creation but before its name has been assigned to `$tmp'.
11387 trap 'exit_status=$?
11388 : "${ac_tmp:=$tmp}"
11389 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11391 trap 'as_fn_exit 1' 1 2 13 15
11393 # Create a (secure) tmp directory for tmp files.
11396 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11400 tmp
=.
/conf$$
-$RANDOM
11401 (umask 077 && mkdir
"$tmp")
11402 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11405 # Set up the scripts for CONFIG_FILES section.
11406 # No need to generate them if there are no CONFIG_FILES.
11407 # This happens for instance with `./config.status config.h'.
11408 if test -n "$CONFIG_FILES"; then
11411 ac_cr
=`echo X | tr X '\015'`
11412 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11413 # But we know of no other shell where ac_cr would be empty at this
11414 # point, so we can use a bashism as a fallback.
11415 if test "x$ac_cr" = x
; then
11416 eval ac_cr
=\$
\'\\r
\'
11418 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11419 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11422 ac_cs_awk_cr
=$ac_cr
11425 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11430 echo "cat >conf$$subs.awk <<_ACEOF" &&
11431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11433 } >conf$$subs.sh ||
11434 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11435 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11437 for ac_last_try in false false false false false :; do
11438 . ./conf$$subs.sh ||
11439 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11441 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11442 if test $ac_delim_n = $ac_delim_num; then
11444 elif $ac_last_try; then
11445 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11447 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11450 rm -f conf$$subs.sh
11452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11453 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11457 s/^/S["/; s
/!.
*/"]=/
11467 s/\(.\{148\}\)..*/\1/
11469 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11474 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11481 s/\(.\{148\}\)..*/\1/
11483 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11487 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11492 ' <conf$$subs.awk | sed '
11497 ' >>$CONFIG_STATUS || ac_write_fail=1
11498 rm -f conf$$subs.awk
11499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11501 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11502 for (key in S) S_is_set[key] = 1
11508 nfields = split(line, field, "@
")
11510 len = length(field[1])
11511 for (i = 2; i < nfields; i++) {
11513 keylen = length(key)
11514 if (S_is_set[key]) {
11516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11517 len += length(value) + length(field[++i])
11528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11529 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11530 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11533 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11534 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11537 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11538 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11539 # trailing colons and then remove the whole line if VPATH becomes empty
11540 # (actually we leave an empty line to preserve line numbers).
11541 if test "x
$srcdir" = x.; then
11542 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11561 fi # test -n "$CONFIG_FILES"
11563 # Set up the scripts for CONFIG_HEADERS section.
11564 # No need to generate them if there are no CONFIG_HEADERS.
11565 # This happens for instance with `./config.status Makefile'.
11566 if test -n "$CONFIG_HEADERS"; then
11567 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11571 # Transform confdefs.h into an awk script `defines.awk', embedded as
11572 # here-document in config.status, that substitutes the proper values into
11573 # config.h.in to produce config.h.
11575 # Create a delimiter string that does not exist in confdefs.h, to ease
11576 # handling of long lines.
11578 for ac_last_try in false false :; do
11579 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11580 if test -z "$ac_tt"; then
11582 elif $ac_last_try; then
11583 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11585 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11589 # For the awk script, D is an array of macro values keyed by name,
11590 # likewise P contains macro parameters if any. Preserve backslash
11591 # newline sequences.
11593 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11595 s/.\{148\}/&'"$ac_delim"'/g
11598 s/^[ ]*#[ ]*define[ ][ ]*/ /
11605 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11607 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11611 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11612 D["\
1"]=" \
3\\\\\\n
"\\/p
11614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11619 s/.\{148\}/&'"$ac_delim"'/g
11624 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11627 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11629 ' <confdefs.h | sed '
11630 s/'"$ac_delim"'/"\\\
11631 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11634 for (key in D) D_is_set[key] = 1
11637 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11639 split(line, arg, " ")
11640 if (arg[1] == "#") {
11644 defundef
= substr
(arg
[1], 2)
11647 split(mac1
, mac2
, "(") #)
11649 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11650 if (D_is_set
[macro
]) {
11651 # Preserve the white space surrounding the "#".
11652 print prefix
"define", macro P
[macro
] D
[macro
]
11655 # Replace #undef with comments. This is necessary, for example,
11656 # in the case of _POSIX_SOURCE, which is predefined and required
11657 # on some systems where configure will not decide to define it.
11658 if (defundef
== "undef") {
11659 print
"/*", prefix defundef
, macro
, "*/"
11667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11668 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11669 fi # test -n "$CONFIG_HEADERS"
11672 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11677 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11679 case $ac_mode$ac_tag in
11681 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11682 :[FH
]-) ac_tag
=-:-;;
11683 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11700 -) ac_f
="$ac_tmp/stdin";;
11701 *) # Look for the file first in the build tree, then in the source tree
11702 # (if the path is not absolute). The absolute path cannot be DOS-style,
11703 # because $ac_f cannot contain `:'.
11707 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11709 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11711 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11712 as_fn_append ac_file_inputs
" '$ac_f'"
11715 # Let's still pretend it is `configure' which instantiates (i.e., don't
11716 # use $as_me), people would be surprised to read:
11717 # /* config.h. Generated by config.status. */
11718 configure_input
='Generated from '`
11719 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11721 if test x
"$ac_file" != x-
; then
11722 configure_input
="$ac_file. $configure_input"
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11724 $as_echo "$as_me: creating $ac_file" >&6;}
11726 # Neutralize special characters interpreted by sed in replacement strings.
11727 case $configure_input in #(
11728 *\
&* |
*\|
* |
*\\* )
11729 ac_sed_conf_input
=`$as_echo "$configure_input" |
11730 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11731 *) ac_sed_conf_input
=$configure_input;;
11735 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11736 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11741 ac_dir
=`$as_dirname -- "$ac_file" ||
11742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11743 X"$ac_file" : 'X\(//\)[^/]' \| \
11744 X"$ac_file" : 'X\(//\)$' \| \
11745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11746 $as_echo X"$ac_file" |
11747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11751 /^X\(\/\/\)[^/].*/{
11764 as_dir
="$ac_dir"; as_fn_mkdir_p
11768 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11770 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11771 # A ".." for each directory in $ac_dir_suffix.
11772 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11773 case $ac_top_builddir_sub in
11774 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11775 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11778 ac_abs_top_builddir
=$ac_pwd
11779 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11780 # for backward compatibility:
11781 ac_top_builddir
=$ac_top_build_prefix
11784 .
) # We are building in place.
11786 ac_top_srcdir
=$ac_top_builddir_sub
11787 ac_abs_top_srcdir
=$ac_pwd ;;
11788 [\\/]* | ?
:[\\/]* ) # Absolute name.
11789 ac_srcdir
=$srcdir$ac_dir_suffix;
11790 ac_top_srcdir
=$srcdir
11791 ac_abs_top_srcdir
=$srcdir ;;
11792 *) # Relative name.
11793 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11794 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11795 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11797 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11807 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11808 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11813 # If the template does not know about datarootdir, expand it.
11814 # FIXME: This hack should be removed a few years after 2.60.
11815 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11826 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11827 *datarootdir
*) ac_datarootdir_seen
=yes;;
11828 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11830 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11833 ac_datarootdir_hack='
11834 s&@datadir@&$datadir&g
11835 s&@docdir@&$docdir&g
11836 s&@infodir@&$infodir&g
11837 s&@localedir@&$localedir&g
11838 s&@mandir@&$mandir&g
11839 s&\\\${datarootdir}&$datarootdir&g' ;;
11843 # Neutralize VPATH when `$srcdir' = `.'.
11844 # Shell code in configure.ac might set extrasub.
11845 # FIXME: do we really want to maintain this feature?
11846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11847 ac_sed_extra="$ac_vpsub
11850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11852 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11853 s|@configure_input@|
$ac_sed_conf_input|
;t t
11854 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11855 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11856 s
&@srcdir@
&$ac_srcdir&;t t
11857 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11858 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11859 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11860 s
&@builddir@
&$ac_builddir&;t t
11861 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11862 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11863 s
&@INSTALL@
&$ac_INSTALL&;t t
11864 $ac_datarootdir_hack
11866 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11867 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11870 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11872 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11874 which seems to be undefined. Please make sure it is defined" >&5
11875 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11876 which seems to be undefined. Please make sure it is defined" >&2;}
11878 rm -f "$ac_tmp/stdin"
11880 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11881 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11889 if test x"$ac_file" != x-; then
11891 $as_echo "/* $configure_input */" \
11892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11893 } >"$ac_tmp/config.h" \
11894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11895 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11897 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11900 mv "$ac_tmp/config.h" "$ac_file" \
11901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11904 $as_echo "/* $configure_input */" \
11905 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11906 || as_fn_error $? "could not create -" "$LINENO" 5
11910 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11911 $as_echo "$as_me: executing $ac_file commands" >&6;}
11916 case $ac_file$ac_mode in
11917 "config.h":H) echo > stamp-h ;;
11918 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
11920 for subdir in ${CONFIG_SRC_SUBDIR}
11922 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
11931 ac_clean_files=$ac_clean_files_save
11933 test $ac_write_fail = 0 ||
11934 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11937 # configure is writing to config.log, and then calls config.status.
11938 # config.status does its own redirection, appending to config.log.
11939 # Unfortunately, on DOS this fails, as config.log is still kept open
11940 # by configure, so config.status won't be able to
write to it
; its
11941 # output is simply discarded. So we exec the FD to /dev/null,
11942 # effectively closing config.log, so it can be properly (re)opened and
11943 # appended to by config.status. When coming back to configure, we
11944 # need to make the FD available again.
11945 if test "$no_create" != yes; then
11947 ac_config_status_args
=
11948 test "$silent" = yes &&
11949 ac_config_status_args
="$ac_config_status_args --quiet"
11951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11954 # would make configure fail if this is the last instruction.
11955 $ac_cs_success || as_fn_exit
1
11957 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11959 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}