2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Valgrind 3.7.0.SVN.
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: valgrind-users@lists.sourceforge.net about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='Valgrind'
582 PACKAGE_TARNAME='valgrind'
583 PACKAGE_VERSION='3.7.0.SVN'
584 PACKAGE_STRING='Valgrind 3.7.0.SVN'
585 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
588 ac_unique_file="coregrind/m_main.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars='am__EXEEXT_FALSE
629 HAVE_BUILTIN_ATOMIC_CXX_FALSE
630 HAVE_BUILTIN_ATOMIC_CXX_TRUE
631 HAVE_BUILTIN_ATOMIC_FALSE
632 HAVE_BUILTIN_ATOMIC_TRUE
635 HAVE_BOOST_1_35_FALSE
639 BUILD_MPIWRAP_SEC_FALSE
640 BUILD_MPIWRAP_SEC_TRUE
641 BUILD_MPIWRAP_PRI_FALSE
642 BUILD_MPIWRAP_PRI_TRUE
644 HAVE_PTHREAD_SPINLOCK_FALSE
645 HAVE_PTHREAD_SPINLOCK_TRUE
646 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
647 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
648 HAVE_PTHREAD_BARRIER_FALSE
649 HAVE_PTHREAD_BARRIER_TRUE
651 BUILD_SSE42_TESTS_FALSE
652 BUILD_SSE42_TESTS_TRUE
653 BUILD_LZCNT_TESTS_FALSE
654 BUILD_LZCNT_TESTS_TRUE
655 BUILD_PCLMULQDQ_TESTS_FALSE
656 BUILD_PCLMULQDQ_TESTS_TRUE
657 BUILD_SSSE3_TESTS_FALSE
658 BUILD_SSSE3_TESTS_TRUE
659 BUILD_SSE3_TESTS_FALSE
660 BUILD_SSE3_TESTS_TRUE
662 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
663 FLAG_FNO_STACK_PROTECTOR
665 FLAG_W_NO_UNINITIALIZED
668 FLAG_W_NO_FORMAT_ZERO_LENGTH
670 PREFERRED_STACK_BOUNDARY
677 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
678 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
688 VALT_LOAD_ADDRESS_SEC
689 VALT_LOAD_ADDRESS_PRI
690 VGCONF_HAVE_PLATFORM_SEC_FALSE
691 VGCONF_HAVE_PLATFORM_SEC_TRUE
692 VGCONF_OS_IS_L4RE_FALSE
693 VGCONF_OS_IS_L4RE_TRUE
694 VGCONF_OS_IS_DARWIN_FALSE
695 VGCONF_OS_IS_DARWIN_TRUE
696 VGCONF_OS_IS_AIX5_FALSE
697 VGCONF_OS_IS_AIX5_TRUE
698 VGCONF_OS_IS_LINUX_FALSE
699 VGCONF_OS_IS_LINUX_TRUE
700 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
701 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
702 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
703 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
704 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
705 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
706 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
707 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
708 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
709 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
710 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE
711 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE
712 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
713 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
714 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
715 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
716 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
717 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
718 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
719 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
720 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
721 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
722 VGCONF_ARCHS_INCLUDE_S390X_FALSE
723 VGCONF_ARCHS_INCLUDE_S390X_TRUE
724 VGCONF_ARCHS_INCLUDE_ARM_FALSE
725 VGCONF_ARCHS_INCLUDE_ARM_TRUE
726 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
727 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
728 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
729 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
730 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
731 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
732 VGCONF_ARCHS_INCLUDE_X86_FALSE
733 VGCONF_ARCHS_INCLUDE_X86_TRUE
734 VGCONF_PLATFORM_SEC_CAPS
735 VGCONF_PLATFORM_PRI_CAPS
748 am__fastdepCCAS_FALSE
784 MAINTAINER_MODE_FALSE
794 INSTALL_STRIP_PROGRAM
836 program_transform_name
849 enable_option_checking
850 enable_maintainer_mode
851 enable_dependency_tracking
858 ac_precious_vars='build_alias
875 # Initialize some variables set by options.
877 ac_init_version=false
878 ac_unrecognized_opts=
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
889 program_transform_name=s,x,x,
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
914 infodir='${datarootdir}/info'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
929 eval $ac_prev=\$ac_option
935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=no ;;
994 -docdir | --docdir | --docdi | --doc | --do)
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
1004 -enable-* | --enable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1018 eval enable_$ac_useropt=\$ac_optarg ;;
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 htmldir=$ac_optarg ;;
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1063 -libdir | --libdir | --libdi | --libd)
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1154 -psdir | --psdir | --psdi | --psd | --ps)
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1182 -site=* | --site=* | --sit=*)
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval with_$ac_useropt=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1238 eval with_$ac_useropt=no ;;
1241 # Obsolete; use --with-x.
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1273 # FIXME: should be removed in autoconf 3.0.
1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1309 # Be sure to have absolute directory names.
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures Valgrind 3.7.0.SVN to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of Valgrind 3.7.0.SVN:";;
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-maintainer-mode enable make rules and dependencies not useful
1492 (and sometimes confusing) to the casual installer
1493 --disable-dependency-tracking speeds up one-time build
1494 --enable-dependency-tracking do not reject slow dependency extractors
1495 --enable-only64bit do a 64-bit only build
1496 --enable-only32bit do a 32-bit only build
1497 --enable-inner enables self-hosting
1498 --enable-tls platform supports TLS
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-mpicc= Specify name of MPI2-ised C compiler
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
1511 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1512 you have headers in a nonstandard directory <include dir>
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
1517 CCAS assembler compiler command (defaults to CC)
1518 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1523 Report bugs to <valgrind-users@lists.sourceforge.net>.
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" ||
1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1586 Valgrind configure 3.7.0.SVN
1587 generated by GNU Autoconf 2.69
1589 Copyright (C) 2012 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext
1607 if { { ac_try="$ac_compile"
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext; then :
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1636 } # ac_fn_c_try_compile
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1675 # ac_fn_cxx_try_compile LINENO
1676 # ----------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_cxx_try_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_cxx_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_cxx_try_compile
1713 # ac_fn_c_try_link LINENO
1714 # -----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext conftest$ac_exeext
1720 if { { ac_try="$ac_link"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>conftest.err
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest$ac_exeext && {
1739 test "$cross_compiling" = yes ||
1740 test -x conftest$ac_exeext
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751 # interfere with the next link command; also delete a directory that is
1752 # left behind by Apple's compiler. We do this before executing the actions.
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1757 } # ac_fn_c_try_link
1759 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1762 # the include files in INCLUDES and setting the cache variable VAR
1764 ac_fn_c_check_header_mongrel ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if eval \${$3+:} false; then :
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1777 # Is the header compilable?
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1779 $as_echo_n "checking $2 usability... " >&6; }
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 ac_header_compiler=yes
1788 ac_header_compiler=no
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1792 $as_echo "$ac_header_compiler" >&6; }
1794 # Is the header present?
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1796 $as_echo_n "checking $2 presence... " >&6; }
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1801 if ac_fn_c_try_cpp "$LINENO"; then :
1802 ac_header_preproc=yes
1804 ac_header_preproc=no
1806 rm -f conftest.err conftest.i conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1808 $as_echo "$ac_header_preproc" >&6; }
1810 # So? What about this header?
1811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1814 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1820 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1822 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1824 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1826 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 ( $as_echo "## --------------------------------------------------- ##
1830 ## Report this to valgrind-users@lists.sourceforge.net ##
1831 ## --------------------------------------------------- ##"
1832 ) | sed "s/^/$as_me: WARNING: /" >&2
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1840 eval "$3=\$ac_header_compiler"
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 } # ac_fn_c_check_header_mongrel
1850 # ac_fn_c_try_run LINENO
1851 # ----------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1853 # that executables *can* be run.
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_link"
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>&5
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868 { { case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_try") 2>&5
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; }; }; then :
1880 $as_echo "$as_me: program exited with status $ac_status" >&5
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=$ac_status
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1892 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1893 # -------------------------------------------------------
1894 # Tests whether HEADER exists and can be compiled using the include files in
1895 # INCLUDES, setting the cache variable VAR accordingly.
1896 ac_fn_c_check_header_compile ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1909 if ac_fn_c_try_compile "$LINENO"; then :
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 } # ac_fn_c_check_header_compile
1923 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924 # -------------------------------------------
1925 # Tests whether TYPE exists after having included INCLUDES, setting cache
1926 # variable VAR accordingly.
1927 ac_fn_c_check_type ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1961 if ac_fn_c_try_compile "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_type
1977 # ac_fn_c_check_func LINENO FUNC VAR
1978 # ----------------------------------
1979 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1980 ac_fn_c_check_func ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1992 #define $2 innocuous_$2
1994 /* System header to define __stub macros and hopefully few prototypes,
1995 which can conflict with char $2 (); below.
1996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1997 <limits.h> exists even on freestanding compilers. */
2000 # include <limits.h>
2002 # include <assert.h>
2007 /* Override any GCC internal prototype to avoid an error.
2008 Use char because int might match the return type of a GCC
2009 builtin and then its argument prototype would still apply. */
2014 /* The GNU C library defines this for functions which it implements
2015 to always fail with ENOSYS. Some functions are actually named
2016 something starting with __ and the normal name is an alias. */
2017 #if defined __stub_$2 || defined __stub___$2
2029 if ac_fn_c_try_link "$LINENO"; then :
2034 rm -f core conftest.err conftest.$ac_objext \
2035 conftest$ac_exeext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_func
2044 # ac_fn_cxx_try_link LINENO
2045 # -------------------------
2046 # Try to link conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_cxx_try_link ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext conftest$ac_exeext
2051 if { { ac_try="$ac_link"
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>conftest.err
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest$ac_exeext && {
2070 test "$cross_compiling" = yes ||
2071 test -x conftest$ac_exeext
2075 $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2080 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2081 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2082 # interfere with the next link command; also delete a directory that is
2083 # left behind by Apple's compiler. We do this before executing the actions.
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_cxx_try_link
2089 cat >config.log <<_ACEOF
2090 This file contains any messages produced by compilers while
2091 running configure, to aid debugging if configure makes a mistake.
2093 It was created by Valgrind $as_me 3.7.0.SVN, which was
2094 generated by GNU Autoconf 2.69. Invocation command line was
2106 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2107 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2108 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2109 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2110 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2113 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2115 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2116 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2117 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2118 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2119 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2120 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2121 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 $as_echo "PATH: $as_dir"
2146 # Keep a trace of the command line.
2147 # Strip out --no-create and --no-recursion so they do not pile up.
2148 # Strip out --silent because we don't want to record it for future runs.
2149 # Also quote any args containing shell meta-characters.
2150 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_must_keep_next=false
2160 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2162 | -silent | --silent | --silen | --sile | --sil)
2165 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170 as_fn_append ac_configure_args1 " '$ac_arg'"
2171 if test $ac_must_keep_next = true; then
2172 ac_must_keep_next=false # Got value, back to normal.
2175 *=* | --config-cache | -C | -disable-* | --disable-* \
2176 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2177 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2178 | -with-* | --with-* | -without-* | --without-* | --x)
2179 case "$ac_configure_args0 " in
2180 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 -* ) ac_must_keep_next=true ;;
2186 as_fn_append ac_configure_args " '$ac_arg'"
2191 { ac_configure_args0=; unset ac_configure_args0;}
2192 { ac_configure_args1=; unset ac_configure_args1;}
2194 # When interrupted or exit'd, cleanup temporary files, and complete
2195 # config.log. We remove comments because anyway the quotes in there
2196 # would cause problems or look ugly.
2197 # WARNING: Use '\'' to represent an apostrophe within the trap.
2198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2199 trap 'exit_status=$?
2200 # Save into config.log some information that might help in debugging.
2204 $as_echo "## ---------------- ##
2205 ## Cache variables. ##
2206 ## ---------------- ##"
2208 # The following way of writing the cache mishandles newlines in values,
2210 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2211 eval ac_val=\$$ac_var
2215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219 _ | IFS | as_nl) ;; #(
2220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2221 *) { eval $ac_var=; unset $ac_var;} ;;
2226 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2227 *${as_nl}ac_space=\ *)
2229 "s/'\''/'\''\\\\'\'''\''/g;
2230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240 $as_echo "## ----------------- ##
2241 ## Output variables. ##
2242 ## ----------------- ##"
2244 for ac_var in $ac_subst_vars
2246 eval ac_val=\$$ac_var
2248 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 $as_echo "$ac_var='\''$ac_val'\''"
2254 if test -n "$ac_subst_files"; then
2255 $as_echo "## ------------------- ##
2256 ## File substitutions. ##
2257 ## ------------------- ##"
2259 for ac_var in $ac_subst_files
2261 eval ac_val=\$$ac_var
2263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 $as_echo "$ac_var='\''$ac_val'\''"
2270 if test -s confdefs.h; then
2271 $as_echo "## ----------- ##
2278 test "$ac_signal" != 0 &&
2279 $as_echo "$as_me: caught signal $ac_signal"
2280 $as_echo "$as_me: exit $exit_status"
2282 rm -f core *.core core.conftest.* &&
2283 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2286 for ac_signal in 1 2 13 15; do
2287 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2292 rm -f -r conftest* confdefs.h
2294 $as_echo "/* confdefs.h */" > confdefs.h
2296 # Predefined preprocessor variables.
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_NAME "$PACKAGE_NAME"
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_STRING "$PACKAGE_STRING"
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_URL "$PACKAGE_URL"
2323 # Let the site file select an alternate cache file if it wants to.
2324 # Prefer an explicitly selected file to automatically selected ones.
2327 if test -n "$CONFIG_SITE"; then
2328 # We do not want a PATH search for config.site.
2329 case $CONFIG_SITE in #((
2330 -*) ac_site_file1=./$CONFIG_SITE;;
2331 */*) ac_site_file1=$CONFIG_SITE;;
2332 *) ac_site_file1=./$CONFIG_SITE;;
2334 elif test "x$prefix" != xNONE; then
2335 ac_site_file1=$prefix/share/config.site
2336 ac_site_file2=$prefix/etc/config.site
2338 ac_site_file1=$ac_default_prefix/share/config.site
2339 ac_site_file2=$ac_default_prefix/etc/config.site
2341 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343 test "x$ac_site_file" = xNONE && continue
2344 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2346 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2347 sed 's/^/| /' "$ac_site_file" >&5
2349 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 as_fn_error $? "failed to load site script $ac_site_file
2352 See \`config.log' for more details" "$LINENO" 5; }
2356 if test -r "$cache_file"; then
2357 # Some versions of bash will fail to source /dev/null (special files
2358 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2359 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364 *) . "./$cache_file";;
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 as_fn_append ac_header_list " stdlib.h"
2374 as_fn_append ac_header_list " unistd.h"
2375 as_fn_append ac_header_list " sys/param.h"
2376 # Check that the precious variables saved in the cache have kept the same
2378 ac_cache_corrupted=false
2379 for ac_var in $ac_precious_vars; do
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
2384 case $ac_old_set,$ac_new_set in
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2388 ac_cache_corrupted=: ;;
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2409 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2411 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2417 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2426 if $ac_cache_corrupted; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2433 ## -------------------- ##
2434 ## Main body of script. ##
2435 ## -------------------- ##
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445 ac_config_headers="$ac_config_headers config.h"
2447 am__api_version='1.11'
2450 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451 if test -f "$ac_dir/install-sh"; then
2453 ac_install_sh="$ac_aux_dir/install-sh -c"
2455 elif test -f "$ac_dir/install.sh"; then
2457 ac_install_sh="$ac_aux_dir/install.sh -c"
2459 elif test -f "$ac_dir/shtool"; then
2461 ac_install_sh="$ac_aux_dir/shtool install -c"
2465 if test -z "$ac_aux_dir"; then
2466 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2474 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2475 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2478 # Find a good install program. We prefer a C program (faster),
2479 # so one script is as good as another. But avoid the broken or
2480 # incompatible versions:
2481 # SysV /etc/install, /usr/sbin/install
2482 # SunOS /usr/etc/install
2483 # IRIX /sbin/install
2485 # AmigaOS /C/install, which installs bootblocks on floppy discs
2486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2489 # OS/2's system install, which has a completely different semantic
2490 # ./install, which can be erroneously created by make from ./install.sh.
2491 # Reject install programs that cannot install multiple files.
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2493 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2494 if test -z "$INSTALL"; then
2495 if ${ac_cv_path_install+:} false; then :
2496 $as_echo_n "(cached) " >&6
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 # Account for people who put trailing slashes in PATH elements.
2504 case $as_dir/ in #((
2505 ./ | .// | /[cC]/* | \
2506 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2507 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2510 # OSF1 and SCO ODT 3.0 have their own names for install.
2511 # Don't use installbsd from OSF since it installs stuff as root
2513 for ac_prog in ginstall scoinst install; do
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2516 if test $ac_prog = install &&
2517 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518 # AIX install. It has an incompatible calling convention.
2520 elif test $ac_prog = install &&
2521 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # program-specific install script used by HP pwplus--don't use.
2525 rm -rf conftest.one conftest.two conftest.dir
2526 echo one > conftest.one
2527 echo two > conftest.two
2529 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2530 test -s conftest.one && test -s conftest.two &&
2531 test -s conftest.dir/conftest.one &&
2532 test -s conftest.dir/conftest.two
2534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2547 rm -rf conftest.one conftest.two conftest.dir
2550 if test "${ac_cv_path_install+set}" = set; then
2551 INSTALL=$ac_cv_path_install
2553 # As a last resort, use the slow shell script. Don't cache a
2554 # value for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the value is a relative name.
2557 INSTALL=$ac_install_sh
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2561 $as_echo "$INSTALL" >&6; }
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2572 $as_echo_n "checking whether build environment is sane... " >&6; }
2575 echo timestamp > conftest.file
2576 # Reject unsafe characters in $srcdir or the absolute working directory
2577 # name. Accept space and tab only in the latter.
2581 *[\\\"\#\$\&\'\`$am_lf]*)
2582 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2585 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2586 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2589 # Do `set' in a subshell so we don't clobber the current shell's
2590 # arguments. Must try -L first in case configure is actually a
2591 # symlink; some systems play weird games with the mod time of symlinks
2592 # (eg FreeBSD returns the mod time of the symlink's containing
2595 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2596 if test "$*" = "X"; then
2598 set X `ls -t "$srcdir/configure" conftest.file`
2601 if test "$*" != "X $srcdir/configure conftest.file" \
2602 && test "$*" != "X conftest.file $srcdir/configure"; then
2604 # If neither matched, then we have a broken ls. This can happen
2605 # if, for instance, CONFIG_SHELL is bash and it inherits a
2606 # broken ls alias from the environment. This has actually
2607 # happened. Such a system could not be considered "sane".
2608 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2609 alias in your environment" "$LINENO" 5
2612 test "$2" = conftest.file
2618 as_fn_error $? "newly created file is older than distributed files!
2619 Check your system clock" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2622 $as_echo "yes" >&6; }
2623 test "$program_prefix" != NONE &&
2624 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2625 # Use a double $ so make ignores it.
2626 test "$program_suffix" != NONE &&
2627 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2628 # Double any \ or $.
2629 # By default was `s,x,x', remove it if useless.
2630 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2631 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2633 # expand $ac_aux_dir to an absolute path
2634 am_aux_dir=`cd $ac_aux_dir && pwd`
2636 if test x"${MISSING+set}" != xset; then
2639 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2641 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2644 # Use eval to expand $SHELL
2645 if eval "$MISSING --run true"; then
2646 am_missing_run="$MISSING --run "
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2650 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2653 if test x"${install_sh}" != xset; then
2656 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2658 install_sh="\${SHELL} $am_aux_dir/install-sh"
2662 # Installed binaries are usually stripped using `strip' when the user
2663 # run `make install-strip'. However `strip' might not be the right
2664 # tool to use in cross-compilation environments, therefore Automake
2665 # will honor the `STRIP' environment variable to overrule this program.
2666 if test "$cross_compiling" != no; then
2667 if test -n "$ac_tool_prefix"; then
2668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}strip; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_STRIP+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 if test -n "$STRIP"; then
2676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 STRIP=$ac_cv_prog_STRIP
2696 if test -n "$STRIP"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2698 $as_echo "$STRIP" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2706 if test -z "$ac_cv_prog_STRIP"; then
2708 # Extract the first word of "strip", so it can be a program name with args.
2709 set dummy strip; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2713 $as_echo_n "(cached) " >&6
2715 if test -n "$ac_ct_STRIP"; then
2716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_ac_ct_STRIP="strip"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2736 if test -n "$ac_ct_STRIP"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2738 $as_echo "$ac_ct_STRIP" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2744 if test "x$ac_ct_STRIP" = x; then
2747 case $cross_compiling:$ac_tool_warned in
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2751 ac_tool_warned=yes ;;
2756 STRIP="$ac_cv_prog_STRIP"
2760 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2763 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2764 if test -z "$MKDIR_P"; then
2765 if ${ac_cv_path_mkdir+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2772 test -z "$as_dir" && as_dir=.
2773 for ac_prog in mkdir gmkdir; do
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2776 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2777 'mkdir (GNU coreutils) '* | \
2778 'mkdir (coreutils) '* | \
2779 'mkdir (fileutils) '4.1*)
2780 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2790 test -d ./--version && rmdir ./--version
2791 if test "${ac_cv_path_mkdir+set}" = set; then
2792 MKDIR_P="$ac_cv_path_mkdir -p"
2794 # As a last resort, use the slow shell script. Don't cache a
2795 # value for MKDIR_P within a source directory, because that will
2796 # break other packages using the cache if that directory is
2797 # removed, or if the value is a relative name.
2798 MKDIR_P="$ac_install_sh -d"
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2802 $as_echo "$MKDIR_P" >&6; }
2806 [\\/$]* | ?:[\\/]*) ;;
2807 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2810 for ac_prog in gawk mawk nawk awk
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_AWK+:} false; then :
2817 $as_echo_n "(cached) " >&6
2819 if test -n "$AWK"; then
2820 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_AWK="$ac_prog"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 if test -n "$AWK"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2842 $as_echo "$AWK" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2849 test -n "$AWK" && break
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2853 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2855 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2856 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 cat >conftest.make <<\_ACEOF
2862 @echo '@@@%%%=$(MAKE)=@@@%%%'
2864 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2867 eval ac_cv_prog_make_${ac_make}_set=yes;;
2869 eval ac_cv_prog_make_${ac_make}_set=no;;
2873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2875 $as_echo "yes" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 SET_MAKE="MAKE=${MAKE-make}"
2883 rm -rf .tst 2>/dev/null
2884 mkdir .tst 2>/dev/null
2885 if test -d .tst; then
2890 rmdir .tst 2>/dev/null
2892 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2893 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2894 # is not polluted with repeated "-I."
2895 am__isrc=' -I$(srcdir)'
2896 # test to see if srcdir already configured
2897 if test -f $srcdir/config.status; then
2898 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2902 # test whether we have cygpath
2903 if test -z "$CYGPATH_W"; then
2904 if (cygpath --version) >/dev/null 2>/dev/null; then
2905 CYGPATH_W='cygpath -w'
2912 # Define the identity of the package.
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE "$PACKAGE"
2922 cat >>confdefs.h <<_ACEOF
2923 #define VERSION "$VERSION"
2926 # Some tools Automake needs.
2928 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2931 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2934 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2937 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2940 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2942 # We need awk for the "check" target. The system "awk" is bad on
2944 # Always define AMTAR for backward compatibility. Yes, it's still used
2945 # in the wild :-( We should find a proper way to deprecate it ...
2948 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2957 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2958 # Check whether --enable-maintainer-mode was given.
2959 if test "${enable_maintainer_mode+set}" = set; then :
2960 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2962 USE_MAINTAINER_MODE=no
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2966 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2967 if test $USE_MAINTAINER_MODE = yes; then
2968 MAINTAINER_MODE_TRUE=
2969 MAINTAINER_MODE_FALSE='#'
2971 MAINTAINER_MODE_TRUE='#'
2972 MAINTAINER_MODE_FALSE=
2975 MAINT=$MAINTAINER_MODE_TRUE
2979 #----------------------------------------------------------------------------
2980 # Checks for various programs.
2981 #----------------------------------------------------------------------------
2982 CFLAGS="-Wno-long-long $CFLAGS"
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2985 $as_echo_n "checking whether ln -s works... " >&6; }
2987 if test "$LN_S" = "ln -s"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2989 $as_echo "yes" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2992 $as_echo "no, using $LN_S" >&6; }
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3039 if test -z "$ac_cv_prog_CC"; then
3041 # Extract the first word of "gcc", so it can be a program name with args.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$ac_ct_CC"; then
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_ac_ct_CC="gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3077 if test "x$ac_ct_CC" = x; then
3080 case $cross_compiling:$ac_tool_warned in
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_CC="${ac_tool_prefix}cc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3133 if test -z "$CC"; then
3134 # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153 ac_prog_rejected=yes
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 if test $ac_prog_rejected = yes; then
3165 # We found a bogon in the path, so make sure we never use it.
3166 set dummy $ac_cv_prog_CC
3168 if test $# != 0; then
3169 # We chose a different compiler from the bogus one.
3170 # However, it has the same basename, so the bogon will be chosen
3171 # first if we set CC to just the basename; use the full file name.
3173 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3189 if test -z "$CC"; then
3190 if test -n "$ac_tool_prefix"; then
3191 for ac_prog in cl.exe
3193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3230 test -n "$CC" && break
3233 if test -z "$CC"; then
3235 for ac_prog in cl.exe
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_ac_ct_CC="$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3274 test -n "$ac_ct_CC" && break
3277 if test "x$ac_ct_CC" = x; then
3280 case $cross_compiling:$ac_tool_warned in
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details" "$LINENO" 5; }
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3302 for ac_option in --version -v -V -qversion; do
3303 { { ac_try="$ac_compiler $ac_option >&5"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3312 if test -s conftest.err; then
3314 ... rest of stderr output deleted ...
3315 10q' conftest.err >conftest.er1
3316 cat conftest.er1 >&5
3318 rm -f conftest.er1 conftest.err
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3334 ac_clean_files_save=$ac_clean_files
3335 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3336 # Try to create an executable without -o first, disregard a.out.
3337 # It will help us diagnose broken compilers, and finding out an intuition
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3343 # The possible output files:
3344 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3347 for ac_file in $ac_files
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356 if { { ac_try="$ac_link_default"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_link_default") 2>&5
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3369 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3370 # so that the user can short-circuit this test for compilers unknown to
3372 for ac_file in $ac_files ''
3374 test -f "$ac_file" || continue
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3379 # We found the default executable, but exeext='' is most
3383 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387 # We set ac_cv_exeext here because the later test for it is not
3388 # safe: cross compilers may not add the suffix if given an `-o'
3389 # argument, so we may need to know it at that point already.
3390 # Even if this section looks crufty: it has the advantage of
3397 test "$ac_cv_exeext" = no && ac_cv_exeext=
3402 if test -z "$ac_file"; then :
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error 77 "C compiler cannot create executables
3411 See \`config.log' for more details" "$LINENO" 5; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3417 $as_echo_n "checking for C compiler default output file name... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 ac_exeext=$ac_cv_exeext
3422 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details" "$LINENO" 5; }
3456 rm -f conftest conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3469 FILE *f = fopen ("conftest.out", "w");
3470 return ferror (f) || fclose (f) != 0;
3476 ac_clean_files="$ac_clean_files conftest.out"
3477 # Check that the compiler produces executables we can run. If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3480 $as_echo_n "checking whether we are cross compiling... " >&6; }
3481 if test "$cross_compiling" != yes; then
3482 { { ac_try="$ac_link"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_link") 2>&5
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }
3493 if { ac_try='./conftest$ac_cv_exeext'
3494 { { case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_try") 2>&5
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; }; then
3506 if test "$cross_compiling" = maybe; then
3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details" "$LINENO" 5; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3518 $as_echo "$cross_compiling" >&6; }
3520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3523 $as_echo_n "checking for suffix of object files... " >&6; }
3524 if ${ac_cv_objext+:} false; then :
3525 $as_echo_n "(cached) " >&6
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3538 rm -f conftest.o conftest.obj
3539 if { { ac_try="$ac_compile"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_compile") 2>&5
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 for ac_file in conftest.o conftest.obj conftest.*; do
3551 test -f "$ac_file" || continue;
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details" "$LINENO" 5; }
3567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3570 $as_echo "$ac_cv_objext" >&6; }
3571 OBJEXT=$ac_cv_objext
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3575 if ${ac_cv_c_compiler_gnu+:} false; then :
3576 $as_echo_n "(cached) " >&6
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3592 if ac_fn_c_try_compile "$LINENO"; then :
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3603 if test $ac_compiler_gnu = yes; then
3608 ac_test_CFLAGS=${CFLAGS+set}
3609 ac_save_CFLAGS=$CFLAGS
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3612 if ${ac_cv_prog_cc_g+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 ac_save_c_werror_flag=$ac_c_werror_flag
3616 ac_c_werror_flag=yes
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3630 if ac_fn_c_try_compile "$LINENO"; then :
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3645 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_c_werror_flag=$ac_save_c_werror_flag
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3661 if ac_fn_c_try_compile "$LINENO"; then :
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 ac_c_werror_flag=$ac_save_c_werror_flag
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3672 $as_echo "$ac_cv_prog_cc_g" >&6; }
3673 if test "$ac_test_CFLAGS" = set; then
3674 CFLAGS=$ac_save_CFLAGS
3675 elif test $ac_cv_prog_cc_g = yes; then
3676 if test "$GCC" = yes; then
3682 if test "$GCC" = yes; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3690 if ${ac_cv_prog_cc_c89+:} false; then :
3691 $as_echo_n "(cached) " >&6
3693 ac_cv_prog_cc_c89=no
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3701 struct buf { int x; };
3702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3703 static char *e (p, i)
3709 static char *f (char * (*g) (char **, int), char **p, ...)
3714 s = g (p, va_arg (v,int));
3719 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3720 function prototypes and stuff, but not '\xHH' hex character constants.
3721 These don't provoke an error unfortunately, instead are silently treated
3722 as 'x'. The following induces an error, until -std is added to get
3723 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3724 array size at least. It's necessary to write '\x00'==0 to get something
3725 that's true only with -std. */
3726 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3728 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3729 inside strings and character constants. */
3731 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3733 int test (int i, double x);
3734 struct s1 {int (*f) (int a);};
3735 struct s2 {int (*f) (double a);};
3736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3747 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3748 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3750 CC="$ac_save_CC $ac_arg"
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_prog_cc_c89=$ac_arg
3754 rm -f core conftest.err conftest.$ac_objext
3755 test "x$ac_cv_prog_cc_c89" != "xno" && break
3757 rm -f conftest.$ac_ext
3762 case "x$ac_cv_prog_cc_c89" in
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765 $as_echo "none needed" >&6; } ;;
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3768 $as_echo "unsupported" >&6; } ;;
3770 CC="$CC $ac_cv_prog_cc_c89"
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3772 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3774 if test "x$ac_cv_prog_cc_c89" != xno; then :
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 DEPDIR="${am__leading_dot}deps"
3785 ac_config_commands="$ac_config_commands depfiles"
3788 am_make=${MAKE-make}
3789 cat > confinc << 'END'
3791 @echo this is the am__doit target
3794 # If we don't find an include directive, just comment out the code.
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3796 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3800 # First try GNU make style include.
3801 echo "include confinc" > confmf
3802 # Ignore all kinds of additional output from `make'.
3803 case `$am_make -s -f confmf 2> /dev/null` in #(
3804 *the\ am__doit\ target*)
3810 # Now try BSD make style include.
3811 if test "$am__include" = "#"; then
3812 echo '.include "confinc"' > confmf
3813 case `$am_make -s -f confmf 2> /dev/null` in #(
3814 *the\ am__doit\ target*)
3815 am__include=.include
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3824 $as_echo "$_am_result" >&6; }
3825 rm -f confinc confmf
3827 # Check whether --enable-dependency-tracking was given.
3828 if test "${enable_dependency_tracking+set}" = set; then :
3829 enableval=$enable_dependency_tracking;
3832 if test "x$enable_dependency_tracking" != xno; then
3833 am_depcomp="$ac_aux_dir/depcomp"
3837 if test "x$enable_dependency_tracking" != xno; then
3847 depcc="$CC" am_compiler_list=
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3850 $as_echo_n "checking dependency style of $depcc... " >&6; }
3851 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3852 $as_echo_n "(cached) " >&6
3854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855 # We make a subdir and do the tests there. Otherwise we can end up
3856 # making bogus files that we don't know about and never remove. For
3857 # instance it was reported that on HP-UX the gcc test will end up
3858 # making a dummy file named `D' -- because `-MD' means `put the output
3862 # Copy depcomp to subdir because otherwise we won't find it if we're
3863 # using a relative directory.
3864 cp "$am_depcomp" conftest.dir
3866 # We will build objects and dependencies in a subdirectory because
3867 # it helps to detect inapplicable dependency modes. For instance
3868 # both Tru64's cc and ICC support -MD to output dependencies as a
3869 # side effect of compilation, but ICC will put the dependencies in
3870 # the current directory while Tru64 will put them in the object
3874 am_cv_CC_dependencies_compiler_type=none
3875 if test "$am_compiler_list" = ""; then
3876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3879 case " $depcc " in #(
3880 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3883 for depmode in $am_compiler_list; do
3884 # Setup a source with many dependencies, because some compilers
3885 # like to wrap large dependency lists on column 80 (with \), and
3886 # we should not choose a depcomp mode which is confused by this.
3888 # We need to recreate these files for each test, as the compiler may
3889 # overwrite some of them when testing with obscure command lines.
3890 # This happens at least with the AIX C compiler.
3892 for i in 1 2 3 4 5 6; do
3893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3895 # Solaris 8's {/usr,}/bin/sh.
3896 touch sub/conftst$i.h
3898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3900 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3901 # mode. It turns out that the SunPro C++ compiler does not properly
3902 # handle `-M -o', and we need to detect this. Also, some Intel
3903 # versions had trouble with output in subdirs
3904 am__obj=sub/conftest.${OBJEXT-o}
3905 am__minus_obj="-o $am__obj"
3908 # This depmode causes a compiler race in universal mode.
3909 test "$am__universal" = false || continue
3912 # after this tag, mechanisms are not by side-effect, so they'll
3913 # only be used when explicitly requested
3914 if test "x$enable_dependency_tracking" = xyes; then
3920 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3921 # This compiler won't grok `-c -o', but also, the minuso test has
3922 # not run yet. These depmodes are late enough in the game, and
3923 # so weak that their functioning should not be impacted.
3924 am__obj=conftest.${OBJEXT-o}
3929 if depmode=$depmode \
3930 source=sub/conftest.c object=$am__obj \
3931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933 >/dev/null 2>conftest.err &&
3934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938 # icc doesn't choke on unknown options, it will just issue warnings
3939 # or remarks (even with -Werror). So we grep stderr for any message
3940 # that says an option was ignored or not supported.
3941 # When given -MP, icc 7.0 and 7.1 complain thusly:
3942 # icc: Command line warning: ignoring option '-M'; no argument required
3943 # The diagnosis changed in icc 8.0:
3944 # icc: Command line remark: option '-MP' not supported
3945 if (grep 'ignoring option' conftest.err ||
3946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947 am_cv_CC_dependencies_compiler_type=$depmode
3956 am_cv_CC_dependencies_compiler_type=none
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3965 test "x$enable_dependency_tracking" != xno \
3966 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3968 am__fastdepCC_FALSE='#'
3970 am__fastdepCC_TRUE='#'
3971 am__fastdepCC_FALSE=
3975 if test "x$CC" != xcc; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3977 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3980 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3982 set dummy $CC; ac_cc=`$as_echo "$2" |
3983 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3984 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3985 $as_echo_n "(cached) " >&6
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3998 # Make sure it works both with $CC and with simple cc.
3999 # We do the test twice because some compilers refuse to overwrite an
4000 # existing .o file with -o, though they will create one.
4001 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4003 if { { case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_try") 2>&5
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; } &&
4013 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019 (eval "$ac_try") 2>&5
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; };
4024 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4025 if test "x$CC" != xcc; then
4026 # Test first that cc exists at all.
4027 if { ac_try='cc -c conftest.$ac_ext >&5'
4028 { { case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_try") 2>&5
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; }; then
4038 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4040 if { { case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_try") 2>&5
4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; } &&
4050 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_try") 2>&5
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; };
4064 # cc exists but doesn't like -o.
4065 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4070 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4072 rm -f core conftest*
4075 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4082 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4086 # FIXME: we rely on the cache variable name because
4087 # there is no other way.
4089 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4090 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4091 if test "$am_t" != yes; then
4092 # Losing compiler, so override with the script.
4093 # FIXME: It is wrong to rewrite CC.
4094 # But if we don't then we get into trouble of one sort or another.
4095 # A longer-term fix would be to have automake use am__CC in this case,
4096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4097 CC="$am_aux_dir/compile $CC"
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4107 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4108 # On Suns, sometimes $CPP names a directory.
4109 if test -n "$CPP" && test -d "$CPP"; then
4112 if test -z "$CPP"; then
4113 if ${ac_cv_prog_CPP+:} false; then :
4114 $as_echo_n "(cached) " >&6
4116 # Double quotes because CPP needs to be expanded
4117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4120 for ac_c_preproc_warn_flag in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4131 # include <limits.h>
4133 # include <assert.h>
4137 if ac_fn_c_try_cpp "$LINENO"; then :
4140 # Broken: fails on valid input.
4143 rm -f conftest.err conftest.i conftest.$ac_ext
4145 # OK, works on sane cases. Now check whether nonexistent headers
4146 # can be detected and how.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <ac_nonexistent.h>
4151 if ac_fn_c_try_cpp "$LINENO"; then :
4152 # Broken: success on invalid input.
4155 # Passes both tests.
4159 rm -f conftest.err conftest.i conftest.$ac_ext
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.i conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then :
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4177 $as_echo "$CPP" >&6; }
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4190 # include <limits.h>
4192 # include <assert.h>
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4199 # Broken: fails on valid input.
4202 rm -f conftest.err conftest.i conftest.$ac_ext
4204 # OK, works on sane cases. Now check whether nonexistent headers
4205 # can be detected and how.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <ac_nonexistent.h>
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4211 # Broken: success on invalid input.
4214 # Passes both tests.
4218 rm -f conftest.err conftest.i conftest.$ac_ext
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.i conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then :
4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details" "$LINENO" 5; }
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 ac_cpp='$CXXCPP $CPPFLAGS'
4240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4243 if test -z "$CXX"; then
4244 if test -n "$CCC"; then
4247 if test -n "$ac_tool_prefix"; then
4248 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_CXX+:} false; then :
4255 $as_echo_n "(cached) " >&6
4257 if test -n "$CXX"; then
4258 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 if test -n "$CXX"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4280 $as_echo "$CXX" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4287 test -n "$CXX" && break
4290 if test -z "$CXX"; then
4292 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4299 $as_echo_n "(cached) " >&6
4301 if test -n "$ac_ct_CXX"; then
4302 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CXX="$ac_prog"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4322 if test -n "$ac_ct_CXX"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4324 $as_echo "$ac_ct_CXX" >&6; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4331 test -n "$ac_ct_CXX" && break
4334 if test "x$ac_ct_CXX" = x; then
4337 case $cross_compiling:$ac_tool_warned in
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4341 ac_tool_warned=yes ;;
4349 # Provide some information about the compiler.
4350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4353 for ac_option in --version -v -V -qversion; do
4354 { { ac_try="$ac_compiler $ac_option >&5"
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 $as_echo "$ac_try_echo"; } >&5
4361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363 if test -s conftest.err; then
4365 ... rest of stderr output deleted ...
4366 10q' conftest.err >conftest.er1
4367 cat conftest.er1 >&5
4369 rm -f conftest.er1 conftest.err
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4375 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4376 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4377 $as_echo_n "(cached) " >&6
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4393 if ac_fn_cxx_try_compile "$LINENO"; then :
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4403 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4404 if test $ac_compiler_gnu = yes; then
4409 ac_test_CXXFLAGS=${CXXFLAGS+set}
4410 ac_save_CXXFLAGS=$CXXFLAGS
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4412 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4413 if ${ac_cv_prog_cxx_g+:} false; then :
4414 $as_echo_n "(cached) " >&6
4416 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4417 ac_cxx_werror_flag=yes
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4431 if ac_fn_cxx_try_compile "$LINENO"; then :
4432 ac_cv_prog_cxx_g=yes
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4446 if ac_fn_cxx_try_compile "$LINENO"; then :
4449 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4462 if ac_fn_cxx_try_compile "$LINENO"; then :
4463 ac_cv_prog_cxx_g=yes
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4473 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4474 if test "$ac_test_CXXFLAGS" = set; then
4475 CXXFLAGS=$ac_save_CXXFLAGS
4476 elif test $ac_cv_prog_cxx_g = yes; then
4477 if test "$GXX" = yes; then
4483 if test "$GXX" = yes; then
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 depcc="$CXX" am_compiler_list=
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4498 $as_echo_n "checking dependency style of $depcc... " >&6; }
4499 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4503 # We make a subdir and do the tests there. Otherwise we can end up
4504 # making bogus files that we don't know about and never remove. For
4505 # instance it was reported that on HP-UX the gcc test will end up
4506 # making a dummy file named `D' -- because `-MD' means `put the output
4510 # Copy depcomp to subdir because otherwise we won't find it if we're
4511 # using a relative directory.
4512 cp "$am_depcomp" conftest.dir
4514 # We will build objects and dependencies in a subdirectory because
4515 # it helps to detect inapplicable dependency modes. For instance
4516 # both Tru64's cc and ICC support -MD to output dependencies as a
4517 # side effect of compilation, but ICC will put the dependencies in
4518 # the current directory while Tru64 will put them in the object
4522 am_cv_CXX_dependencies_compiler_type=none
4523 if test "$am_compiler_list" = ""; then
4524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4527 case " $depcc " in #(
4528 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4531 for depmode in $am_compiler_list; do
4532 # Setup a source with many dependencies, because some compilers
4533 # like to wrap large dependency lists on column 80 (with \), and
4534 # we should not choose a depcomp mode which is confused by this.
4536 # We need to recreate these files for each test, as the compiler may
4537 # overwrite some of them when testing with obscure command lines.
4538 # This happens at least with the AIX C compiler.
4540 for i in 1 2 3 4 5 6; do
4541 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4542 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4543 # Solaris 8's {/usr,}/bin/sh.
4544 touch sub/conftst$i.h
4546 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4549 # mode. It turns out that the SunPro C++ compiler does not properly
4550 # handle `-M -o', and we need to detect this. Also, some Intel
4551 # versions had trouble with output in subdirs
4552 am__obj=sub/conftest.${OBJEXT-o}
4553 am__minus_obj="-o $am__obj"
4556 # This depmode causes a compiler race in universal mode.
4557 test "$am__universal" = false || continue
4560 # after this tag, mechanisms are not by side-effect, so they'll
4561 # only be used when explicitly requested
4562 if test "x$enable_dependency_tracking" = xyes; then
4568 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4569 # This compiler won't grok `-c -o', but also, the minuso test has
4570 # not run yet. These depmodes are late enough in the game, and
4571 # so weak that their functioning should not be impacted.
4572 am__obj=conftest.${OBJEXT-o}
4577 if depmode=$depmode \
4578 source=sub/conftest.c object=$am__obj \
4579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4580 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4581 >/dev/null 2>conftest.err &&
4582 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4584 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4586 # icc doesn't choke on unknown options, it will just issue warnings
4587 # or remarks (even with -Werror). So we grep stderr for any message
4588 # that says an option was ignored or not supported.
4589 # When given -MP, icc 7.0 and 7.1 complain thusly:
4590 # icc: Command line warning: ignoring option '-M'; no argument required
4591 # The diagnosis changed in icc 8.0:
4592 # icc: Command line remark: option '-MP' not supported
4593 if (grep 'ignoring option' conftest.err ||
4594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4595 am_cv_CXX_dependencies_compiler_type=$depmode
4604 am_cv_CXX_dependencies_compiler_type=none
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4609 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4610 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4613 test "x$enable_dependency_tracking" != xno \
4614 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4615 am__fastdepCXX_TRUE=
4616 am__fastdepCXX_FALSE='#'
4618 am__fastdepCXX_TRUE='#'
4619 am__fastdepCXX_FALSE=
4623 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4624 # autoconf 2.59). If we ever have any Objective-C code in the Valgrind code
4625 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4627 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4628 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4629 # - Use the following, which is apparently equivalent:
4630 # m4_ifdef([AC_PROG_OBJC],
4632 # [AC_CHECK_TOOL([OBJC], [gcc])
4634 # AC_SUBST([OBJCFLAGS])
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_RANLIB+:} false; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$RANLIB"; then
4645 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 RANLIB=$ac_cv_prog_RANLIB
4665 if test -n "$RANLIB"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4667 $as_echo "$RANLIB" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4675 if test -z "$ac_cv_prog_RANLIB"; then
4676 ac_ct_RANLIB=$RANLIB
4677 # Extract the first word of "ranlib", so it can be a program name with args.
4678 set dummy ranlib; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4682 $as_echo_n "(cached) " >&6
4684 if test -n "$ac_ct_RANLIB"; then
4685 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694 ac_cv_prog_ac_ct_RANLIB="ranlib"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4705 if test -n "$ac_ct_RANLIB"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4707 $as_echo "$ac_ct_RANLIB" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4713 if test "x$ac_ct_RANLIB" = x; then
4716 case $cross_compiling:$ac_tool_warned in
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4722 RANLIB=$ac_ct_RANLIB
4725 RANLIB="$ac_cv_prog_RANLIB"
4728 # provide a very basic definition for AC_PROG_SED if it's not provided by
4729 # autoconf (as e.g. in autoconf 2.59).
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4732 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4733 if ${ac_cv_path_SED+:} false; then :
4734 $as_echo_n "(cached) " >&6
4736 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4737 for ac_i in 1 2 3 4 5 6 7; do
4738 ac_script="$ac_script$as_nl$ac_script"
4740 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4741 { ac_script=; unset ac_script;}
4742 if test -z "$SED"; then
4743 ac_path_SED_found=false
4744 # Loop through the user's path and test for each of PROGNAME-LIST
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_prog in sed gsed; do
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4753 as_fn_executable_p "$ac_path_SED" || continue
4754 # Check for GNU ac_path_SED and select it if it is found.
4755 # Check for GNU $ac_path_SED
4756 case `"$ac_path_SED" --version 2>&1` in
4758 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4761 $as_echo_n 0123456789 >"conftest.in"
4764 cat "conftest.in" "conftest.in" >"conftest.tmp"
4765 mv "conftest.tmp" "conftest.in"
4766 cp "conftest.in" "conftest.nl"
4767 $as_echo '' >> "conftest.nl"
4768 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4769 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4770 as_fn_arith $ac_count + 1 && ac_count=$as_val
4771 if test $ac_count -gt ${ac_path_SED_max-0}; then
4772 # Best one so far, save it but keep looking for a better one
4773 ac_cv_path_SED="$ac_path_SED"
4774 ac_path_SED_max=$ac_count
4776 # 10*(2^10) chars as input seems more than enough
4777 test $ac_count -gt 10 && break
4779 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4782 $ac_path_SED_found && break 3
4787 if test -z "$ac_cv_path_SED"; then
4788 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4796 $as_echo "$ac_cv_path_SED" >&6; }
4797 SED="$ac_cv_path_SED"
4801 # If no AR variable was specified, look up the name of the archiver. Otherwise
4802 # do not touch the AR variable.
4803 if test "x$AR" = "x"; then
4804 for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4806 # Extract the first word of "$ac_prog", so it can be a program name with args.
4807 set dummy $ac_prog; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_path_AR+:} false; then :
4811 $as_echo_n "(cached) " >&6
4815 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 if test -n "$AR"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4839 $as_echo "$AR" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4846 test -n "$AR" && break
4848 test -n "$AR" || AR="ar"
4853 # Check for the compiler support
4854 if test "${GCC}" != "yes" ; then
4855 as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
4858 # figure out where perl lives
4859 # Extract the first word of "perl", so it can be a program name with args.
4860 set dummy perl; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_path_PERL+:} false; then :
4864 $as_echo_n "(cached) " >&6
4868 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 PERL=$ac_cv_path_PERL
4890 if test -n "$PERL"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4892 $as_echo "$PERL" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4900 # figure out where gdb lives
4901 # Extract the first word of "gdb", so it can be a program name with args.
4902 set dummy gdb; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_path_GDB+:} false; then :
4906 $as_echo_n "(cached) " >&6
4910 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4933 if test -n "$GDB"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4935 $as_echo "$GDB" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4943 cat >>confdefs.h <<_ACEOF
4944 #define GDB_PATH "$GDB"
4948 # some older automake's don't have it so try something on our own
4949 # By default we simply use the C compiler to build assembly code.
4951 test "${CCAS+set}" = set || CCAS=$CC
4952 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4956 depcc="$CCAS" am_compiler_list=
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4959 $as_echo_n "checking dependency style of $depcc... " >&6; }
4960 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4964 # We make a subdir and do the tests there. Otherwise we can end up
4965 # making bogus files that we don't know about and never remove. For
4966 # instance it was reported that on HP-UX the gcc test will end up
4967 # making a dummy file named `D' -- because `-MD' means `put the output
4971 # Copy depcomp to subdir because otherwise we won't find it if we're
4972 # using a relative directory.
4973 cp "$am_depcomp" conftest.dir
4975 # We will build objects and dependencies in a subdirectory because
4976 # it helps to detect inapplicable dependency modes. For instance
4977 # both Tru64's cc and ICC support -MD to output dependencies as a
4978 # side effect of compilation, but ICC will put the dependencies in
4979 # the current directory while Tru64 will put them in the object
4983 am_cv_CCAS_dependencies_compiler_type=none
4984 if test "$am_compiler_list" = ""; then
4985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 for depmode in $am_compiler_list; do
4991 # Setup a source with many dependencies, because some compilers
4992 # like to wrap large dependency lists on column 80 (with \), and
4993 # we should not choose a depcomp mode which is confused by this.
4995 # We need to recreate these files for each test, as the compiler may
4996 # overwrite some of them when testing with obscure command lines.
4997 # This happens at least with the AIX C compiler.
4999 for i in 1 2 3 4 5 6; do
5000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5002 # Solaris 8's {/usr,}/bin/sh.
5003 touch sub/conftst$i.h
5005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5007 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5008 # mode. It turns out that the SunPro C++ compiler does not properly
5009 # handle `-M -o', and we need to detect this. Also, some Intel
5010 # versions had trouble with output in subdirs
5011 am__obj=sub/conftest.${OBJEXT-o}
5012 am__minus_obj="-o $am__obj"
5015 # This depmode causes a compiler race in universal mode.
5016 test "$am__universal" = false || continue
5019 # after this tag, mechanisms are not by side-effect, so they'll
5020 # only be used when explicitly requested
5021 if test "x$enable_dependency_tracking" = xyes; then
5027 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5028 # This compiler won't grok `-c -o', but also, the minuso test has
5029 # not run yet. These depmodes are late enough in the game, and
5030 # so weak that their functioning should not be impacted.
5031 am__obj=conftest.${OBJEXT-o}
5036 if depmode=$depmode \
5037 source=sub/conftest.c object=$am__obj \
5038 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5039 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5040 >/dev/null 2>conftest.err &&
5041 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5042 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5043 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5044 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5045 # icc doesn't choke on unknown options, it will just issue warnings
5046 # or remarks (even with -Werror). So we grep stderr for any message
5047 # that says an option was ignored or not supported.
5048 # When given -MP, icc 7.0 and 7.1 complain thusly:
5049 # icc: Command line warning: ignoring option '-M'; no argument required
5050 # The diagnosis changed in icc 8.0:
5051 # icc: Command line remark: option '-MP' not supported
5052 if (grep 'ignoring option' conftest.err ||
5053 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5054 am_cv_CCAS_dependencies_compiler_type=$depmode
5063 am_cv_CCAS_dependencies_compiler_type=none
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5068 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5069 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5072 test "x$enable_dependency_tracking" != xno \
5073 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5074 am__fastdepCCAS_TRUE=
5075 am__fastdepCCAS_FALSE='#'
5077 am__fastdepCCAS_TRUE='#'
5078 am__fastdepCCAS_FALSE=
5084 # Check if 'diff' supports -u (universal diffs) and use it if possible.
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5087 $as_echo_n "checking for diff -u... " >&6; }
5090 # Comparing two identical files results in 0, unless -u isn't supported (as
5092 tmpfile="tmp-xxx-yyy-zzz"
5094 if diff -u $tmpfile $tmpfile ; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096 $as_echo "yes" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5106 # We don't want gcc < 3.0
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5108 $as_echo_n "checking for a supported version of gcc... " >&6; }
5110 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5112 case "${gcc_version}" in
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5115 $as_echo "no (${gcc_version})" >&6; }
5116 as_fn_error $? "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5120 $as_echo "ok (${gcc_version})" >&6; }
5124 #----------------------------------------------------------------------------
5125 # Arch/OS/platform tests.
5126 #----------------------------------------------------------------------------
5127 # We create a number of arch/OS/platform-related variables. We prefix them
5128 # all with "VGCONF_" which indicates that they are defined at
5129 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5130 # variables used when compiling C files.
5132 # Make sure we can run config.sub.
5133 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5134 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5137 $as_echo_n "checking build system type... " >&6; }
5138 if ${ac_cv_build+:} false; then :
5139 $as_echo_n "(cached) " >&6
5141 ac_build_alias=$build_alias
5142 test "x$ac_build_alias" = x &&
5143 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5144 test "x$ac_build_alias" = x &&
5145 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5146 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5147 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5151 $as_echo "$ac_cv_build" >&6; }
5152 case $ac_cv_build in
5154 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5157 ac_save_IFS=$IFS; IFS='-'
5163 # Remember, the first character of IFS is used to create $*,
5164 # except with old shells:
5167 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5171 $as_echo_n "checking host system type... " >&6; }
5172 if ${ac_cv_host+:} false; then :
5173 $as_echo_n "(cached) " >&6
5175 if test "x$host_alias" = x; then
5176 ac_cv_host=$ac_cv_build
5178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5179 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5184 $as_echo "$ac_cv_host" >&6; }
5187 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5190 ac_save_IFS=$IFS; IFS='-'
5196 # Remember, the first character of IFS is used to create $*,
5197 # except with old shells:
5200 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5205 $as_echo_n "checking for a supported CPU... " >&6; }
5207 # ARCH_MAX reflects the most that this CPU can do: for example if it
5208 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5209 # Ditto for amd64. It is used for more configuration below, but is not used
5210 # outside this file.
5211 case "${host_cpu}" in
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5214 $as_echo "ok (${host_cpu})" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5220 $as_echo "ok (${host_cpu})" >&6; }
5225 # This value can only happen on Linux, not on AIX
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5227 $as_echo "ok (${host_cpu})" >&6; }
5232 # Complexity. 'powerpc' on AIX implies a 64-bit capable CPU.
5233 # Whereas in Linux that means only a 32-bit capable CPU.
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5235 $as_echo "ok (${host_cpu})" >&6; }
5236 case "${host_os}" in
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5248 $as_echo "ok (${host_cpu})" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5254 $as_echo "ok (${host_cpu})" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5260 $as_echo "no (${host_cpu})" >&6; }
5261 as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
5265 #----------------------------------------------------------------------------
5267 # Sometimes it's convenient to subvert the bi-arch build system and
5268 # just have a single build even though the underlying platform is
5269 # capable of both. Hence handle --enable-only64bit and
5270 # --enable-only32bit. Complain if both are issued :-)
5271 # [Actually, if either of these options are used, I think both get built,
5272 # but only one gets installed. So if you use an in-place build, both can be
5275 # Check if a 64-bit only build has been requested
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5277 $as_echo_n "checking for a 64-bit only build... " >&6; }
5278 if ${vg_cv_only64bit+:} false; then :
5279 $as_echo_n "(cached) " >&6
5281 # Check whether --enable-only64bit was given.
5282 if test "${enable_only64bit+set}" = set; then :
5283 enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5290 $as_echo "$vg_cv_only64bit" >&6; }
5292 # Check if a 32-bit only build has been requested
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5294 $as_echo_n "checking for a 32-bit only build... " >&6; }
5295 if ${vg_cv_only32bit+:} false; then :
5296 $as_echo_n "(cached) " >&6
5298 # Check whether --enable-only32bit was given.
5299 if test "${enable_only32bit+set}" = set; then :
5300 enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5307 $as_echo "$vg_cv_only32bit" >&6; }
5310 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5311 as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5314 #----------------------------------------------------------------------------
5316 # VGCONF_OS is the primary build OS, eg. "linux". It is passed in to
5317 # compilation of many C files via -VGO_$(VGCONF_OS) and
5318 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5320 $as_echo_n "checking for a supported OS... " >&6; }
5326 case "${host_os}" in
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5329 $as_echo "ok (${host_os})" >&6; }
5332 # Ok, this is linux. Check the kernel version
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5334 $as_echo_n "checking for the kernel version... " >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5341 $as_echo "2.6 family (${kernel})" >&6; }
5343 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5349 $as_echo "2.4 family (${kernel})" >&6; }
5351 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5357 $as_echo "unsupported (${kernel})" >&6; }
5358 as_fn_error $? "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5366 $as_echo "ok (${host_os})" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5371 $as_echo "ok (${host_os})" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5376 $as_echo "ok (${host_os})" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5382 $as_echo "ok (${host_os})" >&6; }
5384 DEFAULT_SUPP="pthread_l4re.supp"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5389 $as_echo "ok (${host_os})" >&6; }
5392 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5395 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5398 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5402 $as_echo_n "checking for the kernel version... " >&6; }
5405 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin
5406 # has only one relevant version, the OS version. The `uname` check
5407 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5408 # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5409 # and we don't know of an macros similar to __GLIBC__ to get that info.
5411 # XXX: `uname -r` won't do the right thing for cross-compiles, but
5412 # that's not a problem yet.
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5416 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5418 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5420 DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5421 DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5425 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5427 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5429 DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5430 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5434 $as_echo "unsupported (${kernel})" >&6; }
5435 as_fn_error $? "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5442 $as_echo "no (${host_os})" >&6; }
5443 as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
5447 #----------------------------------------------------------------------------
5449 # If we are building on a 64 bit platform test to see if the system
5450 # supports building 32 bit programs and disable 32 bit support if it
5451 # does not support building 32 bit programs
5453 case "$ARCH_MAX-$VGCONF_OS" in
5454 amd64-linux|ppc64-linux)
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5456 $as_echo_n "checking for 32 bit build support... " >&6; }
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5473 if ac_fn_c_try_link "$LINENO"; then :
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5480 vg_cv_only64bit="yes"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5485 rm -f core conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487 CFLAGS=$safe_CFLAGS;;
5490 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5491 as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5494 #----------------------------------------------------------------------------
5496 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By
5497 # default it's the same as ARCH_MAX. But if, say, we do a build on an amd64
5498 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5499 # above) will be "amd64" since that reflects the most that this cpu can do,
5500 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5501 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is
5502 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5503 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5506 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5507 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5508 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5509 # It is empty if there is no secondary target.
5512 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5513 # The entire system, including regression and performance tests, will be
5514 # built for this target. The "_CAPS" indicates that the name is in capital
5515 # letters, and it also uses '_' rather than '-' as a separator, because it's
5516 # used to create various Makefile variables, which are all in caps by
5517 # convention and cannot contain '-' characters. This is in contrast to
5518 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5521 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5522 # Valgrind and tools will also be built for this target, but not the
5523 # regression or performance tests.
5525 # By default, the primary arch is the same as the "max" arch, as commented
5526 # above (at the definition of ARCH_MAX). We may choose to downgrade it in
5527 # the big case statement just below here, in the case where we're building
5528 # on a 64 bit machine but have been requested only to do a 32 bit build.
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5532 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5534 # NB. The load address for a given platform may be specified in more
5535 # than one place, in some cases, depending on whether we're doing a biarch,
5536 # 32-bit only or 64-bit only build. eg see case for amd64-linux below.
5537 # Be careful to give consistent values in all subcases. Also, all four
5538 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5539 # even if it is to "0xUNSET".
5541 case "$ARCH_MAX-$VGCONF_OS" in
5543 VGCONF_ARCH_PRI="x86"
5545 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5546 VGCONF_PLATFORM_SEC_CAPS=""
5547 valt_load_address_pri_norml="0x38000000"
5548 valt_load_address_pri_inner="0x28000000"
5549 valt_load_address_sec_norml="0xUNSET"
5550 valt_load_address_sec_inner="0xUNSET"
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5552 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5555 valt_load_address_sec_norml="0xUNSET"
5556 valt_load_address_sec_inner="0xUNSET"
5557 if test x$vg_cv_only64bit = xyes; then
5558 VGCONF_ARCH_PRI="amd64"
5560 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5561 VGCONF_PLATFORM_SEC_CAPS=""
5562 valt_load_address_pri_norml="0x38000000"
5563 valt_load_address_pri_inner="0x28000000"
5564 elif test x$vg_cv_only32bit = xyes; then
5565 VGCONF_ARCH_PRI="x86"
5567 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5568 VGCONF_PLATFORM_SEC_CAPS=""
5569 valt_load_address_pri_norml="0x38000000"
5570 valt_load_address_pri_inner="0x28000000"
5572 VGCONF_ARCH_PRI="amd64"
5573 VGCONF_ARCH_SEC="x86"
5574 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5575 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5576 valt_load_address_pri_norml="0x38000000"
5577 valt_load_address_pri_inner="0x28000000"
5578 valt_load_address_sec_norml="0x38000000"
5579 valt_load_address_sec_inner="0x28000000"
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5582 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5585 VGCONF_ARCH_PRI="ppc32"
5587 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5588 VGCONF_PLATFORM_SEC_CAPS=""
5589 valt_load_address_pri_norml="0x38000000"
5590 valt_load_address_pri_inner="0x28000000"
5591 valt_load_address_sec_norml="0xUNSET"
5592 valt_load_address_sec_inner="0xUNSET"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5594 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5597 valt_load_address_pri_norml="0xUNSET"
5598 valt_load_address_pri_inner="0xUNSET"
5599 valt_load_address_sec_norml="0xUNSET"
5600 valt_load_address_sec_inner="0xUNSET"
5601 if test x$vg_cv_only64bit = xyes; then
5602 VGCONF_ARCH_PRI="ppc64"
5604 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5605 VGCONF_PLATFORM_SEC_CAPS=""
5606 elif test x$vg_cv_only32bit = xyes; then
5607 VGCONF_ARCH_PRI="ppc32"
5609 VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5610 VGCONF_PLATFORM_SEC_CAPS=""
5612 VGCONF_ARCH_PRI="ppc64"
5613 VGCONF_ARCH_SEC="ppc32"
5614 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5615 VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5618 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5621 valt_load_address_sec_norml="0xUNSET"
5622 valt_load_address_sec_inner="0xUNSET"
5623 if test x$vg_cv_only64bit = xyes; then
5624 VGCONF_ARCH_PRI="ppc64"
5626 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5627 VGCONF_PLATFORM_SEC_CAPS=""
5628 valt_load_address_pri_norml="0x38000000"
5629 valt_load_address_pri_inner="0x28000000"
5630 elif test x$vg_cv_only32bit = xyes; then
5631 VGCONF_ARCH_PRI="ppc32"
5633 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5634 VGCONF_PLATFORM_SEC_CAPS=""
5635 valt_load_address_pri_norml="0x38000000"
5636 valt_load_address_pri_inner="0x28000000"
5638 VGCONF_ARCH_PRI="ppc64"
5639 VGCONF_ARCH_SEC="ppc32"
5640 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5641 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5642 valt_load_address_pri_norml="0x38000000"
5643 valt_load_address_pri_inner="0x28000000"
5644 valt_load_address_sec_norml="0x38000000"
5645 valt_load_address_sec_inner="0x28000000"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5648 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5651 VGCONF_ARCH_PRI="x86"
5653 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5654 VGCONF_PLATFORM_SEC_CAPS=""
5655 valt_load_address_pri_norml="0x38000000"
5656 valt_load_address_pri_inner="0x28000000"
5657 valt_load_address_sec_norml="0x38000000"
5658 valt_load_address_sec_inner="0x28000000"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5660 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5662 # Darwin gets identified as 32-bit even when it supports 64-bit.
5663 # (Not sure why, possibly because 'uname' returns "i386"?) Just about
5664 # all Macs support both 32-bit and 64-bit, so we just build both. If
5665 # someone has a really old 32-bit only machine they can (hopefully?)
5666 # build with --enable-only32bit. See bug 243362.
5667 x86-darwin|amd64-darwin)
5669 valt_load_address_sec_norml="0xUNSET"
5670 valt_load_address_sec_inner="0xUNSET"
5671 if test x$vg_cv_only64bit = xyes; then
5672 VGCONF_ARCH_PRI="amd64"
5674 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5675 VGCONF_PLATFORM_SEC_CAPS=""
5676 valt_load_address_pri_norml="0x138000000"
5677 valt_load_address_pri_inner="0x128000000"
5678 elif test x$vg_cv_only32bit = xyes; then
5679 VGCONF_ARCH_PRI="x86"
5681 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5682 VGCONF_PLATFORM_SEC_CAPS=""
5683 VGCONF_ARCH_PRI_CAPS="x86"
5684 valt_load_address_pri_norml="0x38000000"
5685 valt_load_address_pri_inner="0x28000000"
5687 VGCONF_ARCH_PRI="amd64"
5688 VGCONF_ARCH_SEC="x86"
5689 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5690 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5691 valt_load_address_pri_norml="0x138000000"
5692 valt_load_address_pri_inner="0x128000000"
5693 valt_load_address_sec_norml="0x38000000"
5694 valt_load_address_sec_inner="0x28000000"
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5697 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5700 VGCONF_ARCH_PRI="arm"
5701 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5702 VGCONF_PLATFORM_SEC_CAPS=""
5703 valt_load_address_pri_norml="0x38000000"
5704 valt_load_address_pri_inner="0x28000000"
5705 valt_load_address_sec_norml="0xUNSET"
5706 valt_load_address_sec_inner="0xUNSET"
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5708 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5711 VGCONF_ARCH_PRI="s390x"
5713 VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX"
5714 VGCONF_PLATFORM_SEC_CAPS=""
5715 # we want to have the generated code close to the dispatcher
5716 valt_load_address_pri_norml="0x401000000"
5717 valt_load_address_pri_inner="0x410000000"
5718 valt_load_address_sec_norml="0xUNSET"
5719 valt_load_address_sec_inner="0xUNSET"
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5721 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5724 VGCONF_ARCH_PRI="unknown"
5725 VGCONF_ARCH_SEC="unknown"
5726 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5727 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5728 valt_load_address_pri_norml="0xUNSET"
5729 valt_load_address_pri_inner="0xUNSET"
5730 valt_load_address_sec_norml="0xUNSET"
5731 valt_load_address_sec_inner="0xUNSET"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5733 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5734 as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5738 #----------------------------------------------------------------------------
5740 # Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become
5742 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5743 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5744 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5745 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5746 VGCONF_ARCHS_INCLUDE_X86_TRUE=
5747 VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5749 VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5750 VGCONF_ARCHS_INCLUDE_X86_FALSE=
5753 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5754 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5755 VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5756 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5758 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5759 VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5762 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5763 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5764 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5765 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5766 VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5767 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5769 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5770 VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5773 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5774 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5775 VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5776 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5778 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5779 VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5782 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5783 VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5784 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5786 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5787 VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5790 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
5791 VGCONF_ARCHS_INCLUDE_S390X_TRUE=
5792 VGCONF_ARCHS_INCLUDE_S390X_FALSE='#'
5794 VGCONF_ARCHS_INCLUDE_S390X_TRUE='#'
5795 VGCONF_ARCHS_INCLUDE_S390X_FALSE=
5799 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these
5801 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5802 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5803 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5804 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5806 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5807 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5810 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5811 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5812 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5814 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5815 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5818 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5819 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5820 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5821 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5823 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5824 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5827 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5828 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5829 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5831 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5832 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5835 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5836 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5837 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5839 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5840 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5843 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
5844 -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then
5845 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE=
5846 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#'
5848 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#'
5849 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE=
5853 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5854 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5855 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5856 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5858 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5859 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5862 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5863 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5864 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5866 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5867 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5871 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5872 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5873 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5874 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5876 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5877 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5880 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5881 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5882 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5884 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5885 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5888 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5889 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5890 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5892 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5893 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5898 # Similarly, set up VGCONF_OS_IS_<os>. Exactly one of these becomes defined.
5899 # Relies on the assumption that the primary and secondary targets are
5900 # for the same OS, so therefore only necessary to test the primary.
5901 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5902 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5903 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5904 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5905 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
5906 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX; then
5907 VGCONF_OS_IS_LINUX_TRUE=
5908 VGCONF_OS_IS_LINUX_FALSE='#'
5910 VGCONF_OS_IS_LINUX_TRUE='#'
5911 VGCONF_OS_IS_LINUX_FALSE=
5914 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5915 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5916 VGCONF_OS_IS_AIX5_TRUE=
5917 VGCONF_OS_IS_AIX5_FALSE='#'
5919 VGCONF_OS_IS_AIX5_TRUE='#'
5920 VGCONF_OS_IS_AIX5_FALSE=
5923 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5924 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5925 VGCONF_OS_IS_DARWIN_TRUE=
5926 VGCONF_OS_IS_DARWIN_FALSE='#'
5928 VGCONF_OS_IS_DARWIN_TRUE='#'
5929 VGCONF_OS_IS_DARWIN_FALSE=
5932 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5933 VGCONF_OS_IS_L4RE_TRUE=
5934 VGCONF_OS_IS_L4RE_FALSE='#'
5936 VGCONF_OS_IS_L4RE_TRUE='#'
5937 VGCONF_OS_IS_L4RE_FALSE=
5942 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5943 # there is a secondary target.
5944 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5945 VGCONF_HAVE_PLATFORM_SEC_TRUE=
5946 VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5948 VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5949 VGCONF_HAVE_PLATFORM_SEC_FALSE=
5954 #----------------------------------------------------------------------------
5956 #----------------------------------------------------------------------------
5958 # Check if this should be built as an inner Valgrind, to be run within
5959 # another Valgrind. Choose the load address accordingly.
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5963 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5964 if ${vg_cv_inner+:} false; then :
5965 $as_echo_n "(cached) " >&6
5967 # Check whether --enable-inner was given.
5968 if test "${enable_inner+set}" = set; then :
5969 enableval=$enable_inner; vg_cv_inner=$enableval
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5976 $as_echo "$vg_cv_inner" >&6; }
5977 if test "$vg_cv_inner" = yes; then
5979 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5981 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5982 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5984 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5985 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5989 #----------------------------------------------------------------------------
5990 # Libc and suppressions
5991 #----------------------------------------------------------------------------
5992 # This variable will collect the suppression files to be used.
5994 # This variable holds generated suppression files (such as the one used for
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6000 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6001 if ${ac_cv_path_GREP+:} false; then :
6002 $as_echo_n "(cached) " >&6
6004 if test -z "$GREP"; then
6005 ac_path_GREP_found=false
6006 # Loop through the user's path and test for each of PROGNAME-LIST
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6011 test -z "$as_dir" && as_dir=.
6012 for ac_prog in grep ggrep; do
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6015 as_fn_executable_p "$ac_path_GREP" || continue
6016 # Check for GNU ac_path_GREP and select it if it is found.
6017 # Check for GNU $ac_path_GREP
6018 case `"$ac_path_GREP" --version 2>&1` in
6020 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6023 $as_echo_n 0123456789 >"conftest.in"
6026 cat "conftest.in" "conftest.in" >"conftest.tmp"
6027 mv "conftest.tmp" "conftest.in"
6028 cp "conftest.in" "conftest.nl"
6029 $as_echo 'GREP' >> "conftest.nl"
6030 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6032 as_fn_arith $ac_count + 1 && ac_count=$as_val
6033 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6034 # Best one so far, save it but keep looking for a better one
6035 ac_cv_path_GREP="$ac_path_GREP"
6036 ac_path_GREP_max=$ac_count
6038 # 10*(2^10) chars as input seems more than enough
6039 test $ac_count -gt 10 && break
6041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6044 $ac_path_GREP_found && break 3
6049 if test -z "$ac_cv_path_GREP"; then
6050 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6053 ac_cv_path_GREP=$GREP
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6058 $as_echo "$ac_cv_path_GREP" >&6; }
6059 GREP="$ac_cv_path_GREP"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6063 $as_echo_n "checking for egrep... " >&6; }
6064 if ${ac_cv_path_EGREP+:} false; then :
6065 $as_echo_n "(cached) " >&6
6067 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6068 then ac_cv_path_EGREP="$GREP -E"
6070 if test -z "$EGREP"; then
6071 ac_path_EGREP_found=false
6072 # Loop through the user's path and test for each of PROGNAME-LIST
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6077 test -z "$as_dir" && as_dir=.
6078 for ac_prog in egrep; do
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6081 as_fn_executable_p "$ac_path_EGREP" || continue
6082 # Check for GNU ac_path_EGREP and select it if it is found.
6083 # Check for GNU $ac_path_EGREP
6084 case `"$ac_path_EGREP" --version 2>&1` in
6086 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6089 $as_echo_n 0123456789 >"conftest.in"
6092 cat "conftest.in" "conftest.in" >"conftest.tmp"
6093 mv "conftest.tmp" "conftest.in"
6094 cp "conftest.in" "conftest.nl"
6095 $as_echo 'EGREP' >> "conftest.nl"
6096 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6098 as_fn_arith $ac_count + 1 && ac_count=$as_val
6099 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6100 # Best one so far, save it but keep looking for a better one
6101 ac_cv_path_EGREP="$ac_path_EGREP"
6102 ac_path_EGREP_max=$ac_count
6104 # 10*(2^10) chars as input seems more than enough
6105 test $ac_count -gt 10 && break
6107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6110 $ac_path_EGREP_found && break 3
6115 if test -z "$ac_cv_path_EGREP"; then
6116 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6119 ac_cv_path_EGREP=$EGREP
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6125 $as_echo "$ac_cv_path_EGREP" >&6; }
6126 EGREP="$ac_cv_path_EGREP"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6130 $as_echo_n "checking for ANSI C header files... " >&6; }
6131 if ${ac_cv_header_stdc+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6149 if ac_fn_c_try_compile "$LINENO"; then :
6150 ac_cv_header_stdc=yes
6152 ac_cv_header_stdc=no
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 if test $ac_cv_header_stdc = yes; then
6157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6164 $EGREP "memchr" >/dev/null 2>&1; then :
6167 ac_cv_header_stdc=no
6173 if test $ac_cv_header_stdc = yes; then
6174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181 $EGREP "free" >/dev/null 2>&1; then :
6184 ac_cv_header_stdc=no
6190 if test $ac_cv_header_stdc = yes; then
6191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6192 if test "$cross_compiling" = yes; then :
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6199 #if ((' ' & 0x0FF) == 0x020)
6200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6203 # define ISLOWER(c) \
6204 (('a' <= (c) && (c) <= 'i') \
6205 || ('j' <= (c) && (c) <= 'r') \
6206 || ('s' <= (c) && (c) <= 'z'))
6207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6215 for (i = 0; i < 256; i++)
6216 if (XOR (islower (i), ISLOWER (i))
6217 || toupper (i) != TOUPPER (i))
6222 if ac_fn_c_try_run "$LINENO"; then :
6225 ac_cv_header_stdc=no
6227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6228 conftest.$ac_objext conftest.beam conftest.$ac_ext
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6234 $as_echo "$ac_cv_header_stdc" >&6; }
6235 if test $ac_cv_header_stdc = yes; then
6237 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6243 inttypes.h stdint.h unistd.h
6245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6246 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6249 cat >>confdefs.h <<_ACEOF
6250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6258 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6259 if test "x$ac_cv_header_features_h" = xyes; then :
6265 if test x$ac_cv_header_features_h = xyes; then
6266 rm -f conftest.$ac_ext
6267 cat <<_ACEOF >conftest.$ac_ext
6268 #include <features.h>
6269 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6270 glibc version is: __GLIBC__ __GLIBC_MINOR__
6273 GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6276 # adam: hack: gcc5 is doing CPP differently so that the SED does not work
6278 test -z "${GLIBC_VERSION}" && GLIBC_VERSION=2.13
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6284 #include <standards.h>
6285 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6292 GLIBC_VERSION="aix5"
6297 # not really a version check
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6301 #include <sys/cdefs.h>
6302 #if defined(__DARWIN_VERS_1050)
6307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308 $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6309 GLIBC_VERSION="darwin"
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6315 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6317 case "${GLIBC_VERSION}" in
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6320 $as_echo "2.2 family" >&6; }
6322 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6324 DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6325 DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6326 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6331 $as_echo "2.3 family" >&6; }
6333 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6335 DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6336 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6337 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6342 $as_echo "2.4 family" >&6; }
6344 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6346 DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6347 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6348 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6353 $as_echo "2.5 family" >&6; }
6355 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6357 DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6358 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6359 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6363 $as_echo "2.6 family" >&6; }
6365 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6367 DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6368 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6369 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6373 $as_echo "2.7 family" >&6; }
6375 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6377 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6378 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6379 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6383 $as_echo "2.8 family" >&6; }
6385 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6387 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6388 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6389 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6393 $as_echo "2.9 family" >&6; }
6395 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6397 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6398 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6399 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6403 $as_echo "2.10 family" >&6; }
6405 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6407 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6408 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6409 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6413 $as_echo "2.11 family" >&6; }
6415 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6417 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6418 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6419 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6423 $as_echo "2.12 family" >&6; }
6425 $as_echo "#define GLIBC_2_12 1" >>confdefs.h
6427 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6428 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6429 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.13 family" >&5
6433 $as_echo "2.13 family" >&6; }
6435 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6437 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6438 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6439 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.14 family" >&5
6443 $as_echo "2.14 family" >&6; }
6445 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6447 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6448 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6449 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.15 family" >&5
6453 $as_echo "2.15 family" >&6; }
6455 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6457 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6458 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6459 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.16 family" >&5
6463 $as_echo "2.16 family" >&6; }
6465 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6467 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6468 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6469 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.17 family" >&5
6473 $as_echo "2.17 family" >&6; }
6475 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6477 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6478 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6479 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.18 family" >&5
6483 $as_echo "2.18 family" >&6; }
6485 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6487 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6488 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6489 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.19 family" >&5
6493 $as_echo "2.19 family" >&6; }
6495 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6497 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6498 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6499 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6503 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6505 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6507 DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6511 $as_echo "Darwin" >&6; }
6513 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6515 # DEFAULT_SUPP set by kernel version check above.
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6520 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6521 as_fn_error $? "Valgrind requires glibc version 2.2 - 2.13" "$LINENO" 5
6522 as_fn_error $? "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6523 as_fn_error $? "or Darwin libc" "$LINENO" 5
6530 # Add default suppressions for the X client libraries. Make no
6531 # attempt to detect whether such libraries are installed on the
6532 # build machine (or even if any X facilities are present); just
6533 # add the suppressions antidisirregardless.
6534 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6535 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6537 # Add glibc and X11 suppressions for exp-sgcheck
6538 DEFAULT_SUPP="exp-sgcheck.supp ${DEFAULT_SUPP}"
6541 #----------------------------------------------------------------------------
6542 # Checking for various library functions and other definitions
6543 #----------------------------------------------------------------------------
6545 # Check for CLOCK_MONOTONIC
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6548 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6560 clock_gettime(CLOCK_MONOTONIC, &t);
6567 if ac_fn_c_try_compile "$LINENO"; then :
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6570 $as_echo "yes" >&6; }
6572 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6587 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6593 #include <pthread.h>
6599 return (PTHREAD_MUTEX_ADAPTIVE_NP);
6605 if ac_fn_c_try_compile "$LINENO"; then :
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6608 $as_echo "yes" >&6; }
6610 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6625 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6631 #include <pthread.h>
6637 return (PTHREAD_MUTEX_ERRORCHECK_NP);
6643 if ac_fn_c_try_compile "$LINENO"; then :
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6646 $as_echo "yes" >&6; }
6648 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6663 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6669 #include <pthread.h>
6675 return (PTHREAD_MUTEX_RECURSIVE_NP);
6681 if ac_fn_c_try_compile "$LINENO"; then :
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6684 $as_echo "yes" >&6; }
6686 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6701 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6707 #include <pthread.h>
6713 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6720 if ac_fn_c_try_compile "$LINENO"; then :
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6723 $as_echo "yes" >&6; }
6725 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 # Check whether pthread_mutex_t has a member called __m_kind.
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6740 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6745 #include <pthread.h>
6758 if ac_fn_c_try_compile "$LINENO"; then :
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6761 $as_echo "yes" >&6; }
6763 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 # Check whether pthread_mutex_t has a member called __data.__kind.
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6778 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6783 #include <pthread.h>
6790 return m.__data.__kind;
6796 if ac_fn_c_try_compile "$LINENO"; then :
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6799 $as_echo "yes" >&6; }
6801 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 # does this compiler support -maltivec and does it have the include file
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6817 $as_echo_n "checking for Altivec... " >&6; }
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6825 #include <altivec.h>
6831 vector unsigned int v;
6837 if ac_fn_c_try_compile "$LINENO"; then :
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841 $as_echo "yes" >&6; }
6843 $as_echo "#define HAS_ALTIVEC 1" >>confdefs.h
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 if test x$ac_have_altivec = xyes; then
6858 HAS_ALTIVEC_FALSE='#'
6860 HAS_ALTIVEC_TRUE='#'
6866 # Check that both: the compiler supports -mvsx and that the assembler
6867 # understands VSX instructions. If either of those doesn't work,
6868 # conclude that we can't do VSX. NOTE: basically this is a kludge
6869 # in that it conflates two things that should be separate -- whether
6870 # the compiler understands the flag vs whether the assembler
6871 # understands the opcodes. This really ought to be cleaned up
6872 # and done properly, like it is for x86/x86_64.
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX" >&5
6875 $as_echo_n "checking for VSX... " >&6; }
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6883 #include <altivec.h>
6889 vector unsigned int v;
6890 __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc");
6896 if ac_fn_c_try_compile "$LINENO"; then :
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 if test x$ac_have_vsx = xyes; then
6922 # Check for pthread_create@GLIBC2.0
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6924 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6931 extern int pthread_create_glibc_2_0(void*, const void*,
6932 void *(*)(void*), void*);
6933 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6941 * Apparently on PowerPC linking this program succeeds and generates an
6942 * executable with the undefined symbol pthread_create@GLIBC_2.0.
6944 #error This test does not work properly on PowerPC.
6946 pthread_create_glibc_2_0(0, 0, 0, 0);
6954 if ac_fn_c_try_link "$LINENO"; then :
6956 ac_have_pthread_create_glibc_2_0=yes
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6958 $as_echo "yes" >&6; }
6960 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6965 ac_have_pthread_create_glibc_2_0=no
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6970 rm -f core conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6974 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6975 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6976 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6978 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6979 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6984 # Check for eventfd_t, eventfd() and eventfd_read()
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6986 $as_echo_n "checking for eventfd()... " >&6; }
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6991 #include <sys/eventfd.h>
7001 eventfd_read(fd, &ev);
7008 if ac_fn_c_try_link "$LINENO"; then :
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7011 $as_echo "yes" >&6; }
7013 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
7016 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7025 rm -f core conftest.err conftest.$ac_objext \
7026 conftest$ac_exeext conftest.$ac_ext
7029 #----------------------------------------------------------------------------
7030 # Checking for supported compiler flags.
7031 #----------------------------------------------------------------------------
7033 # does this compiler support -m32 ?
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
7035 $as_echo_n "checking if gcc accepts -m32... " >&6; }
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7053 if ac_fn_c_try_compile "$LINENO"; then :
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7057 $as_echo "yes" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 # does this compiler support -maix32 ?
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
7074 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7092 if ac_fn_c_try_compile "$LINENO"; then :
7094 FLAG_MAIX32="-maix32"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7096 $as_echo "yes" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 # does this compiler support -m64 ?
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
7113 $as_echo_n "checking if gcc accepts -m64... " >&6; }
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7131 if ac_fn_c_try_compile "$LINENO"; then :
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7135 $as_echo "yes" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 # does this compiler support -maix64 ?
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
7152 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7170 if ac_fn_c_try_compile "$LINENO"; then :
7172 FLAG_MAIX64="-maix64"
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174 $as_echo "yes" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 # does this compiler support -mmmx ?
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
7191 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7209 if ac_fn_c_try_compile "$LINENO"; then :
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7213 $as_echo "yes" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 # does this compiler support -msse ?
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7230 $as_echo_n "checking if gcc accepts -msse... " >&6; }
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7248 if ac_fn_c_try_compile "$LINENO"; then :
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7252 $as_echo "yes" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 # does this compiler support -mpreferred-stack-boundary=2 ?
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7269 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7272 CFLAGS="-mpreferred-stack-boundary=2"
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7287 if ac_fn_c_try_compile "$LINENO"; then :
7289 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7291 $as_echo "yes" >&6; }
7295 PREFERRED_STACK_BOUNDARY=""
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 # does this compiler support -Wno-pointer-sign ?
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7308 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7311 CFLAGS="-Wno-pointer-sign"
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7326 if ac_fn_c_try_compile "$LINENO"; then :
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7330 $as_echo "yes" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 if test x$no_pointer_sign = xyes; then
7343 CFLAGS="$CFLAGS -Wno-pointer-sign"
7347 # does this compiler support -Wno-empty-body ?
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7350 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7353 CFLAGS="-Wno-empty-body"
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7368 if ac_fn_c_try_compile "$LINENO"; then :
7370 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7373 $as_echo "yes" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 # does this compiler support -Wno-format-zero-length ?
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7389 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7392 CFLAGS="-Wno-format-zero-length"
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7407 if ac_fn_c_try_compile "$LINENO"; then :
7409 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7412 $as_echo "yes" >&6; }
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 # does this compiler support -Wno-nonnull ?
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-nonnull" >&5
7428 $as_echo_n "checking if gcc accepts -Wno-nonnull... " >&6; }
7431 CFLAGS="-Wno-nonnull"
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7446 if ac_fn_c_try_compile "$LINENO"; then :
7448 FLAG_W_NO_NONNULL=-Wno-nonnull
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451 $as_echo "yes" >&6; }
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 # does this compiler support -Wno-overflow ?
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-overflow" >&5
7467 $as_echo_n "checking if gcc accepts -Wno-overflow... " >&6; }
7470 CFLAGS="-Wno-overflow"
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7485 if ac_fn_c_try_compile "$LINENO"; then :
7487 FLAG_W_NO_OVERFLOW=-Wno-overflow
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7490 $as_echo "yes" >&6; }
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 # does this compiler support -Wno-uninitialized ?
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7506 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7509 CFLAGS="-Wno-uninitialized"
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7524 if ac_fn_c_try_compile "$LINENO"; then :
7526 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7529 $as_echo "yes" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 # does this compiler support -Wextra or the older -W ?
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7545 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7563 if ac_fn_c_try_compile "$LINENO"; then :
7565 FLAG_W_EXTRA=-Wextra
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7568 $as_echo "-Wextra" >&6; }
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7586 if ac_fn_c_try_compile "$LINENO"; then :
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7591 $as_echo "-W" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7597 $as_echo "not supported" >&6; }
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 # does this compiler support -fno-stack-protector ?
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7609 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7612 CFLAGS="-fno-stack-protector"
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7627 if ac_fn_c_try_compile "$LINENO"; then :
7629 no_stack_protector=yes
7630 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7632 $as_echo "yes" >&6; }
7636 no_stack_protector=no
7637 FLAG_FNO_STACK_PROTECTOR=""
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647 if test x$no_stack_protector = xyes; then
7648 CFLAGS="$CFLAGS -fno-stack-protector"
7652 # does this compiler support --param inline-unit-growth=... ?
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7655 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7658 CFLAGS="--param inline-unit-growth=900"
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7673 if ac_fn_c_try_compile "$LINENO"; then :
7675 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7678 $as_echo "yes" >&6; }
7682 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 # does the linker support -Wl,--build-id=none ? Note, it's
7693 # important that we test indirectly via whichever C compiler
7694 # is selected, rather than testing /usr/bin/ld or whatever
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7698 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7701 CFLAGS="-Wl,--build-id=none"
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7714 if ac_fn_c_try_link "$LINENO"; then :
7716 FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7719 $as_echo "yes" >&6; }
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7729 rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7734 # does the ppc assembler support "mtocrf" et al?
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7736 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7745 __asm__ __volatile__("mtocrf 4,0");
7746 __asm__ __volatile__("mfocrf 0,4");
7752 if ac_fn_c_try_compile "$LINENO"; then :
7754 ac_have_as_ppc_mftocrf=yes
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7756 $as_echo "yes" >&6; }
7760 ac_have_as_ppc_mftocrf=no
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7768 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7775 # does the x86/amd64 assembler understand SSE3 instructions?
7776 # Note, this doesn't generate a C-level symbol. It generates a
7777 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7779 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7788 do { long long int x;
7789 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7796 if ac_fn_c_try_compile "$LINENO"; then :
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7800 $as_echo "yes" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 if test x$ac_have_as_sse3 = xyes; then
7812 BUILD_SSE3_TESTS_TRUE=
7813 BUILD_SSE3_TESTS_FALSE='#'
7815 BUILD_SSE3_TESTS_TRUE='#'
7816 BUILD_SSE3_TESTS_FALSE=
7821 # Ditto for SSSE3 instructions (note extra S)
7822 # Note, this doesn't generate a C-level symbol. It generates a
7823 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7825 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7834 do { long long int x;
7835 __asm__ __volatile__(
7836 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7843 if ac_fn_c_try_compile "$LINENO"; then :
7845 ac_have_as_ssse3=yes
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 if test x$ac_have_as_ssse3 = xyes; then
7859 BUILD_SSSE3_TESTS_TRUE=
7860 BUILD_SSSE3_TESTS_FALSE='#'
7862 BUILD_SSSE3_TESTS_TRUE='#'
7863 BUILD_SSSE3_TESTS_FALSE=
7868 # does the x86/amd64 assembler understand the PCLMULQDQ instruction?
7869 # Note, this doesn't generate a C-level symbol. It generates a
7870 # automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
7872 $as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7881 __asm__ __volatile__(
7882 "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
7889 if ac_fn_c_try_compile "$LINENO"; then :
7891 ac_have_as_pclmulqdq=yes
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893 $as_echo "yes" >&6; }
7897 ac_have_as_pclmulqdq=no
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 if test x$ac_have_as_pclmulqdq = xyes; then
7905 BUILD_PCLMULQDQ_TESTS_TRUE=
7906 BUILD_PCLMULQDQ_TESTS_FALSE='#'
7908 BUILD_PCLMULQDQ_TESTS_TRUE='#'
7909 BUILD_PCLMULQDQ_TESTS_FALSE=
7914 # does the x86/amd64 assembler understand the LZCNT instruction?
7915 # Note, this doesn't generate a C-level symbol. It generates a
7916 # automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
7918 $as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7928 __asm__ __volatile__("lzcnt %rax,%rax");
7935 if ac_fn_c_try_compile "$LINENO"; then :
7937 ac_have_as_lzcnt=yes
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7939 $as_echo "yes" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 if test x$ac_have_as_lzcnt = xyes; then
7951 BUILD_LZCNT_TESTS_TRUE=
7952 BUILD_LZCNT_TESTS_FALSE='#'
7954 BUILD_LZCNT_TESTS_TRUE='#'
7955 BUILD_LZCNT_TESTS_FALSE=
7960 # does the x86/amd64 assembler understand SSE 4.2 instructions?
7961 # Note, this doesn't generate a C-level symbol. It generates a
7962 # automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5
7964 $as_echo_n "checking if x86/amd64 assembler speaks SSE4.2... " >&6; }
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7973 do { long long int x;
7974 __asm__ __volatile__(
7975 "crc32q %%r15,%%r15" : : : "r15" ); }
7982 if ac_fn_c_try_compile "$LINENO"; then :
7984 ac_have_as_sse42=yes
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7986 $as_echo "yes" >&6; }
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 if test x$ac_have_as_sse42 = xyes; then
7998 BUILD_SSE42_TESTS_TRUE=
7999 BUILD_SSE42_TESTS_FALSE='#'
8001 BUILD_SSE42_TESTS_TRUE='#'
8002 BUILD_SSE42_TESTS_FALSE=
8007 # XXX JRS 2010 Oct 13: what is this for? For sure, we don't need this
8008 # when building the tool executables. I think we should get rid of it.
8010 # Check for TLS support in the compiler and linker
8011 if test "x${cross_compiling}" = "xno"; then
8012 # Native compilation: check whether running a program using TLS succeeds.
8013 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
8014 # succeeds but running programs using TLS fails.
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
8016 $as_echo_n "checking for TLS support... " >&6; }
8017 if ${vg_cv_tls+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 # Check whether --enable-tls was given.
8021 if test "${enable_tls+set}" = set; then :
8022 enableval=$enable_tls; vg_cv_tls=$enableval
8024 if test "$cross_compiling" = yes; then :
8025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8027 as_fn_error $? "cannot run test program while cross compiling
8028 See \`config.log' for more details" "$LINENO" 5; }
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8032 static __thread int foo;
8041 if ac_fn_c_try_run "$LINENO"; then :
8046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8047 conftest.$ac_objext conftest.beam conftest.$ac_ext
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8054 $as_echo "$vg_cv_tls" >&6; }
8056 # Cross-compiling: check whether linking a program using TLS succeeds.
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
8058 $as_echo_n "checking for TLS support... " >&6; }
8059 if ${vg_cv_tls+:} false; then :
8060 $as_echo_n "(cached) " >&6
8062 # Check whether --enable-tls was given.
8063 if test "${enable_tls+set}" = set; then :
8064 enableval=$enable_tls; vg_cv_tls=$enableval
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 static __thread int foo;
8077 if ac_fn_c_try_link "$LINENO"; then :
8082 rm -f core conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8088 $as_echo "$vg_cv_tls" >&6; }
8091 if test "$vg_cv_tls" = yes; then
8093 $as_echo "#define HAVE_TLS 1" >>confdefs.h
8098 #----------------------------------------------------------------------------
8099 # Checks for C header files.
8100 #----------------------------------------------------------------------------
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8103 $as_echo_n "checking for ANSI C header files... " >&6; }
8104 if ${ac_cv_header_stdc+:} false; then :
8105 $as_echo_n "(cached) " >&6
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8122 if ac_fn_c_try_compile "$LINENO"; then :
8123 ac_cv_header_stdc=yes
8125 ac_cv_header_stdc=no
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 if test $ac_cv_header_stdc = yes; then
8130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8137 $EGREP "memchr" >/dev/null 2>&1; then :
8140 ac_cv_header_stdc=no
8146 if test $ac_cv_header_stdc = yes; then
8147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 $EGREP "free" >/dev/null 2>&1; then :
8157 ac_cv_header_stdc=no
8163 if test $ac_cv_header_stdc = yes; then
8164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8165 if test "$cross_compiling" = yes; then :
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8172 #if ((' ' & 0x0FF) == 0x020)
8173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8176 # define ISLOWER(c) \
8177 (('a' <= (c) && (c) <= 'i') \
8178 || ('j' <= (c) && (c) <= 'r') \
8179 || ('s' <= (c) && (c) <= 'z'))
8180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8188 for (i = 0; i < 256; i++)
8189 if (XOR (islower (i), ISLOWER (i))
8190 || toupper (i) != TOUPPER (i))
8195 if ac_fn_c_try_run "$LINENO"; then :
8198 ac_cv_header_stdc=no
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8201 conftest.$ac_objext conftest.beam conftest.$ac_ext
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8207 $as_echo "$ac_cv_header_stdc" >&6; }
8208 if test $ac_cv_header_stdc = yes; then
8210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8232 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 #----------------------------------------------------------------------------
8243 # Checks for typedefs, structures, and compiler characteristics.
8244 #----------------------------------------------------------------------------
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8246 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8247 if ${ac_cv_type_uid_t+:} false; then :
8248 $as_echo_n "(cached) " >&6
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 #include <sys/types.h>
8255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8256 $EGREP "uid_t" >/dev/null 2>&1; then :
8257 ac_cv_type_uid_t=yes
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8265 $as_echo "$ac_cv_type_uid_t" >&6; }
8266 if test $ac_cv_type_uid_t = no; then
8268 $as_echo "#define uid_t int" >>confdefs.h
8271 $as_echo "#define gid_t int" >>confdefs.h
8275 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8276 if test "x$ac_cv_type_off_t" = xyes; then :
8280 cat >>confdefs.h <<_ACEOF
8281 #define off_t long int
8286 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8287 if test "x$ac_cv_type_size_t" = xyes; then :
8291 cat >>confdefs.h <<_ACEOF
8292 #define size_t unsigned int
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8298 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8299 if ${ac_cv_header_time+:} false; then :
8300 $as_echo_n "(cached) " >&6
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <sys/time.h>
8311 if ((struct tm *) 0)
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_header_time=yes
8320 ac_cv_header_time=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8325 $as_echo "$ac_cv_header_time" >&6; }
8326 if test $ac_cv_header_time = yes; then
8328 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8334 #----------------------------------------------------------------------------
8335 # Checks for library functions.
8336 #----------------------------------------------------------------------------
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8338 $as_echo_n "checking for working memcmp... " >&6; }
8339 if ${ac_cv_func_memcmp_working+:} false; then :
8340 $as_echo_n "(cached) " >&6
8342 if test "$cross_compiling" = yes; then :
8343 ac_cv_func_memcmp_working=no
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 $ac_includes_default
8352 /* Some versions of memcmp are not 8-bit clean. */
8353 char c0 = '\100', c1 = '\200', c2 = '\201';
8354 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8357 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8358 or more and with at least one buffer not starting on a 4-byte boundary.
8359 William Lewis provided this test program. */
8364 for (i = 0; i < 4; i++)
8368 strcpy (a, "--------01111111");
8369 strcpy (b, "--------10000000");
8370 if (memcmp (a, b, 16) >= 0)
8380 if ac_fn_c_try_run "$LINENO"; then :
8381 ac_cv_func_memcmp_working=yes
8383 ac_cv_func_memcmp_working=no
8385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8386 conftest.$ac_objext conftest.beam conftest.$ac_ext
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8391 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8392 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8393 *" memcmp.$ac_objext "* ) ;;
8394 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8402 for ac_header in $ac_header_list
8404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8405 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8408 cat >>confdefs.h <<_ACEOF
8409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8423 for ac_func in getpagesize
8425 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8426 if test "x$ac_cv_func_getpagesize" = xyes; then :
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_GETPAGESIZE 1
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8435 $as_echo_n "checking for working mmap... " >&6; }
8436 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8437 $as_echo_n "(cached) " >&6
8439 if test "$cross_compiling" = yes; then :
8440 ac_cv_func_mmap_fixed_mapped=no
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 /* malloc might have been renamed as rpl_malloc. */
8448 /* Thanks to Mike Haertel and Jim Avera for this test.
8449 Here is a matrix of mmap possibilities:
8450 mmap private not fixed
8451 mmap private fixed at somewhere currently unmapped
8452 mmap private fixed at somewhere already mapped
8453 mmap shared not fixed
8454 mmap shared fixed at somewhere currently unmapped
8455 mmap shared fixed at somewhere already mapped
8456 For private mappings, we should verify that changes cannot be read()
8457 back from the file, nor mmap's back from the file at a different
8458 address. (There have been systems where private was not correctly
8459 implemented like the infamous i386 svr4.0, and systems where the
8460 VM page cache was not coherent with the file system buffer cache
8461 like early versions of FreeBSD and possibly contemporary NetBSD.)
8462 For shared mappings, we should conversely verify that changes get
8463 propagated back to all the places they're supposed to be.
8465 Grep wants private fixed already mapped.
8466 The main things grep needs to know about mmap are:
8467 * does it exist and is it safe to write into the mmap'd area
8468 * how to use it (BSD variants) */
8471 #include <sys/mman.h>
8473 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8477 /* This mess was copied from the GNU getpagesize.h. */
8478 #ifndef HAVE_GETPAGESIZE
8479 # ifdef _SC_PAGESIZE
8480 # define getpagesize() sysconf(_SC_PAGESIZE)
8481 # else /* no _SC_PAGESIZE */
8482 # ifdef HAVE_SYS_PARAM_H
8483 # include <sys/param.h>
8484 # ifdef EXEC_PAGESIZE
8485 # define getpagesize() EXEC_PAGESIZE
8486 # else /* no EXEC_PAGESIZE */
8488 # define getpagesize() NBPG * CLSIZE
8491 # endif /* no CLSIZE */
8492 # else /* no NBPG */
8494 # define getpagesize() NBPC
8495 # else /* no NBPC */
8497 # define getpagesize() PAGESIZE
8498 # endif /* PAGESIZE */
8499 # endif /* no NBPC */
8500 # endif /* no NBPG */
8501 # endif /* no EXEC_PAGESIZE */
8502 # else /* no HAVE_SYS_PARAM_H */
8503 # define getpagesize() 8192 /* punt totally */
8504 # endif /* no HAVE_SYS_PARAM_H */
8505 # endif /* no _SC_PAGESIZE */
8507 #endif /* no HAVE_GETPAGESIZE */
8512 char *data, *data2, *data3;
8517 pagesize = getpagesize ();
8519 /* First, make a file with some known garbage in it. */
8520 data = (char *) malloc (pagesize);
8523 for (i = 0; i < pagesize; ++i)
8524 *(data + i) = rand ();
8526 fd = creat ("conftest.mmap", 0600);
8529 if (write (fd, data, pagesize) != pagesize)
8533 /* Next, check that the tail of a page is zero-filled. File must have
8534 non-zero length, otherwise we risk SIGBUS for entire page. */
8535 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8539 if (write (fd2, cdata2, 1) != 1)
8541 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8542 if (data2 == MAP_FAILED)
8544 for (i = 0; i < pagesize; ++i)
8548 if (munmap (data2, pagesize))
8551 /* Next, try to mmap the file at a fixed address which already has
8552 something else allocated at it. If we can, also make sure that
8553 we see the same garbage. */
8554 fd = open ("conftest.mmap", O_RDWR);
8557 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8558 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8560 for (i = 0; i < pagesize; ++i)
8561 if (*(data + i) != *(data2 + i))
8564 /* Finally, make sure that changes to the mapped area do not
8565 percolate back to the file as seen by read(). (This is a bug on
8566 some variants of i386 svr4.0.) */
8567 for (i = 0; i < pagesize; ++i)
8568 *(data2 + i) = *(data2 + i) + 1;
8569 data3 = (char *) malloc (pagesize);
8572 if (read (fd, data3, pagesize) != pagesize)
8574 for (i = 0; i < pagesize; ++i)
8575 if (*(data + i) != *(data3 + i))
8581 if ac_fn_c_try_run "$LINENO"; then :
8582 ac_cv_func_mmap_fixed_mapped=yes
8584 ac_cv_func_mmap_fixed_mapped=no
8586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8587 conftest.$ac_objext conftest.beam conftest.$ac_ext
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8592 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8593 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8595 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8598 rm -f conftest.mmap conftest.txt
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8601 $as_echo_n "checking return type of signal handlers... " >&6; }
8602 if ${ac_cv_type_signal+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607 #include <sys/types.h>
8613 return *(signal (0, 0)) (0) == 1;
8618 if ac_fn_c_try_compile "$LINENO"; then :
8619 ac_cv_type_signal=int
8621 ac_cv_type_signal=void
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8626 $as_echo "$ac_cv_type_signal" >&6; }
8628 cat >>confdefs.h <<_ACEOF
8629 #define RETSIGTYPE $ac_cv_type_signal
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8635 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8636 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8637 $as_echo_n "(cached) " >&6
8639 ac_check_lib_save_LIBS=$LIBS
8640 LIBS="-lpthread $LIBS"
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8650 char pthread_create ();
8654 return pthread_create ();
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 ac_cv_lib_pthread_pthread_create=yes
8662 ac_cv_lib_pthread_pthread_create=no
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 LIBS=$ac_check_lib_save_LIBS
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8669 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8670 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8671 cat >>confdefs.h <<_ACEOF
8672 #define HAVE_LIBPTHREAD 1
8675 LIBS="-lpthread $LIBS"
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8680 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8681 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
8682 $as_echo_n "(cached) " >&6
8684 ac_check_lib_save_LIBS=$LIBS
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8689 /* Override any GCC internal prototype to avoid an error.
8690 Use char because int might match the return type of a GCC
8691 builtin and then its argument prototype would still apply. */
8695 char clock_gettime ();
8699 return clock_gettime ();
8704 if ac_fn_c_try_link "$LINENO"; then :
8705 ac_cv_lib_rt_clock_gettime=yes
8707 ac_cv_lib_rt_clock_gettime=no
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 LIBS=$ac_check_lib_save_LIBS
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8714 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8715 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_LIBRT 1
8736 pthread_barrier_init \
8737 pthread_condattr_setclock \
8738 pthread_mutex_timedlock \
8739 pthread_rwlock_timedrdlock \
8740 pthread_rwlock_timedwrlock \
8755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8757 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8758 cat >>confdefs.h <<_ACEOF
8759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8766 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8767 # libraries with any shared object and/or executable. This is NOT what we
8768 # want for e.g. vgpreload_core-x86-linux.so
8771 if test x$ac_cv_func_pthread_barrier_init = xyes; then
8772 HAVE_PTHREAD_BARRIER_TRUE=
8773 HAVE_PTHREAD_BARRIER_FALSE='#'
8775 HAVE_PTHREAD_BARRIER_TRUE='#'
8776 HAVE_PTHREAD_BARRIER_FALSE=
8779 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8780 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8781 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8783 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8784 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8787 if test x$ac_cv_func_pthread_spin_lock = xyes; then
8788 HAVE_PTHREAD_SPINLOCK_TRUE=
8789 HAVE_PTHREAD_SPINLOCK_FALSE='#'
8791 HAVE_PTHREAD_SPINLOCK_TRUE='#'
8792 HAVE_PTHREAD_SPINLOCK_FALSE=
8797 #----------------------------------------------------------------------------
8799 #----------------------------------------------------------------------------
8800 # Do we have a useable MPI setup on the primary and/or secondary targets?
8801 # On Linux, by default, assumes mpicc and -m32/-m64
8802 # On AIX, by default, assumes mpxlc and -q32/-q64
8803 # Note: this is a kludge in that it assumes the specified mpicc
8804 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8807 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8808 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8813 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8814 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8815 mflag_primary=$FLAG_M32
8816 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8817 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
8818 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
8819 mflag_primary=$FLAG_M64
8820 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8822 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8827 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8828 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8829 mflag_secondary=$FLAG_M32
8830 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8831 mflag_secondary=-q32
8836 # Check whether --with-mpicc was given.
8837 if test "${with_mpicc+set}" = set; then :
8838 withval=$with_mpicc; MPI_CC=$withval
8844 ## See if MPI_CC works for the primary target
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8847 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8849 saved_CFLAGS=$CFLAGS
8851 CFLAGS=$mflag_primary
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8862 int r = MPI_Init(NULL,NULL);
8863 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8870 if ac_fn_c_try_link "$LINENO"; then :
8872 ac_have_mpi2_pri=yes
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8874 $as_echo "yes, $MPI_CC" >&6; }
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8883 rm -f core conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8886 CFLAGS=$saved_CFLAGS
8887 if test x$ac_have_mpi2_pri = xyes; then
8888 BUILD_MPIWRAP_PRI_TRUE=
8889 BUILD_MPIWRAP_PRI_FALSE='#'
8891 BUILD_MPIWRAP_PRI_TRUE='#'
8892 BUILD_MPIWRAP_PRI_FALSE=
8896 ## See if MPI_CC works for the secondary target. Complication: what if
8897 ## there is no secondary target? We need this to then fail.
8898 ## Kludge this by making MPI_CC something which will surely fail in
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8902 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8904 saved_CFLAGS=$CFLAGS
8905 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8906 CC="$MPI_CC this will surely fail"
8910 CFLAGS=$mflag_secondary
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8921 int r = MPI_Init(NULL,NULL);
8922 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8929 if ac_fn_c_try_link "$LINENO"; then :
8931 ac_have_mpi2_sec=yes
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8933 $as_echo "yes, $MPI_CC" >&6; }
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8942 rm -f core conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8945 CFLAGS=$saved_CFLAGS
8946 if test x$ac_have_mpi2_sec = xyes; then
8947 BUILD_MPIWRAP_SEC_TRUE=
8948 BUILD_MPIWRAP_SEC_FALSE='#'
8950 BUILD_MPIWRAP_SEC_TRUE='#'
8951 BUILD_MPIWRAP_SEC_FALSE=
8956 #----------------------------------------------------------------------------
8957 # Other library checks
8958 #----------------------------------------------------------------------------
8959 # There now follow some tests for Boost, and OpenMP. These
8960 # tests are present because Drd has some regression tests that use
8961 # these packages. All regression test programs all compiled only
8962 # for the primary target. And so it is important that the configure
8963 # checks that follow, use the correct -m32 or -m64 flag for the
8964 # primary target (called $mflag_primary). Otherwise, we can end up
8965 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8966 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8967 # only build (meaning, the primary target is x86-linux), the build
8968 # of the regtest programs that use Boost fails, because they are
8969 # build as 32-bit (IN THIS EXAMPLE).
8971 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8972 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8975 # Check whether the boost library 1.35 or later has been installed.
8976 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8979 $as_echo_n "checking for boost... " >&6; }
8982 ac_cpp='$CXXCPP $CPPFLAGS'
8983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8987 safe_CXXFLAGS=$CXXFLAGS
8988 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8994 #include <boost/thread.hpp>
8995 static void thread_func(void)
8997 int main(int argc, char** argv)
8999 boost::thread t(thread_func);
9004 if ac_fn_cxx_try_link "$LINENO"; then :
9006 ac_have_boost_1_35=yes
9008 BOOST_LIBS="${CXXFLAGS}"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9011 $as_echo "yes" >&6; }
9015 ac_have_boost_1_35=no
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9020 rm -f core conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9023 CXXFLAGS=$safe_CXXFLAGS
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9031 if test x$ac_have_boost_1_35 = xyes; then
9032 HAVE_BOOST_1_35_TRUE=
9033 HAVE_BOOST_1_35_FALSE='#'
9035 HAVE_BOOST_1_35_TRUE='#'
9036 HAVE_BOOST_1_35_FALSE=
9041 # does this compiler support -fopenmp, does it have the include file
9042 # <omp.h> and does it have libgomp ?
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
9045 $as_echo_n "checking for OpenMP... " >&6; }
9048 CFLAGS="-fopenmp $mflag_primary"
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9054 int main(int argc, char** argv)
9061 if ac_fn_c_try_link "$LINENO"; then :
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9065 $as_echo "yes" >&6; }
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9074 rm -f core conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9078 if test x$ac_have_openmp = xyes; then
9080 HAVE_OPENMP_FALSE='#'
9082 HAVE_OPENMP_TRUE='#'
9088 # does this compiler have built-in functions for atomic memory access ?
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9090 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9093 CFLAGS="$mflag_primary"
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9103 return (__sync_bool_compare_and_swap(&variable, 1, 2)
9104 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9110 if ac_fn_c_try_link "$LINENO"; then :
9112 ac_have_builtin_atomic=yes
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9114 $as_echo "yes" >&6; }
9116 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9121 ac_have_builtin_atomic=no
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9126 rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
9131 if test x$ac_have_builtin_atomic = xyes; then
9132 HAVE_BUILTIN_ATOMIC_TRUE=
9133 HAVE_BUILTIN_ATOMIC_FALSE='#'
9135 HAVE_BUILTIN_ATOMIC_TRUE='#'
9136 HAVE_BUILTIN_ATOMIC_FALSE=
9140 # does g++ have built-in functions for atomic memory access ?
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_bool_compare_and_swap" >&5
9142 $as_echo_n "checking if g++ supports __sync_bool_compare_and_swap... " >&6; }
9144 safe_CXXFLAGS=$CXXFLAGS
9145 CXXFLAGS="$mflag_primary"
9148 ac_cpp='$CXXCPP $CPPFLAGS'
9149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9161 return (__sync_bool_compare_and_swap(&variable, 1, 2)
9162 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9168 if ac_fn_cxx_try_link "$LINENO"; then :
9170 ac_have_builtin_atomic_cxx=yes
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9172 $as_echo "yes" >&6; }
9174 $as_echo "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h
9179 ac_have_builtin_atomic_cxx=no
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9184 rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9187 ac_cpp='$CPP $CPPFLAGS'
9188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9193 CXXFLAGS=$safe_CXXFLAGS
9195 if test x$ac_have_builtin_atomic_cxx = xyes; then
9196 HAVE_BUILTIN_ATOMIC_CXX_TRUE=
9197 HAVE_BUILTIN_ATOMIC_CXX_FALSE='#'
9199 HAVE_BUILTIN_ATOMIC_CXX_TRUE='#'
9200 HAVE_BUILTIN_ATOMIC_CXX_FALSE=
9204 #----------------------------------------------------------------------------
9205 # Ok. We're done checking.
9206 #----------------------------------------------------------------------------
9208 # Nb: VEX/Makefile is generated from Makefile.vex.in.
9209 ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp docs/Makefile tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf gdbserver_tests/Makefile include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/tests/ppc32/Makefile memcheck/tests/ppc64/Makefile memcheck/perf/Makefile cachegrind/Makefile cachegrind/tests/Makefile cachegrind/tests/x86/Makefile cachegrind/cg_annotate cachegrind/cg_diff callgrind/Makefile callgrind/callgrind_annotate callgrind/callgrind_control callgrind/tests/Makefile helgrind/Makefile helgrind/tests/Makefile massif/Makefile massif/tests/Makefile massif/perf/Makefile massif/ms_print lackey/Makefile lackey/tests/Makefile none/Makefile none/tests/Makefile none/tests/amd64/Makefile none/tests/ppc32/Makefile none/tests/ppc64/Makefile none/tests/x86/Makefile none/tests/arm/Makefile none/tests/s390x/Makefile none/tests/linux/Makefile none/tests/darwin/Makefile none/tests/x86-linux/Makefile exp-sgcheck/Makefile exp-sgcheck/tests/Makefile drd/Makefile drd/scripts/download-and-build-splash2 drd/tests/Makefile exp-bbv/Makefile exp-bbv/tests/Makefile exp-bbv/tests/x86/Makefile exp-bbv/tests/x86-linux/Makefile exp-bbv/tests/amd64-linux/Makefile exp-bbv/tests/ppc32-linux/Makefile exp-dhat/Makefile exp-dhat/tests/Makefile"
9211 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9213 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9215 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9217 ac_config_files="$ac_config_files coregrind/link_tool_exe_l4re"
9219 cat >confcache <<\_ACEOF
9220 # This file is a shell script that caches the results of configure
9221 # tests run on this system so they can be shared between configure
9222 # scripts and configure runs, see configure's option --config-cache.
9223 # It is not useful on other systems. If it contains results you don't
9224 # want to keep, you may remove or edit it.
9226 # config.status only pays attention to the cache file if you give it
9227 # the --recheck option to rerun configure.
9229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9235 # The following way of writing the cache mishandles newlines in values,
9236 # but we know of no workaround that is simple, portable, and efficient.
9237 # So, we kill variables containing newlines.
9238 # Ultrix sh set writes to stderr and can't be redirected directly,
9239 # and sets the high bit in the cache file unless we assign to the vars.
9241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9242 eval ac_val=\$$ac_var
9246 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9250 _ | IFS | as_nl) ;; #(
9251 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9252 *) { eval $ac_var=; unset $ac_var;} ;;
9258 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9259 *${as_nl}ac_space=\ *)
9260 # `set' does not quote correctly, so add quotes: double-quote
9261 # substitution turns \\\\ into \\, and sed turns \\ into \.
9264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9267 # `set' quotes correctly as required by POSIX, so do not add quotes.
9268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9279 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9282 if test -w "$cache_file"; then
9283 if test "x$cache_file" != "x/dev/null"; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9285 $as_echo "$as_me: updating cache $cache_file" >&6;}
9286 if test ! -f "$cache_file" || test -h "$cache_file"; then
9287 cat confcache >"$cache_file"
9289 case $cache_file in #(
9291 mv -f confcache "$cache_file"$$ &&
9292 mv -f "$cache_file"$$ "$cache_file" ;; #(
9294 mv -f confcache "$cache_file" ;;
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9306 # Let make expand exec_prefix.
9307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9309 DEFS=-DHAVE_CONFIG_H
9314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9315 # 1. Remove the extension, and $U if already installed.
9316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9317 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9319 # will be set to the directory where LIBOBJS objects are built.
9320 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9321 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9325 LTLIBOBJS=$ac_ltlibobjs
9328 if test -n "$EXEEXT"; then
9330 am__EXEEXT_FALSE='#'
9336 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9337 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9340 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9341 as_fn_error $? "conditional \"AMDEP\" was never defined.
9342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9344 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9345 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9348 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9349 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9352 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9353 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
9354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9356 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9357 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9360 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9361 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9364 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9365 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9368 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9369 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9372 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9373 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9376 if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
9377 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
9378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9380 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9381 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9384 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9385 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9388 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9389 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9392 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9393 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9396 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9397 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9400 if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
9401 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
9402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9404 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9405 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9408 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9409 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9412 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9413 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9416 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9417 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9420 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9421 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9424 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9425 as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9428 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9429 as_fn_error $? "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9432 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9433 as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9436 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9437 as_fn_error $? "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9440 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9441 as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9444 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9445 as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
9446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9448 if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
9449 as_fn_error $? "conditional \"HAS_VSX\" was never defined.
9450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9452 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9453 as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9456 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9457 as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
9458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9460 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9461 as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9464 if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
9465 as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
9466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9468 if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
9469 as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
9470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9472 if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
9473 as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
9474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9476 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9477 as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9480 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9481 as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9484 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9485 as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9488 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9489 as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9492 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9493 as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9496 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9497 as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
9498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9500 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9501 as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
9502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9504 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9505 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9508 if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
9509 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
9510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9513 : "${CONFIG_STATUS=./config.status}"
9515 ac_clean_files_save=$ac_clean_files
9516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9518 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9520 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9522 # Generated by $as_me.
9523 # Run this file to recreate the current configuration.
9524 # Compiler output produced by configure, useful for debugging
9525 # configure, is in config.log if it exists.
9531 SHELL=\${CONFIG_SHELL-$SHELL}
9534 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9535 ## -------------------- ##
9536 ## M4sh Initialization. ##
9537 ## -------------------- ##
9539 # Be more Bourne compatible
9540 DUALCASE=1; export DUALCASE # for MKS sh
9541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9544 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9545 # is contrary to our usage. Disable this feature.
9546 alias -g '${1+"$@"}'='"$@"'
9547 setopt NO_GLOB_SUBST
9549 case `(set -o) 2>/dev/null` in #(
9561 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9562 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9565 # Prefer a ksh shell builtin over an external printf program on Solaris,
9566 # but without wasting forks for bash or zsh.
9567 if test -z "$BASH_VERSION$ZSH_VERSION" \
9568 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9569 as_echo='print -r --'
9570 as_echo_n='print -rn --'
9571 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9572 as_echo='printf %s\n'
9573 as_echo_n='printf %s'
9575 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9576 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9577 as_echo_n='/usr/ucb/echo -n'
9579 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9580 as_echo_n_body='eval
9584 expr "X$arg" : "X\\(.*\\)$as_nl";
9585 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9587 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9589 export as_echo_n_body
9590 as_echo_n='sh -c $as_echo_n_body as_echo'
9593 as_echo='sh -c $as_echo_body as_echo'
9596 # The user is always right.
9597 if test "${PATH_SEPARATOR+set}" != set; then
9599 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9600 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9607 # We need space, tab and new line, in precisely that order. Quoting is
9608 # there to prevent editors from complaining about space-tab.
9609 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9610 # splitting by setting IFS to empty value.)
9613 # Find who we are. Look in the path if we contain no directory separator.
9616 *[\\/]* ) as_myself=$0 ;;
9617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 test -z "$as_dir" && as_dir=.
9622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9628 # We did not find ourselves, most probably we were run as `sh COMMAND'
9629 # in which case we are not to be found in the path.
9630 if test "x$as_myself" = x; then
9633 if test ! -f "$as_myself"; then
9634 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9638 # Unset variables that we do not need and which cause bugs (e.g. in
9639 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9640 # suppresses any "Segmentation fault" message there. '((' could
9641 # trigger a bug in pdksh 5.2.14.
9642 for as_var in BASH_ENV ENV MAIL MAILPATH
9643 do eval test x\${$as_var+set} = xset \
9644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9660 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9661 # ----------------------------------------
9662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9664 # script with STATUS, using 1 if that was 0.
9667 as_status=$1; test $as_status -eq 0 && as_status=1
9669 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9670 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9672 $as_echo "$as_me: error: $2" >&2
9673 as_fn_exit $as_status
9677 # as_fn_set_status STATUS
9678 # -----------------------
9679 # Set $? to STATUS, without forking.
9683 } # as_fn_set_status
9687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9697 # Portably unset VAR.
9700 { eval $1=; unset $1;}
9702 as_unset=as_fn_unset
9703 # as_fn_append VAR VALUE
9704 # ----------------------
9705 # Append the text in VALUE to the end of the definition contained in VAR. Take
9706 # advantage of any shell optimizations that allow amortized linear growth over
9707 # repeated appends, instead of the typical quadratic growth present in naive
9709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9710 eval 'as_fn_append ()
9721 # as_fn_arith ARG...
9722 # ------------------
9723 # Perform arithmetic evaluation on the ARGs, and store the result in the
9724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9725 # must be portable across $(()) and expr.
9726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9727 eval 'as_fn_arith ()
9734 as_val=`expr "$@" || test $? -eq 1`
9739 if expr a : '\(a\)' >/dev/null 2>&1 &&
9740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9747 as_basename=basename
9752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9758 as_me=`$as_basename -- "$0" ||
9759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9760 X"$0" : 'X\(//\)$' \| \
9761 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9763 sed '/^.*\/\([^/][^/]*\)\/*$/{
9777 # Avoid depending upon Character Ranges.
9778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9781 as_cr_digits='0123456789'
9782 as_cr_alnum=$as_cr_Letters$as_cr_digits
9784 ECHO_C= ECHO_N= ECHO_T=
9785 case `echo -n x` in #(((((
9787 case `echo 'xy\c'` in
9788 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9790 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9797 rm -f conf$$ conf$$.exe conf$$.file
9798 if test -d conf$$.dir; then
9799 rm -f conf$$.dir/conf$$.file
9802 mkdir conf$$.dir 2>/dev/null
9804 if (echo >conf$$.file) 2>/dev/null; then
9805 if ln -s conf$$.file conf$$ 2>/dev/null; then
9807 # ... but there are two gotchas:
9808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9810 # In both cases, we have to default to `cp -pR'.
9811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9813 elif ln conf$$.file conf$$ 2>/dev/null; then
9821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9822 rmdir conf$$.dir 2>/dev/null
9827 # Create "$as_dir" as a directory, including parents if necessary.
9832 -*) as_dir=./$as_dir;;
9834 test -d "$as_dir" || eval $as_mkdir_p || {
9838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9839 *) as_qdir=$as_dir;;
9841 as_dirs="'$as_qdir' $as_dirs"
9842 as_dir=`$as_dirname -- "$as_dir" ||
9843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9844 X"$as_dir" : 'X\(//\)[^/]' \| \
9845 X"$as_dir" : 'X\(//\)$' \| \
9846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9847 $as_echo X"$as_dir" |
9848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9865 test -d "$as_dir" && break
9867 test -z "$as_dirs" || eval "mkdir $as_dirs"
9868 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9872 if mkdir -p . 2>/dev/null; then
9873 as_mkdir_p='mkdir -p "$as_dir"'
9875 test -d ./-p && rmdir ./-p
9880 # as_fn_executable_p FILE
9881 # -----------------------
9882 # Test if FILE is an executable regular file.
9883 as_fn_executable_p ()
9885 test -f "$1" && test -x "$1"
9886 } # as_fn_executable_p
9888 as_executable_p=as_fn_executable_p
9890 # Sed expression to map a string onto a valid CPP name.
9891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9893 # Sed expression to map a string onto a valid variable name.
9894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9898 ## ----------------------------------- ##
9899 ## Main body of $CONFIG_STATUS script. ##
9900 ## ----------------------------------- ##
9902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9905 # Save the log message, to keep $0 and so on meaningful, and to
9906 # report actual input values of CONFIG_FILES etc. instead of their
9907 # values after options handling.
9909 This file was extended by Valgrind $as_me 3.7.0.SVN, which was
9910 generated by GNU Autoconf 2.69. Invocation command line was
9912 CONFIG_FILES = $CONFIG_FILES
9913 CONFIG_HEADERS = $CONFIG_HEADERS
9914 CONFIG_LINKS = $CONFIG_LINKS
9915 CONFIG_COMMANDS = $CONFIG_COMMANDS
9918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9923 case $ac_config_files in *"
9924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9927 case $ac_config_headers in *"
9928 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9933 # Files that config.status was made for.
9934 config_files="$ac_config_files"
9935 config_headers="$ac_config_headers"
9936 config_commands="$ac_config_commands"
9940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9942 \`$as_me' instantiates files and other configuration actions
9943 from templates according to the current configuration. Unless the files
9944 and actions are specified as TAGs, all are instantiated by default.
9946 Usage: $0 [OPTION]... [TAG]...
9948 -h, --help print this help, then exit
9949 -V, --version print version number and configuration settings, then exit
9950 --config print configuration, then exit
9951 -q, --quiet, --silent
9952 do not print progress messages
9953 -d, --debug don't remove temporary files
9954 --recheck update $as_me by reconfiguring in the same conditions
9955 --file=FILE[:TEMPLATE]
9956 instantiate the configuration file FILE
9957 --header=FILE[:TEMPLATE]
9958 instantiate the configuration header FILE
9960 Configuration files:
9963 Configuration headers:
9966 Configuration commands:
9969 Report bugs to <valgrind-users@lists.sourceforge.net>."
9972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9973 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9975 Valgrind config.status 3.7.0.SVN
9976 configured by $0, generated by GNU Autoconf 2.69,
9977 with options \\"\$ac_cs_config\\"
9979 Copyright (C) 2012 Free Software Foundation, Inc.
9980 This config.status script is free software; the Free Software Foundation
9981 gives unlimited permission to copy, distribute and modify it."
9988 test -n "\$AWK" || AWK=awk
9991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9992 # The default lists apply if the user does not specify any file.
9998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9999 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10015 # Handling of the options.
10016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10018 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10019 $as_echo "$ac_cs_version"; exit ;;
10020 --config | --confi | --conf | --con | --co | --c )
10021 $as_echo "$ac_cs_config"; exit ;;
10022 --debug | --debu | --deb | --de | --d | -d )
10024 --file | --fil | --fi | --f )
10027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10028 '') as_fn_error $? "missing file argument" ;;
10030 as_fn_append CONFIG_FILES " '$ac_optarg'"
10031 ac_need_defaults=false;;
10032 --header | --heade | --head | --hea )
10035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10037 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10038 ac_need_defaults=false;;
10040 # Conflict between --help and --header
10041 as_fn_error $? "ambiguous option: \`$1'
10042 Try \`$0 --help' for more information.";;
10043 --help | --hel | -h )
10044 $as_echo "$ac_cs_usage"; exit ;;
10045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10049 # This is an error.
10050 -*) as_fn_error $? "unrecognized option: \`$1'
10051 Try \`$0 --help' for more information." ;;
10053 *) as_fn_append ac_config_targets " $1"
10054 ac_need_defaults=false ;;
10060 ac_configure_extra_args=
10062 if $ac_cs_silent; then
10064 ac_configure_extra_args="$ac_configure_extra_args --silent"
10068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10069 if \$ac_cs_recheck; then
10070 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10072 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10073 CONFIG_SHELL='$SHELL'
10074 export CONFIG_SHELL
10079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10084 ## Running $as_me. ##
10090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10094 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10100 # Handling of arguments.
10101 for ac_config_target in $ac_config_targets
10103 case $ac_config_target in
10104 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10105 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10106 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10107 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
10108 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
10109 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
10110 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
10111 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10112 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10113 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
10114 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
10115 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
10116 "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;;
10117 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10118 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
10119 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
10120 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
10121 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
10122 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
10123 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
10124 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
10125 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
10126 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
10127 "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
10128 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
10129 "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
10130 "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
10131 "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
10132 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10133 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10134 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10135 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10136 "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10137 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10138 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10139 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10140 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10141 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10142 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10143 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10144 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10145 "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10146 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10147 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10148 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10149 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10150 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10151 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10152 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10153 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10154 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10155 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10156 "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;;
10157 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10158 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10159 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10160 "exp-sgcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/Makefile" ;;
10161 "exp-sgcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/tests/Makefile" ;;
10162 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10163 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10164 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10165 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10166 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10167 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10168 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10169 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10170 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10171 "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;;
10172 "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;;
10173 "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10174 "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10175 "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10176 "coregrind/link_tool_exe_l4re") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_l4re" ;;
10178 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10183 # If the user did not use the arguments to specify the items to instantiate,
10184 # then the envvar interface is used. Set only those that are not.
10185 # We use the long form for the default assignment because of an extremely
10186 # bizarre bug on SunOS 4.1.3.
10187 if $ac_need_defaults; then
10188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10189 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10193 # Have a temporary directory for convenience. Make it in the build tree
10194 # simply because there is no reason against having it here, and in addition,
10195 # creating and moving files from /tmp can sometimes cause problems.
10196 # Hook for its removal unless debugging.
10197 # Note that there is a small window in which the directory will not be cleaned:
10198 # after its creation but before its name has been assigned to `$tmp'.
10202 trap 'exit_status=$?
10203 : "${ac_tmp:=$tmp}"
10204 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10206 trap 'as_fn_exit 1' 1 2 13 15
10208 # Create a (secure) tmp directory for tmp files.
10211 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10215 tmp=./conf$$-$RANDOM
10216 (umask 077 && mkdir "$tmp")
10217 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10220 # Set up the scripts for CONFIG_FILES section.
10221 # No need to generate them if there are no CONFIG_FILES.
10222 # This happens for instance with `./config.status config.h'.
10223 if test -n "$CONFIG_FILES"; then
10226 ac_cr=`echo X | tr X '\015'`
10227 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10228 # But we know of no other shell where ac_cr would be empty at this
10229 # point, so we can use a bashism as a fallback.
10230 if test "x$ac_cr" = x; then
10231 eval ac_cr=\$\'\\r\'
10233 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10234 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10237 ac_cs_awk_cr=$ac_cr
10240 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10245 echo "cat >conf$$subs.awk <<_ACEOF" &&
10246 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10248 } >conf$$subs.sh ||
10249 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10250 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10252 for ac_last_try in false false false false false :; do
10253 . ./conf$$subs.sh ||
10254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10256 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10257 if test $ac_delim_n = $ac_delim_num; then
10259 elif $ac_last_try; then
10260 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10265 rm -f conf$$subs.sh
10267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10268 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10272 s/^/S["/; s/!.*/"]=/
10282 s/\(.\{148\}\)..*/\1/
10284 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10296 s/\(.\{148\}\)..*/\1/
10298 s/["\\]/\\&/g; s/^/"/; s/$/"/
10302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10307 ' <conf$$subs.awk | sed '
10312 ' >>$CONFIG_STATUS || ac_write_fail=1
10313 rm -f conf$$subs.awk
10314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10316 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10317 for (key in S) S_is_set[key] = 1
10323 nfields = split(line, field, "@")
10325 len = length(field[1])
10326 for (i = 2; i < nfields; i++) {
10328 keylen = length(key)
10329 if (S_is_set[key]) {
10331 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10332 len += length(value) + length(field[++i])
10343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10345 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10348 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10349 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10352 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10353 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10354 # trailing colons and then remove the whole line if VPATH becomes empty
10355 # (actually we leave an empty line to preserve line numbers).
10356 if test "x$srcdir" = x.; then
10357 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10376 fi # test -n "$CONFIG_FILES"
10378 # Set up the scripts for CONFIG_HEADERS section.
10379 # No need to generate them if there are no CONFIG_HEADERS.
10380 # This happens for instance with `./config.status Makefile'.
10381 if test -n "$CONFIG_HEADERS"; then
10382 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10386 # Transform confdefs.h into an awk script `defines.awk', embedded as
10387 # here-document in config.status, that substitutes the proper values into
10388 # config.h.in to produce config.h.
10390 # Create a delimiter string that does not exist in confdefs.h, to ease
10391 # handling of long lines.
10393 for ac_last_try in false false :; do
10394 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10395 if test -z "$ac_tt"; then
10397 elif $ac_last_try; then
10398 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10404 # For the awk script, D is an array of macro values keyed by name,
10405 # likewise P contains macro parameters if any. Preserve backslash
10406 # newline sequences.
10408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10410 s/.\{148\}/&'"$ac_delim"'/g
10413 s/^[ ]*#[ ]*define[ ][ ]*/ /
10420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10422 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10427 D["\1"]=" \3\\\\\\n"\\/p
10429 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10434 s/.\{148\}/&'"$ac_delim"'/g
10439 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10442 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10444 ' <confdefs.h | sed '
10445 s/'"$ac_delim"'/"\\\
10446 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10449 for (key in D) D_is_set[key] = 1
10452 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10454 split(line, arg, " ")
10455 if (arg[1] == "#") {
10459 defundef = substr(arg[1], 2)
10462 split(mac1, mac2, "(") #)
10464 prefix = substr(line, 1, index(line, defundef) - 1)
10465 if (D_is_set[macro]) {
10466 # Preserve the white space surrounding the "#".
10467 print prefix "define", macro P[macro] D[macro]
10470 # Replace #undef with comments. This is necessary, for example,
10471 # in the case of _POSIX_SOURCE, which is predefined and required
10472 # on some systems where configure will not decide to define it.
10473 if (defundef == "undef") {
10474 print "/*", prefix defundef, macro, "*/"
10482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10483 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10484 fi # test -n "$CONFIG_HEADERS"
10487 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10492 :[FHLC]) ac_mode=$ac_tag; continue;;
10494 case $ac_mode$ac_tag in
10496 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10497 :[FH]-) ac_tag=-:-;;
10498 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10515 -) ac_f="$ac_tmp/stdin";;
10516 *) # Look for the file first in the build tree, then in the source tree
10517 # (if the path is not absolute). The absolute path cannot be DOS-style,
10518 # because $ac_f cannot contain `:'.
10522 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10524 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10526 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10527 as_fn_append ac_file_inputs " '$ac_f'"
10530 # Let's still pretend it is `configure' which instantiates (i.e., don't
10531 # use $as_me), people would be surprised to read:
10532 # /* config.h. Generated by config.status. */
10533 configure_input='Generated from '`
10534 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10536 if test x"$ac_file" != x-; then
10537 configure_input="$ac_file. $configure_input"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10539 $as_echo "$as_me: creating $ac_file" >&6;}
10541 # Neutralize special characters interpreted by sed in replacement strings.
10542 case $configure_input in #(
10543 *\&* | *\|* | *\\* )
10544 ac_sed_conf_input=`$as_echo "$configure_input" |
10545 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10546 *) ac_sed_conf_input=$configure_input;;
10550 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10556 ac_dir=`$as_dirname -- "$ac_file" ||
10557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10558 X"$ac_file" : 'X\(//\)[^/]' \| \
10559 X"$ac_file" : 'X\(//\)$' \| \
10560 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10561 $as_echo X"$ac_file" |
10562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10566 /^X\(\/\/\)[^/].*/{
10579 as_dir="$ac_dir"; as_fn_mkdir_p
10583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10586 # A ".." for each directory in $ac_dir_suffix.
10587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10588 case $ac_top_builddir_sub in
10589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10593 ac_abs_top_builddir=$ac_pwd
10594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10595 # for backward compatibility:
10596 ac_top_builddir=$ac_top_build_prefix
10599 .) # We are building in place.
10601 ac_top_srcdir=$ac_top_builddir_sub
10602 ac_abs_top_srcdir=$ac_pwd ;;
10603 [\\/]* | ?:[\\/]* ) # Absolute name.
10604 ac_srcdir=$srcdir$ac_dir_suffix;
10605 ac_top_srcdir=$srcdir
10606 ac_abs_top_srcdir=$srcdir ;;
10607 *) # Relative name.
10608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10609 ac_top_srcdir=$ac_top_build_prefix$srcdir
10610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10622 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10623 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10625 ac_MKDIR_P=$MKDIR_P
10627 [\\/$]* | ?:[\\/]* ) ;;
10628 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10633 # If the template does not know about datarootdir, expand it.
10634 # FIXME: This hack should be removed a few years after 2.60.
10635 ac_datarootdir_hack=; ac_datarootdir_seen=
10646 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10647 *datarootdir*) ac_datarootdir_seen=yes;;
10648 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10650 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10653 ac_datarootdir_hack='
10654 s&@datadir@&$datadir&g
10655 s&@docdir@&$docdir&g
10656 s&@infodir@&$infodir&g
10657 s&@localedir@&$localedir&g
10658 s&@mandir@&$mandir&g
10659 s&\\\${datarootdir}&$datarootdir&g' ;;
10663 # Neutralize VPATH when `$srcdir' = `.'.
10664 # Shell code in configure.ac might set extrasub.
10665 # FIXME: do we really want to maintain this feature?
10666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10667 ac_sed_extra="$ac_vpsub
10670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10673 s|@configure_input@|$ac_sed_conf_input|;t t
10674 s&@top_builddir@&$ac_top_builddir_sub&;t t
10675 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10676 s&@srcdir@&$ac_srcdir&;t t
10677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10678 s&@top_srcdir@&$ac_top_srcdir&;t t
10679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10680 s&@builddir@&$ac_builddir&;t t
10681 s&@abs_builddir@&$ac_abs_builddir&;t t
10682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10683 s&@INSTALL@&$ac_INSTALL&;t t
10684 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10685 $ac_datarootdir_hack
10687 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10688 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10691 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10693 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10695 which seems to be undefined. Please make sure it is defined" >&5
10696 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10697 which seems to be undefined. Please make sure it is defined" >&2;}
10699 rm -f "$ac_tmp/stdin"
10701 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10702 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10710 if test x"$ac_file" != x-; then
10712 $as_echo "/* $configure_input */" \
10713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10714 } >"$ac_tmp/config.h" \
10715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10716 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10721 mv "$ac_tmp/config.h" "$ac_file" \
10722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10725 $as_echo "/* $configure_input */" \
10726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10727 || as_fn_error $? "could not create -" "$LINENO" 5
10729 # Compute "$ac_file"'s index in $config_headers.
10732 for _am_header in $config_headers :; do
10733 case $_am_header in
10734 $_am_arg | $_am_arg:* )
10737 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10740 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10741 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10742 X"$_am_arg" : 'X\(//\)[^/]' \| \
10743 X"$_am_arg" : 'X\(//\)$' \| \
10744 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10745 $as_echo X"$_am_arg" |
10746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10750 /^X\(\/\/\)[^/].*/{
10762 s/.*/./; q'`/stamp-h$_am_stamp_count
10765 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10766 $as_echo "$as_me: executing $ac_file commands" >&6;}
10771 case $ac_file$ac_mode in
10772 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10773 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10774 # are listed without --file. Let's play safe and only enable the eval
10775 # if we detect the quoting.
10776 case $CONFIG_FILES in
10777 *\'*) eval set x "$CONFIG_FILES" ;;
10778 *) set x $CONFIG_FILES ;;
10783 # Strip MF so we end up with the name of the file.
10784 mf=`echo "$mf" | sed -e 's/:.*$//'`
10785 # Check whether this is an Automake generated Makefile or not.
10786 # We used to match only the files named `Makefile.in', but
10787 # some people rename them; so instead we look at the file content.
10788 # Grep'ing the first line is not enough: some people post-process
10789 # each Makefile.in and add a new line on top of each file to say so.
10790 # Grep'ing the whole file is not good either: AIX grep has a line
10791 # limit of 2048, but all sed's we know have understand at least 4000.
10792 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10793 dirpart=`$as_dirname -- "$mf" ||
10794 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10795 X"$mf" : 'X\(//\)[^/]' \| \
10796 X"$mf" : 'X\(//\)$' \| \
10797 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10803 /^X\(\/\/\)[^/].*/{
10819 # Extract the definition of DEPDIR, am__include, and am__quote
10820 # from the Makefile without running `make'.
10821 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10822 test -z "$DEPDIR" && continue
10823 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10824 test -z "am__include" && continue
10825 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10826 # When using ansi2knr, U may be empty or an underscore; expand it
10827 U=`sed -n 's/^U = //p' < "$mf"`
10828 # Find all dependency output files, they are included files with
10829 # $(DEPDIR) in their names. We invoke sed twice because it is the
10830 # simplest approach to changing $(DEPDIR) to its actual value in the
10832 for file in `sed -n "
10833 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10834 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10835 # Make sure the directory exists.
10836 test -f "$dirpart/$file" && continue
10837 fdir=`$as_dirname -- "$file" ||
10838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10839 X"$file" : 'X\(//\)[^/]' \| \
10840 X"$file" : 'X\(//\)$' \| \
10841 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10842 $as_echo X"$file" |
10843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10847 /^X\(\/\/\)[^/].*/{
10860 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10861 # echo "creating $dirpart/$file"
10862 echo '# dummy' > "$dirpart/$file"
10867 "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10868 "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10869 "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10870 "coregrind/link_tool_exe_l4re":F) chmod +x coregrind/link_tool_exe_l4re ;;
10878 ac_clean_files=$ac_clean_files_save
10880 test $ac_write_fail = 0 ||
10881 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10884 # configure is writing to config.log, and then calls config.status.
10885 # config.status does its own redirection, appending to config.log.
10886 # Unfortunately, on DOS this fails, as config.log is still kept open
10887 # by configure, so config.status won't be able to write to it; its
10888 # output is simply discarded. So we exec the FD to /dev/null,
10889 # effectively closing config.log, so it can be properly (re)opened and
10890 # appended to by config.status. When coming back to configure, we
10891 # need to make the FD available again.
10892 if test "$no_create" != yes; then
10894 ac_config_status_args=
10895 test "$silent" = yes &&
10896 ac_config_status_args="$ac_config_status_args --quiet"
10898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10901 # would make configure fail if this is the last instruction.
10902 $ac_cs_success || as_fn_exit 1
10904 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10906 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10912 Maximum build arch: ${ARCH_MAX}
10913 Primary build arch: ${VGCONF_ARCH_PRI}
10914 Secondary build arch: ${VGCONF_ARCH_SEC}
10915 Build OS: ${VGCONF_OS}
10916 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10917 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10918 Default supp files: ${DEFAULT_SUPP}
10919 Generated supp files: ${GENERATED_SUPP}