2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Valgrind 3.7.0.SVN.
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: valgrind-users@lists.sourceforge.net about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='Valgrind'
582 PACKAGE_TARNAME='valgrind'
583 PACKAGE_VERSION='3.7.0.SVN'
584 PACKAGE_STRING='Valgrind 3.7.0.SVN'
585 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
588 ac_unique_file="coregrind/m_main.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars='am__EXEEXT_FALSE
629 HAVE_BUILTIN_ATOMIC_CXX_FALSE
630 HAVE_BUILTIN_ATOMIC_CXX_TRUE
631 HAVE_BUILTIN_ATOMIC_FALSE
632 HAVE_BUILTIN_ATOMIC_TRUE
635 HAVE_BOOST_1_35_FALSE
639 BUILD_MPIWRAP_SEC_FALSE
640 BUILD_MPIWRAP_SEC_TRUE
641 BUILD_MPIWRAP_PRI_FALSE
642 BUILD_MPIWRAP_PRI_TRUE
644 HAVE_PTHREAD_SPINLOCK_FALSE
645 HAVE_PTHREAD_SPINLOCK_TRUE
646 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
647 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
648 HAVE_PTHREAD_BARRIER_FALSE
649 HAVE_PTHREAD_BARRIER_TRUE
651 BUILD_SSE42_TESTS_FALSE
652 BUILD_SSE42_TESTS_TRUE
653 BUILD_LZCNT_TESTS_FALSE
654 BUILD_LZCNT_TESTS_TRUE
655 BUILD_PCLMULQDQ_TESTS_FALSE
656 BUILD_PCLMULQDQ_TESTS_TRUE
657 BUILD_SSSE3_TESTS_FALSE
658 BUILD_SSSE3_TESTS_TRUE
659 BUILD_SSE3_TESTS_FALSE
660 BUILD_SSE3_TESTS_TRUE
662 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
663 FLAG_FNO_STACK_PROTECTOR
665 FLAG_W_NO_UNINITIALIZED
668 FLAG_W_NO_FORMAT_ZERO_LENGTH
670 PREFERRED_STACK_BOUNDARY
677 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
678 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
688 VALT_LOAD_ADDRESS_SEC
689 VALT_LOAD_ADDRESS_PRI
690 VGCONF_HAVE_PLATFORM_SEC_FALSE
691 VGCONF_HAVE_PLATFORM_SEC_TRUE
692 VGCONF_OS_IS_L4RE_FALSE
693 VGCONF_OS_IS_L4RE_TRUE
694 VGCONF_OS_IS_DARWIN_FALSE
695 VGCONF_OS_IS_DARWIN_TRUE
696 VGCONF_OS_IS_AIX5_FALSE
697 VGCONF_OS_IS_AIX5_TRUE
698 VGCONF_OS_IS_LINUX_FALSE
699 VGCONF_OS_IS_LINUX_TRUE
700 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
701 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
702 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
703 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
704 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
705 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
706 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
707 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
708 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
709 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
710 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE
711 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE
712 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
713 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
714 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
715 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
716 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
717 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
718 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
719 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
720 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
721 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
722 VGCONF_ARCHS_INCLUDE_S390X_FALSE
723 VGCONF_ARCHS_INCLUDE_S390X_TRUE
724 VGCONF_ARCHS_INCLUDE_ARM_FALSE
725 VGCONF_ARCHS_INCLUDE_ARM_TRUE
726 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
727 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
728 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
729 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
730 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
731 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
732 VGCONF_ARCHS_INCLUDE_X86_FALSE
733 VGCONF_ARCHS_INCLUDE_X86_TRUE
734 VGCONF_PLATFORM_SEC_CAPS
735 VGCONF_PLATFORM_PRI_CAPS
748 am__fastdepCCAS_FALSE
783 MAINTAINER_MODE_FALSE
793 INSTALL_STRIP_PROGRAM
835 program_transform_name
848 enable_option_checking
849 enable_maintainer_mode
850 enable_dependency_tracking
857 ac_precious_vars='build_alias
874 # Initialize some variables set by options.
876 ac_init_version=false
877 ac_unrecognized_opts=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
888 program_transform_name=s,x,x,
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1221 eval with_$ac_useropt=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1237 eval with_$ac_useropt=no ;;
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1308 # Be sure to have absolute directory names.
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures Valgrind 3.7.0.SVN to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of Valgrind 3.7.0.SVN:";;
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-maintainer-mode enable make rules and dependencies not useful
1491 (and sometimes confusing) to the casual installer
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --enable-only64bit do a 64-bit only build
1495 --enable-only32bit do a 32-bit only build
1496 --enable-inner enables self-hosting
1497 --enable-tls platform supports TLS
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-mpicc= Specify name of MPI2-ised C compiler
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
1516 CCAS assembler compiler command (defaults to CC)
1517 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1522 Report bugs to <valgrind-users@lists.sourceforge.net>.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" ||
1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1552 .) # We are building in place.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1585 Valgrind configure 3.7.0.SVN
1586 generated by GNU Autoconf 2.69
1588 Copyright (C) 2012 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext
1606 if { { ac_try="$ac_compile"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_compile
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } > conftest.i && {
1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1674 # ac_fn_cxx_try_compile LINENO
1675 # ----------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_cxx_try_compile ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext
1681 if { { ac_try="$ac_compile"
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_cxx_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext; then :
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1710 } # ac_fn_cxx_try_compile
1712 # ac_fn_c_try_link LINENO
1713 # -----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest$ac_exeext
1719 if { { ac_try="$ac_link"
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>conftest.err
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest$ac_exeext && {
1738 test "$cross_compiling" = yes ||
1739 test -x conftest$ac_exeext
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750 # interfere with the next link command; also delete a directory that is
1751 # left behind by Apple's compiler. We do this before executing the actions.
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_c_try_link
1758 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1761 # the include files in INCLUDES and setting the cache variable VAR
1763 ac_fn_c_check_header_mongrel ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if eval \${$3+:} false; then :
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1776 # Is the header compilable?
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1778 $as_echo_n "checking $2 usability... " >&6; }
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 ac_header_compiler=yes
1787 ac_header_compiler=no
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1791 $as_echo "$ac_header_compiler" >&6; }
1793 # Is the header present?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1795 $as_echo_n "checking $2 presence... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1800 if ac_fn_c_try_cpp "$LINENO"; then :
1801 ac_header_preproc=yes
1803 ac_header_preproc=no
1805 rm -f conftest.err conftest.i conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1807 $as_echo "$ac_header_preproc" >&6; }
1809 # So? What about this header?
1810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1813 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1819 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1821 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1823 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1825 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ( $as_echo "## --------------------------------------------------- ##
1829 ## Report this to valgrind-users@lists.sourceforge.net ##
1830 ## --------------------------------------------------- ##"
1831 ) | sed "s/^/$as_me: WARNING: /" >&2
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1839 eval "$3=\$ac_header_compiler"
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1908 if ac_fn_c_try_compile "$LINENO"; then :
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1923 # -------------------------------------------
1924 # Tests whether TYPE exists after having included INCLUDES, setting cache
1925 # variable VAR accordingly.
1926 ac_fn_c_check_type ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1960 if ac_fn_c_try_compile "$LINENO"; then :
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_type
1976 # ac_fn_c_check_func LINENO FUNC VAR
1977 # ----------------------------------
1978 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1979 ac_fn_c_check_func ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1991 #define $2 innocuous_$2
1993 /* System header to define __stub macros and hopefully few prototypes,
1994 which can conflict with char $2 (); below.
1995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1996 <limits.h> exists even on freestanding compilers. */
1999 # include <limits.h>
2001 # include <assert.h>
2006 /* Override any GCC internal prototype to avoid an error.
2007 Use char because int might match the return type of a GCC
2008 builtin and then its argument prototype would still apply. */
2013 /* The GNU C library defines this for functions which it implements
2014 to always fail with ENOSYS. Some functions are actually named
2015 something starting with __ and the normal name is an alias. */
2016 #if defined __stub_$2 || defined __stub___$2
2028 if ac_fn_c_try_link "$LINENO"; then :
2033 rm -f core conftest.err conftest.$ac_objext \
2034 conftest$ac_exeext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_check_func
2043 # ac_fn_cxx_try_link LINENO
2044 # -------------------------
2045 # Try to link conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_cxx_try_link ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 rm -f conftest.$ac_objext conftest$ac_exeext
2050 if { { ac_try="$ac_link"
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_link") 2>conftest.err
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && {
2066 test -z "$ac_cxx_werror_flag" ||
2067 test ! -s conftest.err
2068 } && test -s conftest$ac_exeext && {
2069 test "$cross_compiling" = yes ||
2070 test -x conftest$ac_exeext
2074 $as_echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2079 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2080 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2081 # interfere with the next link command; also delete a directory that is
2082 # left behind by Apple's compiler. We do this before executing the actions.
2083 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 as_fn_set_status $ac_retval
2087 } # ac_fn_cxx_try_link
2088 cat >config.log <<_ACEOF
2089 This file contains any messages produced by compilers while
2090 running configure, to aid debugging if configure makes a mistake.
2092 It was created by Valgrind $as_me 3.7.0.SVN, which was
2093 generated by GNU Autoconf 2.69. Invocation command line was
2105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2117 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 $as_echo "PATH: $as_dir"
2145 # Keep a trace of the command line.
2146 # Strip out --no-create and --no-recursion so they do not pile up.
2147 # Strip out --silent because we don't want to record it for future runs.
2148 # Also quote any args containing shell meta-characters.
2149 # Make two passes to allow for proper duplicate-argument suppression.
2153 ac_must_keep_next=false
2159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2161 | -silent | --silent | --silen | --sile | --sil)
2164 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2169 as_fn_append ac_configure_args1 " '$ac_arg'"
2170 if test $ac_must_keep_next = true; then
2171 ac_must_keep_next=false # Got value, back to normal.
2174 *=* | --config-cache | -C | -disable-* | --disable-* \
2175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2177 | -with-* | --with-* | -without-* | --without-* | --x)
2178 case "$ac_configure_args0 " in
2179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 -* ) ac_must_keep_next=true ;;
2185 as_fn_append ac_configure_args " '$ac_arg'"
2190 { ac_configure_args0=; unset ac_configure_args0;}
2191 { ac_configure_args1=; unset ac_configure_args1;}
2193 # When interrupted or exit'd, cleanup temporary files, and complete
2194 # config.log. We remove comments because anyway the quotes in there
2195 # would cause problems or look ugly.
2196 # WARNING: Use '\'' to represent an apostrophe within the trap.
2197 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2198 trap 'exit_status=$?
2199 # Save into config.log some information that might help in debugging.
2203 $as_echo "## ---------------- ##
2204 ## Cache variables. ##
2205 ## ---------------- ##"
2207 # The following way of writing the cache mishandles newlines in values,
2209 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2210 eval ac_val=\$$ac_var
2214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218 _ | IFS | as_nl) ;; #(
2219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2220 *) { eval $ac_var=; unset $ac_var;} ;;
2225 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2226 *${as_nl}ac_space=\ *)
2228 "s/'\''/'\''\\\\'\'''\''/g;
2229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 $as_echo "## ----------------- ##
2240 ## Output variables. ##
2241 ## ----------------- ##"
2243 for ac_var in $ac_subst_vars
2245 eval ac_val=\$$ac_var
2247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249 $as_echo "$ac_var='\''$ac_val'\''"
2253 if test -n "$ac_subst_files"; then
2254 $as_echo "## ------------------- ##
2255 ## File substitutions. ##
2256 ## ------------------- ##"
2258 for ac_var in $ac_subst_files
2260 eval ac_val=\$$ac_var
2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264 $as_echo "$ac_var='\''$ac_val'\''"
2269 if test -s confdefs.h; then
2270 $as_echo "## ----------- ##
2277 test "$ac_signal" != 0 &&
2278 $as_echo "$as_me: caught signal $ac_signal"
2279 $as_echo "$as_me: exit $exit_status"
2281 rm -f core *.core core.conftest.* &&
2282 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285 for ac_signal in 1 2 13 15; do
2286 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2290 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2291 rm -f -r conftest* confdefs.h
2293 $as_echo "/* confdefs.h */" > confdefs.h
2295 # Predefined preprocessor variables.
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_NAME "$PACKAGE_NAME"
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_STRING "$PACKAGE_STRING"
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_URL "$PACKAGE_URL"
2322 # Let the site file select an alternate cache file if it wants to.
2323 # Prefer an explicitly selected file to automatically selected ones.
2326 if test -n "$CONFIG_SITE"; then
2327 # We do not want a PATH search for config.site.
2328 case $CONFIG_SITE in #((
2329 -*) ac_site_file1=./$CONFIG_SITE;;
2330 */*) ac_site_file1=$CONFIG_SITE;;
2331 *) ac_site_file1=./$CONFIG_SITE;;
2333 elif test "x$prefix" != xNONE; then
2334 ac_site_file1=$prefix/share/config.site
2335 ac_site_file2=$prefix/etc/config.site
2337 ac_site_file1=$ac_default_prefix/share/config.site
2338 ac_site_file2=$ac_default_prefix/etc/config.site
2340 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2342 test "x$ac_site_file" = xNONE && continue
2343 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2345 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2346 sed 's/^/| /' "$ac_site_file" >&5
2348 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 as_fn_error $? "failed to load site script $ac_site_file
2351 See \`config.log' for more details" "$LINENO" 5; }
2355 if test -r "$cache_file"; then
2356 # Some versions of bash will fail to source /dev/null (special files
2357 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2358 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2360 $as_echo "$as_me: loading cache $cache_file" >&6;}
2362 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2363 *) . "./$cache_file";;
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2368 $as_echo "$as_me: creating cache $cache_file" >&6;}
2372 as_fn_append ac_header_list " stdlib.h"
2373 as_fn_append ac_header_list " unistd.h"
2374 as_fn_append ac_header_list " sys/param.h"
2375 # Check that the precious variables saved in the cache have kept the same
2377 ac_cache_corrupted=false
2378 for ac_var in $ac_precious_vars; do
2379 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380 eval ac_new_set=\$ac_env_${ac_var}_set
2381 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382 eval ac_new_val=\$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w=`echo x $ac_old_val`
2397 ac_new_val_w=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted=:
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\$ac_old_val
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2416 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg=$ac_var=$ac_new_val ;;
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 ac_config_headers="$ac_config_headers config.h"
2446 am__api_version='1.11'
2449 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2450 if test -f "$ac_dir/install-sh"; then
2452 ac_install_sh="$ac_aux_dir/install-sh -c"
2454 elif test -f "$ac_dir/install.sh"; then
2456 ac_install_sh="$ac_aux_dir/install.sh -c"
2458 elif test -f "$ac_dir/shtool"; then
2460 ac_install_sh="$ac_aux_dir/shtool install -c"
2464 if test -z "$ac_aux_dir"; then
2465 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2468 # These three variables are undocumented and unsupported,
2469 # and are intended to be withdrawn in a future Autoconf release.
2470 # They can cause serious problems if a builder's source tree is in a directory
2471 # whose full name contains unusual characters.
2472 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2473 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2474 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2477 # Find a good install program. We prefer a C program (faster),
2478 # so one script is as good as another. But avoid the broken or
2479 # incompatible versions:
2480 # SysV /etc/install, /usr/sbin/install
2481 # SunOS /usr/etc/install
2482 # IRIX /sbin/install
2484 # AmigaOS /C/install, which installs bootblocks on floppy discs
2485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488 # OS/2's system install, which has a completely different semantic
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 # Reject install programs that cannot install multiple files.
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2492 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2493 if test -z "$INSTALL"; then
2494 if ${ac_cv_path_install+:} false; then :
2495 $as_echo_n "(cached) " >&6
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 test -z "$as_dir" && as_dir=.
2502 # Account for people who put trailing slashes in PATH elements.
2503 case $as_dir/ in #((
2504 ./ | .// | /[cC]/* | \
2505 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2506 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2509 # OSF1 and SCO ODT 3.0 have their own names for install.
2510 # Don't use installbsd from OSF since it installs stuff as root
2512 for ac_prog in ginstall scoinst install; do
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2515 if test $ac_prog = install &&
2516 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # AIX install. It has an incompatible calling convention.
2519 elif test $ac_prog = install &&
2520 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # program-specific install script used by HP pwplus--don't use.
2524 rm -rf conftest.one conftest.two conftest.dir
2525 echo one > conftest.one
2526 echo two > conftest.two
2528 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2529 test -s conftest.one && test -s conftest.two &&
2530 test -s conftest.dir/conftest.one &&
2531 test -s conftest.dir/conftest.two
2533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2546 rm -rf conftest.one conftest.two conftest.dir
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2552 # As a last resort, use the slow shell script. Don't cache a
2553 # value for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the value is a relative name.
2556 INSTALL=$ac_install_sh
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2560 $as_echo "$INSTALL" >&6; }
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2571 $as_echo_n "checking whether build environment is sane... " >&6; }
2574 echo timestamp > conftest.file
2575 # Reject unsafe characters in $srcdir or the absolute working directory
2576 # name. Accept space and tab only in the latter.
2580 *[\\\"\#\$\&\'\`$am_lf]*)
2581 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2584 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2585 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2588 # Do `set' in a subshell so we don't clobber the current shell's
2589 # arguments. Must try -L first in case configure is actually a
2590 # symlink; some systems play weird games with the mod time of symlinks
2591 # (eg FreeBSD returns the mod time of the symlink's containing
2594 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2595 if test "$*" = "X"; then
2597 set X `ls -t "$srcdir/configure" conftest.file`
2600 if test "$*" != "X $srcdir/configure conftest.file" \
2601 && test "$*" != "X conftest.file $srcdir/configure"; then
2603 # If neither matched, then we have a broken ls. This can happen
2604 # if, for instance, CONFIG_SHELL is bash and it inherits a
2605 # broken ls alias from the environment. This has actually
2606 # happened. Such a system could not be considered "sane".
2607 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2608 alias in your environment" "$LINENO" 5
2611 test "$2" = conftest.file
2617 as_fn_error $? "newly created file is older than distributed files!
2618 Check your system clock" "$LINENO" 5
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 test "$program_prefix" != NONE &&
2623 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2624 # Use a double $ so make ignores it.
2625 test "$program_suffix" != NONE &&
2626 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2627 # Double any \ or $.
2628 # By default was `s,x,x', remove it if useless.
2629 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2630 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2635 if test x"${MISSING+set}" != xset; then
2638 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2640 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2643 # Use eval to expand $SHELL
2644 if eval "$MISSING --run true"; then
2645 am_missing_run="$MISSING --run "
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2649 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2652 if test x"${install_sh}" != xset; then
2655 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2657 install_sh="\${SHELL} $am_aux_dir/install-sh"
2661 # Installed binaries are usually stripped using `strip' when the user
2662 # run `make install-strip'. However `strip' might not be the right
2663 # tool to use in cross-compilation environments, therefore Automake
2664 # will honor the `STRIP' environment variable to overrule this program.
2665 if test "$cross_compiling" != no; then
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}strip; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_STRIP+:} false; then :
2672 $as_echo_n "(cached) " >&6
2674 if test -n "$STRIP"; then
2675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 STRIP=$ac_cv_prog_STRIP
2695 if test -n "$STRIP"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2697 $as_echo "$STRIP" >&6; }
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2705 if test -z "$ac_cv_prog_STRIP"; then
2707 # Extract the first word of "strip", so it can be a program name with args.
2708 set dummy strip; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$ac_ct_STRIP"; then
2715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724 ac_cv_prog_ac_ct_STRIP="strip"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2735 if test -n "$ac_ct_STRIP"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2737 $as_echo "$ac_ct_STRIP" >&6; }
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2743 if test "x$ac_ct_STRIP" = x; then
2746 case $cross_compiling:$ac_tool_warned in
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2755 STRIP="$ac_cv_prog_STRIP"
2759 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2762 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2763 if test -z "$MKDIR_P"; then
2764 if ${ac_cv_path_mkdir+:} false; then :
2765 $as_echo_n "(cached) " >&6
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2771 test -z "$as_dir" && as_dir=.
2772 for ac_prog in mkdir gmkdir; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2775 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2776 'mkdir (GNU coreutils) '* | \
2777 'mkdir (coreutils) '* | \
2778 'mkdir (fileutils) '4.1*)
2779 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2789 test -d ./--version && rmdir ./--version
2790 if test "${ac_cv_path_mkdir+set}" = set; then
2791 MKDIR_P="$ac_cv_path_mkdir -p"
2793 # As a last resort, use the slow shell script. Don't cache a
2794 # value for MKDIR_P within a source directory, because that will
2795 # break other packages using the cache if that directory is
2796 # removed, or if the value is a relative name.
2797 MKDIR_P="$ac_install_sh -d"
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2801 $as_echo "$MKDIR_P" >&6; }
2805 [\\/$]* | ?:[\\/]*) ;;
2806 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2809 for ac_prog in gawk mawk nawk awk
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_AWK+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$AWK"; then
2819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_AWK="$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$AWK"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$AWK" && break
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 cat >conftest.make <<\_ACEOF
2861 @echo '@@@%%%=$(MAKE)=@@@%%%'
2863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2866 eval ac_cv_prog_make_${ac_make}_set=yes;;
2868 eval ac_cv_prog_make_${ac_make}_set=no;;
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 SET_MAKE="MAKE=${MAKE-make}"
2882 rm -rf .tst 2>/dev/null
2883 mkdir .tst 2>/dev/null
2884 if test -d .tst; then
2889 rmdir .tst 2>/dev/null
2891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893 # is not polluted with repeated "-I."
2894 am__isrc=' -I$(srcdir)'
2895 # test to see if srcdir already configured
2896 if test -f $srcdir/config.status; then
2897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2901 # test whether we have cygpath
2902 if test -z "$CYGPATH_W"; then
2903 if (cygpath --version) >/dev/null 2>/dev/null; then
2904 CYGPATH_W='cygpath -w'
2911 # Define the identity of the package.
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE "$PACKAGE"
2921 cat >>confdefs.h <<_ACEOF
2922 #define VERSION "$VERSION"
2925 # Some tools Automake needs.
2927 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2930 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2933 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2936 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2939 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2941 # We need awk for the "check" target. The system "awk" is bad on
2943 # Always define AMTAR for backward compatibility.
2945 AMTAR=${AMTAR-"${am_missing_run}tar"}
2947 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2956 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2957 # Check whether --enable-maintainer-mode was given.
2958 if test "${enable_maintainer_mode+set}" = set; then :
2959 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2961 USE_MAINTAINER_MODE=no
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2965 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2966 if test $USE_MAINTAINER_MODE = yes; then
2967 MAINTAINER_MODE_TRUE=
2968 MAINTAINER_MODE_FALSE='#'
2970 MAINTAINER_MODE_TRUE='#'
2971 MAINTAINER_MODE_FALSE=
2974 MAINT=$MAINTAINER_MODE_TRUE
2978 #----------------------------------------------------------------------------
2979 # Checks for various programs.
2980 #----------------------------------------------------------------------------
2981 CFLAGS="-Wno-long-long $CFLAGS"
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2984 $as_echo_n "checking whether ln -s works... " >&6; }
2986 if test "$LN_S" = "ln -s"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2991 $as_echo "no, using $LN_S" >&6; }
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3038 if test -z "$ac_cv_prog_CC"; then
3040 # Extract the first word of "gcc", so it can be a program name with args.
3041 set dummy gcc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_ac_ct_CC="gcc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3076 if test "x$ac_ct_CC" = x; then
3079 case $cross_compiling:$ac_tool_warned in
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083 ac_tool_warned=yes ;;
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}cc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}cc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3132 if test -z "$CC"; then
3133 # Extract the first word of "cc", so it can be a program name with args.
3134 set dummy cc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152 ac_prog_rejected=yes
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 if test $ac_prog_rejected = yes; then
3164 # We found a bogon in the path, so make sure we never use it.
3165 set dummy $ac_cv_prog_CC
3167 if test $# != 0; then
3168 # We chose a different compiler from the bogus one.
3169 # However, it has the same basename, so the bogon will be chosen
3170 # first if we set CC to just the basename; use the full file name.
3172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$CC"; then
3189 if test -n "$ac_tool_prefix"; then
3190 for ac_prog in cl.exe
3192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3229 test -n "$CC" && break
3232 if test -z "$CC"; then
3234 for ac_prog in cl.exe
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_ac_ct_CC="$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266 $as_echo "$ac_ct_CC" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3273 test -n "$ac_ct_CC" && break
3276 if test "x$ac_ct_CC" = x; then
3279 case $cross_compiling:$ac_tool_warned in
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283 ac_tool_warned=yes ;;
3292 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "no acceptable C compiler found in \$PATH
3295 See \`config.log' for more details" "$LINENO" 5; }
3297 # Provide some information about the compiler.
3298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3301 for ac_option in --version -v -V -qversion; do
3302 { { ac_try="$ac_compiler $ac_option >&5"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3311 if test -s conftest.err; then
3313 ... rest of stderr output deleted ...
3314 10q' conftest.err >conftest.er1
3315 cat conftest.er1 >&5
3317 rm -f conftest.er1 conftest.err
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3333 ac_clean_files_save=$ac_clean_files
3334 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335 # Try to create an executable without -o first, disregard a.out.
3336 # It will help us diagnose broken compilers, and finding out an intuition
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339 $as_echo_n "checking whether the C compiler works... " >&6; }
3340 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342 # The possible output files:
3343 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3346 for ac_file in $ac_files
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3355 if { { ac_try="$ac_link_default"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link_default") 2>&5
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3367 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3368 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3369 # so that the user can short-circuit this test for compilers unknown to
3371 for ac_file in $ac_files ''
3373 test -f "$ac_file" || continue
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3378 # We found the default executable, but exeext='' is most
3382 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3384 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386 # We set ac_cv_exeext here because the later test for it is not
3387 # safe: cross compilers may not add the suffix if given an `-o'
3388 # argument, so we may need to know it at that point already.
3389 # Even if this section looks crufty: it has the advantage of
3396 test "$ac_cv_exeext" = no && ac_cv_exeext=
3401 if test -z "$ac_file"; then :
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error 77 "C compiler cannot create executables
3410 See \`config.log' for more details" "$LINENO" 5; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416 $as_echo_n "checking for C compiler default output file name... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418 $as_echo "$ac_file" >&6; }
3419 ac_exeext=$ac_cv_exeext
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424 $as_echo_n "checking for suffix of executables... " >&6; }
3425 if { { ac_try="$ac_link"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link") 2>&5
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 for ac_file in conftest.exe conftest conftest.*; do
3441 test -f "$ac_file" || continue
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details" "$LINENO" 5; }
3455 rm -f conftest conftest$ac_cv_exeext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457 $as_echo "$ac_cv_exeext" >&6; }
3459 rm -f conftest.$ac_ext
3460 EXEEXT=$ac_cv_exeext
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3468 FILE *f = fopen ("conftest.out", "w");
3469 return ferror (f) || fclose (f) != 0;
3475 ac_clean_files="$ac_clean_files conftest.out"
3476 # Check that the compiler produces executables we can run. If not, either
3477 # the compiler is broken, or we cross compile.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479 $as_echo_n "checking whether we are cross compiling... " >&6; }
3480 if test "$cross_compiling" != yes; then
3481 { { ac_try="$ac_link"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_link") 2>&5
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 if { ac_try='./conftest$ac_cv_exeext'
3493 { { case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_try") 2>&5
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; }; then
3505 if test "$cross_compiling" = maybe; then
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "cannot run C compiled programs.
3511 If you meant to cross compile, use \`--host'.
3512 See \`config.log' for more details" "$LINENO" 5; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517 $as_echo "$cross_compiling" >&6; }
3519 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3520 ac_clean_files=$ac_clean_files_save
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522 $as_echo_n "checking for suffix of object files... " >&6; }
3523 if ${ac_cv_objext+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3537 rm -f conftest.o conftest.obj
3538 if { { ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compile") 2>&5
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; then :
3549 for ac_file in conftest.o conftest.obj conftest.*; do
3550 test -f "$ac_file" || continue;
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "cannot compute suffix of object files: cannot compile
3564 See \`config.log' for more details" "$LINENO" 5; }
3566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569 $as_echo "$ac_cv_objext" >&6; }
3570 OBJEXT=$ac_cv_objext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574 if ${ac_cv_c_compiler_gnu+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3591 if ac_fn_c_try_compile "$LINENO"; then :
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602 if test $ac_compiler_gnu = yes; then
3607 ac_test_CFLAGS=${CFLAGS+set}
3608 ac_save_CFLAGS=$CFLAGS
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3611 if ${ac_cv_prog_cc_g+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 ac_save_c_werror_flag=$ac_c_werror_flag
3615 ac_c_werror_flag=yes
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3629 if ac_fn_c_try_compile "$LINENO"; then :
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3644 if ac_fn_c_try_compile "$LINENO"; then :
3647 ac_c_werror_flag=$ac_save_c_werror_flag
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 if ac_fn_c_try_compile "$LINENO"; then :
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671 $as_echo "$ac_cv_prog_cc_g" >&6; }
3672 if test "$ac_test_CFLAGS" = set; then
3673 CFLAGS=$ac_save_CFLAGS
3674 elif test $ac_cv_prog_cc_g = yes; then
3675 if test "$GCC" = yes; then
3681 if test "$GCC" = yes; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689 if ${ac_cv_prog_cc_c89+:} false; then :
3690 $as_echo_n "(cached) " >&6
3692 ac_cv_prog_cc_c89=no
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3699 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3700 struct buf { int x; };
3701 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702 static char *e (p, i)
3708 static char *f (char * (*g) (char **, int), char **p, ...)
3713 s = g (p, va_arg (v,int));
3718 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3719 function prototypes and stuff, but not '\xHH' hex character constants.
3720 These don't provoke an error unfortunately, instead are silently treated
3721 as 'x'. The following induces an error, until -std is added to get
3722 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3723 array size at least. It's necessary to write '\x00'==0 to get something
3724 that's true only with -std. */
3725 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3727 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728 inside strings and character constants. */
3730 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3732 int test (int i, double x);
3733 struct s1 {int (*f) (int a);};
3734 struct s2 {int (*f) (double a);};
3735 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3741 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3746 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749 CC="$ac_save_CC $ac_arg"
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_c89=$ac_arg
3753 rm -f core conftest.err conftest.$ac_objext
3754 test "x$ac_cv_prog_cc_c89" != "xno" && break
3756 rm -f conftest.$ac_ext
3761 case "x$ac_cv_prog_cc_c89" in
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764 $as_echo "none needed" >&6; } ;;
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3767 $as_echo "unsupported" >&6; } ;;
3769 CC="$CC $ac_cv_prog_cc_c89"
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3771 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3773 if test "x$ac_cv_prog_cc_c89" != xno; then :
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 DEPDIR="${am__leading_dot}deps"
3784 ac_config_commands="$ac_config_commands depfiles"
3787 am_make=${MAKE-make}
3788 cat > confinc << 'END'
3790 @echo this is the am__doit target
3793 # If we don't find an include directive, just comment out the code.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3795 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3799 # First try GNU make style include.
3800 echo "include confinc" > confmf
3801 # Ignore all kinds of additional output from `make'.
3802 case `$am_make -s -f confmf 2> /dev/null` in #(
3803 *the\ am__doit\ target*)
3809 # Now try BSD make style include.
3810 if test "$am__include" = "#"; then
3811 echo '.include "confinc"' > confmf
3812 case `$am_make -s -f confmf 2> /dev/null` in #(
3813 *the\ am__doit\ target*)
3814 am__include=.include
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3823 $as_echo "$_am_result" >&6; }
3824 rm -f confinc confmf
3826 # Check whether --enable-dependency-tracking was given.
3827 if test "${enable_dependency_tracking+set}" = set; then :
3828 enableval=$enable_dependency_tracking;
3831 if test "x$enable_dependency_tracking" != xno; then
3832 am_depcomp="$ac_aux_dir/depcomp"
3835 if test "x$enable_dependency_tracking" != xno; then
3845 depcc="$CC" am_compiler_list=
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3848 $as_echo_n "checking dependency style of $depcc... " >&6; }
3849 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3850 $as_echo_n "(cached) " >&6
3852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3853 # We make a subdir and do the tests there. Otherwise we can end up
3854 # making bogus files that we don't know about and never remove. For
3855 # instance it was reported that on HP-UX the gcc test will end up
3856 # making a dummy file named `D' -- because `-MD' means `put the output
3859 # Copy depcomp to subdir because otherwise we won't find it if we're
3860 # using a relative directory.
3861 cp "$am_depcomp" conftest.dir
3863 # We will build objects and dependencies in a subdirectory because
3864 # it helps to detect inapplicable dependency modes. For instance
3865 # both Tru64's cc and ICC support -MD to output dependencies as a
3866 # side effect of compilation, but ICC will put the dependencies in
3867 # the current directory while Tru64 will put them in the object
3871 am_cv_CC_dependencies_compiler_type=none
3872 if test "$am_compiler_list" = ""; then
3873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3876 case " $depcc " in #(
3877 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3880 for depmode in $am_compiler_list; do
3881 # Setup a source with many dependencies, because some compilers
3882 # like to wrap large dependency lists on column 80 (with \), and
3883 # we should not choose a depcomp mode which is confused by this.
3885 # We need to recreate these files for each test, as the compiler may
3886 # overwrite some of them when testing with obscure command lines.
3887 # This happens at least with the AIX C compiler.
3889 for i in 1 2 3 4 5 6; do
3890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3892 # Solaris 8's {/usr,}/bin/sh.
3893 touch sub/conftst$i.h
3895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3897 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3898 # mode. It turns out that the SunPro C++ compiler does not properly
3899 # handle `-M -o', and we need to detect this. Also, some Intel
3900 # versions had trouble with output in subdirs
3901 am__obj=sub/conftest.${OBJEXT-o}
3902 am__minus_obj="-o $am__obj"
3905 # This depmode causes a compiler race in universal mode.
3906 test "$am__universal" = false || continue
3909 # after this tag, mechanisms are not by side-effect, so they'll
3910 # only be used when explicitly requested
3911 if test "x$enable_dependency_tracking" = xyes; then
3917 msvisualcpp | msvcmsys)
3918 # This compiler won't grok `-c -o', but also, the minuso test has
3919 # not run yet. These depmodes are late enough in the game, and
3920 # so weak that their functioning should not be impacted.
3921 am__obj=conftest.${OBJEXT-o}
3926 if depmode=$depmode \
3927 source=sub/conftest.c object=$am__obj \
3928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3930 >/dev/null 2>conftest.err &&
3931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3935 # icc doesn't choke on unknown options, it will just issue warnings
3936 # or remarks (even with -Werror). So we grep stderr for any message
3937 # that says an option was ignored or not supported.
3938 # When given -MP, icc 7.0 and 7.1 complain thusly:
3939 # icc: Command line warning: ignoring option '-M'; no argument required
3940 # The diagnosis changed in icc 8.0:
3941 # icc: Command line remark: option '-MP' not supported
3942 if (grep 'ignoring option' conftest.err ||
3943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3944 am_cv_CC_dependencies_compiler_type=$depmode
3953 am_cv_CC_dependencies_compiler_type=none
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3958 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3959 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3962 test "x$enable_dependency_tracking" != xno \
3963 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3965 am__fastdepCC_FALSE='#'
3967 am__fastdepCC_TRUE='#'
3968 am__fastdepCC_FALSE=
3972 if test "x$CC" != xcc; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3974 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3977 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3979 set dummy $CC; ac_cc=`$as_echo "$2" |
3980 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3981 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3982 $as_echo_n "(cached) " >&6
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3995 # Make sure it works both with $CC and with simple cc.
3996 # We do the test twice because some compilers refuse to overwrite an
3997 # existing .o file with -o, though they will create one.
3998 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4000 if { { case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_try") 2>&5
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; } &&
4010 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_try") 2>&5
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; };
4021 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4022 if test "x$CC" != xcc; then
4023 # Test first that cc exists at all.
4024 if { ac_try='cc -c conftest.$ac_ext >&5'
4025 { { case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_try") 2>&5
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }; }; then
4035 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4037 if { { case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043 (eval "$ac_try") 2>&5
4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; } &&
4047 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_try") 2>&5
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; };
4061 # cc exists but doesn't like -o.
4062 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4067 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4069 rm -f core conftest*
4072 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074 $as_echo "yes" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4079 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4083 # FIXME: we rely on the cache variable name because
4084 # there is no other way.
4086 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4087 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4088 if test "$am_t" != yes; then
4089 # Losing compiler, so override with the script.
4090 # FIXME: It is wrong to rewrite CC.
4091 # But if we don't then we get into trouble of one sort or another.
4092 # A longer-term fix would be to have automake use am__CC in this case,
4093 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4094 CC="$am_aux_dir/compile $CC"
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4104 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4105 # On Suns, sometimes $CPP names a directory.
4106 if test -n "$CPP" && test -d "$CPP"; then
4109 if test -z "$CPP"; then
4110 if ${ac_cv_prog_CPP+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 # Double quotes because CPP needs to be expanded
4114 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4117 for ac_c_preproc_warn_flag in '' yes
4119 # Use a header file that comes with gcc, so configuring glibc
4120 # with a fresh cross-compiler works.
4121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4122 # <limits.h> exists even on freestanding compilers.
4123 # On the NeXT, cc -E runs the code through the compiler's parser,
4124 # not just through cpp. "Syntax error" is here to catch this case.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4128 # include <limits.h>
4130 # include <assert.h>
4134 if ac_fn_c_try_cpp "$LINENO"; then :
4137 # Broken: fails on valid input.
4140 rm -f conftest.err conftest.i conftest.$ac_ext
4142 # OK, works on sane cases. Now check whether nonexistent headers
4143 # can be detected and how.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #include <ac_nonexistent.h>
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4149 # Broken: success on invalid input.
4152 # Passes both tests.
4156 rm -f conftest.err conftest.i conftest.$ac_ext
4159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160 rm -f conftest.i conftest.err conftest.$ac_ext
4161 if $ac_preproc_ok; then :
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4174 $as_echo "$CPP" >&6; }
4176 for ac_c_preproc_warn_flag in '' yes
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4187 # include <limits.h>
4189 # include <assert.h>
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4196 # Broken: fails on valid input.
4199 rm -f conftest.err conftest.i conftest.$ac_ext
4201 # OK, works on sane cases. Now check whether nonexistent headers
4202 # can be detected and how.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <ac_nonexistent.h>
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208 # Broken: success on invalid input.
4211 # Passes both tests.
4215 rm -f conftest.err conftest.i conftest.$ac_ext
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.i conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then :
4223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log' for more details" "$LINENO" 5; }
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 ac_cpp='$CXXCPP $CPPFLAGS'
4237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4240 if test -z "$CXX"; then
4241 if test -n "$CCC"; then
4244 if test -n "$ac_tool_prefix"; then
4245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_prog_CXX+:} false; then :
4252 $as_echo_n "(cached) " >&6
4254 if test -n "$CXX"; then
4255 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 if test -n "$CXX"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4277 $as_echo "$CXX" >&6; }
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4284 test -n "$CXX" && break
4287 if test -z "$CXX"; then
4289 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4291 # Extract the first word of "$ac_prog", so it can be a program name with args.
4292 set dummy $ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -n "$ac_ct_CXX"; then
4299 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308 ac_cv_prog_ac_ct_CXX="$ac_prog"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4319 if test -n "$ac_ct_CXX"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4321 $as_echo "$ac_ct_CXX" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4328 test -n "$ac_ct_CXX" && break
4331 if test "x$ac_ct_CXX" = x; then
4334 case $cross_compiling:$ac_tool_warned in
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4346 # Provide some information about the compiler.
4347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4350 for ac_option in --version -v -V -qversion; do
4351 { { ac_try="$ac_compiler $ac_option >&5"
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357 $as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4360 if test -s conftest.err; then
4362 ... rest of stderr output deleted ...
4363 10q' conftest.err >conftest.er1
4364 cat conftest.er1 >&5
4366 rm -f conftest.er1 conftest.err
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4372 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4373 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4374 $as_echo_n "(cached) " >&6
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4390 if ac_fn_cxx_try_compile "$LINENO"; then :
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4400 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4401 if test $ac_compiler_gnu = yes; then
4406 ac_test_CXXFLAGS=${CXXFLAGS+set}
4407 ac_save_CXXFLAGS=$CXXFLAGS
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4409 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4410 if ${ac_cv_prog_cxx_g+:} false; then :
4411 $as_echo_n "(cached) " >&6
4413 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4414 ac_cxx_werror_flag=yes
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4428 if ac_fn_cxx_try_compile "$LINENO"; then :
4429 ac_cv_prog_cxx_g=yes
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4443 if ac_fn_cxx_try_compile "$LINENO"; then :
4446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4459 if ac_fn_cxx_try_compile "$LINENO"; then :
4460 ac_cv_prog_cxx_g=yes
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4470 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4471 if test "$ac_test_CXXFLAGS" = set; then
4472 CXXFLAGS=$ac_save_CXXFLAGS
4473 elif test $ac_cv_prog_cxx_g = yes; then
4474 if test "$GXX" = yes; then
4480 if test "$GXX" = yes; then
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492 depcc="$CXX" am_compiler_list=
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4495 $as_echo_n "checking dependency style of $depcc... " >&6; }
4496 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4500 # We make a subdir and do the tests there. Otherwise we can end up
4501 # making bogus files that we don't know about and never remove. For
4502 # instance it was reported that on HP-UX the gcc test will end up
4503 # making a dummy file named `D' -- because `-MD' means `put the output
4506 # Copy depcomp to subdir because otherwise we won't find it if we're
4507 # using a relative directory.
4508 cp "$am_depcomp" conftest.dir
4510 # We will build objects and dependencies in a subdirectory because
4511 # it helps to detect inapplicable dependency modes. For instance
4512 # both Tru64's cc and ICC support -MD to output dependencies as a
4513 # side effect of compilation, but ICC will put the dependencies in
4514 # the current directory while Tru64 will put them in the object
4518 am_cv_CXX_dependencies_compiler_type=none
4519 if test "$am_compiler_list" = ""; then
4520 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4523 case " $depcc " in #(
4524 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4527 for depmode in $am_compiler_list; do
4528 # Setup a source with many dependencies, because some compilers
4529 # like to wrap large dependency lists on column 80 (with \), and
4530 # we should not choose a depcomp mode which is confused by this.
4532 # We need to recreate these files for each test, as the compiler may
4533 # overwrite some of them when testing with obscure command lines.
4534 # This happens at least with the AIX C compiler.
4536 for i in 1 2 3 4 5 6; do
4537 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4539 # Solaris 8's {/usr,}/bin/sh.
4540 touch sub/conftst$i.h
4542 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4544 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4545 # mode. It turns out that the SunPro C++ compiler does not properly
4546 # handle `-M -o', and we need to detect this. Also, some Intel
4547 # versions had trouble with output in subdirs
4548 am__obj=sub/conftest.${OBJEXT-o}
4549 am__minus_obj="-o $am__obj"
4552 # This depmode causes a compiler race in universal mode.
4553 test "$am__universal" = false || continue
4556 # after this tag, mechanisms are not by side-effect, so they'll
4557 # only be used when explicitly requested
4558 if test "x$enable_dependency_tracking" = xyes; then
4564 msvisualcpp | msvcmsys)
4565 # This compiler won't grok `-c -o', but also, the minuso test has
4566 # not run yet. These depmodes are late enough in the game, and
4567 # so weak that their functioning should not be impacted.
4568 am__obj=conftest.${OBJEXT-o}
4573 if depmode=$depmode \
4574 source=sub/conftest.c object=$am__obj \
4575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4576 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4577 >/dev/null 2>conftest.err &&
4578 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4580 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4582 # icc doesn't choke on unknown options, it will just issue warnings
4583 # or remarks (even with -Werror). So we grep stderr for any message
4584 # that says an option was ignored or not supported.
4585 # When given -MP, icc 7.0 and 7.1 complain thusly:
4586 # icc: Command line warning: ignoring option '-M'; no argument required
4587 # The diagnosis changed in icc 8.0:
4588 # icc: Command line remark: option '-MP' not supported
4589 if (grep 'ignoring option' conftest.err ||
4590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4591 am_cv_CXX_dependencies_compiler_type=$depmode
4600 am_cv_CXX_dependencies_compiler_type=none
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4605 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4606 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4609 test "x$enable_dependency_tracking" != xno \
4610 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4611 am__fastdepCXX_TRUE=
4612 am__fastdepCXX_FALSE='#'
4614 am__fastdepCXX_TRUE='#'
4615 am__fastdepCXX_FALSE=
4619 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4620 # autoconf 2.59). If we ever have any Objective-C code in the Valgrind code
4621 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4623 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4624 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4625 # - Use the following, which is apparently equivalent:
4626 # m4_ifdef([AC_PROG_OBJC],
4628 # [AC_CHECK_TOOL([OBJC], [gcc])
4630 # AC_SUBST([OBJCFLAGS])
4632 if test -n "$ac_tool_prefix"; then
4633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4634 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_RANLIB+:} false; then :
4638 $as_echo_n "(cached) " >&6
4640 if test -n "$RANLIB"; then
4641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 RANLIB=$ac_cv_prog_RANLIB
4661 if test -n "$RANLIB"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4663 $as_echo "$RANLIB" >&6; }
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test -z "$ac_cv_prog_RANLIB"; then
4672 ac_ct_RANLIB=$RANLIB
4673 # Extract the first word of "ranlib", so it can be a program name with args.
4674 set dummy ranlib; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4678 $as_echo_n "(cached) " >&6
4680 if test -n "$ac_ct_RANLIB"; then
4681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_prog_ac_ct_RANLIB="ranlib"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4701 if test -n "$ac_ct_RANLIB"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4703 $as_echo "$ac_ct_RANLIB" >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4709 if test "x$ac_ct_RANLIB" = x; then
4712 case $cross_compiling:$ac_tool_warned in
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned=yes ;;
4718 RANLIB=$ac_ct_RANLIB
4721 RANLIB="$ac_cv_prog_RANLIB"
4724 # provide a very basic definition for AC_PROG_SED if it's not provided by
4725 # autoconf (as e.g. in autoconf 2.59).
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4728 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4729 if ${ac_cv_path_SED+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4733 for ac_i in 1 2 3 4 5 6 7; do
4734 ac_script="$ac_script$as_nl$ac_script"
4736 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4737 { ac_script=; unset ac_script;}
4738 if test -z "$SED"; then
4739 ac_path_SED_found=false
4740 # Loop through the user's path and test for each of PROGNAME-LIST
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_prog in sed gsed; do
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4749 as_fn_executable_p "$ac_path_SED" || continue
4750 # Check for GNU ac_path_SED and select it if it is found.
4751 # Check for GNU $ac_path_SED
4752 case `"$ac_path_SED" --version 2>&1` in
4754 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4757 $as_echo_n 0123456789 >"conftest.in"
4760 cat "conftest.in" "conftest.in" >"conftest.tmp"
4761 mv "conftest.tmp" "conftest.in"
4762 cp "conftest.in" "conftest.nl"
4763 $as_echo '' >> "conftest.nl"
4764 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4766 as_fn_arith $ac_count + 1 && ac_count=$as_val
4767 if test $ac_count -gt ${ac_path_SED_max-0}; then
4768 # Best one so far, save it but keep looking for a better one
4769 ac_cv_path_SED="$ac_path_SED"
4770 ac_path_SED_max=$ac_count
4772 # 10*(2^10) chars as input seems more than enough
4773 test $ac_count -gt 10 && break
4775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4778 $ac_path_SED_found && break 3
4783 if test -z "$ac_cv_path_SED"; then
4784 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4792 $as_echo "$ac_cv_path_SED" >&6; }
4793 SED="$ac_cv_path_SED"
4797 # If no AR variable was specified, look up the name of the archiver. Otherwise
4798 # do not touch the AR variable.
4799 if test "x$AR" = "x"; then
4800 for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4802 # Extract the first word of "$ac_prog", so it can be a program name with args.
4803 set dummy $ac_prog; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_path_AR+:} false; then :
4807 $as_echo_n "(cached) " >&6
4811 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 if test -n "$AR"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4835 $as_echo "$AR" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 test -n "$AR" && break
4844 test -n "$AR" || AR="ar"
4849 # Check for the compiler support
4850 if test "${GCC}" != "yes" ; then
4851 as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
4854 # figure out where perl lives
4855 # Extract the first word of "perl", so it can be a program name with args.
4856 set dummy perl; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_path_PERL+:} false; then :
4860 $as_echo_n "(cached) " >&6
4864 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 PERL=$ac_cv_path_PERL
4886 if test -n "$PERL"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4888 $as_echo "$PERL" >&6; }
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4896 # figure out where gdb lives
4897 # Extract the first word of "gdb", so it can be a program name with args.
4898 set dummy gdb; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_path_GDB+:} false; then :
4902 $as_echo_n "(cached) " >&6
4906 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4929 if test -n "$GDB"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4931 $as_echo "$GDB" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4939 cat >>confdefs.h <<_ACEOF
4940 #define GDB_PATH "$GDB"
4944 # some older automake's don't have it so try something on our own
4945 # By default we simply use the C compiler to build assembly code.
4947 test "${CCAS+set}" = set || CCAS=$CC
4948 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4952 depcc="$CCAS" am_compiler_list=
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4955 $as_echo_n "checking dependency style of $depcc... " >&6; }
4956 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4957 $as_echo_n "(cached) " >&6
4959 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4960 # We make a subdir and do the tests there. Otherwise we can end up
4961 # making bogus files that we don't know about and never remove. For
4962 # instance it was reported that on HP-UX the gcc test will end up
4963 # making a dummy file named `D' -- because `-MD' means `put the output
4966 # Copy depcomp to subdir because otherwise we won't find it if we're
4967 # using a relative directory.
4968 cp "$am_depcomp" conftest.dir
4970 # We will build objects and dependencies in a subdirectory because
4971 # it helps to detect inapplicable dependency modes. For instance
4972 # both Tru64's cc and ICC support -MD to output dependencies as a
4973 # side effect of compilation, but ICC will put the dependencies in
4974 # the current directory while Tru64 will put them in the object
4978 am_cv_CCAS_dependencies_compiler_type=none
4979 if test "$am_compiler_list" = ""; then
4980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4985 for depmode in $am_compiler_list; do
4986 # Setup a source with many dependencies, because some compilers
4987 # like to wrap large dependency lists on column 80 (with \), and
4988 # we should not choose a depcomp mode which is confused by this.
4990 # We need to recreate these files for each test, as the compiler may
4991 # overwrite some of them when testing with obscure command lines.
4992 # This happens at least with the AIX C compiler.
4994 for i in 1 2 3 4 5 6; do
4995 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4996 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4997 # Solaris 8's {/usr,}/bin/sh.
4998 touch sub/conftst$i.h
5000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5002 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5003 # mode. It turns out that the SunPro C++ compiler does not properly
5004 # handle `-M -o', and we need to detect this. Also, some Intel
5005 # versions had trouble with output in subdirs
5006 am__obj=sub/conftest.${OBJEXT-o}
5007 am__minus_obj="-o $am__obj"
5010 # This depmode causes a compiler race in universal mode.
5011 test "$am__universal" = false || continue
5014 # after this tag, mechanisms are not by side-effect, so they'll
5015 # only be used when explicitly requested
5016 if test "x$enable_dependency_tracking" = xyes; then
5022 msvisualcpp | msvcmsys)
5023 # This compiler won't grok `-c -o', but also, the minuso test has
5024 # not run yet. These depmodes are late enough in the game, and
5025 # so weak that their functioning should not be impacted.
5026 am__obj=conftest.${OBJEXT-o}
5031 if depmode=$depmode \
5032 source=sub/conftest.c object=$am__obj \
5033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5034 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5035 >/dev/null 2>conftest.err &&
5036 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5038 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5040 # icc doesn't choke on unknown options, it will just issue warnings
5041 # or remarks (even with -Werror). So we grep stderr for any message
5042 # that says an option was ignored or not supported.
5043 # When given -MP, icc 7.0 and 7.1 complain thusly:
5044 # icc: Command line warning: ignoring option '-M'; no argument required
5045 # The diagnosis changed in icc 8.0:
5046 # icc: Command line remark: option '-MP' not supported
5047 if (grep 'ignoring option' conftest.err ||
5048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5049 am_cv_CCAS_dependencies_compiler_type=$depmode
5058 am_cv_CCAS_dependencies_compiler_type=none
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5063 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5064 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5067 test "x$enable_dependency_tracking" != xno \
5068 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5069 am__fastdepCCAS_TRUE=
5070 am__fastdepCCAS_FALSE='#'
5072 am__fastdepCCAS_TRUE='#'
5073 am__fastdepCCAS_FALSE=
5079 # Check if 'diff' supports -u (universal diffs) and use it if possible.
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5082 $as_echo_n "checking for diff -u... " >&6; }
5085 # Comparing two identical files results in 0, unless -u isn't supported (as
5087 tmpfile="tmp-xxx-yyy-zzz"
5089 if diff -u $tmpfile $tmpfile ; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5101 # We don't want gcc < 3.0
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5103 $as_echo_n "checking for a supported version of gcc... " >&6; }
5105 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5107 case "${gcc_version}" in
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5110 $as_echo "no (${gcc_version})" >&6; }
5111 as_fn_error $? "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5115 $as_echo "ok (${gcc_version})" >&6; }
5119 #----------------------------------------------------------------------------
5120 # Arch/OS/platform tests.
5121 #----------------------------------------------------------------------------
5122 # We create a number of arch/OS/platform-related variables. We prefix them
5123 # all with "VGCONF_" which indicates that they are defined at
5124 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5125 # variables used when compiling C files.
5127 # Make sure we can run config.sub.
5128 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5129 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5132 $as_echo_n "checking build system type... " >&6; }
5133 if ${ac_cv_build+:} false; then :
5134 $as_echo_n "(cached) " >&6
5136 ac_build_alias=$build_alias
5137 test "x$ac_build_alias" = x &&
5138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5139 test "x$ac_build_alias" = x &&
5140 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5142 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5146 $as_echo "$ac_cv_build" >&6; }
5147 case $ac_cv_build in
5149 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5152 ac_save_IFS=$IFS; IFS='-'
5158 # Remember, the first character of IFS is used to create $*,
5159 # except with old shells:
5162 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5166 $as_echo_n "checking host system type... " >&6; }
5167 if ${ac_cv_host+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 if test "x$host_alias" = x; then
5171 ac_cv_host=$ac_cv_build
5173 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5174 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5179 $as_echo "$ac_cv_host" >&6; }
5182 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5185 ac_save_IFS=$IFS; IFS='-'
5191 # Remember, the first character of IFS is used to create $*,
5192 # except with old shells:
5195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5200 $as_echo_n "checking for a supported CPU... " >&6; }
5202 # ARCH_MAX reflects the most that this CPU can do: for example if it
5203 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5204 # Ditto for amd64. It is used for more configuration below, but is not used
5205 # outside this file.
5206 case "${host_cpu}" in
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5209 $as_echo "ok (${host_cpu})" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5215 $as_echo "ok (${host_cpu})" >&6; }
5220 # This value can only happen on Linux, not on AIX
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5222 $as_echo "ok (${host_cpu})" >&6; }
5227 # Complexity. 'powerpc' on AIX implies a 64-bit capable CPU.
5228 # Whereas in Linux that means only a 32-bit capable CPU.
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5230 $as_echo "ok (${host_cpu})" >&6; }
5231 case "${host_os}" in
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5243 $as_echo "ok (${host_cpu})" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5249 $as_echo "ok (${host_cpu})" >&6; }
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5255 $as_echo "no (${host_cpu})" >&6; }
5256 as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
5260 #----------------------------------------------------------------------------
5262 # Sometimes it's convenient to subvert the bi-arch build system and
5263 # just have a single build even though the underlying platform is
5264 # capable of both. Hence handle --enable-only64bit and
5265 # --enable-only32bit. Complain if both are issued :-)
5266 # [Actually, if either of these options are used, I think both get built,
5267 # but only one gets installed. So if you use an in-place build, both can be
5270 # Check if a 64-bit only build has been requested
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5272 $as_echo_n "checking for a 64-bit only build... " >&6; }
5273 if ${vg_cv_only64bit+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 # Check whether --enable-only64bit was given.
5277 if test "${enable_only64bit+set}" = set; then :
5278 enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5285 $as_echo "$vg_cv_only64bit" >&6; }
5287 # Check if a 32-bit only build has been requested
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5289 $as_echo_n "checking for a 32-bit only build... " >&6; }
5290 if ${vg_cv_only32bit+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 # Check whether --enable-only32bit was given.
5294 if test "${enable_only32bit+set}" = set; then :
5295 enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5302 $as_echo "$vg_cv_only32bit" >&6; }
5305 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5306 as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5309 #----------------------------------------------------------------------------
5311 # VGCONF_OS is the primary build OS, eg. "linux". It is passed in to
5312 # compilation of many C files via -VGO_$(VGCONF_OS) and
5313 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5315 $as_echo_n "checking for a supported OS... " >&6; }
5321 case "${host_os}" in
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5324 $as_echo "ok (${host_os})" >&6; }
5327 # Ok, this is linux. Check the kernel version
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5329 $as_echo_n "checking for the kernel version... " >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5336 $as_echo "2.6 family (${kernel})" >&6; }
5338 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5344 $as_echo "2.4 family (${kernel})" >&6; }
5346 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5352 $as_echo "unsupported (${kernel})" >&6; }
5353 as_fn_error $? "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5361 $as_echo "ok (${host_os})" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5366 $as_echo "ok (${host_os})" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5371 $as_echo "ok (${host_os})" >&6; }
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5377 $as_echo "ok (${host_os})" >&6; }
5379 DEFAULT_SUPP="pthread_l4re.supp"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5384 $as_echo "ok (${host_os})" >&6; }
5387 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5390 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5393 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5397 $as_echo_n "checking for the kernel version... " >&6; }
5400 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin
5401 # has only one relevant version, the OS version. The `uname` check
5402 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5403 # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5404 # and we don't know of an macros similar to __GLIBC__ to get that info.
5406 # XXX: `uname -r` won't do the right thing for cross-compiles, but
5407 # that's not a problem yet.
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5411 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5413 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5415 DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5416 DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5420 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5422 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5424 DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5425 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5429 $as_echo "unsupported (${kernel})" >&6; }
5430 as_fn_error $? "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5437 $as_echo "no (${host_os})" >&6; }
5438 as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
5442 #----------------------------------------------------------------------------
5444 # If we are building on a 64 bit platform test to see if the system
5445 # supports building 32 bit programs and disable 32 bit support if it
5446 # does not support building 32 bit programs
5448 case "$ARCH_MAX-$VGCONF_OS" in
5449 amd64-linux|ppc64-linux)
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5451 $as_echo_n "checking for 32 bit build support... " >&6; }
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5468 if ac_fn_c_try_link "$LINENO"; then :
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5471 $as_echo "yes" >&6; }
5475 vg_cv_only64bit="yes"
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5480 rm -f core conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482 CFLAGS=$safe_CFLAGS;;
5485 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5486 as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5489 #----------------------------------------------------------------------------
5491 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By
5492 # default it's the same as ARCH_MAX. But if, say, we do a build on an amd64
5493 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5494 # above) will be "amd64" since that reflects the most that this cpu can do,
5495 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5496 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is
5497 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5498 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5501 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5502 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5503 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5504 # It is empty if there is no secondary target.
5507 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5508 # The entire system, including regression and performance tests, will be
5509 # built for this target. The "_CAPS" indicates that the name is in capital
5510 # letters, and it also uses '_' rather than '-' as a separator, because it's
5511 # used to create various Makefile variables, which are all in caps by
5512 # convention and cannot contain '-' characters. This is in contrast to
5513 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5516 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5517 # Valgrind and tools will also be built for this target, but not the
5518 # regression or performance tests.
5520 # By default, the primary arch is the same as the "max" arch, as commented
5521 # above (at the definition of ARCH_MAX). We may choose to downgrade it in
5522 # the big case statement just below here, in the case where we're building
5523 # on a 64 bit machine but have been requested only to do a 32 bit build.
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5527 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5529 # NB. The load address for a given platform may be specified in more
5530 # than one place, in some cases, depending on whether we're doing a biarch,
5531 # 32-bit only or 64-bit only build. eg see case for amd64-linux below.
5532 # Be careful to give consistent values in all subcases. Also, all four
5533 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5534 # even if it is to "0xUNSET".
5536 case "$ARCH_MAX-$VGCONF_OS" in
5538 VGCONF_ARCH_PRI="x86"
5540 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5541 VGCONF_PLATFORM_SEC_CAPS=""
5542 valt_load_address_pri_norml="0x38000000"
5543 valt_load_address_pri_inner="0x28000000"
5544 valt_load_address_sec_norml="0xUNSET"
5545 valt_load_address_sec_inner="0xUNSET"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5547 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5550 valt_load_address_sec_norml="0xUNSET"
5551 valt_load_address_sec_inner="0xUNSET"
5552 if test x$vg_cv_only64bit = xyes; then
5553 VGCONF_ARCH_PRI="amd64"
5555 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5556 VGCONF_PLATFORM_SEC_CAPS=""
5557 valt_load_address_pri_norml="0x38000000"
5558 valt_load_address_pri_inner="0x28000000"
5559 elif test x$vg_cv_only32bit = xyes; then
5560 VGCONF_ARCH_PRI="x86"
5562 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5563 VGCONF_PLATFORM_SEC_CAPS=""
5564 valt_load_address_pri_norml="0x38000000"
5565 valt_load_address_pri_inner="0x28000000"
5567 VGCONF_ARCH_PRI="amd64"
5568 VGCONF_ARCH_SEC="x86"
5569 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5570 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5571 valt_load_address_pri_norml="0x38000000"
5572 valt_load_address_pri_inner="0x28000000"
5573 valt_load_address_sec_norml="0x38000000"
5574 valt_load_address_sec_inner="0x28000000"
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5577 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5580 VGCONF_ARCH_PRI="ppc32"
5582 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5583 VGCONF_PLATFORM_SEC_CAPS=""
5584 valt_load_address_pri_norml="0x38000000"
5585 valt_load_address_pri_inner="0x28000000"
5586 valt_load_address_sec_norml="0xUNSET"
5587 valt_load_address_sec_inner="0xUNSET"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5589 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5592 valt_load_address_pri_norml="0xUNSET"
5593 valt_load_address_pri_inner="0xUNSET"
5594 valt_load_address_sec_norml="0xUNSET"
5595 valt_load_address_sec_inner="0xUNSET"
5596 if test x$vg_cv_only64bit = xyes; then
5597 VGCONF_ARCH_PRI="ppc64"
5599 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5600 VGCONF_PLATFORM_SEC_CAPS=""
5601 elif test x$vg_cv_only32bit = xyes; then
5602 VGCONF_ARCH_PRI="ppc32"
5604 VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5605 VGCONF_PLATFORM_SEC_CAPS=""
5607 VGCONF_ARCH_PRI="ppc64"
5608 VGCONF_ARCH_SEC="ppc32"
5609 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5610 VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5613 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5616 valt_load_address_sec_norml="0xUNSET"
5617 valt_load_address_sec_inner="0xUNSET"
5618 if test x$vg_cv_only64bit = xyes; then
5619 VGCONF_ARCH_PRI="ppc64"
5621 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5622 VGCONF_PLATFORM_SEC_CAPS=""
5623 valt_load_address_pri_norml="0x38000000"
5624 valt_load_address_pri_inner="0x28000000"
5625 elif test x$vg_cv_only32bit = xyes; then
5626 VGCONF_ARCH_PRI="ppc32"
5628 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5629 VGCONF_PLATFORM_SEC_CAPS=""
5630 valt_load_address_pri_norml="0x38000000"
5631 valt_load_address_pri_inner="0x28000000"
5633 VGCONF_ARCH_PRI="ppc64"
5634 VGCONF_ARCH_SEC="ppc32"
5635 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5636 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5637 valt_load_address_pri_norml="0x38000000"
5638 valt_load_address_pri_inner="0x28000000"
5639 valt_load_address_sec_norml="0x38000000"
5640 valt_load_address_sec_inner="0x28000000"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5643 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5646 VGCONF_ARCH_PRI="x86"
5648 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5649 VGCONF_PLATFORM_SEC_CAPS=""
5650 valt_load_address_pri_norml="0x38000000"
5651 valt_load_address_pri_inner="0x28000000"
5652 valt_load_address_sec_norml="0x38000000"
5653 valt_load_address_sec_inner="0x28000000"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5655 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5657 # Darwin gets identified as 32-bit even when it supports 64-bit.
5658 # (Not sure why, possibly because 'uname' returns "i386"?) Just about
5659 # all Macs support both 32-bit and 64-bit, so we just build both. If
5660 # someone has a really old 32-bit only machine they can (hopefully?)
5661 # build with --enable-only32bit. See bug 243362.
5662 x86-darwin|amd64-darwin)
5664 valt_load_address_sec_norml="0xUNSET"
5665 valt_load_address_sec_inner="0xUNSET"
5666 if test x$vg_cv_only64bit = xyes; then
5667 VGCONF_ARCH_PRI="amd64"
5669 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5670 VGCONF_PLATFORM_SEC_CAPS=""
5671 valt_load_address_pri_norml="0x138000000"
5672 valt_load_address_pri_inner="0x128000000"
5673 elif test x$vg_cv_only32bit = xyes; then
5674 VGCONF_ARCH_PRI="x86"
5676 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5677 VGCONF_PLATFORM_SEC_CAPS=""
5678 VGCONF_ARCH_PRI_CAPS="x86"
5679 valt_load_address_pri_norml="0x38000000"
5680 valt_load_address_pri_inner="0x28000000"
5682 VGCONF_ARCH_PRI="amd64"
5683 VGCONF_ARCH_SEC="x86"
5684 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5685 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5686 valt_load_address_pri_norml="0x138000000"
5687 valt_load_address_pri_inner="0x128000000"
5688 valt_load_address_sec_norml="0x38000000"
5689 valt_load_address_sec_inner="0x28000000"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5692 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5695 VGCONF_ARCH_PRI="arm"
5696 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5697 VGCONF_PLATFORM_SEC_CAPS=""
5698 valt_load_address_pri_norml="0x38000000"
5699 valt_load_address_pri_inner="0x28000000"
5700 valt_load_address_sec_norml="0xUNSET"
5701 valt_load_address_sec_inner="0xUNSET"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5703 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5706 VGCONF_ARCH_PRI="s390x"
5708 VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX"
5709 VGCONF_PLATFORM_SEC_CAPS=""
5710 # we want to have the generated code close to the dispatcher
5711 valt_load_address_pri_norml="0x401000000"
5712 valt_load_address_pri_inner="0x410000000"
5713 valt_load_address_sec_norml="0xUNSET"
5714 valt_load_address_sec_inner="0xUNSET"
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5716 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5719 VGCONF_ARCH_PRI="unknown"
5720 VGCONF_ARCH_SEC="unknown"
5721 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5722 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5723 valt_load_address_pri_norml="0xUNSET"
5724 valt_load_address_pri_inner="0xUNSET"
5725 valt_load_address_sec_norml="0xUNSET"
5726 valt_load_address_sec_inner="0xUNSET"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5728 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5729 as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5733 #----------------------------------------------------------------------------
5735 # Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become
5737 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5738 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5739 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5740 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5741 VGCONF_ARCHS_INCLUDE_X86_TRUE=
5742 VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5744 VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5745 VGCONF_ARCHS_INCLUDE_X86_FALSE=
5748 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5749 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5750 VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5751 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5753 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5754 VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5757 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5758 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5759 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5760 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5761 VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5762 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5764 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5765 VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5768 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5769 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5770 VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5771 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5773 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5774 VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5777 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5778 VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5779 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5781 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5782 VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5785 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
5786 VGCONF_ARCHS_INCLUDE_S390X_TRUE=
5787 VGCONF_ARCHS_INCLUDE_S390X_FALSE='#'
5789 VGCONF_ARCHS_INCLUDE_S390X_TRUE='#'
5790 VGCONF_ARCHS_INCLUDE_S390X_FALSE=
5794 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these
5796 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5797 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5798 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5799 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5801 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5802 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5805 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5806 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5807 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5809 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5810 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5813 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5814 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5815 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5816 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5818 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5819 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5822 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5823 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5824 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5826 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5827 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5830 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5831 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5832 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5834 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5835 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5838 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
5839 -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then
5840 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE=
5841 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#'
5843 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#'
5844 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE=
5848 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5849 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5850 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5851 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5853 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5854 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5857 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5858 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5859 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5861 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5862 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5866 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5867 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5868 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5869 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5871 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5872 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5875 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5876 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5877 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5879 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5880 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5883 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5884 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5885 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5887 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5888 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5893 # Similarly, set up VGCONF_OS_IS_<os>. Exactly one of these becomes defined.
5894 # Relies on the assumption that the primary and secondary targets are
5895 # for the same OS, so therefore only necessary to test the primary.
5896 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5897 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5898 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5899 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5900 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
5901 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX; then
5902 VGCONF_OS_IS_LINUX_TRUE=
5903 VGCONF_OS_IS_LINUX_FALSE='#'
5905 VGCONF_OS_IS_LINUX_TRUE='#'
5906 VGCONF_OS_IS_LINUX_FALSE=
5909 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5910 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5911 VGCONF_OS_IS_AIX5_TRUE=
5912 VGCONF_OS_IS_AIX5_FALSE='#'
5914 VGCONF_OS_IS_AIX5_TRUE='#'
5915 VGCONF_OS_IS_AIX5_FALSE=
5918 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5919 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5920 VGCONF_OS_IS_DARWIN_TRUE=
5921 VGCONF_OS_IS_DARWIN_FALSE='#'
5923 VGCONF_OS_IS_DARWIN_TRUE='#'
5924 VGCONF_OS_IS_DARWIN_FALSE=
5927 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5928 VGCONF_OS_IS_L4RE_TRUE=
5929 VGCONF_OS_IS_L4RE_FALSE='#'
5931 VGCONF_OS_IS_L4RE_TRUE='#'
5932 VGCONF_OS_IS_L4RE_FALSE=
5937 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5938 # there is a secondary target.
5939 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5940 VGCONF_HAVE_PLATFORM_SEC_TRUE=
5941 VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5943 VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5944 VGCONF_HAVE_PLATFORM_SEC_FALSE=
5949 #----------------------------------------------------------------------------
5951 #----------------------------------------------------------------------------
5953 # Check if this should be built as an inner Valgrind, to be run within
5954 # another Valgrind. Choose the load address accordingly.
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5958 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5959 if ${vg_cv_inner+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 # Check whether --enable-inner was given.
5963 if test "${enable_inner+set}" = set; then :
5964 enableval=$enable_inner; vg_cv_inner=$enableval
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5971 $as_echo "$vg_cv_inner" >&6; }
5972 if test "$vg_cv_inner" = yes; then
5974 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5976 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5977 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5979 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5980 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5984 #----------------------------------------------------------------------------
5985 # Libc and suppressions
5986 #----------------------------------------------------------------------------
5987 # This variable will collect the suppression files to be used.
5989 # This variable holds generated suppression files (such as the one used for
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5996 if ${ac_cv_path_GREP+:} false; then :
5997 $as_echo_n "(cached) " >&6
5999 if test -z "$GREP"; then
6000 ac_path_GREP_found=false
6001 # Loop through the user's path and test for each of PROGNAME-LIST
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6006 test -z "$as_dir" && as_dir=.
6007 for ac_prog in grep ggrep; do
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6010 as_fn_executable_p "$ac_path_GREP" || continue
6011 # Check for GNU ac_path_GREP and select it if it is found.
6012 # Check for GNU $ac_path_GREP
6013 case `"$ac_path_GREP" --version 2>&1` in
6015 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6018 $as_echo_n 0123456789 >"conftest.in"
6021 cat "conftest.in" "conftest.in" >"conftest.tmp"
6022 mv "conftest.tmp" "conftest.in"
6023 cp "conftest.in" "conftest.nl"
6024 $as_echo 'GREP' >> "conftest.nl"
6025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6027 as_fn_arith $ac_count + 1 && ac_count=$as_val
6028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6029 # Best one so far, save it but keep looking for a better one
6030 ac_cv_path_GREP="$ac_path_GREP"
6031 ac_path_GREP_max=$ac_count
6033 # 10*(2^10) chars as input seems more than enough
6034 test $ac_count -gt 10 && break
6036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6039 $ac_path_GREP_found && break 3
6044 if test -z "$ac_cv_path_GREP"; then
6045 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6048 ac_cv_path_GREP=$GREP
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6053 $as_echo "$ac_cv_path_GREP" >&6; }
6054 GREP="$ac_cv_path_GREP"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6058 $as_echo_n "checking for egrep... " >&6; }
6059 if ${ac_cv_path_EGREP+:} false; then :
6060 $as_echo_n "(cached) " >&6
6062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6063 then ac_cv_path_EGREP="$GREP -E"
6065 if test -z "$EGREP"; then
6066 ac_path_EGREP_found=false
6067 # Loop through the user's path and test for each of PROGNAME-LIST
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6072 test -z "$as_dir" && as_dir=.
6073 for ac_prog in egrep; do
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6076 as_fn_executable_p "$ac_path_EGREP" || continue
6077 # Check for GNU ac_path_EGREP and select it if it is found.
6078 # Check for GNU $ac_path_EGREP
6079 case `"$ac_path_EGREP" --version 2>&1` in
6081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6084 $as_echo_n 0123456789 >"conftest.in"
6087 cat "conftest.in" "conftest.in" >"conftest.tmp"
6088 mv "conftest.tmp" "conftest.in"
6089 cp "conftest.in" "conftest.nl"
6090 $as_echo 'EGREP' >> "conftest.nl"
6091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6093 as_fn_arith $ac_count + 1 && ac_count=$as_val
6094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6095 # Best one so far, save it but keep looking for a better one
6096 ac_cv_path_EGREP="$ac_path_EGREP"
6097 ac_path_EGREP_max=$ac_count
6099 # 10*(2^10) chars as input seems more than enough
6100 test $ac_count -gt 10 && break
6102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6105 $ac_path_EGREP_found && break 3
6110 if test -z "$ac_cv_path_EGREP"; then
6111 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6114 ac_cv_path_EGREP=$EGREP
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6120 $as_echo "$ac_cv_path_EGREP" >&6; }
6121 EGREP="$ac_cv_path_EGREP"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6125 $as_echo_n "checking for ANSI C header files... " >&6; }
6126 if ${ac_cv_header_stdc+:} false; then :
6127 $as_echo_n "(cached) " >&6
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 ac_cv_header_stdc=yes
6147 ac_cv_header_stdc=no
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 if test $ac_cv_header_stdc = yes; then
6152 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then :
6162 ac_cv_header_stdc=no
6168 if test $ac_cv_header_stdc = yes; then
6169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6176 $EGREP "free" >/dev/null 2>&1; then :
6179 ac_cv_header_stdc=no
6185 if test $ac_cv_header_stdc = yes; then
6186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6187 if test "$cross_compiling" = yes; then :
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6194 #if ((' ' & 0x0FF) == 0x020)
6195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6198 # define ISLOWER(c) \
6199 (('a' <= (c) && (c) <= 'i') \
6200 || ('j' <= (c) && (c) <= 'r') \
6201 || ('s' <= (c) && (c) <= 'z'))
6202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6210 for (i = 0; i < 256; i++)
6211 if (XOR (islower (i), ISLOWER (i))
6212 || toupper (i) != TOUPPER (i))
6217 if ac_fn_c_try_run "$LINENO"; then :
6220 ac_cv_header_stdc=no
6222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6223 conftest.$ac_objext conftest.beam conftest.$ac_ext
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6229 $as_echo "$ac_cv_header_stdc" >&6; }
6230 if test $ac_cv_header_stdc = yes; then
6232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6238 inttypes.h stdint.h unistd.h
6240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6241 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6244 cat >>confdefs.h <<_ACEOF
6245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6253 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6254 if test "x$ac_cv_header_features_h" = xyes; then :
6260 if test x$ac_cv_header_features_h = xyes; then
6261 rm -f conftest.$ac_ext
6262 cat <<_ACEOF >conftest.$ac_ext
6263 #include <features.h>
6264 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6265 glibc version is: __GLIBC__ __GLIBC_MINOR__
6268 GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6274 #include <standards.h>
6275 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6282 GLIBC_VERSION="aix5"
6287 # not really a version check
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6291 #include <sys/cdefs.h>
6292 #if defined(__DARWIN_VERS_1050)
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298 $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6299 GLIBC_VERSION="darwin"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6305 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6307 case "${GLIBC_VERSION}" in
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6310 $as_echo "2.2 family" >&6; }
6312 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6314 DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6315 DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6316 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6321 $as_echo "2.3 family" >&6; }
6323 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6325 DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6326 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6327 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6332 $as_echo "2.4 family" >&6; }
6334 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6336 DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6337 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6338 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6343 $as_echo "2.5 family" >&6; }
6345 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6347 DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6348 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6349 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6353 $as_echo "2.6 family" >&6; }
6355 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6357 DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6358 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6359 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6363 $as_echo "2.7 family" >&6; }
6365 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6367 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6368 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6369 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6373 $as_echo "2.8 family" >&6; }
6375 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6377 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6378 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6379 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6383 $as_echo "2.9 family" >&6; }
6385 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6387 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6388 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6389 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6393 $as_echo "2.10 family" >&6; }
6395 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6397 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6398 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6399 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6403 $as_echo "2.11 family" >&6; }
6405 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6407 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6408 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6409 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6413 $as_echo "2.12 family" >&6; }
6415 $as_echo "#define GLIBC_2_12 1" >>confdefs.h
6417 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6418 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6419 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.13 family" >&5
6423 $as_echo "2.13 family" >&6; }
6425 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6427 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6428 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6429 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.14 family" >&5
6433 $as_echo "2.14 family" >&6; }
6435 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6437 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6438 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6439 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.15 family" >&5
6443 $as_echo "2.15 family" >&6; }
6445 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6447 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6448 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6449 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.16 family" >&5
6453 $as_echo "2.16 family" >&6; }
6455 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6457 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6458 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6459 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.17 family" >&5
6463 $as_echo "2.17 family" >&6; }
6465 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6467 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6468 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6469 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.18 family" >&5
6473 $as_echo "2.18 family" >&6; }
6475 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6477 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6478 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6479 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.19 family" >&5
6483 $as_echo "2.19 family" >&6; }
6485 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6487 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6488 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6489 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6493 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6495 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6497 DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6501 $as_echo "Darwin" >&6; }
6503 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6505 # DEFAULT_SUPP set by kernel version check above.
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6510 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6511 as_fn_error $? "Valgrind requires glibc version 2.2 - 2.13" "$LINENO" 5
6512 as_fn_error $? "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6513 as_fn_error $? "or Darwin libc" "$LINENO" 5
6520 # Add default suppressions for the X client libraries. Make no
6521 # attempt to detect whether such libraries are installed on the
6522 # build machine (or even if any X facilities are present); just
6523 # add the suppressions antidisirregardless.
6524 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6525 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6527 # Add glibc and X11 suppressions for exp-sgcheck
6528 DEFAULT_SUPP="exp-sgcheck.supp ${DEFAULT_SUPP}"
6531 #----------------------------------------------------------------------------
6532 # Checking for various library functions and other definitions
6533 #----------------------------------------------------------------------------
6535 # Check for CLOCK_MONOTONIC
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6538 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6550 clock_gettime(CLOCK_MONOTONIC, &t);
6557 if ac_fn_c_try_compile "$LINENO"; then :
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6560 $as_echo "yes" >&6; }
6562 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6577 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6583 #include <pthread.h>
6589 return (PTHREAD_MUTEX_ADAPTIVE_NP);
6595 if ac_fn_c_try_compile "$LINENO"; then :
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6598 $as_echo "yes" >&6; }
6600 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6615 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6621 #include <pthread.h>
6627 return (PTHREAD_MUTEX_ERRORCHECK_NP);
6633 if ac_fn_c_try_compile "$LINENO"; then :
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6636 $as_echo "yes" >&6; }
6638 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6653 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6659 #include <pthread.h>
6665 return (PTHREAD_MUTEX_RECURSIVE_NP);
6671 if ac_fn_c_try_compile "$LINENO"; then :
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6674 $as_echo "yes" >&6; }
6676 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6691 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6697 #include <pthread.h>
6703 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6710 if ac_fn_c_try_compile "$LINENO"; then :
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6713 $as_echo "yes" >&6; }
6715 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 # Check whether pthread_mutex_t has a member called __m_kind.
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6730 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6735 #include <pthread.h>
6748 if ac_fn_c_try_compile "$LINENO"; then :
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751 $as_echo "yes" >&6; }
6753 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 # Check whether pthread_mutex_t has a member called __data.__kind.
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6768 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6773 #include <pthread.h>
6780 return m.__data.__kind;
6786 if ac_fn_c_try_compile "$LINENO"; then :
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6789 $as_echo "yes" >&6; }
6791 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 # does this compiler support -maltivec and does it have the include file
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6807 $as_echo_n "checking for Altivec... " >&6; }
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6815 #include <altivec.h>
6821 vector unsigned int v;
6827 if ac_fn_c_try_compile "$LINENO"; then :
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6831 $as_echo "yes" >&6; }
6833 $as_echo "#define HAS_ALTIVEC 1" >>confdefs.h
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 if test x$ac_have_altivec = xyes; then
6848 HAS_ALTIVEC_FALSE='#'
6850 HAS_ALTIVEC_TRUE='#'
6856 # Check that both: the compiler supports -mvsx and that the assembler
6857 # understands VSX instructions. If either of those doesn't work,
6858 # conclude that we can't do VSX. NOTE: basically this is a kludge
6859 # in that it conflates two things that should be separate -- whether
6860 # the compiler understands the flag vs whether the assembler
6861 # understands the opcodes. This really ought to be cleaned up
6862 # and done properly, like it is for x86/x86_64.
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX" >&5
6865 $as_echo_n "checking for VSX... " >&6; }
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6873 #include <altivec.h>
6879 vector unsigned int v;
6880 __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc");
6886 if ac_fn_c_try_compile "$LINENO"; then :
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6890 $as_echo "yes" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 if test x$ac_have_vsx = xyes; then
6912 # Check for pthread_create@GLIBC2.0
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6914 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6921 extern int pthread_create_glibc_2_0(void*, const void*,
6922 void *(*)(void*), void*);
6923 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6931 * Apparently on PowerPC linking this program succeeds and generates an
6932 * executable with the undefined symbol pthread_create@GLIBC_2.0.
6934 #error This test does not work properly on PowerPC.
6936 pthread_create_glibc_2_0(0, 0, 0, 0);
6944 if ac_fn_c_try_link "$LINENO"; then :
6946 ac_have_pthread_create_glibc_2_0=yes
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6948 $as_echo "yes" >&6; }
6950 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6955 ac_have_pthread_create_glibc_2_0=no
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 rm -f core conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6964 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6965 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6966 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6968 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6969 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6974 # Check for eventfd_t, eventfd() and eventfd_read()
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6976 $as_echo_n "checking for eventfd()... " >&6; }
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6981 #include <sys/eventfd.h>
6991 eventfd_read(fd, &ev);
6998 if ac_fn_c_try_link "$LINENO"; then :
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7001 $as_echo "yes" >&6; }
7003 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
7006 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7015 rm -f core conftest.err conftest.$ac_objext \
7016 conftest$ac_exeext conftest.$ac_ext
7019 #----------------------------------------------------------------------------
7020 # Checking for supported compiler flags.
7021 #----------------------------------------------------------------------------
7023 # does this compiler support -m32 ?
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
7025 $as_echo_n "checking if gcc accepts -m32... " >&6; }
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7043 if ac_fn_c_try_compile "$LINENO"; then :
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7047 $as_echo "yes" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062 # does this compiler support -maix32 ?
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
7064 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7082 if ac_fn_c_try_compile "$LINENO"; then :
7084 FLAG_MAIX32="-maix32"
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7086 $as_echo "yes" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 # does this compiler support -m64 ?
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
7103 $as_echo_n "checking if gcc accepts -m64... " >&6; }
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7121 if ac_fn_c_try_compile "$LINENO"; then :
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7125 $as_echo "yes" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 # does this compiler support -maix64 ?
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
7142 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7160 if ac_fn_c_try_compile "$LINENO"; then :
7162 FLAG_MAIX64="-maix64"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164 $as_echo "yes" >&6; }
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 # does this compiler support -mmmx ?
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
7181 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7199 if ac_fn_c_try_compile "$LINENO"; then :
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7203 $as_echo "yes" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 # does this compiler support -msse ?
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7220 $as_echo_n "checking if gcc accepts -msse... " >&6; }
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7238 if ac_fn_c_try_compile "$LINENO"; then :
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7242 $as_echo "yes" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 # does this compiler support -mpreferred-stack-boundary=2 ?
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7259 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7262 CFLAGS="-mpreferred-stack-boundary=2"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7277 if ac_fn_c_try_compile "$LINENO"; then :
7279 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7285 PREFERRED_STACK_BOUNDARY=""
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 # does this compiler support -Wno-pointer-sign ?
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7298 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7301 CFLAGS="-Wno-pointer-sign"
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7316 if ac_fn_c_try_compile "$LINENO"; then :
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7320 $as_echo "yes" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 if test x$no_pointer_sign = xyes; then
7333 CFLAGS="$CFLAGS -Wno-pointer-sign"
7337 # does this compiler support -Wno-empty-body ?
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7340 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7343 CFLAGS="-Wno-empty-body"
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7358 if ac_fn_c_try_compile "$LINENO"; then :
7360 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7363 $as_echo "yes" >&6; }
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 # does this compiler support -Wno-format-zero-length ?
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7379 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7382 CFLAGS="-Wno-format-zero-length"
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7397 if ac_fn_c_try_compile "$LINENO"; then :
7399 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7402 $as_echo "yes" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 # does this compiler support -Wno-nonnull ?
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-nonnull" >&5
7418 $as_echo_n "checking if gcc accepts -Wno-nonnull... " >&6; }
7421 CFLAGS="-Wno-nonnull"
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7436 if ac_fn_c_try_compile "$LINENO"; then :
7438 FLAG_W_NO_NONNULL=-Wno-nonnull
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441 $as_echo "yes" >&6; }
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 # does this compiler support -Wno-overflow ?
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-overflow" >&5
7457 $as_echo_n "checking if gcc accepts -Wno-overflow... " >&6; }
7460 CFLAGS="-Wno-overflow"
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7475 if ac_fn_c_try_compile "$LINENO"; then :
7477 FLAG_W_NO_OVERFLOW=-Wno-overflow
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7480 $as_echo "yes" >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 # does this compiler support -Wno-uninitialized ?
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7496 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7499 CFLAGS="-Wno-uninitialized"
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7514 if ac_fn_c_try_compile "$LINENO"; then :
7516 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519 $as_echo "yes" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 # does this compiler support -Wextra or the older -W ?
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7535 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7553 if ac_fn_c_try_compile "$LINENO"; then :
7555 FLAG_W_EXTRA=-Wextra
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7558 $as_echo "-Wextra" >&6; }
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7576 if ac_fn_c_try_compile "$LINENO"; then :
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7581 $as_echo "-W" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7587 $as_echo "not supported" >&6; }
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 # does this compiler support -fno-stack-protector ?
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7599 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7602 CFLAGS="-fno-stack-protector"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7617 if ac_fn_c_try_compile "$LINENO"; then :
7619 no_stack_protector=yes
7620 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622 $as_echo "yes" >&6; }
7626 no_stack_protector=no
7627 FLAG_FNO_STACK_PROTECTOR=""
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 if test x$no_stack_protector = xyes; then
7638 CFLAGS="$CFLAGS -fno-stack-protector"
7642 # does this compiler support --param inline-unit-growth=... ?
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7645 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7648 CFLAGS="--param inline-unit-growth=900"
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7663 if ac_fn_c_try_compile "$LINENO"; then :
7665 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7668 $as_echo "yes" >&6; }
7672 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 # does the linker support -Wl,--build-id=none ? Note, it's
7683 # important that we test indirectly via whichever C compiler
7684 # is selected, rather than testing /usr/bin/ld or whatever
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7688 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7691 CFLAGS="-Wl,--build-id=none"
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7704 if ac_fn_c_try_link "$LINENO"; then :
7706 FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7709 $as_echo "yes" >&6; }
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7719 rm -f core conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7724 # does the ppc assembler support "mtocrf" et al?
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7726 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7735 __asm__ __volatile__("mtocrf 4,0");
7736 __asm__ __volatile__("mfocrf 0,4");
7742 if ac_fn_c_try_compile "$LINENO"; then :
7744 ac_have_as_ppc_mftocrf=yes
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 $as_echo "yes" >&6; }
7750 ac_have_as_ppc_mftocrf=no
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7758 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7765 # does the x86/amd64 assembler understand SSE3 instructions?
7766 # Note, this doesn't generate a C-level symbol. It generates a
7767 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7769 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7778 do { long long int x;
7779 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7786 if ac_fn_c_try_compile "$LINENO"; then :
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7790 $as_echo "yes" >&6; }
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 if test x$ac_have_as_sse3 = xyes; then
7802 BUILD_SSE3_TESTS_TRUE=
7803 BUILD_SSE3_TESTS_FALSE='#'
7805 BUILD_SSE3_TESTS_TRUE='#'
7806 BUILD_SSE3_TESTS_FALSE=
7811 # Ditto for SSSE3 instructions (note extra S)
7812 # Note, this doesn't generate a C-level symbol. It generates a
7813 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7815 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7824 do { long long int x;
7825 __asm__ __volatile__(
7826 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7833 if ac_fn_c_try_compile "$LINENO"; then :
7835 ac_have_as_ssse3=yes
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7837 $as_echo "yes" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848 if test x$ac_have_as_ssse3 = xyes; then
7849 BUILD_SSSE3_TESTS_TRUE=
7850 BUILD_SSSE3_TESTS_FALSE='#'
7852 BUILD_SSSE3_TESTS_TRUE='#'
7853 BUILD_SSSE3_TESTS_FALSE=
7858 # does the x86/amd64 assembler understand the PCLMULQDQ instruction?
7859 # Note, this doesn't generate a C-level symbol. It generates a
7860 # automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
7862 $as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7871 __asm__ __volatile__(
7872 "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
7879 if ac_fn_c_try_compile "$LINENO"; then :
7881 ac_have_as_pclmulqdq=yes
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883 $as_echo "yes" >&6; }
7887 ac_have_as_pclmulqdq=no
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 if test x$ac_have_as_pclmulqdq = xyes; then
7895 BUILD_PCLMULQDQ_TESTS_TRUE=
7896 BUILD_PCLMULQDQ_TESTS_FALSE='#'
7898 BUILD_PCLMULQDQ_TESTS_TRUE='#'
7899 BUILD_PCLMULQDQ_TESTS_FALSE=
7904 # does the x86/amd64 assembler understand the LZCNT instruction?
7905 # Note, this doesn't generate a C-level symbol. It generates a
7906 # automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
7908 $as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7918 __asm__ __volatile__("lzcnt %rax,%rax");
7925 if ac_fn_c_try_compile "$LINENO"; then :
7927 ac_have_as_lzcnt=yes
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7929 $as_echo "yes" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 if test x$ac_have_as_lzcnt = xyes; then
7941 BUILD_LZCNT_TESTS_TRUE=
7942 BUILD_LZCNT_TESTS_FALSE='#'
7944 BUILD_LZCNT_TESTS_TRUE='#'
7945 BUILD_LZCNT_TESTS_FALSE=
7950 # does the x86/amd64 assembler understand SSE 4.2 instructions?
7951 # Note, this doesn't generate a C-level symbol. It generates a
7952 # automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5
7954 $as_echo_n "checking if x86/amd64 assembler speaks SSE4.2... " >&6; }
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7963 do { long long int x;
7964 __asm__ __volatile__(
7965 "crc32q %%r15,%%r15" : : : "r15" ); }
7972 if ac_fn_c_try_compile "$LINENO"; then :
7974 ac_have_as_sse42=yes
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976 $as_echo "yes" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 if test x$ac_have_as_sse42 = xyes; then
7988 BUILD_SSE42_TESTS_TRUE=
7989 BUILD_SSE42_TESTS_FALSE='#'
7991 BUILD_SSE42_TESTS_TRUE='#'
7992 BUILD_SSE42_TESTS_FALSE=
7997 # XXX JRS 2010 Oct 13: what is this for? For sure, we don't need this
7998 # when building the tool executables. I think we should get rid of it.
8000 # Check for TLS support in the compiler and linker
8001 if test "x${cross_compiling}" = "xno"; then
8002 # Native compilation: check whether running a program using TLS succeeds.
8003 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
8004 # succeeds but running programs using TLS fails.
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
8006 $as_echo_n "checking for TLS support... " >&6; }
8007 if ${vg_cv_tls+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 # Check whether --enable-tls was given.
8011 if test "${enable_tls+set}" = set; then :
8012 enableval=$enable_tls; vg_cv_tls=$enableval
8014 if test "$cross_compiling" = yes; then :
8015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8017 as_fn_error $? "cannot run test program while cross compiling
8018 See \`config.log' for more details" "$LINENO" 5; }
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8022 static __thread int foo;
8031 if ac_fn_c_try_run "$LINENO"; then :
8036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8037 conftest.$ac_objext conftest.beam conftest.$ac_ext
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8044 $as_echo "$vg_cv_tls" >&6; }
8046 # Cross-compiling: check whether linking a program using TLS succeeds.
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
8048 $as_echo_n "checking for TLS support... " >&6; }
8049 if ${vg_cv_tls+:} false; then :
8050 $as_echo_n "(cached) " >&6
8052 # Check whether --enable-tls was given.
8053 if test "${enable_tls+set}" = set; then :
8054 enableval=$enable_tls; vg_cv_tls=$enableval
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 static __thread int foo;
8067 if ac_fn_c_try_link "$LINENO"; then :
8072 rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8078 $as_echo "$vg_cv_tls" >&6; }
8081 if test "$vg_cv_tls" = yes; then
8083 $as_echo "#define HAVE_TLS 1" >>confdefs.h
8088 #----------------------------------------------------------------------------
8089 # Checks for C header files.
8090 #----------------------------------------------------------------------------
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8093 $as_echo_n "checking for ANSI C header files... " >&6; }
8094 if ${ac_cv_header_stdc+:} false; then :
8095 $as_echo_n "(cached) " >&6
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113 ac_cv_header_stdc=yes
8115 ac_cv_header_stdc=no
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 if test $ac_cv_header_stdc = yes; then
8120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8127 $EGREP "memchr" >/dev/null 2>&1; then :
8130 ac_cv_header_stdc=no
8136 if test $ac_cv_header_stdc = yes; then
8137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144 $EGREP "free" >/dev/null 2>&1; then :
8147 ac_cv_header_stdc=no
8153 if test $ac_cv_header_stdc = yes; then
8154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8155 if test "$cross_compiling" = yes; then :
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8162 #if ((' ' & 0x0FF) == 0x020)
8163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8166 # define ISLOWER(c) \
8167 (('a' <= (c) && (c) <= 'i') \
8168 || ('j' <= (c) && (c) <= 'r') \
8169 || ('s' <= (c) && (c) <= 'z'))
8170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8178 for (i = 0; i < 256; i++)
8179 if (XOR (islower (i), ISLOWER (i))
8180 || toupper (i) != TOUPPER (i))
8185 if ac_fn_c_try_run "$LINENO"; then :
8188 ac_cv_header_stdc=no
8190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8191 conftest.$ac_objext conftest.beam conftest.$ac_ext
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8197 $as_echo "$ac_cv_header_stdc" >&6; }
8198 if test $ac_cv_header_stdc = yes; then
8200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8221 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8222 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8223 cat >>confdefs.h <<_ACEOF
8224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8232 #----------------------------------------------------------------------------
8233 # Checks for typedefs, structures, and compiler characteristics.
8234 #----------------------------------------------------------------------------
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8236 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8237 if ${ac_cv_type_uid_t+:} false; then :
8238 $as_echo_n "(cached) " >&6
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 #include <sys/types.h>
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246 $EGREP "uid_t" >/dev/null 2>&1; then :
8247 ac_cv_type_uid_t=yes
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8255 $as_echo "$ac_cv_type_uid_t" >&6; }
8256 if test $ac_cv_type_uid_t = no; then
8258 $as_echo "#define uid_t int" >>confdefs.h
8261 $as_echo "#define gid_t int" >>confdefs.h
8265 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8266 if test "x$ac_cv_type_off_t" = xyes; then :
8270 cat >>confdefs.h <<_ACEOF
8271 #define off_t long int
8276 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8277 if test "x$ac_cv_type_size_t" = xyes; then :
8281 cat >>confdefs.h <<_ACEOF
8282 #define size_t unsigned int
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8288 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8289 if ${ac_cv_header_time+:} false; then :
8290 $as_echo_n "(cached) " >&6
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 #include <sys/types.h>
8295 #include <sys/time.h>
8301 if ((struct tm *) 0)
8307 if ac_fn_c_try_compile "$LINENO"; then :
8308 ac_cv_header_time=yes
8310 ac_cv_header_time=no
8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8315 $as_echo "$ac_cv_header_time" >&6; }
8316 if test $ac_cv_header_time = yes; then
8318 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8324 #----------------------------------------------------------------------------
8325 # Checks for library functions.
8326 #----------------------------------------------------------------------------
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8328 $as_echo_n "checking for working memcmp... " >&6; }
8329 if ${ac_cv_func_memcmp_working+:} false; then :
8330 $as_echo_n "(cached) " >&6
8332 if test "$cross_compiling" = yes; then :
8333 ac_cv_func_memcmp_working=no
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 $ac_includes_default
8342 /* Some versions of memcmp are not 8-bit clean. */
8343 char c0 = '\100', c1 = '\200', c2 = '\201';
8344 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8347 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8348 or more and with at least one buffer not starting on a 4-byte boundary.
8349 William Lewis provided this test program. */
8354 for (i = 0; i < 4; i++)
8358 strcpy (a, "--------01111111");
8359 strcpy (b, "--------10000000");
8360 if (memcmp (a, b, 16) >= 0)
8370 if ac_fn_c_try_run "$LINENO"; then :
8371 ac_cv_func_memcmp_working=yes
8373 ac_cv_func_memcmp_working=no
8375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8376 conftest.$ac_objext conftest.beam conftest.$ac_ext
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8381 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8382 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8383 *" memcmp.$ac_objext "* ) ;;
8384 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8392 for ac_header in $ac_header_list
8394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8395 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8398 cat >>confdefs.h <<_ACEOF
8399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8413 for ac_func in getpagesize
8415 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8416 if test "x$ac_cv_func_getpagesize" = xyes; then :
8417 cat >>confdefs.h <<_ACEOF
8418 #define HAVE_GETPAGESIZE 1
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8425 $as_echo_n "checking for working mmap... " >&6; }
8426 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8427 $as_echo_n "(cached) " >&6
8429 if test "$cross_compiling" = yes; then :
8430 ac_cv_func_mmap_fixed_mapped=no
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 /* malloc might have been renamed as rpl_malloc. */
8438 /* Thanks to Mike Haertel and Jim Avera for this test.
8439 Here is a matrix of mmap possibilities:
8440 mmap private not fixed
8441 mmap private fixed at somewhere currently unmapped
8442 mmap private fixed at somewhere already mapped
8443 mmap shared not fixed
8444 mmap shared fixed at somewhere currently unmapped
8445 mmap shared fixed at somewhere already mapped
8446 For private mappings, we should verify that changes cannot be read()
8447 back from the file, nor mmap's back from the file at a different
8448 address. (There have been systems where private was not correctly
8449 implemented like the infamous i386 svr4.0, and systems where the
8450 VM page cache was not coherent with the file system buffer cache
8451 like early versions of FreeBSD and possibly contemporary NetBSD.)
8452 For shared mappings, we should conversely verify that changes get
8453 propagated back to all the places they're supposed to be.
8455 Grep wants private fixed already mapped.
8456 The main things grep needs to know about mmap are:
8457 * does it exist and is it safe to write into the mmap'd area
8458 * how to use it (BSD variants) */
8461 #include <sys/mman.h>
8463 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8467 /* This mess was copied from the GNU getpagesize.h. */
8468 #ifndef HAVE_GETPAGESIZE
8469 # ifdef _SC_PAGESIZE
8470 # define getpagesize() sysconf(_SC_PAGESIZE)
8471 # else /* no _SC_PAGESIZE */
8472 # ifdef HAVE_SYS_PARAM_H
8473 # include <sys/param.h>
8474 # ifdef EXEC_PAGESIZE
8475 # define getpagesize() EXEC_PAGESIZE
8476 # else /* no EXEC_PAGESIZE */
8478 # define getpagesize() NBPG * CLSIZE
8481 # endif /* no CLSIZE */
8482 # else /* no NBPG */
8484 # define getpagesize() NBPC
8485 # else /* no NBPC */
8487 # define getpagesize() PAGESIZE
8488 # endif /* PAGESIZE */
8489 # endif /* no NBPC */
8490 # endif /* no NBPG */
8491 # endif /* no EXEC_PAGESIZE */
8492 # else /* no HAVE_SYS_PARAM_H */
8493 # define getpagesize() 8192 /* punt totally */
8494 # endif /* no HAVE_SYS_PARAM_H */
8495 # endif /* no _SC_PAGESIZE */
8497 #endif /* no HAVE_GETPAGESIZE */
8502 char *data, *data2, *data3;
8507 pagesize = getpagesize ();
8509 /* First, make a file with some known garbage in it. */
8510 data = (char *) malloc (pagesize);
8513 for (i = 0; i < pagesize; ++i)
8514 *(data + i) = rand ();
8516 fd = creat ("conftest.mmap", 0600);
8519 if (write (fd, data, pagesize) != pagesize)
8523 /* Next, check that the tail of a page is zero-filled. File must have
8524 non-zero length, otherwise we risk SIGBUS for entire page. */
8525 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8529 if (write (fd2, cdata2, 1) != 1)
8531 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8532 if (data2 == MAP_FAILED)
8534 for (i = 0; i < pagesize; ++i)
8538 if (munmap (data2, pagesize))
8541 /* Next, try to mmap the file at a fixed address which already has
8542 something else allocated at it. If we can, also make sure that
8543 we see the same garbage. */
8544 fd = open ("conftest.mmap", O_RDWR);
8547 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8548 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8550 for (i = 0; i < pagesize; ++i)
8551 if (*(data + i) != *(data2 + i))
8554 /* Finally, make sure that changes to the mapped area do not
8555 percolate back to the file as seen by read(). (This is a bug on
8556 some variants of i386 svr4.0.) */
8557 for (i = 0; i < pagesize; ++i)
8558 *(data2 + i) = *(data2 + i) + 1;
8559 data3 = (char *) malloc (pagesize);
8562 if (read (fd, data3, pagesize) != pagesize)
8564 for (i = 0; i < pagesize; ++i)
8565 if (*(data + i) != *(data3 + i))
8571 if ac_fn_c_try_run "$LINENO"; then :
8572 ac_cv_func_mmap_fixed_mapped=yes
8574 ac_cv_func_mmap_fixed_mapped=no
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577 conftest.$ac_objext conftest.beam conftest.$ac_ext
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8582 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8583 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8585 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8588 rm -f conftest.mmap conftest.txt
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8591 $as_echo_n "checking return type of signal handlers... " >&6; }
8592 if ${ac_cv_type_signal+:} false; then :
8593 $as_echo_n "(cached) " >&6
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #include <sys/types.h>
8603 return *(signal (0, 0)) (0) == 1;
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609 ac_cv_type_signal=int
8611 ac_cv_type_signal=void
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8616 $as_echo "$ac_cv_type_signal" >&6; }
8618 cat >>confdefs.h <<_ACEOF
8619 #define RETSIGTYPE $ac_cv_type_signal
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8625 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8626 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8627 $as_echo_n "(cached) " >&6
8629 ac_check_lib_save_LIBS=$LIBS
8630 LIBS="-lpthread $LIBS"
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8634 /* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8640 char pthread_create ();
8644 return pthread_create ();
8649 if ac_fn_c_try_link "$LINENO"; then :
8650 ac_cv_lib_pthread_pthread_create=yes
8652 ac_cv_lib_pthread_pthread_create=no
8654 rm -f core conftest.err conftest.$ac_objext \
8655 conftest$ac_exeext conftest.$ac_ext
8656 LIBS=$ac_check_lib_save_LIBS
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8659 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8660 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8661 cat >>confdefs.h <<_ACEOF
8662 #define HAVE_LIBPTHREAD 1
8665 LIBS="-lpthread $LIBS"
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8670 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8671 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
8672 $as_echo_n "(cached) " >&6
8674 ac_check_lib_save_LIBS=$LIBS
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8679 /* Override any GCC internal prototype to avoid an error.
8680 Use char because int might match the return type of a GCC
8681 builtin and then its argument prototype would still apply. */
8685 char clock_gettime ();
8689 return clock_gettime ();
8694 if ac_fn_c_try_link "$LINENO"; then :
8695 ac_cv_lib_rt_clock_gettime=yes
8697 ac_cv_lib_rt_clock_gettime=no
8699 rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8704 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8705 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_LIBRT 1
8726 pthread_barrier_init \
8727 pthread_condattr_setclock \
8728 pthread_mutex_timedlock \
8729 pthread_rwlock_timedrdlock \
8730 pthread_rwlock_timedwrlock \
8745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8747 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8748 cat >>confdefs.h <<_ACEOF
8749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8756 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8757 # libraries with any shared object and/or executable. This is NOT what we
8758 # want for e.g. vgpreload_core-x86-linux.so
8761 if test x$ac_cv_func_pthread_barrier_init = xyes; then
8762 HAVE_PTHREAD_BARRIER_TRUE=
8763 HAVE_PTHREAD_BARRIER_FALSE='#'
8765 HAVE_PTHREAD_BARRIER_TRUE='#'
8766 HAVE_PTHREAD_BARRIER_FALSE=
8769 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8770 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8771 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8773 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8774 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8777 if test x$ac_cv_func_pthread_spin_lock = xyes; then
8778 HAVE_PTHREAD_SPINLOCK_TRUE=
8779 HAVE_PTHREAD_SPINLOCK_FALSE='#'
8781 HAVE_PTHREAD_SPINLOCK_TRUE='#'
8782 HAVE_PTHREAD_SPINLOCK_FALSE=
8787 #----------------------------------------------------------------------------
8789 #----------------------------------------------------------------------------
8790 # Do we have a useable MPI setup on the primary and/or secondary targets?
8791 # On Linux, by default, assumes mpicc and -m32/-m64
8792 # On AIX, by default, assumes mpxlc and -q32/-q64
8793 # Note: this is a kludge in that it assumes the specified mpicc
8794 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8797 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8798 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8803 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8804 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8805 mflag_primary=$FLAG_M32
8806 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8807 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
8808 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
8809 mflag_primary=$FLAG_M64
8810 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8812 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8817 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8818 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8819 mflag_secondary=$FLAG_M32
8820 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8821 mflag_secondary=-q32
8826 # Check whether --with-mpicc was given.
8827 if test "${with_mpicc+set}" = set; then :
8828 withval=$with_mpicc; MPI_CC=$withval
8834 ## See if MPI_CC works for the primary target
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8837 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8839 saved_CFLAGS=$CFLAGS
8841 CFLAGS=$mflag_primary
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8852 int r = MPI_Init(NULL,NULL);
8853 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8860 if ac_fn_c_try_link "$LINENO"; then :
8862 ac_have_mpi2_pri=yes
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8864 $as_echo "yes, $MPI_CC" >&6; }
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8873 rm -f core conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8876 CFLAGS=$saved_CFLAGS
8877 if test x$ac_have_mpi2_pri = xyes; then
8878 BUILD_MPIWRAP_PRI_TRUE=
8879 BUILD_MPIWRAP_PRI_FALSE='#'
8881 BUILD_MPIWRAP_PRI_TRUE='#'
8882 BUILD_MPIWRAP_PRI_FALSE=
8886 ## See if MPI_CC works for the secondary target. Complication: what if
8887 ## there is no secondary target? We need this to then fail.
8888 ## Kludge this by making MPI_CC something which will surely fail in
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8892 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8894 saved_CFLAGS=$CFLAGS
8895 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8896 CC="$MPI_CC this will surely fail"
8900 CFLAGS=$mflag_secondary
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8911 int r = MPI_Init(NULL,NULL);
8912 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8919 if ac_fn_c_try_link "$LINENO"; then :
8921 ac_have_mpi2_sec=yes
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8923 $as_echo "yes, $MPI_CC" >&6; }
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8932 rm -f core conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8935 CFLAGS=$saved_CFLAGS
8936 if test x$ac_have_mpi2_sec = xyes; then
8937 BUILD_MPIWRAP_SEC_TRUE=
8938 BUILD_MPIWRAP_SEC_FALSE='#'
8940 BUILD_MPIWRAP_SEC_TRUE='#'
8941 BUILD_MPIWRAP_SEC_FALSE=
8946 #----------------------------------------------------------------------------
8947 # Other library checks
8948 #----------------------------------------------------------------------------
8949 # There now follow some tests for Boost, and OpenMP. These
8950 # tests are present because Drd has some regression tests that use
8951 # these packages. All regression test programs all compiled only
8952 # for the primary target. And so it is important that the configure
8953 # checks that follow, use the correct -m32 or -m64 flag for the
8954 # primary target (called $mflag_primary). Otherwise, we can end up
8955 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8956 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8957 # only build (meaning, the primary target is x86-linux), the build
8958 # of the regtest programs that use Boost fails, because they are
8959 # build as 32-bit (IN THIS EXAMPLE).
8961 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8962 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8965 # Check whether the boost library 1.35 or later has been installed.
8966 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8969 $as_echo_n "checking for boost... " >&6; }
8972 ac_cpp='$CXXCPP $CPPFLAGS'
8973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8977 safe_CXXFLAGS=$CXXFLAGS
8978 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8984 #include <boost/thread.hpp>
8985 static void thread_func(void)
8987 int main(int argc, char** argv)
8989 boost::thread t(thread_func);
8994 if ac_fn_cxx_try_link "$LINENO"; then :
8996 ac_have_boost_1_35=yes
8998 BOOST_LIBS="${CXXFLAGS}"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9001 $as_echo "yes" >&6; }
9005 ac_have_boost_1_35=no
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9010 rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9013 CXXFLAGS=$safe_CXXFLAGS
9015 ac_cpp='$CPP $CPPFLAGS'
9016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9021 if test x$ac_have_boost_1_35 = xyes; then
9022 HAVE_BOOST_1_35_TRUE=
9023 HAVE_BOOST_1_35_FALSE='#'
9025 HAVE_BOOST_1_35_TRUE='#'
9026 HAVE_BOOST_1_35_FALSE=
9031 # does this compiler support -fopenmp, does it have the include file
9032 # <omp.h> and does it have libgomp ?
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
9035 $as_echo_n "checking for OpenMP... " >&6; }
9038 CFLAGS="-fopenmp $mflag_primary"
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9044 int main(int argc, char** argv)
9051 if ac_fn_c_try_link "$LINENO"; then :
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9055 $as_echo "yes" >&6; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9068 if test x$ac_have_openmp = xyes; then
9070 HAVE_OPENMP_FALSE='#'
9072 HAVE_OPENMP_TRUE='#'
9078 # does this compiler have built-in functions for atomic memory access ?
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9080 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9083 CFLAGS="$mflag_primary"
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9093 return (__sync_bool_compare_and_swap(&variable, 1, 2)
9094 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9100 if ac_fn_c_try_link "$LINENO"; then :
9102 ac_have_builtin_atomic=yes
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9104 $as_echo "yes" >&6; }
9106 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9111 ac_have_builtin_atomic=no
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9116 rm -f core conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9121 if test x$ac_have_builtin_atomic = xyes; then
9122 HAVE_BUILTIN_ATOMIC_TRUE=
9123 HAVE_BUILTIN_ATOMIC_FALSE='#'
9125 HAVE_BUILTIN_ATOMIC_TRUE='#'
9126 HAVE_BUILTIN_ATOMIC_FALSE=
9130 # does g++ have built-in functions for atomic memory access ?
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_bool_compare_and_swap" >&5
9132 $as_echo_n "checking if g++ supports __sync_bool_compare_and_swap... " >&6; }
9134 safe_CXXFLAGS=$CXXFLAGS
9135 CXXFLAGS="$mflag_primary"
9138 ac_cpp='$CXXCPP $CPPFLAGS'
9139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9151 return (__sync_bool_compare_and_swap(&variable, 1, 2)
9152 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9158 if ac_fn_cxx_try_link "$LINENO"; then :
9160 ac_have_builtin_atomic_cxx=yes
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9162 $as_echo "yes" >&6; }
9164 $as_echo "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h
9169 ac_have_builtin_atomic_cxx=no
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9174 rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9177 ac_cpp='$CPP $CPPFLAGS'
9178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9183 CXXFLAGS=$safe_CXXFLAGS
9185 if test x$ac_have_builtin_atomic_cxx = xyes; then
9186 HAVE_BUILTIN_ATOMIC_CXX_TRUE=
9187 HAVE_BUILTIN_ATOMIC_CXX_FALSE='#'
9189 HAVE_BUILTIN_ATOMIC_CXX_TRUE='#'
9190 HAVE_BUILTIN_ATOMIC_CXX_FALSE=
9194 #----------------------------------------------------------------------------
9195 # Ok. We're done checking.
9196 #----------------------------------------------------------------------------
9198 # Nb: VEX/Makefile is generated from Makefile.vex.in.
9199 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"
9201 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9203 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9205 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9207 ac_config_files="$ac_config_files coregrind/link_tool_exe_l4re"
9209 cat >confcache <<\_ACEOF
9210 # This file is a shell script that caches the results of configure
9211 # tests run on this system so they can be shared between configure
9212 # scripts and configure runs, see configure's option --config-cache.
9213 # It is not useful on other systems. If it contains results you don't
9214 # want to keep, you may remove or edit it.
9216 # config.status only pays attention to the cache file if you give it
9217 # the --recheck option to rerun configure.
9219 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9220 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9225 # The following way of writing the cache mishandles newlines in values,
9226 # but we know of no workaround that is simple, portable, and efficient.
9227 # So, we kill variables containing newlines.
9228 # Ultrix sh set writes to stderr and can't be redirected directly,
9229 # and sets the high bit in the cache file unless we assign to the vars.
9231 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9232 eval ac_val=\$$ac_var
9236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9240 _ | IFS | as_nl) ;; #(
9241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9242 *) { eval $ac_var=; unset $ac_var;} ;;
9248 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9249 *${as_nl}ac_space=\ *)
9250 # `set' does not quote correctly, so add quotes: double-quote
9251 # substitution turns \\\\ into \\, and sed turns \\ into \.
9254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9257 # `set' quotes correctly as required by POSIX, so do not add quotes.
9258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9269 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9271 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9272 if test -w "$cache_file"; then
9273 if test "x$cache_file" != "x/dev/null"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9275 $as_echo "$as_me: updating cache $cache_file" >&6;}
9276 if test ! -f "$cache_file" || test -h "$cache_file"; then
9277 cat confcache >"$cache_file"
9279 case $cache_file in #(
9281 mv -f confcache "$cache_file"$$ &&
9282 mv -f "$cache_file"$$ "$cache_file" ;; #(
9284 mv -f confcache "$cache_file" ;;
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9290 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9296 # Let make expand exec_prefix.
9297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9299 DEFS=-DHAVE_CONFIG_H
9304 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9305 # 1. Remove the extension, and $U if already installed.
9306 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9307 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9308 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9309 # will be set to the directory where LIBOBJS objects are built.
9310 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9311 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9315 LTLIBOBJS=$ac_ltlibobjs
9318 if test -n "$EXEEXT"; then
9320 am__EXEEXT_FALSE='#'
9326 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9327 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9330 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9331 as_fn_error $? "conditional \"AMDEP\" was never defined.
9332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9334 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9335 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9338 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9339 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9342 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9343 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
9344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9346 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9347 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9350 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9351 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9354 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9355 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9358 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9359 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9362 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9363 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9366 if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
9367 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
9368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9370 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9371 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9374 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9375 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9378 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9379 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9382 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9383 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9386 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9387 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9390 if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
9391 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
9392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9394 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9395 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9398 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9399 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9402 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9403 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9406 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9407 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9410 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9411 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9414 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9415 as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9418 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9419 as_fn_error $? "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9422 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9423 as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9426 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9427 as_fn_error $? "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9430 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9431 as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9434 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9435 as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
9436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9438 if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
9439 as_fn_error $? "conditional \"HAS_VSX\" was never defined.
9440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9442 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9443 as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9446 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9447 as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
9448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9450 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9451 as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9454 if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
9455 as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
9456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9458 if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
9459 as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
9460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9462 if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
9463 as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
9464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9466 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9467 as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9470 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9471 as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9474 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9475 as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9478 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9479 as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9482 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9483 as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9486 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9487 as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
9488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9490 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9491 as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
9492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9494 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9495 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9498 if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
9499 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
9500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9503 : "${CONFIG_STATUS=./config.status}"
9505 ac_clean_files_save=$ac_clean_files
9506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9508 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9510 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9512 # Generated by $as_me.
9513 # Run this file to recreate the current configuration.
9514 # Compiler output produced by configure, useful for debugging
9515 # configure, is in config.log if it exists.
9521 SHELL=\${CONFIG_SHELL-$SHELL}
9524 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9525 ## -------------------- ##
9526 ## M4sh Initialization. ##
9527 ## -------------------- ##
9529 # Be more Bourne compatible
9530 DUALCASE=1; export DUALCASE # for MKS sh
9531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9534 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9535 # is contrary to our usage. Disable this feature.
9536 alias -g '${1+"$@"}'='"$@"'
9537 setopt NO_GLOB_SUBST
9539 case `(set -o) 2>/dev/null` in #(
9551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9552 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9555 # Prefer a ksh shell builtin over an external printf program on Solaris,
9556 # but without wasting forks for bash or zsh.
9557 if test -z "$BASH_VERSION$ZSH_VERSION" \
9558 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9559 as_echo='print -r --'
9560 as_echo_n='print -rn --'
9561 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9562 as_echo='printf %s\n'
9563 as_echo_n='printf %s'
9565 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9566 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9567 as_echo_n='/usr/ucb/echo -n'
9569 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9570 as_echo_n_body='eval
9574 expr "X$arg" : "X\\(.*\\)$as_nl";
9575 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9577 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9579 export as_echo_n_body
9580 as_echo_n='sh -c $as_echo_n_body as_echo'
9583 as_echo='sh -c $as_echo_body as_echo'
9586 # The user is always right.
9587 if test "${PATH_SEPARATOR+set}" != set; then
9589 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9590 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9597 # We need space, tab and new line, in precisely that order. Quoting is
9598 # there to prevent editors from complaining about space-tab.
9599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9600 # splitting by setting IFS to empty value.)
9603 # Find who we are. Look in the path if we contain no directory separator.
9606 *[\\/]* ) as_myself=$0 ;;
9607 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 test -z "$as_dir" && as_dir=.
9612 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9618 # We did not find ourselves, most probably we were run as `sh COMMAND'
9619 # in which case we are not to be found in the path.
9620 if test "x$as_myself" = x; then
9623 if test ! -f "$as_myself"; then
9624 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9628 # Unset variables that we do not need and which cause bugs (e.g. in
9629 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9630 # suppresses any "Segmentation fault" message there. '((' could
9631 # trigger a bug in pdksh 5.2.14.
9632 for as_var in BASH_ENV ENV MAIL MAILPATH
9633 do eval test x\${$as_var+set} = xset \
9634 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9647 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9650 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9651 # ----------------------------------------
9652 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9653 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9654 # script with STATUS, using 1 if that was 0.
9657 as_status=$1; test $as_status -eq 0 && as_status=1
9659 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9660 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9662 $as_echo "$as_me: error: $2" >&2
9663 as_fn_exit $as_status
9667 # as_fn_set_status STATUS
9668 # -----------------------
9669 # Set $? to STATUS, without forking.
9673 } # as_fn_set_status
9677 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9687 # Portably unset VAR.
9690 { eval $1=; unset $1;}
9692 as_unset=as_fn_unset
9693 # as_fn_append VAR VALUE
9694 # ----------------------
9695 # Append the text in VALUE to the end of the definition contained in VAR. Take
9696 # advantage of any shell optimizations that allow amortized linear growth over
9697 # repeated appends, instead of the typical quadratic growth present in naive
9699 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9700 eval 'as_fn_append ()
9711 # as_fn_arith ARG...
9712 # ------------------
9713 # Perform arithmetic evaluation on the ARGs, and store the result in the
9714 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9715 # must be portable across $(()) and expr.
9716 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9717 eval 'as_fn_arith ()
9724 as_val=`expr "$@" || test $? -eq 1`
9729 if expr a : '\(a\)' >/dev/null 2>&1 &&
9730 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9737 as_basename=basename
9742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9748 as_me=`$as_basename -- "$0" ||
9749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9750 X"$0" : 'X\(//\)$' \| \
9751 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9753 sed '/^.*\/\([^/][^/]*\)\/*$/{
9767 # Avoid depending upon Character Ranges.
9768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9771 as_cr_digits='0123456789'
9772 as_cr_alnum=$as_cr_Letters$as_cr_digits
9774 ECHO_C= ECHO_N= ECHO_T=
9775 case `echo -n x` in #(((((
9777 case `echo 'xy\c'` in
9778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9787 rm -f conf$$ conf$$.exe conf$$.file
9788 if test -d conf$$.dir; then
9789 rm -f conf$$.dir/conf$$.file
9792 mkdir conf$$.dir 2>/dev/null
9794 if (echo >conf$$.file) 2>/dev/null; then
9795 if ln -s conf$$.file conf$$ 2>/dev/null; then
9797 # ... but there are two gotchas:
9798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9800 # In both cases, we have to default to `cp -pR'.
9801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9803 elif ln conf$$.file conf$$ 2>/dev/null; then
9811 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9812 rmdir conf$$.dir 2>/dev/null
9817 # Create "$as_dir" as a directory, including parents if necessary.
9822 -*) as_dir=./$as_dir;;
9824 test -d "$as_dir" || eval $as_mkdir_p || {
9828 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9829 *) as_qdir=$as_dir;;
9831 as_dirs="'$as_qdir' $as_dirs"
9832 as_dir=`$as_dirname -- "$as_dir" ||
9833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9834 X"$as_dir" : 'X\(//\)[^/]' \| \
9835 X"$as_dir" : 'X\(//\)$' \| \
9836 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9837 $as_echo X"$as_dir" |
9838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9855 test -d "$as_dir" && break
9857 test -z "$as_dirs" || eval "mkdir $as_dirs"
9858 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9862 if mkdir -p . 2>/dev/null; then
9863 as_mkdir_p='mkdir -p "$as_dir"'
9865 test -d ./-p && rmdir ./-p
9870 # as_fn_executable_p FILE
9871 # -----------------------
9872 # Test if FILE is an executable regular file.
9873 as_fn_executable_p ()
9875 test -f "$1" && test -x "$1"
9876 } # as_fn_executable_p
9878 as_executable_p=as_fn_executable_p
9880 # Sed expression to map a string onto a valid CPP name.
9881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9883 # Sed expression to map a string onto a valid variable name.
9884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9888 ## ----------------------------------- ##
9889 ## Main body of $CONFIG_STATUS script. ##
9890 ## ----------------------------------- ##
9892 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9895 # Save the log message, to keep $0 and so on meaningful, and to
9896 # report actual input values of CONFIG_FILES etc. instead of their
9897 # values after options handling.
9899 This file was extended by Valgrind $as_me 3.7.0.SVN, which was
9900 generated by GNU Autoconf 2.69. Invocation command line was
9902 CONFIG_FILES = $CONFIG_FILES
9903 CONFIG_HEADERS = $CONFIG_HEADERS
9904 CONFIG_LINKS = $CONFIG_LINKS
9905 CONFIG_COMMANDS = $CONFIG_COMMANDS
9908 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9913 case $ac_config_files in *"
9914 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9917 case $ac_config_headers in *"
9918 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9923 # Files that config.status was made for.
9924 config_files="$ac_config_files"
9925 config_headers="$ac_config_headers"
9926 config_commands="$ac_config_commands"
9930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9932 \`$as_me' instantiates files and other configuration actions
9933 from templates according to the current configuration. Unless the files
9934 and actions are specified as TAGs, all are instantiated by default.
9936 Usage: $0 [OPTION]... [TAG]...
9938 -h, --help print this help, then exit
9939 -V, --version print version number and configuration settings, then exit
9940 --config print configuration, then exit
9941 -q, --quiet, --silent
9942 do not print progress messages
9943 -d, --debug don't remove temporary files
9944 --recheck update $as_me by reconfiguring in the same conditions
9945 --file=FILE[:TEMPLATE]
9946 instantiate the configuration file FILE
9947 --header=FILE[:TEMPLATE]
9948 instantiate the configuration header FILE
9950 Configuration files:
9953 Configuration headers:
9956 Configuration commands:
9959 Report bugs to <valgrind-users@lists.sourceforge.net>."
9962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9963 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9965 Valgrind config.status 3.7.0.SVN
9966 configured by $0, generated by GNU Autoconf 2.69,
9967 with options \\"\$ac_cs_config\\"
9969 Copyright (C) 2012 Free Software Foundation, Inc.
9970 This config.status script is free software; the Free Software Foundation
9971 gives unlimited permission to copy, distribute and modify it."
9978 test -n "\$AWK" || AWK=awk
9981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9982 # The default lists apply if the user does not specify any file.
9988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9989 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10005 # Handling of the options.
10006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10008 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10009 $as_echo "$ac_cs_version"; exit ;;
10010 --config | --confi | --conf | --con | --co | --c )
10011 $as_echo "$ac_cs_config"; exit ;;
10012 --debug | --debu | --deb | --de | --d | -d )
10014 --file | --fil | --fi | --f )
10017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10018 '') as_fn_error $? "missing file argument" ;;
10020 as_fn_append CONFIG_FILES " '$ac_optarg'"
10021 ac_need_defaults=false;;
10022 --header | --heade | --head | --hea )
10025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10027 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10028 ac_need_defaults=false;;
10030 # Conflict between --help and --header
10031 as_fn_error $? "ambiguous option: \`$1'
10032 Try \`$0 --help' for more information.";;
10033 --help | --hel | -h )
10034 $as_echo "$ac_cs_usage"; exit ;;
10035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10039 # This is an error.
10040 -*) as_fn_error $? "unrecognized option: \`$1'
10041 Try \`$0 --help' for more information." ;;
10043 *) as_fn_append ac_config_targets " $1"
10044 ac_need_defaults=false ;;
10050 ac_configure_extra_args=
10052 if $ac_cs_silent; then
10054 ac_configure_extra_args="$ac_configure_extra_args --silent"
10058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10059 if \$ac_cs_recheck; then
10060 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10062 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10063 CONFIG_SHELL='$SHELL'
10064 export CONFIG_SHELL
10069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10074 ## Running $as_me. ##
10080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10084 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10090 # Handling of arguments.
10091 for ac_config_target in $ac_config_targets
10093 case $ac_config_target in
10094 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10095 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10096 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10097 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
10098 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
10099 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
10100 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
10101 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10102 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10103 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
10104 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
10105 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
10106 "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;;
10107 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10108 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
10109 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
10110 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
10111 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
10112 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
10113 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
10114 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
10115 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
10116 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
10117 "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
10118 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
10119 "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
10120 "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
10121 "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
10122 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10123 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10124 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10125 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10126 "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10127 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10128 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10129 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10130 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10131 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10132 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10133 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10134 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10135 "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10136 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10137 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10138 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10139 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10140 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10141 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10142 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10143 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10144 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10145 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10146 "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;;
10147 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10148 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10149 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10150 "exp-sgcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/Makefile" ;;
10151 "exp-sgcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/tests/Makefile" ;;
10152 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10153 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10154 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10155 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10156 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10157 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10158 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10159 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10160 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10161 "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;;
10162 "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;;
10163 "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10164 "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10165 "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10166 "coregrind/link_tool_exe_l4re") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_l4re" ;;
10168 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10173 # If the user did not use the arguments to specify the items to instantiate,
10174 # then the envvar interface is used. Set only those that are not.
10175 # We use the long form for the default assignment because of an extremely
10176 # bizarre bug on SunOS 4.1.3.
10177 if $ac_need_defaults; then
10178 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10179 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10180 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10183 # Have a temporary directory for convenience. Make it in the build tree
10184 # simply because there is no reason against having it here, and in addition,
10185 # creating and moving files from /tmp can sometimes cause problems.
10186 # Hook for its removal unless debugging.
10187 # Note that there is a small window in which the directory will not be cleaned:
10188 # after its creation but before its name has been assigned to `$tmp'.
10192 trap 'exit_status=$?
10193 : "${ac_tmp:=$tmp}"
10194 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10196 trap 'as_fn_exit 1' 1 2 13 15
10198 # Create a (secure) tmp directory for tmp files.
10201 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10205 tmp=./conf$$-$RANDOM
10206 (umask 077 && mkdir "$tmp")
10207 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10210 # Set up the scripts for CONFIG_FILES section.
10211 # No need to generate them if there are no CONFIG_FILES.
10212 # This happens for instance with `./config.status config.h'.
10213 if test -n "$CONFIG_FILES"; then
10216 ac_cr=`echo X | tr X '\015'`
10217 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10218 # But we know of no other shell where ac_cr would be empty at this
10219 # point, so we can use a bashism as a fallback.
10220 if test "x$ac_cr" = x; then
10221 eval ac_cr=\$\'\\r\'
10223 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10224 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10227 ac_cs_awk_cr=$ac_cr
10230 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10235 echo "cat >conf$$subs.awk <<_ACEOF" &&
10236 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10238 } >conf$$subs.sh ||
10239 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10240 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10242 for ac_last_try in false false false false false :; do
10243 . ./conf$$subs.sh ||
10244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10246 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10247 if test $ac_delim_n = $ac_delim_num; then
10249 elif $ac_last_try; then
10250 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10255 rm -f conf$$subs.sh
10257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10258 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10262 s/^/S["/; s/!.*/"]=/
10272 s/\(.\{148\}\)..*/\1/
10274 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10286 s/\(.\{148\}\)..*/\1/
10288 s/["\\]/\\&/g; s/^/"/; s/$/"/
10292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10297 ' <conf$$subs.awk | sed '
10302 ' >>$CONFIG_STATUS || ac_write_fail=1
10303 rm -f conf$$subs.awk
10304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10306 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10307 for (key in S) S_is_set[key] = 1
10313 nfields = split(line, field, "@")
10315 len = length(field[1])
10316 for (i = 2; i < nfields; i++) {
10318 keylen = length(key)
10319 if (S_is_set[key]) {
10321 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10322 len += length(value) + length(field[++i])
10333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10334 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10335 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10338 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10339 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10342 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10343 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10344 # trailing colons and then remove the whole line if VPATH becomes empty
10345 # (actually we leave an empty line to preserve line numbers).
10346 if test "x$srcdir" = x.; then
10347 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10366 fi # test -n "$CONFIG_FILES"
10368 # Set up the scripts for CONFIG_HEADERS section.
10369 # No need to generate them if there are no CONFIG_HEADERS.
10370 # This happens for instance with `./config.status Makefile'.
10371 if test -n "$CONFIG_HEADERS"; then
10372 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10376 # Transform confdefs.h into an awk script `defines.awk', embedded as
10377 # here-document in config.status, that substitutes the proper values into
10378 # config.h.in to produce config.h.
10380 # Create a delimiter string that does not exist in confdefs.h, to ease
10381 # handling of long lines.
10383 for ac_last_try in false false :; do
10384 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10385 if test -z "$ac_tt"; then
10387 elif $ac_last_try; then
10388 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10394 # For the awk script, D is an array of macro values keyed by name,
10395 # likewise P contains macro parameters if any. Preserve backslash
10396 # newline sequences.
10398 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10400 s/.\{148\}/&'"$ac_delim"'/g
10403 s/^[ ]*#[ ]*define[ ][ ]*/ /
10410 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10416 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10417 D["\1"]=" \3\\\\\\n"\\/p
10419 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10424 s/.\{148\}/&'"$ac_delim"'/g
10429 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10432 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10434 ' <confdefs.h | sed '
10435 s/'"$ac_delim"'/"\\\
10436 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10439 for (key in D) D_is_set[key] = 1
10442 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10444 split(line, arg, " ")
10445 if (arg[1] == "#") {
10449 defundef = substr(arg[1], 2)
10452 split(mac1, mac2, "(") #)
10454 prefix = substr(line, 1, index(line, defundef) - 1)
10455 if (D_is_set[macro]) {
10456 # Preserve the white space surrounding the "#".
10457 print prefix "define", macro P[macro] D[macro]
10460 # Replace #undef with comments. This is necessary, for example,
10461 # in the case of _POSIX_SOURCE, which is predefined and required
10462 # on some systems where configure will not decide to define it.
10463 if (defundef == "undef") {
10464 print "/*", prefix defundef, macro, "*/"
10472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10473 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10474 fi # test -n "$CONFIG_HEADERS"
10477 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10482 :[FHLC]) ac_mode=$ac_tag; continue;;
10484 case $ac_mode$ac_tag in
10486 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10487 :[FH]-) ac_tag=-:-;;
10488 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10505 -) ac_f="$ac_tmp/stdin";;
10506 *) # Look for the file first in the build tree, then in the source tree
10507 # (if the path is not absolute). The absolute path cannot be DOS-style,
10508 # because $ac_f cannot contain `:'.
10512 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10514 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10516 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10517 as_fn_append ac_file_inputs " '$ac_f'"
10520 # Let's still pretend it is `configure' which instantiates (i.e., don't
10521 # use $as_me), people would be surprised to read:
10522 # /* config.h. Generated by config.status. */
10523 configure_input='Generated from '`
10524 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10526 if test x"$ac_file" != x-; then
10527 configure_input="$ac_file. $configure_input"
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10529 $as_echo "$as_me: creating $ac_file" >&6;}
10531 # Neutralize special characters interpreted by sed in replacement strings.
10532 case $configure_input in #(
10533 *\&* | *\|* | *\\* )
10534 ac_sed_conf_input=`$as_echo "$configure_input" |
10535 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10536 *) ac_sed_conf_input=$configure_input;;
10540 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10546 ac_dir=`$as_dirname -- "$ac_file" ||
10547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10548 X"$ac_file" : 'X\(//\)[^/]' \| \
10549 X"$ac_file" : 'X\(//\)$' \| \
10550 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10551 $as_echo X"$ac_file" |
10552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10556 /^X\(\/\/\)[^/].*/{
10569 as_dir="$ac_dir"; as_fn_mkdir_p
10573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10576 # A ".." for each directory in $ac_dir_suffix.
10577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10578 case $ac_top_builddir_sub in
10579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10583 ac_abs_top_builddir=$ac_pwd
10584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10585 # for backward compatibility:
10586 ac_top_builddir=$ac_top_build_prefix
10589 .) # We are building in place.
10591 ac_top_srcdir=$ac_top_builddir_sub
10592 ac_abs_top_srcdir=$ac_pwd ;;
10593 [\\/]* | ?:[\\/]* ) # Absolute name.
10594 ac_srcdir=$srcdir$ac_dir_suffix;
10595 ac_top_srcdir=$srcdir
10596 ac_abs_top_srcdir=$srcdir ;;
10597 *) # Relative name.
10598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10599 ac_top_srcdir=$ac_top_build_prefix$srcdir
10600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10612 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10613 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10615 ac_MKDIR_P=$MKDIR_P
10617 [\\/$]* | ?:[\\/]* ) ;;
10618 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10623 # If the template does not know about datarootdir, expand it.
10624 # FIXME: This hack should be removed a few years after 2.60.
10625 ac_datarootdir_hack=; ac_datarootdir_seen=
10636 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10637 *datarootdir*) ac_datarootdir_seen=yes;;
10638 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10640 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10643 ac_datarootdir_hack='
10644 s&@datadir@&$datadir&g
10645 s&@docdir@&$docdir&g
10646 s&@infodir@&$infodir&g
10647 s&@localedir@&$localedir&g
10648 s&@mandir@&$mandir&g
10649 s&\\\${datarootdir}&$datarootdir&g' ;;
10653 # Neutralize VPATH when `$srcdir' = `.'.
10654 # Shell code in configure.ac might set extrasub.
10655 # FIXME: do we really want to maintain this feature?
10656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10657 ac_sed_extra="$ac_vpsub
10660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10663 s|@configure_input@|$ac_sed_conf_input|;t t
10664 s&@top_builddir@&$ac_top_builddir_sub&;t t
10665 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10666 s&@srcdir@&$ac_srcdir&;t t
10667 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10668 s&@top_srcdir@&$ac_top_srcdir&;t t
10669 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10670 s&@builddir@&$ac_builddir&;t t
10671 s&@abs_builddir@&$ac_abs_builddir&;t t
10672 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10673 s&@INSTALL@&$ac_INSTALL&;t t
10674 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10675 $ac_datarootdir_hack
10677 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10678 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10680 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10681 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10682 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10683 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10685 which seems to be undefined. Please make sure it is defined" >&5
10686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10687 which seems to be undefined. Please make sure it is defined" >&2;}
10689 rm -f "$ac_tmp/stdin"
10691 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10692 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10700 if test x"$ac_file" != x-; then
10702 $as_echo "/* $configure_input */" \
10703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10704 } >"$ac_tmp/config.h" \
10705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10706 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10708 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10711 mv "$ac_tmp/config.h" "$ac_file" \
10712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10715 $as_echo "/* $configure_input */" \
10716 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10717 || as_fn_error $? "could not create -" "$LINENO" 5
10719 # Compute "$ac_file"'s index in $config_headers.
10722 for _am_header in $config_headers :; do
10723 case $_am_header in
10724 $_am_arg | $_am_arg:* )
10727 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10730 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10731 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10732 X"$_am_arg" : 'X\(//\)[^/]' \| \
10733 X"$_am_arg" : 'X\(//\)$' \| \
10734 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10735 $as_echo X"$_am_arg" |
10736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10740 /^X\(\/\/\)[^/].*/{
10752 s/.*/./; q'`/stamp-h$_am_stamp_count
10755 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10756 $as_echo "$as_me: executing $ac_file commands" >&6;}
10761 case $ac_file$ac_mode in
10762 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10763 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10764 # are listed without --file. Let's play safe and only enable the eval
10765 # if we detect the quoting.
10766 case $CONFIG_FILES in
10767 *\'*) eval set x "$CONFIG_FILES" ;;
10768 *) set x $CONFIG_FILES ;;
10773 # Strip MF so we end up with the name of the file.
10774 mf=`echo "$mf" | sed -e 's/:.*$//'`
10775 # Check whether this is an Automake generated Makefile or not.
10776 # We used to match only the files named `Makefile.in', but
10777 # some people rename them; so instead we look at the file content.
10778 # Grep'ing the first line is not enough: some people post-process
10779 # each Makefile.in and add a new line on top of each file to say so.
10780 # Grep'ing the whole file is not good either: AIX grep has a line
10781 # limit of 2048, but all sed's we know have understand at least 4000.
10782 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10783 dirpart=`$as_dirname -- "$mf" ||
10784 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10785 X"$mf" : 'X\(//\)[^/]' \| \
10786 X"$mf" : 'X\(//\)$' \| \
10787 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10793 /^X\(\/\/\)[^/].*/{
10809 # Extract the definition of DEPDIR, am__include, and am__quote
10810 # from the Makefile without running `make'.
10811 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10812 test -z "$DEPDIR" && continue
10813 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10814 test -z "am__include" && continue
10815 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10816 # When using ansi2knr, U may be empty or an underscore; expand it
10817 U=`sed -n 's/^U = //p' < "$mf"`
10818 # Find all dependency output files, they are included files with
10819 # $(DEPDIR) in their names. We invoke sed twice because it is the
10820 # simplest approach to changing $(DEPDIR) to its actual value in the
10822 for file in `sed -n "
10823 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10824 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10825 # Make sure the directory exists.
10826 test -f "$dirpart/$file" && continue
10827 fdir=`$as_dirname -- "$file" ||
10828 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10829 X"$file" : 'X\(//\)[^/]' \| \
10830 X"$file" : 'X\(//\)$' \| \
10831 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10832 $as_echo X"$file" |
10833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10837 /^X\(\/\/\)[^/].*/{
10850 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10851 # echo "creating $dirpart/$file"
10852 echo '# dummy' > "$dirpart/$file"
10857 "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10858 "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10859 "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10860 "coregrind/link_tool_exe_l4re":F) chmod +x coregrind/link_tool_exe_l4re ;;
10868 ac_clean_files=$ac_clean_files_save
10870 test $ac_write_fail = 0 ||
10871 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10874 # configure is writing to config.log, and then calls config.status.
10875 # config.status does its own redirection, appending to config.log.
10876 # Unfortunately, on DOS this fails, as config.log is still kept open
10877 # by configure, so config.status won't be able to write to it; its
10878 # output is simply discarded. So we exec the FD to /dev/null,
10879 # effectively closing config.log, so it can be properly (re)opened and
10880 # appended to by config.status. When coming back to configure, we
10881 # need to make the FD available again.
10882 if test "$no_create" != yes; then
10884 ac_config_status_args=
10885 test "$silent" = yes &&
10886 ac_config_status_args="$ac_config_status_args --quiet"
10888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10891 # would make configure fail if this is the last instruction.
10892 $ac_cs_success || as_fn_exit 1
10894 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10896 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10902 Maximum build arch: ${ARCH_MAX}
10903 Primary build arch: ${VGCONF_ARCH_PRI}
10904 Secondary build arch: ${VGCONF_ARCH_SEC}
10905 Build OS: ${VGCONF_OS}
10906 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10907 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10908 Default supp files: ${DEFAULT_SUPP}
10909 Generated supp files: ${GENERATED_SUPP}