]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/configure
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Valgrind 3.6.0.SVN.
4 #
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: valgrind-users@lists.sourceforge.net about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='Valgrind'
554 PACKAGE_TARNAME='valgrind'
555 PACKAGE_VERSION='3.6.0.SVN'
556 PACKAGE_STRING='Valgrind 3.6.0.SVN'
557 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
558 PACKAGE_URL=''
559
560 ac_unique_file="coregrind/m_main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_header_list=
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 HAVE_BUILTIN_ATOMIC_FALSE
602 HAVE_BUILTIN_ATOMIC_TRUE
603 HAVE_OPENMP_FALSE
604 HAVE_OPENMP_TRUE
605 HAVE_BOOST_1_35_FALSE
606 HAVE_BOOST_1_35_TRUE
607 BOOST_LIBS
608 BOOST_CFLAGS
609 HAVE_QTCORE_QATOMICINT_FALSE
610 HAVE_QTCORE_QATOMICINT_TRUE
611 HAVE_QTCORE_FALSE
612 HAVE_QTCORE_TRUE
613 QTCORE_LIBS
614 QTCORE_CFLAGS
615 PKG_CONFIG_LIBDIR
616 PKG_CONFIG_PATH
617 PKG_CONFIG
618 BUILD_MPIWRAP_SEC_FALSE
619 BUILD_MPIWRAP_SEC_TRUE
620 BUILD_MPIWRAP_PRI_FALSE
621 BUILD_MPIWRAP_PRI_TRUE
622 MPI_CC
623 HAVE_PTHREAD_SPINLOCK_FALSE
624 HAVE_PTHREAD_SPINLOCK_TRUE
625 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
626 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
627 HAVE_PTHREAD_BARRIER_FALSE
628 HAVE_PTHREAD_BARRIER_TRUE
629 LIBOBJS
630 BUILD_SSSE3_TESTS_FALSE
631 BUILD_SSSE3_TESTS_TRUE
632 BUILD_SSE3_TESTS_FALSE
633 BUILD_SSE3_TESTS_TRUE
634 FLAG_NO_BUILD_ID
635 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
636 FLAG_FNO_STACK_PROTECTOR
637 FLAG_W_EXTRA
638 FLAG_W_NO_UNINITIALIZED
639 FLAG_W_NO_FORMAT_ZERO_LENGTH
640 FLAG_W_NO_EMPTY_BODY
641 PREFERRED_STACK_BOUNDARY
642 FLAG_MSSE
643 FLAG_MMMX
644 FLAG_MAIX64
645 FLAG_M64
646 FLAG_MAIX32
647 FLAG_M32
648 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
649 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
650 HAVE_ALTIVEC_H_FALSE
651 HAVE_ALTIVEC_H_TRUE
652 HAS_ALTIVEC_FALSE
653 HAS_ALTIVEC_TRUE
654 GLIBC_VERSION
655 EGREP
656 GREP
657 GENERATED_SUPP
658 DEFAULT_SUPP
659 VALT_LOAD_ADDRESS_SEC
660 VALT_LOAD_ADDRESS_PRI
661 VGCONF_HAVE_PLATFORM_SEC_FALSE
662 VGCONF_HAVE_PLATFORM_SEC_TRUE
663 VGCONF_OS_IS_L4RE_FALSE
664 VGCONF_OS_IS_L4RE_TRUE
665 VGCONF_OS_IS_DARWIN_FALSE
666 VGCONF_OS_IS_DARWIN_TRUE
667 VGCONF_OS_IS_AIX5_FALSE
668 VGCONF_OS_IS_AIX5_TRUE
669 VGCONF_OS_IS_LINUX_FALSE
670 VGCONF_OS_IS_LINUX_TRUE
671 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
672 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
673 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
674 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
675 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
676 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
677 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
678 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
679 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
680 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
681 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
682 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
683 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
684 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
685 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
686 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
687 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
688 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
689 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
690 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
691 VGCONF_ARCHS_INCLUDE_ARM_FALSE
692 VGCONF_ARCHS_INCLUDE_ARM_TRUE
693 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
694 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
695 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
696 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
697 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
698 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
699 VGCONF_ARCHS_INCLUDE_X86_FALSE
700 VGCONF_ARCHS_INCLUDE_X86_TRUE
701 VGCONF_PLATFORM_SEC_CAPS
702 VGCONF_PLATFORM_PRI_CAPS
703 VGCONF_ARCH_SEC
704 VGCONF_ARCH_PRI
705 VGCONF_OS
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 DIFF
715 am__fastdepCCAS_FALSE
716 am__fastdepCCAS_TRUE
717 CCASDEPMODE
718 CCASFLAGS
719 CCAS
720 GDB
721 PERL
722 AR
723 SED
724 RANLIB
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
730 CXX
731 CPP
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 LN_S
749 MAINT
750 MAINTAINER_MODE_FALSE
751 MAINTAINER_MODE_TRUE
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
757 AWK
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_maintainer_mode
817 enable_dependency_tracking
818 enable_only64bit
819 enable_only32bit
820 enable_inner
821 enable_tls
822 with_mpicc
823 '
824       ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CPP
833 CXX
834 CXXFLAGS
835 CCC
836 AR
837 CCAS
838 CCASFLAGS
839 PKG_CONFIG
840 PKG_CONFIG_PATH
841 PKG_CONFIG_LIBDIR
842 QTCORE_CFLAGS
843 QTCORE_LIBS'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898   # If the previous option needs an argument, assign it.
899   if test -n "$ac_prev"; then
900     eval $ac_prev=\$ac_option
901     ac_prev=
902     continue
903   fi
904
905   case $ac_option in
906   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907   *)    ac_optarg=yes ;;
908   esac
909
910   # Accept the important Cygnus configure options, so we can diagnose typos.
911
912   case $ac_dashdash$ac_option in
913   --)
914     ac_dashdash=yes ;;
915
916   -bindir | --bindir | --bindi | --bind | --bin | --bi)
917     ac_prev=bindir ;;
918   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919     bindir=$ac_optarg ;;
920
921   -build | --build | --buil | --bui | --bu)
922     ac_prev=build_alias ;;
923   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924     build_alias=$ac_optarg ;;
925
926   -cache-file | --cache-file | --cache-fil | --cache-fi \
927   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928     ac_prev=cache_file ;;
929   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931     cache_file=$ac_optarg ;;
932
933   --config-cache | -C)
934     cache_file=config.cache ;;
935
936   -datadir | --datadir | --datadi | --datad)
937     ac_prev=datadir ;;
938   -datadir=* | --datadir=* | --datadi=* | --datad=*)
939     datadir=$ac_optarg ;;
940
941   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942   | --dataroo | --dataro | --datar)
943     ac_prev=datarootdir ;;
944   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946     datarootdir=$ac_optarg ;;
947
948   -disable-* | --disable-*)
949     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952       as_fn_error "invalid feature name: $ac_useropt"
953     ac_useropt_orig=$ac_useropt
954     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955     case $ac_user_opts in
956       *"
957 "enable_$ac_useropt"
958 "*) ;;
959       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960          ac_unrecognized_sep=', ';;
961     esac
962     eval enable_$ac_useropt=no ;;
963
964   -docdir | --docdir | --docdi | --doc | --do)
965     ac_prev=docdir ;;
966   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967     docdir=$ac_optarg ;;
968
969   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970     ac_prev=dvidir ;;
971   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972     dvidir=$ac_optarg ;;
973
974   -enable-* | --enable-*)
975     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976     # Reject names that are not valid shell variable names.
977     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978       as_fn_error "invalid feature name: $ac_useropt"
979     ac_useropt_orig=$ac_useropt
980     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981     case $ac_user_opts in
982       *"
983 "enable_$ac_useropt"
984 "*) ;;
985       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986          ac_unrecognized_sep=', ';;
987     esac
988     eval enable_$ac_useropt=\$ac_optarg ;;
989
990   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992   | --exec | --exe | --ex)
993     ac_prev=exec_prefix ;;
994   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996   | --exec=* | --exe=* | --ex=*)
997     exec_prefix=$ac_optarg ;;
998
999   -gas | --gas | --ga | --g)
1000     # Obsolete; use --with-gas.
1001     with_gas=yes ;;
1002
1003   -help | --help | --hel | --he | -h)
1004     ac_init_help=long ;;
1005   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006     ac_init_help=recursive ;;
1007   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008     ac_init_help=short ;;
1009
1010   -host | --host | --hos | --ho)
1011     ac_prev=host_alias ;;
1012   -host=* | --host=* | --hos=* | --ho=*)
1013     host_alias=$ac_optarg ;;
1014
1015   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016     ac_prev=htmldir ;;
1017   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018   | --ht=*)
1019     htmldir=$ac_optarg ;;
1020
1021   -includedir | --includedir | --includedi | --included | --include \
1022   | --includ | --inclu | --incl | --inc)
1023     ac_prev=includedir ;;
1024   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025   | --includ=* | --inclu=* | --incl=* | --inc=*)
1026     includedir=$ac_optarg ;;
1027
1028   -infodir | --infodir | --infodi | --infod | --info | --inf)
1029     ac_prev=infodir ;;
1030   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031     infodir=$ac_optarg ;;
1032
1033   -libdir | --libdir | --libdi | --libd)
1034     ac_prev=libdir ;;
1035   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036     libdir=$ac_optarg ;;
1037
1038   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039   | --libexe | --libex | --libe)
1040     ac_prev=libexecdir ;;
1041   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042   | --libexe=* | --libex=* | --libe=*)
1043     libexecdir=$ac_optarg ;;
1044
1045   -localedir | --localedir | --localedi | --localed | --locale)
1046     ac_prev=localedir ;;
1047   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048     localedir=$ac_optarg ;;
1049
1050   -localstatedir | --localstatedir | --localstatedi | --localstated \
1051   | --localstate | --localstat | --localsta | --localst | --locals)
1052     ac_prev=localstatedir ;;
1053   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055     localstatedir=$ac_optarg ;;
1056
1057   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058     ac_prev=mandir ;;
1059   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060     mandir=$ac_optarg ;;
1061
1062   -nfp | --nfp | --nf)
1063     # Obsolete; use --without-fp.
1064     with_fp=no ;;
1065
1066   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067   | --no-cr | --no-c | -n)
1068     no_create=yes ;;
1069
1070   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072     no_recursion=yes ;;
1073
1074   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076   | --oldin | --oldi | --old | --ol | --o)
1077     ac_prev=oldincludedir ;;
1078   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081     oldincludedir=$ac_optarg ;;
1082
1083   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084     ac_prev=prefix ;;
1085   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086     prefix=$ac_optarg ;;
1087
1088   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089   | --program-pre | --program-pr | --program-p)
1090     ac_prev=program_prefix ;;
1091   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093     program_prefix=$ac_optarg ;;
1094
1095   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096   | --program-suf | --program-su | --program-s)
1097     ac_prev=program_suffix ;;
1098   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100     program_suffix=$ac_optarg ;;
1101
1102   -program-transform-name | --program-transform-name \
1103   | --program-transform-nam | --program-transform-na \
1104   | --program-transform-n | --program-transform- \
1105   | --program-transform | --program-transfor \
1106   | --program-transfo | --program-transf \
1107   | --program-trans | --program-tran \
1108   | --progr-tra | --program-tr | --program-t)
1109     ac_prev=program_transform_name ;;
1110   -program-transform-name=* | --program-transform-name=* \
1111   | --program-transform-nam=* | --program-transform-na=* \
1112   | --program-transform-n=* | --program-transform-=* \
1113   | --program-transform=* | --program-transfor=* \
1114   | --program-transfo=* | --program-transf=* \
1115   | --program-trans=* | --program-tran=* \
1116   | --progr-tra=* | --program-tr=* | --program-t=*)
1117     program_transform_name=$ac_optarg ;;
1118
1119   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120     ac_prev=pdfdir ;;
1121   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122     pdfdir=$ac_optarg ;;
1123
1124   -psdir | --psdir | --psdi | --psd | --ps)
1125     ac_prev=psdir ;;
1126   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127     psdir=$ac_optarg ;;
1128
1129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130   | -silent | --silent | --silen | --sile | --sil)
1131     silent=yes ;;
1132
1133   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134     ac_prev=sbindir ;;
1135   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136   | --sbi=* | --sb=*)
1137     sbindir=$ac_optarg ;;
1138
1139   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141   | --sharedst | --shareds | --shared | --share | --shar \
1142   | --sha | --sh)
1143     ac_prev=sharedstatedir ;;
1144   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147   | --sha=* | --sh=*)
1148     sharedstatedir=$ac_optarg ;;
1149
1150   -site | --site | --sit)
1151     ac_prev=site ;;
1152   -site=* | --site=* | --sit=*)
1153     site=$ac_optarg ;;
1154
1155   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156     ac_prev=srcdir ;;
1157   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158     srcdir=$ac_optarg ;;
1159
1160   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161   | --syscon | --sysco | --sysc | --sys | --sy)
1162     ac_prev=sysconfdir ;;
1163   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165     sysconfdir=$ac_optarg ;;
1166
1167   -target | --target | --targe | --targ | --tar | --ta | --t)
1168     ac_prev=target_alias ;;
1169   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170     target_alias=$ac_optarg ;;
1171
1172   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173     verbose=yes ;;
1174
1175   -version | --version | --versio | --versi | --vers | -V)
1176     ac_init_version=: ;;
1177
1178   -with-* | --with-*)
1179     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182       as_fn_error "invalid package name: $ac_useropt"
1183     ac_useropt_orig=$ac_useropt
1184     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185     case $ac_user_opts in
1186       *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190          ac_unrecognized_sep=', ';;
1191     esac
1192     eval with_$ac_useropt=\$ac_optarg ;;
1193
1194   -without-* | --without-*)
1195     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198       as_fn_error "invalid package name: $ac_useropt"
1199     ac_useropt_orig=$ac_useropt
1200     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201     case $ac_user_opts in
1202       *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206          ac_unrecognized_sep=', ';;
1207     esac
1208     eval with_$ac_useropt=no ;;
1209
1210   --x)
1211     # Obsolete; use --with-x.
1212     with_x=yes ;;
1213
1214   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215   | --x-incl | --x-inc | --x-in | --x-i)
1216     ac_prev=x_includes ;;
1217   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219     x_includes=$ac_optarg ;;
1220
1221   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223     ac_prev=x_libraries ;;
1224   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226     x_libraries=$ac_optarg ;;
1227
1228   -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1230     ;;
1231
1232   *=*)
1233     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234     # Reject names that are not valid shell variable names.
1235     case $ac_envvar in #(
1236       '' | [0-9]* | *[!_$as_cr_alnum]* )
1237       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238     esac
1239     eval $ac_envvar=\$ac_optarg
1240     export $ac_envvar ;;
1241
1242   *)
1243     # FIXME: should be removed in autoconf 3.0.
1244     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248     ;;
1249
1250   esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255   as_fn_error "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259   case $enable_option_checking in
1260     no) ;;
1261     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263   esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir
1271 do
1272   eval ac_val=\$$ac_var
1273   # Remove trailing slashes.
1274   case $ac_val in
1275     */ )
1276       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277       eval $ac_var=\$ac_val;;
1278   esac
1279   # Be sure to have absolute directory names.
1280   case $ac_val in
1281     [\\/$]* | ?:[\\/]* )  continue;;
1282     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283   esac
1284   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296   if test "x$build_alias" = x; then
1297     cross_compiling=maybe
1298     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299     If a cross compiler is detected then cross compile mode will be used." >&2
1300   elif test "x$build_alias" != "x$host_alias"; then
1301     cross_compiling=yes
1302   fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314   as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316   as_fn_error "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321   ac_srcdir_defaulted=yes
1322   # Try the directory containing this script, then the parent directory.
1323   ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325          X"$as_myself" : 'X\(//\)[^/]' \| \
1326          X"$as_myself" : 'X\(//\)$' \| \
1327          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)[^/].*/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\).*/{
1342             s//\1/
1343             q
1344           }
1345           s/.*/./; q'`
1346   srcdir=$ac_confdir
1347   if test ! -r "$srcdir/$ac_unique_file"; then
1348     srcdir=..
1349   fi
1350 else
1351   ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360         pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363   srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_env_${ac_var}_value=\$${ac_var}
1374   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382   # Omit some internal or obsolete options to make the list less imposing.
1383   # This message is too long to be a string in the A/UX 3.1 sh.
1384   cat <<_ACEOF
1385 \`configure' configures Valgrind 3.6.0.SVN to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE.  See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395   -h, --help              display this help and exit
1396       --help=short        display options specific to this package
1397       --help=recursive    display the short help of all the included packages
1398   -V, --version           display version information and exit
1399   -q, --quiet, --silent   do not print \`checking...' messages
1400       --cache-file=FILE   cache test results in FILE [disabled]
1401   -C, --config-cache      alias for \`--cache-file=config.cache'
1402   -n, --no-create         do not create output files
1403       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1404
1405 Installation directories:
1406   --prefix=PREFIX         install architecture-independent files in PREFIX
1407                           [$ac_default_prefix]
1408   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1409                           [PREFIX]
1410
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419   --bindir=DIR            user executables [EPREFIX/bin]
1420   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1421   --libexecdir=DIR        program executables [EPREFIX/libexec]
1422   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1423   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1424   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1425   --libdir=DIR            object code libraries [EPREFIX/lib]
1426   --includedir=DIR        C header files [PREFIX/include]
1427   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1428   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1429   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1430   --infodir=DIR           info documentation [DATAROOTDIR/info]
1431   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1432   --mandir=DIR            man documentation [DATAROOTDIR/man]
1433   --docdir=DIR            documentation root [DATAROOTDIR/doc/valgrind]
1434   --htmldir=DIR           html documentation [DOCDIR]
1435   --dvidir=DIR            dvi documentation [DOCDIR]
1436   --pdfdir=DIR            pdf documentation [DOCDIR]
1437   --psdir=DIR             ps documentation [DOCDIR]
1438 _ACEOF
1439
1440   cat <<\_ACEOF
1441
1442 Program names:
1443   --program-prefix=PREFIX            prepend PREFIX to installed program names
1444   --program-suffix=SUFFIX            append SUFFIX to installed program names
1445   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1446
1447 System types:
1448   --build=BUILD     configure for building on BUILD [guessed]
1449   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454   case $ac_init_help in
1455      short | recursive ) echo "Configuration of Valgrind 3.6.0.SVN:";;
1456    esac
1457   cat <<\_ACEOF
1458
1459 Optional Features:
1460   --disable-option-checking  ignore unrecognized --enable/--with options
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --enable-maintainer-mode  enable make rules and dependencies not useful
1464                           (and sometimes confusing) to the casual installer
1465   --disable-dependency-tracking  speeds up one-time build
1466   --enable-dependency-tracking   do not reject slow dependency extractors
1467   --enable-only64bit      do a 64-bit only build
1468   --enable-only32bit      do a 32-bit only build
1469   --enable-inner          enables self-hosting
1470   --enable-tls            platform supports TLS
1471
1472 Optional Packages:
1473   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475   --with-mpicc=           Specify name of MPI2-ised C compiler
1476
1477 Some influential environment variables:
1478   CC          C compiler command
1479   CFLAGS      C compiler flags
1480   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1481               nonstandard directory <lib dir>
1482   LIBS        libraries to pass to the linker, e.g. -l<library>
1483   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484               you have headers in a nonstandard directory <include dir>
1485   CPP         C preprocessor
1486   CXX         C++ compiler command
1487   CXXFLAGS    C++ compiler flags
1488   AR          Archiver command
1489   CCAS        assembler compiler command (defaults to CC)
1490   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1491   PKG_CONFIG  path to pkg-config utility
1492   PKG_CONFIG_PATH
1493               directories to add to pkg-config's search path
1494   PKG_CONFIG_LIBDIR
1495               path overriding pkg-config's built-in search path
1496   QTCORE_CFLAGS
1497               C compiler flags for QTCORE, overriding pkg-config
1498   QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to <valgrind-users@lists.sourceforge.net>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" ||
1512       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513       continue
1514     ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520   # A ".." for each directory in $ac_dir_suffix.
1521   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522   case $ac_top_builddir_sub in
1523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525   esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533   .)  # We are building in place.
1534     ac_srcdir=.
1535     ac_top_srcdir=$ac_top_builddir_sub
1536     ac_abs_top_srcdir=$ac_pwd ;;
1537   [\\/]* | ?:[\\/]* )  # Absolute name.
1538     ac_srcdir=$srcdir$ac_dir_suffix;
1539     ac_top_srcdir=$srcdir
1540     ac_abs_top_srcdir=$srcdir ;;
1541   *) # Relative name.
1542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543     ac_top_srcdir=$ac_top_build_prefix$srcdir
1544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548     cd "$ac_dir" || { ac_status=$?; continue; }
1549     # Check for guested configure.
1550     if test -f "$ac_srcdir/configure.gnu"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553     elif test -f "$ac_srcdir/configure"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure" --help=recursive
1556     else
1557       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558     fi || ac_status=$?
1559     cd "$ac_pwd" || { ac_status=$?; break; }
1560   done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565   cat <<\_ACEOF
1566 Valgrind configure 3.6.0.SVN
1567 generated by GNU Autoconf 2.65
1568
1569 Copyright (C) 2009 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573   exit
1574 fi
1575
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1579
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   rm -f conftest.$ac_objext
1587   if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590   *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594   (eval "$ac_compile") 2>conftest.err
1595   ac_status=$?
1596   if test -s conftest.err; then
1597     grep -v '^ *+' conftest.err >conftest.er1
1598     cat conftest.er1 >&5
1599     mv -f conftest.er1 conftest.err
1600   fi
1601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602   test $ac_status = 0; } && {
1603          test -z "$ac_c_werror_flag" ||
1604          test ! -s conftest.err
1605        } && test -s conftest.$ac_objext; then :
1606   ac_retval=0
1607 else
1608   $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611         ac_retval=1
1612 fi
1613   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614   as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_compile
1617
1618 # ac_fn_c_try_cpp LINENO
1619 # ----------------------
1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_cpp ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   if { { ac_try="$ac_cpp conftest.$ac_ext"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } >/dev/null && {
1640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        }; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648     ac_retval=1
1649 fi
1650   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_cpp
1654
1655 # ac_fn_cxx_try_compile LINENO
1656 # ----------------------------
1657 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_cxx_try_compile ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   rm -f conftest.$ac_objext
1662   if { { ac_try="$ac_compile"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_compile") 2>conftest.err
1670   ac_status=$?
1671   if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675   fi
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } && {
1678          test -z "$ac_cxx_werror_flag" ||
1679          test ! -s conftest.err
1680        } && test -s conftest.$ac_objext; then :
1681   ac_retval=0
1682 else
1683   $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686         ac_retval=1
1687 fi
1688   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689   as_fn_set_status $ac_retval
1690
1691 } # ac_fn_cxx_try_compile
1692
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1697 {
1698   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699   rm -f conftest.$ac_objext conftest$ac_exeext
1700   if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703   *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707   (eval "$ac_link") 2>conftest.err
1708   ac_status=$?
1709   if test -s conftest.err; then
1710     grep -v '^ *+' conftest.err >conftest.er1
1711     cat conftest.er1 >&5
1712     mv -f conftest.er1 conftest.err
1713   fi
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; } && {
1716          test -z "$ac_c_werror_flag" ||
1717          test ! -s conftest.err
1718        } && test -s conftest$ac_exeext && {
1719          test "$cross_compiling" = yes ||
1720          $as_test_x conftest$ac_exeext
1721        }; then :
1722   ac_retval=0
1723 else
1724   $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727         ac_retval=1
1728 fi
1729   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731   # interfere with the next link command; also delete a directory that is
1732   # left behind by Apple's compiler.  We do this before executing the actions.
1733   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735   as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_link
1738
1739 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1742 # the include files in INCLUDES and setting the cache variable VAR
1743 # accordingly.
1744 ac_fn_c_check_header_mongrel ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751   $as_echo_n "(cached) " >&6
1752 fi
1753 eval ac_res=\$$3
1754                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 else
1757   # Is the header compilable?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1759 $as_echo_n "checking $2 usability... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h.  */
1762 $4
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766   ac_header_compiler=yes
1767 else
1768   ac_header_compiler=no
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1772 $as_echo "$ac_header_compiler" >&6; }
1773
1774 # Is the header present?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1776 $as_echo_n "checking $2 presence... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_cpp "$LINENO"; then :
1782   ac_header_preproc=yes
1783 else
1784   ac_header_preproc=no
1785 fi
1786 rm -f conftest.err conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1788 $as_echo "$ac_header_preproc" >&6; }
1789
1790 # So?  What about this header?
1791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1792   yes:no: )
1793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1794 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797     ;;
1798   no:yes:* )
1799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1800 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1802 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1804 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1806 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 ( cat <<\_ASBOX
1810 ## --------------------------------------------------- ##
1811 ## Report this to valgrind-users@lists.sourceforge.net ##
1812 ## --------------------------------------------------- ##
1813 _ASBOX
1814      ) | sed "s/^/$as_me: WARNING:     /" >&2
1815     ;;
1816 esac
1817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820   $as_echo_n "(cached) " >&6
1821 else
1822   eval "$3=\$ac_header_compiler"
1823 fi
1824 eval ac_res=\$$3
1825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 fi
1828   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829
1830 } # ac_fn_c_check_header_mongrel
1831
1832 # ac_fn_c_try_run LINENO
1833 # ----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1835 # that executables *can* be run.
1836 ac_fn_c_try_run ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_link") 2>&5
1847   ac_status=$?
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1850   { { case "(($ac_try" in
1851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852   *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856   (eval "$ac_try") 2>&5
1857   ac_status=$?
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; }; }; then :
1860   ac_retval=0
1861 else
1862   $as_echo "$as_me: program exited with status $ac_status" >&5
1863        $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866        ac_retval=$ac_status
1867 fi
1868   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870   as_fn_set_status $ac_retval
1871
1872 } # ac_fn_c_try_run
1873
1874 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1875 # -------------------------------------------------------
1876 # Tests whether HEADER exists and can be compiled using the include files in
1877 # INCLUDES, setting the cache variable VAR accordingly.
1878 ac_fn_c_check_header_compile ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884   $as_echo_n "(cached) " >&6
1885 else
1886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 $4
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892   eval "$3=yes"
1893 else
1894   eval "$3=no"
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 fi
1898 eval ac_res=\$$3
1899                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
1903 } # ac_fn_c_check_header_compile
1904
1905 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1906 # -------------------------------------------
1907 # Tests whether TYPE exists after having included INCLUDES, setting cache
1908 # variable VAR accordingly.
1909 ac_fn_c_check_type ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915   $as_echo_n "(cached) " >&6
1916 else
1917   eval "$3=no"
1918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof ($2))
1925          return 0;
1926   ;
1927   return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 $4
1934 int
1935 main ()
1936 {
1937 if (sizeof (($2)))
1938             return 0;
1939   ;
1940   return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944
1945 else
1946   eval "$3=yes"
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956
1957 } # ac_fn_c_check_type
1958
1959 # ac_fn_c_check_func LINENO FUNC VAR
1960 # ----------------------------------
1961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1962 ac_fn_c_check_func ()
1963 {
1964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968   $as_echo_n "(cached) " >&6
1969 else
1970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1974 #define $2 innocuous_$2
1975
1976 /* System header to define __stub macros and hopefully few prototypes,
1977     which can conflict with char $2 (); below.
1978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1979     <limits.h> exists even on freestanding compilers.  */
1980
1981 #ifdef __STDC__
1982 # include <limits.h>
1983 #else
1984 # include <assert.h>
1985 #endif
1986
1987 #undef $2
1988
1989 /* Override any GCC internal prototype to avoid an error.
1990    Use char because int might match the return type of a GCC
1991    builtin and then its argument prototype would still apply.  */
1992 #ifdef __cplusplus
1993 extern "C"
1994 #endif
1995 char $2 ();
1996 /* The GNU C library defines this for functions which it implements
1997     to always fail with ENOSYS.  Some functions are actually named
1998     something starting with __ and the normal name is an alias.  */
1999 #if defined __stub_$2 || defined __stub___$2
2000 choke me
2001 #endif
2002
2003 int
2004 main ()
2005 {
2006 return $2 ();
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_link "$LINENO"; then :
2012   eval "$3=yes"
2013 else
2014   eval "$3=no"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext \
2017     conftest$ac_exeext conftest.$ac_ext
2018 fi
2019 eval ac_res=\$$3
2020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023
2024 } # ac_fn_c_check_func
2025
2026 # ac_fn_cxx_try_link LINENO
2027 # -------------------------
2028 # Try to link conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_link ()
2030 {
2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032   rm -f conftest.$ac_objext conftest$ac_exeext
2033   if { { ac_try="$ac_link"
2034 case "(($ac_try" in
2035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036   *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040   (eval "$ac_link") 2>conftest.err
2041   ac_status=$?
2042   if test -s conftest.err; then
2043     grep -v '^ *+' conftest.err >conftest.er1
2044     cat conftest.er1 >&5
2045     mv -f conftest.er1 conftest.err
2046   fi
2047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048   test $ac_status = 0; } && {
2049          test -z "$ac_cxx_werror_flag" ||
2050          test ! -s conftest.err
2051        } && test -s conftest$ac_exeext && {
2052          test "$cross_compiling" = yes ||
2053          $as_test_x conftest$ac_exeext
2054        }; then :
2055   ac_retval=0
2056 else
2057   $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2059
2060         ac_retval=1
2061 fi
2062   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2063   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2064   # interfere with the next link command; also delete a directory that is
2065   # left behind by Apple's compiler.  We do this before executing the actions.
2066   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2067   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068   as_fn_set_status $ac_retval
2069
2070 } # ac_fn_cxx_try_link
2071 cat >config.log <<_ACEOF
2072 This file contains any messages produced by compilers while
2073 running configure, to aid debugging if configure makes a mistake.
2074
2075 It was created by Valgrind $as_me 3.6.0.SVN, which was
2076 generated by GNU Autoconf 2.65.  Invocation command line was
2077
2078   $ $0 $@
2079
2080 _ACEOF
2081 exec 5>>config.log
2082 {
2083 cat <<_ASUNAME
2084 ## --------- ##
2085 ## Platform. ##
2086 ## --------- ##
2087
2088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2093
2094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2095 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2096
2097 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2098 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2100 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2101 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2102 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2103 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2104
2105 _ASUNAME
2106
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110   IFS=$as_save_IFS
2111   test -z "$as_dir" && as_dir=.
2112     $as_echo "PATH: $as_dir"
2113   done
2114 IFS=$as_save_IFS
2115
2116 } >&5
2117
2118 cat >&5 <<_ACEOF
2119
2120
2121 ## ----------- ##
2122 ## Core tests. ##
2123 ## ----------- ##
2124
2125 _ACEOF
2126
2127
2128 # Keep a trace of the command line.
2129 # Strip out --no-create and --no-recursion so they do not pile up.
2130 # Strip out --silent because we don't want to record it for future runs.
2131 # Also quote any args containing shell meta-characters.
2132 # Make two passes to allow for proper duplicate-argument suppression.
2133 ac_configure_args=
2134 ac_configure_args0=
2135 ac_configure_args1=
2136 ac_must_keep_next=false
2137 for ac_pass in 1 2
2138 do
2139   for ac_arg
2140   do
2141     case $ac_arg in
2142     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2143     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2144     | -silent | --silent | --silen | --sile | --sil)
2145       continue ;;
2146     *\'*)
2147       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2148     esac
2149     case $ac_pass in
2150     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2151     2)
2152       as_fn_append ac_configure_args1 " '$ac_arg'"
2153       if test $ac_must_keep_next = true; then
2154         ac_must_keep_next=false # Got value, back to normal.
2155       else
2156         case $ac_arg in
2157           *=* | --config-cache | -C | -disable-* | --disable-* \
2158           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2159           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2160           | -with-* | --with-* | -without-* | --without-* | --x)
2161             case "$ac_configure_args0 " in
2162               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2163             esac
2164             ;;
2165           -* ) ac_must_keep_next=true ;;
2166         esac
2167       fi
2168       as_fn_append ac_configure_args " '$ac_arg'"
2169       ;;
2170     esac
2171   done
2172 done
2173 { ac_configure_args0=; unset ac_configure_args0;}
2174 { ac_configure_args1=; unset ac_configure_args1;}
2175
2176 # When interrupted or exit'd, cleanup temporary files, and complete
2177 # config.log.  We remove comments because anyway the quotes in there
2178 # would cause problems or look ugly.
2179 # WARNING: Use '\'' to represent an apostrophe within the trap.
2180 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2181 trap 'exit_status=$?
2182   # Save into config.log some information that might help in debugging.
2183   {
2184     echo
2185
2186     cat <<\_ASBOX
2187 ## ---------------- ##
2188 ## Cache variables. ##
2189 ## ---------------- ##
2190 _ASBOX
2191     echo
2192     # The following way of writing the cache mishandles newlines in values,
2193 (
2194   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2195     eval ac_val=\$$ac_var
2196     case $ac_val in #(
2197     *${as_nl}*)
2198       case $ac_var in #(
2199       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2201       esac
2202       case $ac_var in #(
2203       _ | IFS | as_nl) ;; #(
2204       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2205       *) { eval $ac_var=; unset $ac_var;} ;;
2206       esac ;;
2207     esac
2208   done
2209   (set) 2>&1 |
2210     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2211     *${as_nl}ac_space=\ *)
2212       sed -n \
2213         "s/'\''/'\''\\\\'\'''\''/g;
2214           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2215       ;; #(
2216     *)
2217       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2218       ;;
2219     esac |
2220     sort
2221 )
2222     echo
2223
2224     cat <<\_ASBOX
2225 ## ----------------- ##
2226 ## Output variables. ##
2227 ## ----------------- ##
2228 _ASBOX
2229     echo
2230     for ac_var in $ac_subst_vars
2231     do
2232       eval ac_val=\$$ac_var
2233       case $ac_val in
2234       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235       esac
2236       $as_echo "$ac_var='\''$ac_val'\''"
2237     done | sort
2238     echo
2239
2240     if test -n "$ac_subst_files"; then
2241       cat <<\_ASBOX
2242 ## ------------------- ##
2243 ## File substitutions. ##
2244 ## ------------------- ##
2245 _ASBOX
2246       echo
2247       for ac_var in $ac_subst_files
2248       do
2249         eval ac_val=\$$ac_var
2250         case $ac_val in
2251         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252         esac
2253         $as_echo "$ac_var='\''$ac_val'\''"
2254       done | sort
2255       echo
2256     fi
2257
2258     if test -s confdefs.h; then
2259       cat <<\_ASBOX
2260 ## ----------- ##
2261 ## confdefs.h. ##
2262 ## ----------- ##
2263 _ASBOX
2264       echo
2265       cat confdefs.h
2266       echo
2267     fi
2268     test "$ac_signal" != 0 &&
2269       $as_echo "$as_me: caught signal $ac_signal"
2270     $as_echo "$as_me: exit $exit_status"
2271   } >&5
2272   rm -f core *.core core.conftest.* &&
2273     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2274     exit $exit_status
2275 ' 0
2276 for ac_signal in 1 2 13 15; do
2277   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2278 done
2279 ac_signal=0
2280
2281 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2282 rm -f -r conftest* confdefs.h
2283
2284 $as_echo "/* confdefs.h */" > confdefs.h
2285
2286 # Predefined preprocessor variables.
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_NAME "$PACKAGE_NAME"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2298 _ACEOF
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_STRING "$PACKAGE_STRING"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_URL "$PACKAGE_URL"
2310 _ACEOF
2311
2312
2313 # Let the site file select an alternate cache file if it wants to.
2314 # Prefer an explicitly selected file to automatically selected ones.
2315 ac_site_file1=NONE
2316 ac_site_file2=NONE
2317 if test -n "$CONFIG_SITE"; then
2318   ac_site_file1=$CONFIG_SITE
2319 elif test "x$prefix" != xNONE; then
2320   ac_site_file1=$prefix/share/config.site
2321   ac_site_file2=$prefix/etc/config.site
2322 else
2323   ac_site_file1=$ac_default_prefix/share/config.site
2324   ac_site_file2=$ac_default_prefix/etc/config.site
2325 fi
2326 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327 do
2328   test "x$ac_site_file" = xNONE && continue
2329   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2331 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2332     sed 's/^/| /' "$ac_site_file" >&5
2333     . "$ac_site_file"
2334   fi
2335 done
2336
2337 if test -r "$cache_file"; then
2338   # Some versions of bash will fail to source /dev/null (special files
2339   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2340   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2341     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2342 $as_echo "$as_me: loading cache $cache_file" >&6;}
2343     case $cache_file in
2344       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345       *)                      . "./$cache_file";;
2346     esac
2347   fi
2348 else
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2350 $as_echo "$as_me: creating cache $cache_file" >&6;}
2351   >$cache_file
2352 fi
2353
2354 as_fn_append ac_header_list " stdlib.h"
2355 as_fn_append ac_header_list " unistd.h"
2356 as_fn_append ac_header_list " sys/param.h"
2357 # Check that the precious variables saved in the cache have kept the same
2358 # value.
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362   eval ac_new_set=\$ac_env_${ac_var}_set
2363   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364   eval ac_new_val=\$ac_env_${ac_var}_value
2365   case $ac_old_set,$ac_new_set in
2366     set,)
2367       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369       ac_cache_corrupted=: ;;
2370     ,set)
2371       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373       ac_cache_corrupted=: ;;
2374     ,);;
2375     *)
2376       if test "x$ac_old_val" != "x$ac_new_val"; then
2377         # differences in whitespace do not lead to failure.
2378         ac_old_val_w=`echo x $ac_old_val`
2379         ac_new_val_w=`echo x $ac_new_val`
2380         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383           ac_cache_corrupted=:
2384         else
2385           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387           eval $ac_var=\$ac_old_val
2388         fi
2389         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2390 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2391         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2393       fi;;
2394   esac
2395   # Pass precious variables to config.status.
2396   if test "$ac_new_set" = set; then
2397     case $ac_new_val in
2398     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399     *) ac_arg=$ac_var=$ac_new_val ;;
2400     esac
2401     case " $ac_configure_args " in
2402       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2403       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404     esac
2405   fi
2406 done
2407 if $ac_cache_corrupted; then
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2413 fi
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2417
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423
2424
2425
2426 ac_config_headers="$ac_config_headers config.h"
2427
2428 am__api_version='1.11'
2429
2430 ac_aux_dir=
2431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2432   for ac_t in install-sh install.sh shtool; do
2433     if test -f "$ac_dir/$ac_t"; then
2434       ac_aux_dir=$ac_dir
2435       ac_install_sh="$ac_aux_dir/$ac_t -c"
2436       break 2
2437     fi
2438   done
2439 done
2440 if test -z "$ac_aux_dir"; then
2441   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2442 fi
2443
2444 # These three variables are undocumented and unsupported,
2445 # and are intended to be withdrawn in a future Autoconf release.
2446 # They can cause serious problems if a builder's source tree is in a directory
2447 # whose full name contains unusual characters.
2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2450 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2451
2452
2453 # Find a good install program.  We prefer a C program (faster),
2454 # so one script is as good as another.  But avoid the broken or
2455 # incompatible versions:
2456 # SysV /etc/install, /usr/sbin/install
2457 # SunOS /usr/etc/install
2458 # IRIX /sbin/install
2459 # AIX /bin/install
2460 # AmigaOS /C/install, which installs bootblocks on floppy discs
2461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2464 # OS/2's system install, which has a completely different semantic
2465 # ./install, which can be erroneously created by make from ./install.sh.
2466 # Reject install programs that cannot install multiple files.
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2468 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2469 if test -z "$INSTALL"; then
2470 if test "${ac_cv_path_install+set}" = set; then :
2471   $as_echo_n "(cached) " >&6
2472 else
2473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478     # Account for people who put trailing slashes in PATH elements.
2479 case $as_dir/ in #((
2480   ./ | .// | /[cC]/* | \
2481   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2482   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2483   /usr/ucb/* ) ;;
2484   *)
2485     # OSF1 and SCO ODT 3.0 have their own names for install.
2486     # Don't use installbsd from OSF since it installs stuff as root
2487     # by default.
2488     for ac_prog in ginstall scoinst install; do
2489       for ac_exec_ext in '' $ac_executable_extensions; do
2490         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2491           if test $ac_prog = install &&
2492             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493             # AIX install.  It has an incompatible calling convention.
2494             :
2495           elif test $ac_prog = install &&
2496             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497             # program-specific install script used by HP pwplus--don't use.
2498             :
2499           else
2500             rm -rf conftest.one conftest.two conftest.dir
2501             echo one > conftest.one
2502             echo two > conftest.two
2503             mkdir conftest.dir
2504             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2505               test -s conftest.one && test -s conftest.two &&
2506               test -s conftest.dir/conftest.one &&
2507               test -s conftest.dir/conftest.two
2508             then
2509               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2510               break 3
2511             fi
2512           fi
2513         fi
2514       done
2515     done
2516     ;;
2517 esac
2518
2519   done
2520 IFS=$as_save_IFS
2521
2522 rm -rf conftest.one conftest.two conftest.dir
2523
2524 fi
2525   if test "${ac_cv_path_install+set}" = set; then
2526     INSTALL=$ac_cv_path_install
2527   else
2528     # As a last resort, use the slow shell script.  Don't cache a
2529     # value for INSTALL within a source directory, because that will
2530     # break other packages using the cache if that directory is
2531     # removed, or if the value is a relative name.
2532     INSTALL=$ac_install_sh
2533   fi
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2536 $as_echo "$INSTALL" >&6; }
2537
2538 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2539 # It thinks the first close brace ends the variable substitution.
2540 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2541
2542 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2543
2544 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2547 $as_echo_n "checking whether build environment is sane... " >&6; }
2548 # Just in case
2549 sleep 1
2550 echo timestamp > conftest.file
2551 # Reject unsafe characters in $srcdir or the absolute working directory
2552 # name.  Accept space and tab only in the latter.
2553 am_lf='
2554 '
2555 case `pwd` in
2556   *[\\\"\#\$\&\'\`$am_lf]*)
2557     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2558 esac
2559 case $srcdir in
2560   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2561     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2562 esac
2563
2564 # Do `set' in a subshell so we don't clobber the current shell's
2565 # arguments.  Must try -L first in case configure is actually a
2566 # symlink; some systems play weird games with the mod time of symlinks
2567 # (eg FreeBSD returns the mod time of the symlink's containing
2568 # directory).
2569 if (
2570    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2571    if test "$*" = "X"; then
2572       # -L didn't work.
2573       set X `ls -t "$srcdir/configure" conftest.file`
2574    fi
2575    rm -f conftest.file
2576    if test "$*" != "X $srcdir/configure conftest.file" \
2577       && test "$*" != "X conftest.file $srcdir/configure"; then
2578
2579       # If neither matched, then we have a broken ls.  This can happen
2580       # if, for instance, CONFIG_SHELL is bash and it inherits a
2581       # broken ls alias from the environment.  This has actually
2582       # happened.  Such a system could not be considered "sane".
2583       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2584 alias in your environment" "$LINENO" 5
2585    fi
2586
2587    test "$2" = conftest.file
2588    )
2589 then
2590    # Ok.
2591    :
2592 else
2593    as_fn_error "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 test "$program_prefix" != NONE &&
2599   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2600 # Use a double $ so make ignores it.
2601 test "$program_suffix" != NONE &&
2602   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2603 # Double any \ or $.
2604 # By default was `s,x,x', remove it if useless.
2605 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2606 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2607
2608 # expand $ac_aux_dir to an absolute path
2609 am_aux_dir=`cd $ac_aux_dir && pwd`
2610
2611 if test x"${MISSING+set}" != xset; then
2612   case $am_aux_dir in
2613   *\ * | *\     *)
2614     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2615   *)
2616     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2617   esac
2618 fi
2619 # Use eval to expand $SHELL
2620 if eval "$MISSING --run true"; then
2621   am_missing_run="$MISSING --run "
2622 else
2623   am_missing_run=
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2625 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2626 fi
2627
2628 if test x"${install_sh}" != xset; then
2629   case $am_aux_dir in
2630   *\ * | *\     *)
2631     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2632   *)
2633     install_sh="\${SHELL} $am_aux_dir/install-sh"
2634   esac
2635 fi
2636
2637 # Installed binaries are usually stripped using `strip' when the user
2638 # run `make install-strip'.  However `strip' might not be the right
2639 # tool to use in cross-compilation environments, therefore Automake
2640 # will honor the `STRIP' environment variable to overrule this program.
2641 if test "$cross_compiling" != no; then
2642   if test -n "$ac_tool_prefix"; then
2643   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}strip; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_STRIP+set}" = set; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$STRIP"; then
2651   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 STRIP=$ac_cv_prog_STRIP
2671 if test -n "$STRIP"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2673 $as_echo "$STRIP" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680 fi
2681 if test -z "$ac_cv_prog_STRIP"; then
2682   ac_ct_STRIP=$STRIP
2683   # Extract the first word of "strip", so it can be a program name with args.
2684 set dummy strip; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2688   $as_echo_n "(cached) " >&6
2689 else
2690   if test -n "$ac_ct_STRIP"; then
2691   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696   IFS=$as_save_IFS
2697   test -z "$as_dir" && as_dir=.
2698     for ac_exec_ext in '' $ac_executable_extensions; do
2699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700     ac_cv_prog_ac_ct_STRIP="strip"
2701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702     break 2
2703   fi
2704 done
2705   done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2711 if test -n "$ac_ct_STRIP"; then
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2713 $as_echo "$ac_ct_STRIP" >&6; }
2714 else
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719   if test "x$ac_ct_STRIP" = x; then
2720     STRIP=":"
2721   else
2722     case $cross_compiling:$ac_tool_warned in
2723 yes:)
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     STRIP=$ac_ct_STRIP
2729   fi
2730 else
2731   STRIP="$ac_cv_prog_STRIP"
2732 fi
2733
2734 fi
2735 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2738 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2739 if test -z "$MKDIR_P"; then
2740   if test "${ac_cv_path_mkdir+set}" = set; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748     for ac_prog in mkdir gmkdir; do
2749          for ac_exec_ext in '' $ac_executable_extensions; do
2750            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2751            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2752              'mkdir (GNU coreutils) '* | \
2753              'mkdir (coreutils) '* | \
2754              'mkdir (fileutils) '4.1*)
2755                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2756                break 3;;
2757            esac
2758          done
2759        done
2760   done
2761 IFS=$as_save_IFS
2762
2763 fi
2764
2765   test -d ./--version && rmdir ./--version
2766   if test "${ac_cv_path_mkdir+set}" = set; then
2767     MKDIR_P="$ac_cv_path_mkdir -p"
2768   else
2769     # As a last resort, use the slow shell script.  Don't cache a
2770     # value for MKDIR_P within a source directory, because that will
2771     # break other packages using the cache if that directory is
2772     # removed, or if the value is a relative name.
2773     MKDIR_P="$ac_install_sh -d"
2774   fi
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2777 $as_echo "$MKDIR_P" >&6; }
2778
2779 mkdir_p="$MKDIR_P"
2780 case $mkdir_p in
2781   [\\/$]* | ?:[\\/]*) ;;
2782   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2783 esac
2784
2785 for ac_prog in gawk mawk nawk awk
2786 do
2787   # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if test "${ac_cv_prog_AWK+set}" = set; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if test -n "$AWK"; then
2795   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802     for ac_exec_ext in '' $ac_executable_extensions; do
2803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804     ac_cv_prog_AWK="$ac_prog"
2805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809   done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 AWK=$ac_cv_prog_AWK
2815 if test -n "$AWK"; then
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2817 $as_echo "$AWK" >&6; }
2818 else
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824   test -n "$AWK" && break
2825 done
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2829 set x ${MAKE-make}
2830 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   cat >conftest.make <<\_ACEOF
2835 SHELL = /bin/sh
2836 all:
2837         @echo '@@@%%%=$(MAKE)=@@@%%%'
2838 _ACEOF
2839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2841   *@@@%%%=?*=@@@%%%*)
2842     eval ac_cv_prog_make_${ac_make}_set=yes;;
2843   *)
2844     eval ac_cv_prog_make_${ac_make}_set=no;;
2845 esac
2846 rm -f conftest.make
2847 fi
2848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 $as_echo "yes" >&6; }
2851   SET_MAKE=
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855   SET_MAKE="MAKE=${MAKE-make}"
2856 fi
2857
2858 rm -rf .tst 2>/dev/null
2859 mkdir .tst 2>/dev/null
2860 if test -d .tst; then
2861   am__leading_dot=.
2862 else
2863   am__leading_dot=_
2864 fi
2865 rmdir .tst 2>/dev/null
2866
2867 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869   # is not polluted with repeated "-I."
2870   am__isrc=' -I$(srcdir)'
2871   # test to see if srcdir already configured
2872   if test -f $srcdir/config.status; then
2873     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2874   fi
2875 fi
2876
2877 # test whether we have cygpath
2878 if test -z "$CYGPATH_W"; then
2879   if (cygpath --version) >/dev/null 2>/dev/null; then
2880     CYGPATH_W='cygpath -w'
2881   else
2882     CYGPATH_W=echo
2883   fi
2884 fi
2885
2886
2887 # Define the identity of the package.
2888  PACKAGE='valgrind'
2889  VERSION='3.6.0.SVN'
2890
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE "$PACKAGE"
2894 _ACEOF
2895
2896
2897 cat >>confdefs.h <<_ACEOF
2898 #define VERSION "$VERSION"
2899 _ACEOF
2900
2901 # Some tools Automake needs.
2902
2903 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2904
2905
2906 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2907
2908
2909 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2910
2911
2912 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2913
2914
2915 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2916
2917 # We need awk for the "check" target.  The system "awk" is bad on
2918 # some platforms.
2919 # Always define AMTAR for backward compatibility.
2920
2921 AMTAR=${AMTAR-"${am_missing_run}tar"}
2922
2923 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2924
2925
2926
2927
2928
2929
2930
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2932 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2933     # Check whether --enable-maintainer-mode was given.
2934 if test "${enable_maintainer_mode+set}" = set; then :
2935   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2936 else
2937   USE_MAINTAINER_MODE=no
2938 fi
2939
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2942    if test $USE_MAINTAINER_MODE = yes; then
2943   MAINTAINER_MODE_TRUE=
2944   MAINTAINER_MODE_FALSE='#'
2945 else
2946   MAINTAINER_MODE_TRUE='#'
2947   MAINTAINER_MODE_FALSE=
2948 fi
2949
2950   MAINT=$MAINTAINER_MODE_TRUE
2951
2952
2953
2954 #----------------------------------------------------------------------------
2955 # Checks for various programs.
2956 #----------------------------------------------------------------------------
2957 CFLAGS="-Wno-long-long $CFLAGS"
2958
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2960 $as_echo_n "checking whether ln -s works... " >&6; }
2961 LN_S=$as_ln_s
2962 if test "$LN_S" = "ln -s"; then
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2964 $as_echo "yes" >&6; }
2965 else
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2967 $as_echo "no, using $LN_S" >&6; }
2968 fi
2969
2970 ac_ext=c
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 if test -n "$ac_tool_prefix"; then
2976   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if test "${ac_cv_prog_CC+set}" = set; then :
2981   $as_echo_n "(cached) " >&6
2982 else
2983   if test -n "$CC"; then
2984   ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991     for ac_exec_ext in '' $ac_executable_extensions; do
2992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998   done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 fi
3014 if test -z "$ac_cv_prog_CC"; then
3015   ac_ct_CC=$CC
3016   # Extract the first word of "gcc", so it can be a program name with args.
3017 set dummy gcc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3021   $as_echo_n "(cached) " >&6
3022 else
3023   if test -n "$ac_ct_CC"; then
3024   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031     for ac_exec_ext in '' $ac_executable_extensions; do
3032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033     ac_cv_prog_ac_ct_CC="gcc"
3034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038   done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3046 $as_echo "$ac_ct_CC" >&6; }
3047 else
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052   if test "x$ac_ct_CC" = x; then
3053     CC=""
3054   else
3055     case $cross_compiling:$ac_tool_warned in
3056 yes:)
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059 ac_tool_warned=yes ;;
3060 esac
3061     CC=$ac_ct_CC
3062   fi
3063 else
3064   CC="$ac_cv_prog_CC"
3065 fi
3066
3067 if test -z "$CC"; then
3068           if test -n "$ac_tool_prefix"; then
3069     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3070 set dummy ${ac_tool_prefix}cc; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if test "${ac_cv_prog_CC+set}" = set; then :
3074   $as_echo_n "(cached) " >&6
3075 else
3076   if test -n "$CC"; then
3077   ac_cv_prog_CC="$CC" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084     for ac_exec_ext in '' $ac_executable_extensions; do
3085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086     ac_cv_prog_CC="${ac_tool_prefix}cc"
3087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091   done
3092 IFS=$as_save_IFS
3093
3094 fi
3095 fi
3096 CC=$ac_cv_prog_CC
3097 if test -n "$CC"; then
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 $as_echo "$CC" >&6; }
3100 else
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 fi
3104
3105
3106   fi
3107 fi
3108 if test -z "$CC"; then
3109   # Extract the first word of "cc", so it can be a program name with args.
3110 set dummy cc; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_CC+set}" = set; then :
3114   $as_echo_n "(cached) " >&6
3115 else
3116   if test -n "$CC"; then
3117   ac_cv_prog_CC="$CC" # Let the user override the test.
3118 else
3119   ac_prog_rejected=no
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3128        ac_prog_rejected=yes
3129        continue
3130      fi
3131     ac_cv_prog_CC="cc"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 if test $ac_prog_rejected = yes; then
3140   # We found a bogon in the path, so make sure we never use it.
3141   set dummy $ac_cv_prog_CC
3142   shift
3143   if test $# != 0; then
3144     # We chose a different compiler from the bogus one.
3145     # However, it has the same basename, so the bogon will be chosen
3146     # first if we set CC to just the basename; use the full file name.
3147     shift
3148     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3149   fi
3150 fi
3151 fi
3152 fi
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163 fi
3164 if test -z "$CC"; then
3165   if test -n "$ac_tool_prefix"; then
3166   for ac_prog in cl.exe
3167   do
3168     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if test "${ac_cv_prog_CC+set}" = set; then :
3173   $as_echo_n "(cached) " >&6
3174 else
3175   if test -n "$CC"; then
3176   ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181   IFS=$as_save_IFS
3182   test -z "$as_dir" && as_dir=.
3183     for ac_exec_ext in '' $ac_executable_extensions; do
3184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187     break 2
3188   fi
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3199 else
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205     test -n "$CC" && break
3206   done
3207 fi
3208 if test -z "$CC"; then
3209   ac_ct_CC=$CC
3210   for ac_prog in cl.exe
3211 do
3212   # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   if test -n "$ac_ct_CC"; then
3220   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227     for ac_exec_ext in '' $ac_executable_extensions; do
3228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229     ac_cv_prog_ac_ct_CC="$ac_prog"
3230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234   done
3235 IFS=$as_save_IFS
3236
3237 fi
3238 fi
3239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3240 if test -n "$ac_ct_CC"; then
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3242 $as_echo "$ac_ct_CC" >&6; }
3243 else
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 fi
3247
3248
3249   test -n "$ac_ct_CC" && break
3250 done
3251
3252   if test "x$ac_ct_CC" = x; then
3253     CC=""
3254   else
3255     case $cross_compiling:$ac_tool_warned in
3256 yes:)
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3259 ac_tool_warned=yes ;;
3260 esac
3261     CC=$ac_ct_CC
3262   fi
3263 fi
3264
3265 fi
3266
3267
3268 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error "no acceptable C compiler found in \$PATH
3271 See \`config.log' for more details." "$LINENO" 5; }
3272
3273 # Provide some information about the compiler.
3274 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3275 set X $ac_compile
3276 ac_compiler=$2
3277 for ac_option in --version -v -V -qversion; do
3278   { { ac_try="$ac_compiler $ac_option >&5"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3286   ac_status=$?
3287   if test -s conftest.err; then
3288     sed '10a\
3289 ... rest of stderr output deleted ...
3290          10q' conftest.err >conftest.er1
3291     cat conftest.er1 >&5
3292   fi
3293   rm -f conftest.er1 conftest.err
3294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295   test $ac_status = 0; }
3296 done
3297
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h.  */
3300
3301 int
3302 main ()
3303 {
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 ac_clean_files_save=$ac_clean_files
3310 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3311 # Try to create an executable without -o first, disregard a.out.
3312 # It will help us diagnose broken compilers, and finding out an intuition
3313 # of exeext.
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3315 $as_echo_n "checking whether the C compiler works... " >&6; }
3316 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3317
3318 # The possible output files:
3319 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3320
3321 ac_rmfiles=
3322 for ac_file in $ac_files
3323 do
3324   case $ac_file in
3325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3327   esac
3328 done
3329 rm -f $ac_rmfiles
3330
3331 if { { ac_try="$ac_link_default"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338   (eval "$ac_link_default") 2>&5
3339   ac_status=$?
3340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341   test $ac_status = 0; }; then :
3342   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3343 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3344 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3345 # so that the user can short-circuit this test for compilers unknown to
3346 # Autoconf.
3347 for ac_file in $ac_files ''
3348 do
3349   test -f "$ac_file" || continue
3350   case $ac_file in
3351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3352         ;;
3353     [ab].out )
3354         # We found the default executable, but exeext='' is most
3355         # certainly right.
3356         break;;
3357     *.* )
3358         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3359         then :; else
3360            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361         fi
3362         # We set ac_cv_exeext here because the later test for it is not
3363         # safe: cross compilers may not add the suffix if given an `-o'
3364         # argument, so we may need to know it at that point already.
3365         # Even if this section looks crufty: it has the advantage of
3366         # actually working.
3367         break;;
3368     * )
3369         break;;
3370   esac
3371 done
3372 test "$ac_cv_exeext" = no && ac_cv_exeext=
3373
3374 else
3375   ac_file=''
3376 fi
3377 if test -z "$ac_file"; then :
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 { as_fn_set_status 77
3386 as_fn_error "C compiler cannot create executables
3387 See \`config.log' for more details." "$LINENO" 5; }; }
3388 else
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390 $as_echo "yes" >&6; }
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3393 $as_echo_n "checking for C compiler default output file name... " >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3395 $as_echo "$ac_file" >&6; }
3396 ac_exeext=$ac_cv_exeext
3397
3398 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3399 ac_clean_files=$ac_clean_files_save
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3401 $as_echo_n "checking for suffix of executables... " >&6; }
3402 if { { ac_try="$ac_link"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409   (eval "$ac_link") 2>&5
3410   ac_status=$?
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }; then :
3413   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3414 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3415 # work properly (i.e., refer to `conftest.exe'), while it won't with
3416 # `rm'.
3417 for ac_file in conftest.exe conftest conftest.*; do
3418   test -f "$ac_file" || continue
3419   case $ac_file in
3420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422           break;;
3423     * ) break;;
3424   esac
3425 done
3426 else
3427   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error "cannot compute suffix of executables: cannot compile and link
3430 See \`config.log' for more details." "$LINENO" 5; }
3431 fi
3432 rm -f conftest conftest$ac_cv_exeext
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3434 $as_echo "$ac_cv_exeext" >&6; }
3435
3436 rm -f conftest.$ac_ext
3437 EXEEXT=$ac_cv_exeext
3438 ac_exeext=$EXEEXT
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h.  */
3441 #include <stdio.h>
3442 int
3443 main ()
3444 {
3445 FILE *f = fopen ("conftest.out", "w");
3446  return ferror (f) || fclose (f) != 0;
3447
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 ac_clean_files="$ac_clean_files conftest.out"
3453 # Check that the compiler produces executables we can run.  If not, either
3454 # the compiler is broken, or we cross compile.
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3456 $as_echo_n "checking whether we are cross compiling... " >&6; }
3457 if test "$cross_compiling" != yes; then
3458   { { ac_try="$ac_link"
3459 case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465   (eval "$ac_link") 2>&5
3466   ac_status=$?
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }
3469   if { ac_try='./conftest$ac_cv_exeext'
3470   { { case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476   (eval "$ac_try") 2>&5
3477   ac_status=$?
3478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479   test $ac_status = 0; }; }; then
3480     cross_compiling=no
3481   else
3482     if test "$cross_compiling" = maybe; then
3483         cross_compiling=yes
3484     else
3485         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error "cannot run C compiled programs.
3488 If you meant to cross compile, use \`--host'.
3489 See \`config.log' for more details." "$LINENO" 5; }
3490     fi
3491   fi
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3494 $as_echo "$cross_compiling" >&6; }
3495
3496 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3497 ac_clean_files=$ac_clean_files_save
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3499 $as_echo_n "checking for suffix of object files... " >&6; }
3500 if test "${ac_cv_objext+set}" = set; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505
3506 int
3507 main ()
3508 {
3509
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.o conftest.obj
3515 if { { ac_try="$ac_compile"
3516 case "(($ac_try" in
3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518   *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522   (eval "$ac_compile") 2>&5
3523   ac_status=$?
3524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525   test $ac_status = 0; }; then :
3526   for ac_file in conftest.o conftest.obj conftest.*; do
3527   test -f "$ac_file" || continue;
3528   case $ac_file in
3529     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3530     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3531        break;;
3532   esac
3533 done
3534 else
3535   $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error "cannot compute suffix of object files: cannot compile
3541 See \`config.log' for more details." "$LINENO" 5; }
3542 fi
3543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3546 $as_echo "$ac_cv_objext" >&6; }
3547 OBJEXT=$ac_cv_objext
3548 ac_objext=$OBJEXT
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3550 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3551 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h.  */
3556
3557 int
3558 main ()
3559 {
3560 #ifndef __GNUC__
3561        choke me
3562 #endif
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569   ac_compiler_gnu=yes
3570 else
3571   ac_compiler_gnu=no
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3575
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579 if test $ac_compiler_gnu = yes; then
3580   GCC=yes
3581 else
3582   GCC=
3583 fi
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3588 if test "${ac_cv_prog_cc_g+set}" = set; then :
3589   $as_echo_n "(cached) " >&6
3590 else
3591   ac_save_c_werror_flag=$ac_c_werror_flag
3592    ac_c_werror_flag=yes
3593    ac_cv_prog_cc_g=no
3594    CFLAGS="-g"
3595    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h.  */
3597
3598 int
3599 main ()
3600 {
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607   ac_cv_prog_cc_g=yes
3608 else
3609   CFLAGS=""
3610       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h.  */
3612
3613 int
3614 main ()
3615 {
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622
3623 else
3624   ac_c_werror_flag=$ac_save_c_werror_flag
3625          CFLAGS="-g"
3626          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h.  */
3628
3629 int
3630 main ()
3631 {
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638   ac_cv_prog_cc_g=yes
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645    ac_c_werror_flag=$ac_save_c_werror_flag
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3648 $as_echo "$ac_cv_prog_cc_g" >&6; }
3649 if test "$ac_test_CFLAGS" = set; then
3650   CFLAGS=$ac_save_CFLAGS
3651 elif test $ac_cv_prog_cc_g = yes; then
3652   if test "$GCC" = yes; then
3653     CFLAGS="-g -O2"
3654   else
3655     CFLAGS="-g"
3656   fi
3657 else
3658   if test "$GCC" = yes; then
3659     CFLAGS="-O2"
3660   else
3661     CFLAGS=
3662   fi
3663 fi
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3665 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3666 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3667   $as_echo_n "(cached) " >&6
3668 else
3669   ac_cv_prog_cc_c89=no
3670 ac_save_CC=$CC
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h.  */
3673 #include <stdarg.h>
3674 #include <stdio.h>
3675 #include <sys/types.h>
3676 #include <sys/stat.h>
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3681      char **p;
3682      int i;
3683 {
3684   return p[i];
3685 }
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3687 {
3688   char *s;
3689   va_list v;
3690   va_start (v,p);
3691   s = g (p, va_arg (v,int));
3692   va_end (v);
3693   return s;
3694 }
3695
3696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3697    function prototypes and stuff, but not '\xHH' hex character constants.
3698    These don't provoke an error unfortunately, instead are silently treated
3699    as 'x'.  The following induces an error, until -std is added to get
3700    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3701    array size at least.  It's necessary to write '\x00'==0 to get something
3702    that's true only with -std.  */
3703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3704
3705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3706    inside strings and character constants.  */
3707 #define FOO(x) 'x'
3708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3709
3710 int test (int i, double x);
3711 struct s1 {int (*f) (int a);};
3712 struct s2 {int (*f) (double a);};
3713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3714 int argc;
3715 char **argv;
3716 int
3717 main ()
3718 {
3719 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3725         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3726 do
3727   CC="$ac_save_CC $ac_arg"
3728   if ac_fn_c_try_compile "$LINENO"; then :
3729   ac_cv_prog_cc_c89=$ac_arg
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext
3732   test "x$ac_cv_prog_cc_c89" != "xno" && break
3733 done
3734 rm -f conftest.$ac_ext
3735 CC=$ac_save_CC
3736
3737 fi
3738 # AC_CACHE_VAL
3739 case "x$ac_cv_prog_cc_c89" in
3740   x)
3741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3742 $as_echo "none needed" >&6; } ;;
3743   xno)
3744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3745 $as_echo "unsupported" >&6; } ;;
3746   *)
3747     CC="$CC $ac_cv_prog_cc_c89"
3748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3749 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3750 esac
3751 if test "x$ac_cv_prog_cc_c89" != xno; then :
3752
3753 fi
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 DEPDIR="${am__leading_dot}deps"
3761
3762 ac_config_commands="$ac_config_commands depfiles"
3763
3764
3765 am_make=${MAKE-make}
3766 cat > confinc << 'END'
3767 am__doit:
3768         @echo this is the am__doit target
3769 .PHONY: am__doit
3770 END
3771 # If we don't find an include directive, just comment out the code.
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3773 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3774 am__include="#"
3775 am__quote=
3776 _am_result=none
3777 # First try GNU make style include.
3778 echo "include confinc" > confmf
3779 # Ignore all kinds of additional output from `make'.
3780 case `$am_make -s -f confmf 2> /dev/null` in #(
3781 *the\ am__doit\ target*)
3782   am__include=include
3783   am__quote=
3784   _am_result=GNU
3785   ;;
3786 esac
3787 # Now try BSD make style include.
3788 if test "$am__include" = "#"; then
3789    echo '.include "confinc"' > confmf
3790    case `$am_make -s -f confmf 2> /dev/null` in #(
3791    *the\ am__doit\ target*)
3792      am__include=.include
3793      am__quote="\""
3794      _am_result=BSD
3795      ;;
3796    esac
3797 fi
3798
3799
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3801 $as_echo "$_am_result" >&6; }
3802 rm -f confinc confmf
3803
3804 # Check whether --enable-dependency-tracking was given.
3805 if test "${enable_dependency_tracking+set}" = set; then :
3806   enableval=$enable_dependency_tracking;
3807 fi
3808
3809 if test "x$enable_dependency_tracking" != xno; then
3810   am_depcomp="$ac_aux_dir/depcomp"
3811   AMDEPBACKSLASH='\'
3812 fi
3813  if test "x$enable_dependency_tracking" != xno; then
3814   AMDEP_TRUE=
3815   AMDEP_FALSE='#'
3816 else
3817   AMDEP_TRUE='#'
3818   AMDEP_FALSE=
3819 fi
3820
3821
3822
3823 depcc="$CC"   am_compiler_list=
3824
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3826 $as_echo_n "checking dependency style of $depcc... " >&6; }
3827 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3831   # We make a subdir and do the tests there.  Otherwise we can end up
3832   # making bogus files that we don't know about and never remove.  For
3833   # instance it was reported that on HP-UX the gcc test will end up
3834   # making a dummy file named `D' -- because `-MD' means `put the output
3835   # in D'.
3836   mkdir conftest.dir
3837   # Copy depcomp to subdir because otherwise we won't find it if we're
3838   # using a relative directory.
3839   cp "$am_depcomp" conftest.dir
3840   cd conftest.dir
3841   # We will build objects and dependencies in a subdirectory because
3842   # it helps to detect inapplicable dependency modes.  For instance
3843   # both Tru64's cc and ICC support -MD to output dependencies as a
3844   # side effect of compilation, but ICC will put the dependencies in
3845   # the current directory while Tru64 will put them in the object
3846   # directory.
3847   mkdir sub
3848
3849   am_cv_CC_dependencies_compiler_type=none
3850   if test "$am_compiler_list" = ""; then
3851      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3852   fi
3853   am__universal=false
3854   case " $depcc " in #(
3855      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3856      esac
3857
3858   for depmode in $am_compiler_list; do
3859     # Setup a source with many dependencies, because some compilers
3860     # like to wrap large dependency lists on column 80 (with \), and
3861     # we should not choose a depcomp mode which is confused by this.
3862     #
3863     # We need to recreate these files for each test, as the compiler may
3864     # overwrite some of them when testing with obscure command lines.
3865     # This happens at least with the AIX C compiler.
3866     : > sub/conftest.c
3867     for i in 1 2 3 4 5 6; do
3868       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3869       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3870       # Solaris 8's {/usr,}/bin/sh.
3871       touch sub/conftst$i.h
3872     done
3873     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3874
3875     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3876     # mode.  It turns out that the SunPro C++ compiler does not properly
3877     # handle `-M -o', and we need to detect this.  Also, some Intel
3878     # versions had trouble with output in subdirs
3879     am__obj=sub/conftest.${OBJEXT-o}
3880     am__minus_obj="-o $am__obj"
3881     case $depmode in
3882     gcc)
3883       # This depmode causes a compiler race in universal mode.
3884       test "$am__universal" = false || continue
3885       ;;
3886     nosideeffect)
3887       # after this tag, mechanisms are not by side-effect, so they'll
3888       # only be used when explicitly requested
3889       if test "x$enable_dependency_tracking" = xyes; then
3890         continue
3891       else
3892         break
3893       fi
3894       ;;
3895     msvisualcpp | msvcmsys)
3896       # This compiler won't grok `-c -o', but also, the minuso test has
3897       # not run yet.  These depmodes are late enough in the game, and
3898       # so weak that their functioning should not be impacted.
3899       am__obj=conftest.${OBJEXT-o}
3900       am__minus_obj=
3901       ;;
3902     none) break ;;
3903     esac
3904     if depmode=$depmode \
3905        source=sub/conftest.c object=$am__obj \
3906        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3907        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3908          >/dev/null 2>conftest.err &&
3909        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3910        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3911        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3912        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3913       # icc doesn't choke on unknown options, it will just issue warnings
3914       # or remarks (even with -Werror).  So we grep stderr for any message
3915       # that says an option was ignored or not supported.
3916       # When given -MP, icc 7.0 and 7.1 complain thusly:
3917       #   icc: Command line warning: ignoring option '-M'; no argument required
3918       # The diagnosis changed in icc 8.0:
3919       #   icc: Command line remark: option '-MP' not supported
3920       if (grep 'ignoring option' conftest.err ||
3921           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3922         am_cv_CC_dependencies_compiler_type=$depmode
3923         break
3924       fi
3925     fi
3926   done
3927
3928   cd ..
3929   rm -rf conftest.dir
3930 else
3931   am_cv_CC_dependencies_compiler_type=none
3932 fi
3933
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3936 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3938
3939  if
3940   test "x$enable_dependency_tracking" != xno \
3941   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3942   am__fastdepCC_TRUE=
3943   am__fastdepCC_FALSE='#'
3944 else
3945   am__fastdepCC_TRUE='#'
3946   am__fastdepCC_FALSE=
3947 fi
3948
3949
3950 if test "x$CC" != xcc; then
3951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3952 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3953 else
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3955 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3956 fi
3957 set dummy $CC; ac_cc=`$as_echo "$2" |
3958                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3959 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3960   $as_echo_n "(cached) " >&6
3961 else
3962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h.  */
3964
3965 int
3966 main ()
3967 {
3968
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # We do the test twice because some compilers refuse to overwrite an
3975 # existing .o file with -o, though they will create one.
3976 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3977 rm -f conftest2.*
3978 if { { case "(($ac_try" in
3979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980   *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984   (eval "$ac_try") 2>&5
3985   ac_status=$?
3986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987   test $ac_status = 0; } &&
3988    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994   (eval "$ac_try") 2>&5
3995   ac_status=$?
3996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997   test $ac_status = 0; };
3998 then
3999   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4000   if test "x$CC" != xcc; then
4001     # Test first that cc exists at all.
4002     if { ac_try='cc -c conftest.$ac_ext >&5'
4003   { { case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009   (eval "$ac_try") 2>&5
4010   ac_status=$?
4011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012   test $ac_status = 0; }; }; then
4013       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4014       rm -f conftest2.*
4015       if { { case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021   (eval "$ac_try") 2>&5
4022   ac_status=$?
4023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024   test $ac_status = 0; } &&
4025          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
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
4032   ac_status=$?
4033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034   test $ac_status = 0; };
4035       then
4036         # cc works too.
4037         :
4038       else
4039         # cc exists but doesn't like -o.
4040         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4041       fi
4042     fi
4043   fi
4044 else
4045   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4046 fi
4047 rm -f core conftest*
4048
4049 fi
4050 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 $as_echo "yes" >&6; }
4053 else
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056
4057 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4058
4059 fi
4060
4061 # FIXME: we rely on the cache variable name because
4062 # there is no other way.
4063 set dummy $CC
4064 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4065 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4066 if test "$am_t" != yes; then
4067    # Losing compiler, so override with the script.
4068    # FIXME: It is wrong to rewrite CC.
4069    # But if we don't then we get into trouble of one sort or another.
4070    # A longer-term fix would be to have automake use am__CC in this case,
4071    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4072    CC="$am_aux_dir/compile $CC"
4073 fi
4074
4075
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4082 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4083 # On Suns, sometimes $CPP names a directory.
4084 if test -n "$CPP" && test -d "$CPP"; then
4085   CPP=
4086 fi
4087 if test -z "$CPP"; then
4088   if test "${ac_cv_prog_CPP+set}" = set; then :
4089   $as_echo_n "(cached) " >&6
4090 else
4091       # Double quotes because CPP needs to be expanded
4092     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4093     do
4094       ac_preproc_ok=false
4095 for ac_c_preproc_warn_flag in '' yes
4096 do
4097   # Use a header file that comes with gcc, so configuring glibc
4098   # with a fresh cross-compiler works.
4099   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100   # <limits.h> exists even on freestanding compilers.
4101   # On the NeXT, cc -E runs the code through the compiler's parser,
4102   # not just through cpp. "Syntax error" is here to catch this case.
4103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105 #ifdef __STDC__
4106 # include <limits.h>
4107 #else
4108 # include <assert.h>
4109 #endif
4110                      Syntax error
4111 _ACEOF
4112 if ac_fn_c_try_cpp "$LINENO"; then :
4113
4114 else
4115   # Broken: fails on valid input.
4116 continue
4117 fi
4118 rm -f conftest.err conftest.$ac_ext
4119
4120   # OK, works on sane cases.  Now check whether nonexistent headers
4121   # can be detected and how.
4122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h.  */
4124 #include <ac_nonexistent.h>
4125 _ACEOF
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4127   # Broken: success on invalid input.
4128 continue
4129 else
4130   # Passes both tests.
4131 ac_preproc_ok=:
4132 break
4133 fi
4134 rm -f conftest.err conftest.$ac_ext
4135
4136 done
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then :
4140   break
4141 fi
4142
4143     done
4144     ac_cv_prog_CPP=$CPP
4145
4146 fi
4147   CPP=$ac_cv_prog_CPP
4148 else
4149   ac_cv_prog_CPP=$CPP
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4152 $as_echo "$CPP" >&6; }
4153 ac_preproc_ok=false
4154 for ac_c_preproc_warn_flag in '' yes
4155 do
4156   # Use a header file that comes with gcc, so configuring glibc
4157   # with a fresh cross-compiler works.
4158   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159   # <limits.h> exists even on freestanding compilers.
4160   # On the NeXT, cc -E runs the code through the compiler's parser,
4161   # not just through cpp. "Syntax error" is here to catch this case.
4162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h.  */
4164 #ifdef __STDC__
4165 # include <limits.h>
4166 #else
4167 # include <assert.h>
4168 #endif
4169                      Syntax error
4170 _ACEOF
4171 if ac_fn_c_try_cpp "$LINENO"; then :
4172
4173 else
4174   # Broken: fails on valid input.
4175 continue
4176 fi
4177 rm -f conftest.err conftest.$ac_ext
4178
4179   # OK, works on sane cases.  Now check whether nonexistent headers
4180   # can be detected and how.
4181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183 #include <ac_nonexistent.h>
4184 _ACEOF
4185 if ac_fn_c_try_cpp "$LINENO"; then :
4186   # Broken: success on invalid input.
4187 continue
4188 else
4189   # Passes both tests.
4190 ac_preproc_ok=:
4191 break
4192 fi
4193 rm -f conftest.err conftest.$ac_ext
4194
4195 done
4196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197 rm -f conftest.err conftest.$ac_ext
4198 if $ac_preproc_ok; then :
4199
4200 else
4201   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4203 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4204 See \`config.log' for more details." "$LINENO" 5; }
4205 fi
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 ac_ext=cpp
4214 ac_cpp='$CXXCPP $CPPFLAGS'
4215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4218 if test -z "$CXX"; then
4219   if test -n "$CCC"; then
4220     CXX=$CCC
4221   else
4222     if test -n "$ac_tool_prefix"; then
4223   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4224   do
4225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_CXX+set}" = set; then :
4230   $as_echo_n "(cached) " >&6
4231 else
4232   if test -n "$CXX"; then
4233   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238   IFS=$as_save_IFS
4239   test -z "$as_dir" && as_dir=.
4240     for ac_exec_ext in '' $ac_executable_extensions; do
4241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244     break 2
4245   fi
4246 done
4247   done
4248 IFS=$as_save_IFS
4249
4250 fi
4251 fi
4252 CXX=$ac_cv_prog_CXX
4253 if test -n "$CXX"; then
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4255 $as_echo "$CXX" >&6; }
4256 else
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4259 fi
4260
4261
4262     test -n "$CXX" && break
4263   done
4264 fi
4265 if test -z "$CXX"; then
4266   ac_ct_CXX=$CXX
4267   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4268 do
4269   # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4274   $as_echo_n "(cached) " >&6
4275 else
4276   if test -n "$ac_ct_CXX"; then
4277   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284     for ac_exec_ext in '' $ac_executable_extensions; do
4285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286     ac_cv_prog_ac_ct_CXX="$ac_prog"
4287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291   done
4292 IFS=$as_save_IFS
4293
4294 fi
4295 fi
4296 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4297 if test -n "$ac_ct_CXX"; then
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4299 $as_echo "$ac_ct_CXX" >&6; }
4300 else
4301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4303 fi
4304
4305
4306   test -n "$ac_ct_CXX" && break
4307 done
4308
4309   if test "x$ac_ct_CXX" = x; then
4310     CXX="g++"
4311   else
4312     case $cross_compiling:$ac_tool_warned in
4313 yes:)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4316 ac_tool_warned=yes ;;
4317 esac
4318     CXX=$ac_ct_CXX
4319   fi
4320 fi
4321
4322   fi
4323 fi
4324 # Provide some information about the compiler.
4325 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4326 set X $ac_compile
4327 ac_compiler=$2
4328 for ac_option in --version -v -V -qversion; do
4329   { { ac_try="$ac_compiler $ac_option >&5"
4330 case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4337   ac_status=$?
4338   if test -s conftest.err; then
4339     sed '10a\
4340 ... rest of stderr output deleted ...
4341          10q' conftest.err >conftest.er1
4342     cat conftest.er1 >&5
4343   fi
4344   rm -f conftest.er1 conftest.err
4345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346   test $ac_status = 0; }
4347 done
4348
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4350 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4351 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h.  */
4356
4357 int
4358 main ()
4359 {
4360 #ifndef __GNUC__
4361        choke me
4362 #endif
4363
4364   ;
4365   return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_cxx_try_compile "$LINENO"; then :
4369   ac_compiler_gnu=yes
4370 else
4371   ac_compiler_gnu=no
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4375
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4378 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4379 if test $ac_compiler_gnu = yes; then
4380   GXX=yes
4381 else
4382   GXX=
4383 fi
4384 ac_test_CXXFLAGS=${CXXFLAGS+set}
4385 ac_save_CXXFLAGS=$CXXFLAGS
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4387 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4388 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4389   $as_echo_n "(cached) " >&6
4390 else
4391   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4392    ac_cxx_werror_flag=yes
4393    ac_cv_prog_cxx_g=no
4394    CXXFLAGS="-g"
4395    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h.  */
4397
4398 int
4399 main ()
4400 {
4401
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_cxx_try_compile "$LINENO"; then :
4407   ac_cv_prog_cxx_g=yes
4408 else
4409   CXXFLAGS=""
4410       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h.  */
4412
4413 int
4414 main ()
4415 {
4416
4417   ;
4418   return 0;
4419 }
4420 _ACEOF
4421 if ac_fn_cxx_try_compile "$LINENO"; then :
4422
4423 else
4424   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4425          CXXFLAGS="-g"
4426          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h.  */
4428
4429 int
4430 main ()
4431 {
4432
4433   ;
4434   return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_cxx_try_compile "$LINENO"; then :
4438   ac_cv_prog_cxx_g=yes
4439 fi
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 fi
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4448 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4449 if test "$ac_test_CXXFLAGS" = set; then
4450   CXXFLAGS=$ac_save_CXXFLAGS
4451 elif test $ac_cv_prog_cxx_g = yes; then
4452   if test "$GXX" = yes; then
4453     CXXFLAGS="-g -O2"
4454   else
4455     CXXFLAGS="-g"
4456   fi
4457 else
4458   if test "$GXX" = yes; then
4459     CXXFLAGS="-O2"
4460   else
4461     CXXFLAGS=
4462   fi
4463 fi
4464 ac_ext=c
4465 ac_cpp='$CPP $CPPFLAGS'
4466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4469
4470 depcc="$CXX"  am_compiler_list=
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4473 $as_echo_n "checking dependency style of $depcc... " >&6; }
4474 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4478   # We make a subdir and do the tests there.  Otherwise we can end up
4479   # making bogus files that we don't know about and never remove.  For
4480   # instance it was reported that on HP-UX the gcc test will end up
4481   # making a dummy file named `D' -- because `-MD' means `put the output
4482   # in D'.
4483   mkdir conftest.dir
4484   # Copy depcomp to subdir because otherwise we won't find it if we're
4485   # using a relative directory.
4486   cp "$am_depcomp" conftest.dir
4487   cd conftest.dir
4488   # We will build objects and dependencies in a subdirectory because
4489   # it helps to detect inapplicable dependency modes.  For instance
4490   # both Tru64's cc and ICC support -MD to output dependencies as a
4491   # side effect of compilation, but ICC will put the dependencies in
4492   # the current directory while Tru64 will put them in the object
4493   # directory.
4494   mkdir sub
4495
4496   am_cv_CXX_dependencies_compiler_type=none
4497   if test "$am_compiler_list" = ""; then
4498      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4499   fi
4500   am__universal=false
4501   case " $depcc " in #(
4502      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4503      esac
4504
4505   for depmode in $am_compiler_list; do
4506     # Setup a source with many dependencies, because some compilers
4507     # like to wrap large dependency lists on column 80 (with \), and
4508     # we should not choose a depcomp mode which is confused by this.
4509     #
4510     # We need to recreate these files for each test, as the compiler may
4511     # overwrite some of them when testing with obscure command lines.
4512     # This happens at least with the AIX C compiler.
4513     : > sub/conftest.c
4514     for i in 1 2 3 4 5 6; do
4515       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4517       # Solaris 8's {/usr,}/bin/sh.
4518       touch sub/conftst$i.h
4519     done
4520     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4521
4522     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4523     # mode.  It turns out that the SunPro C++ compiler does not properly
4524     # handle `-M -o', and we need to detect this.  Also, some Intel
4525     # versions had trouble with output in subdirs
4526     am__obj=sub/conftest.${OBJEXT-o}
4527     am__minus_obj="-o $am__obj"
4528     case $depmode in
4529     gcc)
4530       # This depmode causes a compiler race in universal mode.
4531       test "$am__universal" = false || continue
4532       ;;
4533     nosideeffect)
4534       # after this tag, mechanisms are not by side-effect, so they'll
4535       # only be used when explicitly requested
4536       if test "x$enable_dependency_tracking" = xyes; then
4537         continue
4538       else
4539         break
4540       fi
4541       ;;
4542     msvisualcpp | msvcmsys)
4543       # This compiler won't grok `-c -o', but also, the minuso test has
4544       # not run yet.  These depmodes are late enough in the game, and
4545       # so weak that their functioning should not be impacted.
4546       am__obj=conftest.${OBJEXT-o}
4547       am__minus_obj=
4548       ;;
4549     none) break ;;
4550     esac
4551     if depmode=$depmode \
4552        source=sub/conftest.c object=$am__obj \
4553        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555          >/dev/null 2>conftest.err &&
4556        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560       # icc doesn't choke on unknown options, it will just issue warnings
4561       # or remarks (even with -Werror).  So we grep stderr for any message
4562       # that says an option was ignored or not supported.
4563       # When given -MP, icc 7.0 and 7.1 complain thusly:
4564       #   icc: Command line warning: ignoring option '-M'; no argument required
4565       # The diagnosis changed in icc 8.0:
4566       #   icc: Command line remark: option '-MP' not supported
4567       if (grep 'ignoring option' conftest.err ||
4568           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4569         am_cv_CXX_dependencies_compiler_type=$depmode
4570         break
4571       fi
4572     fi
4573   done
4574
4575   cd ..
4576   rm -rf conftest.dir
4577 else
4578   am_cv_CXX_dependencies_compiler_type=none
4579 fi
4580
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4583 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4584 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4585
4586  if
4587   test "x$enable_dependency_tracking" != xno \
4588   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4589   am__fastdepCXX_TRUE=
4590   am__fastdepCXX_FALSE='#'
4591 else
4592   am__fastdepCXX_TRUE='#'
4593   am__fastdepCXX_FALSE=
4594 fi
4595
4596
4597 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4598 # autoconf 2.59).  If we ever have any Objective-C code in the Valgrind code
4599 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4600 # following:
4601 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4602 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4603 # - Use the following, which is apparently equivalent:
4604 #     m4_ifdef([AC_PROG_OBJC],
4605 #        [AC_PROG_OBJC],
4606 #        [AC_CHECK_TOOL([OBJC], [gcc])
4607 #         AC_SUBST([OBJC])
4608 #         AC_SUBST([OBJCFLAGS])
4609 #        ])
4610 if test -n "$ac_tool_prefix"; then
4611   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if test -n "$RANLIB"; then
4619   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_exec_ext in '' $ac_executable_extensions; do
4627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633   done
4634 IFS=$as_save_IFS
4635
4636 fi
4637 fi
4638 RANLIB=$ac_cv_prog_RANLIB
4639 if test -n "$RANLIB"; then
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4641 $as_echo "$RANLIB" >&6; }
4642 else
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648 fi
4649 if test -z "$ac_cv_prog_RANLIB"; then
4650   ac_ct_RANLIB=$RANLIB
4651   # Extract the first word of "ranlib", so it can be a program name with args.
4652 set dummy ranlib; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   if test -n "$ac_ct_RANLIB"; then
4659   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666     for ac_exec_ext in '' $ac_executable_extensions; do
4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668     ac_cv_prog_ac_ct_RANLIB="ranlib"
4669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673   done
4674 IFS=$as_save_IFS
4675
4676 fi
4677 fi
4678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4679 if test -n "$ac_ct_RANLIB"; then
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4681 $as_echo "$ac_ct_RANLIB" >&6; }
4682 else
4683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686
4687   if test "x$ac_ct_RANLIB" = x; then
4688     RANLIB=":"
4689   else
4690     case $cross_compiling:$ac_tool_warned in
4691 yes:)
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned=yes ;;
4695 esac
4696     RANLIB=$ac_ct_RANLIB
4697   fi
4698 else
4699   RANLIB="$ac_cv_prog_RANLIB"
4700 fi
4701
4702 # provide a very basic definition for AC_PROG_SED if it's not provided by
4703 # autoconf (as e.g. in autoconf 2.59).
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4706 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4707 if test "${ac_cv_path_SED+set}" = set; then :
4708   $as_echo_n "(cached) " >&6
4709 else
4710             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4711      for ac_i in 1 2 3 4 5 6 7; do
4712        ac_script="$ac_script$as_nl$ac_script"
4713      done
4714      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4715      { ac_script=; unset ac_script;}
4716      if test -z "$SED"; then
4717   ac_path_SED_found=false
4718   # Loop through the user's path and test for each of PROGNAME-LIST
4719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724     for ac_prog in sed gsed; do
4725     for ac_exec_ext in '' $ac_executable_extensions; do
4726       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4727       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4728 # Check for GNU ac_path_SED and select it if it is found.
4729   # Check for GNU $ac_path_SED
4730 case `"$ac_path_SED" --version 2>&1` in
4731 *GNU*)
4732   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4733 *)
4734   ac_count=0
4735   $as_echo_n 0123456789 >"conftest.in"
4736   while :
4737   do
4738     cat "conftest.in" "conftest.in" >"conftest.tmp"
4739     mv "conftest.tmp" "conftest.in"
4740     cp "conftest.in" "conftest.nl"
4741     $as_echo '' >> "conftest.nl"
4742     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4743     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4744     as_fn_arith $ac_count + 1 && ac_count=$as_val
4745     if test $ac_count -gt ${ac_path_SED_max-0}; then
4746       # Best one so far, save it but keep looking for a better one
4747       ac_cv_path_SED="$ac_path_SED"
4748       ac_path_SED_max=$ac_count
4749     fi
4750     # 10*(2^10) chars as input seems more than enough
4751     test $ac_count -gt 10 && break
4752   done
4753   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4754 esac
4755
4756       $ac_path_SED_found && break 3
4757     done
4758   done
4759   done
4760 IFS=$as_save_IFS
4761   if test -z "$ac_cv_path_SED"; then
4762     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4763   fi
4764 else
4765   ac_cv_path_SED=$SED
4766 fi
4767
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4770 $as_echo "$ac_cv_path_SED" >&6; }
4771  SED="$ac_cv_path_SED"
4772   rm -f conftest.sed
4773
4774
4775 # If no AR variable was specified, look up the name of the archiver. Otherwise
4776 # do not touch the AR variable.
4777 if test "x$AR" = "x"; then
4778   for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4779 do
4780   # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_path_AR+set}" = set; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   case $AR in
4788   [\\/]* | ?:[\\/]*)
4789   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4790   ;;
4791   *)
4792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804   done
4805 IFS=$as_save_IFS
4806
4807   ;;
4808 esac
4809 fi
4810 AR=$ac_cv_path_AR
4811 if test -n "$AR"; then
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4813 $as_echo "$AR" >&6; }
4814 else
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819
4820   test -n "$AR" && break
4821 done
4822 test -n "$AR" || AR="ar"
4823
4824 fi
4825
4826
4827 # Check for the compiler support
4828 if test "${GCC}" != "yes" ; then
4829    as_fn_error "Valgrind relies on GCC to be compiled" "$LINENO" 5
4830 fi
4831
4832 # figure out where perl lives
4833 # Extract the first word of "perl", so it can be a program name with args.
4834 set dummy perl; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if test "${ac_cv_path_PERL+set}" = set; then :
4838   $as_echo_n "(cached) " >&6
4839 else
4840   case $PERL in
4841   [\\/]* | ?:[\\/]*)
4842   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4843   ;;
4844   *)
4845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848   IFS=$as_save_IFS
4849   test -z "$as_dir" && as_dir=.
4850     for ac_exec_ext in '' $ac_executable_extensions; do
4851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854     break 2
4855   fi
4856 done
4857   done
4858 IFS=$as_save_IFS
4859
4860   ;;
4861 esac
4862 fi
4863 PERL=$ac_cv_path_PERL
4864 if test -n "$PERL"; then
4865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4866 $as_echo "$PERL" >&6; }
4867 else
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4870 fi
4871
4872
4873
4874 # figure out where gdb lives
4875 # Extract the first word of "gdb", so it can be a program name with args.
4876 set dummy gdb; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_path_GDB+set}" = set; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   case $GDB in
4883   [\\/]* | ?:[\\/]*)
4884   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4885   ;;
4886   *)
4887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890   IFS=$as_save_IFS
4891   test -z "$as_dir" && as_dir=.
4892     for ac_exec_ext in '' $ac_executable_extensions; do
4893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897   fi
4898 done
4899   done
4900 IFS=$as_save_IFS
4901
4902   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4903   ;;
4904 esac
4905 fi
4906 GDB=$ac_cv_path_GDB
4907 if test -n "$GDB"; then
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4909 $as_echo "$GDB" >&6; }
4910 else
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914
4915
4916
4917 cat >>confdefs.h <<_ACEOF
4918 #define GDB_PATH "$GDB"
4919 _ACEOF
4920
4921
4922 # some older automake's don't have it so try something on our own
4923 # By default we simply use the C compiler to build assembly code.
4924
4925 test "${CCAS+set}" = set || CCAS=$CC
4926 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4927
4928
4929
4930 depcc="$CCAS"   am_compiler_list=
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4933 $as_echo_n "checking dependency style of $depcc... " >&6; }
4934 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4938   # We make a subdir and do the tests there.  Otherwise we can end up
4939   # making bogus files that we don't know about and never remove.  For
4940   # instance it was reported that on HP-UX the gcc test will end up
4941   # making a dummy file named `D' -- because `-MD' means `put the output
4942   # in D'.
4943   mkdir conftest.dir
4944   # Copy depcomp to subdir because otherwise we won't find it if we're
4945   # using a relative directory.
4946   cp "$am_depcomp" conftest.dir
4947   cd conftest.dir
4948   # We will build objects and dependencies in a subdirectory because
4949   # it helps to detect inapplicable dependency modes.  For instance
4950   # both Tru64's cc and ICC support -MD to output dependencies as a
4951   # side effect of compilation, but ICC will put the dependencies in
4952   # the current directory while Tru64 will put them in the object
4953   # directory.
4954   mkdir sub
4955
4956   am_cv_CCAS_dependencies_compiler_type=none
4957   if test "$am_compiler_list" = ""; then
4958      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4959   fi
4960   am__universal=false
4961
4962
4963   for depmode in $am_compiler_list; do
4964     # Setup a source with many dependencies, because some compilers
4965     # like to wrap large dependency lists on column 80 (with \), and
4966     # we should not choose a depcomp mode which is confused by this.
4967     #
4968     # We need to recreate these files for each test, as the compiler may
4969     # overwrite some of them when testing with obscure command lines.
4970     # This happens at least with the AIX C compiler.
4971     : > sub/conftest.c
4972     for i in 1 2 3 4 5 6; do
4973       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4974       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4975       # Solaris 8's {/usr,}/bin/sh.
4976       touch sub/conftst$i.h
4977     done
4978     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4979
4980     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4981     # mode.  It turns out that the SunPro C++ compiler does not properly
4982     # handle `-M -o', and we need to detect this.  Also, some Intel
4983     # versions had trouble with output in subdirs
4984     am__obj=sub/conftest.${OBJEXT-o}
4985     am__minus_obj="-o $am__obj"
4986     case $depmode in
4987     gcc)
4988       # This depmode causes a compiler race in universal mode.
4989       test "$am__universal" = false || continue
4990       ;;
4991     nosideeffect)
4992       # after this tag, mechanisms are not by side-effect, so they'll
4993       # only be used when explicitly requested
4994       if test "x$enable_dependency_tracking" = xyes; then
4995         continue
4996       else
4997         break
4998       fi
4999       ;;
5000     msvisualcpp | msvcmsys)
5001       # This compiler won't grok `-c -o', but also, the minuso test has
5002       # not run yet.  These depmodes are late enough in the game, and
5003       # so weak that their functioning should not be impacted.
5004       am__obj=conftest.${OBJEXT-o}
5005       am__minus_obj=
5006       ;;
5007     none) break ;;
5008     esac
5009     if depmode=$depmode \
5010        source=sub/conftest.c object=$am__obj \
5011        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5012        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5013          >/dev/null 2>conftest.err &&
5014        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5015        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5016        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5017        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5018       # icc doesn't choke on unknown options, it will just issue warnings
5019       # or remarks (even with -Werror).  So we grep stderr for any message
5020       # that says an option was ignored or not supported.
5021       # When given -MP, icc 7.0 and 7.1 complain thusly:
5022       #   icc: Command line warning: ignoring option '-M'; no argument required
5023       # The diagnosis changed in icc 8.0:
5024       #   icc: Command line remark: option '-MP' not supported
5025       if (grep 'ignoring option' conftest.err ||
5026           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5027         am_cv_CCAS_dependencies_compiler_type=$depmode
5028         break
5029       fi
5030     fi
5031   done
5032
5033   cd ..
5034   rm -rf conftest.dir
5035 else
5036   am_cv_CCAS_dependencies_compiler_type=none
5037 fi
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5041 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5042 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5043
5044  if
5045   test "x$enable_dependency_tracking" != xno \
5046   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5047   am__fastdepCCAS_TRUE=
5048   am__fastdepCCAS_FALSE='#'
5049 else
5050   am__fastdepCCAS_TRUE='#'
5051   am__fastdepCCAS_FALSE=
5052 fi
5053
5054
5055
5056
5057 # Check if 'diff' supports -u (universal diffs) and use it if possible.
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5060 $as_echo_n "checking for diff -u... " >&6; }
5061
5062
5063 # Comparing two identical files results in 0, unless -u isn't supported (as
5064 # it's not on AIX).
5065 tmpfile="tmp-xxx-yyy-zzz"
5066 touch $tmpfile;
5067 if diff -u $tmpfile $tmpfile ; then
5068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5069 $as_echo "yes" >&6; }
5070     DIFF="diff -u"
5071 else
5072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074     DIFF="diff"
5075 fi
5076 rm $tmpfile
5077
5078
5079 # We don't want gcc < 3.0
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5081 $as_echo_n "checking for a supported version of gcc... " >&6; }
5082
5083 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5084
5085 case "${gcc_version}" in
5086      2.*)
5087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5088 $as_echo "no (${gcc_version})" >&6; }
5089         as_fn_error "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5090         ;;
5091      *)
5092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5093 $as_echo "ok (${gcc_version})" >&6; }
5094         ;;
5095 esac
5096
5097 #----------------------------------------------------------------------------
5098 # Arch/OS/platform tests.
5099 #----------------------------------------------------------------------------
5100 # We create a number of arch/OS/platform-related variables.  We prefix them
5101 # all with "VGCONF_" which indicates that they are defined at
5102 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5103 # variables used when compiling C files.
5104
5105 # Make sure we can run config.sub.
5106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5107   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5110 $as_echo_n "checking build system type... " >&6; }
5111 if test "${ac_cv_build+set}" = set; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   ac_build_alias=$build_alias
5115 test "x$ac_build_alias" = x &&
5116   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5117 test "x$ac_build_alias" = x &&
5118   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5119 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5120   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5121
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5124 $as_echo "$ac_cv_build" >&6; }
5125 case $ac_cv_build in
5126 *-*-*) ;;
5127 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5128 esac
5129 build=$ac_cv_build
5130 ac_save_IFS=$IFS; IFS='-'
5131 set x $ac_cv_build
5132 shift
5133 build_cpu=$1
5134 build_vendor=$2
5135 shift; shift
5136 # Remember, the first character of IFS is used to create $*,
5137 # except with old shells:
5138 build_os=$*
5139 IFS=$ac_save_IFS
5140 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5141
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5144 $as_echo_n "checking host system type... " >&6; }
5145 if test "${ac_cv_host+set}" = set; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   if test "x$host_alias" = x; then
5149   ac_cv_host=$ac_cv_build
5150 else
5151   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5152     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5153 fi
5154
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5157 $as_echo "$ac_cv_host" >&6; }
5158 case $ac_cv_host in
5159 *-*-*) ;;
5160 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5161 esac
5162 host=$ac_cv_host
5163 ac_save_IFS=$IFS; IFS='-'
5164 set x $ac_cv_host
5165 shift
5166 host_cpu=$1
5167 host_vendor=$2
5168 shift; shift
5169 # Remember, the first character of IFS is used to create $*,
5170 # except with old shells:
5171 host_os=$*
5172 IFS=$ac_save_IFS
5173 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5174
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5178 $as_echo_n "checking for a supported CPU... " >&6; }
5179
5180 # ARCH_MAX reflects the most that this CPU can do: for example if it
5181 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5182 # Ditto for amd64.  It is used for more configuration below, but is not used
5183 # outside this file.
5184 case "${host_cpu}" in
5185      i?86)
5186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5187 $as_echo "ok (${host_cpu})" >&6; }
5188         ARCH_MAX="x86"
5189         ;;
5190
5191      x86_64)
5192         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5193 $as_echo "ok (${host_cpu})" >&6; }
5194         ARCH_MAX="amd64"
5195         ;;
5196
5197      powerpc64)
5198         # This value can only happen on Linux, not on AIX
5199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5200 $as_echo "ok (${host_cpu})" >&6; }
5201         ARCH_MAX="ppc64"
5202         ;;
5203
5204      powerpc)
5205         # Complexity.  'powerpc' on AIX implies a 64-bit capable CPU.
5206         # Whereas in Linux that means only a 32-bit capable CPU.
5207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5208 $as_echo "ok (${host_cpu})" >&6; }
5209         case "${host_os}" in
5210            aix5.*)
5211               ARCH_MAX="ppc64"
5212               ;;
5213            *)
5214               ARCH_MAX="ppc32"
5215               ;;
5216         esac
5217         ;;
5218
5219      armv7*)
5220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5221 $as_echo "ok (${host_cpu})" >&6; }
5222         ARCH_MAX="arm"
5223         ;;
5224
5225      *)
5226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5227 $as_echo "no (${host_cpu})" >&6; }
5228         as_fn_error "Unsupported host architecture. Sorry" "$LINENO" 5
5229         ;;
5230 esac
5231
5232 #----------------------------------------------------------------------------
5233
5234 # Sometimes it's convenient to subvert the bi-arch build system and
5235 # just have a single build even though the underlying platform is
5236 # capable of both.  Hence handle --enable-only64bit and
5237 # --enable-only32bit.  Complain if both are issued :-)
5238 # [Actually, if either of these options are used, I think both get built,
5239 # but only one gets installed.  So if you use an in-place build, both can be
5240 # used. --njn]
5241
5242 # Check if a 64-bit only build has been requested
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5244 $as_echo_n "checking for a 64-bit only build... " >&6; }
5245 if test "${vg_cv_only64bit+set}" = set; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   # Check whether --enable-only64bit was given.
5249 if test "${enable_only64bit+set}" = set; then :
5250   enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5251 else
5252   vg_cv_only64bit=no
5253 fi
5254
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5257 $as_echo "$vg_cv_only64bit" >&6; }
5258
5259 # Check if a 32-bit only build has been requested
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5261 $as_echo_n "checking for a 32-bit only build... " >&6; }
5262 if test "${vg_cv_only32bit+set}" = set; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   # Check whether --enable-only32bit was given.
5266 if test "${enable_only32bit+set}" = set; then :
5267   enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5268 else
5269   vg_cv_only32bit=no
5270 fi
5271
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5274 $as_echo "$vg_cv_only32bit" >&6; }
5275
5276 # Stay sane
5277 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5278    as_fn_error "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5279 fi
5280
5281 #----------------------------------------------------------------------------
5282
5283 # VGCONF_OS is the primary build OS, eg. "linux".  It is passed in to
5284 # compilation of many C files via -VGO_$(VGCONF_OS) and
5285 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5287 $as_echo_n "checking for a supported OS... " >&6; }
5288
5289
5290 DEFAULT_SUPP=""
5291 GENERATED_SUPP=""
5292
5293 case "${host_os}" in
5294      *linux*)
5295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5296 $as_echo "ok (${host_os})" >&6; }
5297         VGCONF_OS="linux"
5298
5299         # Ok, this is linux. Check the kernel version
5300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5301 $as_echo_n "checking for the kernel version... " >&6; }
5302
5303         kernel=`uname -r`
5304
5305         case "${kernel}" in
5306              2.6.*)
5307                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5308 $as_echo "2.6 family (${kernel})" >&6; }
5309
5310 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5311
5312                     ;;
5313
5314              2.4.*)
5315                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5316 $as_echo "2.4 family (${kernel})" >&6; }
5317
5318 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5319
5320                     ;;
5321
5322              *)
5323                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5324 $as_echo "unsupported (${kernel})" >&6; }
5325                     as_fn_error "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5326                     ;;
5327         esac
5328
5329         ;;
5330
5331      aix5.1.*)
5332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5333 $as_echo "ok (${host_os})" >&6; }
5334         VGCONF_OS="aix5"
5335         ;;
5336      aix5.2.*)
5337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5338 $as_echo "ok (${host_os})" >&6; }
5339         VGCONF_OS="aix5"
5340         ;;
5341      aix5.3.*)
5342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5343 $as_echo "ok (${host_os})" >&6; }
5344         VGCONF_OS="aix5"
5345         ;;
5346
5347      *l4re*)
5348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5349 $as_echo "ok (${host_os})" >&6; }
5350         VGCONF_OS="l4re"
5351         ;;
5352
5353      *darwin*)
5354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5355 $as_echo "ok (${host_os})" >&6; }
5356         VGCONF_OS="darwin"
5357
5358 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5359
5360
5361 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5362
5363
5364 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5365
5366
5367         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5368 $as_echo_n "checking for the kernel version... " >&6; }
5369         kernel=`uname -r`
5370
5371         # Nb: for Darwin we set DEFAULT_SUPP here.  That's because Darwin
5372         # has only one relevant version, the OS version. The `uname` check
5373         # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5374         # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5375         # and we don't know of an macros similar to __GLIBC__ to get that info.
5376         #
5377         # XXX: `uname -r` won't do the right thing for cross-compiles, but
5378         # that's not a problem yet.
5379         case "${kernel}" in
5380              9.*)
5381                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5382 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5383
5384 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5385
5386                   DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5387                   DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5388                   ;;
5389              10.*)
5390                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5391 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5392
5393 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5394
5395                   DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5396                   DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5397                   ;;
5398      *)
5399                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5400 $as_echo "unsupported (${kernel})" >&6; }
5401                   as_fn_error "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5402                   ;;
5403         esac
5404         ;;
5405
5406      *)
5407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5408 $as_echo "no (${host_os})" >&6; }
5409         as_fn_error "Valgrind is operating system specific. Sorry." "$LINENO" 5
5410         ;;
5411 esac
5412
5413 #----------------------------------------------------------------------------
5414
5415 # If we are building on a 64 bit platform test to see if the system
5416 # supports building 32 bit programs and disable 32 bit support if it
5417 # does not support building 32 bit programs
5418
5419 case "$ARCH_MAX-$VGCONF_OS" in
5420      amd64-linux|ppc64-linux)
5421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5422 $as_echo_n "checking for 32 bit build support... " >&6; }
5423         safe_CFLAGS=$CFLAGS
5424         CFLAGS="-m32"
5425
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h.  */
5428
5429 int
5430 main ()
5431 {
5432
5433           return 0;
5434
5435   ;
5436   return 0;
5437 }
5438 _ACEOF
5439 if ac_fn_c_try_link "$LINENO"; then :
5440
5441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 $as_echo "yes" >&6; }
5443
5444 else
5445
5446         vg_cv_only64bit="yes"
5447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5449
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext \
5452     conftest$ac_exeext conftest.$ac_ext
5453         CFLAGS=$safe_CFLAGS;;
5454 esac
5455
5456 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5457    as_fn_error "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5458 fi
5459
5460 #----------------------------------------------------------------------------
5461
5462 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64".  By
5463 # default it's the same as ARCH_MAX.  But if, say, we do a build on an amd64
5464 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5465 # above) will be "amd64" since that reflects the most that this cpu can do,
5466 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5467 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS).  It is
5468 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5469 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5470
5471
5472 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5473 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5474 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5475 # It is empty if there is no secondary target.
5476
5477
5478 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5479 # The entire system, including regression and performance tests, will be
5480 # built for this target.  The "_CAPS" indicates that the name is in capital
5481 # letters, and it also uses '_' rather than '-' as a separator, because it's
5482 # used to create various Makefile variables, which are all in caps by
5483 # convention and cannot contain '-' characters.  This is in contrast to
5484 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5485
5486
5487 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5488 # Valgrind and tools will also be built for this target, but not the
5489 # regression or performance tests.
5490 #
5491 # By default, the primary arch is the same as the "max" arch, as commented
5492 # above (at the definition of ARCH_MAX).  We may choose to downgrade it in
5493 # the big case statement just below here, in the case where we're building
5494 # on a 64 bit machine but have been requested only to do a 32 bit build.
5495
5496
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5498 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5499
5500 # NB.  The load address for a given platform may be specified in more
5501 # than one place, in some cases, depending on whether we're doing a biarch,
5502 # 32-bit only or 64-bit only build.  eg see case for amd64-linux below.
5503 # Be careful to give consistent values in all subcases.  Also, all four
5504 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5505 # even if it is to "0xUNSET".
5506 #
5507 case "$ARCH_MAX-$VGCONF_OS" in
5508      x86-linux)
5509         VGCONF_ARCH_PRI="x86"
5510         VGCONF_ARCH_SEC=""
5511         VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5512         VGCONF_PLATFORM_SEC_CAPS=""
5513         valt_load_address_pri_norml="0x38000000"
5514         valt_load_address_pri_inner="0x28000000"
5515         valt_load_address_sec_norml="0xUNSET"
5516         valt_load_address_sec_inner="0xUNSET"
5517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5518 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5519         ;;
5520      amd64-linux)
5521         valt_load_address_sec_norml="0xUNSET"
5522         valt_load_address_sec_inner="0xUNSET"
5523         if test x$vg_cv_only64bit = xyes; then
5524            VGCONF_ARCH_PRI="amd64"
5525            VGCONF_ARCH_SEC=""
5526            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5527            VGCONF_PLATFORM_SEC_CAPS=""
5528            valt_load_address_pri_norml="0x38000000"
5529            valt_load_address_pri_inner="0x28000000"
5530         elif test x$vg_cv_only32bit = xyes; then
5531            VGCONF_ARCH_PRI="x86"
5532            VGCONF_ARCH_SEC=""
5533            VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5534            VGCONF_PLATFORM_SEC_CAPS=""
5535            valt_load_address_pri_norml="0x38000000"
5536            valt_load_address_pri_inner="0x28000000"
5537         else
5538            VGCONF_ARCH_PRI="amd64"
5539            VGCONF_ARCH_SEC="x86"
5540            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5541            VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5542            valt_load_address_pri_norml="0x38000000"
5543            valt_load_address_pri_inner="0x28000000"
5544            valt_load_address_sec_norml="0x38000000"
5545            valt_load_address_sec_inner="0x28000000"
5546         fi
5547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5548 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5549         ;;
5550      ppc32-linux)
5551         VGCONF_ARCH_PRI="ppc32"
5552         VGCONF_ARCH_SEC=""
5553         VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5554         VGCONF_PLATFORM_SEC_CAPS=""
5555         valt_load_address_pri_norml="0x38000000"
5556         valt_load_address_pri_inner="0x28000000"
5557         valt_load_address_sec_norml="0xUNSET"
5558         valt_load_address_sec_inner="0xUNSET"
5559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5560 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5561         ;;
5562      ppc64-aix5)
5563         valt_load_address_pri_norml="0xUNSET"
5564         valt_load_address_pri_inner="0xUNSET"
5565         valt_load_address_sec_norml="0xUNSET"
5566         valt_load_address_sec_inner="0xUNSET"
5567         if test x$vg_cv_only64bit = xyes; then
5568            VGCONF_ARCH_PRI="ppc64"
5569            VGCONF_ARCH_SEC=""
5570            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5571            VGCONF_PLATFORM_SEC_CAPS=""
5572         elif test x$vg_cv_only32bit = xyes; then
5573            VGCONF_ARCH_PRI="ppc32"
5574            VGCONF_ARCH_SEC=""
5575            VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5576            VGCONF_PLATFORM_SEC_CAPS=""
5577         else
5578            VGCONF_ARCH_PRI="ppc64"
5579            VGCONF_ARCH_SEC="ppc32"
5580            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5581            VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5582         fi
5583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5584 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5585         ;;
5586      ppc64-linux)
5587         valt_load_address_sec_norml="0xUNSET"
5588         valt_load_address_sec_inner="0xUNSET"
5589         if test x$vg_cv_only64bit = xyes; then
5590            VGCONF_ARCH_PRI="ppc64"
5591            VGCONF_ARCH_SEC=""
5592            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5593            VGCONF_PLATFORM_SEC_CAPS=""
5594            valt_load_address_pri_norml="0x38000000"
5595            valt_load_address_pri_inner="0x28000000"
5596         elif test x$vg_cv_only32bit = xyes; then
5597            VGCONF_ARCH_PRI="ppc32"
5598            VGCONF_ARCH_SEC=""
5599            VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5600            VGCONF_PLATFORM_SEC_CAPS=""
5601            valt_load_address_pri_norml="0x38000000"
5602            valt_load_address_pri_inner="0x28000000"
5603         else
5604            VGCONF_ARCH_PRI="ppc64"
5605            VGCONF_ARCH_SEC="ppc32"
5606            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5607            VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5608            valt_load_address_pri_norml="0x38000000"
5609            valt_load_address_pri_inner="0x28000000"
5610            valt_load_address_sec_norml="0x38000000"
5611            valt_load_address_sec_inner="0x28000000"
5612         fi
5613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5614 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5615         ;;
5616      x86-l4re)
5617                 VGCONF_ARCH_PRI="x86"
5618                 VGCONF_ARCH_SEC=""
5619                 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5620                 VGCONF_PLATFORM_SEC_CAPS=""
5621            valt_load_address_pri_norml="0x38000000"
5622            valt_load_address_pri_inner="0x28000000"
5623            valt_load_address_sec_norml="0x38000000"
5624            valt_load_address_sec_inner="0x28000000"
5625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5626 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5627          ;;
5628      # Darwin gets identified as 32-bit even when it supports 64-bit.
5629      # (Not sure why, possibly because 'uname' returns "i386"?)  Just about
5630      # all Macs support both 32-bit and 64-bit, so we just build both.  If
5631      # someone has a really old 32-bit only machine they can (hopefully?)
5632      # build with --enable-only32bit.  See bug 243362.
5633      x86-darwin|amd64-darwin)
5634         ARCH_MAX="amd64"
5635         valt_load_address_sec_norml="0xUNSET"
5636         valt_load_address_sec_inner="0xUNSET"
5637         if test x$vg_cv_only64bit = xyes; then
5638            VGCONF_ARCH_PRI="amd64"
5639            VGCONF_ARCH_SEC=""
5640            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5641            VGCONF_PLATFORM_SEC_CAPS=""
5642            valt_load_address_pri_norml="0x138000000"
5643            valt_load_address_pri_inner="0x128000000"
5644         elif test x$vg_cv_only32bit = xyes; then
5645            VGCONF_ARCH_PRI="x86"
5646            VGCONF_ARCH_SEC=""
5647            VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5648            VGCONF_PLATFORM_SEC_CAPS=""
5649            VGCONF_ARCH_PRI_CAPS="x86"
5650            valt_load_address_pri_norml="0x38000000"
5651            valt_load_address_pri_inner="0x28000000"
5652         else
5653            VGCONF_ARCH_PRI="amd64"
5654            VGCONF_ARCH_SEC="x86"
5655            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5656            VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5657            valt_load_address_pri_norml="0x138000000"
5658            valt_load_address_pri_inner="0x128000000"
5659            valt_load_address_sec_norml="0x38000000"
5660            valt_load_address_sec_inner="0x28000000"
5661         fi
5662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5663 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5664         ;;
5665      arm-linux)
5666         VGCONF_ARCH_PRI="arm"
5667         VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5668         VGCONF_PLATFORM_SEC_CAPS=""
5669         valt_load_address_pri_norml="0x38000000"
5670         valt_load_address_pri_inner="0x28000000"
5671         valt_load_address_sec_norml="0xUNSET"
5672         valt_load_address_sec_inner="0xUNSET"
5673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5674 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5675         ;;
5676     *)
5677         VGCONF_ARCH_PRI="unknown"
5678         VGCONF_ARCH_SEC="unknown"
5679         VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5680         VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5681         valt_load_address_pri_norml="0xUNSET"
5682         valt_load_address_pri_inner="0xUNSET"
5683         valt_load_address_sec_norml="0xUNSET"
5684         valt_load_address_sec_inner="0xUNSET"
5685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5686 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5687         as_fn_error "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5688         ;;
5689 esac
5690
5691 #----------------------------------------------------------------------------
5692
5693 # Set up VGCONF_ARCHS_INCLUDE_<arch>.  Either one or two of these become
5694 # defined.
5695  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5696                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5697                  -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5698                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5699   VGCONF_ARCHS_INCLUDE_X86_TRUE=
5700   VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5701 else
5702   VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5703   VGCONF_ARCHS_INCLUDE_X86_FALSE=
5704 fi
5705
5706  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5707                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5708   VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5709   VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5710 else
5711   VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5712   VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5713 fi
5714
5715  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5716                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5717                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5718                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5719   VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5720   VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5721 else
5722   VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5723   VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5724 fi
5725
5726  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5727                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5728   VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5729   VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5730 else
5731   VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5732   VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5733 fi
5734
5735  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5736   VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5737   VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5738 else
5739   VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5740   VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5741 fi
5742
5743
5744 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>.  Either one or two of these
5745 # become defined.
5746  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5747                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5748   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5749   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5750 else
5751   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5752   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5753 fi
5754
5755  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5756   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5757   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5758 else
5759   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5760   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5761 fi
5762
5763  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5764                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5765   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5766   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5767 else
5768   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5769   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5770 fi
5771
5772  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5773   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5774   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5775 else
5776   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5777   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5778 fi
5779
5780  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5781   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5782   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5783 else
5784   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5785   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5786 fi
5787
5788
5789  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5790                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5791   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5792   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5793 else
5794   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5795   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5796 fi
5797
5798  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5799   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5800   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5801 else
5802   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5803   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5804 fi
5805
5806
5807  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5808                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5809   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5810   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5811 else
5812   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5813   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5814 fi
5815
5816  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5817   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5818   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5819 else
5820   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5821   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5822 fi
5823
5824  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5825   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5826   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5827 else
5828   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5829   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5830 fi
5831
5832
5833
5834 # Similarly, set up VGCONF_OS_IS_<os>.  Exactly one of these becomes defined.
5835 # Relies on the assumption that the primary and secondary targets are
5836 # for the same OS, so therefore only necessary to test the primary.
5837  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5838                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5839                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5840                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5841                  -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5842   VGCONF_OS_IS_LINUX_TRUE=
5843   VGCONF_OS_IS_LINUX_FALSE='#'
5844 else
5845   VGCONF_OS_IS_LINUX_TRUE='#'
5846   VGCONF_OS_IS_LINUX_FALSE=
5847 fi
5848
5849  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5850                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5851   VGCONF_OS_IS_AIX5_TRUE=
5852   VGCONF_OS_IS_AIX5_FALSE='#'
5853 else
5854   VGCONF_OS_IS_AIX5_TRUE='#'
5855   VGCONF_OS_IS_AIX5_FALSE=
5856 fi
5857
5858  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5859                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5860   VGCONF_OS_IS_DARWIN_TRUE=
5861   VGCONF_OS_IS_DARWIN_FALSE='#'
5862 else
5863   VGCONF_OS_IS_DARWIN_TRUE='#'
5864   VGCONF_OS_IS_DARWIN_FALSE=
5865 fi
5866
5867  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5868   VGCONF_OS_IS_L4RE_TRUE=
5869   VGCONF_OS_IS_L4RE_FALSE='#'
5870 else
5871   VGCONF_OS_IS_L4RE_TRUE='#'
5872   VGCONF_OS_IS_L4RE_FALSE=
5873 fi
5874
5875
5876
5877 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5878 # there is a secondary target.
5879  if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5880   VGCONF_HAVE_PLATFORM_SEC_TRUE=
5881   VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5882 else
5883   VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5884   VGCONF_HAVE_PLATFORM_SEC_FALSE=
5885 fi
5886
5887
5888
5889 #----------------------------------------------------------------------------
5890 # Inner Valgrind?
5891 #----------------------------------------------------------------------------
5892
5893 # Check if this should be built as an inner Valgrind, to be run within
5894 # another Valgrind.  Choose the load address accordingly.
5895
5896
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5898 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5899 if test "${vg_cv_inner+set}" = set; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   # Check whether --enable-inner was given.
5903 if test "${enable_inner+set}" = set; then :
5904   enableval=$enable_inner; vg_cv_inner=$enableval
5905 else
5906   vg_cv_inner=no
5907 fi
5908
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5911 $as_echo "$vg_cv_inner" >&6; }
5912 if test "$vg_cv_inner" = yes; then
5913
5914 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5915
5916     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5917     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5918 else
5919     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5920     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5921 fi
5922
5923
5924 #----------------------------------------------------------------------------
5925 # Libc and suppressions
5926 #----------------------------------------------------------------------------
5927 # This variable will collect the suppression files to be used.
5928
5929 # This variable holds generated suppression files (such as the one used for
5930 # glibcs >= 2.7)
5931
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5935 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5936 if test "${ac_cv_path_GREP+set}" = set; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test -z "$GREP"; then
5940   ac_path_GREP_found=false
5941   # Loop through the user's path and test for each of PROGNAME-LIST
5942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947     for ac_prog in grep ggrep; do
5948     for ac_exec_ext in '' $ac_executable_extensions; do
5949       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5950       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5951 # Check for GNU ac_path_GREP and select it if it is found.
5952   # Check for GNU $ac_path_GREP
5953 case `"$ac_path_GREP" --version 2>&1` in
5954 *GNU*)
5955   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5956 *)
5957   ac_count=0
5958   $as_echo_n 0123456789 >"conftest.in"
5959   while :
5960   do
5961     cat "conftest.in" "conftest.in" >"conftest.tmp"
5962     mv "conftest.tmp" "conftest.in"
5963     cp "conftest.in" "conftest.nl"
5964     $as_echo 'GREP' >> "conftest.nl"
5965     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5966     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5967     as_fn_arith $ac_count + 1 && ac_count=$as_val
5968     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5969       # Best one so far, save it but keep looking for a better one
5970       ac_cv_path_GREP="$ac_path_GREP"
5971       ac_path_GREP_max=$ac_count
5972     fi
5973     # 10*(2^10) chars as input seems more than enough
5974     test $ac_count -gt 10 && break
5975   done
5976   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5977 esac
5978
5979       $ac_path_GREP_found && break 3
5980     done
5981   done
5982   done
5983 IFS=$as_save_IFS
5984   if test -z "$ac_cv_path_GREP"; then
5985     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5986   fi
5987 else
5988   ac_cv_path_GREP=$GREP
5989 fi
5990
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5993 $as_echo "$ac_cv_path_GREP" >&6; }
5994  GREP="$ac_cv_path_GREP"
5995
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5998 $as_echo_n "checking for egrep... " >&6; }
5999 if test "${ac_cv_path_EGREP+set}" = set; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6003    then ac_cv_path_EGREP="$GREP -E"
6004    else
6005      if test -z "$EGREP"; then
6006   ac_path_EGREP_found=false
6007   # Loop through the user's path and test for each of PROGNAME-LIST
6008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013     for ac_prog in egrep; do
6014     for ac_exec_ext in '' $ac_executable_extensions; do
6015       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6016       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6017 # Check for GNU ac_path_EGREP and select it if it is found.
6018   # Check for GNU $ac_path_EGREP
6019 case `"$ac_path_EGREP" --version 2>&1` in
6020 *GNU*)
6021   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6022 *)
6023   ac_count=0
6024   $as_echo_n 0123456789 >"conftest.in"
6025   while :
6026   do
6027     cat "conftest.in" "conftest.in" >"conftest.tmp"
6028     mv "conftest.tmp" "conftest.in"
6029     cp "conftest.in" "conftest.nl"
6030     $as_echo 'EGREP' >> "conftest.nl"
6031     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6032     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6033     as_fn_arith $ac_count + 1 && ac_count=$as_val
6034     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6035       # Best one so far, save it but keep looking for a better one
6036       ac_cv_path_EGREP="$ac_path_EGREP"
6037       ac_path_EGREP_max=$ac_count
6038     fi
6039     # 10*(2^10) chars as input seems more than enough
6040     test $ac_count -gt 10 && break
6041   done
6042   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6043 esac
6044
6045       $ac_path_EGREP_found && break 3
6046     done
6047   done
6048   done
6049 IFS=$as_save_IFS
6050   if test -z "$ac_cv_path_EGREP"; then
6051     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6052   fi
6053 else
6054   ac_cv_path_EGREP=$EGREP
6055 fi
6056
6057    fi
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6060 $as_echo "$ac_cv_path_EGREP" >&6; }
6061  EGREP="$ac_cv_path_EGREP"
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6065 $as_echo_n "checking for ANSI C header files... " >&6; }
6066 if test "${ac_cv_header_stdc+set}" = set; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h.  */
6071 #include <stdlib.h>
6072 #include <stdarg.h>
6073 #include <string.h>
6074 #include <float.h>
6075
6076 int
6077 main ()
6078 {
6079
6080   ;
6081   return 0;
6082 }
6083 _ACEOF
6084 if ac_fn_c_try_compile "$LINENO"; then :
6085   ac_cv_header_stdc=yes
6086 else
6087   ac_cv_header_stdc=no
6088 fi
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090
6091 if test $ac_cv_header_stdc = yes; then
6092   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h.  */
6095 #include <string.h>
6096
6097 _ACEOF
6098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099   $EGREP "memchr" >/dev/null 2>&1; then :
6100
6101 else
6102   ac_cv_header_stdc=no
6103 fi
6104 rm -f conftest*
6105
6106 fi
6107
6108 if test $ac_cv_header_stdc = yes; then
6109   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h.  */
6112 #include <stdlib.h>
6113
6114 _ACEOF
6115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6116   $EGREP "free" >/dev/null 2>&1; then :
6117
6118 else
6119   ac_cv_header_stdc=no
6120 fi
6121 rm -f conftest*
6122
6123 fi
6124
6125 if test $ac_cv_header_stdc = yes; then
6126   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6127   if test "$cross_compiling" = yes; then :
6128   :
6129 else
6130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h.  */
6132 #include <ctype.h>
6133 #include <stdlib.h>
6134 #if ((' ' & 0x0FF) == 0x020)
6135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6137 #else
6138 # define ISLOWER(c) \
6139                    (('a' <= (c) && (c) <= 'i') \
6140                      || ('j' <= (c) && (c) <= 'r') \
6141                      || ('s' <= (c) && (c) <= 'z'))
6142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6143 #endif
6144
6145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6146 int
6147 main ()
6148 {
6149   int i;
6150   for (i = 0; i < 256; i++)
6151     if (XOR (islower (i), ISLOWER (i))
6152         || toupper (i) != TOUPPER (i))
6153       return 2;
6154   return 0;
6155 }
6156 _ACEOF
6157 if ac_fn_c_try_run "$LINENO"; then :
6158
6159 else
6160   ac_cv_header_stdc=no
6161 fi
6162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6163   conftest.$ac_objext conftest.beam conftest.$ac_ext
6164 fi
6165
6166 fi
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6169 $as_echo "$ac_cv_header_stdc" >&6; }
6170 if test $ac_cv_header_stdc = yes; then
6171
6172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6173
6174 fi
6175
6176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6178                   inttypes.h stdint.h unistd.h
6179 do :
6180   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6181 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6182 "
6183 eval as_val=\$$as_ac_Header
6184    if test "x$as_val" = x""yes; then :
6185   cat >>confdefs.h <<_ACEOF
6186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6187 _ACEOF
6188
6189 fi
6190
6191 done
6192
6193
6194 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6195 if test "x$ac_cv_header_features_h" = x""yes; then :
6196
6197 fi
6198
6199
6200
6201 if test x$ac_cv_header_features_h = xyes; then
6202   rm -f conftest.$ac_ext
6203   cat <<_ACEOF >conftest.$ac_ext
6204 #include <features.h>
6205 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6206 glibc version is: __GLIBC__ __GLIBC_MINOR__
6207 #endif
6208 _ACEOF
6209   GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6210 fi
6211
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h.  */
6214
6215 #include <standards.h>
6216 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6217   AIX5_LIBC
6218 #endif
6219
6220 _ACEOF
6221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6222   $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6223   GLIBC_VERSION="aix5"
6224 fi
6225 rm -f conftest*
6226
6227
6228 # not really a version check
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h.  */
6231
6232 #include <sys/cdefs.h>
6233 #if defined(__DARWIN_VERS_1050)
6234   DARWIN_LIBC
6235 #endif
6236
6237 _ACEOF
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239   $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6240   GLIBC_VERSION="darwin"
6241 fi
6242 rm -f conftest*
6243
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6246 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6247
6248 case "${GLIBC_VERSION}" in
6249      2.2)
6250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6251 $as_echo "2.2 family" >&6; }
6252
6253 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6254
6255         DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6256         DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6257         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6258         ;;
6259
6260      2.3)
6261         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6262 $as_echo "2.3 family" >&6; }
6263
6264 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6265
6266         DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6267         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6268         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6269         ;;
6270
6271      2.4)
6272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6273 $as_echo "2.4 family" >&6; }
6274
6275 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6276
6277         DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6278         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6279         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6280         ;;
6281
6282      2.5)
6283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6284 $as_echo "2.5 family" >&6; }
6285
6286 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6287
6288         DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6289         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6290         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6291         ;;
6292      2.6)
6293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6294 $as_echo "2.6 family" >&6; }
6295
6296 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6297
6298         DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6299         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6300         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6301         ;;
6302      2.7)
6303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6304 $as_echo "2.7 family" >&6; }
6305
6306 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6307
6308         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6309         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6310         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6311         ;;
6312      2.8)
6313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6314 $as_echo "2.8 family" >&6; }
6315
6316 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6317
6318         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6319         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6320         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6321         ;;
6322      2.9)
6323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6324 $as_echo "2.9 family" >&6; }
6325
6326 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6327
6328         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6329         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6330         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6331         ;;
6332      2.10)
6333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6334 $as_echo "2.10 family" >&6; }
6335
6336 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6337
6338         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6339         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6340         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6341         ;;
6342      2.11)
6343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6344 $as_echo "2.11 family" >&6; }
6345
6346 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6347
6348         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6349         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6350         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6351         ;;
6352      2.12)
6353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6354 $as_echo "2.12 family" >&6; }
6355
6356 $as_echo "#define GLIBC_2_12 1" >>confdefs.h
6357
6358         DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6359         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6360         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6361         ;;
6362      aix5)
6363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6364 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6365
6366 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6367
6368         DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6369         ;;
6370      darwin)
6371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6372 $as_echo "Darwin" >&6; }
6373
6374 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6375
6376         # DEFAULT_SUPP set by kernel version check above.
6377         ;;
6378
6379      *)
6380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6381 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6382         as_fn_error "Valgrind requires glibc version 2.2 - 2.12" "$LINENO" 5
6383         as_fn_error "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6384         as_fn_error "or Darwin libc" "$LINENO" 5
6385         ;;
6386 esac
6387
6388
6389
6390
6391 # Add default suppressions for the X client libraries.  Make no
6392 # attempt to detect whether such libraries are installed on the
6393 # build machine (or even if any X facilities are present); just
6394 # add the suppressions antidisirregardless.
6395 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6396 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6397
6398 # Add glibc and X11 suppressions for exp-ptrcheck
6399 DEFAULT_SUPP="exp-ptrcheck.supp ${DEFAULT_SUPP}"
6400
6401
6402 #----------------------------------------------------------------------------
6403 # Checking for various library functions and other definitions
6404 #----------------------------------------------------------------------------
6405
6406 # Check for CLOCK_MONOTONIC
6407
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6409 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6410
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h.  */
6413
6414 #include <time.h>
6415
6416 int
6417 main ()
6418 {
6419
6420   struct timespec t;
6421   clock_gettime(CLOCK_MONOTONIC, &t);
6422   return 0;
6423
6424   ;
6425   return 0;
6426 }
6427 _ACEOF
6428 if ac_fn_c_try_compile "$LINENO"; then :
6429
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6431 $as_echo "yes" >&6; }
6432
6433 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6434
6435
6436 else
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443
6444
6445 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6448 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6449
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h.  */
6452
6453 #define _GNU_SOURCE
6454 #include <pthread.h>
6455
6456 int
6457 main ()
6458 {
6459
6460   return (PTHREAD_MUTEX_ADAPTIVE_NP);
6461
6462   ;
6463   return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6469 $as_echo "yes" >&6; }
6470
6471 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6472
6473
6474 else
6475
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481
6482
6483 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6486 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6487
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h.  */
6490
6491 #define _GNU_SOURCE
6492 #include <pthread.h>
6493
6494 int
6495 main ()
6496 {
6497
6498   return (PTHREAD_MUTEX_ERRORCHECK_NP);
6499
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 if ac_fn_c_try_compile "$LINENO"; then :
6505
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6507 $as_echo "yes" >&6; }
6508
6509 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6510
6511
6512 else
6513
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519
6520
6521 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6524 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6525
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h.  */
6528
6529 #define _GNU_SOURCE
6530 #include <pthread.h>
6531
6532 int
6533 main ()
6534 {
6535
6536   return (PTHREAD_MUTEX_RECURSIVE_NP);
6537
6538   ;
6539   return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6545 $as_echo "yes" >&6; }
6546
6547 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6548
6549
6550 else
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554
6555 fi
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557
6558
6559 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6562 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6563
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h.  */
6566
6567 #define _GNU_SOURCE
6568 #include <pthread.h>
6569
6570 int
6571 main ()
6572 {
6573
6574   pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6575   return 0;
6576
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 $as_echo "yes" >&6; }
6585
6586 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6587
6588
6589 else
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596
6597
6598 # Check whether pthread_mutex_t has a member called __m_kind.
6599
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6601 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6602
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h.  */
6605
6606   #include <pthread.h>
6607
6608 int
6609 main ()
6610 {
6611
6612   pthread_mutex_t m;
6613   return m.__m_kind;
6614
6615   ;
6616   return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6622 $as_echo "yes" >&6; }
6623
6624 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6625
6626
6627 else
6628
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634
6635
6636 # Check whether pthread_mutex_t has a member called __data.__kind.
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6639 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6640
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h.  */
6643
6644 #include <pthread.h>
6645
6646 int
6647 main ()
6648 {
6649
6650   pthread_mutex_t m;
6651   return m.__data.__kind;
6652
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6661
6662 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6663
6664
6665 else
6666
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6669
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672
6673
6674 # does this compiler support -maltivec and does it have the include file
6675 # <altivec.h> ?
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6678 $as_echo_n "checking for Altivec... " >&6; }
6679
6680 safe_CFLAGS=$CFLAGS
6681 CFLAGS="-maltivec"
6682
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685
6686 #include <altivec.h>
6687
6688 int
6689 main ()
6690 {
6691
6692   vector unsigned int v;
6693
6694   ;
6695   return 0;
6696 }
6697 _ACEOF
6698 if ac_fn_c_try_compile "$LINENO"; then :
6699
6700 ac_have_altivec=yes
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6702 $as_echo "yes" >&6; }
6703
6704 else
6705
6706 ac_have_altivec=no
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 CFLAGS=$safe_CFLAGS
6713
6714  if test x$ac_have_altivec = xyes; then
6715   HAS_ALTIVEC_TRUE=
6716   HAS_ALTIVEC_FALSE='#'
6717 else
6718   HAS_ALTIVEC_TRUE='#'
6719   HAS_ALTIVEC_FALSE=
6720 fi
6721
6722  if test x$ac_have_altivec = xyes; then
6723   HAVE_ALTIVEC_H_TRUE=
6724   HAVE_ALTIVEC_H_FALSE='#'
6725 else
6726   HAVE_ALTIVEC_H_TRUE='#'
6727   HAVE_ALTIVEC_H_FALSE=
6728 fi
6729
6730
6731
6732 # Check for pthread_create@GLIBC2.0
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6734 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6735
6736 safe_CFLAGS=$CFLAGS
6737 CFLAGS="-lpthread"
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h.  */
6740
6741 extern int pthread_create_glibc_2_0(void*, const void*,
6742                                     void *(*)(void*), void*);
6743 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6744
6745 int
6746 main ()
6747 {
6748
6749 #ifdef __powerpc__
6750 /*
6751  * Apparently on PowerPC linking this program succeeds and generates an
6752  * executable with the undefined symbol pthread_create@GLIBC_2.0.
6753  */
6754 #error This test does not work properly on PowerPC.
6755 #else
6756   pthread_create_glibc_2_0(0, 0, 0, 0);
6757 #endif
6758   return 0;
6759
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_link "$LINENO"; then :
6765
6766 ac_have_pthread_create_glibc_2_0=yes
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6768 $as_echo "yes" >&6; }
6769
6770 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6771
6772
6773 else
6774
6775 ac_have_pthread_create_glibc_2_0=no
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext \
6781     conftest$ac_exeext conftest.$ac_ext
6782 CFLAGS=$safe_CFLAGS
6783
6784  if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6785   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6786   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6787 else
6788   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6789   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6790 fi
6791
6792
6793
6794 # Check for eventfd_t, eventfd() and eventfd_read()
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6796 $as_echo_n "checking for eventfd()... " >&6; }
6797
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h.  */
6800
6801 #include <sys/eventfd.h>
6802
6803 int
6804 main ()
6805 {
6806
6807   eventfd_t ev;
6808   int fd;
6809
6810   fd = eventfd(5, 0);
6811   eventfd_read(fd, &ev);
6812   return 0;
6813
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 if ac_fn_c_try_link "$LINENO"; then :
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6821 $as_echo "yes" >&6; }
6822
6823 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
6824
6825
6826 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
6827
6828
6829 else
6830
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext \
6836     conftest$ac_exeext conftest.$ac_ext
6837
6838
6839 #----------------------------------------------------------------------------
6840 # Checking for supported compiler flags.
6841 #----------------------------------------------------------------------------
6842
6843 # does this compiler support -m32 ?
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
6845 $as_echo_n "checking if gcc accepts -m32... " >&6; }
6846
6847 safe_CFLAGS=$CFLAGS
6848 CFLAGS="-m32"
6849
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h.  */
6852
6853 int
6854 main ()
6855 {
6856
6857   return 0;
6858
6859   ;
6860   return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864
6865 FLAG_M32="-m32"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867 $as_echo "yes" >&6; }
6868
6869 else
6870
6871 FLAG_M32=""
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 CFLAGS=$safe_CFLAGS
6878
6879
6880
6881
6882 # does this compiler support -maix32 ?
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
6884 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
6885
6886 safe_CFLAGS=$CFLAGS
6887 CFLAGS="-maix32"
6888
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h.  */
6891
6892 int
6893 main ()
6894 {
6895
6896   return 0;
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_compile "$LINENO"; then :
6903
6904 FLAG_MAIX32="-maix32"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6907
6908 else
6909
6910 FLAG_MAIX32=""
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 CFLAGS=$safe_CFLAGS
6917
6918
6919
6920
6921 # does this compiler support -m64 ?
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
6923 $as_echo_n "checking if gcc accepts -m64... " >&6; }
6924
6925 safe_CFLAGS=$CFLAGS
6926 CFLAGS="-m64"
6927
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930
6931 int
6932 main ()
6933 {
6934
6935   return 0;
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 if ac_fn_c_try_compile "$LINENO"; then :
6942
6943 FLAG_M64="-m64"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6945 $as_echo "yes" >&6; }
6946
6947 else
6948
6949 FLAG_M64=""
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 CFLAGS=$safe_CFLAGS
6956
6957
6958
6959
6960 # does this compiler support -maix64 ?
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
6962 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
6963
6964 safe_CFLAGS=$CFLAGS
6965 CFLAGS="-maix64"
6966
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h.  */
6969
6970 int
6971 main ()
6972 {
6973
6974   return 0;
6975
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_compile "$LINENO"; then :
6981
6982 FLAG_MAIX64="-maix64"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6984 $as_echo "yes" >&6; }
6985
6986 else
6987
6988 FLAG_MAIX64=""
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 CFLAGS=$safe_CFLAGS
6995
6996
6997
6998
6999 # does this compiler support -mmmx ?
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
7001 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
7002
7003 safe_CFLAGS=$CFLAGS
7004 CFLAGS="-mmmx"
7005
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h.  */
7008
7009 int
7010 main ()
7011 {
7012
7013   return 0;
7014
7015   ;
7016   return 0;
7017 }
7018 _ACEOF
7019 if ac_fn_c_try_compile "$LINENO"; then :
7020
7021 FLAG_MMMX="-mmmx"
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7023 $as_echo "yes" >&6; }
7024
7025 else
7026
7027 FLAG_MMMX=""
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 CFLAGS=$safe_CFLAGS
7034
7035
7036
7037
7038 # does this compiler support -msse ?
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7040 $as_echo_n "checking if gcc accepts -msse... " >&6; }
7041
7042 safe_CFLAGS=$CFLAGS
7043 CFLAGS="-msse"
7044
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h.  */
7047
7048 int
7049 main ()
7050 {
7051
7052   return 0;
7053
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 if ac_fn_c_try_compile "$LINENO"; then :
7059
7060 FLAG_MSSE="-msse"
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7062 $as_echo "yes" >&6; }
7063
7064 else
7065
7066 FLAG_MSSE=""
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 CFLAGS=$safe_CFLAGS
7073
7074
7075
7076
7077 # does this compiler support -mpreferred-stack-boundary=2 ?
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7079 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7080
7081 safe_CFLAGS=$CFLAGS
7082 CFLAGS="-mpreferred-stack-boundary=2"
7083
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h.  */
7086
7087 int
7088 main ()
7089 {
7090
7091   return 0;
7092
7093   ;
7094   return 0;
7095 }
7096 _ACEOF
7097 if ac_fn_c_try_compile "$LINENO"; then :
7098
7099 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7101 $as_echo "yes" >&6; }
7102
7103 else
7104
7105 PREFERRED_STACK_BOUNDARY=""
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108
7109 fi
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 CFLAGS=$safe_CFLAGS
7112
7113
7114
7115
7116 # does this compiler support -Wno-pointer-sign ?
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7118 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7119
7120 safe_CFLAGS=$CFLAGS
7121 CFLAGS="-Wno-pointer-sign"
7122
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h.  */
7125
7126 int
7127 main ()
7128 {
7129
7130   return 0;
7131
7132   ;
7133   return 0;
7134 }
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137
7138 no_pointer_sign=yes
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7140 $as_echo "yes" >&6; }
7141
7142 else
7143
7144 no_pointer_sign=no
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7147
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 CFLAGS=$safe_CFLAGS
7151
7152 if test x$no_pointer_sign = xyes; then
7153   CFLAGS="$CFLAGS -Wno-pointer-sign"
7154 fi
7155
7156
7157 # does this compiler support -Wno-empty-body ?
7158
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7160 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7161
7162 safe_CFLAGS=$CFLAGS
7163 CFLAGS="-Wno-empty-body"
7164
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h.  */
7167
7168 int
7169 main ()
7170 {
7171
7172   return 0;
7173
7174   ;
7175   return 0;
7176 }
7177 _ACEOF
7178 if ac_fn_c_try_compile "$LINENO"; then :
7179
7180 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7181
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7183 $as_echo "yes" >&6; }
7184
7185 else
7186
7187
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190
7191 fi
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193 CFLAGS=$safe_CFLAGS
7194
7195
7196 # does this compiler support -Wno-format-zero-length ?
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7199 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7200
7201 safe_CFLAGS=$CFLAGS
7202 CFLAGS="-Wno-format-zero-length"
7203
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h.  */
7206
7207 int
7208 main ()
7209 {
7210
7211   return 0;
7212
7213   ;
7214   return 0;
7215 }
7216 _ACEOF
7217 if ac_fn_c_try_compile "$LINENO"; then :
7218
7219 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7222 $as_echo "yes" >&6; }
7223
7224 else
7225
7226
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 CFLAGS=$safe_CFLAGS
7233
7234
7235 # does this compiler support -Wno-uninitialized ?
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7238 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7239
7240 safe_CFLAGS=$CFLAGS
7241 CFLAGS="-Wno-uninitialized"
7242
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h.  */
7245
7246 int
7247 main ()
7248 {
7249
7250   return 0;
7251
7252   ;
7253   return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_compile "$LINENO"; then :
7257
7258 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7259
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7261 $as_echo "yes" >&6; }
7262
7263 else
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 CFLAGS=$safe_CFLAGS
7272
7273
7274 # does this compiler support -Wextra or the older -W ?
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7277 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7278
7279 safe_CFLAGS=$CFLAGS
7280 CFLAGS="-Wextra"
7281
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h.  */
7284
7285 int
7286 main ()
7287 {
7288
7289   return 0;
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_c_try_compile "$LINENO"; then :
7296
7297 FLAG_W_EXTRA=-Wextra
7298
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7300 $as_echo "-Wextra" >&6; }
7301
7302 else
7303
7304   CFLAGS="-W"
7305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h.  */
7307
7308 int
7309 main ()
7310 {
7311
7312     return 0;
7313
7314   ;
7315   return 0;
7316 }
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319
7320   FLAG_W_EXTRA=-W
7321
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7323 $as_echo "-W" >&6; }
7324
7325 else
7326
7327
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7329 $as_echo "not supported" >&6; }
7330
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 CFLAGS=$safe_CFLAGS
7337
7338
7339 # does this compiler support -fno-stack-protector ?
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7341 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7342
7343 safe_CFLAGS=$CFLAGS
7344 CFLAGS="-fno-stack-protector"
7345
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h.  */
7348
7349 int
7350 main ()
7351 {
7352
7353   return 0;
7354
7355   ;
7356   return 0;
7357 }
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360
7361 no_stack_protector=yes
7362 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7364 $as_echo "yes" >&6; }
7365
7366 else
7367
7368 no_stack_protector=no
7369 FLAG_FNO_STACK_PROTECTOR=""
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 CFLAGS=$safe_CFLAGS
7376
7377
7378
7379 if test x$no_stack_protector = xyes; then
7380   CFLAGS="$CFLAGS -fno-stack-protector"
7381 fi
7382
7383
7384 # does this compiler support --param inline-unit-growth=... ?
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7387 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7388
7389 safe_CFLAGS=$CFLAGS
7390 CFLAGS="--param inline-unit-growth=900"
7391
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h.  */
7394
7395 int
7396 main ()
7397 {
7398
7399   return 0;
7400
7401   ;
7402   return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406
7407 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7410 $as_echo "yes" >&6; }
7411
7412 else
7413
7414 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 CFLAGS=$safe_CFLAGS
7422
7423
7424 # does the linker support -Wl,--build-id=none ?  Note, it's
7425 # important that we test indirectly via whichever C compiler
7426 # is selected, rather than testing /usr/bin/ld or whatever
7427 # directly.
7428
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7430 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7431
7432 safe_CFLAGS=$CFLAGS
7433 CFLAGS="-Wl,--build-id=none"
7434
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h.  */
7437
7438 int
7439 main ()
7440 {
7441 return 0;
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_link "$LINENO"; then :
7447
7448   FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7449
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451 $as_echo "yes" >&6; }
7452
7453 else
7454
7455   FLAG_NO_BUILD_ID=""
7456
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext \
7462     conftest$ac_exeext conftest.$ac_ext
7463 CFLAGS=$safe_CFLAGS
7464
7465
7466 # does the ppc assembler support "mtocrf" et al?
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7468 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7469
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h.  */
7472
7473 int
7474 main ()
7475 {
7476
7477 __asm__ __volatile__("mtocrf 4,0");
7478 __asm__ __volatile__("mfocrf 0,4");
7479
7480   ;
7481   return 0;
7482 }
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"; then :
7485
7486 ac_have_as_ppc_mftocrf=yes
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7488 $as_echo "yes" >&6; }
7489
7490 else
7491
7492 ac_have_as_ppc_mftocrf=no
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7495
7496 fi
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7499
7500 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7501
7502 fi
7503
7504
7505 # does the x86/amd64 assembler understand SSE3 instructions?
7506 # Note, this doesn't generate a C-level symbol.  It generates a
7507 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7509 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7510
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513
7514 int
7515 main ()
7516 {
7517
7518   do { long long int x;
7519      __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7520   while (0)
7521
7522   ;
7523   return 0;
7524 }
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527
7528 ac_have_as_sse3=yes
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7530 $as_echo "yes" >&6; }
7531
7532 else
7533
7534 ac_have_as_sse3=no
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537
7538 fi
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540
7541  if test x$ac_have_as_sse3 = xyes; then
7542   BUILD_SSE3_TESTS_TRUE=
7543   BUILD_SSE3_TESTS_FALSE='#'
7544 else
7545   BUILD_SSE3_TESTS_TRUE='#'
7546   BUILD_SSE3_TESTS_FALSE=
7547 fi
7548
7549
7550
7551 # Ditto for SSSE3 instructions (note extra S)
7552 # Note, this doesn't generate a C-level symbol.  It generates a
7553 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7555 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7556
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h.  */
7559
7560 int
7561 main ()
7562 {
7563
7564   do { long long int x;
7565    __asm__ __volatile__(
7566       "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7567   while (0)
7568
7569   ;
7570   return 0;
7571 }
7572 _ACEOF
7573 if ac_fn_c_try_compile "$LINENO"; then :
7574
7575 ac_have_as_ssse3=yes
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 $as_echo "yes" >&6; }
7578
7579 else
7580
7581 ac_have_as_ssse3=no
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587
7588  if test x$ac_have_as_ssse3 = xyes; then
7589   BUILD_SSSE3_TESTS_TRUE=
7590   BUILD_SSSE3_TESTS_FALSE='#'
7591 else
7592   BUILD_SSSE3_TESTS_TRUE='#'
7593   BUILD_SSSE3_TESTS_FALSE=
7594 fi
7595
7596
7597
7598 # Check for TLS support in the compiler and linker
7599 if test "x${cross_compiling}" = "xno"; then
7600 # Native compilation: check whether running a program using TLS succeeds.
7601 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
7602 # succeeds but running programs using TLS fails.
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7604 $as_echo_n "checking for TLS support... " >&6; }
7605 if test "${vg_cv_tls+set}" = set; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   # Check whether --enable-tls was given.
7609 if test "${enable_tls+set}" = set; then :
7610   enableval=$enable_tls; vg_cv_tls=$enableval
7611 else
7612   if test "$cross_compiling" = yes; then :
7613   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7615 as_fn_error "cannot run test program while cross compiling
7616 See \`config.log' for more details." "$LINENO" 5; }
7617 else
7618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h.  */
7620 static __thread int foo;
7621 int
7622 main ()
7623 {
7624 return foo;
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_run "$LINENO"; then :
7630   vg_cv_tls=yes
7631 else
7632   vg_cv_tls=no
7633 fi
7634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7635   conftest.$ac_objext conftest.beam conftest.$ac_ext
7636 fi
7637
7638 fi
7639
7640 fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7642 $as_echo "$vg_cv_tls" >&6; }
7643 else
7644 # Cross-compiling: check whether linking a program using TLS succeeds.
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7646 $as_echo_n "checking for TLS support... " >&6; }
7647 if test "${vg_cv_tls+set}" = set; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   # Check whether --enable-tls was given.
7651 if test "${enable_tls+set}" = set; then :
7652   enableval=$enable_tls; vg_cv_tls=$enableval
7653 else
7654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h.  */
7656 static __thread int foo;
7657 int
7658 main ()
7659 {
7660 return foo;
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_link "$LINENO"; then :
7666   vg_cv_tls=yes
7667 else
7668   vg_cv_tls=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext \
7671     conftest$ac_exeext conftest.$ac_ext
7672 fi
7673
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7676 $as_echo "$vg_cv_tls" >&6; }
7677 fi
7678
7679 if test "$vg_cv_tls" = yes; then
7680
7681 $as_echo "#define HAVE_TLS 1" >>confdefs.h
7682
7683 fi
7684
7685
7686 #----------------------------------------------------------------------------
7687 # Checks for C header files.
7688 #----------------------------------------------------------------------------
7689
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7691 $as_echo_n "checking for ANSI C header files... " >&6; }
7692 if test "${ac_cv_header_stdc+set}" = set; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h.  */
7697 #include <stdlib.h>
7698 #include <stdarg.h>
7699 #include <string.h>
7700 #include <float.h>
7701
7702 int
7703 main ()
7704 {
7705
7706   ;
7707   return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_compile "$LINENO"; then :
7711   ac_cv_header_stdc=yes
7712 else
7713   ac_cv_header_stdc=no
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716
7717 if test $ac_cv_header_stdc = yes; then
7718   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h.  */
7721 #include <string.h>
7722
7723 _ACEOF
7724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7725   $EGREP "memchr" >/dev/null 2>&1; then :
7726
7727 else
7728   ac_cv_header_stdc=no
7729 fi
7730 rm -f conftest*
7731
7732 fi
7733
7734 if test $ac_cv_header_stdc = yes; then
7735   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h.  */
7738 #include <stdlib.h>
7739
7740 _ACEOF
7741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742   $EGREP "free" >/dev/null 2>&1; then :
7743
7744 else
7745   ac_cv_header_stdc=no
7746 fi
7747 rm -f conftest*
7748
7749 fi
7750
7751 if test $ac_cv_header_stdc = yes; then
7752   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7753   if test "$cross_compiling" = yes; then :
7754   :
7755 else
7756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h.  */
7758 #include <ctype.h>
7759 #include <stdlib.h>
7760 #if ((' ' & 0x0FF) == 0x020)
7761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7763 #else
7764 # define ISLOWER(c) \
7765                    (('a' <= (c) && (c) <= 'i') \
7766                      || ('j' <= (c) && (c) <= 'r') \
7767                      || ('s' <= (c) && (c) <= 'z'))
7768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7769 #endif
7770
7771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7772 int
7773 main ()
7774 {
7775   int i;
7776   for (i = 0; i < 256; i++)
7777     if (XOR (islower (i), ISLOWER (i))
7778         || toupper (i) != TOUPPER (i))
7779       return 2;
7780   return 0;
7781 }
7782 _ACEOF
7783 if ac_fn_c_try_run "$LINENO"; then :
7784
7785 else
7786   ac_cv_header_stdc=no
7787 fi
7788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7789   conftest.$ac_objext conftest.beam conftest.$ac_ext
7790 fi
7791
7792 fi
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7795 $as_echo "$ac_cv_header_stdc" >&6; }
7796 if test $ac_cv_header_stdc = yes; then
7797
7798 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7799
7800 fi
7801
7802 for ac_header in        \
7803         asm/unistd.h     \
7804         endian.h         \
7805         mqueue.h         \
7806         sys/endian.h     \
7807         sys/epoll.h      \
7808         sys/eventfd.h    \
7809         sys/klog.h       \
7810         sys/poll.h       \
7811         sys/signal.h     \
7812         sys/signalfd.h   \
7813         sys/syscall.h    \
7814         sys/time.h       \
7815         sys/types.h      \
7816
7817 do :
7818   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7819 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7820 eval as_val=\$$as_ac_Header
7821    if test "x$as_val" = x""yes; then :
7822   cat >>confdefs.h <<_ACEOF
7823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7824 _ACEOF
7825
7826 fi
7827
7828 done
7829
7830
7831 #----------------------------------------------------------------------------
7832 # Checks for typedefs, structures, and compiler characteristics.
7833 #----------------------------------------------------------------------------
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7835 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7836 if test "${ac_cv_type_uid_t+set}" = set; then :
7837   $as_echo_n "(cached) " >&6
7838 else
7839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h.  */
7841 #include <sys/types.h>
7842
7843 _ACEOF
7844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7845   $EGREP "uid_t" >/dev/null 2>&1; then :
7846   ac_cv_type_uid_t=yes
7847 else
7848   ac_cv_type_uid_t=no
7849 fi
7850 rm -f conftest*
7851
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7854 $as_echo "$ac_cv_type_uid_t" >&6; }
7855 if test $ac_cv_type_uid_t = no; then
7856
7857 $as_echo "#define uid_t int" >>confdefs.h
7858
7859
7860 $as_echo "#define gid_t int" >>confdefs.h
7861
7862 fi
7863
7864 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7865 if test "x$ac_cv_type_off_t" = x""yes; then :
7866
7867 else
7868
7869 cat >>confdefs.h <<_ACEOF
7870 #define off_t long int
7871 _ACEOF
7872
7873 fi
7874
7875 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7876 if test "x$ac_cv_type_size_t" = x""yes; then :
7877
7878 else
7879
7880 cat >>confdefs.h <<_ACEOF
7881 #define size_t unsigned int
7882 _ACEOF
7883
7884 fi
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7888 if test "${ac_cv_header_time+set}" = set; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h.  */
7893 #include <sys/types.h>
7894 #include <sys/time.h>
7895 #include <time.h>
7896
7897 int
7898 main ()
7899 {
7900 if ((struct tm *) 0)
7901 return 0;
7902   ;
7903   return 0;
7904 }
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907   ac_cv_header_time=yes
7908 else
7909   ac_cv_header_time=no
7910 fi
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7914 $as_echo "$ac_cv_header_time" >&6; }
7915 if test $ac_cv_header_time = yes; then
7916
7917 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7918
7919 fi
7920
7921
7922
7923 #----------------------------------------------------------------------------
7924 # Checks for library functions.
7925 #----------------------------------------------------------------------------
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7927 $as_echo_n "checking for working memcmp... " >&6; }
7928 if test "${ac_cv_func_memcmp_working+set}" = set; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   if test "$cross_compiling" = yes; then :
7932   ac_cv_func_memcmp_working=no
7933 else
7934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h.  */
7936 $ac_includes_default
7937 int
7938 main ()
7939 {
7940
7941   /* Some versions of memcmp are not 8-bit clean.  */
7942   char c0 = '\100', c1 = '\200', c2 = '\201';
7943   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7944     return 1;
7945
7946   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7947      or more and with at least one buffer not starting on a 4-byte boundary.
7948      William Lewis provided this test program.   */
7949   {
7950     char foo[21];
7951     char bar[21];
7952     int i;
7953     for (i = 0; i < 4; i++)
7954       {
7955         char *a = foo + i;
7956         char *b = bar + i;
7957         strcpy (a, "--------01111111");
7958         strcpy (b, "--------10000000");
7959         if (memcmp (a, b, 16) >= 0)
7960           return 1;
7961       }
7962     return 0;
7963   }
7964
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 if ac_fn_c_try_run "$LINENO"; then :
7970   ac_cv_func_memcmp_working=yes
7971 else
7972   ac_cv_func_memcmp_working=no
7973 fi
7974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7975   conftest.$ac_objext conftest.beam conftest.$ac_ext
7976 fi
7977
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7980 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7981 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7982   *" memcmp.$ac_objext "* ) ;;
7983   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7984  ;;
7985 esac
7986
7987
7988
7989
7990
7991   for ac_header in $ac_header_list
7992 do :
7993   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7994 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7995 "
7996 eval as_val=\$$as_ac_Header
7997    if test "x$as_val" = x""yes; then :
7998   cat >>confdefs.h <<_ACEOF
7999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 _ACEOF
8001
8002 fi
8003
8004 done
8005
8006
8007
8008
8009
8010
8011
8012
8013 for ac_func in getpagesize
8014 do :
8015   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8016 if test "x$ac_cv_func_getpagesize" = x""yes; then :
8017   cat >>confdefs.h <<_ACEOF
8018 #define HAVE_GETPAGESIZE 1
8019 _ACEOF
8020
8021 fi
8022 done
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8025 $as_echo_n "checking for working mmap... " >&6; }
8026 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   if test "$cross_compiling" = yes; then :
8030   ac_cv_func_mmap_fixed_mapped=no
8031 else
8032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h.  */
8034 $ac_includes_default
8035 /* malloc might have been renamed as rpl_malloc. */
8036 #undef malloc
8037
8038 /* Thanks to Mike Haertel and Jim Avera for this test.
8039    Here is a matrix of mmap possibilities:
8040         mmap private not fixed
8041         mmap private fixed at somewhere currently unmapped
8042         mmap private fixed at somewhere already mapped
8043         mmap shared not fixed
8044         mmap shared fixed at somewhere currently unmapped
8045         mmap shared fixed at somewhere already mapped
8046    For private mappings, we should verify that changes cannot be read()
8047    back from the file, nor mmap's back from the file at a different
8048    address.  (There have been systems where private was not correctly
8049    implemented like the infamous i386 svr4.0, and systems where the
8050    VM page cache was not coherent with the file system buffer cache
8051    like early versions of FreeBSD and possibly contemporary NetBSD.)
8052    For shared mappings, we should conversely verify that changes get
8053    propagated back to all the places they're supposed to be.
8054
8055    Grep wants private fixed already mapped.
8056    The main things grep needs to know about mmap are:
8057    * does it exist and is it safe to write into the mmap'd area
8058    * how to use it (BSD variants)  */
8059
8060 #include <fcntl.h>
8061 #include <sys/mman.h>
8062
8063 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8064 char *malloc ();
8065 #endif
8066
8067 /* This mess was copied from the GNU getpagesize.h.  */
8068 #ifndef HAVE_GETPAGESIZE
8069 # ifdef _SC_PAGESIZE
8070 #  define getpagesize() sysconf(_SC_PAGESIZE)
8071 # else /* no _SC_PAGESIZE */
8072 #  ifdef HAVE_SYS_PARAM_H
8073 #   include <sys/param.h>
8074 #   ifdef EXEC_PAGESIZE
8075 #    define getpagesize() EXEC_PAGESIZE
8076 #   else /* no EXEC_PAGESIZE */
8077 #    ifdef NBPG
8078 #     define getpagesize() NBPG * CLSIZE
8079 #     ifndef CLSIZE
8080 #      define CLSIZE 1
8081 #     endif /* no CLSIZE */
8082 #    else /* no NBPG */
8083 #     ifdef NBPC
8084 #      define getpagesize() NBPC
8085 #     else /* no NBPC */
8086 #      ifdef PAGESIZE
8087 #       define getpagesize() PAGESIZE
8088 #      endif /* PAGESIZE */
8089 #     endif /* no NBPC */
8090 #    endif /* no NBPG */
8091 #   endif /* no EXEC_PAGESIZE */
8092 #  else /* no HAVE_SYS_PARAM_H */
8093 #   define getpagesize() 8192   /* punt totally */
8094 #  endif /* no HAVE_SYS_PARAM_H */
8095 # endif /* no _SC_PAGESIZE */
8096
8097 #endif /* no HAVE_GETPAGESIZE */
8098
8099 int
8100 main ()
8101 {
8102   char *data, *data2, *data3;
8103   const char *cdata2;
8104   int i, pagesize;
8105   int fd, fd2;
8106
8107   pagesize = getpagesize ();
8108
8109   /* First, make a file with some known garbage in it. */
8110   data = (char *) malloc (pagesize);
8111   if (!data)
8112     return 1;
8113   for (i = 0; i < pagesize; ++i)
8114     *(data + i) = rand ();
8115   umask (0);
8116   fd = creat ("conftest.mmap", 0600);
8117   if (fd < 0)
8118     return 2;
8119   if (write (fd, data, pagesize) != pagesize)
8120     return 3;
8121   close (fd);
8122
8123   /* Next, check that the tail of a page is zero-filled.  File must have
8124      non-zero length, otherwise we risk SIGBUS for entire page.  */
8125   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8126   if (fd2 < 0)
8127     return 4;
8128   cdata2 = "";
8129   if (write (fd2, cdata2, 1) != 1)
8130     return 5;
8131   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8132   if (data2 == MAP_FAILED)
8133     return 6;
8134   for (i = 0; i < pagesize; ++i)
8135     if (*(data2 + i))
8136       return 7;
8137   close (fd2);
8138   if (munmap (data2, pagesize))
8139     return 8;
8140
8141   /* Next, try to mmap the file at a fixed address which already has
8142      something else allocated at it.  If we can, also make sure that
8143      we see the same garbage.  */
8144   fd = open ("conftest.mmap", O_RDWR);
8145   if (fd < 0)
8146     return 9;
8147   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8148                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8149     return 10;
8150   for (i = 0; i < pagesize; ++i)
8151     if (*(data + i) != *(data2 + i))
8152       return 11;
8153
8154   /* Finally, make sure that changes to the mapped area do not
8155      percolate back to the file as seen by read().  (This is a bug on
8156      some variants of i386 svr4.0.)  */
8157   for (i = 0; i < pagesize; ++i)
8158     *(data2 + i) = *(data2 + i) + 1;
8159   data3 = (char *) malloc (pagesize);
8160   if (!data3)
8161     return 12;
8162   if (read (fd, data3, pagesize) != pagesize)
8163     return 13;
8164   for (i = 0; i < pagesize; ++i)
8165     if (*(data + i) != *(data3 + i))
8166       return 14;
8167   close (fd);
8168   return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_run "$LINENO"; then :
8172   ac_cv_func_mmap_fixed_mapped=yes
8173 else
8174   ac_cv_func_mmap_fixed_mapped=no
8175 fi
8176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8177   conftest.$ac_objext conftest.beam conftest.$ac_ext
8178 fi
8179
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8182 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8183 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8184
8185 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8186
8187 fi
8188 rm -f conftest.mmap conftest.txt
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8191 $as_echo_n "checking return type of signal handlers... " >&6; }
8192 if test "${ac_cv_type_signal+set}" = set; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h.  */
8197 #include <sys/types.h>
8198 #include <signal.h>
8199
8200 int
8201 main ()
8202 {
8203 return *(signal (0, 0)) (0) == 1;
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209   ac_cv_type_signal=int
8210 else
8211   ac_cv_type_signal=void
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8216 $as_echo "$ac_cv_type_signal" >&6; }
8217
8218 cat >>confdefs.h <<_ACEOF
8219 #define RETSIGTYPE $ac_cv_type_signal
8220 _ACEOF
8221
8222
8223
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8225 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8226 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
8227   $as_echo_n "(cached) " >&6
8228 else
8229   ac_check_lib_save_LIBS=$LIBS
8230 LIBS="-lrt  $LIBS"
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h.  */
8233
8234 /* Override any GCC internal prototype to avoid an error.
8235    Use char because int might match the return type of a GCC
8236    builtin and then its argument prototype would still apply.  */
8237 #ifdef __cplusplus
8238 extern "C"
8239 #endif
8240 char clock_gettime ();
8241 int
8242 main ()
8243 {
8244 return clock_gettime ();
8245   ;
8246   return 0;
8247 }
8248 _ACEOF
8249 if ac_fn_c_try_link "$LINENO"; then :
8250   ac_cv_lib_rt_clock_gettime=yes
8251 else
8252   ac_cv_lib_rt_clock_gettime=no
8253 fi
8254 rm -f core conftest.err conftest.$ac_objext \
8255     conftest$ac_exeext conftest.$ac_ext
8256 LIBS=$ac_check_lib_save_LIBS
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8259 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8260 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
8261   cat >>confdefs.h <<_ACEOF
8262 #define HAVE_LIBRT 1
8263 _ACEOF
8264
8265   LIBS="-lrt $LIBS"
8266
8267 fi
8268
8269
8270 for ac_func in      \
8271         clock_gettime\
8272         epoll_create \
8273         epoll_pwait  \
8274         floor        \
8275         klogctl      \
8276         mallinfo     \
8277         memchr       \
8278         memset       \
8279         mkdir        \
8280         mremap       \
8281         ppoll        \
8282         pthread_barrier_init       \
8283         pthread_condattr_setclock  \
8284         pthread_mutex_timedlock    \
8285         pthread_rwlock_timedrdlock \
8286         pthread_rwlock_timedwrlock \
8287         pthread_spin_lock          \
8288         readlinkat   \
8289         semtimedop   \
8290         signalfd     \
8291         sigwaitinfo  \
8292         syscall      \
8293         strchr       \
8294         strdup       \
8295         strpbrk      \
8296         strrchr      \
8297         strstr       \
8298         timerfd      \
8299         utimensat    \
8300
8301 do :
8302   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8304 eval as_val=\$$as_ac_var
8305    if test "x$as_val" = x""yes; then :
8306   cat >>confdefs.h <<_ACEOF
8307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8308 _ACEOF
8309
8310 fi
8311 done
8312
8313
8314 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8315 # libraries with any shared object and/or executable. This is NOT what we
8316 # want for e.g. vgpreload_core-x86-linux.so
8317 LIBS=""
8318
8319  if test x$ac_cv_func_pthread_barrier_init = xyes; then
8320   HAVE_PTHREAD_BARRIER_TRUE=
8321   HAVE_PTHREAD_BARRIER_FALSE='#'
8322 else
8323   HAVE_PTHREAD_BARRIER_TRUE='#'
8324   HAVE_PTHREAD_BARRIER_FALSE=
8325 fi
8326
8327  if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8328   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8329   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8330 else
8331   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8332   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8333 fi
8334
8335  if test x$ac_cv_func_pthread_spin_lock = xyes; then
8336   HAVE_PTHREAD_SPINLOCK_TRUE=
8337   HAVE_PTHREAD_SPINLOCK_FALSE='#'
8338 else
8339   HAVE_PTHREAD_SPINLOCK_TRUE='#'
8340   HAVE_PTHREAD_SPINLOCK_FALSE=
8341 fi
8342
8343
8344
8345 #----------------------------------------------------------------------------
8346 # MPI checks
8347 #----------------------------------------------------------------------------
8348 # Do we have a useable MPI setup on the primary and/or secondary targets?
8349 # On Linux, by default, assumes mpicc and -m32/-m64
8350 # On AIX, by default, assumes mpxlc and -q32/-q64
8351 # Note: this is a kludge in that it assumes the specified mpicc
8352 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8353 # --with-mpicc=.
8354 MPI_CC="mpicc"
8355 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8356      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8357   MPI_CC="mpxlc"
8358 fi
8359
8360 mflag_primary=
8361 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8362      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8363   mflag_primary=$FLAG_M32
8364 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8365        -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX ; then
8366   mflag_primary=$FLAG_M64
8367 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8368   mflag_primary=-q32
8369 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8370   mflag_primary=-q64
8371 fi
8372
8373 mflag_secondary=
8374 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8375      -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8376   mflag_secondary=$FLAG_M32
8377 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8378   mflag_secondary=-q32
8379 fi
8380
8381
8382
8383 # Check whether --with-mpicc was given.
8384 if test "${with_mpicc+set}" = set; then :
8385   withval=$with_mpicc; MPI_CC=$withval
8386
8387 fi
8388
8389
8390
8391 ## See if MPI_CC works for the primary target
8392 ##
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8394 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8395 saved_CC=$CC
8396 saved_CFLAGS=$CFLAGS
8397 CC=$MPI_CC
8398 CFLAGS=$mflag_primary
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h.  */
8401
8402 #include <mpi.h>
8403 #include <stdio.h>
8404
8405 int
8406 main ()
8407 {
8408
8409   int r = MPI_Init(NULL,NULL);
8410   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8411   return r;
8412
8413   ;
8414   return 0;
8415 }
8416 _ACEOF
8417 if ac_fn_c_try_link "$LINENO"; then :
8418
8419 ac_have_mpi2_pri=yes
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8421 $as_echo "yes, $MPI_CC" >&6; }
8422
8423 else
8424
8425 ac_have_mpi2_pri=no
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext \
8431     conftest$ac_exeext conftest.$ac_ext
8432 CC=$saved_CC
8433 CFLAGS=$saved_CFLAGS
8434  if test x$ac_have_mpi2_pri = xyes; then
8435   BUILD_MPIWRAP_PRI_TRUE=
8436   BUILD_MPIWRAP_PRI_FALSE='#'
8437 else
8438   BUILD_MPIWRAP_PRI_TRUE='#'
8439   BUILD_MPIWRAP_PRI_FALSE=
8440 fi
8441
8442
8443 ## See if MPI_CC works for the secondary target.  Complication: what if
8444 ## there is no secondary target?  We need this to then fail.
8445 ## Kludge this by making MPI_CC something which will surely fail in
8446 ## such a case.
8447 ##
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8449 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8450 saved_CC=$CC
8451 saved_CFLAGS=$CFLAGS
8452 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8453   CC="$MPI_CC this will surely fail"
8454 else
8455   CC=$MPI_CC
8456 fi
8457 CFLAGS=$mflag_secondary
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h.  */
8460
8461 #include <mpi.h>
8462 #include <stdio.h>
8463
8464 int
8465 main ()
8466 {
8467
8468   int r = MPI_Init(NULL,NULL);
8469   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8470   return r;
8471
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 if ac_fn_c_try_link "$LINENO"; then :
8477
8478 ac_have_mpi2_sec=yes
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8480 $as_echo "yes, $MPI_CC" >&6; }
8481
8482 else
8483
8484 ac_have_mpi2_sec=no
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext \
8490     conftest$ac_exeext conftest.$ac_ext
8491 CC=$saved_CC
8492 CFLAGS=$saved_CFLAGS
8493  if test x$ac_have_mpi2_sec = xyes; then
8494   BUILD_MPIWRAP_SEC_TRUE=
8495   BUILD_MPIWRAP_SEC_FALSE='#'
8496 else
8497   BUILD_MPIWRAP_SEC_TRUE='#'
8498   BUILD_MPIWRAP_SEC_FALSE=
8499 fi
8500
8501
8502
8503 #----------------------------------------------------------------------------
8504 # Other library checks
8505 #----------------------------------------------------------------------------
8506 # There now follow some tests for QtCore, Boost, and OpenMP.  These
8507 # tests are present because Drd has some regression tests that use
8508 # these packages.  All regression test programs all compiled only
8509 # for the primary target.  And so it is important that the configure
8510 # checks that follow, use the correct -m32 or -m64 flag for the
8511 # primary target (called $mflag_primary).  Otherwise, we can end up
8512 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8513 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8514 # only build (meaning, the primary target is x86-linux), the build
8515 # of the regtest programs that use Boost fails, because they are
8516 # build as 32-bit (IN THIS EXAMPLE).
8517 #
8518 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8519 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8520
8521
8522 # The test below verifies whether the QtCore package been installed.
8523 # This test works as follows:
8524 # - If pkg-config was not installed at the time autogen.sh was run,
8525 #   the definition of the PKG_CHECK_EXISTS() macro will not be found by
8526 #   autogen.sh. Augogen.sh will generate a configure script that prints
8527 #   a warning about pkg-config and proceeds as if Qt4 has not been installed.
8528 # - If pkg-config was installed at the time autogen.sh was run,
8529 #   the generated configure script will try to detect the presence of the
8530 #   Qt4 QtCore library by looking up compile and linker flags in the file
8531 #   called QtCore.pc.
8532 # - pkg-config settings can be overridden via the configure variables
8533 #   QTCORE_CFLAGS and QTCORE_LIBS (added by the pkg-config m4 macro's to the
8534 #   configure script -- see also ./configure --help).
8535 # - The QTCORE_CFLAGS and QTCORE_LIBS configure variables can be used even if
8536 #   the pkg-config executable is not present on the system on which the
8537 #   configure script is run.
8538
8539
8540
8541
8542
8543
8544
8545 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8546         if test -n "$ac_tool_prefix"; then
8547   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8548 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554   case $PKG_CONFIG in
8555   [\\/]* | ?:[\\/]*)
8556   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8557   ;;
8558   *)
8559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8561 do
8562   IFS=$as_save_IFS
8563   test -z "$as_dir" && as_dir=.
8564     for ac_exec_ext in '' $ac_executable_extensions; do
8565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568     break 2
8569   fi
8570 done
8571   done
8572 IFS=$as_save_IFS
8573
8574   ;;
8575 esac
8576 fi
8577 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8578 if test -n "$PKG_CONFIG"; then
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8580 $as_echo "$PKG_CONFIG" >&6; }
8581 else
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 fi
8585
8586
8587 fi
8588 if test -z "$ac_cv_path_PKG_CONFIG"; then
8589   ac_pt_PKG_CONFIG=$PKG_CONFIG
8590   # Extract the first word of "pkg-config", so it can be a program name with args.
8591 set dummy pkg-config; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8595   $as_echo_n "(cached) " >&6
8596 else
8597   case $ac_pt_PKG_CONFIG in
8598   [\\/]* | ?:[\\/]*)
8599   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8600   ;;
8601   *)
8602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605   IFS=$as_save_IFS
8606   test -z "$as_dir" && as_dir=.
8607     for ac_exec_ext in '' $ac_executable_extensions; do
8608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611     break 2
8612   fi
8613 done
8614   done
8615 IFS=$as_save_IFS
8616
8617   ;;
8618 esac
8619 fi
8620 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8621 if test -n "$ac_pt_PKG_CONFIG"; then
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8623 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8624 else
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628
8629   if test "x$ac_pt_PKG_CONFIG" = x; then
8630     PKG_CONFIG=""
8631   else
8632     case $cross_compiling:$ac_tool_warned in
8633 yes:)
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8636 ac_tool_warned=yes ;;
8637 esac
8638     PKG_CONFIG=$ac_pt_PKG_CONFIG
8639   fi
8640 else
8641   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8642 fi
8643
8644 fi
8645 if test -n "$PKG_CONFIG"; then
8646         _pkg_min_version=0.9.0
8647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8648 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8649         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8650                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8651 $as_echo "yes" >&6; }
8652         else
8653                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655                 PKG_CONFIG=""
8656         fi
8657 fi
8658
8659 if test -n "$PKG_CONFIG" && \
8660     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8661   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8662   ac_status=$?
8663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8664   test $ac_status = 0; }; then
8665
8666
8667 pkg_failed=no
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
8669 $as_echo_n "checking for QTCORE... " >&6; }
8670
8671 if test -n "$QTCORE_CFLAGS"; then
8672     pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
8673  elif test -n "$PKG_CONFIG"; then
8674     if test -n "$PKG_CONFIG" && \
8675     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8676   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8677   ac_status=$?
8678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8679   test $ac_status = 0; }; then
8680   pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null`
8681 else
8682   pkg_failed=yes
8683 fi
8684  else
8685     pkg_failed=untried
8686 fi
8687 if test -n "$QTCORE_LIBS"; then
8688     pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
8689  elif test -n "$PKG_CONFIG"; then
8690     if test -n "$PKG_CONFIG" && \
8691     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8692   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8693   ac_status=$?
8694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8695   test $ac_status = 0; }; then
8696   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null`
8697 else
8698   pkg_failed=yes
8699 fi
8700  else
8701     pkg_failed=untried
8702 fi
8703
8704
8705
8706 if test $pkg_failed = yes; then
8707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709
8710 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8711         _pkg_short_errors_supported=yes
8712 else
8713         _pkg_short_errors_supported=no
8714 fi
8715         if test $_pkg_short_errors_supported = yes; then
8716                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore" 2>&1`
8717         else
8718                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore" 2>&1`
8719         fi
8720         # Put the nasty error message in config.log where it belongs
8721         echo "$QTCORE_PKG_ERRORS" >&5
8722
8723         as_fn_error "Package requirements (QtCore) were not met:
8724
8725 $QTCORE_PKG_ERRORS
8726
8727 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8728 installed software in a non-standard prefix.
8729
8730 Alternatively, you may set the environment variables QTCORE_CFLAGS
8731 and QTCORE_LIBS to avoid the need to call pkg-config.
8732 See the pkg-config man page for more details." "$LINENO" 5
8733 elif test $pkg_failed = untried; then
8734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8736         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8738 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
8739 is in your PATH or set the PKG_CONFIG environment variable to the full
8740 path to pkg-config.
8741
8742 Alternatively, you may set the environment variables QTCORE_CFLAGS
8743 and QTCORE_LIBS to avoid the need to call pkg-config.
8744 See the pkg-config man page for more details.
8745
8746 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8747 See \`config.log' for more details." "$LINENO" 5; }
8748 else
8749         QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
8750         QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
8751         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8752 $as_echo "yes" >&6; }
8753
8754 fi
8755       # Paranoia: don't trust the result reported by pkg-config, but when
8756       # pkg-config reports that QtCore has been found, verify whether linking
8757       # programs with QtCore succeeds.
8758       ac_ext=cpp
8759 ac_cpp='$CXXCPP $CPPFLAGS'
8760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8763
8764       safe_CXXFLAGS="${CXXFLAGS}"
8765       CXXFLAGS="${QTCORE_CFLAGS} ${QTCORE_LIBS} $mflag_primary"
8766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h.  */
8768 #include <QMutex>
8769 int
8770 main ()
8771 {
8772 QMutex Mutex;
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_cxx_try_link "$LINENO"; then :
8778   ac_have_qtcore=yes
8779 else
8780
8781           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&5
8782 $as_echo "$as_me: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&2;}
8783           ac_have_qtcore=no
8784
8785
8786 fi
8787 rm -f core conftest.err conftest.$ac_objext \
8788     conftest$ac_exeext conftest.$ac_ext
8789       CXXFLAGS="${safe_CXXFLAGS}"
8790
8791 else
8792
8793       ac_have_qtcore=no
8794
8795
8796 fi
8797
8798
8799  if test x$ac_have_qtcore = xyes; then
8800   HAVE_QTCORE_TRUE=
8801   HAVE_QTCORE_FALSE='#'
8802 else
8803   HAVE_QTCORE_TRUE='#'
8804   HAVE_QTCORE_FALSE=
8805 fi
8806
8807
8808
8809 # Test for QMutex::tryLock(int), which has been introduced in Qt 4.3.
8810 # See also http://doc.trolltech.com/4.3/qmutex.html.
8811 if test x$ac_have_qtcore = xyes; then
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QMutex::tryLock(int)" >&5
8813 $as_echo_n "checking for Qt4 QMutex::tryLock(int)... " >&6; }
8814   ac_ext=cpp
8815 ac_cpp='$CXXCPP $CPPFLAGS'
8816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8819
8820   safe_CXXFLAGS="${CXXFLAGS}"
8821   CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h.  */
8824
8825     #include <QtCore/QMutex>
8826
8827 int
8828 main ()
8829 {
8830
8831     QMutex M;
8832     M.tryLock(1);
8833     M.unlock();
8834     return 0;
8835
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8841
8842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8843 $as_echo "yes" >&6; }
8844
8845 $as_echo "#define HAVE_QTCORE_QMUTEX_TRYLOCK_INT 1" >>confdefs.h
8846
8847
8848 else
8849
8850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8852
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855   CXXFLAGS="${safe_CXXFLAGS}"
8856   ac_ext=c
8857 ac_cpp='$CPP $CPPFLAGS'
8858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8861
8862 fi
8863
8864
8865 # Test for QAtomicInt, which has been introduced in Qt 4.4.
8866 # See also http://doc.trolltech.com/4.4/qatomicint.html.
8867 if test x$ac_have_qtcore = xyes; then
8868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QAtomicInt" >&5
8869 $as_echo_n "checking for Qt4 QAtomicInt... " >&6; }
8870   ac_ext=cpp
8871 ac_cpp='$CXXCPP $CPPFLAGS'
8872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8875
8876   safe_CXXFLAGS="${CXXFLAGS}"
8877   CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h.  */
8880
8881     #include <QtCore/QAtomicInt>
8882
8883 int
8884 main ()
8885 {
8886
8887     QAtomicInt I;
8888     I.testAndSetOrdered(0, 1);
8889     return 0;
8890
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_cxx_try_compile "$LINENO"; then :
8896
8897     ac_have_qtcore_qatomicint=yes
8898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8899 $as_echo "yes" >&6; }
8900
8901 $as_echo "#define HAVE_QTCORE_QATOMICINT 1" >>confdefs.h
8902
8903
8904 else
8905
8906     ac_have_qtcore_qatomicint=no
8907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8909
8910 fi
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912   CXXFLAGS="${safe_CXXFLAGS}"
8913   ac_ext=c
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919 fi
8920
8921  if test x$ac_have_qtcore_qatomicint = xyes; then
8922   HAVE_QTCORE_QATOMICINT_TRUE=
8923   HAVE_QTCORE_QATOMICINT_FALSE='#'
8924 else
8925   HAVE_QTCORE_QATOMICINT_TRUE='#'
8926   HAVE_QTCORE_QATOMICINT_FALSE=
8927 fi
8928
8929
8930
8931
8932 # Check whether the boost library 1.35 or later has been installed.
8933 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8936 $as_echo_n "checking for boost... " >&6; }
8937
8938 ac_ext=cpp
8939 ac_cpp='$CXXCPP $CPPFLAGS'
8940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8943
8944 safe_CXXFLAGS=$CXXFLAGS
8945 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8946
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h.  */
8949
8950 #include <boost/thread.hpp>
8951 static void thread_func(void)
8952 { }
8953 int main(int argc, char** argv)
8954 {
8955   boost::thread t(thread_func);
8956   return 0;
8957 }
8958
8959 _ACEOF
8960 if ac_fn_cxx_try_link "$LINENO"; then :
8961
8962 ac_have_boost_1_35=yes
8963
8964 BOOST_LIBS="${CXXFLAGS}"
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8967 $as_echo "yes" >&6; }
8968
8969 else
8970
8971 ac_have_boost_1_35=no
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext \
8977     conftest$ac_exeext conftest.$ac_ext
8978
8979 CXXFLAGS=$safe_CXXFLAGS
8980 ac_ext=c
8981 ac_cpp='$CPP $CPPFLAGS'
8982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8985
8986
8987  if test x$ac_have_boost_1_35 = xyes; then
8988   HAVE_BOOST_1_35_TRUE=
8989   HAVE_BOOST_1_35_FALSE='#'
8990 else
8991   HAVE_BOOST_1_35_TRUE='#'
8992   HAVE_BOOST_1_35_FALSE=
8993 fi
8994
8995
8996
8997 # does this compiler support -fopenmp, does it have the include file
8998 # <omp.h> and does it have libgomp ?
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
9001 $as_echo_n "checking for OpenMP... " >&6; }
9002
9003 safe_CFLAGS=$CFLAGS
9004 CFLAGS="-fopenmp $mflag_primary"
9005
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h.  */
9008
9009 #include <omp.h>
9010 int main(int argc, char** argv)
9011 {
9012   omp_set_dynamic(0);
9013   return 0;
9014 }
9015
9016 _ACEOF
9017 if ac_fn_c_try_link "$LINENO"; then :
9018
9019 ac_have_openmp=yes
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9021 $as_echo "yes" >&6; }
9022
9023 else
9024
9025 ac_have_openmp=no
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext \
9031     conftest$ac_exeext conftest.$ac_ext
9032 CFLAGS=$safe_CFLAGS
9033
9034  if test x$ac_have_openmp = xyes; then
9035   HAVE_OPENMP_TRUE=
9036   HAVE_OPENMP_FALSE='#'
9037 else
9038   HAVE_OPENMP_TRUE='#'
9039   HAVE_OPENMP_FALSE=
9040 fi
9041
9042
9043
9044 # does this compiler have built-in functions for atomic memory access ?
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9046 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9047
9048 safe_CFLAGS=$CFLAGS
9049 CFLAGS="$mflag_primary"
9050
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h.  */
9053
9054 int
9055 main ()
9056 {
9057
9058   int variable = 1;
9059   return (__sync_bool_compare_and_swap(&variable, 1, 2)
9060           && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9061
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 if ac_fn_c_try_link "$LINENO"; then :
9067
9068   ac_have_builtin_atomic=yes
9069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9070 $as_echo "yes" >&6; }
9071
9072 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9073
9074
9075 else
9076
9077   ac_have_builtin_atomic=no
9078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9080
9081 fi
9082 rm -f core conftest.err conftest.$ac_objext \
9083     conftest$ac_exeext conftest.$ac_ext
9084
9085 CFLAGS=$safe_CFLAGS
9086
9087  if test x$ac_have_builtin_atomic = xyes; then
9088   HAVE_BUILTIN_ATOMIC_TRUE=
9089   HAVE_BUILTIN_ATOMIC_FALSE='#'
9090 else
9091   HAVE_BUILTIN_ATOMIC_TRUE='#'
9092   HAVE_BUILTIN_ATOMIC_FALSE=
9093 fi
9094
9095
9096
9097 #----------------------------------------------------------------------------
9098 # Ok.  We're done checking.
9099 #----------------------------------------------------------------------------
9100
9101 # Nb: VEX/Makefile is generated from Makefile.vex.in.
9102 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 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/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/linux/Makefile none/tests/darwin/Makefile none/tests/x86-linux/Makefile exp-ptrcheck/Makefile exp-ptrcheck/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"
9103
9104 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9105
9106 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9107
9108 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9109
9110 ac_config_files="$ac_config_files coregrind/link_tool_exe_l4re"
9111
9112 cat >confcache <<\_ACEOF
9113 # This file is a shell script that caches the results of configure
9114 # tests run on this system so they can be shared between configure
9115 # scripts and configure runs, see configure's option --config-cache.
9116 # It is not useful on other systems.  If it contains results you don't
9117 # want to keep, you may remove or edit it.
9118 #
9119 # config.status only pays attention to the cache file if you give it
9120 # the --recheck option to rerun configure.
9121 #
9122 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9124 # following values.
9125
9126 _ACEOF
9127
9128 # The following way of writing the cache mishandles newlines in values,
9129 # but we know of no workaround that is simple, portable, and efficient.
9130 # So, we kill variables containing newlines.
9131 # Ultrix sh set writes to stderr and can't be redirected directly,
9132 # and sets the high bit in the cache file unless we assign to the vars.
9133 (
9134   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9135     eval ac_val=\$$ac_var
9136     case $ac_val in #(
9137     *${as_nl}*)
9138       case $ac_var in #(
9139       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9141       esac
9142       case $ac_var in #(
9143       _ | IFS | as_nl) ;; #(
9144       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9145       *) { eval $ac_var=; unset $ac_var;} ;;
9146       esac ;;
9147     esac
9148   done
9149
9150   (set) 2>&1 |
9151     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9152     *${as_nl}ac_space=\ *)
9153       # `set' does not quote correctly, so add quotes: double-quote
9154       # substitution turns \\\\ into \\, and sed turns \\ into \.
9155       sed -n \
9156         "s/'/'\\\\''/g;
9157           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9158       ;; #(
9159     *)
9160       # `set' quotes correctly as required by POSIX, so do not add quotes.
9161       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9162       ;;
9163     esac |
9164     sort
9165 ) |
9166   sed '
9167      /^ac_cv_env_/b end
9168      t clear
9169      :clear
9170      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9171      t end
9172      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9173      :end' >>confcache
9174 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9175   if test -w "$cache_file"; then
9176     test "x$cache_file" != "x/dev/null" &&
9177       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9178 $as_echo "$as_me: updating cache $cache_file" >&6;}
9179     cat confcache >$cache_file
9180   else
9181     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9182 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9183   fi
9184 fi
9185 rm -f confcache
9186
9187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9188 # Let make expand exec_prefix.
9189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9190
9191 DEFS=-DHAVE_CONFIG_H
9192
9193 ac_libobjs=
9194 ac_ltlibobjs=
9195 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9196   # 1. Remove the extension, and $U if already installed.
9197   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9198   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9199   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9200   #    will be set to the directory where LIBOBJS objects are built.
9201   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9202   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9203 done
9204 LIBOBJS=$ac_libobjs
9205
9206 LTLIBOBJS=$ac_ltlibobjs
9207
9208
9209  if test -n "$EXEEXT"; then
9210   am__EXEEXT_TRUE=
9211   am__EXEEXT_FALSE='#'
9212 else
9213   am__EXEEXT_TRUE='#'
9214   am__EXEEXT_FALSE=
9215 fi
9216
9217 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9218   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
9219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9220 fi
9221 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9222   as_fn_error "conditional \"AMDEP\" was never defined.
9223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9224 fi
9225 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9226   as_fn_error "conditional \"am__fastdepCC\" was never defined.
9227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9228 fi
9229 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9230   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9232 fi
9233 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9234   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
9235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9236 fi
9237 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9238   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9240 fi
9241 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9242   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9244 fi
9245 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9246   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9248 fi
9249 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9250   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9252 fi
9253 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9254   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9256 fi
9257 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9258   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9260 fi
9261 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9262   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9264 fi
9265 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9266   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9268 fi
9269 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9270   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9272 fi
9273 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9274   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9276 fi
9277 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9278   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9280 fi
9281 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9282   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9284 fi
9285 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9286   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9288 fi
9289 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9290   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9292 fi
9293 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9294   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9296 fi
9297 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9298   as_fn_error "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9300 fi
9301 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9302   as_fn_error "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9304 fi
9305 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9306   as_fn_error "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9308 fi
9309 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9310   as_fn_error "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9312 fi
9313 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9314   as_fn_error "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9316 fi
9317 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9318   as_fn_error "conditional \"HAS_ALTIVEC\" was never defined.
9319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9320 fi
9321 if test -z "${HAVE_ALTIVEC_H_TRUE}" && test -z "${HAVE_ALTIVEC_H_FALSE}"; then
9322   as_fn_error "conditional \"HAVE_ALTIVEC_H\" was never defined.
9323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9324 fi
9325 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9326   as_fn_error "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9328 fi
9329 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9330   as_fn_error "conditional \"BUILD_SSE3_TESTS\" was never defined.
9331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9332 fi
9333 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9334   as_fn_error "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9336 fi
9337 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9338   as_fn_error "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9340 fi
9341 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9342   as_fn_error "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9344 fi
9345 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9346   as_fn_error "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9348 fi
9349 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9350   as_fn_error "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9352 fi
9353 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9354   as_fn_error "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9356 fi
9357 if test -z "${HAVE_QTCORE_TRUE}" && test -z "${HAVE_QTCORE_FALSE}"; then
9358   as_fn_error "conditional \"HAVE_QTCORE\" was never defined.
9359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9360 fi
9361 if test -z "${HAVE_QTCORE_QATOMICINT_TRUE}" && test -z "${HAVE_QTCORE_QATOMICINT_FALSE}"; then
9362   as_fn_error "conditional \"HAVE_QTCORE_QATOMICINT\" was never defined.
9363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9364 fi
9365 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9366   as_fn_error "conditional \"HAVE_BOOST_1_35\" was never defined.
9367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9368 fi
9369 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9370   as_fn_error "conditional \"HAVE_OPENMP\" was never defined.
9371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9372 fi
9373 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9374   as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9376 fi
9377
9378 : ${CONFIG_STATUS=./config.status}
9379 ac_write_fail=0
9380 ac_clean_files_save=$ac_clean_files
9381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9383 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9384 as_write_fail=0
9385 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9386 #! $SHELL
9387 # Generated by $as_me.
9388 # Run this file to recreate the current configuration.
9389 # Compiler output produced by configure, useful for debugging
9390 # configure, is in config.log if it exists.
9391
9392 debug=false
9393 ac_cs_recheck=false
9394 ac_cs_silent=false
9395
9396 SHELL=\${CONFIG_SHELL-$SHELL}
9397 export SHELL
9398 _ASEOF
9399 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9400 ## -------------------- ##
9401 ## M4sh Initialization. ##
9402 ## -------------------- ##
9403
9404 # Be more Bourne compatible
9405 DUALCASE=1; export DUALCASE # for MKS sh
9406 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9407   emulate sh
9408   NULLCMD=:
9409   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9410   # is contrary to our usage.  Disable this feature.
9411   alias -g '${1+"$@"}'='"$@"'
9412   setopt NO_GLOB_SUBST
9413 else
9414   case `(set -o) 2>/dev/null` in #(
9415   *posix*) :
9416     set -o posix ;; #(
9417   *) :
9418      ;;
9419 esac
9420 fi
9421
9422
9423 as_nl='
9424 '
9425 export as_nl
9426 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9427 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9430 # Prefer a ksh shell builtin over an external printf program on Solaris,
9431 # but without wasting forks for bash or zsh.
9432 if test -z "$BASH_VERSION$ZSH_VERSION" \
9433     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9434   as_echo='print -r --'
9435   as_echo_n='print -rn --'
9436 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9437   as_echo='printf %s\n'
9438   as_echo_n='printf %s'
9439 else
9440   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9441     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9442     as_echo_n='/usr/ucb/echo -n'
9443   else
9444     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9445     as_echo_n_body='eval
9446       arg=$1;
9447       case $arg in #(
9448       *"$as_nl"*)
9449         expr "X$arg" : "X\\(.*\\)$as_nl";
9450         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9451       esac;
9452       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9453     '
9454     export as_echo_n_body
9455     as_echo_n='sh -c $as_echo_n_body as_echo'
9456   fi
9457   export as_echo_body
9458   as_echo='sh -c $as_echo_body as_echo'
9459 fi
9460
9461 # The user is always right.
9462 if test "${PATH_SEPARATOR+set}" != set; then
9463   PATH_SEPARATOR=:
9464   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9465     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9466       PATH_SEPARATOR=';'
9467   }
9468 fi
9469
9470
9471 # IFS
9472 # We need space, tab and new line, in precisely that order.  Quoting is
9473 # there to prevent editors from complaining about space-tab.
9474 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9475 # splitting by setting IFS to empty value.)
9476 IFS=" ""        $as_nl"
9477
9478 # Find who we are.  Look in the path if we contain no directory separator.
9479 case $0 in #((
9480   *[\\/]* ) as_myself=$0 ;;
9481   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482 for as_dir in $PATH
9483 do
9484   IFS=$as_save_IFS
9485   test -z "$as_dir" && as_dir=.
9486     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9487   done
9488 IFS=$as_save_IFS
9489
9490      ;;
9491 esac
9492 # We did not find ourselves, most probably we were run as `sh COMMAND'
9493 # in which case we are not to be found in the path.
9494 if test "x$as_myself" = x; then
9495   as_myself=$0
9496 fi
9497 if test ! -f "$as_myself"; then
9498   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9499   exit 1
9500 fi
9501
9502 # Unset variables that we do not need and which cause bugs (e.g. in
9503 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9504 # suppresses any "Segmentation fault" message there.  '((' could
9505 # trigger a bug in pdksh 5.2.14.
9506 for as_var in BASH_ENV ENV MAIL MAILPATH
9507 do eval test x\${$as_var+set} = xset \
9508   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9509 done
9510 PS1='$ '
9511 PS2='> '
9512 PS4='+ '
9513
9514 # NLS nuisances.
9515 LC_ALL=C
9516 export LC_ALL
9517 LANGUAGE=C
9518 export LANGUAGE
9519
9520 # CDPATH.
9521 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9522
9523
9524 # as_fn_error ERROR [LINENO LOG_FD]
9525 # ---------------------------------
9526 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9527 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9528 # script with status $?, using 1 if that was 0.
9529 as_fn_error ()
9530 {
9531   as_status=$?; test $as_status -eq 0 && as_status=1
9532   if test "$3"; then
9533     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9534     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9535   fi
9536   $as_echo "$as_me: error: $1" >&2
9537   as_fn_exit $as_status
9538 } # as_fn_error
9539
9540
9541 # as_fn_set_status STATUS
9542 # -----------------------
9543 # Set $? to STATUS, without forking.
9544 as_fn_set_status ()
9545 {
9546   return $1
9547 } # as_fn_set_status
9548
9549 # as_fn_exit STATUS
9550 # -----------------
9551 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9552 as_fn_exit ()
9553 {
9554   set +e
9555   as_fn_set_status $1
9556   exit $1
9557 } # as_fn_exit
9558
9559 # as_fn_unset VAR
9560 # ---------------
9561 # Portably unset VAR.
9562 as_fn_unset ()
9563 {
9564   { eval $1=; unset $1;}
9565 }
9566 as_unset=as_fn_unset
9567 # as_fn_append VAR VALUE
9568 # ----------------------
9569 # Append the text in VALUE to the end of the definition contained in VAR. Take
9570 # advantage of any shell optimizations that allow amortized linear growth over
9571 # repeated appends, instead of the typical quadratic growth present in naive
9572 # implementations.
9573 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9574   eval 'as_fn_append ()
9575   {
9576     eval $1+=\$2
9577   }'
9578 else
9579   as_fn_append ()
9580   {
9581     eval $1=\$$1\$2
9582   }
9583 fi # as_fn_append
9584
9585 # as_fn_arith ARG...
9586 # ------------------
9587 # Perform arithmetic evaluation on the ARGs, and store the result in the
9588 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9589 # must be portable across $(()) and expr.
9590 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9591   eval 'as_fn_arith ()
9592   {
9593     as_val=$(( $* ))
9594   }'
9595 else
9596   as_fn_arith ()
9597   {
9598     as_val=`expr "$@" || test $? -eq 1`
9599   }
9600 fi # as_fn_arith
9601
9602
9603 if expr a : '\(a\)' >/dev/null 2>&1 &&
9604    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9605   as_expr=expr
9606 else
9607   as_expr=false
9608 fi
9609
9610 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9611   as_basename=basename
9612 else
9613   as_basename=false
9614 fi
9615
9616 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9617   as_dirname=dirname
9618 else
9619   as_dirname=false
9620 fi
9621
9622 as_me=`$as_basename -- "$0" ||
9623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9624          X"$0" : 'X\(//\)$' \| \
9625          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9626 $as_echo X/"$0" |
9627     sed '/^.*\/\([^/][^/]*\)\/*$/{
9628             s//\1/
9629             q
9630           }
9631           /^X\/\(\/\/\)$/{
9632             s//\1/
9633             q
9634           }
9635           /^X\/\(\/\).*/{
9636             s//\1/
9637             q
9638           }
9639           s/.*/./; q'`
9640
9641 # Avoid depending upon Character Ranges.
9642 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9643 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9644 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9645 as_cr_digits='0123456789'
9646 as_cr_alnum=$as_cr_Letters$as_cr_digits
9647
9648 ECHO_C= ECHO_N= ECHO_T=
9649 case `echo -n x` in #(((((
9650 -n*)
9651   case `echo 'xy\c'` in
9652   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9653   xy)  ECHO_C='\c';;
9654   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9655        ECHO_T=' ';;
9656   esac;;
9657 *)
9658   ECHO_N='-n';;
9659 esac
9660
9661 rm -f conf$$ conf$$.exe conf$$.file
9662 if test -d conf$$.dir; then
9663   rm -f conf$$.dir/conf$$.file
9664 else
9665   rm -f conf$$.dir
9666   mkdir conf$$.dir 2>/dev/null
9667 fi
9668 if (echo >conf$$.file) 2>/dev/null; then
9669   if ln -s conf$$.file conf$$ 2>/dev/null; then
9670     as_ln_s='ln -s'
9671     # ... but there are two gotchas:
9672     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9673     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9674     # In both cases, we have to default to `cp -p'.
9675     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9676       as_ln_s='cp -p'
9677   elif ln conf$$.file conf$$ 2>/dev/null; then
9678     as_ln_s=ln
9679   else
9680     as_ln_s='cp -p'
9681   fi
9682 else
9683   as_ln_s='cp -p'
9684 fi
9685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9686 rmdir conf$$.dir 2>/dev/null
9687
9688
9689 # as_fn_mkdir_p
9690 # -------------
9691 # Create "$as_dir" as a directory, including parents if necessary.
9692 as_fn_mkdir_p ()
9693 {
9694
9695   case $as_dir in #(
9696   -*) as_dir=./$as_dir;;
9697   esac
9698   test -d "$as_dir" || eval $as_mkdir_p || {
9699     as_dirs=
9700     while :; do
9701       case $as_dir in #(
9702       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9703       *) as_qdir=$as_dir;;
9704       esac
9705       as_dirs="'$as_qdir' $as_dirs"
9706       as_dir=`$as_dirname -- "$as_dir" ||
9707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9708          X"$as_dir" : 'X\(//\)[^/]' \| \
9709          X"$as_dir" : 'X\(//\)$' \| \
9710          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9711 $as_echo X"$as_dir" |
9712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9713             s//\1/
9714             q
9715           }
9716           /^X\(\/\/\)[^/].*/{
9717             s//\1/
9718             q
9719           }
9720           /^X\(\/\/\)$/{
9721             s//\1/
9722             q
9723           }
9724           /^X\(\/\).*/{
9725             s//\1/
9726             q
9727           }
9728           s/.*/./; q'`
9729       test -d "$as_dir" && break
9730     done
9731     test -z "$as_dirs" || eval "mkdir $as_dirs"
9732   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9733
9734
9735 } # as_fn_mkdir_p
9736 if mkdir -p . 2>/dev/null; then
9737   as_mkdir_p='mkdir -p "$as_dir"'
9738 else
9739   test -d ./-p && rmdir ./-p
9740   as_mkdir_p=false
9741 fi
9742
9743 if test -x / >/dev/null 2>&1; then
9744   as_test_x='test -x'
9745 else
9746   if ls -dL / >/dev/null 2>&1; then
9747     as_ls_L_option=L
9748   else
9749     as_ls_L_option=
9750   fi
9751   as_test_x='
9752     eval sh -c '\''
9753       if test -d "$1"; then
9754         test -d "$1/.";
9755       else
9756         case $1 in #(
9757         -*)set "./$1";;
9758         esac;
9759         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9760         ???[sx]*):;;*)false;;esac;fi
9761     '\'' sh
9762   '
9763 fi
9764 as_executable_p=$as_test_x
9765
9766 # Sed expression to map a string onto a valid CPP name.
9767 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9768
9769 # Sed expression to map a string onto a valid variable name.
9770 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9771
9772
9773 exec 6>&1
9774 ## ----------------------------------- ##
9775 ## Main body of $CONFIG_STATUS script. ##
9776 ## ----------------------------------- ##
9777 _ASEOF
9778 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9779
9780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9781 # Save the log message, to keep $0 and so on meaningful, and to
9782 # report actual input values of CONFIG_FILES etc. instead of their
9783 # values after options handling.
9784 ac_log="
9785 This file was extended by Valgrind $as_me 3.6.0.SVN, which was
9786 generated by GNU Autoconf 2.65.  Invocation command line was
9787
9788   CONFIG_FILES    = $CONFIG_FILES
9789   CONFIG_HEADERS  = $CONFIG_HEADERS
9790   CONFIG_LINKS    = $CONFIG_LINKS
9791   CONFIG_COMMANDS = $CONFIG_COMMANDS
9792   $ $0 $@
9793
9794 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9795 "
9796
9797 _ACEOF
9798
9799 case $ac_config_files in *"
9800 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9801 esac
9802
9803 case $ac_config_headers in *"
9804 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9805 esac
9806
9807
9808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9809 # Files that config.status was made for.
9810 config_files="$ac_config_files"
9811 config_headers="$ac_config_headers"
9812 config_commands="$ac_config_commands"
9813
9814 _ACEOF
9815
9816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9817 ac_cs_usage="\
9818 \`$as_me' instantiates files and other configuration actions
9819 from templates according to the current configuration.  Unless the files
9820 and actions are specified as TAGs, all are instantiated by default.
9821
9822 Usage: $0 [OPTION]... [TAG]...
9823
9824   -h, --help       print this help, then exit
9825   -V, --version    print version number and configuration settings, then exit
9826       --config     print configuration, then exit
9827   -q, --quiet, --silent
9828                    do not print progress messages
9829   -d, --debug      don't remove temporary files
9830       --recheck    update $as_me by reconfiguring in the same conditions
9831       --file=FILE[:TEMPLATE]
9832                    instantiate the configuration file FILE
9833       --header=FILE[:TEMPLATE]
9834                    instantiate the configuration header FILE
9835
9836 Configuration files:
9837 $config_files
9838
9839 Configuration headers:
9840 $config_headers
9841
9842 Configuration commands:
9843 $config_commands
9844
9845 Report bugs to <valgrind-users@lists.sourceforge.net>."
9846
9847 _ACEOF
9848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9849 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9850 ac_cs_version="\\
9851 Valgrind config.status 3.6.0.SVN
9852 configured by $0, generated by GNU Autoconf 2.65,
9853   with options \\"\$ac_cs_config\\"
9854
9855 Copyright (C) 2009 Free Software Foundation, Inc.
9856 This config.status script is free software; the Free Software Foundation
9857 gives unlimited permission to copy, distribute and modify it."
9858
9859 ac_pwd='$ac_pwd'
9860 srcdir='$srcdir'
9861 INSTALL='$INSTALL'
9862 MKDIR_P='$MKDIR_P'
9863 AWK='$AWK'
9864 test -n "\$AWK" || AWK=awk
9865 _ACEOF
9866
9867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9868 # The default lists apply if the user does not specify any file.
9869 ac_need_defaults=:
9870 while test $# != 0
9871 do
9872   case $1 in
9873   --*=*)
9874     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9875     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9876     ac_shift=:
9877     ;;
9878   *)
9879     ac_option=$1
9880     ac_optarg=$2
9881     ac_shift=shift
9882     ;;
9883   esac
9884
9885   case $ac_option in
9886   # Handling of the options.
9887   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9888     ac_cs_recheck=: ;;
9889   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9890     $as_echo "$ac_cs_version"; exit ;;
9891   --config | --confi | --conf | --con | --co | --c )
9892     $as_echo "$ac_cs_config"; exit ;;
9893   --debug | --debu | --deb | --de | --d | -d )
9894     debug=: ;;
9895   --file | --fil | --fi | --f )
9896     $ac_shift
9897     case $ac_optarg in
9898     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9899     esac
9900     as_fn_append CONFIG_FILES " '$ac_optarg'"
9901     ac_need_defaults=false;;
9902   --header | --heade | --head | --hea )
9903     $ac_shift
9904     case $ac_optarg in
9905     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9906     esac
9907     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9908     ac_need_defaults=false;;
9909   --he | --h)
9910     # Conflict between --help and --header
9911     as_fn_error "ambiguous option: \`$1'
9912 Try \`$0 --help' for more information.";;
9913   --help | --hel | -h )
9914     $as_echo "$ac_cs_usage"; exit ;;
9915   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9916   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9917     ac_cs_silent=: ;;
9918
9919   # This is an error.
9920   -*) as_fn_error "unrecognized option: \`$1'
9921 Try \`$0 --help' for more information." ;;
9922
9923   *) as_fn_append ac_config_targets " $1"
9924      ac_need_defaults=false ;;
9925
9926   esac
9927   shift
9928 done
9929
9930 ac_configure_extra_args=
9931
9932 if $ac_cs_silent; then
9933   exec 6>/dev/null
9934   ac_configure_extra_args="$ac_configure_extra_args --silent"
9935 fi
9936
9937 _ACEOF
9938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9939 if \$ac_cs_recheck; then
9940   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9941   shift
9942   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9943   CONFIG_SHELL='$SHELL'
9944   export CONFIG_SHELL
9945   exec "\$@"
9946 fi
9947
9948 _ACEOF
9949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9950 exec 5>>config.log
9951 {
9952   echo
9953   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9954 ## Running $as_me. ##
9955 _ASBOX
9956   $as_echo "$ac_log"
9957 } >&5
9958
9959 _ACEOF
9960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9961 #
9962 # INIT-COMMANDS
9963 #
9964 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9965
9966 _ACEOF
9967
9968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9969
9970 # Handling of arguments.
9971 for ac_config_target in $ac_config_targets
9972 do
9973   case $ac_config_target in
9974     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9975     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9976     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9977     "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
9978     "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
9979     "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
9980     "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
9981     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9982     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9983     "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
9984     "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
9985     "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
9986     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9987     "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
9988     "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
9989     "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
9990     "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
9991     "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
9992     "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
9993     "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
9994     "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
9995     "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
9996     "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
9997     "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
9998     "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
9999     "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10000     "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10001     "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10002     "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10003     "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10004     "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10005     "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10006     "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10007     "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10008     "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10009     "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10010     "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10011     "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10012     "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10013     "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10014     "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10015     "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10016     "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10017     "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10018     "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10019     "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10020     "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10021     "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10022     "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10023     "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10024     "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10025     "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10026     "exp-ptrcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/Makefile" ;;
10027     "exp-ptrcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/tests/Makefile" ;;
10028     "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10029     "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10030     "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10031     "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10032     "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10033     "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10034     "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10035     "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10036     "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10037     "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10038     "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10039     "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10040     "coregrind/link_tool_exe_l4re") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_l4re" ;;
10041
10042   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10043   esac
10044 done
10045
10046
10047 # If the user did not use the arguments to specify the items to instantiate,
10048 # then the envvar interface is used.  Set only those that are not.
10049 # We use the long form for the default assignment because of an extremely
10050 # bizarre bug on SunOS 4.1.3.
10051 if $ac_need_defaults; then
10052   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10053   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10054   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10055 fi
10056
10057 # Have a temporary directory for convenience.  Make it in the build tree
10058 # simply because there is no reason against having it here, and in addition,
10059 # creating and moving files from /tmp can sometimes cause problems.
10060 # Hook for its removal unless debugging.
10061 # Note that there is a small window in which the directory will not be cleaned:
10062 # after its creation but before its name has been assigned to `$tmp'.
10063 $debug ||
10064 {
10065   tmp=
10066   trap 'exit_status=$?
10067   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10068 ' 0
10069   trap 'as_fn_exit 1' 1 2 13 15
10070 }
10071 # Create a (secure) tmp directory for tmp files.
10072
10073 {
10074   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10075   test -n "$tmp" && test -d "$tmp"
10076 }  ||
10077 {
10078   tmp=./conf$$-$RANDOM
10079   (umask 077 && mkdir "$tmp")
10080 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10081
10082 # Set up the scripts for CONFIG_FILES section.
10083 # No need to generate them if there are no CONFIG_FILES.
10084 # This happens for instance with `./config.status config.h'.
10085 if test -n "$CONFIG_FILES"; then
10086
10087
10088 ac_cr=`echo X | tr X '\015'`
10089 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10090 # But we know of no other shell where ac_cr would be empty at this
10091 # point, so we can use a bashism as a fallback.
10092 if test "x$ac_cr" = x; then
10093   eval ac_cr=\$\'\\r\'
10094 fi
10095 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10096 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10097   ac_cs_awk_cr='\r'
10098 else
10099   ac_cs_awk_cr=$ac_cr
10100 fi
10101
10102 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10103 _ACEOF
10104
10105
10106 {
10107   echo "cat >conf$$subs.awk <<_ACEOF" &&
10108   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10109   echo "_ACEOF"
10110 } >conf$$subs.sh ||
10111   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10112 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10113 ac_delim='%!_!# '
10114 for ac_last_try in false false false false false :; do
10115   . ./conf$$subs.sh ||
10116     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10117
10118   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10119   if test $ac_delim_n = $ac_delim_num; then
10120     break
10121   elif $ac_last_try; then
10122     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10123   else
10124     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10125   fi
10126 done
10127 rm -f conf$$subs.sh
10128
10129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10130 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10131 _ACEOF
10132 sed -n '
10133 h
10134 s/^/S["/; s/!.*/"]=/
10135 p
10136 g
10137 s/^[^!]*!//
10138 :repl
10139 t repl
10140 s/'"$ac_delim"'$//
10141 t delim
10142 :nl
10143 h
10144 s/\(.\{148\}\)..*/\1/
10145 t more1
10146 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10147 p
10148 n
10149 b repl
10150 :more1
10151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10152 p
10153 g
10154 s/.\{148\}//
10155 t nl
10156 :delim
10157 h
10158 s/\(.\{148\}\)..*/\1/
10159 t more2
10160 s/["\\]/\\&/g; s/^/"/; s/$/"/
10161 p
10162 b
10163 :more2
10164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10165 p
10166 g
10167 s/.\{148\}//
10168 t delim
10169 ' <conf$$subs.awk | sed '
10170 /^[^""]/{
10171   N
10172   s/\n//
10173 }
10174 ' >>$CONFIG_STATUS || ac_write_fail=1
10175 rm -f conf$$subs.awk
10176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10177 _ACAWK
10178 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10179   for (key in S) S_is_set[key] = 1
10180   FS = "\a"
10181
10182 }
10183 {
10184   line = $ 0
10185   nfields = split(line, field, "@")
10186   substed = 0
10187   len = length(field[1])
10188   for (i = 2; i < nfields; i++) {
10189     key = field[i]
10190     keylen = length(key)
10191     if (S_is_set[key]) {
10192       value = S[key]
10193       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10194       len += length(value) + length(field[++i])
10195       substed = 1
10196     } else
10197       len += 1 + keylen
10198   }
10199
10200   print line
10201 }
10202
10203 _ACAWK
10204 _ACEOF
10205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10206 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10207   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10208 else
10209   cat
10210 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10211   || as_fn_error "could not setup config files machinery" "$LINENO" 5
10212 _ACEOF
10213
10214 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10215 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10216 # trailing colons and then remove the whole line if VPATH becomes empty
10217 # (actually we leave an empty line to preserve line numbers).
10218 if test "x$srcdir" = x.; then
10219   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10220 s/:*\$(srcdir):*/:/
10221 s/:*\${srcdir}:*/:/
10222 s/:*@srcdir@:*/:/
10223 s/^\([^=]*=[     ]*\):*/\1/
10224 s/:*$//
10225 s/^[^=]*=[       ]*$//
10226 }'
10227 fi
10228
10229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10230 fi # test -n "$CONFIG_FILES"
10231
10232 # Set up the scripts for CONFIG_HEADERS section.
10233 # No need to generate them if there are no CONFIG_HEADERS.
10234 # This happens for instance with `./config.status Makefile'.
10235 if test -n "$CONFIG_HEADERS"; then
10236 cat >"$tmp/defines.awk" <<\_ACAWK ||
10237 BEGIN {
10238 _ACEOF
10239
10240 # Transform confdefs.h into an awk script `defines.awk', embedded as
10241 # here-document in config.status, that substitutes the proper values into
10242 # config.h.in to produce config.h.
10243
10244 # Create a delimiter string that does not exist in confdefs.h, to ease
10245 # handling of long lines.
10246 ac_delim='%!_!# '
10247 for ac_last_try in false false :; do
10248   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10249   if test -z "$ac_t"; then
10250     break
10251   elif $ac_last_try; then
10252     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10253   else
10254     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10255   fi
10256 done
10257
10258 # For the awk script, D is an array of macro values keyed by name,
10259 # likewise P contains macro parameters if any.  Preserve backslash
10260 # newline sequences.
10261
10262 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10263 sed -n '
10264 s/.\{148\}/&'"$ac_delim"'/g
10265 t rset
10266 :rset
10267 s/^[     ]*#[    ]*define[       ][      ]*/ /
10268 t def
10269 d
10270 :def
10271 s/\\$//
10272 t bsnl
10273 s/["\\]/\\&/g
10274 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10275 D["\1"]=" \3"/p
10276 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10277 d
10278 :bsnl
10279 s/["\\]/\\&/g
10280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10281 D["\1"]=" \3\\\\\\n"\\/p
10282 t cont
10283 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10284 t cont
10285 d
10286 :cont
10287 n
10288 s/.\{148\}/&'"$ac_delim"'/g
10289 t clear
10290 :clear
10291 s/\\$//
10292 t bsnlc
10293 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10294 d
10295 :bsnlc
10296 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10297 b cont
10298 ' <confdefs.h | sed '
10299 s/'"$ac_delim"'/"\\\
10300 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10301
10302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10303   for (key in D) D_is_set[key] = 1
10304   FS = "\a"
10305 }
10306 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10307   line = \$ 0
10308   split(line, arg, " ")
10309   if (arg[1] == "#") {
10310     defundef = arg[2]
10311     mac1 = arg[3]
10312   } else {
10313     defundef = substr(arg[1], 2)
10314     mac1 = arg[2]
10315   }
10316   split(mac1, mac2, "(") #)
10317   macro = mac2[1]
10318   prefix = substr(line, 1, index(line, defundef) - 1)
10319   if (D_is_set[macro]) {
10320     # Preserve the white space surrounding the "#".
10321     print prefix "define", macro P[macro] D[macro]
10322     next
10323   } else {
10324     # Replace #undef with comments.  This is necessary, for example,
10325     # in the case of _POSIX_SOURCE, which is predefined and required
10326     # on some systems where configure will not decide to define it.
10327     if (defundef == "undef") {
10328       print "/*", prefix defundef, macro, "*/"
10329       next
10330     }
10331   }
10332 }
10333 { print }
10334 _ACAWK
10335 _ACEOF
10336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10337   as_fn_error "could not setup config headers machinery" "$LINENO" 5
10338 fi # test -n "$CONFIG_HEADERS"
10339
10340
10341 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10342 shift
10343 for ac_tag
10344 do
10345   case $ac_tag in
10346   :[FHLC]) ac_mode=$ac_tag; continue;;
10347   esac
10348   case $ac_mode$ac_tag in
10349   :[FHL]*:*);;
10350   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10351   :[FH]-) ac_tag=-:-;;
10352   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10353   esac
10354   ac_save_IFS=$IFS
10355   IFS=:
10356   set x $ac_tag
10357   IFS=$ac_save_IFS
10358   shift
10359   ac_file=$1
10360   shift
10361
10362   case $ac_mode in
10363   :L) ac_source=$1;;
10364   :[FH])
10365     ac_file_inputs=
10366     for ac_f
10367     do
10368       case $ac_f in
10369       -) ac_f="$tmp/stdin";;
10370       *) # Look for the file first in the build tree, then in the source tree
10371          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10372          # because $ac_f cannot contain `:'.
10373          test -f "$ac_f" ||
10374            case $ac_f in
10375            [\\/$]*) false;;
10376            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10377            esac ||
10378            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10379       esac
10380       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10381       as_fn_append ac_file_inputs " '$ac_f'"
10382     done
10383
10384     # Let's still pretend it is `configure' which instantiates (i.e., don't
10385     # use $as_me), people would be surprised to read:
10386     #    /* config.h.  Generated by config.status.  */
10387     configure_input='Generated from '`
10388           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10389         `' by configure.'
10390     if test x"$ac_file" != x-; then
10391       configure_input="$ac_file.  $configure_input"
10392       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10393 $as_echo "$as_me: creating $ac_file" >&6;}
10394     fi
10395     # Neutralize special characters interpreted by sed in replacement strings.
10396     case $configure_input in #(
10397     *\&* | *\|* | *\\* )
10398        ac_sed_conf_input=`$as_echo "$configure_input" |
10399        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10400     *) ac_sed_conf_input=$configure_input;;
10401     esac
10402
10403     case $ac_tag in
10404     *:-:* | *:-) cat >"$tmp/stdin" \
10405       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10406     esac
10407     ;;
10408   esac
10409
10410   ac_dir=`$as_dirname -- "$ac_file" ||
10411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10412          X"$ac_file" : 'X\(//\)[^/]' \| \
10413          X"$ac_file" : 'X\(//\)$' \| \
10414          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10415 $as_echo X"$ac_file" |
10416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10417             s//\1/
10418             q
10419           }
10420           /^X\(\/\/\)[^/].*/{
10421             s//\1/
10422             q
10423           }
10424           /^X\(\/\/\)$/{
10425             s//\1/
10426             q
10427           }
10428           /^X\(\/\).*/{
10429             s//\1/
10430             q
10431           }
10432           s/.*/./; q'`
10433   as_dir="$ac_dir"; as_fn_mkdir_p
10434   ac_builddir=.
10435
10436 case "$ac_dir" in
10437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10438 *)
10439   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10440   # A ".." for each directory in $ac_dir_suffix.
10441   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10442   case $ac_top_builddir_sub in
10443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10445   esac ;;
10446 esac
10447 ac_abs_top_builddir=$ac_pwd
10448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10449 # for backward compatibility:
10450 ac_top_builddir=$ac_top_build_prefix
10451
10452 case $srcdir in
10453   .)  # We are building in place.
10454     ac_srcdir=.
10455     ac_top_srcdir=$ac_top_builddir_sub
10456     ac_abs_top_srcdir=$ac_pwd ;;
10457   [\\/]* | ?:[\\/]* )  # Absolute name.
10458     ac_srcdir=$srcdir$ac_dir_suffix;
10459     ac_top_srcdir=$srcdir
10460     ac_abs_top_srcdir=$srcdir ;;
10461   *) # Relative name.
10462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10463     ac_top_srcdir=$ac_top_build_prefix$srcdir
10464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10465 esac
10466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10467
10468
10469   case $ac_mode in
10470   :F)
10471   #
10472   # CONFIG_FILE
10473   #
10474
10475   case $INSTALL in
10476   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10477   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10478   esac
10479   ac_MKDIR_P=$MKDIR_P
10480   case $MKDIR_P in
10481   [\\/$]* | ?:[\\/]* ) ;;
10482   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10483   esac
10484 _ACEOF
10485
10486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10487 # If the template does not know about datarootdir, expand it.
10488 # FIXME: This hack should be removed a few years after 2.60.
10489 ac_datarootdir_hack=; ac_datarootdir_seen=
10490 ac_sed_dataroot='
10491 /datarootdir/ {
10492   p
10493   q
10494 }
10495 /@datadir@/p
10496 /@docdir@/p
10497 /@infodir@/p
10498 /@localedir@/p
10499 /@mandir@/p'
10500 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10501 *datarootdir*) ac_datarootdir_seen=yes;;
10502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10504 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10505 _ACEOF
10506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10507   ac_datarootdir_hack='
10508   s&@datadir@&$datadir&g
10509   s&@docdir@&$docdir&g
10510   s&@infodir@&$infodir&g
10511   s&@localedir@&$localedir&g
10512   s&@mandir@&$mandir&g
10513   s&\\\${datarootdir}&$datarootdir&g' ;;
10514 esac
10515 _ACEOF
10516
10517 # Neutralize VPATH when `$srcdir' = `.'.
10518 # Shell code in configure.ac might set extrasub.
10519 # FIXME: do we really want to maintain this feature?
10520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10521 ac_sed_extra="$ac_vpsub
10522 $extrasub
10523 _ACEOF
10524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10525 :t
10526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10527 s|@configure_input@|$ac_sed_conf_input|;t t
10528 s&@top_builddir@&$ac_top_builddir_sub&;t t
10529 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10530 s&@srcdir@&$ac_srcdir&;t t
10531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10532 s&@top_srcdir@&$ac_top_srcdir&;t t
10533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10534 s&@builddir@&$ac_builddir&;t t
10535 s&@abs_builddir@&$ac_abs_builddir&;t t
10536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10537 s&@INSTALL@&$ac_INSTALL&;t t
10538 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10539 $ac_datarootdir_hack
10540 "
10541 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10542   || as_fn_error "could not create $ac_file" "$LINENO" 5
10543
10544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10545   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10546   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10547   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10548 which seems to be undefined.  Please make sure it is defined." >&5
10549 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10550 which seems to be undefined.  Please make sure it is defined." >&2;}
10551
10552   rm -f "$tmp/stdin"
10553   case $ac_file in
10554   -) cat "$tmp/out" && rm -f "$tmp/out";;
10555   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10556   esac \
10557   || as_fn_error "could not create $ac_file" "$LINENO" 5
10558  ;;
10559   :H)
10560   #
10561   # CONFIG_HEADER
10562   #
10563   if test x"$ac_file" != x-; then
10564     {
10565       $as_echo "/* $configure_input  */" \
10566       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10567     } >"$tmp/config.h" \
10568       || as_fn_error "could not create $ac_file" "$LINENO" 5
10569     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10570       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10571 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10572     else
10573       rm -f "$ac_file"
10574       mv "$tmp/config.h" "$ac_file" \
10575         || as_fn_error "could not create $ac_file" "$LINENO" 5
10576     fi
10577   else
10578     $as_echo "/* $configure_input  */" \
10579       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10580       || as_fn_error "could not create -" "$LINENO" 5
10581   fi
10582 # Compute "$ac_file"'s index in $config_headers.
10583 _am_arg="$ac_file"
10584 _am_stamp_count=1
10585 for _am_header in $config_headers :; do
10586   case $_am_header in
10587     $_am_arg | $_am_arg:* )
10588       break ;;
10589     * )
10590       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10591   esac
10592 done
10593 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10594 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10595          X"$_am_arg" : 'X\(//\)[^/]' \| \
10596          X"$_am_arg" : 'X\(//\)$' \| \
10597          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10598 $as_echo X"$_am_arg" |
10599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10600             s//\1/
10601             q
10602           }
10603           /^X\(\/\/\)[^/].*/{
10604             s//\1/
10605             q
10606           }
10607           /^X\(\/\/\)$/{
10608             s//\1/
10609             q
10610           }
10611           /^X\(\/\).*/{
10612             s//\1/
10613             q
10614           }
10615           s/.*/./; q'`/stamp-h$_am_stamp_count
10616  ;;
10617
10618   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10619 $as_echo "$as_me: executing $ac_file commands" >&6;}
10620  ;;
10621   esac
10622
10623
10624   case $ac_file$ac_mode in
10625     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10626   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10627   # are listed without --file.  Let's play safe and only enable the eval
10628   # if we detect the quoting.
10629   case $CONFIG_FILES in
10630   *\'*) eval set x "$CONFIG_FILES" ;;
10631   *)   set x $CONFIG_FILES ;;
10632   esac
10633   shift
10634   for mf
10635   do
10636     # Strip MF so we end up with the name of the file.
10637     mf=`echo "$mf" | sed -e 's/:.*$//'`
10638     # Check whether this is an Automake generated Makefile or not.
10639     # We used to match only the files named `Makefile.in', but
10640     # some people rename them; so instead we look at the file content.
10641     # Grep'ing the first line is not enough: some people post-process
10642     # each Makefile.in and add a new line on top of each file to say so.
10643     # Grep'ing the whole file is not good either: AIX grep has a line
10644     # limit of 2048, but all sed's we know have understand at least 4000.
10645     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10646       dirpart=`$as_dirname -- "$mf" ||
10647 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10648          X"$mf" : 'X\(//\)[^/]' \| \
10649          X"$mf" : 'X\(//\)$' \| \
10650          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10651 $as_echo X"$mf" |
10652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10653             s//\1/
10654             q
10655           }
10656           /^X\(\/\/\)[^/].*/{
10657             s//\1/
10658             q
10659           }
10660           /^X\(\/\/\)$/{
10661             s//\1/
10662             q
10663           }
10664           /^X\(\/\).*/{
10665             s//\1/
10666             q
10667           }
10668           s/.*/./; q'`
10669     else
10670       continue
10671     fi
10672     # Extract the definition of DEPDIR, am__include, and am__quote
10673     # from the Makefile without running `make'.
10674     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10675     test -z "$DEPDIR" && continue
10676     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10677     test -z "am__include" && continue
10678     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10679     # When using ansi2knr, U may be empty or an underscore; expand it
10680     U=`sed -n 's/^U = //p' < "$mf"`
10681     # Find all dependency output files, they are included files with
10682     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10683     # simplest approach to changing $(DEPDIR) to its actual value in the
10684     # expansion.
10685     for file in `sed -n "
10686       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10687          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10688       # Make sure the directory exists.
10689       test -f "$dirpart/$file" && continue
10690       fdir=`$as_dirname -- "$file" ||
10691 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10692          X"$file" : 'X\(//\)[^/]' \| \
10693          X"$file" : 'X\(//\)$' \| \
10694          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10695 $as_echo X"$file" |
10696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10697             s//\1/
10698             q
10699           }
10700           /^X\(\/\/\)[^/].*/{
10701             s//\1/
10702             q
10703           }
10704           /^X\(\/\/\)$/{
10705             s//\1/
10706             q
10707           }
10708           /^X\(\/\).*/{
10709             s//\1/
10710             q
10711           }
10712           s/.*/./; q'`
10713       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10714       # echo "creating $dirpart/$file"
10715       echo '# dummy' > "$dirpart/$file"
10716     done
10717   done
10718 }
10719  ;;
10720     "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10721     "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10722     "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10723     "coregrind/link_tool_exe_l4re":F) chmod +x coregrind/link_tool_exe_l4re ;;
10724
10725   esac
10726 done # for ac_tag
10727
10728
10729 as_fn_exit 0
10730 _ACEOF
10731 ac_clean_files=$ac_clean_files_save
10732
10733 test $ac_write_fail = 0 ||
10734   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10735
10736
10737 # configure is writing to config.log, and then calls config.status.
10738 # config.status does its own redirection, appending to config.log.
10739 # Unfortunately, on DOS this fails, as config.log is still kept open
10740 # by configure, so config.status won't be able to write to it; its
10741 # output is simply discarded.  So we exec the FD to /dev/null,
10742 # effectively closing config.log, so it can be properly (re)opened and
10743 # appended to by config.status.  When coming back to configure, we
10744 # need to make the FD available again.
10745 if test "$no_create" != yes; then
10746   ac_cs_success=:
10747   ac_config_status_args=
10748   test "$silent" = yes &&
10749     ac_config_status_args="$ac_config_status_args --quiet"
10750   exec 5>/dev/null
10751   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10752   exec 5>>config.log
10753   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10754   # would make configure fail if this is the last instruction.
10755   $ac_cs_success || as_fn_exit $?
10756 fi
10757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10759 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10760 fi
10761
10762
10763 cat<<EOF
10764
10765          Maximum build arch: ${ARCH_MAX}
10766          Primary build arch: ${VGCONF_ARCH_PRI}
10767        Secondary build arch: ${VGCONF_ARCH_SEC}
10768                    Build OS: ${VGCONF_OS}
10769        Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10770      Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10771          Default supp files: ${DEFAULT_SUPP}
10772        Generated supp files: ${GENERATED_SUPP}
10773
10774 EOF