2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Valgrind 3.7.0.SVN.
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: valgrind-users@lists.sourceforge.net about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='Valgrind'
562 PACKAGE_TARNAME='valgrind'
563 PACKAGE_VERSION='3.7.0.SVN'
564 PACKAGE_STRING='Valgrind 3.7.0.SVN'
565 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
568 ac_unique_file="coregrind/m_main.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
606 ac_subst_vars='am__EXEEXT_FALSE
609 HAVE_BUILTIN_ATOMIC_CXX_FALSE
610 HAVE_BUILTIN_ATOMIC_CXX_TRUE
611 HAVE_BUILTIN_ATOMIC_FALSE
612 HAVE_BUILTIN_ATOMIC_TRUE
615 HAVE_BOOST_1_35_FALSE
619 BUILD_MPIWRAP_SEC_FALSE
620 BUILD_MPIWRAP_SEC_TRUE
621 BUILD_MPIWRAP_PRI_FALSE
622 BUILD_MPIWRAP_PRI_TRUE
624 HAVE_PTHREAD_SPINLOCK_FALSE
625 HAVE_PTHREAD_SPINLOCK_TRUE
626 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
627 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
628 HAVE_PTHREAD_BARRIER_FALSE
629 HAVE_PTHREAD_BARRIER_TRUE
631 BUILD_SSE42_TESTS_FALSE
632 BUILD_SSE42_TESTS_TRUE
633 BUILD_LZCNT_TESTS_FALSE
634 BUILD_LZCNT_TESTS_TRUE
635 BUILD_PCLMULQDQ_TESTS_FALSE
636 BUILD_PCLMULQDQ_TESTS_TRUE
637 BUILD_SSSE3_TESTS_FALSE
638 BUILD_SSSE3_TESTS_TRUE
639 BUILD_SSE3_TESTS_FALSE
640 BUILD_SSE3_TESTS_TRUE
642 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
643 FLAG_FNO_STACK_PROTECTOR
645 FLAG_W_NO_UNINITIALIZED
648 FLAG_W_NO_FORMAT_ZERO_LENGTH
650 PREFERRED_STACK_BOUNDARY
657 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
658 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
668 VALT_LOAD_ADDRESS_SEC
669 VALT_LOAD_ADDRESS_PRI
670 VGCONF_HAVE_PLATFORM_SEC_FALSE
671 VGCONF_HAVE_PLATFORM_SEC_TRUE
672 VGCONF_OS_IS_L4RE_FALSE
673 VGCONF_OS_IS_L4RE_TRUE
674 VGCONF_OS_IS_DARWIN_FALSE
675 VGCONF_OS_IS_DARWIN_TRUE
676 VGCONF_OS_IS_AIX5_FALSE
677 VGCONF_OS_IS_AIX5_TRUE
678 VGCONF_OS_IS_LINUX_FALSE
679 VGCONF_OS_IS_LINUX_TRUE
680 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
681 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
682 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
683 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
684 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
685 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
686 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
687 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
688 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
689 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
690 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE
691 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE
692 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
693 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
694 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
695 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
696 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
697 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
698 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
699 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
700 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
701 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
702 VGCONF_ARCHS_INCLUDE_S390X_FALSE
703 VGCONF_ARCHS_INCLUDE_S390X_TRUE
704 VGCONF_ARCHS_INCLUDE_ARM_FALSE
705 VGCONF_ARCHS_INCLUDE_ARM_TRUE
706 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
707 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
708 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
709 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
710 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
711 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
712 VGCONF_ARCHS_INCLUDE_X86_FALSE
713 VGCONF_ARCHS_INCLUDE_X86_TRUE
714 VGCONF_PLATFORM_SEC_CAPS
715 VGCONF_PLATFORM_PRI_CAPS
728 am__fastdepCCAS_FALSE
763 MAINTAINER_MODE_FALSE
773 INSTALL_STRIP_PROGRAM
815 program_transform_name
828 enable_option_checking
829 enable_maintainer_mode
830 enable_dependency_tracking
837 ac_precious_vars='build_alias
854 # Initialize some variables set by options.
856 ac_init_version=false
857 ac_unrecognized_opts=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
868 program_transform_name=s,x,x,
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
997 eval enable_$ac_useropt=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1161 -site=* | --site=* | --sit=*)
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=no ;;
1220 # Obsolete; use --with-x.
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1288 # Be sure to have absolute directory names.
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used" >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures Valgrind 3.7.0.SVN to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of Valgrind 3.7.0.SVN:";;
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-maintainer-mode enable make rules and dependencies not useful
1473 (and sometimes confusing) to the casual installer
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
1476 --enable-only64bit do a 64-bit only build
1477 --enable-only32bit do a 32-bit only build
1478 --enable-inner enables self-hosting
1479 --enable-tls platform supports TLS
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-mpicc= Specify name of MPI2-ised C compiler
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1498 CCAS assembler compiler command (defaults to CC)
1499 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to <valgrind-users@lists.sourceforge.net>.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1534 .) # We are building in place.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1567 Valgrind configure 3.7.0.SVN
1568 generated by GNU Autoconf 2.68
1570 Copyright (C) 2010 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } > conftest.i && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1656 # ac_fn_cxx_try_compile LINENO
1657 # ----------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_cxx_try_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext
1663 if { { ac_try="$ac_compile"
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_cxx_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1692 } # ac_fn_cxx_try_compile
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 $as_test_x conftest$ac_exeext
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_c_try_link
1740 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1743 # the include files in INCLUDES and setting the cache variable VAR
1745 ac_fn_c_check_header_mongrel ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if eval \${$3+:} false; then :
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1758 # Is the header compilable?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1760 $as_echo_n "checking $2 usability... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 ac_header_compiler=yes
1769 ac_header_compiler=no
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1773 $as_echo "$ac_header_compiler" >&6; }
1775 # Is the header present?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1777 $as_echo_n "checking $2 presence... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1782 if ac_fn_c_try_cpp "$LINENO"; then :
1783 ac_header_preproc=yes
1785 ac_header_preproc=no
1787 rm -f conftest.err conftest.i conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1789 $as_echo "$ac_header_preproc" >&6; }
1791 # So? What about this header?
1792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1795 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1801 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1803 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1805 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1807 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ( $as_echo "## --------------------------------------------------- ##
1811 ## Report this to valgrind-users@lists.sourceforge.net ##
1812 ## --------------------------------------------------- ##"
1813 ) | sed "s/^/$as_me: WARNING: /" >&2
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1821 eval "$3=\$ac_header_compiler"
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_header_mongrel
1831 # ac_fn_c_try_run LINENO
1832 # ----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834 # that executables *can* be run.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { { ac_try="$ac_link"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849 { { case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_try") 2>&5
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; }; }; then :
1861 $as_echo "$as_me: program exited with status $ac_status" >&5
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=$ac_status
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1873 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists and can be compiled using the include files in
1876 # INCLUDES, setting the cache variable VAR accordingly.
1877 ac_fn_c_check_header_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1890 if ac_fn_c_try_compile "$LINENO"; then :
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 } # ac_fn_c_check_header_compile
1904 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905 # -------------------------------------------
1906 # Tests whether TYPE exists after having included INCLUDES, setting cache
1907 # variable VAR accordingly.
1908 ac_fn_c_check_type ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 } # ac_fn_c_check_type
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1973 #define $2 innocuous_$2
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $2 (); below.
1977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978 <limits.h> exists even on freestanding compilers. */
1981 # include <limits.h>
1983 # include <assert.h>
1988 /* Override any GCC internal prototype to avoid an error.
1989 Use char because int might match the return type of a GCC
1990 builtin and then its argument prototype would still apply. */
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined __stub_$2 || defined __stub___$2
2010 if ac_fn_c_try_link "$LINENO"; then :
2015 rm -f core conftest.err conftest.$ac_objext \
2016 conftest$ac_exeext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_func
2025 # ac_fn_cxx_try_link LINENO
2026 # -------------------------
2027 # Try to link conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_cxx_try_link ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext conftest$ac_exeext
2032 if { { ac_try="$ac_link"
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_link") 2>conftest.err
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && {
2048 test -z "$ac_cxx_werror_flag" ||
2049 test ! -s conftest.err
2050 } && test -s conftest$ac_exeext && {
2051 test "$cross_compiling" = yes ||
2052 $as_test_x conftest$ac_exeext
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2061 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063 # interfere with the next link command; also delete a directory that is
2064 # left behind by Apple's compiler. We do this before executing the actions.
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 as_fn_set_status $ac_retval
2069 } # ac_fn_cxx_try_link
2070 cat >config.log <<_ACEOF
2071 This file contains any messages produced by compilers while
2072 running configure, to aid debugging if configure makes a mistake.
2074 It was created by Valgrind $as_me 3.7.0.SVN, which was
2075 generated by GNU Autoconf 2.68. Invocation command line was
2087 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2088 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2089 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2090 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2091 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2093 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2094 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2096 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2097 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2098 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2099 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2100 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2101 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2102 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 $as_echo "PATH: $as_dir"
2127 # Keep a trace of the command line.
2128 # Strip out --no-create and --no-recursion so they do not pile up.
2129 # Strip out --silent because we don't want to record it for future runs.
2130 # Also quote any args containing shell meta-characters.
2131 # Make two passes to allow for proper duplicate-argument suppression.
2135 ac_must_keep_next=false
2141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2143 | -silent | --silent | --silen | --sile | --sil)
2146 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2151 as_fn_append ac_configure_args1 " '$ac_arg'"
2152 if test $ac_must_keep_next = true; then
2153 ac_must_keep_next=false # Got value, back to normal.
2156 *=* | --config-cache | -C | -disable-* | --disable-* \
2157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2159 | -with-* | --with-* | -without-* | --without-* | --x)
2160 case "$ac_configure_args0 " in
2161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2164 -* ) ac_must_keep_next=true ;;
2167 as_fn_append ac_configure_args " '$ac_arg'"
2172 { ac_configure_args0=; unset ac_configure_args0;}
2173 { ac_configure_args1=; unset ac_configure_args1;}
2175 # When interrupted or exit'd, cleanup temporary files, and complete
2176 # config.log. We remove comments because anyway the quotes in there
2177 # would cause problems or look ugly.
2178 # WARNING: Use '\'' to represent an apostrophe within the trap.
2179 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2180 trap 'exit_status=$?
2181 # Save into config.log some information that might help in debugging.
2185 $as_echo "## ---------------- ##
2186 ## Cache variables. ##
2187 ## ---------------- ##"
2189 # The following way of writing the cache mishandles newlines in values,
2191 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2192 eval ac_val=\$$ac_var
2196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2197 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2200 _ | IFS | as_nl) ;; #(
2201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2202 *) { eval $ac_var=; unset $ac_var;} ;;
2207 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2208 *${as_nl}ac_space=\ *)
2210 "s/'\''/'\''\\\\'\'''\''/g;
2211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2221 $as_echo "## ----------------- ##
2222 ## Output variables. ##
2223 ## ----------------- ##"
2225 for ac_var in $ac_subst_vars
2227 eval ac_val=\$$ac_var
2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2231 $as_echo "$ac_var='\''$ac_val'\''"
2235 if test -n "$ac_subst_files"; then
2236 $as_echo "## ------------------- ##
2237 ## File substitutions. ##
2238 ## ------------------- ##"
2240 for ac_var in $ac_subst_files
2242 eval ac_val=\$$ac_var
2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 $as_echo "$ac_var='\''$ac_val'\''"
2251 if test -s confdefs.h; then
2252 $as_echo "## ----------- ##
2259 test "$ac_signal" != 0 &&
2260 $as_echo "$as_me: caught signal $ac_signal"
2261 $as_echo "$as_me: exit $exit_status"
2263 rm -f core *.core core.conftest.* &&
2264 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267 for ac_signal in 1 2 13 15; do
2268 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2273 rm -f -r conftest* confdefs.h
2275 $as_echo "/* confdefs.h */" > confdefs.h
2277 # Predefined preprocessor variables.
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_NAME "$PACKAGE_NAME"
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_STRING "$PACKAGE_STRING"
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_URL "$PACKAGE_URL"
2304 # Let the site file select an alternate cache file if it wants to.
2305 # Prefer an explicitly selected file to automatically selected ones.
2308 if test -n "$CONFIG_SITE"; then
2309 # We do not want a PATH search for config.site.
2310 case $CONFIG_SITE in #((
2311 -*) ac_site_file1=./$CONFIG_SITE;;
2312 */*) ac_site_file1=$CONFIG_SITE;;
2313 *) ac_site_file1=./$CONFIG_SITE;;
2315 elif test "x$prefix" != xNONE; then
2316 ac_site_file1=$prefix/share/config.site
2317 ac_site_file2=$prefix/etc/config.site
2319 ac_site_file1=$ac_default_prefix/share/config.site
2320 ac_site_file2=$ac_default_prefix/etc/config.site
2322 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2324 test "x$ac_site_file" = xNONE && continue
2325 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2327 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2328 sed 's/^/| /' "$ac_site_file" >&5
2330 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 as_fn_error $? "failed to load site script $ac_site_file
2333 See \`config.log' for more details" "$LINENO" 5; }
2337 if test -r "$cache_file"; then
2338 # Some versions of bash will fail to source /dev/null (special files
2339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2342 $as_echo "$as_me: loading cache $cache_file" >&6;}
2344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345 *) . "./$cache_file";;
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2350 $as_echo "$as_me: creating cache $cache_file" >&6;}
2354 as_fn_append ac_header_list " stdlib.h"
2355 as_fn_append ac_header_list " unistd.h"
2356 as_fn_append ac_header_list " sys/param.h"
2357 # Check that the precious variables saved in the cache have kept the same
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 ac_config_headers="$ac_config_headers config.h"
2428 am__api_version='1.11'
2431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2432 if test -f "$ac_dir/install-sh"; then
2434 ac_install_sh="$ac_aux_dir/install-sh -c"
2436 elif test -f "$ac_dir/install.sh"; then
2438 ac_install_sh="$ac_aux_dir/install.sh -c"
2440 elif test -f "$ac_dir/shtool"; then
2442 ac_install_sh="$ac_aux_dir/shtool install -c"
2446 if test -z "$ac_aux_dir"; then
2447 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2450 # These three variables are undocumented and unsupported,
2451 # and are intended to be withdrawn in a future Autoconf release.
2452 # They can cause serious problems if a builder's source tree is in a directory
2453 # whose full name contains unusual characters.
2454 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2455 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2456 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2459 # Find a good install program. We prefer a C program (faster),
2460 # so one script is as good as another. But avoid the broken or
2461 # incompatible versions:
2462 # SysV /etc/install, /usr/sbin/install
2463 # SunOS /usr/etc/install
2464 # IRIX /sbin/install
2466 # AmigaOS /C/install, which installs bootblocks on floppy discs
2467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2470 # OS/2's system install, which has a completely different semantic
2471 # ./install, which can be erroneously created by make from ./install.sh.
2472 # Reject install programs that cannot install multiple files.
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2474 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2475 if test -z "$INSTALL"; then
2476 if ${ac_cv_path_install+:} false; then :
2477 $as_echo_n "(cached) " >&6
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 # Account for people who put trailing slashes in PATH elements.
2485 case $as_dir/ in #((
2486 ./ | .// | /[cC]/* | \
2487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2488 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2491 # OSF1 and SCO ODT 3.0 have their own names for install.
2492 # Don't use installbsd from OSF since it installs stuff as root
2494 for ac_prog in ginstall scoinst install; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2497 if test $ac_prog = install &&
2498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # AIX install. It has an incompatible calling convention.
2501 elif test $ac_prog = install &&
2502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # program-specific install script used by HP pwplus--don't use.
2506 rm -rf conftest.one conftest.two conftest.dir
2507 echo one > conftest.one
2508 echo two > conftest.two
2510 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2511 test -s conftest.one && test -s conftest.two &&
2512 test -s conftest.dir/conftest.one &&
2513 test -s conftest.dir/conftest.two
2515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 rm -rf conftest.one conftest.two conftest.dir
2531 if test "${ac_cv_path_install+set}" = set; then
2532 INSTALL=$ac_cv_path_install
2534 # As a last resort, use the slow shell script. Don't cache a
2535 # value for INSTALL within a source directory, because that will
2536 # break other packages using the cache if that directory is
2537 # removed, or if the value is a relative name.
2538 INSTALL=$ac_install_sh
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2542 $as_echo "$INSTALL" >&6; }
2544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2545 # It thinks the first close brace ends the variable substitution.
2546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2553 $as_echo_n "checking whether build environment is sane... " >&6; }
2556 echo timestamp > conftest.file
2557 # Reject unsafe characters in $srcdir or the absolute working directory
2558 # name. Accept space and tab only in the latter.
2562 *[\\\"\#\$\&\'\`$am_lf]*)
2563 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2566 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2567 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2570 # Do `set' in a subshell so we don't clobber the current shell's
2571 # arguments. Must try -L first in case configure is actually a
2572 # symlink; some systems play weird games with the mod time of symlinks
2573 # (eg FreeBSD returns the mod time of the symlink's containing
2576 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2577 if test "$*" = "X"; then
2579 set X `ls -t "$srcdir/configure" conftest.file`
2582 if test "$*" != "X $srcdir/configure conftest.file" \
2583 && test "$*" != "X conftest.file $srcdir/configure"; then
2585 # If neither matched, then we have a broken ls. This can happen
2586 # if, for instance, CONFIG_SHELL is bash and it inherits a
2587 # broken ls alias from the environment. This has actually
2588 # happened. Such a system could not be considered "sane".
2589 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2590 alias in your environment" "$LINENO" 5
2593 test "$2" = conftest.file
2599 as_fn_error $? "newly created file is older than distributed files!
2600 Check your system clock" "$LINENO" 5
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603 $as_echo "yes" >&6; }
2604 test "$program_prefix" != NONE &&
2605 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2606 # Use a double $ so make ignores it.
2607 test "$program_suffix" != NONE &&
2608 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2609 # Double any \ or $.
2610 # By default was `s,x,x', remove it if useless.
2611 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2612 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2614 # expand $ac_aux_dir to an absolute path
2615 am_aux_dir=`cd $ac_aux_dir && pwd`
2617 if test x"${MISSING+set}" != xset; then
2620 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2622 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2625 # Use eval to expand $SHELL
2626 if eval "$MISSING --run true"; then
2627 am_missing_run="$MISSING --run "
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2631 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2634 if test x"${install_sh}" != xset; then
2637 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2639 install_sh="\${SHELL} $am_aux_dir/install-sh"
2643 # Installed binaries are usually stripped using `strip' when the user
2644 # run `make install-strip'. However `strip' might not be the right
2645 # tool to use in cross-compilation environments, therefore Automake
2646 # will honor the `STRIP' environment variable to overrule this program.
2647 if test "$cross_compiling" != no; then
2648 if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2650 set dummy ${ac_tool_prefix}strip; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_STRIP+:} false; then :
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$STRIP"; then
2657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 STRIP=$ac_cv_prog_STRIP
2677 if test -n "$STRIP"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2679 $as_echo "$STRIP" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2687 if test -z "$ac_cv_prog_STRIP"; then
2689 # Extract the first word of "strip", so it can be a program name with args.
2690 set dummy strip; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2694 $as_echo_n "(cached) " >&6
2696 if test -n "$ac_ct_STRIP"; then
2697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_ac_ct_STRIP="strip"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2717 if test -n "$ac_ct_STRIP"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2719 $as_echo "$ac_ct_STRIP" >&6; }
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2725 if test "x$ac_ct_STRIP" = x; then
2728 case $cross_compiling:$ac_tool_warned in
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732 ac_tool_warned=yes ;;
2737 STRIP="$ac_cv_prog_STRIP"
2741 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2744 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2745 if test -z "$MKDIR_P"; then
2746 if ${ac_cv_path_mkdir+:} false; then :
2747 $as_echo_n "(cached) " >&6
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2753 test -z "$as_dir" && as_dir=.
2754 for ac_prog in mkdir gmkdir; do
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2757 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2758 'mkdir (GNU coreutils) '* | \
2759 'mkdir (coreutils) '* | \
2760 'mkdir (fileutils) '4.1*)
2761 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2771 test -d ./--version && rmdir ./--version
2772 if test "${ac_cv_path_mkdir+set}" = set; then
2773 MKDIR_P="$ac_cv_path_mkdir -p"
2775 # As a last resort, use the slow shell script. Don't cache a
2776 # value for MKDIR_P within a source directory, because that will
2777 # break other packages using the cache if that directory is
2778 # removed, or if the value is a relative name.
2779 MKDIR_P="$ac_install_sh -d"
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2783 $as_echo "$MKDIR_P" >&6; }
2787 [\\/$]* | ?:[\\/]*) ;;
2788 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2791 for ac_prog in gawk mawk nawk awk
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy $ac_prog; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_AWK+:} false; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$AWK"; then
2801 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_AWK="$ac_prog"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 if test -n "$AWK"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2823 $as_echo "$AWK" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2830 test -n "$AWK" && break
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2834 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2836 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2837 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 cat >conftest.make <<\_ACEOF
2843 @echo '@@@%%%=$(MAKE)=@@@%%%'
2845 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2846 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2848 eval ac_cv_prog_make_${ac_make}_set=yes;;
2850 eval ac_cv_prog_make_${ac_make}_set=no;;
2854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 SET_MAKE="MAKE=${MAKE-make}"
2864 rm -rf .tst 2>/dev/null
2865 mkdir .tst 2>/dev/null
2866 if test -d .tst; then
2871 rmdir .tst 2>/dev/null
2873 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2874 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2875 # is not polluted with repeated "-I."
2876 am__isrc=' -I$(srcdir)'
2877 # test to see if srcdir already configured
2878 if test -f $srcdir/config.status; then
2879 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2883 # test whether we have cygpath
2884 if test -z "$CYGPATH_W"; then
2885 if (cygpath --version) >/dev/null 2>/dev/null; then
2886 CYGPATH_W='cygpath -w'
2893 # Define the identity of the package.
2898 cat >>confdefs.h <<_ACEOF
2899 #define PACKAGE "$PACKAGE"
2903 cat >>confdefs.h <<_ACEOF
2904 #define VERSION "$VERSION"
2907 # Some tools Automake needs.
2909 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2912 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2915 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2918 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2921 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2923 # We need awk for the "check" target. The system "awk" is bad on
2925 # Always define AMTAR for backward compatibility.
2927 AMTAR=${AMTAR-"${am_missing_run}tar"}
2929 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2938 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2939 # Check whether --enable-maintainer-mode was given.
2940 if test "${enable_maintainer_mode+set}" = set; then :
2941 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2943 USE_MAINTAINER_MODE=no
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2947 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2948 if test $USE_MAINTAINER_MODE = yes; then
2949 MAINTAINER_MODE_TRUE=
2950 MAINTAINER_MODE_FALSE='#'
2952 MAINTAINER_MODE_TRUE='#'
2953 MAINTAINER_MODE_FALSE=
2956 MAINT=$MAINTAINER_MODE_TRUE
2960 #----------------------------------------------------------------------------
2961 # Checks for various programs.
2962 #----------------------------------------------------------------------------
2963 CFLAGS="-Wno-long-long $CFLAGS"
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2966 $as_echo_n "checking whether ln -s works... " >&6; }
2968 if test "$LN_S" = "ln -s"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2973 $as_echo "no, using $LN_S" >&6; }
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3020 if test -z "$ac_cv_prog_CC"; then
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3058 if test "x$ac_ct_CC" = x; then
3061 case $cross_compiling:$ac_tool_warned in
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}cc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CC="${ac_tool_prefix}cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3114 if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected=yes
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl.exe
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3211 test -n "$CC" && break
3214 if test -z "$CC"; then
3216 for ac_prog in cl.exe
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy $ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_ac_ct_CC="$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3255 test -n "$ac_ct_CC" && break
3258 if test "x$ac_ct_CC" = x; then
3261 case $cross_compiling:$ac_tool_warned in
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details" "$LINENO" 5; }
3279 # Provide some information about the compiler.
3280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3283 for ac_option in --version -v -V -qversion; do
3284 { { ac_try="$ac_compiler $ac_option >&5"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3293 if test -s conftest.err; then
3295 ... rest of stderr output deleted ...
3296 10q' conftest.err >conftest.er1
3297 cat conftest.er1 >&5
3299 rm -f conftest.er1 conftest.err
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3315 ac_clean_files_save=$ac_clean_files
3316 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3317 # Try to create an executable without -o first, disregard a.out.
3318 # It will help us diagnose broken compilers, and finding out an intuition
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3321 $as_echo_n "checking whether the C compiler works... " >&6; }
3322 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324 # The possible output files:
3325 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3328 for ac_file in $ac_files
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3337 if { { ac_try="$ac_link_default"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_link_default") 2>&5
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; then :
3348 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3350 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3351 # so that the user can short-circuit this test for compilers unknown to
3353 for ac_file in $ac_files ''
3355 test -f "$ac_file" || continue
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360 # We found the default executable, but exeext='' is most
3364 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3366 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368 # We set ac_cv_exeext here because the later test for it is not
3369 # safe: cross compilers may not add the suffix if given an `-o'
3370 # argument, so we may need to know it at that point already.
3371 # Even if this section looks crufty: it has the advantage of
3378 test "$ac_cv_exeext" = no && ac_cv_exeext=
3383 if test -z "$ac_file"; then :
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error 77 "C compiler cannot create executables
3392 See \`config.log' for more details" "$LINENO" 5; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3398 $as_echo_n "checking for C compiler default output file name... " >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3400 $as_echo "$ac_file" >&6; }
3401 ac_exeext=$ac_cv_exeext
3403 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3404 ac_clean_files=$ac_clean_files_save
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3406 $as_echo_n "checking for suffix of executables... " >&6; }
3407 if { { ac_try="$ac_link"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe'), while it won't with
3422 for ac_file in conftest.exe conftest conftest.*; do
3423 test -f "$ac_file" || continue
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details" "$LINENO" 5; }
3437 rm -f conftest conftest$ac_cv_exeext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3439 $as_echo "$ac_cv_exeext" >&6; }
3441 rm -f conftest.$ac_ext
3442 EXEEXT=$ac_cv_exeext
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3450 FILE *f = fopen ("conftest.out", "w");
3451 return ferror (f) || fclose (f) != 0;
3457 ac_clean_files="$ac_clean_files conftest.out"
3458 # Check that the compiler produces executables we can run. If not, either
3459 # the compiler is broken, or we cross compile.
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3461 $as_echo_n "checking whether we are cross compiling... " >&6; }
3462 if test "$cross_compiling" != yes; then
3463 { { ac_try="$ac_link"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_link") 2>&5
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474 if { ac_try='./conftest$ac_cv_exeext'
3475 { { case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_try") 2>&5
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; }; then
3487 if test "$cross_compiling" = maybe; then
3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error $? "cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details" "$LINENO" 5; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3499 $as_echo "$cross_compiling" >&6; }
3501 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3502 ac_clean_files=$ac_clean_files_save
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3504 $as_echo_n "checking for suffix of object files... " >&6; }
3505 if ${ac_cv_objext+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 rm -f conftest.o conftest.obj
3520 if { { ac_try="$ac_compile"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527 (eval "$ac_compile") 2>&5
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; then :
3531 for ac_file in conftest.o conftest.obj conftest.*; do
3532 test -f "$ac_file" || continue;
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3535 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3540 $as_echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of object files: cannot compile
3546 See \`config.log' for more details" "$LINENO" 5; }
3548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3551 $as_echo "$ac_cv_objext" >&6; }
3552 OBJEXT=$ac_cv_objext
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3555 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3556 if ${ac_cv_c_compiler_gnu+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3573 if ac_fn_c_try_compile "$LINENO"; then :
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3583 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3584 if test $ac_compiler_gnu = yes; then
3589 ac_test_CFLAGS=${CFLAGS+set}
3590 ac_save_CFLAGS=$CFLAGS
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3592 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3593 if ${ac_cv_prog_cc_g+:} false; then :
3594 $as_echo_n "(cached) " >&6
3596 ac_save_c_werror_flag=$ac_c_werror_flag
3597 ac_c_werror_flag=yes
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 if ac_fn_c_try_compile "$LINENO"; then :
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3626 if ac_fn_c_try_compile "$LINENO"; then :
3629 ac_c_werror_flag=$ac_save_c_werror_flag
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3642 if ac_fn_c_try_compile "$LINENO"; then :
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 ac_c_werror_flag=$ac_save_c_werror_flag
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3653 $as_echo "$ac_cv_prog_cc_g" >&6; }
3654 if test "$ac_test_CFLAGS" = set; then
3655 CFLAGS=$ac_save_CFLAGS
3656 elif test $ac_cv_prog_cc_g = yes; then
3657 if test "$GCC" = yes; then
3663 if test "$GCC" = yes; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3670 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3671 if ${ac_cv_prog_cc_c89+:} false; then :
3672 $as_echo_n "(cached) " >&6
3674 ac_cv_prog_cc_c89=no
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3680 #include <sys/types.h>
3681 #include <sys/stat.h>
3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3683 struct buf { int x; };
3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685 static char *e (p, i)
3691 static char *f (char * (*g) (char **, int), char **p, ...)
3696 s = g (p, va_arg (v,int));
3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3702 function prototypes and stuff, but not '\xHH' hex character constants.
3703 These don't provoke an error unfortunately, instead are silently treated
3704 as 'x'. The following induces an error, until -std is added to get
3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3706 array size at least. It's necessary to write '\x00'==0 to get something
3707 that's true only with -std. */
3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711 inside strings and character constants. */
3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732 CC="$ac_save_CC $ac_arg"
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_cv_prog_cc_c89=$ac_arg
3736 rm -f core conftest.err conftest.$ac_objext
3737 test "x$ac_cv_prog_cc_c89" != "xno" && break
3739 rm -f conftest.$ac_ext
3744 case "x$ac_cv_prog_cc_c89" in
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3747 $as_echo "none needed" >&6; } ;;
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750 $as_echo "unsupported" >&6; } ;;
3752 CC="$CC $ac_cv_prog_cc_c89"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3756 if test "x$ac_cv_prog_cc_c89" != xno; then :
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 DEPDIR="${am__leading_dot}deps"
3767 ac_config_commands="$ac_config_commands depfiles"
3770 am_make=${MAKE-make}
3771 cat > confinc << 'END'
3773 @echo this is the am__doit target
3776 # If we don't find an include directive, just comment out the code.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3778 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3782 # First try GNU make style include.
3783 echo "include confinc" > confmf
3784 # Ignore all kinds of additional output from `make'.
3785 case `$am_make -s -f confmf 2> /dev/null` in #(
3786 *the\ am__doit\ target*)
3792 # Now try BSD make style include.
3793 if test "$am__include" = "#"; then
3794 echo '.include "confinc"' > confmf
3795 case `$am_make -s -f confmf 2> /dev/null` in #(
3796 *the\ am__doit\ target*)
3797 am__include=.include
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3806 $as_echo "$_am_result" >&6; }
3807 rm -f confinc confmf
3809 # Check whether --enable-dependency-tracking was given.
3810 if test "${enable_dependency_tracking+set}" = set; then :
3811 enableval=$enable_dependency_tracking;
3814 if test "x$enable_dependency_tracking" != xno; then
3815 am_depcomp="$ac_aux_dir/depcomp"
3818 if test "x$enable_dependency_tracking" != xno; then
3828 depcc="$CC" am_compiler_list=
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831 $as_echo_n "checking dependency style of $depcc... " >&6; }
3832 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836 # We make a subdir and do the tests there. Otherwise we can end up
3837 # making bogus files that we don't know about and never remove. For
3838 # instance it was reported that on HP-UX the gcc test will end up
3839 # making a dummy file named `D' -- because `-MD' means `put the output
3842 # Copy depcomp to subdir because otherwise we won't find it if we're
3843 # using a relative directory.
3844 cp "$am_depcomp" conftest.dir
3846 # We will build objects and dependencies in a subdirectory because
3847 # it helps to detect inapplicable dependency modes. For instance
3848 # both Tru64's cc and ICC support -MD to output dependencies as a
3849 # side effect of compilation, but ICC will put the dependencies in
3850 # the current directory while Tru64 will put them in the object
3854 am_cv_CC_dependencies_compiler_type=none
3855 if test "$am_compiler_list" = ""; then
3856 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3859 case " $depcc " in #(
3860 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3863 for depmode in $am_compiler_list; do
3864 # Setup a source with many dependencies, because some compilers
3865 # like to wrap large dependency lists on column 80 (with \), and
3866 # we should not choose a depcomp mode which is confused by this.
3868 # We need to recreate these files for each test, as the compiler may
3869 # overwrite some of them when testing with obscure command lines.
3870 # This happens at least with the AIX C compiler.
3872 for i in 1 2 3 4 5 6; do
3873 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3874 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3875 # Solaris 8's {/usr,}/bin/sh.
3876 touch sub/conftst$i.h
3878 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3880 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3881 # mode. It turns out that the SunPro C++ compiler does not properly
3882 # handle `-M -o', and we need to detect this. Also, some Intel
3883 # versions had trouble with output in subdirs
3884 am__obj=sub/conftest.${OBJEXT-o}
3885 am__minus_obj="-o $am__obj"
3888 # This depmode causes a compiler race in universal mode.
3889 test "$am__universal" = false || continue
3892 # after this tag, mechanisms are not by side-effect, so they'll
3893 # only be used when explicitly requested
3894 if test "x$enable_dependency_tracking" = xyes; then
3900 msvisualcpp | msvcmsys)
3901 # This compiler won't grok `-c -o', but also, the minuso test has
3902 # not run yet. These depmodes are late enough in the game, and
3903 # so weak that their functioning should not be impacted.
3904 am__obj=conftest.${OBJEXT-o}
3909 if depmode=$depmode \
3910 source=sub/conftest.c object=$am__obj \
3911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3912 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3913 >/dev/null 2>conftest.err &&
3914 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3916 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3918 # icc doesn't choke on unknown options, it will just issue warnings
3919 # or remarks (even with -Werror). So we grep stderr for any message
3920 # that says an option was ignored or not supported.
3921 # When given -MP, icc 7.0 and 7.1 complain thusly:
3922 # icc: Command line warning: ignoring option '-M'; no argument required
3923 # The diagnosis changed in icc 8.0:
3924 # icc: Command line remark: option '-MP' not supported
3925 if (grep 'ignoring option' conftest.err ||
3926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3927 am_cv_CC_dependencies_compiler_type=$depmode
3936 am_cv_CC_dependencies_compiler_type=none
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3942 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945 test "x$enable_dependency_tracking" != xno \
3946 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3948 am__fastdepCC_FALSE='#'
3950 am__fastdepCC_TRUE='#'
3951 am__fastdepCC_FALSE=
3955 if test "x$CC" != xcc; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3957 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3960 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3962 set dummy $CC; ac_cc=`$as_echo "$2" |
3963 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3964 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3978 # Make sure it works both with $CC and with simple cc.
3979 # We do the test twice because some compilers refuse to overwrite an
3980 # existing .o file with -o, though they will create one.
3981 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3983 if { { case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988 $as_echo "$ac_try_echo"; } >&5
3989 (eval "$ac_try") 2>&5
3991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992 test $ac_status = 0; } &&
3993 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_try") 2>&5
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; };
4004 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4005 if test "x$CC" != xcc; then
4006 # Test first that cc exists at all.
4007 if { ac_try='cc -c conftest.$ac_ext >&5'
4008 { { case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_try") 2>&5
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; }; then
4018 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4020 if { { case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_try") 2>&5
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; } &&
4030 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_try") 2>&5
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; };
4044 # cc exists but doesn't like -o.
4045 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4050 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4052 rm -f core conftest*
4055 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057 $as_echo "yes" >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4062 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4066 # FIXME: we rely on the cache variable name because
4067 # there is no other way.
4069 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4070 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4071 if test "$am_t" != yes; then
4072 # Losing compiler, so override with the script.
4073 # FIXME: It is wrong to rewrite CC.
4074 # But if we don't then we get into trouble of one sort or another.
4075 # A longer-term fix would be to have automake use am__CC in this case,
4076 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4077 CC="$am_aux_dir/compile $CC"
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4087 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4088 # On Suns, sometimes $CPP names a directory.
4089 if test -n "$CPP" && test -d "$CPP"; then
4092 if test -z "$CPP"; then
4093 if ${ac_cv_prog_CPP+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 # Double quotes because CPP needs to be expanded
4097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4100 for ac_c_preproc_warn_flag in '' yes
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 # <limits.h> exists even on freestanding compilers.
4106 # On the NeXT, cc -E runs the code through the compiler's parser,
4107 # not just through cpp. "Syntax error" is here to catch this case.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4111 # include <limits.h>
4113 # include <assert.h>
4117 if ac_fn_c_try_cpp "$LINENO"; then :
4120 # Broken: fails on valid input.
4123 rm -f conftest.err conftest.i conftest.$ac_ext
4125 # OK, works on sane cases. Now check whether nonexistent headers
4126 # can be detected and how.
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #include <ac_nonexistent.h>
4131 if ac_fn_c_try_cpp "$LINENO"; then :
4132 # Broken: success on invalid input.
4135 # Passes both tests.
4139 rm -f conftest.err conftest.i conftest.$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.i conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then :
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4157 $as_echo "$CPP" >&6; }
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4170 # include <limits.h>
4172 # include <assert.h>
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4179 # Broken: fails on valid input.
4182 rm -f conftest.err conftest.i conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4194 # Passes both tests.
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.i conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4209 See \`config.log' for more details" "$LINENO" 5; }
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219 ac_cpp='$CXXCPP $CPPFLAGS'
4220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4223 if test -z "$CXX"; then
4224 if test -n "$CCC"; then
4227 if test -n "$ac_tool_prefix"; then
4228 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_CXX+:} false; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -n "$CXX"; then
4238 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 if test -n "$CXX"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4260 $as_echo "$CXX" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4267 test -n "$CXX" && break
4270 if test -z "$CXX"; then
4272 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -n "$ac_ct_CXX"; then
4282 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_ac_ct_CXX="$ac_prog"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4302 if test -n "$ac_ct_CXX"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4304 $as_echo "$ac_ct_CXX" >&6; }
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4311 test -n "$ac_ct_CXX" && break
4314 if test "x$ac_ct_CXX" = x; then
4317 case $cross_compiling:$ac_tool_warned in
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4321 ac_tool_warned=yes ;;
4329 # Provide some information about the compiler.
4330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4333 for ac_option in --version -v -V -qversion; do
4334 { { ac_try="$ac_compiler $ac_option >&5"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4343 if test -s conftest.err; then
4345 ... rest of stderr output deleted ...
4346 10q' conftest.err >conftest.er1
4347 cat conftest.er1 >&5
4349 rm -f conftest.er1 conftest.err
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4355 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4356 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4373 if ac_fn_cxx_try_compile "$LINENO"; then :
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4383 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4384 if test $ac_compiler_gnu = yes; then
4389 ac_test_CXXFLAGS=${CXXFLAGS+set}
4390 ac_save_CXXFLAGS=$CXXFLAGS
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4392 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4393 if ${ac_cv_prog_cxx_g+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4397 ac_cxx_werror_flag=yes
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4411 if ac_fn_cxx_try_compile "$LINENO"; then :
4412 ac_cv_prog_cxx_g=yes
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4426 if ac_fn_cxx_try_compile "$LINENO"; then :
4429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4442 if ac_fn_cxx_try_compile "$LINENO"; then :
4443 ac_cv_prog_cxx_g=yes
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4453 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4454 if test "$ac_test_CXXFLAGS" = set; then
4455 CXXFLAGS=$ac_save_CXXFLAGS
4456 elif test $ac_cv_prog_cxx_g = yes; then
4457 if test "$GXX" = yes; then
4463 if test "$GXX" = yes; then
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 depcc="$CXX" am_compiler_list=
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4478 $as_echo_n "checking dependency style of $depcc... " >&6; }
4479 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4480 $as_echo_n "(cached) " >&6
4482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4483 # We make a subdir and do the tests there. Otherwise we can end up
4484 # making bogus files that we don't know about and never remove. For
4485 # instance it was reported that on HP-UX the gcc test will end up
4486 # making a dummy file named `D' -- because `-MD' means `put the output
4489 # Copy depcomp to subdir because otherwise we won't find it if we're
4490 # using a relative directory.
4491 cp "$am_depcomp" conftest.dir
4493 # We will build objects and dependencies in a subdirectory because
4494 # it helps to detect inapplicable dependency modes. For instance
4495 # both Tru64's cc and ICC support -MD to output dependencies as a
4496 # side effect of compilation, but ICC will put the dependencies in
4497 # the current directory while Tru64 will put them in the object
4501 am_cv_CXX_dependencies_compiler_type=none
4502 if test "$am_compiler_list" = ""; then
4503 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4506 case " $depcc " in #(
4507 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4510 for depmode in $am_compiler_list; do
4511 # Setup a source with many dependencies, because some compilers
4512 # like to wrap large dependency lists on column 80 (with \), and
4513 # we should not choose a depcomp mode which is confused by this.
4515 # We need to recreate these files for each test, as the compiler may
4516 # overwrite some of them when testing with obscure command lines.
4517 # This happens at least with the AIX C compiler.
4519 for i in 1 2 3 4 5 6; do
4520 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4522 # Solaris 8's {/usr,}/bin/sh.
4523 touch sub/conftst$i.h
4525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528 # mode. It turns out that the SunPro C++ compiler does not properly
4529 # handle `-M -o', and we need to detect this. Also, some Intel
4530 # versions had trouble with output in subdirs
4531 am__obj=sub/conftest.${OBJEXT-o}
4532 am__minus_obj="-o $am__obj"
4535 # This depmode causes a compiler race in universal mode.
4536 test "$am__universal" = false || continue
4539 # after this tag, mechanisms are not by side-effect, so they'll
4540 # only be used when explicitly requested
4541 if test "x$enable_dependency_tracking" = xyes; then
4547 msvisualcpp | msvcmsys)
4548 # This compiler won't grok `-c -o', but also, the minuso test has
4549 # not run yet. These depmodes are late enough in the game, and
4550 # so weak that their functioning should not be impacted.
4551 am__obj=conftest.${OBJEXT-o}
4556 if depmode=$depmode \
4557 source=sub/conftest.c object=$am__obj \
4558 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4559 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4560 >/dev/null 2>conftest.err &&
4561 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4563 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4565 # icc doesn't choke on unknown options, it will just issue warnings
4566 # or remarks (even with -Werror). So we grep stderr for any message
4567 # that says an option was ignored or not supported.
4568 # When given -MP, icc 7.0 and 7.1 complain thusly:
4569 # icc: Command line warning: ignoring option '-M'; no argument required
4570 # The diagnosis changed in icc 8.0:
4571 # icc: Command line remark: option '-MP' not supported
4572 if (grep 'ignoring option' conftest.err ||
4573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4574 am_cv_CXX_dependencies_compiler_type=$depmode
4583 am_cv_CXX_dependencies_compiler_type=none
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4588 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4589 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4592 test "x$enable_dependency_tracking" != xno \
4593 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4594 am__fastdepCXX_TRUE=
4595 am__fastdepCXX_FALSE='#'
4597 am__fastdepCXX_TRUE='#'
4598 am__fastdepCXX_FALSE=
4602 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4603 # autoconf 2.59). If we ever have any Objective-C code in the Valgrind code
4604 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4606 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4607 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4608 # - Use the following, which is apparently equivalent:
4609 # m4_ifdef([AC_PROG_OBJC],
4611 # [AC_CHECK_TOOL([OBJC], [gcc])
4613 # AC_SUBST([OBJCFLAGS])
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if ${ac_cv_prog_RANLIB+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 if test -n "$RANLIB"; then
4624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 RANLIB=$ac_cv_prog_RANLIB
4644 if test -n "$RANLIB"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4646 $as_echo "$RANLIB" >&6; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4654 if test -z "$ac_cv_prog_RANLIB"; then
4655 ac_ct_RANLIB=$RANLIB
4656 # Extract the first word of "ranlib", so it can be a program name with args.
4657 set dummy ranlib; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4661 $as_echo_n "(cached) " >&6
4663 if test -n "$ac_ct_RANLIB"; then
4664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_ac_ct_RANLIB="ranlib"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4684 if test -n "$ac_ct_RANLIB"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4686 $as_echo "$ac_ct_RANLIB" >&6; }
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4692 if test "x$ac_ct_RANLIB" = x; then
4695 case $cross_compiling:$ac_tool_warned in
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4701 RANLIB=$ac_ct_RANLIB
4704 RANLIB="$ac_cv_prog_RANLIB"
4707 # provide a very basic definition for AC_PROG_SED if it's not provided by
4708 # autoconf (as e.g. in autoconf 2.59).
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4711 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4712 if ${ac_cv_path_SED+:} false; then :
4713 $as_echo_n "(cached) " >&6
4715 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4716 for ac_i in 1 2 3 4 5 6 7; do
4717 ac_script="$ac_script$as_nl$ac_script"
4719 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4720 { ac_script=; unset ac_script;}
4721 if test -z "$SED"; then
4722 ac_path_SED_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_prog in sed gsed; do
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4732 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4733 # Check for GNU ac_path_SED and select it if it is found.
4734 # Check for GNU $ac_path_SED
4735 case `"$ac_path_SED" --version 2>&1` in
4737 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4740 $as_echo_n 0123456789 >"conftest.in"
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo '' >> "conftest.nl"
4747 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749 as_fn_arith $ac_count + 1 && ac_count=$as_val
4750 if test $ac_count -gt ${ac_path_SED_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_SED="$ac_path_SED"
4753 ac_path_SED_max=$ac_count
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761 $ac_path_SED_found && break 3
4766 if test -z "$ac_cv_path_SED"; then
4767 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4775 $as_echo "$ac_cv_path_SED" >&6; }
4776 SED="$ac_cv_path_SED"
4780 # If no AR variable was specified, look up the name of the archiver. Otherwise
4781 # do not touch the AR variable.
4782 if test "x$AR" = "x"; then
4783 for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4785 # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if ${ac_cv_path_AR+:} false; then :
4790 $as_echo_n "(cached) " >&6
4794 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 if test -n "$AR"; then
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4818 $as_echo "$AR" >&6; }
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 $as_echo "no" >&6; }
4825 test -n "$AR" && break
4827 test -n "$AR" || AR="ar"
4832 # Check for the compiler support
4833 if test "${GCC}" != "yes" ; then
4834 as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
4837 # figure out where perl lives
4838 # Extract the first word of "perl", so it can be a program name with args.
4839 set dummy perl; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_path_PERL+:} false; then :
4843 $as_echo_n "(cached) " >&6
4847 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 PERL=$ac_cv_path_PERL
4869 if test -n "$PERL"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4871 $as_echo "$PERL" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4879 # figure out where gdb lives
4880 # Extract the first word of "gdb", so it can be a program name with args.
4881 set dummy gdb; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_path_GDB+:} false; then :
4885 $as_echo_n "(cached) " >&6
4889 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4912 if test -n "$GDB"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4914 $as_echo "$GDB" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4922 cat >>confdefs.h <<_ACEOF
4923 #define GDB_PATH "$GDB"
4927 # some older automake's don't have it so try something on our own
4928 # By default we simply use the C compiler to build assembly code.
4930 test "${CCAS+set}" = set || CCAS=$CC
4931 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4935 depcc="$CCAS" am_compiler_list=
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4938 $as_echo_n "checking dependency style of $depcc... " >&6; }
4939 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4940 $as_echo_n "(cached) " >&6
4942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4943 # We make a subdir and do the tests there. Otherwise we can end up
4944 # making bogus files that we don't know about and never remove. For
4945 # instance it was reported that on HP-UX the gcc test will end up
4946 # making a dummy file named `D' -- because `-MD' means `put the output
4949 # Copy depcomp to subdir because otherwise we won't find it if we're
4950 # using a relative directory.
4951 cp "$am_depcomp" conftest.dir
4953 # We will build objects and dependencies in a subdirectory because
4954 # it helps to detect inapplicable dependency modes. For instance
4955 # both Tru64's cc and ICC support -MD to output dependencies as a
4956 # side effect of compilation, but ICC will put the dependencies in
4957 # the current directory while Tru64 will put them in the object
4961 am_cv_CCAS_dependencies_compiler_type=none
4962 if test "$am_compiler_list" = ""; then
4963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968 for depmode in $am_compiler_list; do
4969 # Setup a source with many dependencies, because some compilers
4970 # like to wrap large dependency lists on column 80 (with \), and
4971 # we should not choose a depcomp mode which is confused by this.
4973 # We need to recreate these files for each test, as the compiler may
4974 # overwrite some of them when testing with obscure command lines.
4975 # This happens at least with the AIX C compiler.
4977 for i in 1 2 3 4 5 6; do
4978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4979 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4980 # Solaris 8's {/usr,}/bin/sh.
4981 touch sub/conftst$i.h
4983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4985 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4986 # mode. It turns out that the SunPro C++ compiler does not properly
4987 # handle `-M -o', and we need to detect this. Also, some Intel
4988 # versions had trouble with output in subdirs
4989 am__obj=sub/conftest.${OBJEXT-o}
4990 am__minus_obj="-o $am__obj"
4993 # This depmode causes a compiler race in universal mode.
4994 test "$am__universal" = false || continue
4997 # after this tag, mechanisms are not by side-effect, so they'll
4998 # only be used when explicitly requested
4999 if test "x$enable_dependency_tracking" = xyes; then
5005 msvisualcpp | msvcmsys)
5006 # This compiler won't grok `-c -o', but also, the minuso test has
5007 # not run yet. These depmodes are late enough in the game, and
5008 # so weak that their functioning should not be impacted.
5009 am__obj=conftest.${OBJEXT-o}
5014 if depmode=$depmode \
5015 source=sub/conftest.c object=$am__obj \
5016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5017 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5018 >/dev/null 2>conftest.err &&
5019 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5020 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5021 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5022 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5023 # icc doesn't choke on unknown options, it will just issue warnings
5024 # or remarks (even with -Werror). So we grep stderr for any message
5025 # that says an option was ignored or not supported.
5026 # When given -MP, icc 7.0 and 7.1 complain thusly:
5027 # icc: Command line warning: ignoring option '-M'; no argument required
5028 # The diagnosis changed in icc 8.0:
5029 # icc: Command line remark: option '-MP' not supported
5030 if (grep 'ignoring option' conftest.err ||
5031 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5032 am_cv_CCAS_dependencies_compiler_type=$depmode
5041 am_cv_CCAS_dependencies_compiler_type=none
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5046 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5047 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5050 test "x$enable_dependency_tracking" != xno \
5051 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5052 am__fastdepCCAS_TRUE=
5053 am__fastdepCCAS_FALSE='#'
5055 am__fastdepCCAS_TRUE='#'
5056 am__fastdepCCAS_FALSE=
5062 # Check if 'diff' supports -u (universal diffs) and use it if possible.
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5065 $as_echo_n "checking for diff -u... " >&6; }
5068 # Comparing two identical files results in 0, unless -u isn't supported (as
5070 tmpfile="tmp-xxx-yyy-zzz"
5072 if diff -u $tmpfile $tmpfile ; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5074 $as_echo "yes" >&6; }
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5084 # We don't want gcc < 3.0
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5086 $as_echo_n "checking for a supported version of gcc... " >&6; }
5088 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5090 case "${gcc_version}" in
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5093 $as_echo "no (${gcc_version})" >&6; }
5094 as_fn_error $? "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5098 $as_echo "ok (${gcc_version})" >&6; }
5102 #----------------------------------------------------------------------------
5103 # Arch/OS/platform tests.
5104 #----------------------------------------------------------------------------
5105 # We create a number of arch/OS/platform-related variables. We prefix them
5106 # all with "VGCONF_" which indicates that they are defined at
5107 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5108 # variables used when compiling C files.
5110 # Make sure we can run config.sub.
5111 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5112 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5115 $as_echo_n "checking build system type... " >&6; }
5116 if ${ac_cv_build+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 ac_build_alias=$build_alias
5120 test "x$ac_build_alias" = x &&
5121 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5122 test "x$ac_build_alias" = x &&
5123 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5124 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5125 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5129 $as_echo "$ac_cv_build" >&6; }
5130 case $ac_cv_build in
5132 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5135 ac_save_IFS=$IFS; IFS='-'
5141 # Remember, the first character of IFS is used to create $*,
5142 # except with old shells:
5145 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5149 $as_echo_n "checking host system type... " >&6; }
5150 if ${ac_cv_host+:} false; then :
5151 $as_echo_n "(cached) " >&6
5153 if test "x$host_alias" = x; then
5154 ac_cv_host=$ac_cv_build
5156 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5157 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5162 $as_echo "$ac_cv_host" >&6; }
5165 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5168 ac_save_IFS=$IFS; IFS='-'
5174 # Remember, the first character of IFS is used to create $*,
5175 # except with old shells:
5178 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5183 $as_echo_n "checking for a supported CPU... " >&6; }
5185 # ARCH_MAX reflects the most that this CPU can do: for example if it
5186 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5187 # Ditto for amd64. It is used for more configuration below, but is not used
5188 # outside this file.
5189 case "${host_cpu}" in
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5192 $as_echo "ok (${host_cpu})" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5198 $as_echo "ok (${host_cpu})" >&6; }
5203 # This value can only happen on Linux, not on AIX
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5205 $as_echo "ok (${host_cpu})" >&6; }
5210 # Complexity. 'powerpc' on AIX implies a 64-bit capable CPU.
5211 # Whereas in Linux that means only a 32-bit capable CPU.
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5213 $as_echo "ok (${host_cpu})" >&6; }
5214 case "${host_os}" in
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5226 $as_echo "ok (${host_cpu})" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5232 $as_echo "ok (${host_cpu})" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5238 $as_echo "no (${host_cpu})" >&6; }
5239 as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
5243 #----------------------------------------------------------------------------
5245 # Sometimes it's convenient to subvert the bi-arch build system and
5246 # just have a single build even though the underlying platform is
5247 # capable of both. Hence handle --enable-only64bit and
5248 # --enable-only32bit. Complain if both are issued :-)
5249 # [Actually, if either of these options are used, I think both get built,
5250 # but only one gets installed. So if you use an in-place build, both can be
5253 # Check if a 64-bit only build has been requested
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5255 $as_echo_n "checking for a 64-bit only build... " >&6; }
5256 if ${vg_cv_only64bit+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 # Check whether --enable-only64bit was given.
5260 if test "${enable_only64bit+set}" = set; then :
5261 enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5268 $as_echo "$vg_cv_only64bit" >&6; }
5270 # Check if a 32-bit only build has been requested
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5272 $as_echo_n "checking for a 32-bit only build... " >&6; }
5273 if ${vg_cv_only32bit+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 # Check whether --enable-only32bit was given.
5277 if test "${enable_only32bit+set}" = set; then :
5278 enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5285 $as_echo "$vg_cv_only32bit" >&6; }
5288 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5289 as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5292 #----------------------------------------------------------------------------
5294 # VGCONF_OS is the primary build OS, eg. "linux". It is passed in to
5295 # compilation of many C files via -VGO_$(VGCONF_OS) and
5296 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5298 $as_echo_n "checking for a supported OS... " >&6; }
5304 case "${host_os}" in
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5307 $as_echo "ok (${host_os})" >&6; }
5310 # Ok, this is linux. Check the kernel version
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5312 $as_echo_n "checking for the kernel version... " >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5319 $as_echo "2.6 family (${kernel})" >&6; }
5321 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5327 $as_echo "2.4 family (${kernel})" >&6; }
5329 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5335 $as_echo "unsupported (${kernel})" >&6; }
5336 as_fn_error $? "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5344 $as_echo "ok (${host_os})" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5349 $as_echo "ok (${host_os})" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5354 $as_echo "ok (${host_os})" >&6; }
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5360 $as_echo "ok (${host_os})" >&6; }
5362 DEFAULT_SUPP="pthread_l4re.supp"
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5367 $as_echo "ok (${host_os})" >&6; }
5370 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5373 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5376 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5380 $as_echo_n "checking for the kernel version... " >&6; }
5383 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin
5384 # has only one relevant version, the OS version. The `uname` check
5385 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5386 # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5387 # and we don't know of an macros similar to __GLIBC__ to get that info.
5389 # XXX: `uname -r` won't do the right thing for cross-compiles, but
5390 # that's not a problem yet.
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5394 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5396 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5398 DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5399 DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5403 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5405 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5407 DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5408 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5412 $as_echo "unsupported (${kernel})" >&6; }
5413 as_fn_error $? "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5420 $as_echo "no (${host_os})" >&6; }
5421 as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
5425 #----------------------------------------------------------------------------
5427 # If we are building on a 64 bit platform test to see if the system
5428 # supports building 32 bit programs and disable 32 bit support if it
5429 # does not support building 32 bit programs
5431 case "$ARCH_MAX-$VGCONF_OS" in
5432 amd64-linux|ppc64-linux)
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5434 $as_echo_n "checking for 32 bit build support... " >&6; }
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5451 if ac_fn_c_try_link "$LINENO"; then :
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454 $as_echo "yes" >&6; }
5458 vg_cv_only64bit="yes"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5463 rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
5465 CFLAGS=$safe_CFLAGS;;
5468 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5469 as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5472 #----------------------------------------------------------------------------
5474 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By
5475 # default it's the same as ARCH_MAX. But if, say, we do a build on an amd64
5476 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5477 # above) will be "amd64" since that reflects the most that this cpu can do,
5478 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5479 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is
5480 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5481 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5484 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5485 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5486 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5487 # It is empty if there is no secondary target.
5490 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5491 # The entire system, including regression and performance tests, will be
5492 # built for this target. The "_CAPS" indicates that the name is in capital
5493 # letters, and it also uses '_' rather than '-' as a separator, because it's
5494 # used to create various Makefile variables, which are all in caps by
5495 # convention and cannot contain '-' characters. This is in contrast to
5496 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5499 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5500 # Valgrind and tools will also be built for this target, but not the
5501 # regression or performance tests.
5503 # By default, the primary arch is the same as the "max" arch, as commented
5504 # above (at the definition of ARCH_MAX). We may choose to downgrade it in
5505 # the big case statement just below here, in the case where we're building
5506 # on a 64 bit machine but have been requested only to do a 32 bit build.
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5510 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5512 # NB. The load address for a given platform may be specified in more
5513 # than one place, in some cases, depending on whether we're doing a biarch,
5514 # 32-bit only or 64-bit only build. eg see case for amd64-linux below.
5515 # Be careful to give consistent values in all subcases. Also, all four
5516 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5517 # even if it is to "0xUNSET".
5519 case "$ARCH_MAX-$VGCONF_OS" in
5521 VGCONF_ARCH_PRI="x86"
5523 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5524 VGCONF_PLATFORM_SEC_CAPS=""
5525 valt_load_address_pri_norml="0x38000000"
5526 valt_load_address_pri_inner="0x28000000"
5527 valt_load_address_sec_norml="0xUNSET"
5528 valt_load_address_sec_inner="0xUNSET"
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5530 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5533 valt_load_address_sec_norml="0xUNSET"
5534 valt_load_address_sec_inner="0xUNSET"
5535 if test x$vg_cv_only64bit = xyes; then
5536 VGCONF_ARCH_PRI="amd64"
5538 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5539 VGCONF_PLATFORM_SEC_CAPS=""
5540 valt_load_address_pri_norml="0x38000000"
5541 valt_load_address_pri_inner="0x28000000"
5542 elif test x$vg_cv_only32bit = xyes; then
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"
5550 VGCONF_ARCH_PRI="amd64"
5551 VGCONF_ARCH_SEC="x86"
5552 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5553 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5554 valt_load_address_pri_norml="0x38000000"
5555 valt_load_address_pri_inner="0x28000000"
5556 valt_load_address_sec_norml="0x38000000"
5557 valt_load_address_sec_inner="0x28000000"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5560 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5563 VGCONF_ARCH_PRI="ppc32"
5565 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5566 VGCONF_PLATFORM_SEC_CAPS=""
5567 valt_load_address_pri_norml="0x38000000"
5568 valt_load_address_pri_inner="0x28000000"
5569 valt_load_address_sec_norml="0xUNSET"
5570 valt_load_address_sec_inner="0xUNSET"
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5572 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5575 valt_load_address_pri_norml="0xUNSET"
5576 valt_load_address_pri_inner="0xUNSET"
5577 valt_load_address_sec_norml="0xUNSET"
5578 valt_load_address_sec_inner="0xUNSET"
5579 if test x$vg_cv_only64bit = xyes; then
5580 VGCONF_ARCH_PRI="ppc64"
5582 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5583 VGCONF_PLATFORM_SEC_CAPS=""
5584 elif test x$vg_cv_only32bit = xyes; then
5585 VGCONF_ARCH_PRI="ppc32"
5587 VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5588 VGCONF_PLATFORM_SEC_CAPS=""
5590 VGCONF_ARCH_PRI="ppc64"
5591 VGCONF_ARCH_SEC="ppc32"
5592 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5593 VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5596 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
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_LINUX"
5605 VGCONF_PLATFORM_SEC_CAPS=""
5606 valt_load_address_pri_norml="0x38000000"
5607 valt_load_address_pri_inner="0x28000000"
5608 elif test x$vg_cv_only32bit = xyes; then
5609 VGCONF_ARCH_PRI="ppc32"
5611 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5612 VGCONF_PLATFORM_SEC_CAPS=""
5613 valt_load_address_pri_norml="0x38000000"
5614 valt_load_address_pri_inner="0x28000000"
5616 VGCONF_ARCH_PRI="ppc64"
5617 VGCONF_ARCH_SEC="ppc32"
5618 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5619 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5620 valt_load_address_pri_norml="0x38000000"
5621 valt_load_address_pri_inner="0x28000000"
5622 valt_load_address_sec_norml="0x38000000"
5623 valt_load_address_sec_inner="0x28000000"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5626 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5629 VGCONF_ARCH_PRI="x86"
5631 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5632 VGCONF_PLATFORM_SEC_CAPS=""
5633 valt_load_address_pri_norml="0x38000000"
5634 valt_load_address_pri_inner="0x28000000"
5635 valt_load_address_sec_norml="0x38000000"
5636 valt_load_address_sec_inner="0x28000000"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5638 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5640 # Darwin gets identified as 32-bit even when it supports 64-bit.
5641 # (Not sure why, possibly because 'uname' returns "i386"?) Just about
5642 # all Macs support both 32-bit and 64-bit, so we just build both. If
5643 # someone has a really old 32-bit only machine they can (hopefully?)
5644 # build with --enable-only32bit. See bug 243362.
5645 x86-darwin|amd64-darwin)
5647 valt_load_address_sec_norml="0xUNSET"
5648 valt_load_address_sec_inner="0xUNSET"
5649 if test x$vg_cv_only64bit = xyes; then
5650 VGCONF_ARCH_PRI="amd64"
5652 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5653 VGCONF_PLATFORM_SEC_CAPS=""
5654 valt_load_address_pri_norml="0x138000000"
5655 valt_load_address_pri_inner="0x128000000"
5656 elif test x$vg_cv_only32bit = xyes; then
5657 VGCONF_ARCH_PRI="x86"
5659 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5660 VGCONF_PLATFORM_SEC_CAPS=""
5661 VGCONF_ARCH_PRI_CAPS="x86"
5662 valt_load_address_pri_norml="0x38000000"
5663 valt_load_address_pri_inner="0x28000000"
5665 VGCONF_ARCH_PRI="amd64"
5666 VGCONF_ARCH_SEC="x86"
5667 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5668 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5669 valt_load_address_pri_norml="0x138000000"
5670 valt_load_address_pri_inner="0x128000000"
5671 valt_load_address_sec_norml="0x38000000"
5672 valt_load_address_sec_inner="0x28000000"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5675 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5678 VGCONF_ARCH_PRI="arm"
5679 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5680 VGCONF_PLATFORM_SEC_CAPS=""
5681 valt_load_address_pri_norml="0x38000000"
5682 valt_load_address_pri_inner="0x28000000"
5683 valt_load_address_sec_norml="0xUNSET"
5684 valt_load_address_sec_inner="0xUNSET"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5686 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5689 VGCONF_ARCH_PRI="s390x"
5691 VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX"
5692 VGCONF_PLATFORM_SEC_CAPS=""
5693 # we want to have the generated code close to the dispatcher
5694 valt_load_address_pri_norml="0x401000000"
5695 valt_load_address_pri_inner="0x410000000"
5696 valt_load_address_sec_norml="0xUNSET"
5697 valt_load_address_sec_inner="0xUNSET"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5699 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5702 VGCONF_ARCH_PRI="unknown"
5703 VGCONF_ARCH_SEC="unknown"
5704 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5705 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5706 valt_load_address_pri_norml="0xUNSET"
5707 valt_load_address_pri_inner="0xUNSET"
5708 valt_load_address_sec_norml="0xUNSET"
5709 valt_load_address_sec_inner="0xUNSET"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5711 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5712 as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5716 #----------------------------------------------------------------------------
5718 # Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become
5720 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5721 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5722 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5723 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5724 VGCONF_ARCHS_INCLUDE_X86_TRUE=
5725 VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5727 VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5728 VGCONF_ARCHS_INCLUDE_X86_FALSE=
5731 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5732 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5733 VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5734 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5736 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5737 VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5740 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5741 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5742 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5743 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5744 VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5745 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5747 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5748 VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5751 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5752 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5753 VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5754 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5756 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5757 VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5760 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5761 VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5762 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5764 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5765 VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5768 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
5769 VGCONF_ARCHS_INCLUDE_S390X_TRUE=
5770 VGCONF_ARCHS_INCLUDE_S390X_FALSE='#'
5772 VGCONF_ARCHS_INCLUDE_S390X_TRUE='#'
5773 VGCONF_ARCHS_INCLUDE_S390X_FALSE=
5777 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these
5779 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5780 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5781 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5782 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5784 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5785 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5788 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5789 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5790 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5792 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5793 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5796 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5797 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5798 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5799 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5801 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5802 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5805 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5806 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5807 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5809 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5810 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5813 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5814 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5815 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5817 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5818 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5821 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
5822 -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then
5823 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE=
5824 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#'
5826 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#'
5827 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE=
5831 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5832 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5833 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5834 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5836 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5837 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5840 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5841 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5842 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5844 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5845 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5849 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5850 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5851 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5852 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5854 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5855 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5858 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5859 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5860 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5862 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5863 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5866 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5867 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5868 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5870 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5871 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5876 # Similarly, set up VGCONF_OS_IS_<os>. Exactly one of these becomes defined.
5877 # Relies on the assumption that the primary and secondary targets are
5878 # for the same OS, so therefore only necessary to test the primary.
5879 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5880 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5881 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5882 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5883 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
5884 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX; then
5885 VGCONF_OS_IS_LINUX_TRUE=
5886 VGCONF_OS_IS_LINUX_FALSE='#'
5888 VGCONF_OS_IS_LINUX_TRUE='#'
5889 VGCONF_OS_IS_LINUX_FALSE=
5892 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5893 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5894 VGCONF_OS_IS_AIX5_TRUE=
5895 VGCONF_OS_IS_AIX5_FALSE='#'
5897 VGCONF_OS_IS_AIX5_TRUE='#'
5898 VGCONF_OS_IS_AIX5_FALSE=
5901 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5902 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5903 VGCONF_OS_IS_DARWIN_TRUE=
5904 VGCONF_OS_IS_DARWIN_FALSE='#'
5906 VGCONF_OS_IS_DARWIN_TRUE='#'
5907 VGCONF_OS_IS_DARWIN_FALSE=
5910 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5911 VGCONF_OS_IS_L4RE_TRUE=
5912 VGCONF_OS_IS_L4RE_FALSE='#'
5914 VGCONF_OS_IS_L4RE_TRUE='#'
5915 VGCONF_OS_IS_L4RE_FALSE=
5920 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5921 # there is a secondary target.
5922 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5923 VGCONF_HAVE_PLATFORM_SEC_TRUE=
5924 VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5926 VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5927 VGCONF_HAVE_PLATFORM_SEC_FALSE=
5932 #----------------------------------------------------------------------------
5934 #----------------------------------------------------------------------------
5936 # Check if this should be built as an inner Valgrind, to be run within
5937 # another Valgrind. Choose the load address accordingly.
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5941 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5942 if ${vg_cv_inner+:} false; then :
5943 $as_echo_n "(cached) " >&6
5945 # Check whether --enable-inner was given.
5946 if test "${enable_inner+set}" = set; then :
5947 enableval=$enable_inner; vg_cv_inner=$enableval
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5954 $as_echo "$vg_cv_inner" >&6; }
5955 if test "$vg_cv_inner" = yes; then
5957 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5959 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5960 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5962 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5963 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5967 #----------------------------------------------------------------------------
5968 # Libc and suppressions
5969 #----------------------------------------------------------------------------
5970 # This variable will collect the suppression files to be used.
5972 # This variable holds generated suppression files (such as the one used for
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5979 if ${ac_cv_path_GREP+:} false; then :
5980 $as_echo_n "(cached) " >&6
5982 if test -z "$GREP"; then
5983 ac_path_GREP_found=false
5984 # Loop through the user's path and test for each of PROGNAME-LIST
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5989 test -z "$as_dir" && as_dir=.
5990 for ac_prog in grep ggrep; do
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5994 # Check for GNU ac_path_GREP and select it if it is found.
5995 # Check for GNU $ac_path_GREP
5996 case `"$ac_path_GREP" --version 2>&1` in
5998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6001 $as_echo_n 0123456789 >"conftest.in"
6004 cat "conftest.in" "conftest.in" >"conftest.tmp"
6005 mv "conftest.tmp" "conftest.in"
6006 cp "conftest.in" "conftest.nl"
6007 $as_echo 'GREP' >> "conftest.nl"
6008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6010 as_fn_arith $ac_count + 1 && ac_count=$as_val
6011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6012 # Best one so far, save it but keep looking for a better one
6013 ac_cv_path_GREP="$ac_path_GREP"
6014 ac_path_GREP_max=$ac_count
6016 # 10*(2^10) chars as input seems more than enough
6017 test $ac_count -gt 10 && break
6019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6022 $ac_path_GREP_found && break 3
6027 if test -z "$ac_cv_path_GREP"; then
6028 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6031 ac_cv_path_GREP=$GREP
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6036 $as_echo "$ac_cv_path_GREP" >&6; }
6037 GREP="$ac_cv_path_GREP"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6041 $as_echo_n "checking for egrep... " >&6; }
6042 if ${ac_cv_path_EGREP+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6046 then ac_cv_path_EGREP="$GREP -E"
6048 if test -z "$EGREP"; then
6049 ac_path_EGREP_found=false
6050 # Loop through the user's path and test for each of PROGNAME-LIST
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6055 test -z "$as_dir" && as_dir=.
6056 for ac_prog in egrep; do
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6060 # Check for GNU ac_path_EGREP and select it if it is found.
6061 # Check for GNU $ac_path_EGREP
6062 case `"$ac_path_EGREP" --version 2>&1` in
6064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6067 $as_echo_n 0123456789 >"conftest.in"
6070 cat "conftest.in" "conftest.in" >"conftest.tmp"
6071 mv "conftest.tmp" "conftest.in"
6072 cp "conftest.in" "conftest.nl"
6073 $as_echo 'EGREP' >> "conftest.nl"
6074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6076 as_fn_arith $ac_count + 1 && ac_count=$as_val
6077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6078 # Best one so far, save it but keep looking for a better one
6079 ac_cv_path_EGREP="$ac_path_EGREP"
6080 ac_path_EGREP_max=$ac_count
6082 # 10*(2^10) chars as input seems more than enough
6083 test $ac_count -gt 10 && break
6085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6088 $ac_path_EGREP_found && break 3
6093 if test -z "$ac_cv_path_EGREP"; then
6094 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6097 ac_cv_path_EGREP=$EGREP
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6103 $as_echo "$ac_cv_path_EGREP" >&6; }
6104 EGREP="$ac_cv_path_EGREP"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6108 $as_echo_n "checking for ANSI C header files... " >&6; }
6109 if ${ac_cv_header_stdc+:} false; then :
6110 $as_echo_n "(cached) " >&6
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6127 if ac_fn_c_try_compile "$LINENO"; then :
6128 ac_cv_header_stdc=yes
6130 ac_cv_header_stdc=no
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 if test $ac_cv_header_stdc = yes; then
6135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6142 $EGREP "memchr" >/dev/null 2>&1; then :
6145 ac_cv_header_stdc=no
6151 if test $ac_cv_header_stdc = yes; then
6152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159 $EGREP "free" >/dev/null 2>&1; then :
6162 ac_cv_header_stdc=no
6168 if test $ac_cv_header_stdc = yes; then
6169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6170 if test "$cross_compiling" = yes; then :
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6177 #if ((' ' & 0x0FF) == 0x020)
6178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6181 # define ISLOWER(c) \
6182 (('a' <= (c) && (c) <= 'i') \
6183 || ('j' <= (c) && (c) <= 'r') \
6184 || ('s' <= (c) && (c) <= 'z'))
6185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6193 for (i = 0; i < 256; i++)
6194 if (XOR (islower (i), ISLOWER (i))
6195 || toupper (i) != TOUPPER (i))
6200 if ac_fn_c_try_run "$LINENO"; then :
6203 ac_cv_header_stdc=no
6205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6206 conftest.$ac_objext conftest.beam conftest.$ac_ext
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6212 $as_echo "$ac_cv_header_stdc" >&6; }
6213 if test $ac_cv_header_stdc = yes; then
6215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6221 inttypes.h stdint.h unistd.h
6223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6227 cat >>confdefs.h <<_ACEOF
6228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6236 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6237 if test "x$ac_cv_header_features_h" = xyes; then :
6243 if test x$ac_cv_header_features_h = xyes; then
6244 rm -f conftest.$ac_ext
6245 cat <<_ACEOF >conftest.$ac_ext
6246 #include <features.h>
6247 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6248 glibc version is: __GLIBC__ __GLIBC_MINOR__
6251 GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6257 #include <standards.h>
6258 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6265 GLIBC_VERSION="aix5"
6270 # not really a version check
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6274 #include <sys/cdefs.h>
6275 #if defined(__DARWIN_VERS_1050)
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6282 GLIBC_VERSION="darwin"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6288 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6290 case "${GLIBC_VERSION}" in
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6293 $as_echo "2.2 family" >&6; }
6295 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6297 DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6298 DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6299 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6304 $as_echo "2.3 family" >&6; }
6306 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6308 DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6309 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6310 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6315 $as_echo "2.4 family" >&6; }
6317 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6319 DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6320 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6321 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6326 $as_echo "2.5 family" >&6; }
6328 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6330 DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6331 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6332 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6336 $as_echo "2.6 family" >&6; }
6338 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6340 DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6341 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6342 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6346 $as_echo "2.7 family" >&6; }
6348 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6350 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6351 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6352 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6356 $as_echo "2.8 family" >&6; }
6358 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6360 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6361 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6362 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6366 $as_echo "2.9 family" >&6; }
6368 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6370 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6371 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6372 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6376 $as_echo "2.10 family" >&6; }
6378 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6380 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6381 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6382 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6386 $as_echo "2.11 family" >&6; }
6388 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6390 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6391 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6392 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6396 $as_echo "2.12 family" >&6; }
6398 $as_echo "#define GLIBC_2_12 1" >>confdefs.h
6400 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6401 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6402 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.13 family" >&5
6406 $as_echo "2.13 family" >&6; }
6408 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6410 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6411 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6412 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.13 family" >&5
6416 $as_echo "2.13 family" >&6; }
6418 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6420 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6421 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6422 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6426 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6428 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6430 DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6434 $as_echo "Darwin" >&6; }
6436 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6438 # DEFAULT_SUPP set by kernel version check above.
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6443 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6444 as_fn_error $? "Valgrind requires glibc version 2.2 - 2.13" "$LINENO" 5
6445 as_fn_error $? "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6446 as_fn_error $? "or Darwin libc" "$LINENO" 5
6453 # Add default suppressions for the X client libraries. Make no
6454 # attempt to detect whether such libraries are installed on the
6455 # build machine (or even if any X facilities are present); just
6456 # add the suppressions antidisirregardless.
6457 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6458 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6460 # Add glibc and X11 suppressions for exp-sgcheck
6461 DEFAULT_SUPP="exp-sgcheck.supp ${DEFAULT_SUPP}"
6464 #----------------------------------------------------------------------------
6465 # Checking for various library functions and other definitions
6466 #----------------------------------------------------------------------------
6468 # Check for CLOCK_MONOTONIC
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6471 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6483 clock_gettime(CLOCK_MONOTONIC, &t);
6490 if ac_fn_c_try_compile "$LINENO"; then :
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6493 $as_echo "yes" >&6; }
6495 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6510 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6516 #include <pthread.h>
6522 return (PTHREAD_MUTEX_ADAPTIVE_NP);
6528 if ac_fn_c_try_compile "$LINENO"; then :
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6531 $as_echo "yes" >&6; }
6533 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6548 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6554 #include <pthread.h>
6560 return (PTHREAD_MUTEX_ERRORCHECK_NP);
6566 if ac_fn_c_try_compile "$LINENO"; then :
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6569 $as_echo "yes" >&6; }
6571 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6586 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6592 #include <pthread.h>
6598 return (PTHREAD_MUTEX_RECURSIVE_NP);
6604 if ac_fn_c_try_compile "$LINENO"; then :
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6607 $as_echo "yes" >&6; }
6609 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6624 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6630 #include <pthread.h>
6636 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_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_RECURSIVE_MUTEX_INITIALIZER_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 whether pthread_mutex_t has a member called __m_kind.
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6663 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6668 #include <pthread.h>
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_T__M_KIND 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 whether pthread_mutex_t has a member called __data.__kind.
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6701 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6706 #include <pthread.h>
6713 return m.__data.__kind;
6719 if ac_fn_c_try_compile "$LINENO"; then :
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6722 $as_echo "yes" >&6; }
6724 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 # does this compiler support -maltivec and does it have the include file
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6740 $as_echo_n "checking for Altivec... " >&6; }
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 #include <altivec.h>
6754 vector unsigned int v;
6760 if ac_fn_c_try_compile "$LINENO"; then :
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6764 $as_echo "yes" >&6; }
6766 $as_echo "#define HAS_ALTIVEC 1" >>confdefs.h
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 if test x$ac_have_altivec = xyes; then
6781 HAS_ALTIVEC_FALSE='#'
6783 HAS_ALTIVEC_TRUE='#'
6789 # Check that both: the compiler supports -mvsx and that the assembler
6790 # understands VSX instructions. If either of those doesn't work,
6791 # conclude that we can't do VSX. NOTE: basically this is a kludge
6792 # in that it conflates two things that should be separate -- whether
6793 # the compiler understands the flag vs whether the assembler
6794 # understands the opcodes. This really ought to be cleaned up
6795 # and done properly, like it is for x86/x86_64.
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX" >&5
6798 $as_echo_n "checking for VSX... " >&6; }
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6806 #include <altivec.h>
6812 vector unsigned int v;
6813 __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc");
6819 if ac_fn_c_try_compile "$LINENO"; then :
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6823 $as_echo "yes" >&6; }
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 if test x$ac_have_vsx = xyes; then
6845 # Check for pthread_create@GLIBC2.0
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6847 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6854 extern int pthread_create_glibc_2_0(void*, const void*,
6855 void *(*)(void*), void*);
6856 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6864 * Apparently on PowerPC linking this program succeeds and generates an
6865 * executable with the undefined symbol pthread_create@GLIBC_2.0.
6867 #error This test does not work properly on PowerPC.
6869 pthread_create_glibc_2_0(0, 0, 0, 0);
6877 if ac_fn_c_try_link "$LINENO"; then :
6879 ac_have_pthread_create_glibc_2_0=yes
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6881 $as_echo "yes" >&6; }
6883 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6888 ac_have_pthread_create_glibc_2_0=no
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6897 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6898 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6899 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6901 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6902 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6907 # Check for eventfd_t, eventfd() and eventfd_read()
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6909 $as_echo_n "checking for eventfd()... " >&6; }
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6914 #include <sys/eventfd.h>
6924 eventfd_read(fd, &ev);
6931 if ac_fn_c_try_link "$LINENO"; then :
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6934 $as_echo "yes" >&6; }
6936 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
6939 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6952 #----------------------------------------------------------------------------
6953 # Checking for supported compiler flags.
6954 #----------------------------------------------------------------------------
6956 # does this compiler support -m32 ?
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
6958 $as_echo_n "checking if gcc accepts -m32... " >&6; }
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6976 if ac_fn_c_try_compile "$LINENO"; then :
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6980 $as_echo "yes" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 # does this compiler support -maix32 ?
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
6997 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7015 if ac_fn_c_try_compile "$LINENO"; then :
7017 FLAG_MAIX32="-maix32"
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7019 $as_echo "yes" >&6; }
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 # does this compiler support -m64 ?
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
7036 $as_echo_n "checking if gcc accepts -m64... " >&6; }
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7054 if ac_fn_c_try_compile "$LINENO"; then :
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7058 $as_echo "yes" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 # does this compiler support -maix64 ?
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
7075 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7093 if ac_fn_c_try_compile "$LINENO"; then :
7095 FLAG_MAIX64="-maix64"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7097 $as_echo "yes" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112 # does this compiler support -mmmx ?
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
7114 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7132 if ac_fn_c_try_compile "$LINENO"; then :
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7136 $as_echo "yes" >&6; }
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 # does this compiler support -msse ?
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7153 $as_echo_n "checking if gcc accepts -msse... " >&6; }
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7171 if ac_fn_c_try_compile "$LINENO"; then :
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 $as_echo "yes" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 # does this compiler support -mpreferred-stack-boundary=2 ?
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7192 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7195 CFLAGS="-mpreferred-stack-boundary=2"
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7210 if ac_fn_c_try_compile "$LINENO"; then :
7212 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7214 $as_echo "yes" >&6; }
7218 PREFERRED_STACK_BOUNDARY=""
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 # does this compiler support -Wno-pointer-sign ?
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7231 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7234 CFLAGS="-Wno-pointer-sign"
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7249 if ac_fn_c_try_compile "$LINENO"; then :
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7253 $as_echo "yes" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 if test x$no_pointer_sign = xyes; then
7266 CFLAGS="$CFLAGS -Wno-pointer-sign"
7270 # does this compiler support -Wno-empty-body ?
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7273 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7276 CFLAGS="-Wno-empty-body"
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7291 if ac_fn_c_try_compile "$LINENO"; then :
7293 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7296 $as_echo "yes" >&6; }
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 # does this compiler support -Wno-format-zero-length ?
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7312 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7315 CFLAGS="-Wno-format-zero-length"
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7330 if ac_fn_c_try_compile "$LINENO"; then :
7332 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7335 $as_echo "yes" >&6; }
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 # does this compiler support -Wno-nonnull ?
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-nonnull" >&5
7351 $as_echo_n "checking if gcc accepts -Wno-nonnull... " >&6; }
7354 CFLAGS="-Wno-nonnull"
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7369 if ac_fn_c_try_compile "$LINENO"; then :
7371 FLAG_W_NO_NONNULL=-Wno-nonnull
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7374 $as_echo "yes" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 # does this compiler support -Wno-overflow ?
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-overflow" >&5
7390 $as_echo_n "checking if gcc accepts -Wno-overflow... " >&6; }
7393 CFLAGS="-Wno-overflow"
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7408 if ac_fn_c_try_compile "$LINENO"; then :
7410 FLAG_W_NO_OVERFLOW=-Wno-overflow
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7413 $as_echo "yes" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 # does this compiler support -Wno-uninitialized ?
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7429 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7432 CFLAGS="-Wno-uninitialized"
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7447 if ac_fn_c_try_compile "$LINENO"; then :
7449 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7452 $as_echo "yes" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 # does this compiler support -Wextra or the older -W ?
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7468 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7486 if ac_fn_c_try_compile "$LINENO"; then :
7488 FLAG_W_EXTRA=-Wextra
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7491 $as_echo "-Wextra" >&6; }
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7509 if ac_fn_c_try_compile "$LINENO"; then :
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7514 $as_echo "-W" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7520 $as_echo "not supported" >&6; }
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 # does this compiler support -fno-stack-protector ?
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7532 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7535 CFLAGS="-fno-stack-protector"
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7550 if ac_fn_c_try_compile "$LINENO"; then :
7552 no_stack_protector=yes
7553 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7555 $as_echo "yes" >&6; }
7559 no_stack_protector=no
7560 FLAG_FNO_STACK_PROTECTOR=""
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 if test x$no_stack_protector = xyes; then
7571 CFLAGS="$CFLAGS -fno-stack-protector"
7575 # does this compiler support --param inline-unit-growth=... ?
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7578 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7581 CFLAGS="--param inline-unit-growth=900"
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7596 if ac_fn_c_try_compile "$LINENO"; then :
7598 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601 $as_echo "yes" >&6; }
7605 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 # does the linker support -Wl,--build-id=none ? Note, it's
7616 # important that we test indirectly via whichever C compiler
7617 # is selected, rather than testing /usr/bin/ld or whatever
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7621 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7624 CFLAGS="-Wl,--build-id=none"
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7637 if ac_fn_c_try_link "$LINENO"; then :
7639 FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7642 $as_echo "yes" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7652 rm -f core conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7657 # does the ppc assembler support "mtocrf" et al?
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7659 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7668 __asm__ __volatile__("mtocrf 4,0");
7669 __asm__ __volatile__("mfocrf 0,4");
7675 if ac_fn_c_try_compile "$LINENO"; then :
7677 ac_have_as_ppc_mftocrf=yes
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679 $as_echo "yes" >&6; }
7683 ac_have_as_ppc_mftocrf=no
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
7689 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7691 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7698 # does the x86/amd64 assembler understand SSE3 instructions?
7699 # Note, this doesn't generate a C-level symbol. It generates a
7700 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7702 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7711 do { long long int x;
7712 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7719 if ac_fn_c_try_compile "$LINENO"; then :
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7723 $as_echo "yes" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 if test x$ac_have_as_sse3 = xyes; then
7735 BUILD_SSE3_TESTS_TRUE=
7736 BUILD_SSE3_TESTS_FALSE='#'
7738 BUILD_SSE3_TESTS_TRUE='#'
7739 BUILD_SSE3_TESTS_FALSE=
7744 # Ditto for SSSE3 instructions (note extra S)
7745 # Note, this doesn't generate a C-level symbol. It generates a
7746 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7748 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7757 do { long long int x;
7758 __asm__ __volatile__(
7759 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7766 if ac_fn_c_try_compile "$LINENO"; then :
7768 ac_have_as_ssse3=yes
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7770 $as_echo "yes" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 if test x$ac_have_as_ssse3 = xyes; then
7782 BUILD_SSSE3_TESTS_TRUE=
7783 BUILD_SSSE3_TESTS_FALSE='#'
7785 BUILD_SSSE3_TESTS_TRUE='#'
7786 BUILD_SSSE3_TESTS_FALSE=
7791 # does the x86/amd64 assembler understand the PCLMULQDQ instruction?
7792 # Note, this doesn't generate a C-level symbol. It generates a
7793 # automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
7795 $as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7804 __asm__ __volatile__(
7805 "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
7812 if ac_fn_c_try_compile "$LINENO"; then :
7814 ac_have_as_pclmulqdq=yes
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7816 $as_echo "yes" >&6; }
7820 ac_have_as_pclmulqdq=no
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 if test x$ac_have_as_pclmulqdq = xyes; then
7828 BUILD_PCLMULQDQ_TESTS_TRUE=
7829 BUILD_PCLMULQDQ_TESTS_FALSE='#'
7831 BUILD_PCLMULQDQ_TESTS_TRUE='#'
7832 BUILD_PCLMULQDQ_TESTS_FALSE=
7837 # does the x86/amd64 assembler understand the LZCNT instruction?
7838 # Note, this doesn't generate a C-level symbol. It generates a
7839 # automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
7841 $as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7851 __asm__ __volatile__("lzcnt %rax,%rax");
7858 if ac_fn_c_try_compile "$LINENO"; then :
7860 ac_have_as_lzcnt=yes
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7862 $as_echo "yes" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 if test x$ac_have_as_lzcnt = xyes; then
7874 BUILD_LZCNT_TESTS_TRUE=
7875 BUILD_LZCNT_TESTS_FALSE='#'
7877 BUILD_LZCNT_TESTS_TRUE='#'
7878 BUILD_LZCNT_TESTS_FALSE=
7883 # does the x86/amd64 assembler understand SSE 4.2 instructions?
7884 # Note, this doesn't generate a C-level symbol. It generates a
7885 # automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5
7887 $as_echo_n "checking if x86/amd64 assembler speaks SSE4.2... " >&6; }
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7896 do { long long int x;
7897 __asm__ __volatile__(
7898 "crc32q %%r15,%%r15" : : : "r15" ); }
7905 if ac_fn_c_try_compile "$LINENO"; then :
7907 ac_have_as_sse42=yes
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909 $as_echo "yes" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 if test x$ac_have_as_sse42 = xyes; then
7921 BUILD_SSE42_TESTS_TRUE=
7922 BUILD_SSE42_TESTS_FALSE='#'
7924 BUILD_SSE42_TESTS_TRUE='#'
7925 BUILD_SSE42_TESTS_FALSE=
7930 # XXX JRS 2010 Oct 13: what is this for? For sure, we don't need this
7931 # when building the tool executables. I think we should get rid of it.
7933 # Check for TLS support in the compiler and linker
7934 if test "x${cross_compiling}" = "xno"; then
7935 # Native compilation: check whether running a program using TLS succeeds.
7936 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
7937 # succeeds but running programs using TLS fails.
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7939 $as_echo_n "checking for TLS support... " >&6; }
7940 if ${vg_cv_tls+:} false; then :
7941 $as_echo_n "(cached) " >&6
7943 # Check whether --enable-tls was given.
7944 if test "${enable_tls+set}" = set; then :
7945 enableval=$enable_tls; vg_cv_tls=$enableval
7947 if test "$cross_compiling" = yes; then :
7948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7950 as_fn_error $? "cannot run test program while cross compiling
7951 See \`config.log' for more details" "$LINENO" 5; }
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 static __thread int foo;
7964 if ac_fn_c_try_run "$LINENO"; then :
7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7970 conftest.$ac_objext conftest.beam conftest.$ac_ext
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7977 $as_echo "$vg_cv_tls" >&6; }
7979 # Cross-compiling: check whether linking a program using TLS succeeds.
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7981 $as_echo_n "checking for TLS support... " >&6; }
7982 if ${vg_cv_tls+:} false; then :
7983 $as_echo_n "(cached) " >&6
7985 # Check whether --enable-tls was given.
7986 if test "${enable_tls+set}" = set; then :
7987 enableval=$enable_tls; vg_cv_tls=$enableval
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 static __thread int foo;
8000 if ac_fn_c_try_link "$LINENO"; then :
8005 rm -f core conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8011 $as_echo "$vg_cv_tls" >&6; }
8014 if test "$vg_cv_tls" = yes; then
8016 $as_echo "#define HAVE_TLS 1" >>confdefs.h
8021 #----------------------------------------------------------------------------
8022 # Checks for C header files.
8023 #----------------------------------------------------------------------------
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8026 $as_echo_n "checking for ANSI C header files... " >&6; }
8027 if ${ac_cv_header_stdc+:} false; then :
8028 $as_echo_n "(cached) " >&6
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8045 if ac_fn_c_try_compile "$LINENO"; then :
8046 ac_cv_header_stdc=yes
8048 ac_cv_header_stdc=no
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 if test $ac_cv_header_stdc = yes; then
8053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8060 $EGREP "memchr" >/dev/null 2>&1; then :
8063 ac_cv_header_stdc=no
8069 if test $ac_cv_header_stdc = yes; then
8070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "free" >/dev/null 2>&1; then :
8080 ac_cv_header_stdc=no
8086 if test $ac_cv_header_stdc = yes; then
8087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8088 if test "$cross_compiling" = yes; then :
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8095 #if ((' ' & 0x0FF) == 0x020)
8096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8099 # define ISLOWER(c) \
8100 (('a' <= (c) && (c) <= 'i') \
8101 || ('j' <= (c) && (c) <= 'r') \
8102 || ('s' <= (c) && (c) <= 'z'))
8103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8111 for (i = 0; i < 256; i++)
8112 if (XOR (islower (i), ISLOWER (i))
8113 || toupper (i) != TOUPPER (i))
8118 if ac_fn_c_try_run "$LINENO"; then :
8121 ac_cv_header_stdc=no
8123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8124 conftest.$ac_objext conftest.beam conftest.$ac_ext
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8130 $as_echo "$ac_cv_header_stdc" >&6; }
8131 if test $ac_cv_header_stdc = yes; then
8133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8156 cat >>confdefs.h <<_ACEOF
8157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8165 #----------------------------------------------------------------------------
8166 # Checks for typedefs, structures, and compiler characteristics.
8167 #----------------------------------------------------------------------------
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8169 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8170 if ${ac_cv_type_uid_t+:} false; then :
8171 $as_echo_n "(cached) " >&6
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 #include <sys/types.h>
8178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8179 $EGREP "uid_t" >/dev/null 2>&1; then :
8180 ac_cv_type_uid_t=yes
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8188 $as_echo "$ac_cv_type_uid_t" >&6; }
8189 if test $ac_cv_type_uid_t = no; then
8191 $as_echo "#define uid_t int" >>confdefs.h
8194 $as_echo "#define gid_t int" >>confdefs.h
8198 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8199 if test "x$ac_cv_type_off_t" = xyes; then :
8203 cat >>confdefs.h <<_ACEOF
8204 #define off_t long int
8209 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8210 if test "x$ac_cv_type_size_t" = xyes; then :
8214 cat >>confdefs.h <<_ACEOF
8215 #define size_t unsigned int
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8221 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8222 if ${ac_cv_header_time+:} false; then :
8223 $as_echo_n "(cached) " >&6
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8227 #include <sys/types.h>
8228 #include <sys/time.h>
8234 if ((struct tm *) 0)
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 ac_cv_header_time=yes
8243 ac_cv_header_time=no
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8248 $as_echo "$ac_cv_header_time" >&6; }
8249 if test $ac_cv_header_time = yes; then
8251 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8257 #----------------------------------------------------------------------------
8258 # Checks for library functions.
8259 #----------------------------------------------------------------------------
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8261 $as_echo_n "checking for working memcmp... " >&6; }
8262 if ${ac_cv_func_memcmp_working+:} false; then :
8263 $as_echo_n "(cached) " >&6
8265 if test "$cross_compiling" = yes; then :
8266 ac_cv_func_memcmp_working=no
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 $ac_includes_default
8275 /* Some versions of memcmp are not 8-bit clean. */
8276 char c0 = '\100', c1 = '\200', c2 = '\201';
8277 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8280 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8281 or more and with at least one buffer not starting on a 4-byte boundary.
8282 William Lewis provided this test program. */
8287 for (i = 0; i < 4; i++)
8291 strcpy (a, "--------01111111");
8292 strcpy (b, "--------10000000");
8293 if (memcmp (a, b, 16) >= 0)
8303 if ac_fn_c_try_run "$LINENO"; then :
8304 ac_cv_func_memcmp_working=yes
8306 ac_cv_func_memcmp_working=no
8308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8309 conftest.$ac_objext conftest.beam conftest.$ac_ext
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8314 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8315 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8316 *" memcmp.$ac_objext "* ) ;;
8317 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8325 for ac_header in $ac_header_list
8327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8331 cat >>confdefs.h <<_ACEOF
8332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8346 for ac_func in getpagesize
8348 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8349 if test "x$ac_cv_func_getpagesize" = xyes; then :
8350 cat >>confdefs.h <<_ACEOF
8351 #define HAVE_GETPAGESIZE 1
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8358 $as_echo_n "checking for working mmap... " >&6; }
8359 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8360 $as_echo_n "(cached) " >&6
8362 if test "$cross_compiling" = yes; then :
8363 ac_cv_func_mmap_fixed_mapped=no
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 $ac_includes_default
8368 /* malloc might have been renamed as rpl_malloc. */
8371 /* Thanks to Mike Haertel and Jim Avera for this test.
8372 Here is a matrix of mmap possibilities:
8373 mmap private not fixed
8374 mmap private fixed at somewhere currently unmapped
8375 mmap private fixed at somewhere already mapped
8376 mmap shared not fixed
8377 mmap shared fixed at somewhere currently unmapped
8378 mmap shared fixed at somewhere already mapped
8379 For private mappings, we should verify that changes cannot be read()
8380 back from the file, nor mmap's back from the file at a different
8381 address. (There have been systems where private was not correctly
8382 implemented like the infamous i386 svr4.0, and systems where the
8383 VM page cache was not coherent with the file system buffer cache
8384 like early versions of FreeBSD and possibly contemporary NetBSD.)
8385 For shared mappings, we should conversely verify that changes get
8386 propagated back to all the places they're supposed to be.
8388 Grep wants private fixed already mapped.
8389 The main things grep needs to know about mmap are:
8390 * does it exist and is it safe to write into the mmap'd area
8391 * how to use it (BSD variants) */
8394 #include <sys/mman.h>
8396 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8400 /* This mess was copied from the GNU getpagesize.h. */
8401 #ifndef HAVE_GETPAGESIZE
8402 # ifdef _SC_PAGESIZE
8403 # define getpagesize() sysconf(_SC_PAGESIZE)
8404 # else /* no _SC_PAGESIZE */
8405 # ifdef HAVE_SYS_PARAM_H
8406 # include <sys/param.h>
8407 # ifdef EXEC_PAGESIZE
8408 # define getpagesize() EXEC_PAGESIZE
8409 # else /* no EXEC_PAGESIZE */
8411 # define getpagesize() NBPG * CLSIZE
8414 # endif /* no CLSIZE */
8415 # else /* no NBPG */
8417 # define getpagesize() NBPC
8418 # else /* no NBPC */
8420 # define getpagesize() PAGESIZE
8421 # endif /* PAGESIZE */
8422 # endif /* no NBPC */
8423 # endif /* no NBPG */
8424 # endif /* no EXEC_PAGESIZE */
8425 # else /* no HAVE_SYS_PARAM_H */
8426 # define getpagesize() 8192 /* punt totally */
8427 # endif /* no HAVE_SYS_PARAM_H */
8428 # endif /* no _SC_PAGESIZE */
8430 #endif /* no HAVE_GETPAGESIZE */
8435 char *data, *data2, *data3;
8440 pagesize = getpagesize ();
8442 /* First, make a file with some known garbage in it. */
8443 data = (char *) malloc (pagesize);
8446 for (i = 0; i < pagesize; ++i)
8447 *(data + i) = rand ();
8449 fd = creat ("conftest.mmap", 0600);
8452 if (write (fd, data, pagesize) != pagesize)
8456 /* Next, check that the tail of a page is zero-filled. File must have
8457 non-zero length, otherwise we risk SIGBUS for entire page. */
8458 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8462 if (write (fd2, cdata2, 1) != 1)
8464 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8465 if (data2 == MAP_FAILED)
8467 for (i = 0; i < pagesize; ++i)
8471 if (munmap (data2, pagesize))
8474 /* Next, try to mmap the file at a fixed address which already has
8475 something else allocated at it. If we can, also make sure that
8476 we see the same garbage. */
8477 fd = open ("conftest.mmap", O_RDWR);
8480 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8481 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8483 for (i = 0; i < pagesize; ++i)
8484 if (*(data + i) != *(data2 + i))
8487 /* Finally, make sure that changes to the mapped area do not
8488 percolate back to the file as seen by read(). (This is a bug on
8489 some variants of i386 svr4.0.) */
8490 for (i = 0; i < pagesize; ++i)
8491 *(data2 + i) = *(data2 + i) + 1;
8492 data3 = (char *) malloc (pagesize);
8495 if (read (fd, data3, pagesize) != pagesize)
8497 for (i = 0; i < pagesize; ++i)
8498 if (*(data + i) != *(data3 + i))
8504 if ac_fn_c_try_run "$LINENO"; then :
8505 ac_cv_func_mmap_fixed_mapped=yes
8507 ac_cv_func_mmap_fixed_mapped=no
8509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8510 conftest.$ac_objext conftest.beam conftest.$ac_ext
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8515 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8516 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8518 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8521 rm -f conftest.mmap conftest.txt
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8524 $as_echo_n "checking return type of signal handlers... " >&6; }
8525 if ${ac_cv_type_signal+:} false; then :
8526 $as_echo_n "(cached) " >&6
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 #include <sys/types.h>
8536 return *(signal (0, 0)) (0) == 1;
8541 if ac_fn_c_try_compile "$LINENO"; then :
8542 ac_cv_type_signal=int
8544 ac_cv_type_signal=void
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8549 $as_echo "$ac_cv_type_signal" >&6; }
8551 cat >>confdefs.h <<_ACEOF
8552 #define RETSIGTYPE $ac_cv_type_signal
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8558 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8559 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 ac_check_lib_save_LIBS=$LIBS
8563 LIBS="-lpthread $LIBS"
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8567 /* Override any GCC internal prototype to avoid an error.
8568 Use char because int might match the return type of a GCC
8569 builtin and then its argument prototype would still apply. */
8573 char pthread_create ();
8577 return pthread_create ();
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 ac_cv_lib_pthread_pthread_create=yes
8585 ac_cv_lib_pthread_pthread_create=no
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8592 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8593 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8594 cat >>confdefs.h <<_ACEOF
8595 #define HAVE_LIBPTHREAD 1
8598 LIBS="-lpthread $LIBS"
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8603 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8604 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
8605 $as_echo_n "(cached) " >&6
8607 ac_check_lib_save_LIBS=$LIBS
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8612 /* Override any GCC internal prototype to avoid an error.
8613 Use char because int might match the return type of a GCC
8614 builtin and then its argument prototype would still apply. */
8618 char clock_gettime ();
8622 return clock_gettime ();
8627 if ac_fn_c_try_link "$LINENO"; then :
8628 ac_cv_lib_rt_clock_gettime=yes
8630 ac_cv_lib_rt_clock_gettime=no
8632 rm -f core conftest.err conftest.$ac_objext \
8633 conftest$ac_exeext conftest.$ac_ext
8634 LIBS=$ac_check_lib_save_LIBS
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8637 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8638 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8639 cat >>confdefs.h <<_ACEOF
8640 #define HAVE_LIBRT 1
8659 pthread_barrier_init \
8660 pthread_condattr_setclock \
8661 pthread_mutex_timedlock \
8662 pthread_rwlock_timedrdlock \
8663 pthread_rwlock_timedwrlock \
8678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8680 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8681 cat >>confdefs.h <<_ACEOF
8682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8689 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8690 # libraries with any shared object and/or executable. This is NOT what we
8691 # want for e.g. vgpreload_core-x86-linux.so
8694 if test x$ac_cv_func_pthread_barrier_init = xyes; then
8695 HAVE_PTHREAD_BARRIER_TRUE=
8696 HAVE_PTHREAD_BARRIER_FALSE='#'
8698 HAVE_PTHREAD_BARRIER_TRUE='#'
8699 HAVE_PTHREAD_BARRIER_FALSE=
8702 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8703 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8704 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8706 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8707 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8710 if test x$ac_cv_func_pthread_spin_lock = xyes; then
8711 HAVE_PTHREAD_SPINLOCK_TRUE=
8712 HAVE_PTHREAD_SPINLOCK_FALSE='#'
8714 HAVE_PTHREAD_SPINLOCK_TRUE='#'
8715 HAVE_PTHREAD_SPINLOCK_FALSE=
8720 #----------------------------------------------------------------------------
8722 #----------------------------------------------------------------------------
8723 # Do we have a useable MPI setup on the primary and/or secondary targets?
8724 # On Linux, by default, assumes mpicc and -m32/-m64
8725 # On AIX, by default, assumes mpxlc and -q32/-q64
8726 # Note: this is a kludge in that it assumes the specified mpicc
8727 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8730 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8731 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8736 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8737 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8738 mflag_primary=$FLAG_M32
8739 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8740 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
8741 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
8742 mflag_primary=$FLAG_M64
8743 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8745 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8750 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8751 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8752 mflag_secondary=$FLAG_M32
8753 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8754 mflag_secondary=-q32
8759 # Check whether --with-mpicc was given.
8760 if test "${with_mpicc+set}" = set; then :
8761 withval=$with_mpicc; MPI_CC=$withval
8767 ## See if MPI_CC works for the primary target
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8770 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8772 saved_CFLAGS=$CFLAGS
8774 CFLAGS=$mflag_primary
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h. */
8785 int r = MPI_Init(NULL,NULL);
8786 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8793 if ac_fn_c_try_link "$LINENO"; then :
8795 ac_have_mpi2_pri=yes
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8797 $as_echo "yes, $MPI_CC" >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8806 rm -f core conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8809 CFLAGS=$saved_CFLAGS
8810 if test x$ac_have_mpi2_pri = xyes; then
8811 BUILD_MPIWRAP_PRI_TRUE=
8812 BUILD_MPIWRAP_PRI_FALSE='#'
8814 BUILD_MPIWRAP_PRI_TRUE='#'
8815 BUILD_MPIWRAP_PRI_FALSE=
8819 ## See if MPI_CC works for the secondary target. Complication: what if
8820 ## there is no secondary target? We need this to then fail.
8821 ## Kludge this by making MPI_CC something which will surely fail in
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8825 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8827 saved_CFLAGS=$CFLAGS
8828 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8829 CC="$MPI_CC this will surely fail"
8833 CFLAGS=$mflag_secondary
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8844 int r = MPI_Init(NULL,NULL);
8845 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8852 if ac_fn_c_try_link "$LINENO"; then :
8854 ac_have_mpi2_sec=yes
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8856 $as_echo "yes, $MPI_CC" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8865 rm -f core conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8868 CFLAGS=$saved_CFLAGS
8869 if test x$ac_have_mpi2_sec = xyes; then
8870 BUILD_MPIWRAP_SEC_TRUE=
8871 BUILD_MPIWRAP_SEC_FALSE='#'
8873 BUILD_MPIWRAP_SEC_TRUE='#'
8874 BUILD_MPIWRAP_SEC_FALSE=
8879 #----------------------------------------------------------------------------
8880 # Other library checks
8881 #----------------------------------------------------------------------------
8882 # There now follow some tests for Boost, and OpenMP. These
8883 # tests are present because Drd has some regression tests that use
8884 # these packages. All regression test programs all compiled only
8885 # for the primary target. And so it is important that the configure
8886 # checks that follow, use the correct -m32 or -m64 flag for the
8887 # primary target (called $mflag_primary). Otherwise, we can end up
8888 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8889 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8890 # only build (meaning, the primary target is x86-linux), the build
8891 # of the regtest programs that use Boost fails, because they are
8892 # build as 32-bit (IN THIS EXAMPLE).
8894 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8895 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8898 # Check whether the boost library 1.35 or later has been installed.
8899 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8902 $as_echo_n "checking for boost... " >&6; }
8905 ac_cpp='$CXXCPP $CPPFLAGS'
8906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8910 safe_CXXFLAGS=$CXXFLAGS
8911 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8917 #include <boost/thread.hpp>
8918 static void thread_func(void)
8920 int main(int argc, char** argv)
8922 boost::thread t(thread_func);
8927 if ac_fn_cxx_try_link "$LINENO"; then :
8929 ac_have_boost_1_35=yes
8931 BOOST_LIBS="${CXXFLAGS}"
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8934 $as_echo "yes" >&6; }
8938 ac_have_boost_1_35=no
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8946 CXXFLAGS=$safe_CXXFLAGS
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8954 if test x$ac_have_boost_1_35 = xyes; then
8955 HAVE_BOOST_1_35_TRUE=
8956 HAVE_BOOST_1_35_FALSE='#'
8958 HAVE_BOOST_1_35_TRUE='#'
8959 HAVE_BOOST_1_35_FALSE=
8964 # does this compiler support -fopenmp, does it have the include file
8965 # <omp.h> and does it have libgomp ?
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
8968 $as_echo_n "checking for OpenMP... " >&6; }
8971 CFLAGS="-fopenmp $mflag_primary"
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8977 int main(int argc, char** argv)
8984 if ac_fn_c_try_link "$LINENO"; then :
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8988 $as_echo "yes" >&6; }
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
9001 if test x$ac_have_openmp = xyes; then
9003 HAVE_OPENMP_FALSE='#'
9005 HAVE_OPENMP_TRUE='#'
9011 # does this compiler have built-in functions for atomic memory access ?
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9013 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9016 CFLAGS="$mflag_primary"
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9026 return (__sync_bool_compare_and_swap(&variable, 1, 2)
9027 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9033 if ac_fn_c_try_link "$LINENO"; then :
9035 ac_have_builtin_atomic=yes
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9037 $as_echo "yes" >&6; }
9039 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9044 ac_have_builtin_atomic=no
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9054 if test x$ac_have_builtin_atomic = xyes; then
9055 HAVE_BUILTIN_ATOMIC_TRUE=
9056 HAVE_BUILTIN_ATOMIC_FALSE='#'
9058 HAVE_BUILTIN_ATOMIC_TRUE='#'
9059 HAVE_BUILTIN_ATOMIC_FALSE=
9063 # does g++ have built-in functions for atomic memory access ?
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_bool_compare_and_swap" >&5
9065 $as_echo_n "checking if g++ supports __sync_bool_compare_and_swap... " >&6; }
9067 safe_CXXFLAGS=$CXXFLAGS
9068 CXXFLAGS="$mflag_primary"
9071 ac_cpp='$CXXCPP $CPPFLAGS'
9072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9084 return (__sync_bool_compare_and_swap(&variable, 1, 2)
9085 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9091 if ac_fn_cxx_try_link "$LINENO"; then :
9093 ac_have_builtin_atomic_cxx=yes
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9095 $as_echo "yes" >&6; }
9097 $as_echo "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h
9102 ac_have_builtin_atomic_cxx=no
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9107 rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116 CXXFLAGS=$safe_CXXFLAGS
9118 if test x$ac_have_builtin_atomic_cxx = xyes; then
9119 HAVE_BUILTIN_ATOMIC_CXX_TRUE=
9120 HAVE_BUILTIN_ATOMIC_CXX_FALSE='#'
9122 HAVE_BUILTIN_ATOMIC_CXX_TRUE='#'
9123 HAVE_BUILTIN_ATOMIC_CXX_FALSE=
9127 #----------------------------------------------------------------------------
9128 # Ok. We're done checking.
9129 #----------------------------------------------------------------------------
9131 # Nb: VEX/Makefile is generated from Makefile.vex.in.
9132 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"
9134 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9136 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9138 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9140 ac_config_files="$ac_config_files coregrind/link_tool_exe_l4re"
9142 cat >confcache <<\_ACEOF
9143 # This file is a shell script that caches the results of configure
9144 # tests run on this system so they can be shared between configure
9145 # scripts and configure runs, see configure's option --config-cache.
9146 # It is not useful on other systems. If it contains results you don't
9147 # want to keep, you may remove or edit it.
9149 # config.status only pays attention to the cache file if you give it
9150 # the --recheck option to rerun configure.
9152 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9158 # The following way of writing the cache mishandles newlines in values,
9159 # but we know of no workaround that is simple, portable, and efficient.
9160 # So, we kill variables containing newlines.
9161 # Ultrix sh set writes to stderr and can't be redirected directly,
9162 # and sets the high bit in the cache file unless we assign to the vars.
9164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9165 eval ac_val=\$$ac_var
9169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9173 _ | IFS | as_nl) ;; #(
9174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9175 *) { eval $ac_var=; unset $ac_var;} ;;
9181 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9182 *${as_nl}ac_space=\ *)
9183 # `set' does not quote correctly, so add quotes: double-quote
9184 # substitution turns \\\\ into \\, and sed turns \\ into \.
9187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9190 # `set' quotes correctly as required by POSIX, so do not add quotes.
9191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9204 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9205 if test -w "$cache_file"; then
9206 if test "x$cache_file" != "x/dev/null"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9208 $as_echo "$as_me: updating cache $cache_file" >&6;}
9209 if test ! -f "$cache_file" || test -h "$cache_file"; then
9210 cat confcache >"$cache_file"
9212 case $cache_file in #(
9214 mv -f confcache "$cache_file"$$ &&
9215 mv -f "$cache_file"$$ "$cache_file" ;; #(
9217 mv -f confcache "$cache_file" ;;
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9223 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9228 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9229 # Let make expand exec_prefix.
9230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9232 DEFS=-DHAVE_CONFIG_H
9237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9238 # 1. Remove the extension, and $U if already installed.
9239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9240 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9242 # will be set to the directory where LIBOBJS objects are built.
9243 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9244 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9248 LTLIBOBJS=$ac_ltlibobjs
9251 if test -n "$EXEEXT"; then
9253 am__EXEEXT_FALSE='#'
9259 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9260 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9263 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9264 as_fn_error $? "conditional \"AMDEP\" was never defined.
9265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9267 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9268 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9271 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9272 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9275 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9276 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
9277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9279 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9280 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9283 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9284 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9287 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9288 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9291 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9292 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9295 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9296 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9299 if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
9300 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
9301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9303 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9304 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9307 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9308 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9311 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9312 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9315 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9316 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9319 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9320 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9323 if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
9324 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
9325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9327 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9328 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9331 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9332 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9335 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9336 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9339 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9340 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9343 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9344 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9347 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9348 as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9351 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9352 as_fn_error $? "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9355 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9356 as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9359 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9360 as_fn_error $? "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9363 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9364 as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9367 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9368 as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
9369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9371 if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
9372 as_fn_error $? "conditional \"HAS_VSX\" was never defined.
9373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9375 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9376 as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9379 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9380 as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
9381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9383 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9384 as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9387 if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
9388 as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
9389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9391 if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
9392 as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
9393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9395 if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
9396 as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
9397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9399 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9400 as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9403 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9404 as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9407 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9408 as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9411 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9412 as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9415 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9416 as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9419 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9420 as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
9421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9423 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9424 as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
9425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9427 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9428 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9431 if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
9432 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
9433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9436 : "${CONFIG_STATUS=./config.status}"
9438 ac_clean_files_save=$ac_clean_files
9439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9441 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9443 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9445 # Generated by $as_me.
9446 # Run this file to recreate the current configuration.
9447 # Compiler output produced by configure, useful for debugging
9448 # configure, is in config.log if it exists.
9454 SHELL=\${CONFIG_SHELL-$SHELL}
9457 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9458 ## -------------------- ##
9459 ## M4sh Initialization. ##
9460 ## -------------------- ##
9462 # Be more Bourne compatible
9463 DUALCASE=1; export DUALCASE # for MKS sh
9464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9467 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9468 # is contrary to our usage. Disable this feature.
9469 alias -g '${1+"$@"}'='"$@"'
9470 setopt NO_GLOB_SUBST
9472 case `(set -o) 2>/dev/null` in #(
9484 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9485 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9486 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9488 # Prefer a ksh shell builtin over an external printf program on Solaris,
9489 # but without wasting forks for bash or zsh.
9490 if test -z "$BASH_VERSION$ZSH_VERSION" \
9491 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9492 as_echo='print -r --'
9493 as_echo_n='print -rn --'
9494 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9495 as_echo='printf %s\n'
9496 as_echo_n='printf %s'
9498 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9499 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9500 as_echo_n='/usr/ucb/echo -n'
9502 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9503 as_echo_n_body='eval
9507 expr "X$arg" : "X\\(.*\\)$as_nl";
9508 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9510 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9512 export as_echo_n_body
9513 as_echo_n='sh -c $as_echo_n_body as_echo'
9516 as_echo='sh -c $as_echo_body as_echo'
9519 # The user is always right.
9520 if test "${PATH_SEPARATOR+set}" != set; then
9522 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9523 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9530 # We need space, tab and new line, in precisely that order. Quoting is
9531 # there to prevent editors from complaining about space-tab.
9532 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9533 # splitting by setting IFS to empty value.)
9536 # Find who we are. Look in the path if we contain no directory separator.
9539 *[\\/]* ) as_myself=$0 ;;
9540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 test -z "$as_dir" && as_dir=.
9545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9551 # We did not find ourselves, most probably we were run as `sh COMMAND'
9552 # in which case we are not to be found in the path.
9553 if test "x$as_myself" = x; then
9556 if test ! -f "$as_myself"; then
9557 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9561 # Unset variables that we do not need and which cause bugs (e.g. in
9562 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9563 # suppresses any "Segmentation fault" message there. '((' could
9564 # trigger a bug in pdksh 5.2.14.
9565 for as_var in BASH_ENV ENV MAIL MAILPATH
9566 do eval test x\${$as_var+set} = xset \
9567 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9583 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9584 # ----------------------------------------
9585 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9586 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9587 # script with STATUS, using 1 if that was 0.
9590 as_status=$1; test $as_status -eq 0 && as_status=1
9592 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9593 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9595 $as_echo "$as_me: error: $2" >&2
9596 as_fn_exit $as_status
9600 # as_fn_set_status STATUS
9601 # -----------------------
9602 # Set $? to STATUS, without forking.
9606 } # as_fn_set_status
9610 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9620 # Portably unset VAR.
9623 { eval $1=; unset $1;}
9625 as_unset=as_fn_unset
9626 # as_fn_append VAR VALUE
9627 # ----------------------
9628 # Append the text in VALUE to the end of the definition contained in VAR. Take
9629 # advantage of any shell optimizations that allow amortized linear growth over
9630 # repeated appends, instead of the typical quadratic growth present in naive
9632 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9633 eval 'as_fn_append ()
9644 # as_fn_arith ARG...
9645 # ------------------
9646 # Perform arithmetic evaluation on the ARGs, and store the result in the
9647 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9648 # must be portable across $(()) and expr.
9649 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9650 eval 'as_fn_arith ()
9657 as_val=`expr "$@" || test $? -eq 1`
9662 if expr a : '\(a\)' >/dev/null 2>&1 &&
9663 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9670 as_basename=basename
9675 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9681 as_me=`$as_basename -- "$0" ||
9682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9683 X"$0" : 'X\(//\)$' \| \
9684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9686 sed '/^.*\/\([^/][^/]*\)\/*$/{
9700 # Avoid depending upon Character Ranges.
9701 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9702 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9703 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9704 as_cr_digits='0123456789'
9705 as_cr_alnum=$as_cr_Letters$as_cr_digits
9707 ECHO_C= ECHO_N= ECHO_T=
9708 case `echo -n x` in #(((((
9710 case `echo 'xy\c'` in
9711 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9713 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9720 rm -f conf$$ conf$$.exe conf$$.file
9721 if test -d conf$$.dir; then
9722 rm -f conf$$.dir/conf$$.file
9725 mkdir conf$$.dir 2>/dev/null
9727 if (echo >conf$$.file) 2>/dev/null; then
9728 if ln -s conf$$.file conf$$ 2>/dev/null; then
9730 # ... but there are two gotchas:
9731 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9732 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9733 # In both cases, we have to default to `cp -p'.
9734 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9736 elif ln conf$$.file conf$$ 2>/dev/null; then
9744 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9745 rmdir conf$$.dir 2>/dev/null
9750 # Create "$as_dir" as a directory, including parents if necessary.
9755 -*) as_dir=./$as_dir;;
9757 test -d "$as_dir" || eval $as_mkdir_p || {
9761 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9762 *) as_qdir=$as_dir;;
9764 as_dirs="'$as_qdir' $as_dirs"
9765 as_dir=`$as_dirname -- "$as_dir" ||
9766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9767 X"$as_dir" : 'X\(//\)[^/]' \| \
9768 X"$as_dir" : 'X\(//\)$' \| \
9769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9770 $as_echo X"$as_dir" |
9771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9788 test -d "$as_dir" && break
9790 test -z "$as_dirs" || eval "mkdir $as_dirs"
9791 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9795 if mkdir -p . 2>/dev/null; then
9796 as_mkdir_p='mkdir -p "$as_dir"'
9798 test -d ./-p && rmdir ./-p
9802 if test -x / >/dev/null 2>&1; then
9805 if ls -dL / >/dev/null 2>&1; then
9812 if test -d "$1"; then
9818 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9819 ???[sx]*):;;*)false;;esac;fi
9823 as_executable_p=$as_test_x
9825 # Sed expression to map a string onto a valid CPP name.
9826 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9828 # Sed expression to map a string onto a valid variable name.
9829 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9833 ## ----------------------------------- ##
9834 ## Main body of $CONFIG_STATUS script. ##
9835 ## ----------------------------------- ##
9837 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9840 # Save the log message, to keep $0 and so on meaningful, and to
9841 # report actual input values of CONFIG_FILES etc. instead of their
9842 # values after options handling.
9844 This file was extended by Valgrind $as_me 3.7.0.SVN, which was
9845 generated by GNU Autoconf 2.68. Invocation command line was
9847 CONFIG_FILES = $CONFIG_FILES
9848 CONFIG_HEADERS = $CONFIG_HEADERS
9849 CONFIG_LINKS = $CONFIG_LINKS
9850 CONFIG_COMMANDS = $CONFIG_COMMANDS
9853 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9858 case $ac_config_files in *"
9859 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9862 case $ac_config_headers in *"
9863 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9868 # Files that config.status was made for.
9869 config_files="$ac_config_files"
9870 config_headers="$ac_config_headers"
9871 config_commands="$ac_config_commands"
9875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9877 \`$as_me' instantiates files and other configuration actions
9878 from templates according to the current configuration. Unless the files
9879 and actions are specified as TAGs, all are instantiated by default.
9881 Usage: $0 [OPTION]... [TAG]...
9883 -h, --help print this help, then exit
9884 -V, --version print version number and configuration settings, then exit
9885 --config print configuration, then exit
9886 -q, --quiet, --silent
9887 do not print progress messages
9888 -d, --debug don't remove temporary files
9889 --recheck update $as_me by reconfiguring in the same conditions
9890 --file=FILE[:TEMPLATE]
9891 instantiate the configuration file FILE
9892 --header=FILE[:TEMPLATE]
9893 instantiate the configuration header FILE
9895 Configuration files:
9898 Configuration headers:
9901 Configuration commands:
9904 Report bugs to <valgrind-users@lists.sourceforge.net>."
9907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9908 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9910 Valgrind config.status 3.7.0.SVN
9911 configured by $0, generated by GNU Autoconf 2.68,
9912 with options \\"\$ac_cs_config\\"
9914 Copyright (C) 2010 Free Software Foundation, Inc.
9915 This config.status script is free software; the Free Software Foundation
9916 gives unlimited permission to copy, distribute and modify it."
9923 test -n "\$AWK" || AWK=awk
9926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9927 # The default lists apply if the user does not specify any file.
9933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9934 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9950 # Handling of the options.
9951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9953 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9954 $as_echo "$ac_cs_version"; exit ;;
9955 --config | --confi | --conf | --con | --co | --c )
9956 $as_echo "$ac_cs_config"; exit ;;
9957 --debug | --debu | --deb | --de | --d | -d )
9959 --file | --fil | --fi | --f )
9962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9963 '') as_fn_error $? "missing file argument" ;;
9965 as_fn_append CONFIG_FILES " '$ac_optarg'"
9966 ac_need_defaults=false;;
9967 --header | --heade | --head | --hea )
9970 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9972 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9973 ac_need_defaults=false;;
9975 # Conflict between --help and --header
9976 as_fn_error $? "ambiguous option: \`$1'
9977 Try \`$0 --help' for more information.";;
9978 --help | --hel | -h )
9979 $as_echo "$ac_cs_usage"; exit ;;
9980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9981 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9985 -*) as_fn_error $? "unrecognized option: \`$1'
9986 Try \`$0 --help' for more information." ;;
9988 *) as_fn_append ac_config_targets " $1"
9989 ac_need_defaults=false ;;
9995 ac_configure_extra_args=
9997 if $ac_cs_silent; then
9999 ac_configure_extra_args="$ac_configure_extra_args --silent"
10003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10004 if \$ac_cs_recheck; then
10005 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10007 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10008 CONFIG_SHELL='$SHELL'
10009 export CONFIG_SHELL
10014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10019 ## Running $as_me. ##
10025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10029 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10035 # Handling of arguments.
10036 for ac_config_target in $ac_config_targets
10038 case $ac_config_target in
10039 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10040 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10041 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10042 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
10043 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
10044 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
10045 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
10046 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10047 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10048 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
10049 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
10050 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
10051 "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;;
10052 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10053 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
10054 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
10055 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
10056 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
10057 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
10058 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
10059 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
10060 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
10061 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
10062 "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
10063 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
10064 "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
10065 "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
10066 "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
10067 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10068 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10069 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10070 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10071 "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10072 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10073 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10074 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10075 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10076 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10077 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10078 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10079 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10080 "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10081 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10082 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10083 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10084 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10085 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10086 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10087 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10088 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10089 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10090 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10091 "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;;
10092 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10093 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10094 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10095 "exp-sgcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/Makefile" ;;
10096 "exp-sgcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/tests/Makefile" ;;
10097 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10098 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10099 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10100 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10101 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10102 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10103 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10104 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10105 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10106 "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;;
10107 "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;;
10108 "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10109 "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10110 "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10111 "coregrind/link_tool_exe_l4re") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_l4re" ;;
10113 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10118 # If the user did not use the arguments to specify the items to instantiate,
10119 # then the envvar interface is used. Set only those that are not.
10120 # We use the long form for the default assignment because of an extremely
10121 # bizarre bug on SunOS 4.1.3.
10122 if $ac_need_defaults; then
10123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10128 # Have a temporary directory for convenience. Make it in the build tree
10129 # simply because there is no reason against having it here, and in addition,
10130 # creating and moving files from /tmp can sometimes cause problems.
10131 # Hook for its removal unless debugging.
10132 # Note that there is a small window in which the directory will not be cleaned:
10133 # after its creation but before its name has been assigned to `$tmp'.
10137 trap 'exit_status=$?
10138 : "${ac_tmp:=$tmp}"
10139 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10141 trap 'as_fn_exit 1' 1 2 13 15
10143 # Create a (secure) tmp directory for tmp files.
10146 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10150 tmp=./conf$$-$RANDOM
10151 (umask 077 && mkdir "$tmp")
10152 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10155 # Set up the scripts for CONFIG_FILES section.
10156 # No need to generate them if there are no CONFIG_FILES.
10157 # This happens for instance with `./config.status config.h'.
10158 if test -n "$CONFIG_FILES"; then
10161 ac_cr=`echo X | tr X '\015'`
10162 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10163 # But we know of no other shell where ac_cr would be empty at this
10164 # point, so we can use a bashism as a fallback.
10165 if test "x$ac_cr" = x; then
10166 eval ac_cr=\$\'\\r\'
10168 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10169 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10172 ac_cs_awk_cr=$ac_cr
10175 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10180 echo "cat >conf$$subs.awk <<_ACEOF" &&
10181 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10183 } >conf$$subs.sh ||
10184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10185 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10187 for ac_last_try in false false false false false :; do
10188 . ./conf$$subs.sh ||
10189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10191 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10192 if test $ac_delim_n = $ac_delim_num; then
10194 elif $ac_last_try; then
10195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10200 rm -f conf$$subs.sh
10202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10203 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10207 s/^/S["/; s/!.*/"]=/
10217 s/\(.\{148\}\)..*/\1/
10219 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10224 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10231 s/\(.\{148\}\)..*/\1/
10233 s/["\\]/\\&/g; s/^/"/; s/$/"/
10237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10242 ' <conf$$subs.awk | sed '
10247 ' >>$CONFIG_STATUS || ac_write_fail=1
10248 rm -f conf$$subs.awk
10249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10251 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10252 for (key in S) S_is_set[key] = 1
10258 nfields = split(line, field, "@")
10260 len = length(field[1])
10261 for (i = 2; i < nfields; i++) {
10263 keylen = length(key)
10264 if (S_is_set[key]) {
10266 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10267 len += length(value) + length(field[++i])
10278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10279 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10280 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10283 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10284 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10287 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10288 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10289 # trailing colons and then remove the whole line if VPATH becomes empty
10290 # (actually we leave an empty line to preserve line numbers).
10291 if test "x$srcdir" = x.; then
10292 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10311 fi # test -n "$CONFIG_FILES"
10313 # Set up the scripts for CONFIG_HEADERS section.
10314 # No need to generate them if there are no CONFIG_HEADERS.
10315 # This happens for instance with `./config.status Makefile'.
10316 if test -n "$CONFIG_HEADERS"; then
10317 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10321 # Transform confdefs.h into an awk script `defines.awk', embedded as
10322 # here-document in config.status, that substitutes the proper values into
10323 # config.h.in to produce config.h.
10325 # Create a delimiter string that does not exist in confdefs.h, to ease
10326 # handling of long lines.
10328 for ac_last_try in false false :; do
10329 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10330 if test -z "$ac_tt"; then
10332 elif $ac_last_try; then
10333 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10339 # For the awk script, D is an array of macro values keyed by name,
10340 # likewise P contains macro parameters if any. Preserve backslash
10341 # newline sequences.
10343 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10345 s/.\{148\}/&'"$ac_delim"'/g
10348 s/^[ ]*#[ ]*define[ ][ ]*/ /
10355 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10357 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10361 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10362 D["\1"]=" \3\\\\\\n"\\/p
10364 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10369 s/.\{148\}/&'"$ac_delim"'/g
10374 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10377 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10379 ' <confdefs.h | sed '
10380 s/'"$ac_delim"'/"\\\
10381 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10384 for (key in D) D_is_set[key] = 1
10387 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10389 split(line, arg, " ")
10390 if (arg[1] == "#") {
10394 defundef = substr(arg[1], 2)
10397 split(mac1, mac2, "(") #)
10399 prefix = substr(line, 1, index(line, defundef) - 1)
10400 if (D_is_set[macro]) {
10401 # Preserve the white space surrounding the "#".
10402 print prefix "define", macro P[macro] D[macro]
10405 # Replace #undef with comments. This is necessary, for example,
10406 # in the case of _POSIX_SOURCE, which is predefined and required
10407 # on some systems where configure will not decide to define it.
10408 if (defundef == "undef") {
10409 print "/*", prefix defundef, macro, "*/"
10417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10418 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10419 fi # test -n "$CONFIG_HEADERS"
10422 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10427 :[FHLC]) ac_mode=$ac_tag; continue;;
10429 case $ac_mode$ac_tag in
10431 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10432 :[FH]-) ac_tag=-:-;;
10433 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10450 -) ac_f="$ac_tmp/stdin";;
10451 *) # Look for the file first in the build tree, then in the source tree
10452 # (if the path is not absolute). The absolute path cannot be DOS-style,
10453 # because $ac_f cannot contain `:'.
10457 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10459 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10461 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10462 as_fn_append ac_file_inputs " '$ac_f'"
10465 # Let's still pretend it is `configure' which instantiates (i.e., don't
10466 # use $as_me), people would be surprised to read:
10467 # /* config.h. Generated by config.status. */
10468 configure_input='Generated from '`
10469 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10471 if test x"$ac_file" != x-; then
10472 configure_input="$ac_file. $configure_input"
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10474 $as_echo "$as_me: creating $ac_file" >&6;}
10476 # Neutralize special characters interpreted by sed in replacement strings.
10477 case $configure_input in #(
10478 *\&* | *\|* | *\\* )
10479 ac_sed_conf_input=`$as_echo "$configure_input" |
10480 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10481 *) ac_sed_conf_input=$configure_input;;
10485 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10491 ac_dir=`$as_dirname -- "$ac_file" ||
10492 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10493 X"$ac_file" : 'X\(//\)[^/]' \| \
10494 X"$ac_file" : 'X\(//\)$' \| \
10495 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10496 $as_echo X"$ac_file" |
10497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10501 /^X\(\/\/\)[^/].*/{
10514 as_dir="$ac_dir"; as_fn_mkdir_p
10518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10521 # A ".." for each directory in $ac_dir_suffix.
10522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10523 case $ac_top_builddir_sub in
10524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10528 ac_abs_top_builddir=$ac_pwd
10529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10530 # for backward compatibility:
10531 ac_top_builddir=$ac_top_build_prefix
10534 .) # We are building in place.
10536 ac_top_srcdir=$ac_top_builddir_sub
10537 ac_abs_top_srcdir=$ac_pwd ;;
10538 [\\/]* | ?:[\\/]* ) # Absolute name.
10539 ac_srcdir=$srcdir$ac_dir_suffix;
10540 ac_top_srcdir=$srcdir
10541 ac_abs_top_srcdir=$srcdir ;;
10542 *) # Relative name.
10543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10544 ac_top_srcdir=$ac_top_build_prefix$srcdir
10545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10557 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10558 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10560 ac_MKDIR_P=$MKDIR_P
10562 [\\/$]* | ?:[\\/]* ) ;;
10563 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10568 # If the template does not know about datarootdir, expand it.
10569 # FIXME: This hack should be removed a few years after 2.60.
10570 ac_datarootdir_hack=; ac_datarootdir_seen=
10581 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10582 *datarootdir*) ac_datarootdir_seen=yes;;
10583 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10585 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10588 ac_datarootdir_hack='
10589 s&@datadir@&$datadir&g
10590 s&@docdir@&$docdir&g
10591 s&@infodir@&$infodir&g
10592 s&@localedir@&$localedir&g
10593 s&@mandir@&$mandir&g
10594 s&\\\${datarootdir}&$datarootdir&g' ;;
10598 # Neutralize VPATH when `$srcdir' = `.'.
10599 # Shell code in configure.ac might set extrasub.
10600 # FIXME: do we really want to maintain this feature?
10601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10602 ac_sed_extra="$ac_vpsub
10605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10608 s|@configure_input@|$ac_sed_conf_input|;t t
10609 s&@top_builddir@&$ac_top_builddir_sub&;t t
10610 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10611 s&@srcdir@&$ac_srcdir&;t t
10612 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10613 s&@top_srcdir@&$ac_top_srcdir&;t t
10614 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10615 s&@builddir@&$ac_builddir&;t t
10616 s&@abs_builddir@&$ac_abs_builddir&;t t
10617 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10618 s&@INSTALL@&$ac_INSTALL&;t t
10619 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10620 $ac_datarootdir_hack
10622 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10623 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10625 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10626 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10627 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10628 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10630 which seems to be undefined. Please make sure it is defined" >&5
10631 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10632 which seems to be undefined. Please make sure it is defined" >&2;}
10634 rm -f "$ac_tmp/stdin"
10636 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10637 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10645 if test x"$ac_file" != x-; then
10647 $as_echo "/* $configure_input */" \
10648 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10649 } >"$ac_tmp/config.h" \
10650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10651 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10653 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10656 mv "$ac_tmp/config.h" "$ac_file" \
10657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10660 $as_echo "/* $configure_input */" \
10661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10662 || as_fn_error $? "could not create -" "$LINENO" 5
10664 # Compute "$ac_file"'s index in $config_headers.
10667 for _am_header in $config_headers :; do
10668 case $_am_header in
10669 $_am_arg | $_am_arg:* )
10672 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10675 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10676 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10677 X"$_am_arg" : 'X\(//\)[^/]' \| \
10678 X"$_am_arg" : 'X\(//\)$' \| \
10679 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10680 $as_echo X"$_am_arg" |
10681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10685 /^X\(\/\/\)[^/].*/{
10697 s/.*/./; q'`/stamp-h$_am_stamp_count
10700 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10701 $as_echo "$as_me: executing $ac_file commands" >&6;}
10706 case $ac_file$ac_mode in
10707 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10708 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10709 # are listed without --file. Let's play safe and only enable the eval
10710 # if we detect the quoting.
10711 case $CONFIG_FILES in
10712 *\'*) eval set x "$CONFIG_FILES" ;;
10713 *) set x $CONFIG_FILES ;;
10718 # Strip MF so we end up with the name of the file.
10719 mf=`echo "$mf" | sed -e 's/:.*$//'`
10720 # Check whether this is an Automake generated Makefile or not.
10721 # We used to match only the files named `Makefile.in', but
10722 # some people rename them; so instead we look at the file content.
10723 # Grep'ing the first line is not enough: some people post-process
10724 # each Makefile.in and add a new line on top of each file to say so.
10725 # Grep'ing the whole file is not good either: AIX grep has a line
10726 # limit of 2048, but all sed's we know have understand at least 4000.
10727 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10728 dirpart=`$as_dirname -- "$mf" ||
10729 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10730 X"$mf" : 'X\(//\)[^/]' \| \
10731 X"$mf" : 'X\(//\)$' \| \
10732 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10738 /^X\(\/\/\)[^/].*/{
10754 # Extract the definition of DEPDIR, am__include, and am__quote
10755 # from the Makefile without running `make'.
10756 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10757 test -z "$DEPDIR" && continue
10758 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10759 test -z "am__include" && continue
10760 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10761 # When using ansi2knr, U may be empty or an underscore; expand it
10762 U=`sed -n 's/^U = //p' < "$mf"`
10763 # Find all dependency output files, they are included files with
10764 # $(DEPDIR) in their names. We invoke sed twice because it is the
10765 # simplest approach to changing $(DEPDIR) to its actual value in the
10767 for file in `sed -n "
10768 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10769 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10770 # Make sure the directory exists.
10771 test -f "$dirpart/$file" && continue
10772 fdir=`$as_dirname -- "$file" ||
10773 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10774 X"$file" : 'X\(//\)[^/]' \| \
10775 X"$file" : 'X\(//\)$' \| \
10776 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10777 $as_echo X"$file" |
10778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10782 /^X\(\/\/\)[^/].*/{
10795 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10796 # echo "creating $dirpart/$file"
10797 echo '# dummy' > "$dirpart/$file"
10802 "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10803 "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10804 "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10805 "coregrind/link_tool_exe_l4re":F) chmod +x coregrind/link_tool_exe_l4re ;;
10813 ac_clean_files=$ac_clean_files_save
10815 test $ac_write_fail = 0 ||
10816 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10819 # configure is writing to config.log, and then calls config.status.
10820 # config.status does its own redirection, appending to config.log.
10821 # Unfortunately, on DOS this fails, as config.log is still kept open
10822 # by configure, so config.status won't be able to write to it; its
10823 # output is simply discarded. So we exec the FD to /dev/null,
10824 # effectively closing config.log, so it can be properly (re)opened and
10825 # appended to by config.status. When coming back to configure, we
10826 # need to make the FD available again.
10827 if test "$no_create" != yes; then
10829 ac_config_status_args=
10830 test "$silent" = yes &&
10831 ac_config_status_args="$ac_config_status_args --quiet"
10833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10836 # would make configure fail if this is the last instruction.
10837 $ac_cs_success || as_fn_exit 1
10839 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10841 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10847 Maximum build arch: ${ARCH_MAX}
10848 Primary build arch: ${VGCONF_ARCH_PRI}
10849 Secondary build arch: ${VGCONF_ARCH_SEC}
10850 Build OS: ${VGCONF_OS}
10851 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10852 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10853 Default supp files: ${DEFAULT_SUPP}
10854 Generated supp files: ${GENERATED_SUPP}