]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/configure
e4e6e9696f1ef44b096051caacdebd517a682d22
[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.69 for Valgrind 3.7.0.SVN.
4 #
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: valgrind-users@lists.sourceforge.net about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Valgrind'
582 PACKAGE_TARNAME='valgrind'
583 PACKAGE_VERSION='3.7.0.SVN'
584 PACKAGE_STRING='Valgrind 3.7.0.SVN'
585 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
586 PACKAGE_URL=''
587
588 ac_unique_file="coregrind/m_main.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_header_list=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 HAVE_BUILTIN_ATOMIC_CXX_FALSE
630 HAVE_BUILTIN_ATOMIC_CXX_TRUE
631 HAVE_BUILTIN_ATOMIC_FALSE
632 HAVE_BUILTIN_ATOMIC_TRUE
633 HAVE_OPENMP_FALSE
634 HAVE_OPENMP_TRUE
635 HAVE_BOOST_1_35_FALSE
636 HAVE_BOOST_1_35_TRUE
637 BOOST_LIBS
638 BOOST_CFLAGS
639 BUILD_MPIWRAP_SEC_FALSE
640 BUILD_MPIWRAP_SEC_TRUE
641 BUILD_MPIWRAP_PRI_FALSE
642 BUILD_MPIWRAP_PRI_TRUE
643 MPI_CC
644 HAVE_PTHREAD_SPINLOCK_FALSE
645 HAVE_PTHREAD_SPINLOCK_TRUE
646 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
647 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
648 HAVE_PTHREAD_BARRIER_FALSE
649 HAVE_PTHREAD_BARRIER_TRUE
650 LIBOBJS
651 BUILD_SSE42_TESTS_FALSE
652 BUILD_SSE42_TESTS_TRUE
653 BUILD_LZCNT_TESTS_FALSE
654 BUILD_LZCNT_TESTS_TRUE
655 BUILD_PCLMULQDQ_TESTS_FALSE
656 BUILD_PCLMULQDQ_TESTS_TRUE
657 BUILD_SSSE3_TESTS_FALSE
658 BUILD_SSSE3_TESTS_TRUE
659 BUILD_SSE3_TESTS_FALSE
660 BUILD_SSE3_TESTS_TRUE
661 FLAG_NO_BUILD_ID
662 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
663 FLAG_FNO_STACK_PROTECTOR
664 FLAG_W_EXTRA
665 FLAG_W_NO_UNINITIALIZED
666 FLAG_W_NO_OVERFLOW
667 FLAG_W_NO_NONNULL
668 FLAG_W_NO_FORMAT_ZERO_LENGTH
669 FLAG_W_NO_EMPTY_BODY
670 PREFERRED_STACK_BOUNDARY
671 FLAG_MSSE
672 FLAG_MMMX
673 FLAG_MAIX64
674 FLAG_M64
675 FLAG_MAIX32
676 FLAG_M32
677 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
678 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
679 HAS_VSX_FALSE
680 HAS_VSX_TRUE
681 HAS_ALTIVEC_FALSE
682 HAS_ALTIVEC_TRUE
683 GLIBC_VERSION
684 EGREP
685 GREP
686 GENERATED_SUPP
687 DEFAULT_SUPP
688 VALT_LOAD_ADDRESS_SEC
689 VALT_LOAD_ADDRESS_PRI
690 VGCONF_HAVE_PLATFORM_SEC_FALSE
691 VGCONF_HAVE_PLATFORM_SEC_TRUE
692 VGCONF_OS_IS_L4RE_FALSE
693 VGCONF_OS_IS_L4RE_TRUE
694 VGCONF_OS_IS_DARWIN_FALSE
695 VGCONF_OS_IS_DARWIN_TRUE
696 VGCONF_OS_IS_AIX5_FALSE
697 VGCONF_OS_IS_AIX5_TRUE
698 VGCONF_OS_IS_LINUX_FALSE
699 VGCONF_OS_IS_LINUX_TRUE
700 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
701 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
702 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
703 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
704 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
705 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
706 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
707 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
708 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
709 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
710 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE
711 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE
712 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
713 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
714 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
715 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
716 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
717 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
718 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
719 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
720 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
721 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
722 VGCONF_ARCHS_INCLUDE_S390X_FALSE
723 VGCONF_ARCHS_INCLUDE_S390X_TRUE
724 VGCONF_ARCHS_INCLUDE_ARM_FALSE
725 VGCONF_ARCHS_INCLUDE_ARM_TRUE
726 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
727 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
728 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
729 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
730 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
731 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
732 VGCONF_ARCHS_INCLUDE_X86_FALSE
733 VGCONF_ARCHS_INCLUDE_X86_TRUE
734 VGCONF_PLATFORM_SEC_CAPS
735 VGCONF_PLATFORM_PRI_CAPS
736 VGCONF_ARCH_SEC
737 VGCONF_ARCH_PRI
738 VGCONF_OS
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 DIFF
748 am__fastdepCCAS_FALSE
749 am__fastdepCCAS_TRUE
750 CCASDEPMODE
751 CCASFLAGS
752 CCAS
753 GDB
754 PERL
755 AR
756 SED
757 RANLIB
758 am__fastdepCXX_FALSE
759 am__fastdepCXX_TRUE
760 CXXDEPMODE
761 ac_ct_CXX
762 CXXFLAGS
763 CXX
764 CPP
765 am__fastdepCC_FALSE
766 am__fastdepCC_TRUE
767 CCDEPMODE
768 AMDEPBACKSLASH
769 AMDEP_FALSE
770 AMDEP_TRUE
771 am__quote
772 am__include
773 DEPDIR
774 OBJEXT
775 EXEEXT
776 ac_ct_CC
777 CPPFLAGS
778 LDFLAGS
779 CFLAGS
780 CC
781 LN_S
782 MAINT
783 MAINTAINER_MODE_FALSE
784 MAINTAINER_MODE_TRUE
785 am__untar
786 am__tar
787 AMTAR
788 am__leading_dot
789 SET_MAKE
790 AWK
791 mkdir_p
792 MKDIR_P
793 INSTALL_STRIP_PROGRAM
794 STRIP
795 install_sh
796 MAKEINFO
797 AUTOHEADER
798 AUTOMAKE
799 AUTOCONF
800 ACLOCAL
801 VERSION
802 PACKAGE
803 CYGPATH_W
804 am__isrc
805 INSTALL_DATA
806 INSTALL_SCRIPT
807 INSTALL_PROGRAM
808 target_alias
809 host_alias
810 build_alias
811 LIBS
812 ECHO_T
813 ECHO_N
814 ECHO_C
815 DEFS
816 mandir
817 localedir
818 libdir
819 psdir
820 pdfdir
821 dvidir
822 htmldir
823 infodir
824 docdir
825 oldincludedir
826 includedir
827 localstatedir
828 sharedstatedir
829 sysconfdir
830 datadir
831 datarootdir
832 libexecdir
833 sbindir
834 bindir
835 program_transform_name
836 prefix
837 exec_prefix
838 PACKAGE_URL
839 PACKAGE_BUGREPORT
840 PACKAGE_STRING
841 PACKAGE_VERSION
842 PACKAGE_TARNAME
843 PACKAGE_NAME
844 PATH_SEPARATOR
845 SHELL'
846 ac_subst_files=''
847 ac_user_opts='
848 enable_option_checking
849 enable_maintainer_mode
850 enable_dependency_tracking
851 enable_only64bit
852 enable_only32bit
853 enable_inner
854 enable_tls
855 with_mpicc
856 '
857       ac_precious_vars='build_alias
858 host_alias
859 target_alias
860 CC
861 CFLAGS
862 LDFLAGS
863 LIBS
864 CPPFLAGS
865 CPP
866 CXX
867 CXXFLAGS
868 CCC
869 AR
870 CCAS
871 CCASFLAGS'
872
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926   # If the previous option needs an argument, assign it.
927   if test -n "$ac_prev"; then
928     eval $ac_prev=\$ac_option
929     ac_prev=
930     continue
931   fi
932
933   case $ac_option in
934   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935   *=)   ac_optarg= ;;
936   *)    ac_optarg=yes ;;
937   esac
938
939   # Accept the important Cygnus configure options, so we can diagnose typos.
940
941   case $ac_dashdash$ac_option in
942   --)
943     ac_dashdash=yes ;;
944
945   -bindir | --bindir | --bindi | --bind | --bin | --bi)
946     ac_prev=bindir ;;
947   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948     bindir=$ac_optarg ;;
949
950   -build | --build | --buil | --bui | --bu)
951     ac_prev=build_alias ;;
952   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953     build_alias=$ac_optarg ;;
954
955   -cache-file | --cache-file | --cache-fil | --cache-fi \
956   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957     ac_prev=cache_file ;;
958   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960     cache_file=$ac_optarg ;;
961
962   --config-cache | -C)
963     cache_file=config.cache ;;
964
965   -datadir | --datadir | --datadi | --datad)
966     ac_prev=datadir ;;
967   -datadir=* | --datadir=* | --datadi=* | --datad=*)
968     datadir=$ac_optarg ;;
969
970   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971   | --dataroo | --dataro | --datar)
972     ac_prev=datarootdir ;;
973   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975     datarootdir=$ac_optarg ;;
976
977   -disable-* | --disable-*)
978     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981       as_fn_error $? "invalid feature name: $ac_useropt"
982     ac_useropt_orig=$ac_useropt
983     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984     case $ac_user_opts in
985       *"
986 "enable_$ac_useropt"
987 "*) ;;
988       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989          ac_unrecognized_sep=', ';;
990     esac
991     eval enable_$ac_useropt=no ;;
992
993   -docdir | --docdir | --docdi | --doc | --do)
994     ac_prev=docdir ;;
995   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996     docdir=$ac_optarg ;;
997
998   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999     ac_prev=dvidir ;;
1000   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001     dvidir=$ac_optarg ;;
1002
1003   -enable-* | --enable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163     ac_prev=sbindir ;;
1164   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165   | --sbi=* | --sb=*)
1166     sbindir=$ac_optarg ;;
1167
1168   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170   | --sharedst | --shareds | --shared | --share | --shar \
1171   | --sha | --sh)
1172     ac_prev=sharedstatedir ;;
1173   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176   | --sha=* | --sh=*)
1177     sharedstatedir=$ac_optarg ;;
1178
1179   -site | --site | --sit)
1180     ac_prev=site ;;
1181   -site=* | --site=* | --sit=*)
1182     site=$ac_optarg ;;
1183
1184   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185     ac_prev=srcdir ;;
1186   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187     srcdir=$ac_optarg ;;
1188
1189   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190   | --syscon | --sysco | --sysc | --sys | --sy)
1191     ac_prev=sysconfdir ;;
1192   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194     sysconfdir=$ac_optarg ;;
1195
1196   -target | --target | --targe | --targ | --tar | --ta | --t)
1197     ac_prev=target_alias ;;
1198   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199     target_alias=$ac_optarg ;;
1200
1201   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202     verbose=yes ;;
1203
1204   -version | --version | --versio | --versi | --vers | -V)
1205     ac_init_version=: ;;
1206
1207   -with-* | --with-*)
1208     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209     # Reject names that are not valid shell variable names.
1210     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211       as_fn_error $? "invalid package name: $ac_useropt"
1212     ac_useropt_orig=$ac_useropt
1213     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214     case $ac_user_opts in
1215       *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219          ac_unrecognized_sep=', ';;
1220     esac
1221     eval with_$ac_useropt=\$ac_optarg ;;
1222
1223   -without-* | --without-*)
1224     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227       as_fn_error $? "invalid package name: $ac_useropt"
1228     ac_useropt_orig=$ac_useropt
1229     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230     case $ac_user_opts in
1231       *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235          ac_unrecognized_sep=', ';;
1236     esac
1237     eval with_$ac_useropt=no ;;
1238
1239   --x)
1240     # Obsolete; use --with-x.
1241     with_x=yes ;;
1242
1243   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244   | --x-incl | --x-inc | --x-in | --x-i)
1245     ac_prev=x_includes ;;
1246   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248     x_includes=$ac_optarg ;;
1249
1250   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252     ac_prev=x_libraries ;;
1253   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255     x_libraries=$ac_optarg ;;
1256
1257   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259     ;;
1260
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     case $ac_envvar in #(
1265       '' | [0-9]* | *[!_$as_cr_alnum]* )
1266       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267     esac
1268     eval $ac_envvar=\$ac_optarg
1269     export $ac_envvar ;;
1270
1271   *)
1272     # FIXME: should be removed in autoconf 3.0.
1273     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277     ;;
1278
1279   esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284   as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288   case $enable_option_checking in
1289     no) ;;
1290     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292   esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297                 datadir sysconfdir sharedstatedir localstatedir includedir \
1298                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299                 libdir localedir mandir
1300 do
1301   eval ac_val=\$$ac_var
1302   # Remove trailing slashes.
1303   case $ac_val in
1304     */ )
1305       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306       eval $ac_var=\$ac_val;;
1307   esac
1308   # Be sure to have absolute directory names.
1309   case $ac_val in
1310     [\\/$]* | ?:[\\/]* )  continue;;
1311     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312   esac
1313   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387         pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390   srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_env_${ac_var}_value=\$${ac_var}
1401   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409   # Omit some internal or obsolete options to make the list less imposing.
1410   # This message is too long to be a string in the A/UX 3.1 sh.
1411   cat <<_ACEOF
1412 \`configure' configures Valgrind 3.7.0.SVN to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE.  See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422   -h, --help              display this help and exit
1423       --help=short        display options specific to this package
1424       --help=recursive    display the short help of all the included packages
1425   -V, --version           display version information and exit
1426   -q, --quiet, --silent   do not print \`checking ...' messages
1427       --cache-file=FILE   cache test results in FILE [disabled]
1428   -C, --config-cache      alias for \`--cache-file=config.cache'
1429   -n, --no-create         do not create output files
1430       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433   --prefix=PREFIX         install architecture-independent files in PREFIX
1434                           [$ac_default_prefix]
1435   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1436                           [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446   --bindir=DIR            user executables [EPREFIX/bin]
1447   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1448   --libexecdir=DIR        program executables [EPREFIX/libexec]
1449   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1450   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1451   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1452   --libdir=DIR            object code libraries [EPREFIX/lib]
1453   --includedir=DIR        C header files [PREFIX/include]
1454   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1455   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1456   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1457   --infodir=DIR           info documentation [DATAROOTDIR/info]
1458   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1459   --mandir=DIR            man documentation [DATAROOTDIR/man]
1460   --docdir=DIR            documentation root [DATAROOTDIR/doc/valgrind]
1461   --htmldir=DIR           html documentation [DOCDIR]
1462   --dvidir=DIR            dvi documentation [DOCDIR]
1463   --pdfdir=DIR            pdf documentation [DOCDIR]
1464   --psdir=DIR             ps documentation [DOCDIR]
1465 _ACEOF
1466
1467   cat <<\_ACEOF
1468
1469 Program names:
1470   --program-prefix=PREFIX            prepend PREFIX to installed program names
1471   --program-suffix=SUFFIX            append SUFFIX to installed program names
1472   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1473
1474 System types:
1475   --build=BUILD     configure for building on BUILD [guessed]
1476   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481   case $ac_init_help in
1482      short | recursive ) echo "Configuration of Valgrind 3.7.0.SVN:";;
1483    esac
1484   cat <<\_ACEOF
1485
1486 Optional Features:
1487   --disable-option-checking  ignore unrecognized --enable/--with options
1488   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490   --enable-maintainer-mode  enable make rules and dependencies not useful
1491                           (and sometimes confusing) to the casual installer
1492   --disable-dependency-tracking  speeds up one-time build
1493   --enable-dependency-tracking   do not reject slow dependency extractors
1494   --enable-only64bit      do a 64-bit only build
1495   --enable-only32bit      do a 32-bit only build
1496   --enable-inner          enables self-hosting
1497   --enable-tls            platform supports TLS
1498
1499 Optional Packages:
1500   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1501   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1502   --with-mpicc=           Specify name of MPI2-ised C compiler
1503
1504 Some influential environment variables:
1505   CC          C compiler command
1506   CFLAGS      C compiler flags
1507   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508               nonstandard directory <lib dir>
1509   LIBS        libraries to pass to the linker, e.g. -l<library>
1510   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511               you have headers in a nonstandard directory <include dir>
1512   CPP         C preprocessor
1513   CXX         C++ compiler command
1514   CXXFLAGS    C++ compiler flags
1515   AR          Archiver command
1516   CCAS        assembler compiler command (defaults to CC)
1517   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to <valgrind-users@lists.sourceforge.net>.
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" ||
1531       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532       continue
1533     ac_builddir=.
1534
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *)
1538   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1539   # A ".." for each directory in $ac_dir_suffix.
1540   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541   case $ac_top_builddir_sub in
1542   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544   esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1550
1551 case $srcdir in
1552   .)  # We are building in place.
1553     ac_srcdir=.
1554     ac_top_srcdir=$ac_top_builddir_sub
1555     ac_abs_top_srcdir=$ac_pwd ;;
1556   [\\/]* | ?:[\\/]* )  # Absolute name.
1557     ac_srcdir=$srcdir$ac_dir_suffix;
1558     ac_top_srcdir=$srcdir
1559     ac_abs_top_srcdir=$srcdir ;;
1560   *) # Relative name.
1561     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562     ac_top_srcdir=$ac_top_build_prefix$srcdir
1563     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567     cd "$ac_dir" || { ac_status=$?; continue; }
1568     # Check for guested configure.
1569     if test -f "$ac_srcdir/configure.gnu"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572     elif test -f "$ac_srcdir/configure"; then
1573       echo &&
1574       $SHELL "$ac_srcdir/configure" --help=recursive
1575     else
1576       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577     fi || ac_status=$?
1578     cd "$ac_pwd" || { ac_status=$?; break; }
1579   done
1580 fi
1581
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584   cat <<\_ACEOF
1585 Valgrind configure 3.7.0.SVN
1586 generated by GNU Autoconf 2.69
1587
1588 Copyright (C) 2012 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1591 _ACEOF
1592   exit
1593 fi
1594
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1598
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   rm -f conftest.$ac_objext
1606   if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609   *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613   (eval "$ac_compile") 2>conftest.err
1614   ac_status=$?
1615   if test -s conftest.err; then
1616     grep -v '^ *+' conftest.err >conftest.er1
1617     cat conftest.er1 >&5
1618     mv -f conftest.er1 conftest.err
1619   fi
1620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621   test $ac_status = 0; } && {
1622          test -z "$ac_c_werror_flag" ||
1623          test ! -s conftest.err
1624        } && test -s conftest.$ac_objext; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630         ac_retval=1
1631 fi
1632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633   as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_compile
1636
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_cpp ()
1641 {
1642   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643   if { { ac_try="$ac_cpp conftest.$ac_ext"
1644 case "(($ac_try" in
1645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646   *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651   ac_status=$?
1652   if test -s conftest.err; then
1653     grep -v '^ *+' conftest.err >conftest.er1
1654     cat conftest.er1 >&5
1655     mv -f conftest.er1 conftest.err
1656   fi
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; } > conftest.i && {
1659          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660          test ! -s conftest.err
1661        }; then :
1662   ac_retval=0
1663 else
1664   $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667     ac_retval=1
1668 fi
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670   as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_cpp
1673
1674 # ac_fn_cxx_try_compile LINENO
1675 # ----------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_cxx_try_compile ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   rm -f conftest.$ac_objext
1681   if { { ac_try="$ac_compile"
1682 case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_compile") 2>conftest.err
1689   ac_status=$?
1690   if test -s conftest.err; then
1691     grep -v '^ *+' conftest.err >conftest.er1
1692     cat conftest.er1 >&5
1693     mv -f conftest.er1 conftest.err
1694   fi
1695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696   test $ac_status = 0; } && {
1697          test -z "$ac_cxx_werror_flag" ||
1698          test ! -s conftest.err
1699        } && test -s conftest.$ac_objext; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705         ac_retval=1
1706 fi
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708   as_fn_set_status $ac_retval
1709
1710 } # ac_fn_cxx_try_compile
1711
1712 # ac_fn_c_try_link LINENO
1713 # -----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_link ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   rm -f conftest.$ac_objext conftest$ac_exeext
1719   if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_link") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } && {
1735          test -z "$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        } && test -s conftest$ac_exeext && {
1738          test "$cross_compiling" = yes ||
1739          test -x conftest$ac_exeext
1740        }; then :
1741   ac_retval=0
1742 else
1743   $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746         ac_retval=1
1747 fi
1748   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750   # interfere with the next link command; also delete a directory that is
1751   # left behind by Apple's compiler.  We do this before executing the actions.
1752   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_link
1757
1758 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1761 # the include files in INCLUDES and setting the cache variable VAR
1762 # accordingly.
1763 ac_fn_c_check_header_mongrel ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   if eval \${$3+:} false; then :
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770   $as_echo_n "(cached) " >&6
1771 fi
1772 eval ac_res=\$$3
1773                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 else
1776   # Is the header compilable?
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1778 $as_echo_n "checking $2 usability... " >&6; }
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h.  */
1781 $4
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785   ac_header_compiler=yes
1786 else
1787   ac_header_compiler=no
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1791 $as_echo "$ac_header_compiler" >&6; }
1792
1793 # Is the header present?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1795 $as_echo_n "checking $2 presence... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h.  */
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_cpp "$LINENO"; then :
1801   ac_header_preproc=yes
1802 else
1803   ac_header_preproc=no
1804 fi
1805 rm -f conftest.err conftest.i conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1807 $as_echo "$ac_header_preproc" >&6; }
1808
1809 # So?  What about this header?
1810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1811   yes:no: )
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1813 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816     ;;
1817   no:yes:* )
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1819 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1821 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1823 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1825 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ( $as_echo "## --------------------------------------------------- ##
1829 ## Report this to valgrind-users@lists.sourceforge.net ##
1830 ## --------------------------------------------------- ##"
1831      ) | sed "s/^/$as_me: WARNING:     /" >&2
1832     ;;
1833 esac
1834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837   $as_echo_n "(cached) " >&6
1838 else
1839   eval "$3=\$ac_header_compiler"
1840 fi
1841 eval ac_res=\$$3
1842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 fi
1845   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_header_mongrel
1848
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_link") 2>&5
1864   ac_status=$?
1865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867   { { case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_try") 2>&5
1874   ac_status=$?
1875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876   test $ac_status = 0; }; }; then :
1877   ac_retval=0
1878 else
1879   $as_echo "$as_me: program exited with status $ac_status" >&5
1880        $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883        ac_retval=$ac_status
1884 fi
1885   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887   as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_run
1890
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901   $as_echo_n "(cached) " >&6
1902 else
1903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909   eval "$3=yes"
1910 else
1911   eval "$3=no"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_header_compile
1921
1922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1923 # -------------------------------------------
1924 # Tests whether TYPE exists after having included INCLUDES, setting cache
1925 # variable VAR accordingly.
1926 ac_fn_c_check_type ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932   $as_echo_n "(cached) " >&6
1933 else
1934   eval "$3=no"
1935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 $4
1938 int
1939 main ()
1940 {
1941 if (sizeof ($2))
1942          return 0;
1943   ;
1944   return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h.  */
1950 $4
1951 int
1952 main ()
1953 {
1954 if (sizeof (($2)))
1955             return 0;
1956   ;
1957   return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961
1962 else
1963   eval "$3=yes"
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_type
1975
1976 # ac_fn_c_check_func LINENO FUNC VAR
1977 # ----------------------------------
1978 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1979 ac_fn_c_check_func ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985   $as_echo_n "(cached) " >&6
1986 else
1987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1991 #define $2 innocuous_$2
1992
1993 /* System header to define __stub macros and hopefully few prototypes,
1994     which can conflict with char $2 (); below.
1995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1996     <limits.h> exists even on freestanding compilers.  */
1997
1998 #ifdef __STDC__
1999 # include <limits.h>
2000 #else
2001 # include <assert.h>
2002 #endif
2003
2004 #undef $2
2005
2006 /* Override any GCC internal prototype to avoid an error.
2007    Use char because int might match the return type of a GCC
2008    builtin and then its argument prototype would still apply.  */
2009 #ifdef __cplusplus
2010 extern "C"
2011 #endif
2012 char $2 ();
2013 /* The GNU C library defines this for functions which it implements
2014     to always fail with ENOSYS.  Some functions are actually named
2015     something starting with __ and the normal name is an alias.  */
2016 #if defined __stub_$2 || defined __stub___$2
2017 choke me
2018 #endif
2019
2020 int
2021 main ()
2022 {
2023 return $2 ();
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_link "$LINENO"; then :
2029   eval "$3=yes"
2030 else
2031   eval "$3=no"
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext \
2034     conftest$ac_exeext conftest.$ac_ext
2035 fi
2036 eval ac_res=\$$3
2037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041 } # ac_fn_c_check_func
2042
2043 # ac_fn_cxx_try_link LINENO
2044 # -------------------------
2045 # Try to link conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_cxx_try_link ()
2047 {
2048   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049   rm -f conftest.$ac_objext conftest$ac_exeext
2050   if { { ac_try="$ac_link"
2051 case "(($ac_try" in
2052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053   *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057   (eval "$ac_link") 2>conftest.err
2058   ac_status=$?
2059   if test -s conftest.err; then
2060     grep -v '^ *+' conftest.err >conftest.er1
2061     cat conftest.er1 >&5
2062     mv -f conftest.er1 conftest.err
2063   fi
2064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065   test $ac_status = 0; } && {
2066          test -z "$ac_cxx_werror_flag" ||
2067          test ! -s conftest.err
2068        } && test -s conftest$ac_exeext && {
2069          test "$cross_compiling" = yes ||
2070          test -x conftest$ac_exeext
2071        }; then :
2072   ac_retval=0
2073 else
2074   $as_echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077         ac_retval=1
2078 fi
2079   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2080   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2081   # interfere with the next link command; also delete a directory that is
2082   # left behind by Apple's compiler.  We do this before executing the actions.
2083   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2084   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085   as_fn_set_status $ac_retval
2086
2087 } # ac_fn_cxx_try_link
2088 cat >config.log <<_ACEOF
2089 This file contains any messages produced by compilers while
2090 running configure, to aid debugging if configure makes a mistake.
2091
2092 It was created by Valgrind $as_me 3.7.0.SVN, which was
2093 generated by GNU Autoconf 2.69.  Invocation command line was
2094
2095   $ $0 $@
2096
2097 _ACEOF
2098 exec 5>>config.log
2099 {
2100 cat <<_ASUNAME
2101 ## --------- ##
2102 ## Platform. ##
2103 ## --------- ##
2104
2105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2110
2111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2112 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2113
2114 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2115 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2117 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2118 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2119 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2120 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2121
2122 _ASUNAME
2123
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129     $as_echo "PATH: $as_dir"
2130   done
2131 IFS=$as_save_IFS
2132
2133 } >&5
2134
2135 cat >&5 <<_ACEOF
2136
2137
2138 ## ----------- ##
2139 ## Core tests. ##
2140 ## ----------- ##
2141
2142 _ACEOF
2143
2144
2145 # Keep a trace of the command line.
2146 # Strip out --no-create and --no-recursion so they do not pile up.
2147 # Strip out --silent because we don't want to record it for future runs.
2148 # Also quote any args containing shell meta-characters.
2149 # Make two passes to allow for proper duplicate-argument suppression.
2150 ac_configure_args=
2151 ac_configure_args0=
2152 ac_configure_args1=
2153 ac_must_keep_next=false
2154 for ac_pass in 1 2
2155 do
2156   for ac_arg
2157   do
2158     case $ac_arg in
2159     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2160     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2161     | -silent | --silent | --silen | --sile | --sil)
2162       continue ;;
2163     *\'*)
2164       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2165     esac
2166     case $ac_pass in
2167     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2168     2)
2169       as_fn_append ac_configure_args1 " '$ac_arg'"
2170       if test $ac_must_keep_next = true; then
2171         ac_must_keep_next=false # Got value, back to normal.
2172       else
2173         case $ac_arg in
2174           *=* | --config-cache | -C | -disable-* | --disable-* \
2175           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2176           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2177           | -with-* | --with-* | -without-* | --without-* | --x)
2178             case "$ac_configure_args0 " in
2179               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2180             esac
2181             ;;
2182           -* ) ac_must_keep_next=true ;;
2183         esac
2184       fi
2185       as_fn_append ac_configure_args " '$ac_arg'"
2186       ;;
2187     esac
2188   done
2189 done
2190 { ac_configure_args0=; unset ac_configure_args0;}
2191 { ac_configure_args1=; unset ac_configure_args1;}
2192
2193 # When interrupted or exit'd, cleanup temporary files, and complete
2194 # config.log.  We remove comments because anyway the quotes in there
2195 # would cause problems or look ugly.
2196 # WARNING: Use '\'' to represent an apostrophe within the trap.
2197 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2198 trap 'exit_status=$?
2199   # Save into config.log some information that might help in debugging.
2200   {
2201     echo
2202
2203     $as_echo "## ---------------- ##
2204 ## Cache variables. ##
2205 ## ---------------- ##"
2206     echo
2207     # The following way of writing the cache mishandles newlines in values,
2208 (
2209   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2210     eval ac_val=\$$ac_var
2211     case $ac_val in #(
2212     *${as_nl}*)
2213       case $ac_var in #(
2214       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2216       esac
2217       case $ac_var in #(
2218       _ | IFS | as_nl) ;; #(
2219       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2220       *) { eval $ac_var=; unset $ac_var;} ;;
2221       esac ;;
2222     esac
2223   done
2224   (set) 2>&1 |
2225     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2226     *${as_nl}ac_space=\ *)
2227       sed -n \
2228         "s/'\''/'\''\\\\'\'''\''/g;
2229           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2230       ;; #(
2231     *)
2232       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2233       ;;
2234     esac |
2235     sort
2236 )
2237     echo
2238
2239     $as_echo "## ----------------- ##
2240 ## Output variables. ##
2241 ## ----------------- ##"
2242     echo
2243     for ac_var in $ac_subst_vars
2244     do
2245       eval ac_val=\$$ac_var
2246       case $ac_val in
2247       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2248       esac
2249       $as_echo "$ac_var='\''$ac_val'\''"
2250     done | sort
2251     echo
2252
2253     if test -n "$ac_subst_files"; then
2254       $as_echo "## ------------------- ##
2255 ## File substitutions. ##
2256 ## ------------------- ##"
2257       echo
2258       for ac_var in $ac_subst_files
2259       do
2260         eval ac_val=\$$ac_var
2261         case $ac_val in
2262         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263         esac
2264         $as_echo "$ac_var='\''$ac_val'\''"
2265       done | sort
2266       echo
2267     fi
2268
2269     if test -s confdefs.h; then
2270       $as_echo "## ----------- ##
2271 ## confdefs.h. ##
2272 ## ----------- ##"
2273       echo
2274       cat confdefs.h
2275       echo
2276     fi
2277     test "$ac_signal" != 0 &&
2278       $as_echo "$as_me: caught signal $ac_signal"
2279     $as_echo "$as_me: exit $exit_status"
2280   } >&5
2281   rm -f core *.core core.conftest.* &&
2282     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2283     exit $exit_status
2284 ' 0
2285 for ac_signal in 1 2 13 15; do
2286   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2287 done
2288 ac_signal=0
2289
2290 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2291 rm -f -r conftest* confdefs.h
2292
2293 $as_echo "/* confdefs.h */" > confdefs.h
2294
2295 # Predefined preprocessor variables.
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_NAME "$PACKAGE_NAME"
2299 _ACEOF
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_STRING "$PACKAGE_STRING"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_URL "$PACKAGE_URL"
2319 _ACEOF
2320
2321
2322 # Let the site file select an alternate cache file if it wants to.
2323 # Prefer an explicitly selected file to automatically selected ones.
2324 ac_site_file1=NONE
2325 ac_site_file2=NONE
2326 if test -n "$CONFIG_SITE"; then
2327   # We do not want a PATH search for config.site.
2328   case $CONFIG_SITE in #((
2329     -*)  ac_site_file1=./$CONFIG_SITE;;
2330     */*) ac_site_file1=$CONFIG_SITE;;
2331     *)   ac_site_file1=./$CONFIG_SITE;;
2332   esac
2333 elif test "x$prefix" != xNONE; then
2334   ac_site_file1=$prefix/share/config.site
2335   ac_site_file2=$prefix/etc/config.site
2336 else
2337   ac_site_file1=$ac_default_prefix/share/config.site
2338   ac_site_file2=$ac_default_prefix/etc/config.site
2339 fi
2340 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2341 do
2342   test "x$ac_site_file" = xNONE && continue
2343   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2344     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2345 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2346     sed 's/^/| /' "$ac_site_file" >&5
2347     . "$ac_site_file" \
2348       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 as_fn_error $? "failed to load site script $ac_site_file
2351 See \`config.log' for more details" "$LINENO" 5; }
2352   fi
2353 done
2354
2355 if test -r "$cache_file"; then
2356   # Some versions of bash will fail to source /dev/null (special files
2357   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2358   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2359     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2360 $as_echo "$as_me: loading cache $cache_file" >&6;}
2361     case $cache_file in
2362       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2363       *)                      . "./$cache_file";;
2364     esac
2365   fi
2366 else
2367   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2368 $as_echo "$as_me: creating cache $cache_file" >&6;}
2369   >$cache_file
2370 fi
2371
2372 as_fn_append ac_header_list " stdlib.h"
2373 as_fn_append ac_header_list " unistd.h"
2374 as_fn_append ac_header_list " sys/param.h"
2375 # Check that the precious variables saved in the cache have kept the same
2376 # value.
2377 ac_cache_corrupted=false
2378 for ac_var in $ac_precious_vars; do
2379   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380   eval ac_new_set=\$ac_env_${ac_var}_set
2381   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382   eval ac_new_val=\$ac_env_${ac_var}_value
2383   case $ac_old_set,$ac_new_set in
2384     set,)
2385       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387       ac_cache_corrupted=: ;;
2388     ,set)
2389       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391       ac_cache_corrupted=: ;;
2392     ,);;
2393     *)
2394       if test "x$ac_old_val" != "x$ac_new_val"; then
2395         # differences in whitespace do not lead to failure.
2396         ac_old_val_w=`echo x $ac_old_val`
2397         ac_new_val_w=`echo x $ac_new_val`
2398         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401           ac_cache_corrupted=:
2402         else
2403           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405           eval $ac_var=\$ac_old_val
2406         fi
2407         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2408 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2409         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2411       fi;;
2412   esac
2413   # Pass precious variables to config.status.
2414   if test "$ac_new_set" = set; then
2415     case $ac_new_val in
2416     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417     *) ac_arg=$ac_var=$ac_new_val ;;
2418     esac
2419     case " $ac_configure_args " in
2420       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2421       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2422     esac
2423   fi
2424 done
2425 if $ac_cache_corrupted; then
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431 fi
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2435
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441
2442
2443
2444 ac_config_headers="$ac_config_headers config.h"
2445
2446 am__api_version='1.11'
2447
2448 ac_aux_dir=
2449 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2450   if test -f "$ac_dir/install-sh"; then
2451     ac_aux_dir=$ac_dir
2452     ac_install_sh="$ac_aux_dir/install-sh -c"
2453     break
2454   elif test -f "$ac_dir/install.sh"; then
2455     ac_aux_dir=$ac_dir
2456     ac_install_sh="$ac_aux_dir/install.sh -c"
2457     break
2458   elif test -f "$ac_dir/shtool"; then
2459     ac_aux_dir=$ac_dir
2460     ac_install_sh="$ac_aux_dir/shtool install -c"
2461     break
2462   fi
2463 done
2464 if test -z "$ac_aux_dir"; then
2465   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2466 fi
2467
2468 # These three variables are undocumented and unsupported,
2469 # and are intended to be withdrawn in a future Autoconf release.
2470 # They can cause serious problems if a builder's source tree is in a directory
2471 # whose full name contains unusual characters.
2472 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2473 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2474 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2475
2476
2477 # Find a good install program.  We prefer a C program (faster),
2478 # so one script is as good as another.  But avoid the broken or
2479 # incompatible versions:
2480 # SysV /etc/install, /usr/sbin/install
2481 # SunOS /usr/etc/install
2482 # IRIX /sbin/install
2483 # AIX /bin/install
2484 # AmigaOS /C/install, which installs bootblocks on floppy discs
2485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488 # OS/2's system install, which has a completely different semantic
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 # Reject install programs that cannot install multiple files.
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2492 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2493 if test -z "$INSTALL"; then
2494 if ${ac_cv_path_install+:} false; then :
2495   $as_echo_n "(cached) " >&6
2496 else
2497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500   IFS=$as_save_IFS
2501   test -z "$as_dir" && as_dir=.
2502     # Account for people who put trailing slashes in PATH elements.
2503 case $as_dir/ in #((
2504   ./ | .// | /[cC]/* | \
2505   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2506   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2507   /usr/ucb/* ) ;;
2508   *)
2509     # OSF1 and SCO ODT 3.0 have their own names for install.
2510     # Don't use installbsd from OSF since it installs stuff as root
2511     # by default.
2512     for ac_prog in ginstall scoinst install; do
2513       for ac_exec_ext in '' $ac_executable_extensions; do
2514         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2515           if test $ac_prog = install &&
2516             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517             # AIX install.  It has an incompatible calling convention.
2518             :
2519           elif test $ac_prog = install &&
2520             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521             # program-specific install script used by HP pwplus--don't use.
2522             :
2523           else
2524             rm -rf conftest.one conftest.two conftest.dir
2525             echo one > conftest.one
2526             echo two > conftest.two
2527             mkdir conftest.dir
2528             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2529               test -s conftest.one && test -s conftest.two &&
2530               test -s conftest.dir/conftest.one &&
2531               test -s conftest.dir/conftest.two
2532             then
2533               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2534               break 3
2535             fi
2536           fi
2537         fi
2538       done
2539     done
2540     ;;
2541 esac
2542
2543   done
2544 IFS=$as_save_IFS
2545
2546 rm -rf conftest.one conftest.two conftest.dir
2547
2548 fi
2549   if test "${ac_cv_path_install+set}" = set; then
2550     INSTALL=$ac_cv_path_install
2551   else
2552     # As a last resort, use the slow shell script.  Don't cache a
2553     # value for INSTALL within a source directory, because that will
2554     # break other packages using the cache if that directory is
2555     # removed, or if the value is a relative name.
2556     INSTALL=$ac_install_sh
2557   fi
2558 fi
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2560 $as_echo "$INSTALL" >&6; }
2561
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2571 $as_echo_n "checking whether build environment is sane... " >&6; }
2572 # Just in case
2573 sleep 1
2574 echo timestamp > conftest.file
2575 # Reject unsafe characters in $srcdir or the absolute working directory
2576 # name.  Accept space and tab only in the latter.
2577 am_lf='
2578 '
2579 case `pwd` in
2580   *[\\\"\#\$\&\'\`$am_lf]*)
2581     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2582 esac
2583 case $srcdir in
2584   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2585     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2586 esac
2587
2588 # Do `set' in a subshell so we don't clobber the current shell's
2589 # arguments.  Must try -L first in case configure is actually a
2590 # symlink; some systems play weird games with the mod time of symlinks
2591 # (eg FreeBSD returns the mod time of the symlink's containing
2592 # directory).
2593 if (
2594    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2595    if test "$*" = "X"; then
2596       # -L didn't work.
2597       set X `ls -t "$srcdir/configure" conftest.file`
2598    fi
2599    rm -f conftest.file
2600    if test "$*" != "X $srcdir/configure conftest.file" \
2601       && test "$*" != "X conftest.file $srcdir/configure"; then
2602
2603       # If neither matched, then we have a broken ls.  This can happen
2604       # if, for instance, CONFIG_SHELL is bash and it inherits a
2605       # broken ls alias from the environment.  This has actually
2606       # happened.  Such a system could not be considered "sane".
2607       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2608 alias in your environment" "$LINENO" 5
2609    fi
2610
2611    test "$2" = conftest.file
2612    )
2613 then
2614    # Ok.
2615    :
2616 else
2617    as_fn_error $? "newly created file is older than distributed files!
2618 Check your system clock" "$LINENO" 5
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 test "$program_prefix" != NONE &&
2623   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2624 # Use a double $ so make ignores it.
2625 test "$program_suffix" != NONE &&
2626   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2627 # Double any \ or $.
2628 # By default was `s,x,x', remove it if useless.
2629 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2630 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2631
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2634
2635 if test x"${MISSING+set}" != xset; then
2636   case $am_aux_dir in
2637   *\ * | *\     *)
2638     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2639   *)
2640     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2641   esac
2642 fi
2643 # Use eval to expand $SHELL
2644 if eval "$MISSING --run true"; then
2645   am_missing_run="$MISSING --run "
2646 else
2647   am_missing_run=
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2649 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2650 fi
2651
2652 if test x"${install_sh}" != xset; then
2653   case $am_aux_dir in
2654   *\ * | *\     *)
2655     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2656   *)
2657     install_sh="\${SHELL} $am_aux_dir/install-sh"
2658   esac
2659 fi
2660
2661 # Installed binaries are usually stripped using `strip' when the user
2662 # run `make install-strip'.  However `strip' might not be the right
2663 # tool to use in cross-compilation environments, therefore Automake
2664 # will honor the `STRIP' environment variable to overrule this program.
2665 if test "$cross_compiling" != no; then
2666   if test -n "$ac_tool_prefix"; then
2667   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}strip; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_STRIP+:} false; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   if test -n "$STRIP"; then
2675   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682     for ac_exec_ext in '' $ac_executable_extensions; do
2683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689   done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 STRIP=$ac_cv_prog_STRIP
2695 if test -n "$STRIP"; then
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2697 $as_echo "$STRIP" >&6; }
2698 else
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 fi
2705 if test -z "$ac_cv_prog_STRIP"; then
2706   ac_ct_STRIP=$STRIP
2707   # Extract the first word of "strip", so it can be a program name with args.
2708 set dummy strip; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   if test -n "$ac_ct_STRIP"; then
2715   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722     for ac_exec_ext in '' $ac_executable_extensions; do
2723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724     ac_cv_prog_ac_ct_STRIP="strip"
2725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726     break 2
2727   fi
2728 done
2729   done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2735 if test -n "$ac_ct_STRIP"; then
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2737 $as_echo "$ac_ct_STRIP" >&6; }
2738 else
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743   if test "x$ac_ct_STRIP" = x; then
2744     STRIP=":"
2745   else
2746     case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2751 esac
2752     STRIP=$ac_ct_STRIP
2753   fi
2754 else
2755   STRIP="$ac_cv_prog_STRIP"
2756 fi
2757
2758 fi
2759 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2762 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2763 if test -z "$MKDIR_P"; then
2764   if ${ac_cv_path_mkdir+:} false; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772     for ac_prog in mkdir gmkdir; do
2773          for ac_exec_ext in '' $ac_executable_extensions; do
2774            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2775            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2776              'mkdir (GNU coreutils) '* | \
2777              'mkdir (coreutils) '* | \
2778              'mkdir (fileutils) '4.1*)
2779                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2780                break 3;;
2781            esac
2782          done
2783        done
2784   done
2785 IFS=$as_save_IFS
2786
2787 fi
2788
2789   test -d ./--version && rmdir ./--version
2790   if test "${ac_cv_path_mkdir+set}" = set; then
2791     MKDIR_P="$ac_cv_path_mkdir -p"
2792   else
2793     # As a last resort, use the slow shell script.  Don't cache a
2794     # value for MKDIR_P within a source directory, because that will
2795     # break other packages using the cache if that directory is
2796     # removed, or if the value is a relative name.
2797     MKDIR_P="$ac_install_sh -d"
2798   fi
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2801 $as_echo "$MKDIR_P" >&6; }
2802
2803 mkdir_p="$MKDIR_P"
2804 case $mkdir_p in
2805   [\\/$]* | ?:[\\/]*) ;;
2806   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2807 esac
2808
2809 for ac_prog in gawk mawk nawk awk
2810 do
2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_AWK+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$AWK"; then
2819   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_AWK="$ac_prog"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 AWK=$ac_cv_prog_AWK
2839 if test -n "$AWK"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848   test -n "$AWK" && break
2849 done
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2853 set x ${MAKE-make}
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   cat >conftest.make <<\_ACEOF
2859 SHELL = /bin/sh
2860 all:
2861         @echo '@@@%%%=$(MAKE)=@@@%%%'
2862 _ACEOF
2863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2865   *@@@%%%=?*=@@@%%%*)
2866     eval ac_cv_prog_make_${ac_make}_set=yes;;
2867   *)
2868     eval ac_cv_prog_make_${ac_make}_set=no;;
2869 esac
2870 rm -f conftest.make
2871 fi
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875   SET_MAKE=
2876 else
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879   SET_MAKE="MAKE=${MAKE-make}"
2880 fi
2881
2882 rm -rf .tst 2>/dev/null
2883 mkdir .tst 2>/dev/null
2884 if test -d .tst; then
2885   am__leading_dot=.
2886 else
2887   am__leading_dot=_
2888 fi
2889 rmdir .tst 2>/dev/null
2890
2891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893   # is not polluted with repeated "-I."
2894   am__isrc=' -I$(srcdir)'
2895   # test to see if srcdir already configured
2896   if test -f $srcdir/config.status; then
2897     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2898   fi
2899 fi
2900
2901 # test whether we have cygpath
2902 if test -z "$CYGPATH_W"; then
2903   if (cygpath --version) >/dev/null 2>/dev/null; then
2904     CYGPATH_W='cygpath -w'
2905   else
2906     CYGPATH_W=echo
2907   fi
2908 fi
2909
2910
2911 # Define the identity of the package.
2912  PACKAGE='valgrind'
2913  VERSION='3.7.0.SVN'
2914
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE "$PACKAGE"
2918 _ACEOF
2919
2920
2921 cat >>confdefs.h <<_ACEOF
2922 #define VERSION "$VERSION"
2923 _ACEOF
2924
2925 # Some tools Automake needs.
2926
2927 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2928
2929
2930 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2931
2932
2933 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2934
2935
2936 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2937
2938
2939 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2940
2941 # We need awk for the "check" target.  The system "awk" is bad on
2942 # some platforms.
2943 # Always define AMTAR for backward compatibility.
2944
2945 AMTAR=${AMTAR-"${am_missing_run}tar"}
2946
2947 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2948
2949
2950
2951
2952
2953
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2956 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2957     # Check whether --enable-maintainer-mode was given.
2958 if test "${enable_maintainer_mode+set}" = set; then :
2959   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2960 else
2961   USE_MAINTAINER_MODE=no
2962 fi
2963
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2965 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2966    if test $USE_MAINTAINER_MODE = yes; then
2967   MAINTAINER_MODE_TRUE=
2968   MAINTAINER_MODE_FALSE='#'
2969 else
2970   MAINTAINER_MODE_TRUE='#'
2971   MAINTAINER_MODE_FALSE=
2972 fi
2973
2974   MAINT=$MAINTAINER_MODE_TRUE
2975
2976
2977
2978 #----------------------------------------------------------------------------
2979 # Checks for various programs.
2980 #----------------------------------------------------------------------------
2981 CFLAGS="-Wno-long-long $CFLAGS"
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2984 $as_echo_n "checking whether ln -s works... " >&6; }
2985 LN_S=$as_ln_s
2986 if test "$LN_S" = "ln -s"; then
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 $as_echo "yes" >&6; }
2989 else
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2991 $as_echo "no, using $LN_S" >&6; }
2992 fi
2993
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   if test -n "$CC"; then
3008   ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     for ac_exec_ext in '' $ac_executable_extensions; do
3016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 fi
3038 if test -z "$ac_cv_prog_CC"; then
3039   ac_ct_CC=$CC
3040   # Extract the first word of "gcc", so it can be a program name with args.
3041 set dummy gcc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   if test -n "$ac_ct_CC"; then
3048   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057     ac_cv_prog_ac_ct_CC="gcc"
3058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062   done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076   if test "x$ac_ct_CC" = x; then
3077     CC=""
3078   else
3079     case $cross_compiling:$ac_tool_warned in
3080 yes:)
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083 ac_tool_warned=yes ;;
3084 esac
3085     CC=$ac_ct_CC
3086   fi
3087 else
3088   CC="$ac_cv_prog_CC"
3089 fi
3090
3091 if test -z "$CC"; then
3092           if test -n "$ac_tool_prefix"; then
3093     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}cc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test -n "$CC"; then
3101   ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110     ac_cv_prog_CC="${ac_tool_prefix}cc"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130   fi
3131 fi
3132 if test -z "$CC"; then
3133   # Extract the first word of "cc", so it can be a program name with args.
3134 set dummy cc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$CC"; then
3141   ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143   ac_prog_rejected=no
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147   IFS=$as_save_IFS
3148   test -z "$as_dir" && as_dir=.
3149     for ac_exec_ext in '' $ac_executable_extensions; do
3150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152        ac_prog_rejected=yes
3153        continue
3154      fi
3155     ac_cv_prog_CC="cc"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 if test $ac_prog_rejected = yes; then
3164   # We found a bogon in the path, so make sure we never use it.
3165   set dummy $ac_cv_prog_CC
3166   shift
3167   if test $# != 0; then
3168     # We chose a different compiler from the bogus one.
3169     # However, it has the same basename, so the bogon will be chosen
3170     # first if we set CC to just the basename; use the full file name.
3171     shift
3172     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173   fi
3174 fi
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$CC"; then
3189   if test -n "$ac_tool_prefix"; then
3190   for ac_prog in cl.exe
3191   do
3192     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   if test -n "$CC"; then
3200   ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205   IFS=$as_save_IFS
3206   test -z "$as_dir" && as_dir=.
3207     for ac_exec_ext in '' $ac_executable_extensions; do
3208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3223 else
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229     test -n "$CC" && break
3230   done
3231 fi
3232 if test -z "$CC"; then
3233   ac_ct_CC=$CC
3234   for ac_prog in cl.exe
3235 do
3236   # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   if test -n "$ac_ct_CC"; then
3244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251     for ac_exec_ext in '' $ac_executable_extensions; do
3252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253     ac_cv_prog_ac_ct_CC="$ac_prog"
3254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258   done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266 $as_echo "$ac_ct_CC" >&6; }
3267 else
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273   test -n "$ac_ct_CC" && break
3274 done
3275
3276   if test "x$ac_ct_CC" = x; then
3277     CC=""
3278   else
3279     case $cross_compiling:$ac_tool_warned in
3280 yes:)
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283 ac_tool_warned=yes ;;
3284 esac
3285     CC=$ac_ct_CC
3286   fi
3287 fi
3288
3289 fi
3290
3291
3292 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "no acceptable C compiler found in \$PATH
3295 See \`config.log' for more details" "$LINENO" 5; }
3296
3297 # Provide some information about the compiler.
3298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3299 set X $ac_compile
3300 ac_compiler=$2
3301 for ac_option in --version -v -V -qversion; do
3302   { { ac_try="$ac_compiler $ac_option >&5"
3303 case "(($ac_try" in
3304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305   *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3310   ac_status=$?
3311   if test -s conftest.err; then
3312     sed '10a\
3313 ... rest of stderr output deleted ...
3314          10q' conftest.err >conftest.er1
3315     cat conftest.er1 >&5
3316   fi
3317   rm -f conftest.er1 conftest.err
3318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319   test $ac_status = 0; }
3320 done
3321
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 ac_clean_files_save=$ac_clean_files
3334 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335 # Try to create an executable without -o first, disregard a.out.
3336 # It will help us diagnose broken compilers, and finding out an intuition
3337 # of exeext.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339 $as_echo_n "checking whether the C compiler works... " >&6; }
3340 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3341
3342 # The possible output files:
3343 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3344
3345 ac_rmfiles=
3346 for ac_file in $ac_files
3347 do
3348   case $ac_file in
3349     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351   esac
3352 done
3353 rm -f $ac_rmfiles
3354
3355 if { { ac_try="$ac_link_default"
3356 case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362   (eval "$ac_link_default") 2>&5
3363   ac_status=$?
3364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365   test $ac_status = 0; }; then :
3366   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3367 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3368 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3369 # so that the user can short-circuit this test for compilers unknown to
3370 # Autoconf.
3371 for ac_file in $ac_files ''
3372 do
3373   test -f "$ac_file" || continue
3374   case $ac_file in
3375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3376         ;;
3377     [ab].out )
3378         # We found the default executable, but exeext='' is most
3379         # certainly right.
3380         break;;
3381     *.* )
3382         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3383         then :; else
3384            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385         fi
3386         # We set ac_cv_exeext here because the later test for it is not
3387         # safe: cross compilers may not add the suffix if given an `-o'
3388         # argument, so we may need to know it at that point already.
3389         # Even if this section looks crufty: it has the advantage of
3390         # actually working.
3391         break;;
3392     * )
3393         break;;
3394   esac
3395 done
3396 test "$ac_cv_exeext" = no && ac_cv_exeext=
3397
3398 else
3399   ac_file=''
3400 fi
3401 if test -z "$ac_file"; then :
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error 77 "C compiler cannot create executables
3410 See \`config.log' for more details" "$LINENO" 5; }
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416 $as_echo_n "checking for C compiler default output file name... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418 $as_echo "$ac_file" >&6; }
3419 ac_exeext=$ac_cv_exeext
3420
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424 $as_echo_n "checking for suffix of executables... " >&6; }
3425 if { { ac_try="$ac_link"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432   (eval "$ac_link") 2>&5
3433   ac_status=$?
3434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435   test $ac_status = 0; }; then :
3436   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 # `rm'.
3440 for ac_file in conftest.exe conftest conftest.*; do
3441   test -f "$ac_file" || continue
3442   case $ac_file in
3443     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445           break;;
3446     * ) break;;
3447   esac
3448 done
3449 else
3450   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details" "$LINENO" 5; }
3454 fi
3455 rm -f conftest conftest$ac_cv_exeext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457 $as_echo "$ac_cv_exeext" >&6; }
3458
3459 rm -f conftest.$ac_ext
3460 EXEEXT=$ac_cv_exeext
3461 ac_exeext=$EXEEXT
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h.  */
3464 #include <stdio.h>
3465 int
3466 main ()
3467 {
3468 FILE *f = fopen ("conftest.out", "w");
3469  return ferror (f) || fclose (f) != 0;
3470
3471   ;
3472   return 0;
3473 }
3474 _ACEOF
3475 ac_clean_files="$ac_clean_files conftest.out"
3476 # Check that the compiler produces executables we can run.  If not, either
3477 # the compiler is broken, or we cross compile.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479 $as_echo_n "checking whether we are cross compiling... " >&6; }
3480 if test "$cross_compiling" != yes; then
3481   { { ac_try="$ac_link"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488   (eval "$ac_link") 2>&5
3489   ac_status=$?
3490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491   test $ac_status = 0; }
3492   if { ac_try='./conftest$ac_cv_exeext'
3493   { { case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499   (eval "$ac_try") 2>&5
3500   ac_status=$?
3501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502   test $ac_status = 0; }; }; then
3503     cross_compiling=no
3504   else
3505     if test "$cross_compiling" = maybe; then
3506         cross_compiling=yes
3507     else
3508         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "cannot run C compiled programs.
3511 If you meant to cross compile, use \`--host'.
3512 See \`config.log' for more details" "$LINENO" 5; }
3513     fi
3514   fi
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517 $as_echo "$cross_compiling" >&6; }
3518
3519 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3520 ac_clean_files=$ac_clean_files_save
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522 $as_echo_n "checking for suffix of object files... " >&6; }
3523 if ${ac_cv_objext+:} false; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.o conftest.obj
3538 if { { ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545   (eval "$ac_compile") 2>&5
3546   ac_status=$?
3547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548   test $ac_status = 0; }; then :
3549   for ac_file in conftest.o conftest.obj conftest.*; do
3550   test -f "$ac_file" || continue;
3551   case $ac_file in
3552     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3553     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554        break;;
3555   esac
3556 done
3557 else
3558   $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "cannot compute suffix of object files: cannot compile
3564 See \`config.log' for more details" "$LINENO" 5; }
3565 fi
3566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569 $as_echo "$ac_cv_objext" >&6; }
3570 OBJEXT=$ac_cv_objext
3571 ac_objext=$OBJEXT
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574 if ${ac_cv_c_compiler_gnu+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583 #ifndef __GNUC__
3584        choke me
3585 #endif
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592   ac_compiler_gnu=yes
3593 else
3594   ac_compiler_gnu=no
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3598
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602 if test $ac_compiler_gnu = yes; then
3603   GCC=yes
3604 else
3605   GCC=
3606 fi
3607 ac_test_CFLAGS=${CFLAGS+set}
3608 ac_save_CFLAGS=$CFLAGS
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3611 if ${ac_cv_prog_cc_g+:} false; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   ac_save_c_werror_flag=$ac_c_werror_flag
3615    ac_c_werror_flag=yes
3616    ac_cv_prog_cc_g=no
3617    CFLAGS="-g"
3618    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h.  */
3620
3621 int
3622 main ()
3623 {
3624
3625   ;
3626   return 0;
3627 }
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630   ac_cv_prog_cc_g=yes
3631 else
3632   CFLAGS=""
3633       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645
3646 else
3647   ac_c_werror_flag=$ac_save_c_werror_flag
3648          CFLAGS="-g"
3649          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661   ac_cv_prog_cc_g=yes
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668    ac_c_werror_flag=$ac_save_c_werror_flag
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671 $as_echo "$ac_cv_prog_cc_g" >&6; }
3672 if test "$ac_test_CFLAGS" = set; then
3673   CFLAGS=$ac_save_CFLAGS
3674 elif test $ac_cv_prog_cc_g = yes; then
3675   if test "$GCC" = yes; then
3676     CFLAGS="-g -O2"
3677   else
3678     CFLAGS="-g"
3679   fi
3680 else
3681   if test "$GCC" = yes; then
3682     CFLAGS="-O2"
3683   else
3684     CFLAGS=
3685   fi
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689 if ${ac_cv_prog_cc_c89+:} false; then :
3690   $as_echo_n "(cached) " >&6
3691 else
3692   ac_cv_prog_cc_c89=no
3693 ac_save_CC=$CC
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h.  */
3696 #include <stdarg.h>
3697 #include <stdio.h>
3698 struct stat;
3699 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3700 struct buf { int x; };
3701 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702 static char *e (p, i)
3703      char **p;
3704      int i;
3705 {
3706   return p[i];
3707 }
3708 static char *f (char * (*g) (char **, int), char **p, ...)
3709 {
3710   char *s;
3711   va_list v;
3712   va_start (v,p);
3713   s = g (p, va_arg (v,int));
3714   va_end (v);
3715   return s;
3716 }
3717
3718 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3719    function prototypes and stuff, but not '\xHH' hex character constants.
3720    These don't provoke an error unfortunately, instead are silently treated
3721    as 'x'.  The following induces an error, until -std is added to get
3722    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3723    array size at least.  It's necessary to write '\x00'==0 to get something
3724    that's true only with -std.  */
3725 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3726
3727 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728    inside strings and character constants.  */
3729 #define FOO(x) 'x'
3730 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3731
3732 int test (int i, double x);
3733 struct s1 {int (*f) (int a);};
3734 struct s2 {int (*f) (double a);};
3735 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3736 int argc;
3737 char **argv;
3738 int
3739 main ()
3740 {
3741 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3742   ;
3743   return 0;
3744 }
3745 _ACEOF
3746 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3748 do
3749   CC="$ac_save_CC $ac_arg"
3750   if ac_fn_c_try_compile "$LINENO"; then :
3751   ac_cv_prog_cc_c89=$ac_arg
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext
3754   test "x$ac_cv_prog_cc_c89" != "xno" && break
3755 done
3756 rm -f conftest.$ac_ext
3757 CC=$ac_save_CC
3758
3759 fi
3760 # AC_CACHE_VAL
3761 case "x$ac_cv_prog_cc_c89" in
3762   x)
3763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764 $as_echo "none needed" >&6; } ;;
3765   xno)
3766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3767 $as_echo "unsupported" >&6; } ;;
3768   *)
3769     CC="$CC $ac_cv_prog_cc_c89"
3770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3771 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3772 esac
3773 if test "x$ac_cv_prog_cc_c89" != xno; then :
3774
3775 fi
3776
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 DEPDIR="${am__leading_dot}deps"
3783
3784 ac_config_commands="$ac_config_commands depfiles"
3785
3786
3787 am_make=${MAKE-make}
3788 cat > confinc << 'END'
3789 am__doit:
3790         @echo this is the am__doit target
3791 .PHONY: am__doit
3792 END
3793 # If we don't find an include directive, just comment out the code.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3795 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3796 am__include="#"
3797 am__quote=
3798 _am_result=none
3799 # First try GNU make style include.
3800 echo "include confinc" > confmf
3801 # Ignore all kinds of additional output from `make'.
3802 case `$am_make -s -f confmf 2> /dev/null` in #(
3803 *the\ am__doit\ target*)
3804   am__include=include
3805   am__quote=
3806   _am_result=GNU
3807   ;;
3808 esac
3809 # Now try BSD make style include.
3810 if test "$am__include" = "#"; then
3811    echo '.include "confinc"' > confmf
3812    case `$am_make -s -f confmf 2> /dev/null` in #(
3813    *the\ am__doit\ target*)
3814      am__include=.include
3815      am__quote="\""
3816      _am_result=BSD
3817      ;;
3818    esac
3819 fi
3820
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3823 $as_echo "$_am_result" >&6; }
3824 rm -f confinc confmf
3825
3826 # Check whether --enable-dependency-tracking was given.
3827 if test "${enable_dependency_tracking+set}" = set; then :
3828   enableval=$enable_dependency_tracking;
3829 fi
3830
3831 if test "x$enable_dependency_tracking" != xno; then
3832   am_depcomp="$ac_aux_dir/depcomp"
3833   AMDEPBACKSLASH='\'
3834 fi
3835  if test "x$enable_dependency_tracking" != xno; then
3836   AMDEP_TRUE=
3837   AMDEP_FALSE='#'
3838 else
3839   AMDEP_TRUE='#'
3840   AMDEP_FALSE=
3841 fi
3842
3843
3844
3845 depcc="$CC"   am_compiler_list=
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3848 $as_echo_n "checking dependency style of $depcc... " >&6; }
3849 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3853   # We make a subdir and do the tests there.  Otherwise we can end up
3854   # making bogus files that we don't know about and never remove.  For
3855   # instance it was reported that on HP-UX the gcc test will end up
3856   # making a dummy file named `D' -- because `-MD' means `put the output
3857   # in D'.
3858   mkdir conftest.dir
3859   # Copy depcomp to subdir because otherwise we won't find it if we're
3860   # using a relative directory.
3861   cp "$am_depcomp" conftest.dir
3862   cd conftest.dir
3863   # We will build objects and dependencies in a subdirectory because
3864   # it helps to detect inapplicable dependency modes.  For instance
3865   # both Tru64's cc and ICC support -MD to output dependencies as a
3866   # side effect of compilation, but ICC will put the dependencies in
3867   # the current directory while Tru64 will put them in the object
3868   # directory.
3869   mkdir sub
3870
3871   am_cv_CC_dependencies_compiler_type=none
3872   if test "$am_compiler_list" = ""; then
3873      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3874   fi
3875   am__universal=false
3876   case " $depcc " in #(
3877      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3878      esac
3879
3880   for depmode in $am_compiler_list; do
3881     # Setup a source with many dependencies, because some compilers
3882     # like to wrap large dependency lists on column 80 (with \), and
3883     # we should not choose a depcomp mode which is confused by this.
3884     #
3885     # We need to recreate these files for each test, as the compiler may
3886     # overwrite some of them when testing with obscure command lines.
3887     # This happens at least with the AIX C compiler.
3888     : > sub/conftest.c
3889     for i in 1 2 3 4 5 6; do
3890       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3891       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3892       # Solaris 8's {/usr,}/bin/sh.
3893       touch sub/conftst$i.h
3894     done
3895     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3896
3897     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3898     # mode.  It turns out that the SunPro C++ compiler does not properly
3899     # handle `-M -o', and we need to detect this.  Also, some Intel
3900     # versions had trouble with output in subdirs
3901     am__obj=sub/conftest.${OBJEXT-o}
3902     am__minus_obj="-o $am__obj"
3903     case $depmode in
3904     gcc)
3905       # This depmode causes a compiler race in universal mode.
3906       test "$am__universal" = false || continue
3907       ;;
3908     nosideeffect)
3909       # after this tag, mechanisms are not by side-effect, so they'll
3910       # only be used when explicitly requested
3911       if test "x$enable_dependency_tracking" = xyes; then
3912         continue
3913       else
3914         break
3915       fi
3916       ;;
3917     msvisualcpp | msvcmsys)
3918       # This compiler won't grok `-c -o', but also, the minuso test has
3919       # not run yet.  These depmodes are late enough in the game, and
3920       # so weak that their functioning should not be impacted.
3921       am__obj=conftest.${OBJEXT-o}
3922       am__minus_obj=
3923       ;;
3924     none) break ;;
3925     esac
3926     if depmode=$depmode \
3927        source=sub/conftest.c object=$am__obj \
3928        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3929        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3930          >/dev/null 2>conftest.err &&
3931        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3932        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3933        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3934        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3935       # icc doesn't choke on unknown options, it will just issue warnings
3936       # or remarks (even with -Werror).  So we grep stderr for any message
3937       # that says an option was ignored or not supported.
3938       # When given -MP, icc 7.0 and 7.1 complain thusly:
3939       #   icc: Command line warning: ignoring option '-M'; no argument required
3940       # The diagnosis changed in icc 8.0:
3941       #   icc: Command line remark: option '-MP' not supported
3942       if (grep 'ignoring option' conftest.err ||
3943           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3944         am_cv_CC_dependencies_compiler_type=$depmode
3945         break
3946       fi
3947     fi
3948   done
3949
3950   cd ..
3951   rm -rf conftest.dir
3952 else
3953   am_cv_CC_dependencies_compiler_type=none
3954 fi
3955
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3958 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3959 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3960
3961  if
3962   test "x$enable_dependency_tracking" != xno \
3963   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3964   am__fastdepCC_TRUE=
3965   am__fastdepCC_FALSE='#'
3966 else
3967   am__fastdepCC_TRUE='#'
3968   am__fastdepCC_FALSE=
3969 fi
3970
3971
3972 if test "x$CC" != xcc; then
3973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3974 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3975 else
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3977 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3978 fi
3979 set dummy $CC; ac_cc=`$as_echo "$2" |
3980                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3981 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3982   $as_echo_n "(cached) " >&6
3983 else
3984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h.  */
3986
3987 int
3988 main ()
3989 {
3990
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 # Make sure it works both with $CC and with simple cc.
3996 # We do the test twice because some compilers refuse to overwrite an
3997 # existing .o file with -o, though they will create one.
3998 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3999 rm -f conftest2.*
4000 if { { case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006   (eval "$ac_try") 2>&5
4007   ac_status=$?
4008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009   test $ac_status = 0; } &&
4010    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016   (eval "$ac_try") 2>&5
4017   ac_status=$?
4018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019   test $ac_status = 0; };
4020 then
4021   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4022   if test "x$CC" != xcc; then
4023     # Test first that cc exists at all.
4024     if { ac_try='cc -c conftest.$ac_ext >&5'
4025   { { case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
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; }; }; then
4035       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4036       rm -f conftest2.*
4037       if { { case "(($ac_try" in
4038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039   *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043   (eval "$ac_try") 2>&5
4044   ac_status=$?
4045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046   test $ac_status = 0; } &&
4047          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053   (eval "$ac_try") 2>&5
4054   ac_status=$?
4055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056   test $ac_status = 0; };
4057       then
4058         # cc works too.
4059         :
4060       else
4061         # cc exists but doesn't like -o.
4062         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4063       fi
4064     fi
4065   fi
4066 else
4067   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4068 fi
4069 rm -f core conftest*
4070
4071 fi
4072 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074 $as_echo "yes" >&6; }
4075 else
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078
4079 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4080
4081 fi
4082
4083 # FIXME: we rely on the cache variable name because
4084 # there is no other way.
4085 set dummy $CC
4086 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4087 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4088 if test "$am_t" != yes; then
4089    # Losing compiler, so override with the script.
4090    # FIXME: It is wrong to rewrite CC.
4091    # But if we don't then we get into trouble of one sort or another.
4092    # A longer-term fix would be to have automake use am__CC in this case,
4093    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4094    CC="$am_aux_dir/compile $CC"
4095 fi
4096
4097
4098 ac_ext=c
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4104 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4105 # On Suns, sometimes $CPP names a directory.
4106 if test -n "$CPP" && test -d "$CPP"; then
4107   CPP=
4108 fi
4109 if test -z "$CPP"; then
4110   if ${ac_cv_prog_CPP+:} false; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113       # Double quotes because CPP needs to be expanded
4114     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4115     do
4116       ac_preproc_ok=false
4117 for ac_c_preproc_warn_flag in '' yes
4118 do
4119   # Use a header file that comes with gcc, so configuring glibc
4120   # with a fresh cross-compiler works.
4121   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4122   # <limits.h> exists even on freestanding compilers.
4123   # On the NeXT, cc -E runs the code through the compiler's parser,
4124   # not just through cpp. "Syntax error" is here to catch this case.
4125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127 #ifdef __STDC__
4128 # include <limits.h>
4129 #else
4130 # include <assert.h>
4131 #endif
4132                      Syntax error
4133 _ACEOF
4134 if ac_fn_c_try_cpp "$LINENO"; then :
4135
4136 else
4137   # Broken: fails on valid input.
4138 continue
4139 fi
4140 rm -f conftest.err conftest.i conftest.$ac_ext
4141
4142   # OK, works on sane cases.  Now check whether nonexistent headers
4143   # can be detected and how.
4144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h.  */
4146 #include <ac_nonexistent.h>
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4149   # Broken: success on invalid input.
4150 continue
4151 else
4152   # Passes both tests.
4153 ac_preproc_ok=:
4154 break
4155 fi
4156 rm -f conftest.err conftest.i conftest.$ac_ext
4157
4158 done
4159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160 rm -f conftest.i conftest.err conftest.$ac_ext
4161 if $ac_preproc_ok; then :
4162   break
4163 fi
4164
4165     done
4166     ac_cv_prog_CPP=$CPP
4167
4168 fi
4169   CPP=$ac_cv_prog_CPP
4170 else
4171   ac_cv_prog_CPP=$CPP
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4174 $as_echo "$CPP" >&6; }
4175 ac_preproc_ok=false
4176 for ac_c_preproc_warn_flag in '' yes
4177 do
4178   # Use a header file that comes with gcc, so configuring glibc
4179   # with a fresh cross-compiler works.
4180   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181   # <limits.h> exists even on freestanding compilers.
4182   # On the NeXT, cc -E runs the code through the compiler's parser,
4183   # not just through cpp. "Syntax error" is here to catch this case.
4184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h.  */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191                      Syntax error
4192 _ACEOF
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4194
4195 else
4196   # Broken: fails on valid input.
4197 continue
4198 fi
4199 rm -f conftest.err conftest.i conftest.$ac_ext
4200
4201   # OK, works on sane cases.  Now check whether nonexistent headers
4202   # can be detected and how.
4203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h.  */
4205 #include <ac_nonexistent.h>
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208   # Broken: success on invalid input.
4209 continue
4210 else
4211   # Passes both tests.
4212 ac_preproc_ok=:
4213 break
4214 fi
4215 rm -f conftest.err conftest.i conftest.$ac_ext
4216
4217 done
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.i conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then :
4221
4222 else
4223   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log' for more details" "$LINENO" 5; }
4227 fi
4228
4229 ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235 ac_ext=cpp
4236 ac_cpp='$CXXCPP $CPPFLAGS'
4237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4240 if test -z "$CXX"; then
4241   if test -n "$CCC"; then
4242     CXX=$CCC
4243   else
4244     if test -n "$ac_tool_prefix"; then
4245   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4246   do
4247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_prog_CXX+:} false; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   if test -n "$CXX"; then
4255   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262     for ac_exec_ext in '' $ac_executable_extensions; do
4263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269   done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 CXX=$ac_cv_prog_CXX
4275 if test -n "$CXX"; then
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4277 $as_echo "$CXX" >&6; }
4278 else
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4283
4284     test -n "$CXX" && break
4285   done
4286 fi
4287 if test -z "$CXX"; then
4288   ac_ct_CXX=$CXX
4289   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4290 do
4291   # Extract the first word of "$ac_prog", so it can be a program name with args.
4292 set dummy $ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298   if test -n "$ac_ct_CXX"; then
4299   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304   IFS=$as_save_IFS
4305   test -z "$as_dir" && as_dir=.
4306     for ac_exec_ext in '' $ac_executable_extensions; do
4307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308     ac_cv_prog_ac_ct_CXX="$ac_prog"
4309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310     break 2
4311   fi
4312 done
4313   done
4314 IFS=$as_save_IFS
4315
4316 fi
4317 fi
4318 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4319 if test -n "$ac_ct_CXX"; then
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4321 $as_echo "$ac_ct_CXX" >&6; }
4322 else
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328   test -n "$ac_ct_CXX" && break
4329 done
4330
4331   if test "x$ac_ct_CXX" = x; then
4332     CXX="g++"
4333   else
4334     case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340     CXX=$ac_ct_CXX
4341   fi
4342 fi
4343
4344   fi
4345 fi
4346 # Provide some information about the compiler.
4347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4348 set X $ac_compile
4349 ac_compiler=$2
4350 for ac_option in --version -v -V -qversion; do
4351   { { ac_try="$ac_compiler $ac_option >&5"
4352 case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357 $as_echo "$ac_try_echo"; } >&5
4358   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4359   ac_status=$?
4360   if test -s conftest.err; then
4361     sed '10a\
4362 ... rest of stderr output deleted ...
4363          10q' conftest.err >conftest.er1
4364     cat conftest.er1 >&5
4365   fi
4366   rm -f conftest.er1 conftest.err
4367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368   test $ac_status = 0; }
4369 done
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4372 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4373 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h.  */
4378
4379 int
4380 main ()
4381 {
4382 #ifndef __GNUC__
4383        choke me
4384 #endif
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_cxx_try_compile "$LINENO"; then :
4391   ac_compiler_gnu=yes
4392 else
4393   ac_compiler_gnu=no
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4397
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4400 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4401 if test $ac_compiler_gnu = yes; then
4402   GXX=yes
4403 else
4404   GXX=
4405 fi
4406 ac_test_CXXFLAGS=${CXXFLAGS+set}
4407 ac_save_CXXFLAGS=$CXXFLAGS
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4409 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4410 if ${ac_cv_prog_cxx_g+:} false; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4414    ac_cxx_werror_flag=yes
4415    ac_cv_prog_cxx_g=no
4416    CXXFLAGS="-g"
4417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h.  */
4419
4420 int
4421 main ()
4422 {
4423
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_cxx_try_compile "$LINENO"; then :
4429   ac_cv_prog_cxx_g=yes
4430 else
4431   CXXFLAGS=""
4432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h.  */
4434
4435 int
4436 main ()
4437 {
4438
4439   ;
4440   return 0;
4441 }
4442 _ACEOF
4443 if ac_fn_cxx_try_compile "$LINENO"; then :
4444
4445 else
4446   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4447          CXXFLAGS="-g"
4448          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450
4451 int
4452 main ()
4453 {
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 if ac_fn_cxx_try_compile "$LINENO"; then :
4460   ac_cv_prog_cxx_g=yes
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4470 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4471 if test "$ac_test_CXXFLAGS" = set; then
4472   CXXFLAGS=$ac_save_CXXFLAGS
4473 elif test $ac_cv_prog_cxx_g = yes; then
4474   if test "$GXX" = yes; then
4475     CXXFLAGS="-g -O2"
4476   else
4477     CXXFLAGS="-g"
4478   fi
4479 else
4480   if test "$GXX" = yes; then
4481     CXXFLAGS="-O2"
4482   else
4483     CXXFLAGS=
4484   fi
4485 fi
4486 ac_ext=c
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491
4492 depcc="$CXX"  am_compiler_list=
4493
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4495 $as_echo_n "checking dependency style of $depcc... " >&6; }
4496 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4500   # We make a subdir and do the tests there.  Otherwise we can end up
4501   # making bogus files that we don't know about and never remove.  For
4502   # instance it was reported that on HP-UX the gcc test will end up
4503   # making a dummy file named `D' -- because `-MD' means `put the output
4504   # in D'.
4505   mkdir conftest.dir
4506   # Copy depcomp to subdir because otherwise we won't find it if we're
4507   # using a relative directory.
4508   cp "$am_depcomp" conftest.dir
4509   cd conftest.dir
4510   # We will build objects and dependencies in a subdirectory because
4511   # it helps to detect inapplicable dependency modes.  For instance
4512   # both Tru64's cc and ICC support -MD to output dependencies as a
4513   # side effect of compilation, but ICC will put the dependencies in
4514   # the current directory while Tru64 will put them in the object
4515   # directory.
4516   mkdir sub
4517
4518   am_cv_CXX_dependencies_compiler_type=none
4519   if test "$am_compiler_list" = ""; then
4520      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4521   fi
4522   am__universal=false
4523   case " $depcc " in #(
4524      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4525      esac
4526
4527   for depmode in $am_compiler_list; do
4528     # Setup a source with many dependencies, because some compilers
4529     # like to wrap large dependency lists on column 80 (with \), and
4530     # we should not choose a depcomp mode which is confused by this.
4531     #
4532     # We need to recreate these files for each test, as the compiler may
4533     # overwrite some of them when testing with obscure command lines.
4534     # This happens at least with the AIX C compiler.
4535     : > sub/conftest.c
4536     for i in 1 2 3 4 5 6; do
4537       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4538       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4539       # Solaris 8's {/usr,}/bin/sh.
4540       touch sub/conftst$i.h
4541     done
4542     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4543
4544     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4545     # mode.  It turns out that the SunPro C++ compiler does not properly
4546     # handle `-M -o', and we need to detect this.  Also, some Intel
4547     # versions had trouble with output in subdirs
4548     am__obj=sub/conftest.${OBJEXT-o}
4549     am__minus_obj="-o $am__obj"
4550     case $depmode in
4551     gcc)
4552       # This depmode causes a compiler race in universal mode.
4553       test "$am__universal" = false || continue
4554       ;;
4555     nosideeffect)
4556       # after this tag, mechanisms are not by side-effect, so they'll
4557       # only be used when explicitly requested
4558       if test "x$enable_dependency_tracking" = xyes; then
4559         continue
4560       else
4561         break
4562       fi
4563       ;;
4564     msvisualcpp | msvcmsys)
4565       # This compiler won't grok `-c -o', but also, the minuso test has
4566       # not run yet.  These depmodes are late enough in the game, and
4567       # so weak that their functioning should not be impacted.
4568       am__obj=conftest.${OBJEXT-o}
4569       am__minus_obj=
4570       ;;
4571     none) break ;;
4572     esac
4573     if depmode=$depmode \
4574        source=sub/conftest.c object=$am__obj \
4575        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4576        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4577          >/dev/null 2>conftest.err &&
4578        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4579        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4580        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4581        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4582       # icc doesn't choke on unknown options, it will just issue warnings
4583       # or remarks (even with -Werror).  So we grep stderr for any message
4584       # that says an option was ignored or not supported.
4585       # When given -MP, icc 7.0 and 7.1 complain thusly:
4586       #   icc: Command line warning: ignoring option '-M'; no argument required
4587       # The diagnosis changed in icc 8.0:
4588       #   icc: Command line remark: option '-MP' not supported
4589       if (grep 'ignoring option' conftest.err ||
4590           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4591         am_cv_CXX_dependencies_compiler_type=$depmode
4592         break
4593       fi
4594     fi
4595   done
4596
4597   cd ..
4598   rm -rf conftest.dir
4599 else
4600   am_cv_CXX_dependencies_compiler_type=none
4601 fi
4602
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4605 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4606 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4607
4608  if
4609   test "x$enable_dependency_tracking" != xno \
4610   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4611   am__fastdepCXX_TRUE=
4612   am__fastdepCXX_FALSE='#'
4613 else
4614   am__fastdepCXX_TRUE='#'
4615   am__fastdepCXX_FALSE=
4616 fi
4617
4618
4619 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4620 # autoconf 2.59).  If we ever have any Objective-C code in the Valgrind code
4621 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4622 # following:
4623 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4624 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4625 # - Use the following, which is apparently equivalent:
4626 #     m4_ifdef([AC_PROG_OBJC],
4627 #        [AC_PROG_OBJC],
4628 #        [AC_CHECK_TOOL([OBJC], [gcc])
4629 #         AC_SUBST([OBJC])
4630 #         AC_SUBST([OBJCFLAGS])
4631 #        ])
4632 if test -n "$ac_tool_prefix"; then
4633   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4634 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_RANLIB+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   if test -n "$RANLIB"; then
4641   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648     for ac_exec_ext in '' $ac_executable_extensions; do
4649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655   done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 RANLIB=$ac_cv_prog_RANLIB
4661 if test -n "$RANLIB"; then
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4663 $as_echo "$RANLIB" >&6; }
4664 else
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669
4670 fi
4671 if test -z "$ac_cv_prog_RANLIB"; then
4672   ac_ct_RANLIB=$RANLIB
4673   # Extract the first word of "ranlib", so it can be a program name with args.
4674 set dummy ranlib; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4678   $as_echo_n "(cached) " >&6
4679 else
4680   if test -n "$ac_ct_RANLIB"; then
4681   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688     for ac_exec_ext in '' $ac_executable_extensions; do
4689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690     ac_cv_prog_ac_ct_RANLIB="ranlib"
4691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695   done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4701 if test -n "$ac_ct_RANLIB"; then
4702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4703 $as_echo "$ac_ct_RANLIB" >&6; }
4704 else
4705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708
4709   if test "x$ac_ct_RANLIB" = x; then
4710     RANLIB=":"
4711   else
4712     case $cross_compiling:$ac_tool_warned in
4713 yes:)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned=yes ;;
4717 esac
4718     RANLIB=$ac_ct_RANLIB
4719   fi
4720 else
4721   RANLIB="$ac_cv_prog_RANLIB"
4722 fi
4723
4724 # provide a very basic definition for AC_PROG_SED if it's not provided by
4725 # autoconf (as e.g. in autoconf 2.59).
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4728 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4729 if ${ac_cv_path_SED+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4733      for ac_i in 1 2 3 4 5 6 7; do
4734        ac_script="$ac_script$as_nl$ac_script"
4735      done
4736      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4737      { ac_script=; unset ac_script;}
4738      if test -z "$SED"; then
4739   ac_path_SED_found=false
4740   # Loop through the user's path and test for each of PROGNAME-LIST
4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746     for ac_prog in sed gsed; do
4747     for ac_exec_ext in '' $ac_executable_extensions; do
4748       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4749       as_fn_executable_p "$ac_path_SED" || continue
4750 # Check for GNU ac_path_SED and select it if it is found.
4751   # Check for GNU $ac_path_SED
4752 case `"$ac_path_SED" --version 2>&1` in
4753 *GNU*)
4754   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4755 *)
4756   ac_count=0
4757   $as_echo_n 0123456789 >"conftest.in"
4758   while :
4759   do
4760     cat "conftest.in" "conftest.in" >"conftest.tmp"
4761     mv "conftest.tmp" "conftest.in"
4762     cp "conftest.in" "conftest.nl"
4763     $as_echo '' >> "conftest.nl"
4764     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4765     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4766     as_fn_arith $ac_count + 1 && ac_count=$as_val
4767     if test $ac_count -gt ${ac_path_SED_max-0}; then
4768       # Best one so far, save it but keep looking for a better one
4769       ac_cv_path_SED="$ac_path_SED"
4770       ac_path_SED_max=$ac_count
4771     fi
4772     # 10*(2^10) chars as input seems more than enough
4773     test $ac_count -gt 10 && break
4774   done
4775   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4776 esac
4777
4778       $ac_path_SED_found && break 3
4779     done
4780   done
4781   done
4782 IFS=$as_save_IFS
4783   if test -z "$ac_cv_path_SED"; then
4784     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4785   fi
4786 else
4787   ac_cv_path_SED=$SED
4788 fi
4789
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4792 $as_echo "$ac_cv_path_SED" >&6; }
4793  SED="$ac_cv_path_SED"
4794   rm -f conftest.sed
4795
4796
4797 # If no AR variable was specified, look up the name of the archiver. Otherwise
4798 # do not touch the AR variable.
4799 if test "x$AR" = "x"; then
4800   for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4801 do
4802   # Extract the first word of "$ac_prog", so it can be a program name with args.
4803 set dummy $ac_prog; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_path_AR+:} false; then :
4807   $as_echo_n "(cached) " >&6
4808 else
4809   case $AR in
4810   [\\/]* | ?:[\\/]*)
4811   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4812   ;;
4813   *)
4814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819     for ac_exec_ext in '' $ac_executable_extensions; do
4820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826   done
4827 IFS=$as_save_IFS
4828
4829   ;;
4830 esac
4831 fi
4832 AR=$ac_cv_path_AR
4833 if test -n "$AR"; then
4834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4835 $as_echo "$AR" >&6; }
4836 else
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4839 fi
4840
4841
4842   test -n "$AR" && break
4843 done
4844 test -n "$AR" || AR="ar"
4845
4846 fi
4847
4848
4849 # Check for the compiler support
4850 if test "${GCC}" != "yes" ; then
4851    as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
4852 fi
4853
4854 # figure out where perl lives
4855 # Extract the first word of "perl", so it can be a program name with args.
4856 set dummy perl; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_path_PERL+:} false; then :
4860   $as_echo_n "(cached) " >&6
4861 else
4862   case $PERL in
4863   [\\/]* | ?:[\\/]*)
4864   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4865   ;;
4866   *)
4867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872     for ac_exec_ext in '' $ac_executable_extensions; do
4873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879   done
4880 IFS=$as_save_IFS
4881
4882   ;;
4883 esac
4884 fi
4885 PERL=$ac_cv_path_PERL
4886 if test -n "$PERL"; then
4887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4888 $as_echo "$PERL" >&6; }
4889 else
4890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4892 fi
4893
4894
4895
4896 # figure out where gdb lives
4897 # Extract the first word of "gdb", so it can be a program name with args.
4898 set dummy gdb; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_path_GDB+:} false; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   case $GDB in
4905   [\\/]* | ?:[\\/]*)
4906   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4907   ;;
4908   *)
4909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914     for ac_exec_ext in '' $ac_executable_extensions; do
4915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921   done
4922 IFS=$as_save_IFS
4923
4924   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4925   ;;
4926 esac
4927 fi
4928 GDB=$ac_cv_path_GDB
4929 if test -n "$GDB"; then
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4931 $as_echo "$GDB" >&6; }
4932 else
4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938
4939 cat >>confdefs.h <<_ACEOF
4940 #define GDB_PATH "$GDB"
4941 _ACEOF
4942
4943
4944 # some older automake's don't have it so try something on our own
4945 # By default we simply use the C compiler to build assembly code.
4946
4947 test "${CCAS+set}" = set || CCAS=$CC
4948 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4949
4950
4951
4952 depcc="$CCAS"   am_compiler_list=
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4955 $as_echo_n "checking dependency style of $depcc... " >&6; }
4956 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4957   $as_echo_n "(cached) " >&6
4958 else
4959   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4960   # We make a subdir and do the tests there.  Otherwise we can end up
4961   # making bogus files that we don't know about and never remove.  For
4962   # instance it was reported that on HP-UX the gcc test will end up
4963   # making a dummy file named `D' -- because `-MD' means `put the output
4964   # in D'.
4965   mkdir conftest.dir
4966   # Copy depcomp to subdir because otherwise we won't find it if we're
4967   # using a relative directory.
4968   cp "$am_depcomp" conftest.dir
4969   cd conftest.dir
4970   # We will build objects and dependencies in a subdirectory because
4971   # it helps to detect inapplicable dependency modes.  For instance
4972   # both Tru64's cc and ICC support -MD to output dependencies as a
4973   # side effect of compilation, but ICC will put the dependencies in
4974   # the current directory while Tru64 will put them in the object
4975   # directory.
4976   mkdir sub
4977
4978   am_cv_CCAS_dependencies_compiler_type=none
4979   if test "$am_compiler_list" = ""; then
4980      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4981   fi
4982   am__universal=false
4983
4984
4985   for depmode in $am_compiler_list; do
4986     # Setup a source with many dependencies, because some compilers
4987     # like to wrap large dependency lists on column 80 (with \), and
4988     # we should not choose a depcomp mode which is confused by this.
4989     #
4990     # We need to recreate these files for each test, as the compiler may
4991     # overwrite some of them when testing with obscure command lines.
4992     # This happens at least with the AIX C compiler.
4993     : > sub/conftest.c
4994     for i in 1 2 3 4 5 6; do
4995       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4996       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4997       # Solaris 8's {/usr,}/bin/sh.
4998       touch sub/conftst$i.h
4999     done
5000     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5001
5002     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5003     # mode.  It turns out that the SunPro C++ compiler does not properly
5004     # handle `-M -o', and we need to detect this.  Also, some Intel
5005     # versions had trouble with output in subdirs
5006     am__obj=sub/conftest.${OBJEXT-o}
5007     am__minus_obj="-o $am__obj"
5008     case $depmode in
5009     gcc)
5010       # This depmode causes a compiler race in universal mode.
5011       test "$am__universal" = false || continue
5012       ;;
5013     nosideeffect)
5014       # after this tag, mechanisms are not by side-effect, so they'll
5015       # only be used when explicitly requested
5016       if test "x$enable_dependency_tracking" = xyes; then
5017         continue
5018       else
5019         break
5020       fi
5021       ;;
5022     msvisualcpp | msvcmsys)
5023       # This compiler won't grok `-c -o', but also, the minuso test has
5024       # not run yet.  These depmodes are late enough in the game, and
5025       # so weak that their functioning should not be impacted.
5026       am__obj=conftest.${OBJEXT-o}
5027       am__minus_obj=
5028       ;;
5029     none) break ;;
5030     esac
5031     if depmode=$depmode \
5032        source=sub/conftest.c object=$am__obj \
5033        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5034        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5035          >/dev/null 2>conftest.err &&
5036        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5037        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5038        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5039        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5040       # icc doesn't choke on unknown options, it will just issue warnings
5041       # or remarks (even with -Werror).  So we grep stderr for any message
5042       # that says an option was ignored or not supported.
5043       # When given -MP, icc 7.0 and 7.1 complain thusly:
5044       #   icc: Command line warning: ignoring option '-M'; no argument required
5045       # The diagnosis changed in icc 8.0:
5046       #   icc: Command line remark: option '-MP' not supported
5047       if (grep 'ignoring option' conftest.err ||
5048           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5049         am_cv_CCAS_dependencies_compiler_type=$depmode
5050         break
5051       fi
5052     fi
5053   done
5054
5055   cd ..
5056   rm -rf conftest.dir
5057 else
5058   am_cv_CCAS_dependencies_compiler_type=none
5059 fi
5060
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5063 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5064 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5065
5066  if
5067   test "x$enable_dependency_tracking" != xno \
5068   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5069   am__fastdepCCAS_TRUE=
5070   am__fastdepCCAS_FALSE='#'
5071 else
5072   am__fastdepCCAS_TRUE='#'
5073   am__fastdepCCAS_FALSE=
5074 fi
5075
5076
5077
5078
5079 # Check if 'diff' supports -u (universal diffs) and use it if possible.
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5082 $as_echo_n "checking for diff -u... " >&6; }
5083
5084
5085 # Comparing two identical files results in 0, unless -u isn't supported (as
5086 # it's not on AIX).
5087 tmpfile="tmp-xxx-yyy-zzz"
5088 touch $tmpfile;
5089 if diff -u $tmpfile $tmpfile ; then
5090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5092     DIFF="diff -u"
5093 else
5094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096     DIFF="diff"
5097 fi
5098 rm $tmpfile
5099
5100
5101 # We don't want gcc < 3.0
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5103 $as_echo_n "checking for a supported version of gcc... " >&6; }
5104
5105 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5106
5107 case "${gcc_version}" in
5108      2.*)
5109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5110 $as_echo "no (${gcc_version})" >&6; }
5111         as_fn_error $? "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5112         ;;
5113      *)
5114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5115 $as_echo "ok (${gcc_version})" >&6; }
5116         ;;
5117 esac
5118
5119 #----------------------------------------------------------------------------
5120 # Arch/OS/platform tests.
5121 #----------------------------------------------------------------------------
5122 # We create a number of arch/OS/platform-related variables.  We prefix them
5123 # all with "VGCONF_" which indicates that they are defined at
5124 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5125 # variables used when compiling C files.
5126
5127 # Make sure we can run config.sub.
5128 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5129   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5132 $as_echo_n "checking build system type... " >&6; }
5133 if ${ac_cv_build+:} false; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   ac_build_alias=$build_alias
5137 test "x$ac_build_alias" = x &&
5138   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5139 test "x$ac_build_alias" = x &&
5140   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5142   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5143
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5146 $as_echo "$ac_cv_build" >&6; }
5147 case $ac_cv_build in
5148 *-*-*) ;;
5149 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5150 esac
5151 build=$ac_cv_build
5152 ac_save_IFS=$IFS; IFS='-'
5153 set x $ac_cv_build
5154 shift
5155 build_cpu=$1
5156 build_vendor=$2
5157 shift; shift
5158 # Remember, the first character of IFS is used to create $*,
5159 # except with old shells:
5160 build_os=$*
5161 IFS=$ac_save_IFS
5162 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5163
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5166 $as_echo_n "checking host system type... " >&6; }
5167 if ${ac_cv_host+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   if test "x$host_alias" = x; then
5171   ac_cv_host=$ac_cv_build
5172 else
5173   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5174     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5175 fi
5176
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5179 $as_echo "$ac_cv_host" >&6; }
5180 case $ac_cv_host in
5181 *-*-*) ;;
5182 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5183 esac
5184 host=$ac_cv_host
5185 ac_save_IFS=$IFS; IFS='-'
5186 set x $ac_cv_host
5187 shift
5188 host_cpu=$1
5189 host_vendor=$2
5190 shift; shift
5191 # Remember, the first character of IFS is used to create $*,
5192 # except with old shells:
5193 host_os=$*
5194 IFS=$ac_save_IFS
5195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5196
5197
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5200 $as_echo_n "checking for a supported CPU... " >&6; }
5201
5202 # ARCH_MAX reflects the most that this CPU can do: for example if it
5203 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5204 # Ditto for amd64.  It is used for more configuration below, but is not used
5205 # outside this file.
5206 case "${host_cpu}" in
5207      i?86)
5208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5209 $as_echo "ok (${host_cpu})" >&6; }
5210         ARCH_MAX="x86"
5211         ;;
5212
5213      x86_64)
5214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5215 $as_echo "ok (${host_cpu})" >&6; }
5216         ARCH_MAX="amd64"
5217         ;;
5218
5219      powerpc64)
5220         # This value can only happen on Linux, not on AIX
5221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5222 $as_echo "ok (${host_cpu})" >&6; }
5223         ARCH_MAX="ppc64"
5224         ;;
5225
5226      powerpc)
5227         # Complexity.  'powerpc' on AIX implies a 64-bit capable CPU.
5228         # Whereas in Linux that means only a 32-bit capable CPU.
5229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5230 $as_echo "ok (${host_cpu})" >&6; }
5231         case "${host_os}" in
5232            aix5.*)
5233               ARCH_MAX="ppc64"
5234               ;;
5235            *)
5236               ARCH_MAX="ppc32"
5237               ;;
5238         esac
5239         ;;
5240
5241      s390x)
5242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5243 $as_echo "ok (${host_cpu})" >&6; }
5244         ARCH_MAX="s390x"
5245         ;;
5246
5247      armv7*)
5248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5249 $as_echo "ok (${host_cpu})" >&6; }
5250         ARCH_MAX="arm"
5251         ;;
5252
5253      *)
5254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5255 $as_echo "no (${host_cpu})" >&6; }
5256         as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
5257         ;;
5258 esac
5259
5260 #----------------------------------------------------------------------------
5261
5262 # Sometimes it's convenient to subvert the bi-arch build system and
5263 # just have a single build even though the underlying platform is
5264 # capable of both.  Hence handle --enable-only64bit and
5265 # --enable-only32bit.  Complain if both are issued :-)
5266 # [Actually, if either of these options are used, I think both get built,
5267 # but only one gets installed.  So if you use an in-place build, both can be
5268 # used. --njn]
5269
5270 # Check if a 64-bit only build has been requested
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5272 $as_echo_n "checking for a 64-bit only build... " >&6; }
5273 if ${vg_cv_only64bit+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   # Check whether --enable-only64bit was given.
5277 if test "${enable_only64bit+set}" = set; then :
5278   enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5279 else
5280   vg_cv_only64bit=no
5281 fi
5282
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5285 $as_echo "$vg_cv_only64bit" >&6; }
5286
5287 # Check if a 32-bit only build has been requested
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5289 $as_echo_n "checking for a 32-bit only build... " >&6; }
5290 if ${vg_cv_only32bit+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   # Check whether --enable-only32bit was given.
5294 if test "${enable_only32bit+set}" = set; then :
5295   enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5296 else
5297   vg_cv_only32bit=no
5298 fi
5299
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5302 $as_echo "$vg_cv_only32bit" >&6; }
5303
5304 # Stay sane
5305 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5306    as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5307 fi
5308
5309 #----------------------------------------------------------------------------
5310
5311 # VGCONF_OS is the primary build OS, eg. "linux".  It is passed in to
5312 # compilation of many C files via -VGO_$(VGCONF_OS) and
5313 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5315 $as_echo_n "checking for a supported OS... " >&6; }
5316
5317
5318 DEFAULT_SUPP=""
5319 GENERATED_SUPP=""
5320
5321 case "${host_os}" in
5322      *linux*)
5323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5324 $as_echo "ok (${host_os})" >&6; }
5325         VGCONF_OS="linux"
5326
5327         # Ok, this is linux. Check the kernel version
5328         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5329 $as_echo_n "checking for the kernel version... " >&6; }
5330
5331         kernel=`uname -r`
5332
5333         case "${kernel}" in
5334              2.6.*)
5335                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5336 $as_echo "2.6 family (${kernel})" >&6; }
5337
5338 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5339
5340                     ;;
5341
5342              2.4.*)
5343                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5344 $as_echo "2.4 family (${kernel})" >&6; }
5345
5346 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5347
5348                     ;;
5349
5350              *)
5351                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5352 $as_echo "unsupported (${kernel})" >&6; }
5353                     as_fn_error $? "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5354                     ;;
5355         esac
5356
5357         ;;
5358
5359      aix5.1.*)
5360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5361 $as_echo "ok (${host_os})" >&6; }
5362         VGCONF_OS="aix5"
5363         ;;
5364      aix5.2.*)
5365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5366 $as_echo "ok (${host_os})" >&6; }
5367         VGCONF_OS="aix5"
5368         ;;
5369      aix5.3.*)
5370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5371 $as_echo "ok (${host_os})" >&6; }
5372         VGCONF_OS="aix5"
5373         ;;
5374
5375      *l4re*)
5376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5377 $as_echo "ok (${host_os})" >&6; }
5378         VGCONF_OS="l4re"
5379                 DEFAULT_SUPP="pthread_l4re.supp"
5380         ;;
5381
5382      *darwin*)
5383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5384 $as_echo "ok (${host_os})" >&6; }
5385         VGCONF_OS="darwin"
5386
5387 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5388
5389
5390 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5391
5392
5393 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5394
5395
5396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5397 $as_echo_n "checking for the kernel version... " >&6; }
5398         kernel=`uname -r`
5399
5400         # Nb: for Darwin we set DEFAULT_SUPP here.  That's because Darwin
5401         # has only one relevant version, the OS version. The `uname` check
5402         # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5403         # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5404         # and we don't know of an macros similar to __GLIBC__ to get that info.
5405         #
5406         # XXX: `uname -r` won't do the right thing for cross-compiles, but
5407         # that's not a problem yet.
5408         case "${kernel}" in
5409              9.*)
5410                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5411 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5412
5413 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5414
5415                   DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5416                   DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5417                   ;;
5418              10.*)
5419                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5420 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5421
5422 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5423
5424                   DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5425                   DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5426                   ;;
5427      *)
5428                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5429 $as_echo "unsupported (${kernel})" >&6; }
5430                   as_fn_error $? "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5431                   ;;
5432         esac
5433         ;;
5434
5435      *)
5436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5437 $as_echo "no (${host_os})" >&6; }
5438         as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
5439         ;;
5440 esac
5441
5442 #----------------------------------------------------------------------------
5443
5444 # If we are building on a 64 bit platform test to see if the system
5445 # supports building 32 bit programs and disable 32 bit support if it
5446 # does not support building 32 bit programs
5447
5448 case "$ARCH_MAX-$VGCONF_OS" in
5449      amd64-linux|ppc64-linux)
5450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5451 $as_echo_n "checking for 32 bit build support... " >&6; }
5452         safe_CFLAGS=$CFLAGS
5453         CFLAGS="-m32"
5454
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h.  */
5457
5458 int
5459 main ()
5460 {
5461
5462           return 0;
5463
5464   ;
5465   return 0;
5466 }
5467 _ACEOF
5468 if ac_fn_c_try_link "$LINENO"; then :
5469
5470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5471 $as_echo "yes" >&6; }
5472
5473 else
5474
5475         vg_cv_only64bit="yes"
5476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext \
5481     conftest$ac_exeext conftest.$ac_ext
5482         CFLAGS=$safe_CFLAGS;;
5483 esac
5484
5485 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5486    as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5487 fi
5488
5489 #----------------------------------------------------------------------------
5490
5491 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64".  By
5492 # default it's the same as ARCH_MAX.  But if, say, we do a build on an amd64
5493 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5494 # above) will be "amd64" since that reflects the most that this cpu can do,
5495 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5496 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS).  It is
5497 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5498 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5499
5500
5501 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5502 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5503 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5504 # It is empty if there is no secondary target.
5505
5506
5507 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5508 # The entire system, including regression and performance tests, will be
5509 # built for this target.  The "_CAPS" indicates that the name is in capital
5510 # letters, and it also uses '_' rather than '-' as a separator, because it's
5511 # used to create various Makefile variables, which are all in caps by
5512 # convention and cannot contain '-' characters.  This is in contrast to
5513 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5514
5515
5516 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5517 # Valgrind and tools will also be built for this target, but not the
5518 # regression or performance tests.
5519 #
5520 # By default, the primary arch is the same as the "max" arch, as commented
5521 # above (at the definition of ARCH_MAX).  We may choose to downgrade it in
5522 # the big case statement just below here, in the case where we're building
5523 # on a 64 bit machine but have been requested only to do a 32 bit build.
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5527 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5528
5529 # NB.  The load address for a given platform may be specified in more
5530 # than one place, in some cases, depending on whether we're doing a biarch,
5531 # 32-bit only or 64-bit only build.  eg see case for amd64-linux below.
5532 # Be careful to give consistent values in all subcases.  Also, all four
5533 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5534 # even if it is to "0xUNSET".
5535 #
5536 case "$ARCH_MAX-$VGCONF_OS" in
5537      x86-linux)
5538         VGCONF_ARCH_PRI="x86"
5539         VGCONF_ARCH_SEC=""
5540         VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5541         VGCONF_PLATFORM_SEC_CAPS=""
5542         valt_load_address_pri_norml="0x38000000"
5543         valt_load_address_pri_inner="0x28000000"
5544         valt_load_address_sec_norml="0xUNSET"
5545         valt_load_address_sec_inner="0xUNSET"
5546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5547 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5548         ;;
5549      amd64-linux)
5550         valt_load_address_sec_norml="0xUNSET"
5551         valt_load_address_sec_inner="0xUNSET"
5552         if test x$vg_cv_only64bit = xyes; then
5553            VGCONF_ARCH_PRI="amd64"
5554            VGCONF_ARCH_SEC=""
5555            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5556            VGCONF_PLATFORM_SEC_CAPS=""
5557            valt_load_address_pri_norml="0x38000000"
5558            valt_load_address_pri_inner="0x28000000"
5559         elif test x$vg_cv_only32bit = xyes; then
5560            VGCONF_ARCH_PRI="x86"
5561            VGCONF_ARCH_SEC=""
5562            VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5563            VGCONF_PLATFORM_SEC_CAPS=""
5564            valt_load_address_pri_norml="0x38000000"
5565            valt_load_address_pri_inner="0x28000000"
5566         else
5567            VGCONF_ARCH_PRI="amd64"
5568            VGCONF_ARCH_SEC="x86"
5569            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5570            VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5571            valt_load_address_pri_norml="0x38000000"
5572            valt_load_address_pri_inner="0x28000000"
5573            valt_load_address_sec_norml="0x38000000"
5574            valt_load_address_sec_inner="0x28000000"
5575         fi
5576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5577 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5578         ;;
5579      ppc32-linux)
5580         VGCONF_ARCH_PRI="ppc32"
5581         VGCONF_ARCH_SEC=""
5582         VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5583         VGCONF_PLATFORM_SEC_CAPS=""
5584         valt_load_address_pri_norml="0x38000000"
5585         valt_load_address_pri_inner="0x28000000"
5586         valt_load_address_sec_norml="0xUNSET"
5587         valt_load_address_sec_inner="0xUNSET"
5588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5589 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5590         ;;
5591      ppc64-aix5)
5592         valt_load_address_pri_norml="0xUNSET"
5593         valt_load_address_pri_inner="0xUNSET"
5594         valt_load_address_sec_norml="0xUNSET"
5595         valt_load_address_sec_inner="0xUNSET"
5596         if test x$vg_cv_only64bit = xyes; then
5597            VGCONF_ARCH_PRI="ppc64"
5598            VGCONF_ARCH_SEC=""
5599            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5600            VGCONF_PLATFORM_SEC_CAPS=""
5601         elif test x$vg_cv_only32bit = xyes; then
5602            VGCONF_ARCH_PRI="ppc32"
5603            VGCONF_ARCH_SEC=""
5604            VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5605            VGCONF_PLATFORM_SEC_CAPS=""
5606         else
5607            VGCONF_ARCH_PRI="ppc64"
5608            VGCONF_ARCH_SEC="ppc32"
5609            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5610            VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5611         fi
5612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5613 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5614         ;;
5615      ppc64-linux)
5616         valt_load_address_sec_norml="0xUNSET"
5617         valt_load_address_sec_inner="0xUNSET"
5618         if test x$vg_cv_only64bit = xyes; then
5619            VGCONF_ARCH_PRI="ppc64"
5620            VGCONF_ARCH_SEC=""
5621            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5622            VGCONF_PLATFORM_SEC_CAPS=""
5623            valt_load_address_pri_norml="0x38000000"
5624            valt_load_address_pri_inner="0x28000000"
5625         elif test x$vg_cv_only32bit = xyes; then
5626            VGCONF_ARCH_PRI="ppc32"
5627            VGCONF_ARCH_SEC=""
5628            VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5629            VGCONF_PLATFORM_SEC_CAPS=""
5630            valt_load_address_pri_norml="0x38000000"
5631            valt_load_address_pri_inner="0x28000000"
5632         else
5633            VGCONF_ARCH_PRI="ppc64"
5634            VGCONF_ARCH_SEC="ppc32"
5635            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5636            VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5637            valt_load_address_pri_norml="0x38000000"
5638            valt_load_address_pri_inner="0x28000000"
5639            valt_load_address_sec_norml="0x38000000"
5640            valt_load_address_sec_inner="0x28000000"
5641         fi
5642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5643 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5644         ;;
5645      x86-l4re)
5646                 VGCONF_ARCH_PRI="x86"
5647                 VGCONF_ARCH_SEC=""
5648                 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5649                 VGCONF_PLATFORM_SEC_CAPS=""
5650            valt_load_address_pri_norml="0x38000000"
5651            valt_load_address_pri_inner="0x28000000"
5652            valt_load_address_sec_norml="0x38000000"
5653            valt_load_address_sec_inner="0x28000000"
5654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5655 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5656          ;;
5657      # Darwin gets identified as 32-bit even when it supports 64-bit.
5658      # (Not sure why, possibly because 'uname' returns "i386"?)  Just about
5659      # all Macs support both 32-bit and 64-bit, so we just build both.  If
5660      # someone has a really old 32-bit only machine they can (hopefully?)
5661      # build with --enable-only32bit.  See bug 243362.
5662      x86-darwin|amd64-darwin)
5663         ARCH_MAX="amd64"
5664         valt_load_address_sec_norml="0xUNSET"
5665         valt_load_address_sec_inner="0xUNSET"
5666         if test x$vg_cv_only64bit = xyes; then
5667            VGCONF_ARCH_PRI="amd64"
5668            VGCONF_ARCH_SEC=""
5669            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5670            VGCONF_PLATFORM_SEC_CAPS=""
5671            valt_load_address_pri_norml="0x138000000"
5672            valt_load_address_pri_inner="0x128000000"
5673         elif test x$vg_cv_only32bit = xyes; then
5674            VGCONF_ARCH_PRI="x86"
5675            VGCONF_ARCH_SEC=""
5676            VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5677            VGCONF_PLATFORM_SEC_CAPS=""
5678            VGCONF_ARCH_PRI_CAPS="x86"
5679            valt_load_address_pri_norml="0x38000000"
5680            valt_load_address_pri_inner="0x28000000"
5681         else
5682            VGCONF_ARCH_PRI="amd64"
5683            VGCONF_ARCH_SEC="x86"
5684            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5685            VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5686            valt_load_address_pri_norml="0x138000000"
5687            valt_load_address_pri_inner="0x128000000"
5688            valt_load_address_sec_norml="0x38000000"
5689            valt_load_address_sec_inner="0x28000000"
5690         fi
5691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5692 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5693         ;;
5694      arm-linux)
5695         VGCONF_ARCH_PRI="arm"
5696         VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5697         VGCONF_PLATFORM_SEC_CAPS=""
5698         valt_load_address_pri_norml="0x38000000"
5699         valt_load_address_pri_inner="0x28000000"
5700         valt_load_address_sec_norml="0xUNSET"
5701         valt_load_address_sec_inner="0xUNSET"
5702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5703 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5704         ;;
5705      s390x-linux)
5706         VGCONF_ARCH_PRI="s390x"
5707         VGCONF_ARCH_SEC=""
5708         VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX"
5709         VGCONF_PLATFORM_SEC_CAPS=""
5710         # we want to have the generated code close to the dispatcher
5711         valt_load_address_pri_norml="0x401000000"
5712         valt_load_address_pri_inner="0x410000000"
5713         valt_load_address_sec_norml="0xUNSET"
5714         valt_load_address_sec_inner="0xUNSET"
5715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5716 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5717         ;;
5718     *)
5719         VGCONF_ARCH_PRI="unknown"
5720         VGCONF_ARCH_SEC="unknown"
5721         VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5722         VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5723         valt_load_address_pri_norml="0xUNSET"
5724         valt_load_address_pri_inner="0xUNSET"
5725         valt_load_address_sec_norml="0xUNSET"
5726         valt_load_address_sec_inner="0xUNSET"
5727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5728 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5729         as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5730         ;;
5731 esac
5732
5733 #----------------------------------------------------------------------------
5734
5735 # Set up VGCONF_ARCHS_INCLUDE_<arch>.  Either one or two of these become
5736 # defined.
5737  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5738                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5739                  -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5740                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5741   VGCONF_ARCHS_INCLUDE_X86_TRUE=
5742   VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5743 else
5744   VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5745   VGCONF_ARCHS_INCLUDE_X86_FALSE=
5746 fi
5747
5748  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5749                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5750   VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5751   VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5752 else
5753   VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5754   VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5755 fi
5756
5757  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5758                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5759                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5760                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5761   VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5762   VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5763 else
5764   VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5765   VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5766 fi
5767
5768  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5769                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5770   VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5771   VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5772 else
5773   VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5774   VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5775 fi
5776
5777  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5778   VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5779   VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5780 else
5781   VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5782   VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5783 fi
5784
5785  if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
5786   VGCONF_ARCHS_INCLUDE_S390X_TRUE=
5787   VGCONF_ARCHS_INCLUDE_S390X_FALSE='#'
5788 else
5789   VGCONF_ARCHS_INCLUDE_S390X_TRUE='#'
5790   VGCONF_ARCHS_INCLUDE_S390X_FALSE=
5791 fi
5792
5793
5794 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>.  Either one or two of these
5795 # become defined.
5796  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5797                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5798   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5799   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5800 else
5801   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5802   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5803 fi
5804
5805  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5806   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5807   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5808 else
5809   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5810   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5811 fi
5812
5813  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5814                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5815   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5816   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5817 else
5818   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5819   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5820 fi
5821
5822  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5823   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5824   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5825 else
5826   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5827   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5828 fi
5829
5830  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5831   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5832   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5833 else
5834   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5835   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5836 fi
5837
5838  if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
5839                  -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then
5840   VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE=
5841   VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#'
5842 else
5843   VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#'
5844   VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE=
5845 fi
5846
5847
5848  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5849                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5850   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5851   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5852 else
5853   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5854   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5855 fi
5856
5857  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5858   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5859   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5860 else
5861   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5862   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5863 fi
5864
5865
5866  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5867                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5868   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5869   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5870 else
5871   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5872   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5873 fi
5874
5875  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5876   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5877   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5878 else
5879   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5880   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5881 fi
5882
5883  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5884   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5885   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5886 else
5887   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5888   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5889 fi
5890
5891
5892
5893 # Similarly, set up VGCONF_OS_IS_<os>.  Exactly one of these becomes defined.
5894 # Relies on the assumption that the primary and secondary targets are
5895 # for the same OS, so therefore only necessary to test the primary.
5896  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5897                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5898                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5899                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5900                  -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
5901                  -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX; then
5902   VGCONF_OS_IS_LINUX_TRUE=
5903   VGCONF_OS_IS_LINUX_FALSE='#'
5904 else
5905   VGCONF_OS_IS_LINUX_TRUE='#'
5906   VGCONF_OS_IS_LINUX_FALSE=
5907 fi
5908
5909  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5910                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5911   VGCONF_OS_IS_AIX5_TRUE=
5912   VGCONF_OS_IS_AIX5_FALSE='#'
5913 else
5914   VGCONF_OS_IS_AIX5_TRUE='#'
5915   VGCONF_OS_IS_AIX5_FALSE=
5916 fi
5917
5918  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5919                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5920   VGCONF_OS_IS_DARWIN_TRUE=
5921   VGCONF_OS_IS_DARWIN_FALSE='#'
5922 else
5923   VGCONF_OS_IS_DARWIN_TRUE='#'
5924   VGCONF_OS_IS_DARWIN_FALSE=
5925 fi
5926
5927  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5928   VGCONF_OS_IS_L4RE_TRUE=
5929   VGCONF_OS_IS_L4RE_FALSE='#'
5930 else
5931   VGCONF_OS_IS_L4RE_TRUE='#'
5932   VGCONF_OS_IS_L4RE_FALSE=
5933 fi
5934
5935
5936
5937 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5938 # there is a secondary target.
5939  if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5940   VGCONF_HAVE_PLATFORM_SEC_TRUE=
5941   VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5942 else
5943   VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5944   VGCONF_HAVE_PLATFORM_SEC_FALSE=
5945 fi
5946
5947
5948
5949 #----------------------------------------------------------------------------
5950 # Inner Valgrind?
5951 #----------------------------------------------------------------------------
5952
5953 # Check if this should be built as an inner Valgrind, to be run within
5954 # another Valgrind.  Choose the load address accordingly.
5955
5956
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5958 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5959 if ${vg_cv_inner+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   # Check whether --enable-inner was given.
5963 if test "${enable_inner+set}" = set; then :
5964   enableval=$enable_inner; vg_cv_inner=$enableval
5965 else
5966   vg_cv_inner=no
5967 fi
5968
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5971 $as_echo "$vg_cv_inner" >&6; }
5972 if test "$vg_cv_inner" = yes; then
5973
5974 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5975
5976     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5977     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5978 else
5979     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5980     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5981 fi
5982
5983
5984 #----------------------------------------------------------------------------
5985 # Libc and suppressions
5986 #----------------------------------------------------------------------------
5987 # This variable will collect the suppression files to be used.
5988
5989 # This variable holds generated suppression files (such as the one used for
5990 # glibcs >= 2.7)
5991
5992
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5996 if ${ac_cv_path_GREP+:} false; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999   if test -z "$GREP"; then
6000   ac_path_GREP_found=false
6001   # Loop through the user's path and test for each of PROGNAME-LIST
6002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007     for ac_prog in grep ggrep; do
6008     for ac_exec_ext in '' $ac_executable_extensions; do
6009       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6010       as_fn_executable_p "$ac_path_GREP" || continue
6011 # Check for GNU ac_path_GREP and select it if it is found.
6012   # Check for GNU $ac_path_GREP
6013 case `"$ac_path_GREP" --version 2>&1` in
6014 *GNU*)
6015   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6016 *)
6017   ac_count=0
6018   $as_echo_n 0123456789 >"conftest.in"
6019   while :
6020   do
6021     cat "conftest.in" "conftest.in" >"conftest.tmp"
6022     mv "conftest.tmp" "conftest.in"
6023     cp "conftest.in" "conftest.nl"
6024     $as_echo 'GREP' >> "conftest.nl"
6025     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6026     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6027     as_fn_arith $ac_count + 1 && ac_count=$as_val
6028     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6029       # Best one so far, save it but keep looking for a better one
6030       ac_cv_path_GREP="$ac_path_GREP"
6031       ac_path_GREP_max=$ac_count
6032     fi
6033     # 10*(2^10) chars as input seems more than enough
6034     test $ac_count -gt 10 && break
6035   done
6036   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6037 esac
6038
6039       $ac_path_GREP_found && break 3
6040     done
6041   done
6042   done
6043 IFS=$as_save_IFS
6044   if test -z "$ac_cv_path_GREP"; then
6045     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6046   fi
6047 else
6048   ac_cv_path_GREP=$GREP
6049 fi
6050
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6053 $as_echo "$ac_cv_path_GREP" >&6; }
6054  GREP="$ac_cv_path_GREP"
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6058 $as_echo_n "checking for egrep... " >&6; }
6059 if ${ac_cv_path_EGREP+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6063    then ac_cv_path_EGREP="$GREP -E"
6064    else
6065      if test -z "$EGREP"; then
6066   ac_path_EGREP_found=false
6067   # Loop through the user's path and test for each of PROGNAME-LIST
6068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073     for ac_prog in egrep; do
6074     for ac_exec_ext in '' $ac_executable_extensions; do
6075       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6076       as_fn_executable_p "$ac_path_EGREP" || continue
6077 # Check for GNU ac_path_EGREP and select it if it is found.
6078   # Check for GNU $ac_path_EGREP
6079 case `"$ac_path_EGREP" --version 2>&1` in
6080 *GNU*)
6081   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6082 *)
6083   ac_count=0
6084   $as_echo_n 0123456789 >"conftest.in"
6085   while :
6086   do
6087     cat "conftest.in" "conftest.in" >"conftest.tmp"
6088     mv "conftest.tmp" "conftest.in"
6089     cp "conftest.in" "conftest.nl"
6090     $as_echo 'EGREP' >> "conftest.nl"
6091     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6092     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6093     as_fn_arith $ac_count + 1 && ac_count=$as_val
6094     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6095       # Best one so far, save it but keep looking for a better one
6096       ac_cv_path_EGREP="$ac_path_EGREP"
6097       ac_path_EGREP_max=$ac_count
6098     fi
6099     # 10*(2^10) chars as input seems more than enough
6100     test $ac_count -gt 10 && break
6101   done
6102   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6103 esac
6104
6105       $ac_path_EGREP_found && break 3
6106     done
6107   done
6108   done
6109 IFS=$as_save_IFS
6110   if test -z "$ac_cv_path_EGREP"; then
6111     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6112   fi
6113 else
6114   ac_cv_path_EGREP=$EGREP
6115 fi
6116
6117    fi
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6120 $as_echo "$ac_cv_path_EGREP" >&6; }
6121  EGREP="$ac_cv_path_EGREP"
6122
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6125 $as_echo_n "checking for ANSI C header files... " >&6; }
6126 if ${ac_cv_header_stdc+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h.  */
6131 #include <stdlib.h>
6132 #include <stdarg.h>
6133 #include <string.h>
6134 #include <float.h>
6135
6136 int
6137 main ()
6138 {
6139
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145   ac_cv_header_stdc=yes
6146 else
6147   ac_cv_header_stdc=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150
6151 if test $ac_cv_header_stdc = yes; then
6152   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h.  */
6155 #include <string.h>
6156
6157 _ACEOF
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159   $EGREP "memchr" >/dev/null 2>&1; then :
6160
6161 else
6162   ac_cv_header_stdc=no
6163 fi
6164 rm -f conftest*
6165
6166 fi
6167
6168 if test $ac_cv_header_stdc = yes; then
6169   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h.  */
6172 #include <stdlib.h>
6173
6174 _ACEOF
6175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6176   $EGREP "free" >/dev/null 2>&1; then :
6177
6178 else
6179   ac_cv_header_stdc=no
6180 fi
6181 rm -f conftest*
6182
6183 fi
6184
6185 if test $ac_cv_header_stdc = yes; then
6186   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6187   if test "$cross_compiling" = yes; then :
6188   :
6189 else
6190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h.  */
6192 #include <ctype.h>
6193 #include <stdlib.h>
6194 #if ((' ' & 0x0FF) == 0x020)
6195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6197 #else
6198 # define ISLOWER(c) \
6199                    (('a' <= (c) && (c) <= 'i') \
6200                      || ('j' <= (c) && (c) <= 'r') \
6201                      || ('s' <= (c) && (c) <= 'z'))
6202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6203 #endif
6204
6205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6206 int
6207 main ()
6208 {
6209   int i;
6210   for (i = 0; i < 256; i++)
6211     if (XOR (islower (i), ISLOWER (i))
6212         || toupper (i) != TOUPPER (i))
6213       return 2;
6214   return 0;
6215 }
6216 _ACEOF
6217 if ac_fn_c_try_run "$LINENO"; then :
6218
6219 else
6220   ac_cv_header_stdc=no
6221 fi
6222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6223   conftest.$ac_objext conftest.beam conftest.$ac_ext
6224 fi
6225
6226 fi
6227 fi
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6229 $as_echo "$ac_cv_header_stdc" >&6; }
6230 if test $ac_cv_header_stdc = yes; then
6231
6232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6233
6234 fi
6235
6236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6238                   inttypes.h stdint.h unistd.h
6239 do :
6240   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6241 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6242 "
6243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6244   cat >>confdefs.h <<_ACEOF
6245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6246 _ACEOF
6247
6248 fi
6249
6250 done
6251
6252
6253 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6254 if test "x$ac_cv_header_features_h" = xyes; then :
6255
6256 fi
6257
6258
6259
6260 if test x$ac_cv_header_features_h = xyes; then
6261   rm -f conftest.$ac_ext
6262   cat <<_ACEOF >conftest.$ac_ext
6263 #include <features.h>
6264 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6265 glibc version is: __GLIBC__ __GLIBC_MINOR__
6266 #endif
6267 _ACEOF
6268   GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6269 fi
6270
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h.  */
6273
6274 #include <standards.h>
6275 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6276   AIX5_LIBC
6277 #endif
6278
6279 _ACEOF
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281   $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6282   GLIBC_VERSION="aix5"
6283 fi
6284 rm -f conftest*
6285
6286
6287 # not really a version check
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h.  */
6290
6291 #include <sys/cdefs.h>
6292 #if defined(__DARWIN_VERS_1050)
6293   DARWIN_LIBC
6294 #endif
6295
6296 _ACEOF
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298   $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6299   GLIBC_VERSION="darwin"
6300 fi
6301 rm -f conftest*
6302
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6305 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6306
6307 case "${GLIBC_VERSION}" in
6308      2.2)
6309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6310 $as_echo "2.2 family" >&6; }
6311
6312 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6313
6314         DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6315         DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6316         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6317         ;;
6318
6319      2.3)
6320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6321 $as_echo "2.3 family" >&6; }
6322
6323 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6324
6325         DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6326         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6327         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6328         ;;
6329
6330      2.4)
6331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6332 $as_echo "2.4 family" >&6; }
6333
6334 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6335
6336         DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6337         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6338         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6339         ;;
6340
6341      2.5)
6342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6343 $as_echo "2.5 family" >&6; }
6344
6345 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6346
6347         DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6348         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6349         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6350         ;;
6351      2.6)
6352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6353 $as_echo "2.6 family" >&6; }
6354
6355 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6356
6357         DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6358         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6359         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6360         ;;
6361      2.7)
6362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6363 $as_echo "2.7 family" >&6; }
6364
6365 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6366
6367         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6368         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6369         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6370         ;;
6371      2.8)
6372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6373 $as_echo "2.8 family" >&6; }
6374
6375 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6376
6377         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6378         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6379         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6380         ;;
6381      2.9)
6382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6383 $as_echo "2.9 family" >&6; }
6384
6385 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6386
6387         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6388         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6389         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6390         ;;
6391      2.10)
6392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6393 $as_echo "2.10 family" >&6; }
6394
6395 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6396
6397         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6398         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6399         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6400         ;;
6401      2.11)
6402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6403 $as_echo "2.11 family" >&6; }
6404
6405 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6406
6407         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6408         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6409         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6410         ;;
6411      2.12)
6412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6413 $as_echo "2.12 family" >&6; }
6414
6415 $as_echo "#define GLIBC_2_12 1" >>confdefs.h
6416
6417         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6418         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6419         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6420         ;;
6421      2.13)
6422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.13 family" >&5
6423 $as_echo "2.13 family" >&6; }
6424
6425 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6426
6427         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6428         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6429         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6430         ;;
6431      2.14)
6432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.14 family" >&5
6433 $as_echo "2.14 family" >&6; }
6434
6435 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6436
6437         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6438         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6439         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6440         ;;
6441      2.15)
6442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.15 family" >&5
6443 $as_echo "2.15 family" >&6; }
6444
6445 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6446
6447         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6448         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6449         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6450         ;;
6451      2.16)
6452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.16 family" >&5
6453 $as_echo "2.16 family" >&6; }
6454
6455 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6456
6457         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6458         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6459         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6460         ;;
6461      2.17)
6462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.17 family" >&5
6463 $as_echo "2.17 family" >&6; }
6464
6465 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6466
6467         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6468         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6469         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6470         ;;
6471      2.18)
6472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.18 family" >&5
6473 $as_echo "2.18 family" >&6; }
6474
6475 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6476
6477         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6478         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6479         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6480         ;;
6481      2.19)
6482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.19 family" >&5
6483 $as_echo "2.19 family" >&6; }
6484
6485 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6486
6487         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6488         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6489         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6490         ;;
6491      aix5)
6492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6493 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6494
6495 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6496
6497         DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6498         ;;
6499      darwin)
6500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6501 $as_echo "Darwin" >&6; }
6502
6503 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6504
6505         # DEFAULT_SUPP set by kernel version check above.
6506         ;;
6507
6508      *)
6509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6510 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6511         as_fn_error $? "Valgrind requires glibc version 2.2 - 2.13" "$LINENO" 5
6512         as_fn_error $? "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6513         as_fn_error $? "or Darwin libc" "$LINENO" 5
6514         ;;
6515 esac
6516
6517
6518
6519
6520 # Add default suppressions for the X client libraries.  Make no
6521 # attempt to detect whether such libraries are installed on the
6522 # build machine (or even if any X facilities are present); just
6523 # add the suppressions antidisirregardless.
6524 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6525 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6526
6527 # Add glibc and X11 suppressions for exp-sgcheck
6528 DEFAULT_SUPP="exp-sgcheck.supp ${DEFAULT_SUPP}"
6529
6530
6531 #----------------------------------------------------------------------------
6532 # Checking for various library functions and other definitions
6533 #----------------------------------------------------------------------------
6534
6535 # Check for CLOCK_MONOTONIC
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6538 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6539
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h.  */
6542
6543 #include <time.h>
6544
6545 int
6546 main ()
6547 {
6548
6549   struct timespec t;
6550   clock_gettime(CLOCK_MONOTONIC, &t);
6551   return 0;
6552
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6560 $as_echo "yes" >&6; }
6561
6562 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6563
6564
6565 else
6566
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572
6573
6574 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6577 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6578
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h.  */
6581
6582 #define _GNU_SOURCE
6583 #include <pthread.h>
6584
6585 int
6586 main ()
6587 {
6588
6589   return (PTHREAD_MUTEX_ADAPTIVE_NP);
6590
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6598 $as_echo "yes" >&6; }
6599
6600 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6601
6602
6603 else
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610
6611
6612 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6615 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6616
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h.  */
6619
6620 #define _GNU_SOURCE
6621 #include <pthread.h>
6622
6623 int
6624 main ()
6625 {
6626
6627   return (PTHREAD_MUTEX_ERRORCHECK_NP);
6628
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 if ac_fn_c_try_compile "$LINENO"; then :
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6636 $as_echo "yes" >&6; }
6637
6638 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6639
6640
6641 else
6642
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648
6649
6650 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6651
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6653 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6654
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h.  */
6657
6658 #define _GNU_SOURCE
6659 #include <pthread.h>
6660
6661 int
6662 main ()
6663 {
6664
6665   return (PTHREAD_MUTEX_RECURSIVE_NP);
6666
6667   ;
6668   return 0;
6669 }
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6674 $as_echo "yes" >&6; }
6675
6676 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6677
6678
6679 else
6680
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683
6684 fi
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686
6687
6688 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6691 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6692
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h.  */
6695
6696 #define _GNU_SOURCE
6697 #include <pthread.h>
6698
6699 int
6700 main ()
6701 {
6702
6703   pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6704   return 0;
6705
6706   ;
6707   return 0;
6708 }
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6713 $as_echo "yes" >&6; }
6714
6715 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6716
6717
6718 else
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6722
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725
6726
6727 # Check whether pthread_mutex_t has a member called __m_kind.
6728
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6730 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6731
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h.  */
6734
6735   #include <pthread.h>
6736
6737 int
6738 main ()
6739 {
6740
6741   pthread_mutex_t m;
6742   return m.__m_kind;
6743
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 if ac_fn_c_try_compile "$LINENO"; then :
6749
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751 $as_echo "yes" >&6; }
6752
6753 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6754
6755
6756 else
6757
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763
6764
6765 # Check whether pthread_mutex_t has a member called __data.__kind.
6766
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6768 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6769
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h.  */
6772
6773 #include <pthread.h>
6774
6775 int
6776 main ()
6777 {
6778
6779   pthread_mutex_t m;
6780   return m.__data.__kind;
6781
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_compile "$LINENO"; then :
6787
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6789 $as_echo "yes" >&6; }
6790
6791 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6792
6793
6794 else
6795
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801
6802
6803 # does this compiler support -maltivec and does it have the include file
6804 # <altivec.h> ?
6805
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6807 $as_echo_n "checking for Altivec... " >&6; }
6808
6809 safe_CFLAGS=$CFLAGS
6810 CFLAGS="-maltivec"
6811
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h.  */
6814
6815 #include <altivec.h>
6816
6817 int
6818 main ()
6819 {
6820
6821   vector unsigned int v;
6822
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828
6829 ac_have_altivec=yes
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6831 $as_echo "yes" >&6; }
6832
6833 $as_echo "#define HAS_ALTIVEC 1" >>confdefs.h
6834
6835
6836 else
6837
6838 ac_have_altivec=no
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 CFLAGS=$safe_CFLAGS
6845
6846  if test x$ac_have_altivec = xyes; then
6847   HAS_ALTIVEC_TRUE=
6848   HAS_ALTIVEC_FALSE='#'
6849 else
6850   HAS_ALTIVEC_TRUE='#'
6851   HAS_ALTIVEC_FALSE=
6852 fi
6853
6854
6855
6856 # Check that both: the compiler supports -mvsx and that the assembler
6857 # understands VSX instructions.  If either of those doesn't work,
6858 # conclude that we can't do VSX.  NOTE: basically this is a kludge
6859 # in that it conflates two things that should be separate -- whether
6860 # the compiler understands the flag vs whether the assembler
6861 # understands the opcodes.  This really ought to be cleaned up
6862 # and done properly, like it is for x86/x86_64.
6863
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX" >&5
6865 $as_echo_n "checking for VSX... " >&6; }
6866
6867 safe_CFLAGS=$CFLAGS
6868 CFLAGS="-mvsx"
6869
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872
6873 #include <altivec.h>
6874
6875 int
6876 main ()
6877 {
6878
6879   vector unsigned int v;
6880   __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc");
6881
6882   ;
6883   return 0;
6884 }
6885 _ACEOF
6886 if ac_fn_c_try_compile "$LINENO"; then :
6887
6888 ac_have_vsx=yes
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6890 $as_echo "yes" >&6; }
6891
6892 else
6893
6894 ac_have_vsx=no
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 CFLAGS=$safe_CFLAGS
6901
6902  if test x$ac_have_vsx = xyes; then
6903   HAS_VSX_TRUE=
6904   HAS_VSX_FALSE='#'
6905 else
6906   HAS_VSX_TRUE='#'
6907   HAS_VSX_FALSE=
6908 fi
6909
6910
6911
6912 # Check for pthread_create@GLIBC2.0
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6914 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6915
6916 safe_CFLAGS=$CFLAGS
6917 CFLAGS="-lpthread"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h.  */
6920
6921 extern int pthread_create_glibc_2_0(void*, const void*,
6922                                     void *(*)(void*), void*);
6923 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6924
6925 int
6926 main ()
6927 {
6928
6929 #ifdef __powerpc__
6930 /*
6931  * Apparently on PowerPC linking this program succeeds and generates an
6932  * executable with the undefined symbol pthread_create@GLIBC_2.0.
6933  */
6934 #error This test does not work properly on PowerPC.
6935 #else
6936   pthread_create_glibc_2_0(0, 0, 0, 0);
6937 #endif
6938   return 0;
6939
6940   ;
6941   return 0;
6942 }
6943 _ACEOF
6944 if ac_fn_c_try_link "$LINENO"; then :
6945
6946 ac_have_pthread_create_glibc_2_0=yes
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6948 $as_echo "yes" >&6; }
6949
6950 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6951
6952
6953 else
6954
6955 ac_have_pthread_create_glibc_2_0=no
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958
6959 fi
6960 rm -f core conftest.err conftest.$ac_objext \
6961     conftest$ac_exeext conftest.$ac_ext
6962 CFLAGS=$safe_CFLAGS
6963
6964  if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6965   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6966   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6967 else
6968   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6969   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6970 fi
6971
6972
6973
6974 # Check for eventfd_t, eventfd() and eventfd_read()
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6976 $as_echo_n "checking for eventfd()... " >&6; }
6977
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h.  */
6980
6981 #include <sys/eventfd.h>
6982
6983 int
6984 main ()
6985 {
6986
6987   eventfd_t ev;
6988   int fd;
6989
6990   fd = eventfd(5, 0);
6991   eventfd_read(fd, &ev);
6992   return 0;
6993
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 if ac_fn_c_try_link "$LINENO"; then :
6999
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7001 $as_echo "yes" >&6; }
7002
7003 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
7004
7005
7006 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
7007
7008
7009 else
7010
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext \
7016     conftest$ac_exeext conftest.$ac_ext
7017
7018
7019 #----------------------------------------------------------------------------
7020 # Checking for supported compiler flags.
7021 #----------------------------------------------------------------------------
7022
7023 # does this compiler support -m32 ?
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
7025 $as_echo_n "checking if gcc accepts -m32... " >&6; }
7026
7027 safe_CFLAGS=$CFLAGS
7028 CFLAGS="-m32"
7029
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h.  */
7032
7033 int
7034 main ()
7035 {
7036
7037   return 0;
7038
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"; then :
7044
7045 FLAG_M32="-m32"
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7047 $as_echo "yes" >&6; }
7048
7049 else
7050
7051 FLAG_M32=""
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 CFLAGS=$safe_CFLAGS
7058
7059
7060
7061
7062 # does this compiler support -maix32 ?
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
7064 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
7065
7066 safe_CFLAGS=$CFLAGS
7067 CFLAGS="-maix32"
7068
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h.  */
7071
7072 int
7073 main ()
7074 {
7075
7076   return 0;
7077
7078   ;
7079   return 0;
7080 }
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083
7084 FLAG_MAIX32="-maix32"
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7086 $as_echo "yes" >&6; }
7087
7088 else
7089
7090 FLAG_MAIX32=""
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093
7094 fi
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 CFLAGS=$safe_CFLAGS
7097
7098
7099
7100
7101 # does this compiler support -m64 ?
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
7103 $as_echo_n "checking if gcc accepts -m64... " >&6; }
7104
7105 safe_CFLAGS=$CFLAGS
7106 CFLAGS="-m64"
7107
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h.  */
7110
7111 int
7112 main ()
7113 {
7114
7115   return 0;
7116
7117   ;
7118   return 0;
7119 }
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122
7123 FLAG_M64="-m64"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7125 $as_echo "yes" >&6; }
7126
7127 else
7128
7129 FLAG_M64=""
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 CFLAGS=$safe_CFLAGS
7136
7137
7138
7139
7140 # does this compiler support -maix64 ?
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
7142 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
7143
7144 safe_CFLAGS=$CFLAGS
7145 CFLAGS="-maix64"
7146
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h.  */
7149
7150 int
7151 main ()
7152 {
7153
7154   return 0;
7155
7156   ;
7157   return 0;
7158 }
7159 _ACEOF
7160 if ac_fn_c_try_compile "$LINENO"; then :
7161
7162 FLAG_MAIX64="-maix64"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164 $as_echo "yes" >&6; }
7165
7166 else
7167
7168 FLAG_MAIX64=""
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171
7172 fi
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174 CFLAGS=$safe_CFLAGS
7175
7176
7177
7178
7179 # does this compiler support -mmmx ?
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
7181 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
7182
7183 safe_CFLAGS=$CFLAGS
7184 CFLAGS="-mmmx"
7185
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h.  */
7188
7189 int
7190 main ()
7191 {
7192
7193   return 0;
7194
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200
7201 FLAG_MMMX="-mmmx"
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7203 $as_echo "yes" >&6; }
7204
7205 else
7206
7207 FLAG_MMMX=""
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210
7211 fi
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 CFLAGS=$safe_CFLAGS
7214
7215
7216
7217
7218 # does this compiler support -msse ?
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7220 $as_echo_n "checking if gcc accepts -msse... " >&6; }
7221
7222 safe_CFLAGS=$CFLAGS
7223 CFLAGS="-msse"
7224
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h.  */
7227
7228 int
7229 main ()
7230 {
7231
7232   return 0;
7233
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_compile "$LINENO"; then :
7239
7240 FLAG_MSSE="-msse"
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7242 $as_echo "yes" >&6; }
7243
7244 else
7245
7246 FLAG_MSSE=""
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7249
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 CFLAGS=$safe_CFLAGS
7253
7254
7255
7256
7257 # does this compiler support -mpreferred-stack-boundary=2 ?
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7259 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7260
7261 safe_CFLAGS=$CFLAGS
7262 CFLAGS="-mpreferred-stack-boundary=2"
7263
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266
7267 int
7268 main ()
7269 {
7270
7271   return 0;
7272
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 if ac_fn_c_try_compile "$LINENO"; then :
7278
7279 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7282
7283 else
7284
7285 PREFERRED_STACK_BOUNDARY=""
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 CFLAGS=$safe_CFLAGS
7292
7293
7294
7295
7296 # does this compiler support -Wno-pointer-sign ?
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7298 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7299
7300 safe_CFLAGS=$CFLAGS
7301 CFLAGS="-Wno-pointer-sign"
7302
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305
7306 int
7307 main ()
7308 {
7309
7310   return 0;
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 if ac_fn_c_try_compile "$LINENO"; then :
7317
7318 no_pointer_sign=yes
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7320 $as_echo "yes" >&6; }
7321
7322 else
7323
7324 no_pointer_sign=no
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 CFLAGS=$safe_CFLAGS
7331
7332 if test x$no_pointer_sign = xyes; then
7333   CFLAGS="$CFLAGS -Wno-pointer-sign"
7334 fi
7335
7336
7337 # does this compiler support -Wno-empty-body ?
7338
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7340 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7341
7342 safe_CFLAGS=$CFLAGS
7343 CFLAGS="-Wno-empty-body"
7344
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h.  */
7347
7348 int
7349 main ()
7350 {
7351
7352   return 0;
7353
7354   ;
7355   return 0;
7356 }
7357 _ACEOF
7358 if ac_fn_c_try_compile "$LINENO"; then :
7359
7360 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7363 $as_echo "yes" >&6; }
7364
7365 else
7366
7367
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 CFLAGS=$safe_CFLAGS
7374
7375
7376 # does this compiler support -Wno-format-zero-length ?
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7379 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7380
7381 safe_CFLAGS=$CFLAGS
7382 CFLAGS="-Wno-format-zero-length"
7383
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h.  */
7386
7387 int
7388 main ()
7389 {
7390
7391   return 0;
7392
7393   ;
7394   return 0;
7395 }
7396 _ACEOF
7397 if ac_fn_c_try_compile "$LINENO"; then :
7398
7399 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7400
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7402 $as_echo "yes" >&6; }
7403
7404 else
7405
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 CFLAGS=$safe_CFLAGS
7413
7414
7415 # does this compiler support -Wno-nonnull ?
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-nonnull" >&5
7418 $as_echo_n "checking if gcc accepts -Wno-nonnull... " >&6; }
7419
7420 safe_CFLAGS=$CFLAGS
7421 CFLAGS="-Wno-nonnull"
7422
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h.  */
7425
7426 int
7427 main ()
7428 {
7429
7430   return 0;
7431
7432   ;
7433   return 0;
7434 }
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437
7438 FLAG_W_NO_NONNULL=-Wno-nonnull
7439
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441 $as_echo "yes" >&6; }
7442
7443 else
7444
7445
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 CFLAGS=$safe_CFLAGS
7452
7453
7454 # does this compiler support -Wno-overflow ?
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-overflow" >&5
7457 $as_echo_n "checking if gcc accepts -Wno-overflow... " >&6; }
7458
7459 safe_CFLAGS=$CFLAGS
7460 CFLAGS="-Wno-overflow"
7461
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h.  */
7464
7465 int
7466 main ()
7467 {
7468
7469   return 0;
7470
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476
7477 FLAG_W_NO_OVERFLOW=-Wno-overflow
7478
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7480 $as_echo "yes" >&6; }
7481
7482 else
7483
7484
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 CFLAGS=$safe_CFLAGS
7491
7492
7493 # does this compiler support -Wno-uninitialized ?
7494
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7496 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7497
7498 safe_CFLAGS=$CFLAGS
7499 CFLAGS="-Wno-uninitialized"
7500
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h.  */
7503
7504 int
7505 main ()
7506 {
7507
7508   return 0;
7509
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515
7516 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7517
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519 $as_echo "yes" >&6; }
7520
7521 else
7522
7523
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7526
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 CFLAGS=$safe_CFLAGS
7530
7531
7532 # does this compiler support -Wextra or the older -W ?
7533
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7535 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7536
7537 safe_CFLAGS=$CFLAGS
7538 CFLAGS="-Wextra"
7539
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h.  */
7542
7543 int
7544 main ()
7545 {
7546
7547   return 0;
7548
7549   ;
7550   return 0;
7551 }
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554
7555 FLAG_W_EXTRA=-Wextra
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7558 $as_echo "-Wextra" >&6; }
7559
7560 else
7561
7562   CFLAGS="-W"
7563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h.  */
7565
7566 int
7567 main ()
7568 {
7569
7570     return 0;
7571
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577
7578   FLAG_W_EXTRA=-W
7579
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7581 $as_echo "-W" >&6; }
7582
7583 else
7584
7585
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7587 $as_echo "not supported" >&6; }
7588
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 CFLAGS=$safe_CFLAGS
7595
7596
7597 # does this compiler support -fno-stack-protector ?
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7599 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7600
7601 safe_CFLAGS=$CFLAGS
7602 CFLAGS="-fno-stack-protector"
7603
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h.  */
7606
7607 int
7608 main ()
7609 {
7610
7611   return 0;
7612
7613   ;
7614   return 0;
7615 }
7616 _ACEOF
7617 if ac_fn_c_try_compile "$LINENO"; then :
7618
7619 no_stack_protector=yes
7620 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622 $as_echo "yes" >&6; }
7623
7624 else
7625
7626 no_stack_protector=no
7627 FLAG_FNO_STACK_PROTECTOR=""
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630
7631 fi
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 CFLAGS=$safe_CFLAGS
7634
7635
7636
7637 if test x$no_stack_protector = xyes; then
7638   CFLAGS="$CFLAGS -fno-stack-protector"
7639 fi
7640
7641
7642 # does this compiler support --param inline-unit-growth=... ?
7643
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7645 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7646
7647 safe_CFLAGS=$CFLAGS
7648 CFLAGS="--param inline-unit-growth=900"
7649
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h.  */
7652
7653 int
7654 main ()
7655 {
7656
7657   return 0;
7658
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 if ac_fn_c_try_compile "$LINENO"; then :
7664
7665 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7666
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7668 $as_echo "yes" >&6; }
7669
7670 else
7671
7672 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676
7677 fi
7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679 CFLAGS=$safe_CFLAGS
7680
7681
7682 # does the linker support -Wl,--build-id=none ?  Note, it's
7683 # important that we test indirectly via whichever C compiler
7684 # is selected, rather than testing /usr/bin/ld or whatever
7685 # directly.
7686
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7688 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7689
7690 safe_CFLAGS=$CFLAGS
7691 CFLAGS="-Wl,--build-id=none"
7692
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h.  */
7695
7696 int
7697 main ()
7698 {
7699 return 0;
7700   ;
7701   return 0;
7702 }
7703 _ACEOF
7704 if ac_fn_c_try_link "$LINENO"; then :
7705
7706   FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7707
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7709 $as_echo "yes" >&6; }
7710
7711 else
7712
7713   FLAG_NO_BUILD_ID=""
7714
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext \
7720     conftest$ac_exeext conftest.$ac_ext
7721 CFLAGS=$safe_CFLAGS
7722
7723
7724 # does the ppc assembler support "mtocrf" et al?
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7726 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7727
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h.  */
7730
7731 int
7732 main ()
7733 {
7734
7735 __asm__ __volatile__("mtocrf 4,0");
7736 __asm__ __volatile__("mfocrf 0,4");
7737
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743
7744 ac_have_as_ppc_mftocrf=yes
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 $as_echo "yes" >&6; }
7747
7748 else
7749
7750 ac_have_as_ppc_mftocrf=no
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7753
7754 fi
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7757
7758 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7759
7760 fi
7761
7762
7763 CFLAGS=$safe_CFLAGS
7764
7765 # does the x86/amd64 assembler understand SSE3 instructions?
7766 # Note, this doesn't generate a C-level symbol.  It generates a
7767 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7769 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7770
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h.  */
7773
7774 int
7775 main ()
7776 {
7777
7778   do { long long int x;
7779      __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7780   while (0)
7781
7782   ;
7783   return 0;
7784 }
7785 _ACEOF
7786 if ac_fn_c_try_compile "$LINENO"; then :
7787
7788 ac_have_as_sse3=yes
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7790 $as_echo "yes" >&6; }
7791
7792 else
7793
7794 ac_have_as_sse3=no
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797
7798 fi
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800
7801  if test x$ac_have_as_sse3 = xyes; then
7802   BUILD_SSE3_TESTS_TRUE=
7803   BUILD_SSE3_TESTS_FALSE='#'
7804 else
7805   BUILD_SSE3_TESTS_TRUE='#'
7806   BUILD_SSE3_TESTS_FALSE=
7807 fi
7808
7809
7810
7811 # Ditto for SSSE3 instructions (note extra S)
7812 # Note, this doesn't generate a C-level symbol.  It generates a
7813 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7815 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7816
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h.  */
7819
7820 int
7821 main ()
7822 {
7823
7824   do { long long int x;
7825    __asm__ __volatile__(
7826       "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7827   while (0)
7828
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 if ac_fn_c_try_compile "$LINENO"; then :
7834
7835 ac_have_as_ssse3=yes
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7837 $as_echo "yes" >&6; }
7838
7839 else
7840
7841 ac_have_as_ssse3=no
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844
7845 fi
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847
7848  if test x$ac_have_as_ssse3 = xyes; then
7849   BUILD_SSSE3_TESTS_TRUE=
7850   BUILD_SSSE3_TESTS_FALSE='#'
7851 else
7852   BUILD_SSSE3_TESTS_TRUE='#'
7853   BUILD_SSSE3_TESTS_FALSE=
7854 fi
7855
7856
7857
7858 # does the x86/amd64 assembler understand the PCLMULQDQ instruction?
7859 # Note, this doesn't generate a C-level symbol.  It generates a
7860 # automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
7862 $as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h.  */
7865
7866 int
7867 main ()
7868 {
7869
7870   do {
7871    __asm__ __volatile__(
7872       "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
7873   while (0)
7874
7875   ;
7876   return 0;
7877 }
7878 _ACEOF
7879 if ac_fn_c_try_compile "$LINENO"; then :
7880
7881 ac_have_as_pclmulqdq=yes
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883 $as_echo "yes" >&6; }
7884
7885 else
7886
7887 ac_have_as_pclmulqdq=no
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893
7894  if test x$ac_have_as_pclmulqdq = xyes; then
7895   BUILD_PCLMULQDQ_TESTS_TRUE=
7896   BUILD_PCLMULQDQ_TESTS_FALSE='#'
7897 else
7898   BUILD_PCLMULQDQ_TESTS_TRUE='#'
7899   BUILD_PCLMULQDQ_TESTS_FALSE=
7900 fi
7901
7902
7903
7904 # does the x86/amd64 assembler understand the LZCNT instruction?
7905 # Note, this doesn't generate a C-level symbol.  It generates a
7906 # automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
7908 $as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
7909
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h.  */
7912
7913 int
7914 main ()
7915 {
7916
7917   do {
7918       __asm__ __volatile__("lzcnt %rax,%rax");
7919   } while (0)
7920
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 if ac_fn_c_try_compile "$LINENO"; then :
7926
7927   ac_have_as_lzcnt=yes
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7929 $as_echo "yes" >&6; }
7930
7931 else
7932
7933   ac_have_as_lzcnt=no
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939
7940  if test x$ac_have_as_lzcnt = xyes; then
7941   BUILD_LZCNT_TESTS_TRUE=
7942   BUILD_LZCNT_TESTS_FALSE='#'
7943 else
7944   BUILD_LZCNT_TESTS_TRUE='#'
7945   BUILD_LZCNT_TESTS_FALSE=
7946 fi
7947
7948
7949
7950 # does the x86/amd64 assembler understand SSE 4.2 instructions?
7951 # Note, this doesn't generate a C-level symbol.  It generates a
7952 # automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5
7954 $as_echo_n "checking if x86/amd64 assembler speaks SSE4.2... " >&6; }
7955
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h.  */
7958
7959 int
7960 main ()
7961 {
7962
7963   do { long long int x;
7964    __asm__ __volatile__(
7965       "crc32q %%r15,%%r15" : : : "r15" ); }
7966   while (0)
7967
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973
7974 ac_have_as_sse42=yes
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976 $as_echo "yes" >&6; }
7977
7978 else
7979
7980 ac_have_as_sse42=no
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983
7984 fi
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986
7987  if test x$ac_have_as_sse42 = xyes; then
7988   BUILD_SSE42_TESTS_TRUE=
7989   BUILD_SSE42_TESTS_FALSE='#'
7990 else
7991   BUILD_SSE42_TESTS_TRUE='#'
7992   BUILD_SSE42_TESTS_FALSE=
7993 fi
7994
7995
7996
7997 # XXX JRS 2010 Oct 13: what is this for?  For sure, we don't need this
7998 # when building the tool executables.  I think we should get rid of it.
7999 #
8000 # Check for TLS support in the compiler and linker
8001 if test "x${cross_compiling}" = "xno"; then
8002 # Native compilation: check whether running a program using TLS succeeds.
8003 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
8004 # succeeds but running programs using TLS fails.
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
8006 $as_echo_n "checking for TLS support... " >&6; }
8007 if ${vg_cv_tls+:} false; then :
8008   $as_echo_n "(cached) " >&6
8009 else
8010   # Check whether --enable-tls was given.
8011 if test "${enable_tls+set}" = set; then :
8012   enableval=$enable_tls; vg_cv_tls=$enableval
8013 else
8014   if test "$cross_compiling" = yes; then :
8015   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8017 as_fn_error $? "cannot run test program while cross compiling
8018 See \`config.log' for more details" "$LINENO" 5; }
8019 else
8020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h.  */
8022 static __thread int foo;
8023 int
8024 main ()
8025 {
8026 return foo;
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_run "$LINENO"; then :
8032   vg_cv_tls=yes
8033 else
8034   vg_cv_tls=no
8035 fi
8036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8037   conftest.$ac_objext conftest.beam conftest.$ac_ext
8038 fi
8039
8040 fi
8041
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8044 $as_echo "$vg_cv_tls" >&6; }
8045 else
8046 # Cross-compiling: check whether linking a program using TLS succeeds.
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
8048 $as_echo_n "checking for TLS support... " >&6; }
8049 if ${vg_cv_tls+:} false; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   # Check whether --enable-tls was given.
8053 if test "${enable_tls+set}" = set; then :
8054   enableval=$enable_tls; vg_cv_tls=$enableval
8055 else
8056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058 static __thread int foo;
8059 int
8060 main ()
8061 {
8062 return foo;
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_link "$LINENO"; then :
8068   vg_cv_tls=yes
8069 else
8070   vg_cv_tls=no
8071 fi
8072 rm -f core conftest.err conftest.$ac_objext \
8073     conftest$ac_exeext conftest.$ac_ext
8074 fi
8075
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8078 $as_echo "$vg_cv_tls" >&6; }
8079 fi
8080
8081 if test "$vg_cv_tls" = yes; then
8082
8083 $as_echo "#define HAVE_TLS 1" >>confdefs.h
8084
8085 fi
8086
8087
8088 #----------------------------------------------------------------------------
8089 # Checks for C header files.
8090 #----------------------------------------------------------------------------
8091
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8093 $as_echo_n "checking for ANSI C header files... " >&6; }
8094 if ${ac_cv_header_stdc+:} false; then :
8095   $as_echo_n "(cached) " >&6
8096 else
8097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h.  */
8099 #include <stdlib.h>
8100 #include <stdarg.h>
8101 #include <string.h>
8102 #include <float.h>
8103
8104 int
8105 main ()
8106 {
8107
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113   ac_cv_header_stdc=yes
8114 else
8115   ac_cv_header_stdc=no
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118
8119 if test $ac_cv_header_stdc = yes; then
8120   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h.  */
8123 #include <string.h>
8124
8125 _ACEOF
8126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8127   $EGREP "memchr" >/dev/null 2>&1; then :
8128
8129 else
8130   ac_cv_header_stdc=no
8131 fi
8132 rm -f conftest*
8133
8134 fi
8135
8136 if test $ac_cv_header_stdc = yes; then
8137   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h.  */
8140 #include <stdlib.h>
8141
8142 _ACEOF
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144   $EGREP "free" >/dev/null 2>&1; then :
8145
8146 else
8147   ac_cv_header_stdc=no
8148 fi
8149 rm -f conftest*
8150
8151 fi
8152
8153 if test $ac_cv_header_stdc = yes; then
8154   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8155   if test "$cross_compiling" = yes; then :
8156   :
8157 else
8158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h.  */
8160 #include <ctype.h>
8161 #include <stdlib.h>
8162 #if ((' ' & 0x0FF) == 0x020)
8163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8165 #else
8166 # define ISLOWER(c) \
8167                    (('a' <= (c) && (c) <= 'i') \
8168                      || ('j' <= (c) && (c) <= 'r') \
8169                      || ('s' <= (c) && (c) <= 'z'))
8170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8171 #endif
8172
8173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8174 int
8175 main ()
8176 {
8177   int i;
8178   for (i = 0; i < 256; i++)
8179     if (XOR (islower (i), ISLOWER (i))
8180         || toupper (i) != TOUPPER (i))
8181       return 2;
8182   return 0;
8183 }
8184 _ACEOF
8185 if ac_fn_c_try_run "$LINENO"; then :
8186
8187 else
8188   ac_cv_header_stdc=no
8189 fi
8190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8191   conftest.$ac_objext conftest.beam conftest.$ac_ext
8192 fi
8193
8194 fi
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8197 $as_echo "$ac_cv_header_stdc" >&6; }
8198 if test $ac_cv_header_stdc = yes; then
8199
8200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8201
8202 fi
8203
8204 for ac_header in        \
8205         asm/unistd.h     \
8206         endian.h         \
8207         mqueue.h         \
8208         sys/endian.h     \
8209         sys/epoll.h      \
8210         sys/eventfd.h    \
8211         sys/klog.h       \
8212         sys/poll.h       \
8213         sys/signal.h     \
8214         sys/signalfd.h   \
8215         sys/syscall.h    \
8216         sys/time.h       \
8217         sys/types.h      \
8218
8219 do :
8220   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8221 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8222 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8223   cat >>confdefs.h <<_ACEOF
8224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8225 _ACEOF
8226
8227 fi
8228
8229 done
8230
8231
8232 #----------------------------------------------------------------------------
8233 # Checks for typedefs, structures, and compiler characteristics.
8234 #----------------------------------------------------------------------------
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8236 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8237 if ${ac_cv_type_uid_t+:} false; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h.  */
8242 #include <sys/types.h>
8243
8244 _ACEOF
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246   $EGREP "uid_t" >/dev/null 2>&1; then :
8247   ac_cv_type_uid_t=yes
8248 else
8249   ac_cv_type_uid_t=no
8250 fi
8251 rm -f conftest*
8252
8253 fi
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8255 $as_echo "$ac_cv_type_uid_t" >&6; }
8256 if test $ac_cv_type_uid_t = no; then
8257
8258 $as_echo "#define uid_t int" >>confdefs.h
8259
8260
8261 $as_echo "#define gid_t int" >>confdefs.h
8262
8263 fi
8264
8265 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8266 if test "x$ac_cv_type_off_t" = xyes; then :
8267
8268 else
8269
8270 cat >>confdefs.h <<_ACEOF
8271 #define off_t long int
8272 _ACEOF
8273
8274 fi
8275
8276 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8277 if test "x$ac_cv_type_size_t" = xyes; then :
8278
8279 else
8280
8281 cat >>confdefs.h <<_ACEOF
8282 #define size_t unsigned int
8283 _ACEOF
8284
8285 fi
8286
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8288 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8289 if ${ac_cv_header_time+:} false; then :
8290   $as_echo_n "(cached) " >&6
8291 else
8292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h.  */
8294 #include <sys/types.h>
8295 #include <sys/time.h>
8296 #include <time.h>
8297
8298 int
8299 main ()
8300 {
8301 if ((struct tm *) 0)
8302 return 0;
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 if ac_fn_c_try_compile "$LINENO"; then :
8308   ac_cv_header_time=yes
8309 else
8310   ac_cv_header_time=no
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8315 $as_echo "$ac_cv_header_time" >&6; }
8316 if test $ac_cv_header_time = yes; then
8317
8318 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8319
8320 fi
8321
8322
8323
8324 #----------------------------------------------------------------------------
8325 # Checks for library functions.
8326 #----------------------------------------------------------------------------
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8328 $as_echo_n "checking for working memcmp... " >&6; }
8329 if ${ac_cv_func_memcmp_working+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   if test "$cross_compiling" = yes; then :
8333   ac_cv_func_memcmp_working=no
8334 else
8335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h.  */
8337 $ac_includes_default
8338 int
8339 main ()
8340 {
8341
8342   /* Some versions of memcmp are not 8-bit clean.  */
8343   char c0 = '\100', c1 = '\200', c2 = '\201';
8344   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8345     return 1;
8346
8347   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8348      or more and with at least one buffer not starting on a 4-byte boundary.
8349      William Lewis provided this test program.   */
8350   {
8351     char foo[21];
8352     char bar[21];
8353     int i;
8354     for (i = 0; i < 4; i++)
8355       {
8356         char *a = foo + i;
8357         char *b = bar + i;
8358         strcpy (a, "--------01111111");
8359         strcpy (b, "--------10000000");
8360         if (memcmp (a, b, 16) >= 0)
8361           return 1;
8362       }
8363     return 0;
8364   }
8365
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 if ac_fn_c_try_run "$LINENO"; then :
8371   ac_cv_func_memcmp_working=yes
8372 else
8373   ac_cv_func_memcmp_working=no
8374 fi
8375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8376   conftest.$ac_objext conftest.beam conftest.$ac_ext
8377 fi
8378
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8381 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8382 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8383   *" memcmp.$ac_objext "* ) ;;
8384   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8385  ;;
8386 esac
8387
8388
8389
8390
8391
8392   for ac_header in $ac_header_list
8393 do :
8394   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8395 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8396 "
8397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8398   cat >>confdefs.h <<_ACEOF
8399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8400 _ACEOF
8401
8402 fi
8403
8404 done
8405
8406
8407
8408
8409
8410
8411
8412
8413 for ac_func in getpagesize
8414 do :
8415   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8416 if test "x$ac_cv_func_getpagesize" = xyes; then :
8417   cat >>confdefs.h <<_ACEOF
8418 #define HAVE_GETPAGESIZE 1
8419 _ACEOF
8420
8421 fi
8422 done
8423
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8425 $as_echo_n "checking for working mmap... " >&6; }
8426 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8427   $as_echo_n "(cached) " >&6
8428 else
8429   if test "$cross_compiling" = yes; then :
8430   ac_cv_func_mmap_fixed_mapped=no
8431 else
8432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h.  */
8434 $ac_includes_default
8435 /* malloc might have been renamed as rpl_malloc. */
8436 #undef malloc
8437
8438 /* Thanks to Mike Haertel and Jim Avera for this test.
8439    Here is a matrix of mmap possibilities:
8440         mmap private not fixed
8441         mmap private fixed at somewhere currently unmapped
8442         mmap private fixed at somewhere already mapped
8443         mmap shared not fixed
8444         mmap shared fixed at somewhere currently unmapped
8445         mmap shared fixed at somewhere already mapped
8446    For private mappings, we should verify that changes cannot be read()
8447    back from the file, nor mmap's back from the file at a different
8448    address.  (There have been systems where private was not correctly
8449    implemented like the infamous i386 svr4.0, and systems where the
8450    VM page cache was not coherent with the file system buffer cache
8451    like early versions of FreeBSD and possibly contemporary NetBSD.)
8452    For shared mappings, we should conversely verify that changes get
8453    propagated back to all the places they're supposed to be.
8454
8455    Grep wants private fixed already mapped.
8456    The main things grep needs to know about mmap are:
8457    * does it exist and is it safe to write into the mmap'd area
8458    * how to use it (BSD variants)  */
8459
8460 #include <fcntl.h>
8461 #include <sys/mman.h>
8462
8463 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8464 char *malloc ();
8465 #endif
8466
8467 /* This mess was copied from the GNU getpagesize.h.  */
8468 #ifndef HAVE_GETPAGESIZE
8469 # ifdef _SC_PAGESIZE
8470 #  define getpagesize() sysconf(_SC_PAGESIZE)
8471 # else /* no _SC_PAGESIZE */
8472 #  ifdef HAVE_SYS_PARAM_H
8473 #   include <sys/param.h>
8474 #   ifdef EXEC_PAGESIZE
8475 #    define getpagesize() EXEC_PAGESIZE
8476 #   else /* no EXEC_PAGESIZE */
8477 #    ifdef NBPG
8478 #     define getpagesize() NBPG * CLSIZE
8479 #     ifndef CLSIZE
8480 #      define CLSIZE 1
8481 #     endif /* no CLSIZE */
8482 #    else /* no NBPG */
8483 #     ifdef NBPC
8484 #      define getpagesize() NBPC
8485 #     else /* no NBPC */
8486 #      ifdef PAGESIZE
8487 #       define getpagesize() PAGESIZE
8488 #      endif /* PAGESIZE */
8489 #     endif /* no NBPC */
8490 #    endif /* no NBPG */
8491 #   endif /* no EXEC_PAGESIZE */
8492 #  else /* no HAVE_SYS_PARAM_H */
8493 #   define getpagesize() 8192   /* punt totally */
8494 #  endif /* no HAVE_SYS_PARAM_H */
8495 # endif /* no _SC_PAGESIZE */
8496
8497 #endif /* no HAVE_GETPAGESIZE */
8498
8499 int
8500 main ()
8501 {
8502   char *data, *data2, *data3;
8503   const char *cdata2;
8504   int i, pagesize;
8505   int fd, fd2;
8506
8507   pagesize = getpagesize ();
8508
8509   /* First, make a file with some known garbage in it. */
8510   data = (char *) malloc (pagesize);
8511   if (!data)
8512     return 1;
8513   for (i = 0; i < pagesize; ++i)
8514     *(data + i) = rand ();
8515   umask (0);
8516   fd = creat ("conftest.mmap", 0600);
8517   if (fd < 0)
8518     return 2;
8519   if (write (fd, data, pagesize) != pagesize)
8520     return 3;
8521   close (fd);
8522
8523   /* Next, check that the tail of a page is zero-filled.  File must have
8524      non-zero length, otherwise we risk SIGBUS for entire page.  */
8525   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8526   if (fd2 < 0)
8527     return 4;
8528   cdata2 = "";
8529   if (write (fd2, cdata2, 1) != 1)
8530     return 5;
8531   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8532   if (data2 == MAP_FAILED)
8533     return 6;
8534   for (i = 0; i < pagesize; ++i)
8535     if (*(data2 + i))
8536       return 7;
8537   close (fd2);
8538   if (munmap (data2, pagesize))
8539     return 8;
8540
8541   /* Next, try to mmap the file at a fixed address which already has
8542      something else allocated at it.  If we can, also make sure that
8543      we see the same garbage.  */
8544   fd = open ("conftest.mmap", O_RDWR);
8545   if (fd < 0)
8546     return 9;
8547   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8548                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8549     return 10;
8550   for (i = 0; i < pagesize; ++i)
8551     if (*(data + i) != *(data2 + i))
8552       return 11;
8553
8554   /* Finally, make sure that changes to the mapped area do not
8555      percolate back to the file as seen by read().  (This is a bug on
8556      some variants of i386 svr4.0.)  */
8557   for (i = 0; i < pagesize; ++i)
8558     *(data2 + i) = *(data2 + i) + 1;
8559   data3 = (char *) malloc (pagesize);
8560   if (!data3)
8561     return 12;
8562   if (read (fd, data3, pagesize) != pagesize)
8563     return 13;
8564   for (i = 0; i < pagesize; ++i)
8565     if (*(data + i) != *(data3 + i))
8566       return 14;
8567   close (fd);
8568   return 0;
8569 }
8570 _ACEOF
8571 if ac_fn_c_try_run "$LINENO"; then :
8572   ac_cv_func_mmap_fixed_mapped=yes
8573 else
8574   ac_cv_func_mmap_fixed_mapped=no
8575 fi
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577   conftest.$ac_objext conftest.beam conftest.$ac_ext
8578 fi
8579
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8582 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8583 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8584
8585 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8586
8587 fi
8588 rm -f conftest.mmap conftest.txt
8589
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8591 $as_echo_n "checking return type of signal handlers... " >&6; }
8592 if ${ac_cv_type_signal+:} false; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h.  */
8597 #include <sys/types.h>
8598 #include <signal.h>
8599
8600 int
8601 main ()
8602 {
8603 return *(signal (0, 0)) (0) == 1;
8604   ;
8605   return 0;
8606 }
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609   ac_cv_type_signal=int
8610 else
8611   ac_cv_type_signal=void
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8616 $as_echo "$ac_cv_type_signal" >&6; }
8617
8618 cat >>confdefs.h <<_ACEOF
8619 #define RETSIGTYPE $ac_cv_type_signal
8620 _ACEOF
8621
8622
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8625 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8626 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8627   $as_echo_n "(cached) " >&6
8628 else
8629   ac_check_lib_save_LIBS=$LIBS
8630 LIBS="-lpthread  $LIBS"
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h.  */
8633
8634 /* Override any GCC internal prototype to avoid an error.
8635    Use char because int might match the return type of a GCC
8636    builtin and then its argument prototype would still apply.  */
8637 #ifdef __cplusplus
8638 extern "C"
8639 #endif
8640 char pthread_create ();
8641 int
8642 main ()
8643 {
8644 return pthread_create ();
8645   ;
8646   return 0;
8647 }
8648 _ACEOF
8649 if ac_fn_c_try_link "$LINENO"; then :
8650   ac_cv_lib_pthread_pthread_create=yes
8651 else
8652   ac_cv_lib_pthread_pthread_create=no
8653 fi
8654 rm -f core conftest.err conftest.$ac_objext \
8655     conftest$ac_exeext conftest.$ac_ext
8656 LIBS=$ac_check_lib_save_LIBS
8657 fi
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8659 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8660 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8661   cat >>confdefs.h <<_ACEOF
8662 #define HAVE_LIBPTHREAD 1
8663 _ACEOF
8664
8665   LIBS="-lpthread $LIBS"
8666
8667 fi
8668
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8670 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8671 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   ac_check_lib_save_LIBS=$LIBS
8675 LIBS="-lrt  $LIBS"
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h.  */
8678
8679 /* Override any GCC internal prototype to avoid an error.
8680    Use char because int might match the return type of a GCC
8681    builtin and then its argument prototype would still apply.  */
8682 #ifdef __cplusplus
8683 extern "C"
8684 #endif
8685 char clock_gettime ();
8686 int
8687 main ()
8688 {
8689 return clock_gettime ();
8690   ;
8691   return 0;
8692 }
8693 _ACEOF
8694 if ac_fn_c_try_link "$LINENO"; then :
8695   ac_cv_lib_rt_clock_gettime=yes
8696 else
8697   ac_cv_lib_rt_clock_gettime=no
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext \
8700     conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8704 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8705 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8706   cat >>confdefs.h <<_ACEOF
8707 #define HAVE_LIBRT 1
8708 _ACEOF
8709
8710   LIBS="-lrt $LIBS"
8711
8712 fi
8713
8714
8715 for ac_func in      \
8716         clock_gettime\
8717         epoll_create \
8718         epoll_pwait  \
8719         klogctl      \
8720         mallinfo     \
8721         memchr       \
8722         memset       \
8723         mkdir        \
8724         mremap       \
8725         ppoll        \
8726         pthread_barrier_init       \
8727         pthread_condattr_setclock  \
8728         pthread_mutex_timedlock    \
8729         pthread_rwlock_timedrdlock \
8730         pthread_rwlock_timedwrlock \
8731         pthread_spin_lock          \
8732         readlinkat   \
8733         semtimedop   \
8734         signalfd     \
8735         sigwaitinfo  \
8736         strchr       \
8737         strdup       \
8738         strpbrk      \
8739         strrchr      \
8740         strstr       \
8741         syscall      \
8742         utimensat    \
8743
8744 do :
8745   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8747 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8748   cat >>confdefs.h <<_ACEOF
8749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8750 _ACEOF
8751
8752 fi
8753 done
8754
8755
8756 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8757 # libraries with any shared object and/or executable. This is NOT what we
8758 # want for e.g. vgpreload_core-x86-linux.so
8759 LIBS=""
8760
8761  if test x$ac_cv_func_pthread_barrier_init = xyes; then
8762   HAVE_PTHREAD_BARRIER_TRUE=
8763   HAVE_PTHREAD_BARRIER_FALSE='#'
8764 else
8765   HAVE_PTHREAD_BARRIER_TRUE='#'
8766   HAVE_PTHREAD_BARRIER_FALSE=
8767 fi
8768
8769  if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8770   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8771   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8772 else
8773   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8774   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8775 fi
8776
8777  if test x$ac_cv_func_pthread_spin_lock = xyes; then
8778   HAVE_PTHREAD_SPINLOCK_TRUE=
8779   HAVE_PTHREAD_SPINLOCK_FALSE='#'
8780 else
8781   HAVE_PTHREAD_SPINLOCK_TRUE='#'
8782   HAVE_PTHREAD_SPINLOCK_FALSE=
8783 fi
8784
8785
8786
8787 #----------------------------------------------------------------------------
8788 # MPI checks
8789 #----------------------------------------------------------------------------
8790 # Do we have a useable MPI setup on the primary and/or secondary targets?
8791 # On Linux, by default, assumes mpicc and -m32/-m64
8792 # On AIX, by default, assumes mpxlc and -q32/-q64
8793 # Note: this is a kludge in that it assumes the specified mpicc
8794 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8795 # --with-mpicc=.
8796 MPI_CC="mpicc"
8797 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8798      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8799   MPI_CC="mpxlc"
8800 fi
8801
8802 mflag_primary=
8803 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8804      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8805   mflag_primary=$FLAG_M32
8806 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8807        -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
8808        -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
8809   mflag_primary=$FLAG_M64
8810 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8811   mflag_primary=-q32
8812 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8813   mflag_primary=-q64
8814 fi
8815
8816 mflag_secondary=
8817 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8818      -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8819   mflag_secondary=$FLAG_M32
8820 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8821   mflag_secondary=-q32
8822 fi
8823
8824
8825
8826 # Check whether --with-mpicc was given.
8827 if test "${with_mpicc+set}" = set; then :
8828   withval=$with_mpicc; MPI_CC=$withval
8829
8830 fi
8831
8832
8833
8834 ## See if MPI_CC works for the primary target
8835 ##
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8837 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8838 saved_CC=$CC
8839 saved_CFLAGS=$CFLAGS
8840 CC=$MPI_CC
8841 CFLAGS=$mflag_primary
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h.  */
8844
8845 #include <mpi.h>
8846 #include <stdio.h>
8847
8848 int
8849 main ()
8850 {
8851
8852   int r = MPI_Init(NULL,NULL);
8853   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8854   return r;
8855
8856   ;
8857   return 0;
8858 }
8859 _ACEOF
8860 if ac_fn_c_try_link "$LINENO"; then :
8861
8862 ac_have_mpi2_pri=yes
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8864 $as_echo "yes, $MPI_CC" >&6; }
8865
8866 else
8867
8868 ac_have_mpi2_pri=no
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext \
8874     conftest$ac_exeext conftest.$ac_ext
8875 CC=$saved_CC
8876 CFLAGS=$saved_CFLAGS
8877  if test x$ac_have_mpi2_pri = xyes; then
8878   BUILD_MPIWRAP_PRI_TRUE=
8879   BUILD_MPIWRAP_PRI_FALSE='#'
8880 else
8881   BUILD_MPIWRAP_PRI_TRUE='#'
8882   BUILD_MPIWRAP_PRI_FALSE=
8883 fi
8884
8885
8886 ## See if MPI_CC works for the secondary target.  Complication: what if
8887 ## there is no secondary target?  We need this to then fail.
8888 ## Kludge this by making MPI_CC something which will surely fail in
8889 ## such a case.
8890 ##
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8892 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8893 saved_CC=$CC
8894 saved_CFLAGS=$CFLAGS
8895 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8896   CC="$MPI_CC this will surely fail"
8897 else
8898   CC=$MPI_CC
8899 fi
8900 CFLAGS=$mflag_secondary
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h.  */
8903
8904 #include <mpi.h>
8905 #include <stdio.h>
8906
8907 int
8908 main ()
8909 {
8910
8911   int r = MPI_Init(NULL,NULL);
8912   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8913   return r;
8914
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"; then :
8920
8921 ac_have_mpi2_sec=yes
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8923 $as_echo "yes, $MPI_CC" >&6; }
8924
8925 else
8926
8927 ac_have_mpi2_sec=no
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext \
8933     conftest$ac_exeext conftest.$ac_ext
8934 CC=$saved_CC
8935 CFLAGS=$saved_CFLAGS
8936  if test x$ac_have_mpi2_sec = xyes; then
8937   BUILD_MPIWRAP_SEC_TRUE=
8938   BUILD_MPIWRAP_SEC_FALSE='#'
8939 else
8940   BUILD_MPIWRAP_SEC_TRUE='#'
8941   BUILD_MPIWRAP_SEC_FALSE=
8942 fi
8943
8944
8945
8946 #----------------------------------------------------------------------------
8947 # Other library checks
8948 #----------------------------------------------------------------------------
8949 # There now follow some tests for Boost, and OpenMP.  These
8950 # tests are present because Drd has some regression tests that use
8951 # these packages.  All regression test programs all compiled only
8952 # for the primary target.  And so it is important that the configure
8953 # checks that follow, use the correct -m32 or -m64 flag for the
8954 # primary target (called $mflag_primary).  Otherwise, we can end up
8955 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8956 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8957 # only build (meaning, the primary target is x86-linux), the build
8958 # of the regtest programs that use Boost fails, because they are
8959 # build as 32-bit (IN THIS EXAMPLE).
8960 #
8961 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8962 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8963
8964
8965 # Check whether the boost library 1.35 or later has been installed.
8966 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8967
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8969 $as_echo_n "checking for boost... " >&6; }
8970
8971 ac_ext=cpp
8972 ac_cpp='$CXXCPP $CPPFLAGS'
8973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8976
8977 safe_CXXFLAGS=$CXXFLAGS
8978 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8979
8980
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h.  */
8983
8984 #include <boost/thread.hpp>
8985 static void thread_func(void)
8986 { }
8987 int main(int argc, char** argv)
8988 {
8989   boost::thread t(thread_func);
8990   return 0;
8991 }
8992
8993 _ACEOF
8994 if ac_fn_cxx_try_link "$LINENO"; then :
8995
8996 ac_have_boost_1_35=yes
8997
8998 BOOST_LIBS="${CXXFLAGS}"
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9001 $as_echo "yes" >&6; }
9002
9003 else
9004
9005 ac_have_boost_1_35=no
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9008
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext \
9011     conftest$ac_exeext conftest.$ac_ext
9012
9013 CXXFLAGS=$safe_CXXFLAGS
9014 ac_ext=c
9015 ac_cpp='$CPP $CPPFLAGS'
9016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9019
9020
9021  if test x$ac_have_boost_1_35 = xyes; then
9022   HAVE_BOOST_1_35_TRUE=
9023   HAVE_BOOST_1_35_FALSE='#'
9024 else
9025   HAVE_BOOST_1_35_TRUE='#'
9026   HAVE_BOOST_1_35_FALSE=
9027 fi
9028
9029
9030
9031 # does this compiler support -fopenmp, does it have the include file
9032 # <omp.h> and does it have libgomp ?
9033
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
9035 $as_echo_n "checking for OpenMP... " >&6; }
9036
9037 safe_CFLAGS=$CFLAGS
9038 CFLAGS="-fopenmp $mflag_primary"
9039
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h.  */
9042
9043 #include <omp.h>
9044 int main(int argc, char** argv)
9045 {
9046   omp_set_dynamic(0);
9047   return 0;
9048 }
9049
9050 _ACEOF
9051 if ac_fn_c_try_link "$LINENO"; then :
9052
9053 ac_have_openmp=yes
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9055 $as_echo "yes" >&6; }
9056
9057 else
9058
9059 ac_have_openmp=no
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9062
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext \
9065     conftest$ac_exeext conftest.$ac_ext
9066 CFLAGS=$safe_CFLAGS
9067
9068  if test x$ac_have_openmp = xyes; then
9069   HAVE_OPENMP_TRUE=
9070   HAVE_OPENMP_FALSE='#'
9071 else
9072   HAVE_OPENMP_TRUE='#'
9073   HAVE_OPENMP_FALSE=
9074 fi
9075
9076
9077
9078 # does this compiler have built-in functions for atomic memory access ?
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9080 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9081
9082 safe_CFLAGS=$CFLAGS
9083 CFLAGS="$mflag_primary"
9084
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h.  */
9087
9088 int
9089 main ()
9090 {
9091
9092   int variable = 1;
9093   return (__sync_bool_compare_and_swap(&variable, 1, 2)
9094           && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9095
9096   ;
9097   return 0;
9098 }
9099 _ACEOF
9100 if ac_fn_c_try_link "$LINENO"; then :
9101
9102   ac_have_builtin_atomic=yes
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9104 $as_echo "yes" >&6; }
9105
9106 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9107
9108
9109 else
9110
9111   ac_have_builtin_atomic=no
9112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9114
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext \
9117     conftest$ac_exeext conftest.$ac_ext
9118
9119 CFLAGS=$safe_CFLAGS
9120
9121  if test x$ac_have_builtin_atomic = xyes; then
9122   HAVE_BUILTIN_ATOMIC_TRUE=
9123   HAVE_BUILTIN_ATOMIC_FALSE='#'
9124 else
9125   HAVE_BUILTIN_ATOMIC_TRUE='#'
9126   HAVE_BUILTIN_ATOMIC_FALSE=
9127 fi
9128
9129
9130 # does g++ have built-in functions for atomic memory access ?
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_bool_compare_and_swap" >&5
9132 $as_echo_n "checking if g++ supports __sync_bool_compare_and_swap... " >&6; }
9133
9134 safe_CXXFLAGS=$CXXFLAGS
9135 CXXFLAGS="$mflag_primary"
9136
9137 ac_ext=cpp
9138 ac_cpp='$CXXCPP $CPPFLAGS'
9139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9142
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h.  */
9145
9146 int
9147 main ()
9148 {
9149
9150   int variable = 1;
9151   return (__sync_bool_compare_and_swap(&variable, 1, 2)
9152           && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9153
9154   ;
9155   return 0;
9156 }
9157 _ACEOF
9158 if ac_fn_cxx_try_link "$LINENO"; then :
9159
9160   ac_have_builtin_atomic_cxx=yes
9161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9162 $as_echo "yes" >&6; }
9163
9164 $as_echo "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h
9165
9166
9167 else
9168
9169   ac_have_builtin_atomic_cxx=no
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9172
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext \
9175     conftest$ac_exeext conftest.$ac_ext
9176 ac_ext=c
9177 ac_cpp='$CPP $CPPFLAGS'
9178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9181
9182
9183 CXXFLAGS=$safe_CXXFLAGS
9184
9185  if test x$ac_have_builtin_atomic_cxx = xyes; then
9186   HAVE_BUILTIN_ATOMIC_CXX_TRUE=
9187   HAVE_BUILTIN_ATOMIC_CXX_FALSE='#'
9188 else
9189   HAVE_BUILTIN_ATOMIC_CXX_TRUE='#'
9190   HAVE_BUILTIN_ATOMIC_CXX_FALSE=
9191 fi
9192
9193
9194 #----------------------------------------------------------------------------
9195 # Ok.  We're done checking.
9196 #----------------------------------------------------------------------------
9197
9198 # Nb: VEX/Makefile is generated from Makefile.vex.in.
9199 ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp docs/Makefile tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf gdbserver_tests/Makefile include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/tests/ppc32/Makefile memcheck/tests/ppc64/Makefile memcheck/perf/Makefile cachegrind/Makefile cachegrind/tests/Makefile cachegrind/tests/x86/Makefile cachegrind/cg_annotate cachegrind/cg_diff callgrind/Makefile callgrind/callgrind_annotate callgrind/callgrind_control callgrind/tests/Makefile helgrind/Makefile helgrind/tests/Makefile massif/Makefile massif/tests/Makefile massif/perf/Makefile massif/ms_print lackey/Makefile lackey/tests/Makefile none/Makefile none/tests/Makefile none/tests/amd64/Makefile none/tests/ppc32/Makefile none/tests/ppc64/Makefile none/tests/x86/Makefile none/tests/arm/Makefile none/tests/s390x/Makefile none/tests/linux/Makefile none/tests/darwin/Makefile none/tests/x86-linux/Makefile exp-sgcheck/Makefile exp-sgcheck/tests/Makefile drd/Makefile drd/scripts/download-and-build-splash2 drd/tests/Makefile exp-bbv/Makefile exp-bbv/tests/Makefile exp-bbv/tests/x86/Makefile exp-bbv/tests/x86-linux/Makefile exp-bbv/tests/amd64-linux/Makefile exp-bbv/tests/ppc32-linux/Makefile exp-dhat/Makefile exp-dhat/tests/Makefile"
9200
9201 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9202
9203 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9204
9205 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9206
9207 ac_config_files="$ac_config_files coregrind/link_tool_exe_l4re"
9208
9209 cat >confcache <<\_ACEOF
9210 # This file is a shell script that caches the results of configure
9211 # tests run on this system so they can be shared between configure
9212 # scripts and configure runs, see configure's option --config-cache.
9213 # It is not useful on other systems.  If it contains results you don't
9214 # want to keep, you may remove or edit it.
9215 #
9216 # config.status only pays attention to the cache file if you give it
9217 # the --recheck option to rerun configure.
9218 #
9219 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9220 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9221 # following values.
9222
9223 _ACEOF
9224
9225 # The following way of writing the cache mishandles newlines in values,
9226 # but we know of no workaround that is simple, portable, and efficient.
9227 # So, we kill variables containing newlines.
9228 # Ultrix sh set writes to stderr and can't be redirected directly,
9229 # and sets the high bit in the cache file unless we assign to the vars.
9230 (
9231   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9232     eval ac_val=\$$ac_var
9233     case $ac_val in #(
9234     *${as_nl}*)
9235       case $ac_var in #(
9236       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9238       esac
9239       case $ac_var in #(
9240       _ | IFS | as_nl) ;; #(
9241       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9242       *) { eval $ac_var=; unset $ac_var;} ;;
9243       esac ;;
9244     esac
9245   done
9246
9247   (set) 2>&1 |
9248     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9249     *${as_nl}ac_space=\ *)
9250       # `set' does not quote correctly, so add quotes: double-quote
9251       # substitution turns \\\\ into \\, and sed turns \\ into \.
9252       sed -n \
9253         "s/'/'\\\\''/g;
9254           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9255       ;; #(
9256     *)
9257       # `set' quotes correctly as required by POSIX, so do not add quotes.
9258       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9259       ;;
9260     esac |
9261     sort
9262 ) |
9263   sed '
9264      /^ac_cv_env_/b end
9265      t clear
9266      :clear
9267      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9268      t end
9269      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9270      :end' >>confcache
9271 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9272   if test -w "$cache_file"; then
9273     if test "x$cache_file" != "x/dev/null"; then
9274       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9275 $as_echo "$as_me: updating cache $cache_file" >&6;}
9276       if test ! -f "$cache_file" || test -h "$cache_file"; then
9277         cat confcache >"$cache_file"
9278       else
9279         case $cache_file in #(
9280         */* | ?:*)
9281           mv -f confcache "$cache_file"$$ &&
9282           mv -f "$cache_file"$$ "$cache_file" ;; #(
9283         *)
9284           mv -f confcache "$cache_file" ;;
9285         esac
9286       fi
9287     fi
9288   else
9289     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9290 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9291   fi
9292 fi
9293 rm -f confcache
9294
9295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9296 # Let make expand exec_prefix.
9297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9298
9299 DEFS=-DHAVE_CONFIG_H
9300
9301 ac_libobjs=
9302 ac_ltlibobjs=
9303 U=
9304 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9305   # 1. Remove the extension, and $U if already installed.
9306   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9307   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9308   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9309   #    will be set to the directory where LIBOBJS objects are built.
9310   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9311   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9312 done
9313 LIBOBJS=$ac_libobjs
9314
9315 LTLIBOBJS=$ac_ltlibobjs
9316
9317
9318  if test -n "$EXEEXT"; then
9319   am__EXEEXT_TRUE=
9320   am__EXEEXT_FALSE='#'
9321 else
9322   am__EXEEXT_TRUE='#'
9323   am__EXEEXT_FALSE=
9324 fi
9325
9326 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9327   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9329 fi
9330 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9331   as_fn_error $? "conditional \"AMDEP\" was never defined.
9332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9333 fi
9334 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9335   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9337 fi
9338 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9339   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9341 fi
9342 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9343   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
9344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9345 fi
9346 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9347   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9349 fi
9350 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9351   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9353 fi
9354 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9355   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9357 fi
9358 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9359   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9361 fi
9362 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9363   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9365 fi
9366 if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
9367   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
9368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9369 fi
9370 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9371   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9373 fi
9374 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9375   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9377 fi
9378 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9379   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9381 fi
9382 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9383   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9385 fi
9386 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9387   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9389 fi
9390 if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
9391   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
9392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9393 fi
9394 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9395   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9397 fi
9398 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9399   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9401 fi
9402 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9403   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9405 fi
9406 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9407   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9409 fi
9410 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9411   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9413 fi
9414 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9415   as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9417 fi
9418 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9419   as_fn_error $? "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9421 fi
9422 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9423   as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9425 fi
9426 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9427   as_fn_error $? "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9429 fi
9430 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9431   as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9433 fi
9434 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9435   as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
9436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9437 fi
9438 if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
9439   as_fn_error $? "conditional \"HAS_VSX\" was never defined.
9440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9441 fi
9442 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9443   as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9445 fi
9446 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9447   as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
9448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9449 fi
9450 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9451   as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9453 fi
9454 if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
9455   as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
9456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9457 fi
9458 if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
9459   as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
9460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9461 fi
9462 if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
9463   as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
9464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9465 fi
9466 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9467   as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9469 fi
9470 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9471   as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9473 fi
9474 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9475   as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9477 fi
9478 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9479   as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9481 fi
9482 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9483   as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9485 fi
9486 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9487   as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
9488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9489 fi
9490 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9491   as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
9492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9493 fi
9494 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9495   as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9497 fi
9498 if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
9499   as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
9500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9501 fi
9502
9503 : "${CONFIG_STATUS=./config.status}"
9504 ac_write_fail=0
9505 ac_clean_files_save=$ac_clean_files
9506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9508 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9509 as_write_fail=0
9510 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9511 #! $SHELL
9512 # Generated by $as_me.
9513 # Run this file to recreate the current configuration.
9514 # Compiler output produced by configure, useful for debugging
9515 # configure, is in config.log if it exists.
9516
9517 debug=false
9518 ac_cs_recheck=false
9519 ac_cs_silent=false
9520
9521 SHELL=\${CONFIG_SHELL-$SHELL}
9522 export SHELL
9523 _ASEOF
9524 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9525 ## -------------------- ##
9526 ## M4sh Initialization. ##
9527 ## -------------------- ##
9528
9529 # Be more Bourne compatible
9530 DUALCASE=1; export DUALCASE # for MKS sh
9531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9532   emulate sh
9533   NULLCMD=:
9534   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9535   # is contrary to our usage.  Disable this feature.
9536   alias -g '${1+"$@"}'='"$@"'
9537   setopt NO_GLOB_SUBST
9538 else
9539   case `(set -o) 2>/dev/null` in #(
9540   *posix*) :
9541     set -o posix ;; #(
9542   *) :
9543      ;;
9544 esac
9545 fi
9546
9547
9548 as_nl='
9549 '
9550 export as_nl
9551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9552 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9555 # Prefer a ksh shell builtin over an external printf program on Solaris,
9556 # but without wasting forks for bash or zsh.
9557 if test -z "$BASH_VERSION$ZSH_VERSION" \
9558     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9559   as_echo='print -r --'
9560   as_echo_n='print -rn --'
9561 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9562   as_echo='printf %s\n'
9563   as_echo_n='printf %s'
9564 else
9565   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9566     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9567     as_echo_n='/usr/ucb/echo -n'
9568   else
9569     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9570     as_echo_n_body='eval
9571       arg=$1;
9572       case $arg in #(
9573       *"$as_nl"*)
9574         expr "X$arg" : "X\\(.*\\)$as_nl";
9575         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9576       esac;
9577       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9578     '
9579     export as_echo_n_body
9580     as_echo_n='sh -c $as_echo_n_body as_echo'
9581   fi
9582   export as_echo_body
9583   as_echo='sh -c $as_echo_body as_echo'
9584 fi
9585
9586 # The user is always right.
9587 if test "${PATH_SEPARATOR+set}" != set; then
9588   PATH_SEPARATOR=:
9589   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9590     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9591       PATH_SEPARATOR=';'
9592   }
9593 fi
9594
9595
9596 # IFS
9597 # We need space, tab and new line, in precisely that order.  Quoting is
9598 # there to prevent editors from complaining about space-tab.
9599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9600 # splitting by setting IFS to empty value.)
9601 IFS=" ""        $as_nl"
9602
9603 # Find who we are.  Look in the path if we contain no directory separator.
9604 as_myself=
9605 case $0 in #((
9606   *[\\/]* ) as_myself=$0 ;;
9607   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in $PATH
9609 do
9610   IFS=$as_save_IFS
9611   test -z "$as_dir" && as_dir=.
9612     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9613   done
9614 IFS=$as_save_IFS
9615
9616      ;;
9617 esac
9618 # We did not find ourselves, most probably we were run as `sh COMMAND'
9619 # in which case we are not to be found in the path.
9620 if test "x$as_myself" = x; then
9621   as_myself=$0
9622 fi
9623 if test ! -f "$as_myself"; then
9624   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9625   exit 1
9626 fi
9627
9628 # Unset variables that we do not need and which cause bugs (e.g. in
9629 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9630 # suppresses any "Segmentation fault" message there.  '((' could
9631 # trigger a bug in pdksh 5.2.14.
9632 for as_var in BASH_ENV ENV MAIL MAILPATH
9633 do eval test x\${$as_var+set} = xset \
9634   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9635 done
9636 PS1='$ '
9637 PS2='> '
9638 PS4='+ '
9639
9640 # NLS nuisances.
9641 LC_ALL=C
9642 export LC_ALL
9643 LANGUAGE=C
9644 export LANGUAGE
9645
9646 # CDPATH.
9647 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9648
9649
9650 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9651 # ----------------------------------------
9652 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9653 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9654 # script with STATUS, using 1 if that was 0.
9655 as_fn_error ()
9656 {
9657   as_status=$1; test $as_status -eq 0 && as_status=1
9658   if test "$4"; then
9659     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9660     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9661   fi
9662   $as_echo "$as_me: error: $2" >&2
9663   as_fn_exit $as_status
9664 } # as_fn_error
9665
9666
9667 # as_fn_set_status STATUS
9668 # -----------------------
9669 # Set $? to STATUS, without forking.
9670 as_fn_set_status ()
9671 {
9672   return $1
9673 } # as_fn_set_status
9674
9675 # as_fn_exit STATUS
9676 # -----------------
9677 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9678 as_fn_exit ()
9679 {
9680   set +e
9681   as_fn_set_status $1
9682   exit $1
9683 } # as_fn_exit
9684
9685 # as_fn_unset VAR
9686 # ---------------
9687 # Portably unset VAR.
9688 as_fn_unset ()
9689 {
9690   { eval $1=; unset $1;}
9691 }
9692 as_unset=as_fn_unset
9693 # as_fn_append VAR VALUE
9694 # ----------------------
9695 # Append the text in VALUE to the end of the definition contained in VAR. Take
9696 # advantage of any shell optimizations that allow amortized linear growth over
9697 # repeated appends, instead of the typical quadratic growth present in naive
9698 # implementations.
9699 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9700   eval 'as_fn_append ()
9701   {
9702     eval $1+=\$2
9703   }'
9704 else
9705   as_fn_append ()
9706   {
9707     eval $1=\$$1\$2
9708   }
9709 fi # as_fn_append
9710
9711 # as_fn_arith ARG...
9712 # ------------------
9713 # Perform arithmetic evaluation on the ARGs, and store the result in the
9714 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9715 # must be portable across $(()) and expr.
9716 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9717   eval 'as_fn_arith ()
9718   {
9719     as_val=$(( $* ))
9720   }'
9721 else
9722   as_fn_arith ()
9723   {
9724     as_val=`expr "$@" || test $? -eq 1`
9725   }
9726 fi # as_fn_arith
9727
9728
9729 if expr a : '\(a\)' >/dev/null 2>&1 &&
9730    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9731   as_expr=expr
9732 else
9733   as_expr=false
9734 fi
9735
9736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9737   as_basename=basename
9738 else
9739   as_basename=false
9740 fi
9741
9742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9743   as_dirname=dirname
9744 else
9745   as_dirname=false
9746 fi
9747
9748 as_me=`$as_basename -- "$0" ||
9749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9750          X"$0" : 'X\(//\)$' \| \
9751          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9752 $as_echo X/"$0" |
9753     sed '/^.*\/\([^/][^/]*\)\/*$/{
9754             s//\1/
9755             q
9756           }
9757           /^X\/\(\/\/\)$/{
9758             s//\1/
9759             q
9760           }
9761           /^X\/\(\/\).*/{
9762             s//\1/
9763             q
9764           }
9765           s/.*/./; q'`
9766
9767 # Avoid depending upon Character Ranges.
9768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9771 as_cr_digits='0123456789'
9772 as_cr_alnum=$as_cr_Letters$as_cr_digits
9773
9774 ECHO_C= ECHO_N= ECHO_T=
9775 case `echo -n x` in #(((((
9776 -n*)
9777   case `echo 'xy\c'` in
9778   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9779   xy)  ECHO_C='\c';;
9780   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9781        ECHO_T=' ';;
9782   esac;;
9783 *)
9784   ECHO_N='-n';;
9785 esac
9786
9787 rm -f conf$$ conf$$.exe conf$$.file
9788 if test -d conf$$.dir; then
9789   rm -f conf$$.dir/conf$$.file
9790 else
9791   rm -f conf$$.dir
9792   mkdir conf$$.dir 2>/dev/null
9793 fi
9794 if (echo >conf$$.file) 2>/dev/null; then
9795   if ln -s conf$$.file conf$$ 2>/dev/null; then
9796     as_ln_s='ln -s'
9797     # ... but there are two gotchas:
9798     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9799     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9800     # In both cases, we have to default to `cp -pR'.
9801     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9802       as_ln_s='cp -pR'
9803   elif ln conf$$.file conf$$ 2>/dev/null; then
9804     as_ln_s=ln
9805   else
9806     as_ln_s='cp -pR'
9807   fi
9808 else
9809   as_ln_s='cp -pR'
9810 fi
9811 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9812 rmdir conf$$.dir 2>/dev/null
9813
9814
9815 # as_fn_mkdir_p
9816 # -------------
9817 # Create "$as_dir" as a directory, including parents if necessary.
9818 as_fn_mkdir_p ()
9819 {
9820
9821   case $as_dir in #(
9822   -*) as_dir=./$as_dir;;
9823   esac
9824   test -d "$as_dir" || eval $as_mkdir_p || {
9825     as_dirs=
9826     while :; do
9827       case $as_dir in #(
9828       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9829       *) as_qdir=$as_dir;;
9830       esac
9831       as_dirs="'$as_qdir' $as_dirs"
9832       as_dir=`$as_dirname -- "$as_dir" ||
9833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9834          X"$as_dir" : 'X\(//\)[^/]' \| \
9835          X"$as_dir" : 'X\(//\)$' \| \
9836          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9837 $as_echo X"$as_dir" |
9838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9839             s//\1/
9840             q
9841           }
9842           /^X\(\/\/\)[^/].*/{
9843             s//\1/
9844             q
9845           }
9846           /^X\(\/\/\)$/{
9847             s//\1/
9848             q
9849           }
9850           /^X\(\/\).*/{
9851             s//\1/
9852             q
9853           }
9854           s/.*/./; q'`
9855       test -d "$as_dir" && break
9856     done
9857     test -z "$as_dirs" || eval "mkdir $as_dirs"
9858   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9859
9860
9861 } # as_fn_mkdir_p
9862 if mkdir -p . 2>/dev/null; then
9863   as_mkdir_p='mkdir -p "$as_dir"'
9864 else
9865   test -d ./-p && rmdir ./-p
9866   as_mkdir_p=false
9867 fi
9868
9869
9870 # as_fn_executable_p FILE
9871 # -----------------------
9872 # Test if FILE is an executable regular file.
9873 as_fn_executable_p ()
9874 {
9875   test -f "$1" && test -x "$1"
9876 } # as_fn_executable_p
9877 as_test_x='test -x'
9878 as_executable_p=as_fn_executable_p
9879
9880 # Sed expression to map a string onto a valid CPP name.
9881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9882
9883 # Sed expression to map a string onto a valid variable name.
9884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9885
9886
9887 exec 6>&1
9888 ## ----------------------------------- ##
9889 ## Main body of $CONFIG_STATUS script. ##
9890 ## ----------------------------------- ##
9891 _ASEOF
9892 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9893
9894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9895 # Save the log message, to keep $0 and so on meaningful, and to
9896 # report actual input values of CONFIG_FILES etc. instead of their
9897 # values after options handling.
9898 ac_log="
9899 This file was extended by Valgrind $as_me 3.7.0.SVN, which was
9900 generated by GNU Autoconf 2.69.  Invocation command line was
9901
9902   CONFIG_FILES    = $CONFIG_FILES
9903   CONFIG_HEADERS  = $CONFIG_HEADERS
9904   CONFIG_LINKS    = $CONFIG_LINKS
9905   CONFIG_COMMANDS = $CONFIG_COMMANDS
9906   $ $0 $@
9907
9908 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9909 "
9910
9911 _ACEOF
9912
9913 case $ac_config_files in *"
9914 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9915 esac
9916
9917 case $ac_config_headers in *"
9918 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9919 esac
9920
9921
9922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9923 # Files that config.status was made for.
9924 config_files="$ac_config_files"
9925 config_headers="$ac_config_headers"
9926 config_commands="$ac_config_commands"
9927
9928 _ACEOF
9929
9930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9931 ac_cs_usage="\
9932 \`$as_me' instantiates files and other configuration actions
9933 from templates according to the current configuration.  Unless the files
9934 and actions are specified as TAGs, all are instantiated by default.
9935
9936 Usage: $0 [OPTION]... [TAG]...
9937
9938   -h, --help       print this help, then exit
9939   -V, --version    print version number and configuration settings, then exit
9940       --config     print configuration, then exit
9941   -q, --quiet, --silent
9942                    do not print progress messages
9943   -d, --debug      don't remove temporary files
9944       --recheck    update $as_me by reconfiguring in the same conditions
9945       --file=FILE[:TEMPLATE]
9946                    instantiate the configuration file FILE
9947       --header=FILE[:TEMPLATE]
9948                    instantiate the configuration header FILE
9949
9950 Configuration files:
9951 $config_files
9952
9953 Configuration headers:
9954 $config_headers
9955
9956 Configuration commands:
9957 $config_commands
9958
9959 Report bugs to <valgrind-users@lists.sourceforge.net>."
9960
9961 _ACEOF
9962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9963 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9964 ac_cs_version="\\
9965 Valgrind config.status 3.7.0.SVN
9966 configured by $0, generated by GNU Autoconf 2.69,
9967   with options \\"\$ac_cs_config\\"
9968
9969 Copyright (C) 2012 Free Software Foundation, Inc.
9970 This config.status script is free software; the Free Software Foundation
9971 gives unlimited permission to copy, distribute and modify it."
9972
9973 ac_pwd='$ac_pwd'
9974 srcdir='$srcdir'
9975 INSTALL='$INSTALL'
9976 MKDIR_P='$MKDIR_P'
9977 AWK='$AWK'
9978 test -n "\$AWK" || AWK=awk
9979 _ACEOF
9980
9981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9982 # The default lists apply if the user does not specify any file.
9983 ac_need_defaults=:
9984 while test $# != 0
9985 do
9986   case $1 in
9987   --*=?*)
9988     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9989     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9990     ac_shift=:
9991     ;;
9992   --*=)
9993     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9994     ac_optarg=
9995     ac_shift=:
9996     ;;
9997   *)
9998     ac_option=$1
9999     ac_optarg=$2
10000     ac_shift=shift
10001     ;;
10002   esac
10003
10004   case $ac_option in
10005   # Handling of the options.
10006   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10007     ac_cs_recheck=: ;;
10008   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10009     $as_echo "$ac_cs_version"; exit ;;
10010   --config | --confi | --conf | --con | --co | --c )
10011     $as_echo "$ac_cs_config"; exit ;;
10012   --debug | --debu | --deb | --de | --d | -d )
10013     debug=: ;;
10014   --file | --fil | --fi | --f )
10015     $ac_shift
10016     case $ac_optarg in
10017     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10018     '') as_fn_error $? "missing file argument" ;;
10019     esac
10020     as_fn_append CONFIG_FILES " '$ac_optarg'"
10021     ac_need_defaults=false;;
10022   --header | --heade | --head | --hea )
10023     $ac_shift
10024     case $ac_optarg in
10025     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10026     esac
10027     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10028     ac_need_defaults=false;;
10029   --he | --h)
10030     # Conflict between --help and --header
10031     as_fn_error $? "ambiguous option: \`$1'
10032 Try \`$0 --help' for more information.";;
10033   --help | --hel | -h )
10034     $as_echo "$ac_cs_usage"; exit ;;
10035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10036   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10037     ac_cs_silent=: ;;
10038
10039   # This is an error.
10040   -*) as_fn_error $? "unrecognized option: \`$1'
10041 Try \`$0 --help' for more information." ;;
10042
10043   *) as_fn_append ac_config_targets " $1"
10044      ac_need_defaults=false ;;
10045
10046   esac
10047   shift
10048 done
10049
10050 ac_configure_extra_args=
10051
10052 if $ac_cs_silent; then
10053   exec 6>/dev/null
10054   ac_configure_extra_args="$ac_configure_extra_args --silent"
10055 fi
10056
10057 _ACEOF
10058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10059 if \$ac_cs_recheck; then
10060   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10061   shift
10062   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10063   CONFIG_SHELL='$SHELL'
10064   export CONFIG_SHELL
10065   exec "\$@"
10066 fi
10067
10068 _ACEOF
10069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10070 exec 5>>config.log
10071 {
10072   echo
10073   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10074 ## Running $as_me. ##
10075 _ASBOX
10076   $as_echo "$ac_log"
10077 } >&5
10078
10079 _ACEOF
10080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10081 #
10082 # INIT-COMMANDS
10083 #
10084 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10085
10086 _ACEOF
10087
10088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10089
10090 # Handling of arguments.
10091 for ac_config_target in $ac_config_targets
10092 do
10093   case $ac_config_target in
10094     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10095     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10096     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10097     "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
10098     "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
10099     "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
10100     "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
10101     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10102     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10103     "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
10104     "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
10105     "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
10106     "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;;
10107     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10108     "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
10109     "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
10110     "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
10111     "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
10112     "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
10113     "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
10114     "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
10115     "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
10116     "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
10117     "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
10118     "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
10119     "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
10120     "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
10121     "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
10122     "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10123     "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10124     "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10125     "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10126     "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10127     "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10128     "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10129     "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10130     "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10131     "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10132     "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10133     "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10134     "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10135     "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10136     "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10137     "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10138     "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10139     "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10140     "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10141     "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10142     "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10143     "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10144     "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10145     "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10146     "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;;
10147     "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10148     "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10149     "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10150     "exp-sgcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/Makefile" ;;
10151     "exp-sgcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/tests/Makefile" ;;
10152     "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10153     "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10154     "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10155     "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10156     "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10157     "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10158     "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10159     "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10160     "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10161     "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;;
10162     "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;;
10163     "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10164     "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10165     "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10166     "coregrind/link_tool_exe_l4re") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_l4re" ;;
10167
10168   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10169   esac
10170 done
10171
10172
10173 # If the user did not use the arguments to specify the items to instantiate,
10174 # then the envvar interface is used.  Set only those that are not.
10175 # We use the long form for the default assignment because of an extremely
10176 # bizarre bug on SunOS 4.1.3.
10177 if $ac_need_defaults; then
10178   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10179   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10180   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10181 fi
10182
10183 # Have a temporary directory for convenience.  Make it in the build tree
10184 # simply because there is no reason against having it here, and in addition,
10185 # creating and moving files from /tmp can sometimes cause problems.
10186 # Hook for its removal unless debugging.
10187 # Note that there is a small window in which the directory will not be cleaned:
10188 # after its creation but before its name has been assigned to `$tmp'.
10189 $debug ||
10190 {
10191   tmp= ac_tmp=
10192   trap 'exit_status=$?
10193   : "${ac_tmp:=$tmp}"
10194   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10195 ' 0
10196   trap 'as_fn_exit 1' 1 2 13 15
10197 }
10198 # Create a (secure) tmp directory for tmp files.
10199
10200 {
10201   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10202   test -d "$tmp"
10203 }  ||
10204 {
10205   tmp=./conf$$-$RANDOM
10206   (umask 077 && mkdir "$tmp")
10207 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10208 ac_tmp=$tmp
10209
10210 # Set up the scripts for CONFIG_FILES section.
10211 # No need to generate them if there are no CONFIG_FILES.
10212 # This happens for instance with `./config.status config.h'.
10213 if test -n "$CONFIG_FILES"; then
10214
10215
10216 ac_cr=`echo X | tr X '\015'`
10217 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10218 # But we know of no other shell where ac_cr would be empty at this
10219 # point, so we can use a bashism as a fallback.
10220 if test "x$ac_cr" = x; then
10221   eval ac_cr=\$\'\\r\'
10222 fi
10223 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10224 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10225   ac_cs_awk_cr='\\r'
10226 else
10227   ac_cs_awk_cr=$ac_cr
10228 fi
10229
10230 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10231 _ACEOF
10232
10233
10234 {
10235   echo "cat >conf$$subs.awk <<_ACEOF" &&
10236   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10237   echo "_ACEOF"
10238 } >conf$$subs.sh ||
10239   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10240 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10241 ac_delim='%!_!# '
10242 for ac_last_try in false false false false false :; do
10243   . ./conf$$subs.sh ||
10244     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10245
10246   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10247   if test $ac_delim_n = $ac_delim_num; then
10248     break
10249   elif $ac_last_try; then
10250     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10251   else
10252     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10253   fi
10254 done
10255 rm -f conf$$subs.sh
10256
10257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10258 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10259 _ACEOF
10260 sed -n '
10261 h
10262 s/^/S["/; s/!.*/"]=/
10263 p
10264 g
10265 s/^[^!]*!//
10266 :repl
10267 t repl
10268 s/'"$ac_delim"'$//
10269 t delim
10270 :nl
10271 h
10272 s/\(.\{148\}\)..*/\1/
10273 t more1
10274 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10275 p
10276 n
10277 b repl
10278 :more1
10279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10280 p
10281 g
10282 s/.\{148\}//
10283 t nl
10284 :delim
10285 h
10286 s/\(.\{148\}\)..*/\1/
10287 t more2
10288 s/["\\]/\\&/g; s/^/"/; s/$/"/
10289 p
10290 b
10291 :more2
10292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10293 p
10294 g
10295 s/.\{148\}//
10296 t delim
10297 ' <conf$$subs.awk | sed '
10298 /^[^""]/{
10299   N
10300   s/\n//
10301 }
10302 ' >>$CONFIG_STATUS || ac_write_fail=1
10303 rm -f conf$$subs.awk
10304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10305 _ACAWK
10306 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10307   for (key in S) S_is_set[key] = 1
10308   FS = "\a"
10309
10310 }
10311 {
10312   line = $ 0
10313   nfields = split(line, field, "@")
10314   substed = 0
10315   len = length(field[1])
10316   for (i = 2; i < nfields; i++) {
10317     key = field[i]
10318     keylen = length(key)
10319     if (S_is_set[key]) {
10320       value = S[key]
10321       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10322       len += length(value) + length(field[++i])
10323       substed = 1
10324     } else
10325       len += 1 + keylen
10326   }
10327
10328   print line
10329 }
10330
10331 _ACAWK
10332 _ACEOF
10333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10334 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10335   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10336 else
10337   cat
10338 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10339   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10340 _ACEOF
10341
10342 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10343 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10344 # trailing colons and then remove the whole line if VPATH becomes empty
10345 # (actually we leave an empty line to preserve line numbers).
10346 if test "x$srcdir" = x.; then
10347   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10348 h
10349 s///
10350 s/^/:/
10351 s/[      ]*$/:/
10352 s/:\$(srcdir):/:/g
10353 s/:\${srcdir}:/:/g
10354 s/:@srcdir@:/:/g
10355 s/^:*//
10356 s/:*$//
10357 x
10358 s/\(=[   ]*\).*/\1/
10359 G
10360 s/\n//
10361 s/^[^=]*=[       ]*$//
10362 }'
10363 fi
10364
10365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10366 fi # test -n "$CONFIG_FILES"
10367
10368 # Set up the scripts for CONFIG_HEADERS section.
10369 # No need to generate them if there are no CONFIG_HEADERS.
10370 # This happens for instance with `./config.status Makefile'.
10371 if test -n "$CONFIG_HEADERS"; then
10372 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10373 BEGIN {
10374 _ACEOF
10375
10376 # Transform confdefs.h into an awk script `defines.awk', embedded as
10377 # here-document in config.status, that substitutes the proper values into
10378 # config.h.in to produce config.h.
10379
10380 # Create a delimiter string that does not exist in confdefs.h, to ease
10381 # handling of long lines.
10382 ac_delim='%!_!# '
10383 for ac_last_try in false false :; do
10384   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10385   if test -z "$ac_tt"; then
10386     break
10387   elif $ac_last_try; then
10388     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10389   else
10390     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10391   fi
10392 done
10393
10394 # For the awk script, D is an array of macro values keyed by name,
10395 # likewise P contains macro parameters if any.  Preserve backslash
10396 # newline sequences.
10397
10398 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10399 sed -n '
10400 s/.\{148\}/&'"$ac_delim"'/g
10401 t rset
10402 :rset
10403 s/^[     ]*#[    ]*define[       ][      ]*/ /
10404 t def
10405 d
10406 :def
10407 s/\\$//
10408 t bsnl
10409 s/["\\]/\\&/g
10410 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10411 D["\1"]=" \3"/p
10412 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10413 d
10414 :bsnl
10415 s/["\\]/\\&/g
10416 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10417 D["\1"]=" \3\\\\\\n"\\/p
10418 t cont
10419 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10420 t cont
10421 d
10422 :cont
10423 n
10424 s/.\{148\}/&'"$ac_delim"'/g
10425 t clear
10426 :clear
10427 s/\\$//
10428 t bsnlc
10429 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10430 d
10431 :bsnlc
10432 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10433 b cont
10434 ' <confdefs.h | sed '
10435 s/'"$ac_delim"'/"\\\
10436 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10437
10438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10439   for (key in D) D_is_set[key] = 1
10440   FS = "\a"
10441 }
10442 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10443   line = \$ 0
10444   split(line, arg, " ")
10445   if (arg[1] == "#") {
10446     defundef = arg[2]
10447     mac1 = arg[3]
10448   } else {
10449     defundef = substr(arg[1], 2)
10450     mac1 = arg[2]
10451   }
10452   split(mac1, mac2, "(") #)
10453   macro = mac2[1]
10454   prefix = substr(line, 1, index(line, defundef) - 1)
10455   if (D_is_set[macro]) {
10456     # Preserve the white space surrounding the "#".
10457     print prefix "define", macro P[macro] D[macro]
10458     next
10459   } else {
10460     # Replace #undef with comments.  This is necessary, for example,
10461     # in the case of _POSIX_SOURCE, which is predefined and required
10462     # on some systems where configure will not decide to define it.
10463     if (defundef == "undef") {
10464       print "/*", prefix defundef, macro, "*/"
10465       next
10466     }
10467   }
10468 }
10469 { print }
10470 _ACAWK
10471 _ACEOF
10472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10473   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10474 fi # test -n "$CONFIG_HEADERS"
10475
10476
10477 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10478 shift
10479 for ac_tag
10480 do
10481   case $ac_tag in
10482   :[FHLC]) ac_mode=$ac_tag; continue;;
10483   esac
10484   case $ac_mode$ac_tag in
10485   :[FHL]*:*);;
10486   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10487   :[FH]-) ac_tag=-:-;;
10488   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10489   esac
10490   ac_save_IFS=$IFS
10491   IFS=:
10492   set x $ac_tag
10493   IFS=$ac_save_IFS
10494   shift
10495   ac_file=$1
10496   shift
10497
10498   case $ac_mode in
10499   :L) ac_source=$1;;
10500   :[FH])
10501     ac_file_inputs=
10502     for ac_f
10503     do
10504       case $ac_f in
10505       -) ac_f="$ac_tmp/stdin";;
10506       *) # Look for the file first in the build tree, then in the source tree
10507          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10508          # because $ac_f cannot contain `:'.
10509          test -f "$ac_f" ||
10510            case $ac_f in
10511            [\\/$]*) false;;
10512            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10513            esac ||
10514            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10515       esac
10516       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10517       as_fn_append ac_file_inputs " '$ac_f'"
10518     done
10519
10520     # Let's still pretend it is `configure' which instantiates (i.e., don't
10521     # use $as_me), people would be surprised to read:
10522     #    /* config.h.  Generated by config.status.  */
10523     configure_input='Generated from '`
10524           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10525         `' by configure.'
10526     if test x"$ac_file" != x-; then
10527       configure_input="$ac_file.  $configure_input"
10528       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10529 $as_echo "$as_me: creating $ac_file" >&6;}
10530     fi
10531     # Neutralize special characters interpreted by sed in replacement strings.
10532     case $configure_input in #(
10533     *\&* | *\|* | *\\* )
10534        ac_sed_conf_input=`$as_echo "$configure_input" |
10535        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10536     *) ac_sed_conf_input=$configure_input;;
10537     esac
10538
10539     case $ac_tag in
10540     *:-:* | *:-) cat >"$ac_tmp/stdin" \
10541       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10542     esac
10543     ;;
10544   esac
10545
10546   ac_dir=`$as_dirname -- "$ac_file" ||
10547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10548          X"$ac_file" : 'X\(//\)[^/]' \| \
10549          X"$ac_file" : 'X\(//\)$' \| \
10550          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10551 $as_echo X"$ac_file" |
10552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10553             s//\1/
10554             q
10555           }
10556           /^X\(\/\/\)[^/].*/{
10557             s//\1/
10558             q
10559           }
10560           /^X\(\/\/\)$/{
10561             s//\1/
10562             q
10563           }
10564           /^X\(\/\).*/{
10565             s//\1/
10566             q
10567           }
10568           s/.*/./; q'`
10569   as_dir="$ac_dir"; as_fn_mkdir_p
10570   ac_builddir=.
10571
10572 case "$ac_dir" in
10573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10574 *)
10575   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10576   # A ".." for each directory in $ac_dir_suffix.
10577   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10578   case $ac_top_builddir_sub in
10579   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10580   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10581   esac ;;
10582 esac
10583 ac_abs_top_builddir=$ac_pwd
10584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10585 # for backward compatibility:
10586 ac_top_builddir=$ac_top_build_prefix
10587
10588 case $srcdir in
10589   .)  # We are building in place.
10590     ac_srcdir=.
10591     ac_top_srcdir=$ac_top_builddir_sub
10592     ac_abs_top_srcdir=$ac_pwd ;;
10593   [\\/]* | ?:[\\/]* )  # Absolute name.
10594     ac_srcdir=$srcdir$ac_dir_suffix;
10595     ac_top_srcdir=$srcdir
10596     ac_abs_top_srcdir=$srcdir ;;
10597   *) # Relative name.
10598     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10599     ac_top_srcdir=$ac_top_build_prefix$srcdir
10600     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10601 esac
10602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10603
10604
10605   case $ac_mode in
10606   :F)
10607   #
10608   # CONFIG_FILE
10609   #
10610
10611   case $INSTALL in
10612   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10613   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10614   esac
10615   ac_MKDIR_P=$MKDIR_P
10616   case $MKDIR_P in
10617   [\\/$]* | ?:[\\/]* ) ;;
10618   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10619   esac
10620 _ACEOF
10621
10622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10623 # If the template does not know about datarootdir, expand it.
10624 # FIXME: This hack should be removed a few years after 2.60.
10625 ac_datarootdir_hack=; ac_datarootdir_seen=
10626 ac_sed_dataroot='
10627 /datarootdir/ {
10628   p
10629   q
10630 }
10631 /@datadir@/p
10632 /@docdir@/p
10633 /@infodir@/p
10634 /@localedir@/p
10635 /@mandir@/p'
10636 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10637 *datarootdir*) ac_datarootdir_seen=yes;;
10638 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10640 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10641 _ACEOF
10642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10643   ac_datarootdir_hack='
10644   s&@datadir@&$datadir&g
10645   s&@docdir@&$docdir&g
10646   s&@infodir@&$infodir&g
10647   s&@localedir@&$localedir&g
10648   s&@mandir@&$mandir&g
10649   s&\\\${datarootdir}&$datarootdir&g' ;;
10650 esac
10651 _ACEOF
10652
10653 # Neutralize VPATH when `$srcdir' = `.'.
10654 # Shell code in configure.ac might set extrasub.
10655 # FIXME: do we really want to maintain this feature?
10656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10657 ac_sed_extra="$ac_vpsub
10658 $extrasub
10659 _ACEOF
10660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10661 :t
10662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10663 s|@configure_input@|$ac_sed_conf_input|;t t
10664 s&@top_builddir@&$ac_top_builddir_sub&;t t
10665 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10666 s&@srcdir@&$ac_srcdir&;t t
10667 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10668 s&@top_srcdir@&$ac_top_srcdir&;t t
10669 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10670 s&@builddir@&$ac_builddir&;t t
10671 s&@abs_builddir@&$ac_abs_builddir&;t t
10672 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10673 s&@INSTALL@&$ac_INSTALL&;t t
10674 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10675 $ac_datarootdir_hack
10676 "
10677 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10678   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10679
10680 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10681   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10682   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10683       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10685 which seems to be undefined.  Please make sure it is defined" >&5
10686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10687 which seems to be undefined.  Please make sure it is defined" >&2;}
10688
10689   rm -f "$ac_tmp/stdin"
10690   case $ac_file in
10691   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10692   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10693   esac \
10694   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10695  ;;
10696   :H)
10697   #
10698   # CONFIG_HEADER
10699   #
10700   if test x"$ac_file" != x-; then
10701     {
10702       $as_echo "/* $configure_input  */" \
10703       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10704     } >"$ac_tmp/config.h" \
10705       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10706     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10707       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10708 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10709     else
10710       rm -f "$ac_file"
10711       mv "$ac_tmp/config.h" "$ac_file" \
10712         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10713     fi
10714   else
10715     $as_echo "/* $configure_input  */" \
10716       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10717       || as_fn_error $? "could not create -" "$LINENO" 5
10718   fi
10719 # Compute "$ac_file"'s index in $config_headers.
10720 _am_arg="$ac_file"
10721 _am_stamp_count=1
10722 for _am_header in $config_headers :; do
10723   case $_am_header in
10724     $_am_arg | $_am_arg:* )
10725       break ;;
10726     * )
10727       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10728   esac
10729 done
10730 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10731 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10732          X"$_am_arg" : 'X\(//\)[^/]' \| \
10733          X"$_am_arg" : 'X\(//\)$' \| \
10734          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10735 $as_echo X"$_am_arg" |
10736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10737             s//\1/
10738             q
10739           }
10740           /^X\(\/\/\)[^/].*/{
10741             s//\1/
10742             q
10743           }
10744           /^X\(\/\/\)$/{
10745             s//\1/
10746             q
10747           }
10748           /^X\(\/\).*/{
10749             s//\1/
10750             q
10751           }
10752           s/.*/./; q'`/stamp-h$_am_stamp_count
10753  ;;
10754
10755   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10756 $as_echo "$as_me: executing $ac_file commands" >&6;}
10757  ;;
10758   esac
10759
10760
10761   case $ac_file$ac_mode in
10762     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10763   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10764   # are listed without --file.  Let's play safe and only enable the eval
10765   # if we detect the quoting.
10766   case $CONFIG_FILES in
10767   *\'*) eval set x "$CONFIG_FILES" ;;
10768   *)   set x $CONFIG_FILES ;;
10769   esac
10770   shift
10771   for mf
10772   do
10773     # Strip MF so we end up with the name of the file.
10774     mf=`echo "$mf" | sed -e 's/:.*$//'`
10775     # Check whether this is an Automake generated Makefile or not.
10776     # We used to match only the files named `Makefile.in', but
10777     # some people rename them; so instead we look at the file content.
10778     # Grep'ing the first line is not enough: some people post-process
10779     # each Makefile.in and add a new line on top of each file to say so.
10780     # Grep'ing the whole file is not good either: AIX grep has a line
10781     # limit of 2048, but all sed's we know have understand at least 4000.
10782     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10783       dirpart=`$as_dirname -- "$mf" ||
10784 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10785          X"$mf" : 'X\(//\)[^/]' \| \
10786          X"$mf" : 'X\(//\)$' \| \
10787          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10788 $as_echo X"$mf" |
10789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10790             s//\1/
10791             q
10792           }
10793           /^X\(\/\/\)[^/].*/{
10794             s//\1/
10795             q
10796           }
10797           /^X\(\/\/\)$/{
10798             s//\1/
10799             q
10800           }
10801           /^X\(\/\).*/{
10802             s//\1/
10803             q
10804           }
10805           s/.*/./; q'`
10806     else
10807       continue
10808     fi
10809     # Extract the definition of DEPDIR, am__include, and am__quote
10810     # from the Makefile without running `make'.
10811     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10812     test -z "$DEPDIR" && continue
10813     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10814     test -z "am__include" && continue
10815     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10816     # When using ansi2knr, U may be empty or an underscore; expand it
10817     U=`sed -n 's/^U = //p' < "$mf"`
10818     # Find all dependency output files, they are included files with
10819     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10820     # simplest approach to changing $(DEPDIR) to its actual value in the
10821     # expansion.
10822     for file in `sed -n "
10823       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10824          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10825       # Make sure the directory exists.
10826       test -f "$dirpart/$file" && continue
10827       fdir=`$as_dirname -- "$file" ||
10828 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10829          X"$file" : 'X\(//\)[^/]' \| \
10830          X"$file" : 'X\(//\)$' \| \
10831          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10832 $as_echo X"$file" |
10833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10834             s//\1/
10835             q
10836           }
10837           /^X\(\/\/\)[^/].*/{
10838             s//\1/
10839             q
10840           }
10841           /^X\(\/\/\)$/{
10842             s//\1/
10843             q
10844           }
10845           /^X\(\/\).*/{
10846             s//\1/
10847             q
10848           }
10849           s/.*/./; q'`
10850       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10851       # echo "creating $dirpart/$file"
10852       echo '# dummy' > "$dirpart/$file"
10853     done
10854   done
10855 }
10856  ;;
10857     "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10858     "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10859     "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10860     "coregrind/link_tool_exe_l4re":F) chmod +x coregrind/link_tool_exe_l4re ;;
10861
10862   esac
10863 done # for ac_tag
10864
10865
10866 as_fn_exit 0
10867 _ACEOF
10868 ac_clean_files=$ac_clean_files_save
10869
10870 test $ac_write_fail = 0 ||
10871   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10872
10873
10874 # configure is writing to config.log, and then calls config.status.
10875 # config.status does its own redirection, appending to config.log.
10876 # Unfortunately, on DOS this fails, as config.log is still kept open
10877 # by configure, so config.status won't be able to write to it; its
10878 # output is simply discarded.  So we exec the FD to /dev/null,
10879 # effectively closing config.log, so it can be properly (re)opened and
10880 # appended to by config.status.  When coming back to configure, we
10881 # need to make the FD available again.
10882 if test "$no_create" != yes; then
10883   ac_cs_success=:
10884   ac_config_status_args=
10885   test "$silent" = yes &&
10886     ac_config_status_args="$ac_config_status_args --quiet"
10887   exec 5>/dev/null
10888   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10889   exec 5>>config.log
10890   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10891   # would make configure fail if this is the last instruction.
10892   $ac_cs_success || as_fn_exit 1
10893 fi
10894 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10896 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10897 fi
10898
10899
10900 cat<<EOF
10901
10902          Maximum build arch: ${ARCH_MAX}
10903          Primary build arch: ${VGCONF_ARCH_PRI}
10904        Secondary build arch: ${VGCONF_ARCH_SEC}
10905                    Build OS: ${VGCONF_OS}
10906        Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10907      Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10908          Default supp files: ${DEFAULT_SUPP}
10909        Generated supp files: ${GENERATED_SUPP}
10910
10911 EOF