• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for Valgrind 3.6.1.
4#
5# Report bugs to <valgrind-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: valgrind-users@lists.sourceforge.net about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$?; test $as_status -eq 0 && as_status=1
370  if test "$3"; then
371    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373  fi
374  $as_echo "$as_me: error: $1" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
534
535# Name of the host.
536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
544ac_clean_files=
545ac_config_libobj_dir=.
546LIBOBJS=
547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
551
552# Identity of this package.
553PACKAGE_NAME='Valgrind'
554PACKAGE_TARNAME='valgrind'
555PACKAGE_VERSION='3.6.1'
556PACKAGE_STRING='Valgrind 3.6.1'
557PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
558PACKAGE_URL=''
559
560ac_unique_file="coregrind/m_main.c"
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#ifdef HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#ifdef HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#ifdef STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# ifdef HAVE_STDLIB_H
575#  include <stdlib.h>
576# endif
577#endif
578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580#  include <memory.h>
581# endif
582# include <string.h>
583#endif
584#ifdef HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#ifdef HAVE_INTTYPES_H
588# include <inttypes.h>
589#endif
590#ifdef HAVE_STDINT_H
591# include <stdint.h>
592#endif
593#ifdef HAVE_UNISTD_H
594# include <unistd.h>
595#endif"
596
597ac_header_list=
598ac_subst_vars='am__EXEEXT_FALSE
599am__EXEEXT_TRUE
600LTLIBOBJS
601HAVE_BUILTIN_ATOMIC_FALSE
602HAVE_BUILTIN_ATOMIC_TRUE
603HAVE_OPENMP_FALSE
604HAVE_OPENMP_TRUE
605HAVE_BOOST_1_35_FALSE
606HAVE_BOOST_1_35_TRUE
607BOOST_LIBS
608BOOST_CFLAGS
609HAVE_QTCORE_QATOMICINT_FALSE
610HAVE_QTCORE_QATOMICINT_TRUE
611HAVE_QTCORE_FALSE
612HAVE_QTCORE_TRUE
613QTCORE_LIBS
614QTCORE_CFLAGS
615PKG_CONFIG
616BUILD_MPIWRAP_SEC_FALSE
617BUILD_MPIWRAP_SEC_TRUE
618BUILD_MPIWRAP_PRI_FALSE
619BUILD_MPIWRAP_PRI_TRUE
620MPI_CC
621HAVE_PTHREAD_SPINLOCK_FALSE
622HAVE_PTHREAD_SPINLOCK_TRUE
623HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
624HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
625HAVE_PTHREAD_BARRIER_FALSE
626HAVE_PTHREAD_BARRIER_TRUE
627LIBOBJS
628BUILD_LZCNT_TESTS_FALSE
629BUILD_LZCNT_TESTS_TRUE
630BUILD_PCLMULQDQ_TESTS_FALSE
631BUILD_PCLMULQDQ_TESTS_TRUE
632BUILD_SSSE3_TESTS_FALSE
633BUILD_SSSE3_TESTS_TRUE
634BUILD_SSE3_TESTS_FALSE
635BUILD_SSE3_TESTS_TRUE
636FLAG_NO_BUILD_ID
637FLAG_UNLIMITED_INLINE_UNIT_GROWTH
638FLAG_FNO_STACK_PROTECTOR
639FLAG_W_EXTRA
640FLAG_W_NO_UNINITIALIZED
641FLAG_W_NO_FORMAT_ZERO_LENGTH
642FLAG_W_NO_EMPTY_BODY
643PREFERRED_STACK_BOUNDARY
644FLAG_MSSE
645FLAG_MMMX
646FLAG_MAIX64
647FLAG_M64
648FLAG_MAIX32
649FLAG_M32
650HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
651HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
652HAS_ALTIVEC_FALSE
653HAS_ALTIVEC_TRUE
654GLIBC_VERSION
655EGREP
656GREP
657DEFAULT_SUPP
658VALT_LOAD_ADDRESS_SEC
659VALT_LOAD_ADDRESS_PRI
660VGCONF_HAVE_PLATFORM_SEC_FALSE
661VGCONF_HAVE_PLATFORM_SEC_TRUE
662VGCONF_OS_IS_DARWIN_FALSE
663VGCONF_OS_IS_DARWIN_TRUE
664VGCONF_OS_IS_AIX5_FALSE
665VGCONF_OS_IS_AIX5_TRUE
666VGCONF_OS_IS_LINUX_FALSE
667VGCONF_OS_IS_LINUX_TRUE
668VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
669VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
670VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
671VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
672VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
673VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
674VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
675VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
676VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
677VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
678VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
679VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
680VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
681VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
682VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
683VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
684VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
685VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
686VGCONF_ARCHS_INCLUDE_ARM_FALSE
687VGCONF_ARCHS_INCLUDE_ARM_TRUE
688VGCONF_ARCHS_INCLUDE_PPC64_FALSE
689VGCONF_ARCHS_INCLUDE_PPC64_TRUE
690VGCONF_ARCHS_INCLUDE_PPC32_FALSE
691VGCONF_ARCHS_INCLUDE_PPC32_TRUE
692VGCONF_ARCHS_INCLUDE_AMD64_FALSE
693VGCONF_ARCHS_INCLUDE_AMD64_TRUE
694VGCONF_ARCHS_INCLUDE_X86_FALSE
695VGCONF_ARCHS_INCLUDE_X86_TRUE
696VGCONF_PLATFORM_SEC_CAPS
697VGCONF_PLATFORM_PRI_CAPS
698VGCONF_ARCH_SEC
699VGCONF_ARCH_PRI
700VGCONF_OS
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709DIFF
710am__fastdepCCAS_FALSE
711am__fastdepCCAS_TRUE
712CCASDEPMODE
713CCASFLAGS
714CCAS
715GDB
716PERL
717AR
718SED
719RANLIB
720am__fastdepCXX_FALSE
721am__fastdepCXX_TRUE
722CXXDEPMODE
723ac_ct_CXX
724CXXFLAGS
725CXX
726CPP
727am__fastdepCC_FALSE
728am__fastdepCC_TRUE
729CCDEPMODE
730AMDEPBACKSLASH
731AMDEP_FALSE
732AMDEP_TRUE
733am__quote
734am__include
735DEPDIR
736OBJEXT
737EXEEXT
738ac_ct_CC
739CPPFLAGS
740LDFLAGS
741CFLAGS
742CC
743LN_S
744MAINT
745MAINTAINER_MODE_FALSE
746MAINTAINER_MODE_TRUE
747am__untar
748am__tar
749AMTAR
750am__leading_dot
751SET_MAKE
752AWK
753mkdir_p
754MKDIR_P
755INSTALL_STRIP_PROGRAM
756STRIP
757install_sh
758MAKEINFO
759AUTOHEADER
760AUTOMAKE
761AUTOCONF
762ACLOCAL
763VERSION
764PACKAGE
765CYGPATH_W
766am__isrc
767INSTALL_DATA
768INSTALL_SCRIPT
769INSTALL_PROGRAM
770target_alias
771host_alias
772build_alias
773LIBS
774ECHO_T
775ECHO_N
776ECHO_C
777DEFS
778mandir
779localedir
780libdir
781psdir
782pdfdir
783dvidir
784htmldir
785infodir
786docdir
787oldincludedir
788includedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
811enable_maintainer_mode
812enable_dependency_tracking
813enable_only64bit
814enable_only32bit
815enable_inner
816enable_tls
817with_mpicc
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
825LIBS
826CPPFLAGS
827CPP
828CXX
829CXXFLAGS
830CCC
831AR
832CCAS
833CCASFLAGS
834PKG_CONFIG
835QTCORE_CFLAGS
836QTCORE_LIBS'
837
838
839# Initialize some variables set by options.
840ac_init_help=
841ac_init_version=false
842ac_unrecognized_opts=
843ac_unrecognized_sep=
844# The variables have the same names as the options, with
845# dashes changed to underlines.
846cache_file=/dev/null
847exec_prefix=NONE
848no_create=
849no_recursion=
850prefix=NONE
851program_prefix=NONE
852program_suffix=NONE
853program_transform_name=s,x,x,
854silent=
855site=
856srcdir=
857verbose=
858x_includes=NONE
859x_libraries=NONE
860
861# Installation directory options.
862# These are left unexpanded so users can "make install exec_prefix=/foo"
863# and all the variables that are supposed to be based on exec_prefix
864# by default will actually change.
865# Use braces instead of parens because sh, perl, etc. also accept them.
866# (The list follows the same order as the GNU Coding Standards.)
867bindir='${exec_prefix}/bin'
868sbindir='${exec_prefix}/sbin'
869libexecdir='${exec_prefix}/libexec'
870datarootdir='${prefix}/share'
871datadir='${datarootdir}'
872sysconfdir='${prefix}/etc'
873sharedstatedir='${prefix}/com'
874localstatedir='${prefix}/var'
875includedir='${prefix}/include'
876oldincludedir='/usr/include'
877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
886
887ac_prev=
888ac_dashdash=
889for ac_option
890do
891  # If the previous option needs an argument, assign it.
892  if test -n "$ac_prev"; then
893    eval $ac_prev=\$ac_option
894    ac_prev=
895    continue
896  fi
897
898  case $ac_option in
899  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900  *)	ac_optarg=yes ;;
901  esac
902
903  # Accept the important Cygnus configure options, so we can diagnose typos.
904
905  case $ac_dashdash$ac_option in
906  --)
907    ac_dashdash=yes ;;
908
909  -bindir | --bindir | --bindi | --bind | --bin | --bi)
910    ac_prev=bindir ;;
911  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912    bindir=$ac_optarg ;;
913
914  -build | --build | --buil | --bui | --bu)
915    ac_prev=build_alias ;;
916  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917    build_alias=$ac_optarg ;;
918
919  -cache-file | --cache-file | --cache-fil | --cache-fi \
920  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921    ac_prev=cache_file ;;
922  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924    cache_file=$ac_optarg ;;
925
926  --config-cache | -C)
927    cache_file=config.cache ;;
928
929  -datadir | --datadir | --datadi | --datad)
930    ac_prev=datadir ;;
931  -datadir=* | --datadir=* | --datadi=* | --datad=*)
932    datadir=$ac_optarg ;;
933
934  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935  | --dataroo | --dataro | --datar)
936    ac_prev=datarootdir ;;
937  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939    datarootdir=$ac_optarg ;;
940
941  -disable-* | --disable-*)
942    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943    # Reject names that are not valid shell variable names.
944    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945      as_fn_error "invalid feature name: $ac_useropt"
946    ac_useropt_orig=$ac_useropt
947    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948    case $ac_user_opts in
949      *"
950"enable_$ac_useropt"
951"*) ;;
952      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953	 ac_unrecognized_sep=', ';;
954    esac
955    eval enable_$ac_useropt=no ;;
956
957  -docdir | --docdir | --docdi | --doc | --do)
958    ac_prev=docdir ;;
959  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960    docdir=$ac_optarg ;;
961
962  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963    ac_prev=dvidir ;;
964  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965    dvidir=$ac_optarg ;;
966
967  -enable-* | --enable-*)
968    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969    # Reject names that are not valid shell variable names.
970    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971      as_fn_error "invalid feature name: $ac_useropt"
972    ac_useropt_orig=$ac_useropt
973    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974    case $ac_user_opts in
975      *"
976"enable_$ac_useropt"
977"*) ;;
978      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979	 ac_unrecognized_sep=', ';;
980    esac
981    eval enable_$ac_useropt=\$ac_optarg ;;
982
983  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985  | --exec | --exe | --ex)
986    ac_prev=exec_prefix ;;
987  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989  | --exec=* | --exe=* | --ex=*)
990    exec_prefix=$ac_optarg ;;
991
992  -gas | --gas | --ga | --g)
993    # Obsolete; use --with-gas.
994    with_gas=yes ;;
995
996  -help | --help | --hel | --he | -h)
997    ac_init_help=long ;;
998  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999    ac_init_help=recursive ;;
1000  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001    ac_init_help=short ;;
1002
1003  -host | --host | --hos | --ho)
1004    ac_prev=host_alias ;;
1005  -host=* | --host=* | --hos=* | --ho=*)
1006    host_alias=$ac_optarg ;;
1007
1008  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009    ac_prev=htmldir ;;
1010  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011  | --ht=*)
1012    htmldir=$ac_optarg ;;
1013
1014  -includedir | --includedir | --includedi | --included | --include \
1015  | --includ | --inclu | --incl | --inc)
1016    ac_prev=includedir ;;
1017  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018  | --includ=* | --inclu=* | --incl=* | --inc=*)
1019    includedir=$ac_optarg ;;
1020
1021  -infodir | --infodir | --infodi | --infod | --info | --inf)
1022    ac_prev=infodir ;;
1023  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024    infodir=$ac_optarg ;;
1025
1026  -libdir | --libdir | --libdi | --libd)
1027    ac_prev=libdir ;;
1028  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029    libdir=$ac_optarg ;;
1030
1031  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032  | --libexe | --libex | --libe)
1033    ac_prev=libexecdir ;;
1034  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035  | --libexe=* | --libex=* | --libe=*)
1036    libexecdir=$ac_optarg ;;
1037
1038  -localedir | --localedir | --localedi | --localed | --locale)
1039    ac_prev=localedir ;;
1040  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041    localedir=$ac_optarg ;;
1042
1043  -localstatedir | --localstatedir | --localstatedi | --localstated \
1044  | --localstate | --localstat | --localsta | --localst | --locals)
1045    ac_prev=localstatedir ;;
1046  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048    localstatedir=$ac_optarg ;;
1049
1050  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051    ac_prev=mandir ;;
1052  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053    mandir=$ac_optarg ;;
1054
1055  -nfp | --nfp | --nf)
1056    # Obsolete; use --without-fp.
1057    with_fp=no ;;
1058
1059  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060  | --no-cr | --no-c | -n)
1061    no_create=yes ;;
1062
1063  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065    no_recursion=yes ;;
1066
1067  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069  | --oldin | --oldi | --old | --ol | --o)
1070    ac_prev=oldincludedir ;;
1071  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074    oldincludedir=$ac_optarg ;;
1075
1076  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077    ac_prev=prefix ;;
1078  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079    prefix=$ac_optarg ;;
1080
1081  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082  | --program-pre | --program-pr | --program-p)
1083    ac_prev=program_prefix ;;
1084  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086    program_prefix=$ac_optarg ;;
1087
1088  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089  | --program-suf | --program-su | --program-s)
1090    ac_prev=program_suffix ;;
1091  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093    program_suffix=$ac_optarg ;;
1094
1095  -program-transform-name | --program-transform-name \
1096  | --program-transform-nam | --program-transform-na \
1097  | --program-transform-n | --program-transform- \
1098  | --program-transform | --program-transfor \
1099  | --program-transfo | --program-transf \
1100  | --program-trans | --program-tran \
1101  | --progr-tra | --program-tr | --program-t)
1102    ac_prev=program_transform_name ;;
1103  -program-transform-name=* | --program-transform-name=* \
1104  | --program-transform-nam=* | --program-transform-na=* \
1105  | --program-transform-n=* | --program-transform-=* \
1106  | --program-transform=* | --program-transfor=* \
1107  | --program-transfo=* | --program-transf=* \
1108  | --program-trans=* | --program-tran=* \
1109  | --progr-tra=* | --program-tr=* | --program-t=*)
1110    program_transform_name=$ac_optarg ;;
1111
1112  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113    ac_prev=pdfdir ;;
1114  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115    pdfdir=$ac_optarg ;;
1116
1117  -psdir | --psdir | --psdi | --psd | --ps)
1118    ac_prev=psdir ;;
1119  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120    psdir=$ac_optarg ;;
1121
1122  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123  | -silent | --silent | --silen | --sile | --sil)
1124    silent=yes ;;
1125
1126  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127    ac_prev=sbindir ;;
1128  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129  | --sbi=* | --sb=*)
1130    sbindir=$ac_optarg ;;
1131
1132  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134  | --sharedst | --shareds | --shared | --share | --shar \
1135  | --sha | --sh)
1136    ac_prev=sharedstatedir ;;
1137  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140  | --sha=* | --sh=*)
1141    sharedstatedir=$ac_optarg ;;
1142
1143  -site | --site | --sit)
1144    ac_prev=site ;;
1145  -site=* | --site=* | --sit=*)
1146    site=$ac_optarg ;;
1147
1148  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149    ac_prev=srcdir ;;
1150  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151    srcdir=$ac_optarg ;;
1152
1153  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154  | --syscon | --sysco | --sysc | --sys | --sy)
1155    ac_prev=sysconfdir ;;
1156  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158    sysconfdir=$ac_optarg ;;
1159
1160  -target | --target | --targe | --targ | --tar | --ta | --t)
1161    ac_prev=target_alias ;;
1162  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163    target_alias=$ac_optarg ;;
1164
1165  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166    verbose=yes ;;
1167
1168  -version | --version | --versio | --versi | --vers | -V)
1169    ac_init_version=: ;;
1170
1171  -with-* | --with-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error "invalid package name: $ac_useropt"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=\$ac_optarg ;;
1186
1187  -without-* | --without-*)
1188    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189    # Reject names that are not valid shell variable names.
1190    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191      as_fn_error "invalid package name: $ac_useropt"
1192    ac_useropt_orig=$ac_useropt
1193    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194    case $ac_user_opts in
1195      *"
1196"with_$ac_useropt"
1197"*) ;;
1198      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199	 ac_unrecognized_sep=', ';;
1200    esac
1201    eval with_$ac_useropt=no ;;
1202
1203  --x)
1204    # Obsolete; use --with-x.
1205    with_x=yes ;;
1206
1207  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208  | --x-incl | --x-inc | --x-in | --x-i)
1209    ac_prev=x_includes ;;
1210  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212    x_includes=$ac_optarg ;;
1213
1214  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216    ac_prev=x_libraries ;;
1217  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219    x_libraries=$ac_optarg ;;
1220
1221  -*) as_fn_error "unrecognized option: \`$ac_option'
1222Try \`$0 --help' for more information."
1223    ;;
1224
1225  *=*)
1226    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227    # Reject names that are not valid shell variable names.
1228    case $ac_envvar in #(
1229      '' | [0-9]* | *[!_$as_cr_alnum]* )
1230      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231    esac
1232    eval $ac_envvar=\$ac_optarg
1233    export $ac_envvar ;;
1234
1235  *)
1236    # FIXME: should be removed in autoconf 3.0.
1237    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241    ;;
1242
1243  esac
1244done
1245
1246if test -n "$ac_prev"; then
1247  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248  as_fn_error "missing argument to $ac_option"
1249fi
1250
1251if test -n "$ac_unrecognized_opts"; then
1252  case $enable_option_checking in
1253    no) ;;
1254    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1255    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256  esac
1257fi
1258
1259# Check all directory arguments for consistency.
1260for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261		datadir sysconfdir sharedstatedir localstatedir includedir \
1262		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263		libdir localedir mandir
1264do
1265  eval ac_val=\$$ac_var
1266  # Remove trailing slashes.
1267  case $ac_val in
1268    */ )
1269      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270      eval $ac_var=\$ac_val;;
1271  esac
1272  # Be sure to have absolute directory names.
1273  case $ac_val in
1274    [\\/$]* | ?:[\\/]* )  continue;;
1275    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276  esac
1277  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1278done
1279
1280# There might be people who depend on the old broken behavior: `$host'
1281# used to hold the argument of --host etc.
1282# FIXME: To remove some day.
1283build=$build_alias
1284host=$host_alias
1285target=$target_alias
1286
1287# FIXME: To remove some day.
1288if test "x$host_alias" != x; then
1289  if test "x$build_alias" = x; then
1290    cross_compiling=maybe
1291    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1292    If a cross compiler is detected then cross compile mode will be used." >&2
1293  elif test "x$build_alias" != "x$host_alias"; then
1294    cross_compiling=yes
1295  fi
1296fi
1297
1298ac_tool_prefix=
1299test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301test "$silent" = yes && exec 6>/dev/null
1302
1303
1304ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305ac_ls_di=`ls -di .` &&
1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307  as_fn_error "working directory cannot be determined"
1308test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309  as_fn_error "pwd does not report name of working directory"
1310
1311
1312# Find the source files, if location was not specified.
1313if test -z "$srcdir"; then
1314  ac_srcdir_defaulted=yes
1315  # Try the directory containing this script, then the parent directory.
1316  ac_confdir=`$as_dirname -- "$as_myself" ||
1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318	 X"$as_myself" : 'X\(//\)[^/]' \| \
1319	 X"$as_myself" : 'X\(//\)$' \| \
1320	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321$as_echo X"$as_myself" |
1322    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\/\)[^/].*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)$/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\).*/{
1335	    s//\1/
1336	    q
1337	  }
1338	  s/.*/./; q'`
1339  srcdir=$ac_confdir
1340  if test ! -r "$srcdir/$ac_unique_file"; then
1341    srcdir=..
1342  fi
1343else
1344  ac_srcdir_defaulted=no
1345fi
1346if test ! -r "$srcdir/$ac_unique_file"; then
1347  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1349fi
1350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
1352	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1353	pwd)`
1354# When building in place, set srcdir=.
1355if test "$ac_abs_confdir" = "$ac_pwd"; then
1356  srcdir=.
1357fi
1358# Remove unnecessary trailing slashes from srcdir.
1359# Double slashes in file names in object file debugging info
1360# mess up M-x gdb in Emacs.
1361case $srcdir in
1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363esac
1364for ac_var in $ac_precious_vars; do
1365  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366  eval ac_env_${ac_var}_value=\$${ac_var}
1367  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375  # Omit some internal or obsolete options to make the list less imposing.
1376  # This message is too long to be a string in the A/UX 3.1 sh.
1377  cat <<_ACEOF
1378\`configure' configures Valgrind 3.6.1 to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388  -h, --help              display this help and exit
1389      --help=short        display options specific to this package
1390      --help=recursive    display the short help of all the included packages
1391  -V, --version           display version information and exit
1392  -q, --quiet, --silent   do not print \`checking...' messages
1393      --cache-file=FILE   cache test results in FILE [disabled]
1394  -C, --config-cache      alias for \`--cache-file=config.cache'
1395  -n, --no-create         do not create output files
1396      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398Installation directories:
1399  --prefix=PREFIX         install architecture-independent files in PREFIX
1400                          [$ac_default_prefix]
1401  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                          [PREFIX]
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
1412  --bindir=DIR            user executables [EPREFIX/bin]
1413  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414  --libexecdir=DIR        program executables [EPREFIX/libexec]
1415  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418  --libdir=DIR            object code libraries [EPREFIX/lib]
1419  --includedir=DIR        C header files [PREFIX/include]
1420  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423  --infodir=DIR           info documentation [DATAROOTDIR/info]
1424  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425  --mandir=DIR            man documentation [DATAROOTDIR/man]
1426  --docdir=DIR            documentation root [DATAROOTDIR/doc/valgrind]
1427  --htmldir=DIR           html documentation [DOCDIR]
1428  --dvidir=DIR            dvi documentation [DOCDIR]
1429  --pdfdir=DIR            pdf documentation [DOCDIR]
1430  --psdir=DIR             ps documentation [DOCDIR]
1431_ACEOF
1432
1433  cat <<\_ACEOF
1434
1435Program names:
1436  --program-prefix=PREFIX            prepend PREFIX to installed program names
1437  --program-suffix=SUFFIX            append SUFFIX to installed program names
1438  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440System types:
1441  --build=BUILD     configure for building on BUILD [guessed]
1442  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447  case $ac_init_help in
1448     short | recursive ) echo "Configuration of Valgrind 3.6.1:";;
1449   esac
1450  cat <<\_ACEOF
1451
1452Optional Features:
1453  --disable-option-checking  ignore unrecognized --enable/--with options
1454  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1455  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1456  --enable-maintainer-mode  enable make rules and dependencies not useful
1457			  (and sometimes confusing) to the casual installer
1458  --disable-dependency-tracking  speeds up one-time build
1459  --enable-dependency-tracking   do not reject slow dependency extractors
1460  --enable-only64bit      do a 64-bit only build
1461  --enable-only32bit      do a 32-bit only build
1462  --enable-inner          enables self-hosting
1463  --enable-tls            platform supports TLS
1464
1465Optional Packages:
1466  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1467  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1468  --with-mpicc=           Specify name of MPI2-ised C compiler
1469
1470Some influential environment variables:
1471  CC          C compiler command
1472  CFLAGS      C compiler flags
1473  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474              nonstandard directory <lib dir>
1475  LIBS        libraries to pass to the linker, e.g. -l<library>
1476  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477              you have headers in a nonstandard directory <include dir>
1478  CPP         C preprocessor
1479  CXX         C++ compiler command
1480  CXXFLAGS    C++ compiler flags
1481  AR          Archiver command
1482  CCAS        assembler compiler command (defaults to CC)
1483  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1484  PKG_CONFIG  path to pkg-config utility
1485  QTCORE_CFLAGS
1486              C compiler flags for QTCORE, overriding pkg-config
1487  QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
1488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
1492Report bugs to <valgrind-users@lists.sourceforge.net>.
1493_ACEOF
1494ac_status=$?
1495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498  # If there are subdirs, report their specific --help.
1499  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500    test -d "$ac_dir" ||
1501      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502      continue
1503    ac_builddir=.
1504
1505case "$ac_dir" in
1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507*)
1508  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509  # A ".." for each directory in $ac_dir_suffix.
1510  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511  case $ac_top_builddir_sub in
1512  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514  esac ;;
1515esac
1516ac_abs_top_builddir=$ac_pwd
1517ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518# for backward compatibility:
1519ac_top_builddir=$ac_top_build_prefix
1520
1521case $srcdir in
1522  .)  # We are building in place.
1523    ac_srcdir=.
1524    ac_top_srcdir=$ac_top_builddir_sub
1525    ac_abs_top_srcdir=$ac_pwd ;;
1526  [\\/]* | ?:[\\/]* )  # Absolute name.
1527    ac_srcdir=$srcdir$ac_dir_suffix;
1528    ac_top_srcdir=$srcdir
1529    ac_abs_top_srcdir=$srcdir ;;
1530  *) # Relative name.
1531    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532    ac_top_srcdir=$ac_top_build_prefix$srcdir
1533    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534esac
1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537    cd "$ac_dir" || { ac_status=$?; continue; }
1538    # Check for guested configure.
1539    if test -f "$ac_srcdir/configure.gnu"; then
1540      echo &&
1541      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542    elif test -f "$ac_srcdir/configure"; then
1543      echo &&
1544      $SHELL "$ac_srcdir/configure" --help=recursive
1545    else
1546      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547    fi || ac_status=$?
1548    cd "$ac_pwd" || { ac_status=$?; break; }
1549  done
1550fi
1551
1552test -n "$ac_init_help" && exit $ac_status
1553if $ac_init_version; then
1554  cat <<\_ACEOF
1555Valgrind configure 3.6.1
1556generated by GNU Autoconf 2.65
1557
1558Copyright (C) 2009 Free Software Foundation, Inc.
1559This configure script is free software; the Free Software Foundation
1560gives unlimited permission to copy, distribute and modify it.
1561_ACEOF
1562  exit
1563fi
1564
1565## ------------------------ ##
1566## Autoconf initialization. ##
1567## ------------------------ ##
1568
1569# ac_fn_c_try_compile LINENO
1570# --------------------------
1571# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_compile ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  rm -f conftest.$ac_objext
1576  if { { ac_try="$ac_compile"
1577case "(($ac_try" in
1578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579  *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583  (eval "$ac_compile") 2>conftest.err
1584  ac_status=$?
1585  if test -s conftest.err; then
1586    grep -v '^ *+' conftest.err >conftest.er1
1587    cat conftest.er1 >&5
1588    mv -f conftest.er1 conftest.err
1589  fi
1590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591  test $ac_status = 0; } && {
1592	 test -z "$ac_c_werror_flag" ||
1593	 test ! -s conftest.err
1594       } && test -s conftest.$ac_objext; then :
1595  ac_retval=0
1596else
1597  $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600	ac_retval=1
1601fi
1602  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603  as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_compile
1606
1607# ac_fn_c_try_cpp LINENO
1608# ----------------------
1609# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_cpp ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  if { { ac_try="$ac_cpp conftest.$ac_ext"
1614case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621  ac_status=$?
1622  if test -s conftest.err; then
1623    grep -v '^ *+' conftest.err >conftest.er1
1624    cat conftest.er1 >&5
1625    mv -f conftest.er1 conftest.err
1626  fi
1627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } >/dev/null && {
1629	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630	 test ! -s conftest.err
1631       }; then :
1632  ac_retval=0
1633else
1634  $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637    ac_retval=1
1638fi
1639  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640  as_fn_set_status $ac_retval
1641
1642} # ac_fn_c_try_cpp
1643
1644# ac_fn_cxx_try_compile LINENO
1645# ----------------------------
1646# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_cxx_try_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  rm -f conftest.$ac_objext
1651  if { { ac_try="$ac_compile"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_compile") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } && {
1667	 test -z "$ac_cxx_werror_flag" ||
1668	 test ! -s conftest.err
1669       } && test -s conftest.$ac_objext; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675	ac_retval=1
1676fi
1677  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_cxx_try_compile
1681
1682# ac_fn_c_try_link LINENO
1683# -----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_link ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  rm -f conftest.$ac_objext conftest$ac_exeext
1689  if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_link") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && {
1705	 test -z "$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       } && test -s conftest$ac_exeext && {
1708	 test "$cross_compiling" = yes ||
1709	 $as_test_x conftest$ac_exeext
1710       }; then :
1711  ac_retval=0
1712else
1713  $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716	ac_retval=1
1717fi
1718  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720  # interfere with the next link command; also delete a directory that is
1721  # left behind by Apple's compiler.  We do this before executing the actions.
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724  as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_link
1727
1728# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1729# -------------------------------------------------------
1730# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1731# the include files in INCLUDES and setting the cache variable VAR
1732# accordingly.
1733ac_fn_c_check_header_mongrel ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
1739if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1740  $as_echo_n "(cached) " >&6
1741fi
1742eval ac_res=\$$3
1743	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744$as_echo "$ac_res" >&6; }
1745else
1746  # Is the header compilable?
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1748$as_echo_n "checking $2 usability... " >&6; }
1749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751$4
1752#include <$2>
1753_ACEOF
1754if ac_fn_c_try_compile "$LINENO"; then :
1755  ac_header_compiler=yes
1756else
1757  ac_header_compiler=no
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1761$as_echo "$ac_header_compiler" >&6; }
1762
1763# Is the header present?
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1765$as_echo_n "checking $2 presence... " >&6; }
1766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768#include <$2>
1769_ACEOF
1770if ac_fn_c_try_cpp "$LINENO"; then :
1771  ac_header_preproc=yes
1772else
1773  ac_header_preproc=no
1774fi
1775rm -f conftest.err conftest.$ac_ext
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1777$as_echo "$ac_header_preproc" >&6; }
1778
1779# So?  What about this header?
1780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1781  yes:no: )
1782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1783$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1785$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1786    ;;
1787  no:yes:* )
1788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1789$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1791$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1792    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1793$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1795$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1796    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798( cat <<\_ASBOX
1799## --------------------------------------------------- ##
1800## Report this to valgrind-users@lists.sourceforge.net ##
1801## --------------------------------------------------- ##
1802_ASBOX
1803     ) | sed "s/^/$as_me: WARNING:     /" >&2
1804    ;;
1805esac
1806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809  $as_echo_n "(cached) " >&6
1810else
1811  eval "$3=\$ac_header_compiler"
1812fi
1813eval ac_res=\$$3
1814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816fi
1817  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819} # ac_fn_c_check_header_mongrel
1820
1821# ac_fn_c_try_run LINENO
1822# ----------------------
1823# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824# that executables *can* be run.
1825ac_fn_c_try_run ()
1826{
1827  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828  if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831  *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835  (eval "$ac_link") 2>&5
1836  ac_status=$?
1837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839  { { case "(($ac_try" in
1840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841  *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845  (eval "$ac_try") 2>&5
1846  ac_status=$?
1847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848  test $ac_status = 0; }; }; then :
1849  ac_retval=0
1850else
1851  $as_echo "$as_me: program exited with status $ac_status" >&5
1852       $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855       ac_retval=$ac_status
1856fi
1857  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859  as_fn_set_status $ac_retval
1860
1861} # ac_fn_c_try_run
1862
1863# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864# -------------------------------------------------------
1865# Tests whether HEADER exists and can be compiled using the include files in
1866# INCLUDES, setting the cache variable VAR accordingly.
1867ac_fn_c_check_header_compile ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$4
1878#include <$2>
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881  eval "$3=yes"
1882else
1883  eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892} # ac_fn_c_check_header_compile
1893
1894# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1895# ----------------------------------------------------
1896# Tries to find if the field MEMBER exists in type AGGR, after including
1897# INCLUDES, setting cache variable VAR accordingly.
1898ac_fn_c_check_member ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1902$as_echo_n "checking for $2.$3... " >&6; }
1903if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1904  $as_echo_n "(cached) " >&6
1905else
1906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h.  */
1908$5
1909int
1910main ()
1911{
1912static $2 ac_aggr;
1913if (ac_aggr.$3)
1914return 0;
1915  ;
1916  return 0;
1917}
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920  eval "$4=yes"
1921else
1922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h.  */
1924$5
1925int
1926main ()
1927{
1928static $2 ac_aggr;
1929if (sizeof ac_aggr.$3)
1930return 0;
1931  ;
1932  return 0;
1933}
1934_ACEOF
1935if ac_fn_c_try_compile "$LINENO"; then :
1936  eval "$4=yes"
1937else
1938  eval "$4=no"
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943fi
1944eval ac_res=\$$4
1945	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946$as_echo "$ac_res" >&6; }
1947  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948
1949} # ac_fn_c_check_member
1950
1951# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1952# -------------------------------------------
1953# Tests whether TYPE exists after having included INCLUDES, setting cache
1954# variable VAR accordingly.
1955ac_fn_c_check_type ()
1956{
1957  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961  $as_echo_n "(cached) " >&6
1962else
1963  eval "$3=no"
1964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966$4
1967int
1968main ()
1969{
1970if (sizeof ($2))
1971	 return 0;
1972  ;
1973  return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980int
1981main ()
1982{
1983if (sizeof (($2)))
1984	    return 0;
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990
1991else
1992  eval "$3=yes"
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
2001  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002
2003} # ac_fn_c_check_type
2004
2005# ac_fn_c_check_func LINENO FUNC VAR
2006# ----------------------------------
2007# Tests whether FUNC exists, setting the cache variable VAR accordingly
2008ac_fn_c_check_func ()
2009{
2010  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012$as_echo_n "checking for $2... " >&6; }
2013if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014  $as_echo_n "(cached) " >&6
2015else
2016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2019   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2020#define $2 innocuous_$2
2021
2022/* System header to define __stub macros and hopefully few prototypes,
2023    which can conflict with char $2 (); below.
2024    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2025    <limits.h> exists even on freestanding compilers.  */
2026
2027#ifdef __STDC__
2028# include <limits.h>
2029#else
2030# include <assert.h>
2031#endif
2032
2033#undef $2
2034
2035/* Override any GCC internal prototype to avoid an error.
2036   Use char because int might match the return type of a GCC
2037   builtin and then its argument prototype would still apply.  */
2038#ifdef __cplusplus
2039extern "C"
2040#endif
2041char $2 ();
2042/* The GNU C library defines this for functions which it implements
2043    to always fail with ENOSYS.  Some functions are actually named
2044    something starting with __ and the normal name is an alias.  */
2045#if defined __stub_$2 || defined __stub___$2
2046choke me
2047#endif
2048
2049int
2050main ()
2051{
2052return $2 ();
2053  ;
2054  return 0;
2055}
2056_ACEOF
2057if ac_fn_c_try_link "$LINENO"; then :
2058  eval "$3=yes"
2059else
2060  eval "$3=no"
2061fi
2062rm -f core conftest.err conftest.$ac_objext \
2063    conftest$ac_exeext conftest.$ac_ext
2064fi
2065eval ac_res=\$$3
2066	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070} # ac_fn_c_check_func
2071
2072# ac_fn_cxx_try_link LINENO
2073# -------------------------
2074# Try to link conftest.$ac_ext, and return whether this succeeded.
2075ac_fn_cxx_try_link ()
2076{
2077  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078  rm -f conftest.$ac_objext conftest$ac_exeext
2079  if { { ac_try="$ac_link"
2080case "(($ac_try" in
2081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082  *) ac_try_echo=$ac_try;;
2083esac
2084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085$as_echo "$ac_try_echo"; } >&5
2086  (eval "$ac_link") 2>conftest.err
2087  ac_status=$?
2088  if test -s conftest.err; then
2089    grep -v '^ *+' conftest.err >conftest.er1
2090    cat conftest.er1 >&5
2091    mv -f conftest.er1 conftest.err
2092  fi
2093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094  test $ac_status = 0; } && {
2095	 test -z "$ac_cxx_werror_flag" ||
2096	 test ! -s conftest.err
2097       } && test -s conftest$ac_exeext && {
2098	 test "$cross_compiling" = yes ||
2099	 $as_test_x conftest$ac_exeext
2100       }; then :
2101  ac_retval=0
2102else
2103  $as_echo "$as_me: failed program was:" >&5
2104sed 's/^/| /' conftest.$ac_ext >&5
2105
2106	ac_retval=1
2107fi
2108  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2109  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2110  # interfere with the next link command; also delete a directory that is
2111  # left behind by Apple's compiler.  We do this before executing the actions.
2112  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2113  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114  as_fn_set_status $ac_retval
2115
2116} # ac_fn_cxx_try_link
2117cat >config.log <<_ACEOF
2118This file contains any messages produced by compilers while
2119running configure, to aid debugging if configure makes a mistake.
2120
2121It was created by Valgrind $as_me 3.6.1, which was
2122generated by GNU Autoconf 2.65.  Invocation command line was
2123
2124  $ $0 $@
2125
2126_ACEOF
2127exec 5>>config.log
2128{
2129cat <<_ASUNAME
2130## --------- ##
2131## Platform. ##
2132## --------- ##
2133
2134hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138uname -v = `(uname -v) 2>/dev/null || echo unknown`
2139
2140/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2142
2143/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2144/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2145/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2147/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2148/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2149/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2150
2151_ASUNAME
2152
2153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154for as_dir in $PATH
2155do
2156  IFS=$as_save_IFS
2157  test -z "$as_dir" && as_dir=.
2158    $as_echo "PATH: $as_dir"
2159  done
2160IFS=$as_save_IFS
2161
2162} >&5
2163
2164cat >&5 <<_ACEOF
2165
2166
2167## ----------- ##
2168## Core tests. ##
2169## ----------- ##
2170
2171_ACEOF
2172
2173
2174# Keep a trace of the command line.
2175# Strip out --no-create and --no-recursion so they do not pile up.
2176# Strip out --silent because we don't want to record it for future runs.
2177# Also quote any args containing shell meta-characters.
2178# Make two passes to allow for proper duplicate-argument suppression.
2179ac_configure_args=
2180ac_configure_args0=
2181ac_configure_args1=
2182ac_must_keep_next=false
2183for ac_pass in 1 2
2184do
2185  for ac_arg
2186  do
2187    case $ac_arg in
2188    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190    | -silent | --silent | --silen | --sile | --sil)
2191      continue ;;
2192    *\'*)
2193      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194    esac
2195    case $ac_pass in
2196    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2197    2)
2198      as_fn_append ac_configure_args1 " '$ac_arg'"
2199      if test $ac_must_keep_next = true; then
2200	ac_must_keep_next=false # Got value, back to normal.
2201      else
2202	case $ac_arg in
2203	  *=* | --config-cache | -C | -disable-* | --disable-* \
2204	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206	  | -with-* | --with-* | -without-* | --without-* | --x)
2207	    case "$ac_configure_args0 " in
2208	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209	    esac
2210	    ;;
2211	  -* ) ac_must_keep_next=true ;;
2212	esac
2213      fi
2214      as_fn_append ac_configure_args " '$ac_arg'"
2215      ;;
2216    esac
2217  done
2218done
2219{ ac_configure_args0=; unset ac_configure_args0;}
2220{ ac_configure_args1=; unset ac_configure_args1;}
2221
2222# When interrupted or exit'd, cleanup temporary files, and complete
2223# config.log.  We remove comments because anyway the quotes in there
2224# would cause problems or look ugly.
2225# WARNING: Use '\'' to represent an apostrophe within the trap.
2226# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227trap 'exit_status=$?
2228  # Save into config.log some information that might help in debugging.
2229  {
2230    echo
2231
2232    cat <<\_ASBOX
2233## ---------------- ##
2234## Cache variables. ##
2235## ---------------- ##
2236_ASBOX
2237    echo
2238    # The following way of writing the cache mishandles newlines in values,
2239(
2240  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2241    eval ac_val=\$$ac_var
2242    case $ac_val in #(
2243    *${as_nl}*)
2244      case $ac_var in #(
2245      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2246$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2247      esac
2248      case $ac_var in #(
2249      _ | IFS | as_nl) ;; #(
2250      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2251      *) { eval $ac_var=; unset $ac_var;} ;;
2252      esac ;;
2253    esac
2254  done
2255  (set) 2>&1 |
2256    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2257    *${as_nl}ac_space=\ *)
2258      sed -n \
2259	"s/'\''/'\''\\\\'\'''\''/g;
2260	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261      ;; #(
2262    *)
2263      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2264      ;;
2265    esac |
2266    sort
2267)
2268    echo
2269
2270    cat <<\_ASBOX
2271## ----------------- ##
2272## Output variables. ##
2273## ----------------- ##
2274_ASBOX
2275    echo
2276    for ac_var in $ac_subst_vars
2277    do
2278      eval ac_val=\$$ac_var
2279      case $ac_val in
2280      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281      esac
2282      $as_echo "$ac_var='\''$ac_val'\''"
2283    done | sort
2284    echo
2285
2286    if test -n "$ac_subst_files"; then
2287      cat <<\_ASBOX
2288## ------------------- ##
2289## File substitutions. ##
2290## ------------------- ##
2291_ASBOX
2292      echo
2293      for ac_var in $ac_subst_files
2294      do
2295	eval ac_val=\$$ac_var
2296	case $ac_val in
2297	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298	esac
2299	$as_echo "$ac_var='\''$ac_val'\''"
2300      done | sort
2301      echo
2302    fi
2303
2304    if test -s confdefs.h; then
2305      cat <<\_ASBOX
2306## ----------- ##
2307## confdefs.h. ##
2308## ----------- ##
2309_ASBOX
2310      echo
2311      cat confdefs.h
2312      echo
2313    fi
2314    test "$ac_signal" != 0 &&
2315      $as_echo "$as_me: caught signal $ac_signal"
2316    $as_echo "$as_me: exit $exit_status"
2317  } >&5
2318  rm -f core *.core core.conftest.* &&
2319    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320    exit $exit_status
2321' 0
2322for ac_signal in 1 2 13 15; do
2323  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2324done
2325ac_signal=0
2326
2327# confdefs.h avoids OS command line length limits that DEFS can exceed.
2328rm -f -r conftest* confdefs.h
2329
2330$as_echo "/* confdefs.h */" > confdefs.h
2331
2332# Predefined preprocessor variables.
2333
2334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_NAME "$PACKAGE_NAME"
2336_ACEOF
2337
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2340_ACEOF
2341
2342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_VERSION "$PACKAGE_VERSION"
2344_ACEOF
2345
2346cat >>confdefs.h <<_ACEOF
2347#define PACKAGE_STRING "$PACKAGE_STRING"
2348_ACEOF
2349
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2352_ACEOF
2353
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_URL "$PACKAGE_URL"
2356_ACEOF
2357
2358
2359# Let the site file select an alternate cache file if it wants to.
2360# Prefer an explicitly selected file to automatically selected ones.
2361ac_site_file1=NONE
2362ac_site_file2=NONE
2363if test -n "$CONFIG_SITE"; then
2364  ac_site_file1=$CONFIG_SITE
2365elif test "x$prefix" != xNONE; then
2366  ac_site_file1=$prefix/share/config.site
2367  ac_site_file2=$prefix/etc/config.site
2368else
2369  ac_site_file1=$ac_default_prefix/share/config.site
2370  ac_site_file2=$ac_default_prefix/etc/config.site
2371fi
2372for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2373do
2374  test "x$ac_site_file" = xNONE && continue
2375  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2376    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2377$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2378    sed 's/^/| /' "$ac_site_file" >&5
2379    . "$ac_site_file"
2380  fi
2381done
2382
2383if test -r "$cache_file"; then
2384  # Some versions of bash will fail to source /dev/null (special files
2385  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2386  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2387    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2388$as_echo "$as_me: loading cache $cache_file" >&6;}
2389    case $cache_file in
2390      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2391      *)                      . "./$cache_file";;
2392    esac
2393  fi
2394else
2395  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2396$as_echo "$as_me: creating cache $cache_file" >&6;}
2397  >$cache_file
2398fi
2399
2400as_fn_append ac_header_list " stdlib.h"
2401as_fn_append ac_header_list " unistd.h"
2402as_fn_append ac_header_list " sys/param.h"
2403# Check that the precious variables saved in the cache have kept the same
2404# value.
2405ac_cache_corrupted=false
2406for ac_var in $ac_precious_vars; do
2407  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2408  eval ac_new_set=\$ac_env_${ac_var}_set
2409  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2410  eval ac_new_val=\$ac_env_${ac_var}_value
2411  case $ac_old_set,$ac_new_set in
2412    set,)
2413      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2414$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2415      ac_cache_corrupted=: ;;
2416    ,set)
2417      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2418$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2419      ac_cache_corrupted=: ;;
2420    ,);;
2421    *)
2422      if test "x$ac_old_val" != "x$ac_new_val"; then
2423	# differences in whitespace do not lead to failure.
2424	ac_old_val_w=`echo x $ac_old_val`
2425	ac_new_val_w=`echo x $ac_new_val`
2426	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2427	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2428$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2429	  ac_cache_corrupted=:
2430	else
2431	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2432$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2433	  eval $ac_var=\$ac_old_val
2434	fi
2435	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2436$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2437	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2438$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2439      fi;;
2440  esac
2441  # Pass precious variables to config.status.
2442  if test "$ac_new_set" = set; then
2443    case $ac_new_val in
2444    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2445    *) ac_arg=$ac_var=$ac_new_val ;;
2446    esac
2447    case " $ac_configure_args " in
2448      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2449      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2450    esac
2451  fi
2452done
2453if $ac_cache_corrupted; then
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2457$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2458  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2459fi
2460## -------------------- ##
2461## Main body of script. ##
2462## -------------------- ##
2463
2464ac_ext=c
2465ac_cpp='$CPP $CPPFLAGS'
2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470
2471
2472ac_config_headers="$ac_config_headers config.h"
2473
2474am__api_version='1.11'
2475
2476ac_aux_dir=
2477for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2478  for ac_t in install-sh install.sh shtool; do
2479    if test -f "$ac_dir/$ac_t"; then
2480      ac_aux_dir=$ac_dir
2481      ac_install_sh="$ac_aux_dir/$ac_t -c"
2482      break 2
2483    fi
2484  done
2485done
2486if test -z "$ac_aux_dir"; then
2487  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2488fi
2489
2490# These three variables are undocumented and unsupported,
2491# and are intended to be withdrawn in a future Autoconf release.
2492# They can cause serious problems if a builder's source tree is in a directory
2493# whose full name contains unusual characters.
2494ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2495ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2496ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2497
2498
2499# Find a good install program.  We prefer a C program (faster),
2500# so one script is as good as another.  But avoid the broken or
2501# incompatible versions:
2502# SysV /etc/install, /usr/sbin/install
2503# SunOS /usr/etc/install
2504# IRIX /sbin/install
2505# AIX /bin/install
2506# AmigaOS /C/install, which installs bootblocks on floppy discs
2507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510# OS/2's system install, which has a completely different semantic
2511# ./install, which can be erroneously created by make from ./install.sh.
2512# Reject install programs that cannot install multiple files.
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514$as_echo_n "checking for a BSD-compatible install... " >&6; }
2515if test -z "$INSTALL"; then
2516if test "${ac_cv_path_install+set}" = set; then :
2517  $as_echo_n "(cached) " >&6
2518else
2519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522  IFS=$as_save_IFS
2523  test -z "$as_dir" && as_dir=.
2524    # Account for people who put trailing slashes in PATH elements.
2525case $as_dir/ in #((
2526  ./ | .// | /[cC]/* | \
2527  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2529  /usr/ucb/* ) ;;
2530  *)
2531    # OSF1 and SCO ODT 3.0 have their own names for install.
2532    # Don't use installbsd from OSF since it installs stuff as root
2533    # by default.
2534    for ac_prog in ginstall scoinst install; do
2535      for ac_exec_ext in '' $ac_executable_extensions; do
2536	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2537	  if test $ac_prog = install &&
2538	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539	    # AIX install.  It has an incompatible calling convention.
2540	    :
2541	  elif test $ac_prog = install &&
2542	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543	    # program-specific install script used by HP pwplus--don't use.
2544	    :
2545	  else
2546	    rm -rf conftest.one conftest.two conftest.dir
2547	    echo one > conftest.one
2548	    echo two > conftest.two
2549	    mkdir conftest.dir
2550	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551	      test -s conftest.one && test -s conftest.two &&
2552	      test -s conftest.dir/conftest.one &&
2553	      test -s conftest.dir/conftest.two
2554	    then
2555	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556	      break 3
2557	    fi
2558	  fi
2559	fi
2560      done
2561    done
2562    ;;
2563esac
2564
2565  done
2566IFS=$as_save_IFS
2567
2568rm -rf conftest.one conftest.two conftest.dir
2569
2570fi
2571  if test "${ac_cv_path_install+set}" = set; then
2572    INSTALL=$ac_cv_path_install
2573  else
2574    # As a last resort, use the slow shell script.  Don't cache a
2575    # value for INSTALL within a source directory, because that will
2576    # break other packages using the cache if that directory is
2577    # removed, or if the value is a relative name.
2578    INSTALL=$ac_install_sh
2579  fi
2580fi
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582$as_echo "$INSTALL" >&6; }
2583
2584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585# It thinks the first close brace ends the variable substitution.
2586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
2588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589
2590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2593$as_echo_n "checking whether build environment is sane... " >&6; }
2594# Just in case
2595sleep 1
2596echo timestamp > conftest.file
2597# Reject unsafe characters in $srcdir or the absolute working directory
2598# name.  Accept space and tab only in the latter.
2599am_lf='
2600'
2601case `pwd` in
2602  *[\\\"\#\$\&\'\`$am_lf]*)
2603    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2604esac
2605case $srcdir in
2606  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2607    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2608esac
2609
2610# Do `set' in a subshell so we don't clobber the current shell's
2611# arguments.  Must try -L first in case configure is actually a
2612# symlink; some systems play weird games with the mod time of symlinks
2613# (eg FreeBSD returns the mod time of the symlink's containing
2614# directory).
2615if (
2616   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2617   if test "$*" = "X"; then
2618      # -L didn't work.
2619      set X `ls -t "$srcdir/configure" conftest.file`
2620   fi
2621   rm -f conftest.file
2622   if test "$*" != "X $srcdir/configure conftest.file" \
2623      && test "$*" != "X conftest.file $srcdir/configure"; then
2624
2625      # If neither matched, then we have a broken ls.  This can happen
2626      # if, for instance, CONFIG_SHELL is bash and it inherits a
2627      # broken ls alias from the environment.  This has actually
2628      # happened.  Such a system could not be considered "sane".
2629      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2630alias in your environment" "$LINENO" 5
2631   fi
2632
2633   test "$2" = conftest.file
2634   )
2635then
2636   # Ok.
2637   :
2638else
2639   as_fn_error "newly created file is older than distributed files!
2640Check your system clock" "$LINENO" 5
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643$as_echo "yes" >&6; }
2644test "$program_prefix" != NONE &&
2645  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2646# Use a double $ so make ignores it.
2647test "$program_suffix" != NONE &&
2648  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2649# Double any \ or $.
2650# By default was `s,x,x', remove it if useless.
2651ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2652program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2653
2654# expand $ac_aux_dir to an absolute path
2655am_aux_dir=`cd $ac_aux_dir && pwd`
2656
2657if test x"${MISSING+set}" != xset; then
2658  case $am_aux_dir in
2659  *\ * | *\	*)
2660    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2661  *)
2662    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2663  esac
2664fi
2665# Use eval to expand $SHELL
2666if eval "$MISSING --run true"; then
2667  am_missing_run="$MISSING --run "
2668else
2669  am_missing_run=
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2671$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2672fi
2673
2674if test x"${install_sh}" != xset; then
2675  case $am_aux_dir in
2676  *\ * | *\	*)
2677    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2678  *)
2679    install_sh="\${SHELL} $am_aux_dir/install-sh"
2680  esac
2681fi
2682
2683# Installed binaries are usually stripped using `strip' when the user
2684# run `make install-strip'.  However `strip' might not be the right
2685# tool to use in cross-compilation environments, therefore Automake
2686# will honor the `STRIP' environment variable to overrule this program.
2687if test "$cross_compiling" != no; then
2688  if test -n "$ac_tool_prefix"; then
2689  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2690set dummy ${ac_tool_prefix}strip; ac_word=$2
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
2693if test "${ac_cv_prog_STRIP+set}" = set; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  if test -n "$STRIP"; then
2697  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702  IFS=$as_save_IFS
2703  test -z "$as_dir" && as_dir=.
2704    for ac_exec_ext in '' $ac_executable_extensions; do
2705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708    break 2
2709  fi
2710done
2711  done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716STRIP=$ac_cv_prog_STRIP
2717if test -n "$STRIP"; then
2718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2719$as_echo "$STRIP" >&6; }
2720else
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722$as_echo "no" >&6; }
2723fi
2724
2725
2726fi
2727if test -z "$ac_cv_prog_STRIP"; then
2728  ac_ct_STRIP=$STRIP
2729  # Extract the first word of "strip", so it can be a program name with args.
2730set dummy strip; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$ac_ct_STRIP"; then
2737  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746    ac_cv_prog_ac_ct_STRIP="strip"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2757if test -n "$ac_ct_STRIP"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2759$as_echo "$ac_ct_STRIP" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765  if test "x$ac_ct_STRIP" = x; then
2766    STRIP=":"
2767  else
2768    case $cross_compiling:$ac_tool_warned in
2769yes:)
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2772ac_tool_warned=yes ;;
2773esac
2774    STRIP=$ac_ct_STRIP
2775  fi
2776else
2777  STRIP="$ac_cv_prog_STRIP"
2778fi
2779
2780fi
2781INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2782
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2784$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2785if test -z "$MKDIR_P"; then
2786  if test "${ac_cv_path_mkdir+set}" = set; then :
2787  $as_echo_n "(cached) " >&6
2788else
2789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2791do
2792  IFS=$as_save_IFS
2793  test -z "$as_dir" && as_dir=.
2794    for ac_prog in mkdir gmkdir; do
2795	 for ac_exec_ext in '' $ac_executable_extensions; do
2796	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2797	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2798	     'mkdir (GNU coreutils) '* | \
2799	     'mkdir (coreutils) '* | \
2800	     'mkdir (fileutils) '4.1*)
2801	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2802	       break 3;;
2803	   esac
2804	 done
2805       done
2806  done
2807IFS=$as_save_IFS
2808
2809fi
2810
2811  test -d ./--version && rmdir ./--version
2812  if test "${ac_cv_path_mkdir+set}" = set; then
2813    MKDIR_P="$ac_cv_path_mkdir -p"
2814  else
2815    # As a last resort, use the slow shell script.  Don't cache a
2816    # value for MKDIR_P within a source directory, because that will
2817    # break other packages using the cache if that directory is
2818    # removed, or if the value is a relative name.
2819    MKDIR_P="$ac_install_sh -d"
2820  fi
2821fi
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2823$as_echo "$MKDIR_P" >&6; }
2824
2825mkdir_p="$MKDIR_P"
2826case $mkdir_p in
2827  [\\/$]* | ?:[\\/]*) ;;
2828  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2829esac
2830
2831for ac_prog in gawk mawk nawk awk
2832do
2833  # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if test "${ac_cv_prog_AWK+set}" = set; then :
2838  $as_echo_n "(cached) " >&6
2839else
2840  if test -n "$AWK"; then
2841  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848    for ac_exec_ext in '' $ac_executable_extensions; do
2849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850    ac_cv_prog_AWK="$ac_prog"
2851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855  done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860AWK=$ac_cv_prog_AWK
2861if test -n "$AWK"; then
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2863$as_echo "$AWK" >&6; }
2864else
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
2870  test -n "$AWK" && break
2871done
2872
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2874$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2875set x ${MAKE-make}
2876ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2877if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2878  $as_echo_n "(cached) " >&6
2879else
2880  cat >conftest.make <<\_ACEOF
2881SHELL = /bin/sh
2882all:
2883	@echo '@@@%%%=$(MAKE)=@@@%%%'
2884_ACEOF
2885# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2886case `${MAKE-make} -f conftest.make 2>/dev/null` in
2887  *@@@%%%=?*=@@@%%%*)
2888    eval ac_cv_prog_make_${ac_make}_set=yes;;
2889  *)
2890    eval ac_cv_prog_make_${ac_make}_set=no;;
2891esac
2892rm -f conftest.make
2893fi
2894if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896$as_echo "yes" >&6; }
2897  SET_MAKE=
2898else
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901  SET_MAKE="MAKE=${MAKE-make}"
2902fi
2903
2904rm -rf .tst 2>/dev/null
2905mkdir .tst 2>/dev/null
2906if test -d .tst; then
2907  am__leading_dot=.
2908else
2909  am__leading_dot=_
2910fi
2911rmdir .tst 2>/dev/null
2912
2913if test "`cd $srcdir && pwd`" != "`pwd`"; then
2914  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2915  # is not polluted with repeated "-I."
2916  am__isrc=' -I$(srcdir)'
2917  # test to see if srcdir already configured
2918  if test -f $srcdir/config.status; then
2919    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2920  fi
2921fi
2922
2923# test whether we have cygpath
2924if test -z "$CYGPATH_W"; then
2925  if (cygpath --version) >/dev/null 2>/dev/null; then
2926    CYGPATH_W='cygpath -w'
2927  else
2928    CYGPATH_W=echo
2929  fi
2930fi
2931
2932
2933# Define the identity of the package.
2934 PACKAGE='valgrind'
2935 VERSION='3.6.1'
2936
2937
2938cat >>confdefs.h <<_ACEOF
2939#define PACKAGE "$PACKAGE"
2940_ACEOF
2941
2942
2943cat >>confdefs.h <<_ACEOF
2944#define VERSION "$VERSION"
2945_ACEOF
2946
2947# Some tools Automake needs.
2948
2949ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2950
2951
2952AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2953
2954
2955AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2956
2957
2958AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2959
2960
2961MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2962
2963# We need awk for the "check" target.  The system "awk" is bad on
2964# some platforms.
2965# Always define AMTAR for backward compatibility.
2966
2967AMTAR=${AMTAR-"${am_missing_run}tar"}
2968
2969am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2970
2971
2972
2973
2974
2975
2976
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2978$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2979    # Check whether --enable-maintainer-mode was given.
2980if test "${enable_maintainer_mode+set}" = set; then :
2981  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2982else
2983  USE_MAINTAINER_MODE=no
2984fi
2985
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2987$as_echo "$USE_MAINTAINER_MODE" >&6; }
2988   if test $USE_MAINTAINER_MODE = yes; then
2989  MAINTAINER_MODE_TRUE=
2990  MAINTAINER_MODE_FALSE='#'
2991else
2992  MAINTAINER_MODE_TRUE='#'
2993  MAINTAINER_MODE_FALSE=
2994fi
2995
2996  MAINT=$MAINTAINER_MODE_TRUE
2997
2998
2999
3000#----------------------------------------------------------------------------
3001# Checks for various programs.
3002#----------------------------------------------------------------------------
3003CFLAGS="-Wno-long-long $CFLAGS"
3004
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3006$as_echo_n "checking whether ln -s works... " >&6; }
3007LN_S=$as_ln_s
3008if test "$LN_S" = "ln -s"; then
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3010$as_echo "yes" >&6; }
3011else
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3013$as_echo "no, using $LN_S" >&6; }
3014fi
3015
3016ac_ext=c
3017ac_cpp='$CPP $CPPFLAGS'
3018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021if test -n "$ac_tool_prefix"; then
3022  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3023set dummy ${ac_tool_prefix}gcc; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if test "${ac_cv_prog_CC+set}" = set; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$CC"; then
3030  ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  test -z "$as_dir" && as_dir=.
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049CC=$ac_cv_prog_CC
3050if test -n "$CC"; then
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052$as_echo "$CC" >&6; }
3053else
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
3056fi
3057
3058
3059fi
3060if test -z "$ac_cv_prog_CC"; then
3061  ac_ct_CC=$CC
3062  # Extract the first word of "gcc", so it can be a program name with args.
3063set dummy gcc; ac_word=$2
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  if test -n "$ac_ct_CC"; then
3070  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077    for ac_exec_ext in '' $ac_executable_extensions; do
3078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079    ac_cv_prog_ac_ct_CC="gcc"
3080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084  done
3085IFS=$as_save_IFS
3086
3087fi
3088fi
3089ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090if test -n "$ac_ct_CC"; then
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3092$as_echo "$ac_ct_CC" >&6; }
3093else
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095$as_echo "no" >&6; }
3096fi
3097
3098  if test "x$ac_ct_CC" = x; then
3099    CC=""
3100  else
3101    case $cross_compiling:$ac_tool_warned in
3102yes:)
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105ac_tool_warned=yes ;;
3106esac
3107    CC=$ac_ct_CC
3108  fi
3109else
3110  CC="$ac_cv_prog_CC"
3111fi
3112
3113if test -z "$CC"; then
3114          if test -n "$ac_tool_prefix"; then
3115    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3116set dummy ${ac_tool_prefix}cc; ac_word=$2
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118$as_echo_n "checking for $ac_word... " >&6; }
3119if test "${ac_cv_prog_CC+set}" = set; then :
3120  $as_echo_n "(cached) " >&6
3121else
3122  if test -n "$CC"; then
3123  ac_cv_prog_CC="$CC" # Let the user override the test.
3124else
3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128  IFS=$as_save_IFS
3129  test -z "$as_dir" && as_dir=.
3130    for ac_exec_ext in '' $ac_executable_extensions; do
3131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132    ac_cv_prog_CC="${ac_tool_prefix}cc"
3133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134    break 2
3135  fi
3136done
3137  done
3138IFS=$as_save_IFS
3139
3140fi
3141fi
3142CC=$ac_cv_prog_CC
3143if test -n "$CC"; then
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145$as_echo "$CC" >&6; }
3146else
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148$as_echo "no" >&6; }
3149fi
3150
3151
3152  fi
3153fi
3154if test -z "$CC"; then
3155  # Extract the first word of "cc", so it can be a program name with args.
3156set dummy cc; ac_word=$2
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158$as_echo_n "checking for $ac_word... " >&6; }
3159if test "${ac_cv_prog_CC+set}" = set; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  if test -n "$CC"; then
3163  ac_cv_prog_CC="$CC" # Let the user override the test.
3164else
3165  ac_prog_rejected=no
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3174       ac_prog_rejected=yes
3175       continue
3176     fi
3177    ac_cv_prog_CC="cc"
3178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182  done
3183IFS=$as_save_IFS
3184
3185if test $ac_prog_rejected = yes; then
3186  # We found a bogon in the path, so make sure we never use it.
3187  set dummy $ac_cv_prog_CC
3188  shift
3189  if test $# != 0; then
3190    # We chose a different compiler from the bogus one.
3191    # However, it has the same basename, so the bogon will be chosen
3192    # first if we set CC to just the basename; use the full file name.
3193    shift
3194    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3195  fi
3196fi
3197fi
3198fi
3199CC=$ac_cv_prog_CC
3200if test -n "$CC"; then
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202$as_echo "$CC" >&6; }
3203else
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205$as_echo "no" >&6; }
3206fi
3207
3208
3209fi
3210if test -z "$CC"; then
3211  if test -n "$ac_tool_prefix"; then
3212  for ac_prog in cl.exe
3213  do
3214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if test "${ac_cv_prog_CC+set}" = set; then :
3219  $as_echo_n "(cached) " >&6
3220else
3221  if test -n "$CC"; then
3222  ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  test -z "$as_dir" && as_dir=.
3229    for ac_exec_ext in '' $ac_executable_extensions; do
3230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233    break 2
3234  fi
3235done
3236  done
3237IFS=$as_save_IFS
3238
3239fi
3240fi
3241CC=$ac_cv_prog_CC
3242if test -n "$CC"; then
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244$as_echo "$CC" >&6; }
3245else
3246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248fi
3249
3250
3251    test -n "$CC" && break
3252  done
3253fi
3254if test -z "$CC"; then
3255  ac_ct_CC=$CC
3256  for ac_prog in cl.exe
3257do
3258  # Extract the first word of "$ac_prog", so it can be a program name with args.
3259set dummy $ac_prog; ac_word=$2
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261$as_echo_n "checking for $ac_word... " >&6; }
3262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  if test -n "$ac_ct_CC"; then
3266  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267else
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273    for ac_exec_ext in '' $ac_executable_extensions; do
3274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275    ac_cv_prog_ac_ct_CC="$ac_prog"
3276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277    break 2
3278  fi
3279done
3280  done
3281IFS=$as_save_IFS
3282
3283fi
3284fi
3285ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286if test -n "$ac_ct_CC"; then
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3288$as_echo "$ac_ct_CC" >&6; }
3289else
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292fi
3293
3294
3295  test -n "$ac_ct_CC" && break
3296done
3297
3298  if test "x$ac_ct_CC" = x; then
3299    CC=""
3300  else
3301    case $cross_compiling:$ac_tool_warned in
3302yes:)
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3305ac_tool_warned=yes ;;
3306esac
3307    CC=$ac_ct_CC
3308  fi
3309fi
3310
3311fi
3312
3313
3314test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316as_fn_error "no acceptable C compiler found in \$PATH
3317See \`config.log' for more details." "$LINENO" 5; }
3318
3319# Provide some information about the compiler.
3320$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3321set X $ac_compile
3322ac_compiler=$2
3323for ac_option in --version -v -V -qversion; do
3324  { { ac_try="$ac_compiler $ac_option >&5"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330$as_echo "$ac_try_echo"; } >&5
3331  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3332  ac_status=$?
3333  if test -s conftest.err; then
3334    sed '10a\
3335... rest of stderr output deleted ...
3336         10q' conftest.err >conftest.er1
3337    cat conftest.er1 >&5
3338  fi
3339  rm -f conftest.er1 conftest.err
3340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341  test $ac_status = 0; }
3342done
3343
3344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h.  */
3346
3347int
3348main ()
3349{
3350
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355ac_clean_files_save=$ac_clean_files
3356ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3357# Try to create an executable without -o first, disregard a.out.
3358# It will help us diagnose broken compilers, and finding out an intuition
3359# of exeext.
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3361$as_echo_n "checking whether the C compiler works... " >&6; }
3362ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3363
3364# The possible output files:
3365ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3366
3367ac_rmfiles=
3368for ac_file in $ac_files
3369do
3370  case $ac_file in
3371    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3373  esac
3374done
3375rm -f $ac_rmfiles
3376
3377if { { ac_try="$ac_link_default"
3378case "(($ac_try" in
3379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380  *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
3384  (eval "$ac_link_default") 2>&5
3385  ac_status=$?
3386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387  test $ac_status = 0; }; then :
3388  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3389# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3390# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3391# so that the user can short-circuit this test for compilers unknown to
3392# Autoconf.
3393for ac_file in $ac_files ''
3394do
3395  test -f "$ac_file" || continue
3396  case $ac_file in
3397    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3398	;;
3399    [ab].out )
3400	# We found the default executable, but exeext='' is most
3401	# certainly right.
3402	break;;
3403    *.* )
3404	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3405	then :; else
3406	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407	fi
3408	# We set ac_cv_exeext here because the later test for it is not
3409	# safe: cross compilers may not add the suffix if given an `-o'
3410	# argument, so we may need to know it at that point already.
3411	# Even if this section looks crufty: it has the advantage of
3412	# actually working.
3413	break;;
3414    * )
3415	break;;
3416  esac
3417done
3418test "$ac_cv_exeext" = no && ac_cv_exeext=
3419
3420else
3421  ac_file=''
3422fi
3423if test -z "$ac_file"; then :
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426$as_echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431{ as_fn_set_status 77
3432as_fn_error "C compiler cannot create executables
3433See \`config.log' for more details." "$LINENO" 5; }; }
3434else
3435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436$as_echo "yes" >&6; }
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3439$as_echo_n "checking for C compiler default output file name... " >&6; }
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3441$as_echo "$ac_file" >&6; }
3442ac_exeext=$ac_cv_exeext
3443
3444rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3445ac_clean_files=$ac_clean_files_save
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3447$as_echo_n "checking for suffix of executables... " >&6; }
3448if { { ac_try="$ac_link"
3449case "(($ac_try" in
3450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451  *) ac_try_echo=$ac_try;;
3452esac
3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454$as_echo "$ac_try_echo"; } >&5
3455  (eval "$ac_link") 2>&5
3456  ac_status=$?
3457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458  test $ac_status = 0; }; then :
3459  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3460# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3461# work properly (i.e., refer to `conftest.exe'), while it won't with
3462# `rm'.
3463for ac_file in conftest.exe conftest conftest.*; do
3464  test -f "$ac_file" || continue
3465  case $ac_file in
3466    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3467    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3468	  break;;
3469    * ) break;;
3470  esac
3471done
3472else
3473  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475as_fn_error "cannot compute suffix of executables: cannot compile and link
3476See \`config.log' for more details." "$LINENO" 5; }
3477fi
3478rm -f conftest conftest$ac_cv_exeext
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3480$as_echo "$ac_cv_exeext" >&6; }
3481
3482rm -f conftest.$ac_ext
3483EXEEXT=$ac_cv_exeext
3484ac_exeext=$EXEEXT
3485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487#include <stdio.h>
3488int
3489main ()
3490{
3491FILE *f = fopen ("conftest.out", "w");
3492 return ferror (f) || fclose (f) != 0;
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498ac_clean_files="$ac_clean_files conftest.out"
3499# Check that the compiler produces executables we can run.  If not, either
3500# the compiler is broken, or we cross compile.
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3502$as_echo_n "checking whether we are cross compiling... " >&6; }
3503if test "$cross_compiling" != yes; then
3504  { { ac_try="$ac_link"
3505case "(($ac_try" in
3506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507  *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510$as_echo "$ac_try_echo"; } >&5
3511  (eval "$ac_link") 2>&5
3512  ac_status=$?
3513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514  test $ac_status = 0; }
3515  if { ac_try='./conftest$ac_cv_exeext'
3516  { { case "(($ac_try" in
3517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518  *) ac_try_echo=$ac_try;;
3519esac
3520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521$as_echo "$ac_try_echo"; } >&5
3522  (eval "$ac_try") 2>&5
3523  ac_status=$?
3524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525  test $ac_status = 0; }; }; then
3526    cross_compiling=no
3527  else
3528    if test "$cross_compiling" = maybe; then
3529	cross_compiling=yes
3530    else
3531	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error "cannot run C compiled programs.
3534If you meant to cross compile, use \`--host'.
3535See \`config.log' for more details." "$LINENO" 5; }
3536    fi
3537  fi
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3540$as_echo "$cross_compiling" >&6; }
3541
3542rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3543ac_clean_files=$ac_clean_files_save
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3545$as_echo_n "checking for suffix of object files... " >&6; }
3546if test "${ac_cv_objext+set}" = set; then :
3547  $as_echo_n "(cached) " >&6
3548else
3549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560rm -f conftest.o conftest.obj
3561if { { ac_try="$ac_compile"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568  (eval "$ac_compile") 2>&5
3569  ac_status=$?
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }; then :
3572  for ac_file in conftest.o conftest.obj conftest.*; do
3573  test -f "$ac_file" || continue;
3574  case $ac_file in
3575    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3576    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3577       break;;
3578  esac
3579done
3580else
3581  $as_echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586as_fn_error "cannot compute suffix of object files: cannot compile
3587See \`config.log' for more details." "$LINENO" 5; }
3588fi
3589rm -f conftest.$ac_cv_objext conftest.$ac_ext
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3592$as_echo "$ac_cv_objext" >&6; }
3593OBJEXT=$ac_cv_objext
3594ac_objext=$OBJEXT
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3596$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3597if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3598  $as_echo_n "(cached) " >&6
3599else
3600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h.  */
3602
3603int
3604main ()
3605{
3606#ifndef __GNUC__
3607       choke me
3608#endif
3609
3610  ;
3611  return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"; then :
3615  ac_compiler_gnu=yes
3616else
3617  ac_compiler_gnu=no
3618fi
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3624$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3625if test $ac_compiler_gnu = yes; then
3626  GCC=yes
3627else
3628  GCC=
3629fi
3630ac_test_CFLAGS=${CFLAGS+set}
3631ac_save_CFLAGS=$CFLAGS
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3633$as_echo_n "checking whether $CC accepts -g... " >&6; }
3634if test "${ac_cv_prog_cc_g+set}" = set; then :
3635  $as_echo_n "(cached) " >&6
3636else
3637  ac_save_c_werror_flag=$ac_c_werror_flag
3638   ac_c_werror_flag=yes
3639   ac_cv_prog_cc_g=no
3640   CFLAGS="-g"
3641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643
3644int
3645main ()
3646{
3647
3648  ;
3649  return 0;
3650}
3651_ACEOF
3652if ac_fn_c_try_compile "$LINENO"; then :
3653  ac_cv_prog_cc_g=yes
3654else
3655  CFLAGS=""
3656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h.  */
3658
3659int
3660main ()
3661{
3662
3663  ;
3664  return 0;
3665}
3666_ACEOF
3667if ac_fn_c_try_compile "$LINENO"; then :
3668
3669else
3670  ac_c_werror_flag=$ac_save_c_werror_flag
3671	 CFLAGS="-g"
3672	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h.  */
3674
3675int
3676main ()
3677{
3678
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683if ac_fn_c_try_compile "$LINENO"; then :
3684  ac_cv_prog_cc_g=yes
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687fi
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689fi
3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691   ac_c_werror_flag=$ac_save_c_werror_flag
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3694$as_echo "$ac_cv_prog_cc_g" >&6; }
3695if test "$ac_test_CFLAGS" = set; then
3696  CFLAGS=$ac_save_CFLAGS
3697elif test $ac_cv_prog_cc_g = yes; then
3698  if test "$GCC" = yes; then
3699    CFLAGS="-g -O2"
3700  else
3701    CFLAGS="-g"
3702  fi
3703else
3704  if test "$GCC" = yes; then
3705    CFLAGS="-O2"
3706  else
3707    CFLAGS=
3708  fi
3709fi
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3711$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3712if test "${ac_cv_prog_cc_c89+set}" = set; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  ac_cv_prog_cc_c89=no
3716ac_save_CC=$CC
3717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h.  */
3719#include <stdarg.h>
3720#include <stdio.h>
3721#include <sys/types.h>
3722#include <sys/stat.h>
3723/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3724struct buf { int x; };
3725FILE * (*rcsopen) (struct buf *, struct stat *, int);
3726static char *e (p, i)
3727     char **p;
3728     int i;
3729{
3730  return p[i];
3731}
3732static char *f (char * (*g) (char **, int), char **p, ...)
3733{
3734  char *s;
3735  va_list v;
3736  va_start (v,p);
3737  s = g (p, va_arg (v,int));
3738  va_end (v);
3739  return s;
3740}
3741
3742/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3743   function prototypes and stuff, but not '\xHH' hex character constants.
3744   These don't provoke an error unfortunately, instead are silently treated
3745   as 'x'.  The following induces an error, until -std is added to get
3746   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3747   array size at least.  It's necessary to write '\x00'==0 to get something
3748   that's true only with -std.  */
3749int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3750
3751/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3752   inside strings and character constants.  */
3753#define FOO(x) 'x'
3754int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3755
3756int test (int i, double x);
3757struct s1 {int (*f) (int a);};
3758struct s2 {int (*f) (double a);};
3759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3760int argc;
3761char **argv;
3762int
3763main ()
3764{
3765return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3771	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3772do
3773  CC="$ac_save_CC $ac_arg"
3774  if ac_fn_c_try_compile "$LINENO"; then :
3775  ac_cv_prog_cc_c89=$ac_arg
3776fi
3777rm -f core conftest.err conftest.$ac_objext
3778  test "x$ac_cv_prog_cc_c89" != "xno" && break
3779done
3780rm -f conftest.$ac_ext
3781CC=$ac_save_CC
3782
3783fi
3784# AC_CACHE_VAL
3785case "x$ac_cv_prog_cc_c89" in
3786  x)
3787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3788$as_echo "none needed" >&6; } ;;
3789  xno)
3790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3791$as_echo "unsupported" >&6; } ;;
3792  *)
3793    CC="$CC $ac_cv_prog_cc_c89"
3794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3795$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3796esac
3797if test "x$ac_cv_prog_cc_c89" != xno; then :
3798
3799fi
3800
3801ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806DEPDIR="${am__leading_dot}deps"
3807
3808ac_config_commands="$ac_config_commands depfiles"
3809
3810
3811am_make=${MAKE-make}
3812cat > confinc << 'END'
3813am__doit:
3814	@echo this is the am__doit target
3815.PHONY: am__doit
3816END
3817# If we don't find an include directive, just comment out the code.
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3819$as_echo_n "checking for style of include used by $am_make... " >&6; }
3820am__include="#"
3821am__quote=
3822_am_result=none
3823# First try GNU make style include.
3824echo "include confinc" > confmf
3825# Ignore all kinds of additional output from `make'.
3826case `$am_make -s -f confmf 2> /dev/null` in #(
3827*the\ am__doit\ target*)
3828  am__include=include
3829  am__quote=
3830  _am_result=GNU
3831  ;;
3832esac
3833# Now try BSD make style include.
3834if test "$am__include" = "#"; then
3835   echo '.include "confinc"' > confmf
3836   case `$am_make -s -f confmf 2> /dev/null` in #(
3837   *the\ am__doit\ target*)
3838     am__include=.include
3839     am__quote="\""
3840     _am_result=BSD
3841     ;;
3842   esac
3843fi
3844
3845
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3847$as_echo "$_am_result" >&6; }
3848rm -f confinc confmf
3849
3850# Check whether --enable-dependency-tracking was given.
3851if test "${enable_dependency_tracking+set}" = set; then :
3852  enableval=$enable_dependency_tracking;
3853fi
3854
3855if test "x$enable_dependency_tracking" != xno; then
3856  am_depcomp="$ac_aux_dir/depcomp"
3857  AMDEPBACKSLASH='\'
3858fi
3859 if test "x$enable_dependency_tracking" != xno; then
3860  AMDEP_TRUE=
3861  AMDEP_FALSE='#'
3862else
3863  AMDEP_TRUE='#'
3864  AMDEP_FALSE=
3865fi
3866
3867
3868
3869depcc="$CC"   am_compiler_list=
3870
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3872$as_echo_n "checking dependency style of $depcc... " >&6; }
3873if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3877  # We make a subdir and do the tests there.  Otherwise we can end up
3878  # making bogus files that we don't know about and never remove.  For
3879  # instance it was reported that on HP-UX the gcc test will end up
3880  # making a dummy file named `D' -- because `-MD' means `put the output
3881  # in D'.
3882  mkdir conftest.dir
3883  # Copy depcomp to subdir because otherwise we won't find it if we're
3884  # using a relative directory.
3885  cp "$am_depcomp" conftest.dir
3886  cd conftest.dir
3887  # We will build objects and dependencies in a subdirectory because
3888  # it helps to detect inapplicable dependency modes.  For instance
3889  # both Tru64's cc and ICC support -MD to output dependencies as a
3890  # side effect of compilation, but ICC will put the dependencies in
3891  # the current directory while Tru64 will put them in the object
3892  # directory.
3893  mkdir sub
3894
3895  am_cv_CC_dependencies_compiler_type=none
3896  if test "$am_compiler_list" = ""; then
3897     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3898  fi
3899  am__universal=false
3900  case " $depcc " in #(
3901     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3902     esac
3903
3904  for depmode in $am_compiler_list; do
3905    # Setup a source with many dependencies, because some compilers
3906    # like to wrap large dependency lists on column 80 (with \), and
3907    # we should not choose a depcomp mode which is confused by this.
3908    #
3909    # We need to recreate these files for each test, as the compiler may
3910    # overwrite some of them when testing with obscure command lines.
3911    # This happens at least with the AIX C compiler.
3912    : > sub/conftest.c
3913    for i in 1 2 3 4 5 6; do
3914      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3915      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3916      # Solaris 8's {/usr,}/bin/sh.
3917      touch sub/conftst$i.h
3918    done
3919    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3920
3921    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3922    # mode.  It turns out that the SunPro C++ compiler does not properly
3923    # handle `-M -o', and we need to detect this.  Also, some Intel
3924    # versions had trouble with output in subdirs
3925    am__obj=sub/conftest.${OBJEXT-o}
3926    am__minus_obj="-o $am__obj"
3927    case $depmode in
3928    gcc)
3929      # This depmode causes a compiler race in universal mode.
3930      test "$am__universal" = false || continue
3931      ;;
3932    nosideeffect)
3933      # after this tag, mechanisms are not by side-effect, so they'll
3934      # only be used when explicitly requested
3935      if test "x$enable_dependency_tracking" = xyes; then
3936	continue
3937      else
3938	break
3939      fi
3940      ;;
3941    msvisualcpp | msvcmsys)
3942      # This compiler won't grok `-c -o', but also, the minuso test has
3943      # not run yet.  These depmodes are late enough in the game, and
3944      # so weak that their functioning should not be impacted.
3945      am__obj=conftest.${OBJEXT-o}
3946      am__minus_obj=
3947      ;;
3948    none) break ;;
3949    esac
3950    if depmode=$depmode \
3951       source=sub/conftest.c object=$am__obj \
3952       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3953       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3954         >/dev/null 2>conftest.err &&
3955       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3956       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3957       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3958       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3959      # icc doesn't choke on unknown options, it will just issue warnings
3960      # or remarks (even with -Werror).  So we grep stderr for any message
3961      # that says an option was ignored or not supported.
3962      # When given -MP, icc 7.0 and 7.1 complain thusly:
3963      #   icc: Command line warning: ignoring option '-M'; no argument required
3964      # The diagnosis changed in icc 8.0:
3965      #   icc: Command line remark: option '-MP' not supported
3966      if (grep 'ignoring option' conftest.err ||
3967          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3968        am_cv_CC_dependencies_compiler_type=$depmode
3969        break
3970      fi
3971    fi
3972  done
3973
3974  cd ..
3975  rm -rf conftest.dir
3976else
3977  am_cv_CC_dependencies_compiler_type=none
3978fi
3979
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3982$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3983CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3984
3985 if
3986  test "x$enable_dependency_tracking" != xno \
3987  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3988  am__fastdepCC_TRUE=
3989  am__fastdepCC_FALSE='#'
3990else
3991  am__fastdepCC_TRUE='#'
3992  am__fastdepCC_FALSE=
3993fi
3994
3995
3996if test "x$CC" != xcc; then
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3998$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3999else
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4001$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4002fi
4003set dummy $CC; ac_cc=`$as_echo "$2" |
4004		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4005if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h.  */
4010
4011int
4012main ()
4013{
4014
4015  ;
4016  return 0;
4017}
4018_ACEOF
4019# Make sure it works both with $CC and with simple cc.
4020# We do the test twice because some compilers refuse to overwrite an
4021# existing .o file with -o, though they will create one.
4022ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4023rm -f conftest2.*
4024if { { case "(($ac_try" in
4025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026  *) ac_try_echo=$ac_try;;
4027esac
4028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029$as_echo "$ac_try_echo"; } >&5
4030  (eval "$ac_try") 2>&5
4031  ac_status=$?
4032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033  test $ac_status = 0; } &&
4034   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036  *) ac_try_echo=$ac_try;;
4037esac
4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039$as_echo "$ac_try_echo"; } >&5
4040  (eval "$ac_try") 2>&5
4041  ac_status=$?
4042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043  test $ac_status = 0; };
4044then
4045  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4046  if test "x$CC" != xcc; then
4047    # Test first that cc exists at all.
4048    if { ac_try='cc -c conftest.$ac_ext >&5'
4049  { { case "(($ac_try" in
4050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051  *) ac_try_echo=$ac_try;;
4052esac
4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054$as_echo "$ac_try_echo"; } >&5
4055  (eval "$ac_try") 2>&5
4056  ac_status=$?
4057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058  test $ac_status = 0; }; }; then
4059      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4060      rm -f conftest2.*
4061      if { { case "(($ac_try" in
4062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063  *) ac_try_echo=$ac_try;;
4064esac
4065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066$as_echo "$ac_try_echo"; } >&5
4067  (eval "$ac_try") 2>&5
4068  ac_status=$?
4069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070  test $ac_status = 0; } &&
4071	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073  *) ac_try_echo=$ac_try;;
4074esac
4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4076$as_echo "$ac_try_echo"; } >&5
4077  (eval "$ac_try") 2>&5
4078  ac_status=$?
4079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080  test $ac_status = 0; };
4081      then
4082	# cc works too.
4083	:
4084      else
4085	# cc exists but doesn't like -o.
4086	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4087      fi
4088    fi
4089  fi
4090else
4091  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4092fi
4093rm -f core conftest*
4094
4095fi
4096if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4098$as_echo "yes" >&6; }
4099else
4100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101$as_echo "no" >&6; }
4102
4103$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4104
4105fi
4106
4107# FIXME: we rely on the cache variable name because
4108# there is no other way.
4109set dummy $CC
4110am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4111eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4112if test "$am_t" != yes; then
4113   # Losing compiler, so override with the script.
4114   # FIXME: It is wrong to rewrite CC.
4115   # But if we don't then we get into trouble of one sort or another.
4116   # A longer-term fix would be to have automake use am__CC in this case,
4117   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4118   CC="$am_aux_dir/compile $CC"
4119fi
4120
4121
4122ac_ext=c
4123ac_cpp='$CPP $CPPFLAGS'
4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4128$as_echo_n "checking how to run the C preprocessor... " >&6; }
4129# On Suns, sometimes $CPP names a directory.
4130if test -n "$CPP" && test -d "$CPP"; then
4131  CPP=
4132fi
4133if test -z "$CPP"; then
4134  if test "${ac_cv_prog_CPP+set}" = set; then :
4135  $as_echo_n "(cached) " >&6
4136else
4137      # Double quotes because CPP needs to be expanded
4138    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4139    do
4140      ac_preproc_ok=false
4141for ac_c_preproc_warn_flag in '' yes
4142do
4143  # Use a header file that comes with gcc, so configuring glibc
4144  # with a fresh cross-compiler works.
4145  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4146  # <limits.h> exists even on freestanding compilers.
4147  # On the NeXT, cc -E runs the code through the compiler's parser,
4148  # not just through cpp. "Syntax error" is here to catch this case.
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151#ifdef __STDC__
4152# include <limits.h>
4153#else
4154# include <assert.h>
4155#endif
4156		     Syntax error
4157_ACEOF
4158if ac_fn_c_try_cpp "$LINENO"; then :
4159
4160else
4161  # Broken: fails on valid input.
4162continue
4163fi
4164rm -f conftest.err conftest.$ac_ext
4165
4166  # OK, works on sane cases.  Now check whether nonexistent headers
4167  # can be detected and how.
4168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170#include <ac_nonexistent.h>
4171_ACEOF
4172if ac_fn_c_try_cpp "$LINENO"; then :
4173  # Broken: success on invalid input.
4174continue
4175else
4176  # Passes both tests.
4177ac_preproc_ok=:
4178break
4179fi
4180rm -f conftest.err conftest.$ac_ext
4181
4182done
4183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184rm -f conftest.err conftest.$ac_ext
4185if $ac_preproc_ok; then :
4186  break
4187fi
4188
4189    done
4190    ac_cv_prog_CPP=$CPP
4191
4192fi
4193  CPP=$ac_cv_prog_CPP
4194else
4195  ac_cv_prog_CPP=$CPP
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4198$as_echo "$CPP" >&6; }
4199ac_preproc_ok=false
4200for ac_c_preproc_warn_flag in '' yes
4201do
4202  # Use a header file that comes with gcc, so configuring glibc
4203  # with a fresh cross-compiler works.
4204  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205  # <limits.h> exists even on freestanding compilers.
4206  # On the NeXT, cc -E runs the code through the compiler's parser,
4207  # not just through cpp. "Syntax error" is here to catch this case.
4208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210#ifdef __STDC__
4211# include <limits.h>
4212#else
4213# include <assert.h>
4214#endif
4215		     Syntax error
4216_ACEOF
4217if ac_fn_c_try_cpp "$LINENO"; then :
4218
4219else
4220  # Broken: fails on valid input.
4221continue
4222fi
4223rm -f conftest.err conftest.$ac_ext
4224
4225  # OK, works on sane cases.  Now check whether nonexistent headers
4226  # can be detected and how.
4227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h.  */
4229#include <ac_nonexistent.h>
4230_ACEOF
4231if ac_fn_c_try_cpp "$LINENO"; then :
4232  # Broken: success on invalid input.
4233continue
4234else
4235  # Passes both tests.
4236ac_preproc_ok=:
4237break
4238fi
4239rm -f conftest.err conftest.$ac_ext
4240
4241done
4242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4243rm -f conftest.err conftest.$ac_ext
4244if $ac_preproc_ok; then :
4245
4246else
4247  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249as_fn_error "C preprocessor \"$CPP\" fails sanity check
4250See \`config.log' for more details." "$LINENO" 5; }
4251fi
4252
4253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259ac_ext=cpp
4260ac_cpp='$CXXCPP $CPPFLAGS'
4261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4264if test -z "$CXX"; then
4265  if test -n "$CCC"; then
4266    CXX=$CCC
4267  else
4268    if test -n "$ac_tool_prefix"; then
4269  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4270  do
4271    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
4275if test "${ac_cv_prog_CXX+set}" = set; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  if test -n "$CXX"; then
4279  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4280else
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284  IFS=$as_save_IFS
4285  test -z "$as_dir" && as_dir=.
4286    for ac_exec_ext in '' $ac_executable_extensions; do
4287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290    break 2
4291  fi
4292done
4293  done
4294IFS=$as_save_IFS
4295
4296fi
4297fi
4298CXX=$ac_cv_prog_CXX
4299if test -n "$CXX"; then
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4301$as_echo "$CXX" >&6; }
4302else
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
4305fi
4306
4307
4308    test -n "$CXX" && break
4309  done
4310fi
4311if test -z "$CXX"; then
4312  ac_ct_CXX=$CXX
4313  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4314do
4315  # Extract the first word of "$ac_prog", so it can be a program name with args.
4316set dummy $ac_prog; ac_word=$2
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318$as_echo_n "checking for $ac_word... " >&6; }
4319if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4320  $as_echo_n "(cached) " >&6
4321else
4322  if test -n "$ac_ct_CXX"; then
4323  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328  IFS=$as_save_IFS
4329  test -z "$as_dir" && as_dir=.
4330    for ac_exec_ext in '' $ac_executable_extensions; do
4331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332    ac_cv_prog_ac_ct_CXX="$ac_prog"
4333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334    break 2
4335  fi
4336done
4337  done
4338IFS=$as_save_IFS
4339
4340fi
4341fi
4342ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4343if test -n "$ac_ct_CXX"; then
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4345$as_echo "$ac_ct_CXX" >&6; }
4346else
4347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
4349fi
4350
4351
4352  test -n "$ac_ct_CXX" && break
4353done
4354
4355  if test "x$ac_ct_CXX" = x; then
4356    CXX="g++"
4357  else
4358    case $cross_compiling:$ac_tool_warned in
4359yes:)
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362ac_tool_warned=yes ;;
4363esac
4364    CXX=$ac_ct_CXX
4365  fi
4366fi
4367
4368  fi
4369fi
4370# Provide some information about the compiler.
4371$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4372set X $ac_compile
4373ac_compiler=$2
4374for ac_option in --version -v -V -qversion; do
4375  { { ac_try="$ac_compiler $ac_option >&5"
4376case "(($ac_try" in
4377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378  *) ac_try_echo=$ac_try;;
4379esac
4380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381$as_echo "$ac_try_echo"; } >&5
4382  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4383  ac_status=$?
4384  if test -s conftest.err; then
4385    sed '10a\
4386... rest of stderr output deleted ...
4387         10q' conftest.err >conftest.er1
4388    cat conftest.er1 >&5
4389  fi
4390  rm -f conftest.er1 conftest.err
4391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392  test $ac_status = 0; }
4393done
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4396$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4397if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402
4403int
4404main ()
4405{
4406#ifndef __GNUC__
4407       choke me
4408#endif
4409
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_cxx_try_compile "$LINENO"; then :
4415  ac_compiler_gnu=yes
4416else
4417  ac_compiler_gnu=no
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4421
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4424$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4425if test $ac_compiler_gnu = yes; then
4426  GXX=yes
4427else
4428  GXX=
4429fi
4430ac_test_CXXFLAGS=${CXXFLAGS+set}
4431ac_save_CXXFLAGS=$CXXFLAGS
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4433$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4434if test "${ac_cv_prog_cxx_g+set}" = set; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4438   ac_cxx_werror_flag=yes
4439   ac_cv_prog_cxx_g=no
4440   CXXFLAGS="-g"
4441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442/* end confdefs.h.  */
4443
4444int
4445main ()
4446{
4447
4448  ;
4449  return 0;
4450}
4451_ACEOF
4452if ac_fn_cxx_try_compile "$LINENO"; then :
4453  ac_cv_prog_cxx_g=yes
4454else
4455  CXXFLAGS=""
4456      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458
4459int
4460main ()
4461{
4462
4463  ;
4464  return 0;
4465}
4466_ACEOF
4467if ac_fn_cxx_try_compile "$LINENO"; then :
4468
4469else
4470  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4471	 CXXFLAGS="-g"
4472	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h.  */
4474
4475int
4476main ()
4477{
4478
4479  ;
4480  return 0;
4481}
4482_ACEOF
4483if ac_fn_cxx_try_compile "$LINENO"; then :
4484  ac_cv_prog_cxx_g=yes
4485fi
4486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487fi
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489fi
4490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4492fi
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4494$as_echo "$ac_cv_prog_cxx_g" >&6; }
4495if test "$ac_test_CXXFLAGS" = set; then
4496  CXXFLAGS=$ac_save_CXXFLAGS
4497elif test $ac_cv_prog_cxx_g = yes; then
4498  if test "$GXX" = yes; then
4499    CXXFLAGS="-g -O2"
4500  else
4501    CXXFLAGS="-g"
4502  fi
4503else
4504  if test "$GXX" = yes; then
4505    CXXFLAGS="-O2"
4506  else
4507    CXXFLAGS=
4508  fi
4509fi
4510ac_ext=c
4511ac_cpp='$CPP $CPPFLAGS'
4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515
4516depcc="$CXX"  am_compiler_list=
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4519$as_echo_n "checking dependency style of $depcc... " >&6; }
4520if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4521  $as_echo_n "(cached) " >&6
4522else
4523  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4524  # We make a subdir and do the tests there.  Otherwise we can end up
4525  # making bogus files that we don't know about and never remove.  For
4526  # instance it was reported that on HP-UX the gcc test will end up
4527  # making a dummy file named `D' -- because `-MD' means `put the output
4528  # in D'.
4529  mkdir conftest.dir
4530  # Copy depcomp to subdir because otherwise we won't find it if we're
4531  # using a relative directory.
4532  cp "$am_depcomp" conftest.dir
4533  cd conftest.dir
4534  # We will build objects and dependencies in a subdirectory because
4535  # it helps to detect inapplicable dependency modes.  For instance
4536  # both Tru64's cc and ICC support -MD to output dependencies as a
4537  # side effect of compilation, but ICC will put the dependencies in
4538  # the current directory while Tru64 will put them in the object
4539  # directory.
4540  mkdir sub
4541
4542  am_cv_CXX_dependencies_compiler_type=none
4543  if test "$am_compiler_list" = ""; then
4544     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4545  fi
4546  am__universal=false
4547  case " $depcc " in #(
4548     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4549     esac
4550
4551  for depmode in $am_compiler_list; do
4552    # Setup a source with many dependencies, because some compilers
4553    # like to wrap large dependency lists on column 80 (with \), and
4554    # we should not choose a depcomp mode which is confused by this.
4555    #
4556    # We need to recreate these files for each test, as the compiler may
4557    # overwrite some of them when testing with obscure command lines.
4558    # This happens at least with the AIX C compiler.
4559    : > sub/conftest.c
4560    for i in 1 2 3 4 5 6; do
4561      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4562      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4563      # Solaris 8's {/usr,}/bin/sh.
4564      touch sub/conftst$i.h
4565    done
4566    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4567
4568    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4569    # mode.  It turns out that the SunPro C++ compiler does not properly
4570    # handle `-M -o', and we need to detect this.  Also, some Intel
4571    # versions had trouble with output in subdirs
4572    am__obj=sub/conftest.${OBJEXT-o}
4573    am__minus_obj="-o $am__obj"
4574    case $depmode in
4575    gcc)
4576      # This depmode causes a compiler race in universal mode.
4577      test "$am__universal" = false || continue
4578      ;;
4579    nosideeffect)
4580      # after this tag, mechanisms are not by side-effect, so they'll
4581      # only be used when explicitly requested
4582      if test "x$enable_dependency_tracking" = xyes; then
4583	continue
4584      else
4585	break
4586      fi
4587      ;;
4588    msvisualcpp | msvcmsys)
4589      # This compiler won't grok `-c -o', but also, the minuso test has
4590      # not run yet.  These depmodes are late enough in the game, and
4591      # so weak that their functioning should not be impacted.
4592      am__obj=conftest.${OBJEXT-o}
4593      am__minus_obj=
4594      ;;
4595    none) break ;;
4596    esac
4597    if depmode=$depmode \
4598       source=sub/conftest.c object=$am__obj \
4599       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4600       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4601         >/dev/null 2>conftest.err &&
4602       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4603       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4604       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4605       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4606      # icc doesn't choke on unknown options, it will just issue warnings
4607      # or remarks (even with -Werror).  So we grep stderr for any message
4608      # that says an option was ignored or not supported.
4609      # When given -MP, icc 7.0 and 7.1 complain thusly:
4610      #   icc: Command line warning: ignoring option '-M'; no argument required
4611      # The diagnosis changed in icc 8.0:
4612      #   icc: Command line remark: option '-MP' not supported
4613      if (grep 'ignoring option' conftest.err ||
4614          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4615        am_cv_CXX_dependencies_compiler_type=$depmode
4616        break
4617      fi
4618    fi
4619  done
4620
4621  cd ..
4622  rm -rf conftest.dir
4623else
4624  am_cv_CXX_dependencies_compiler_type=none
4625fi
4626
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4629$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4630CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4631
4632 if
4633  test "x$enable_dependency_tracking" != xno \
4634  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4635  am__fastdepCXX_TRUE=
4636  am__fastdepCXX_FALSE='#'
4637else
4638  am__fastdepCXX_TRUE='#'
4639  am__fastdepCXX_FALSE=
4640fi
4641
4642
4643# AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4644# autoconf 2.59).  If we ever have any Objective-C code in the Valgrind code
4645# base (eg. most likely as Darwin-specific tests) we'll need one of the
4646# following:
4647# - put AC_PROG_OBJC in a Darwin-specific part of this file
4648# - Use AC_PROG_OBJC here and up the minimum autoconf version
4649# - Use the following, which is apparently equivalent:
4650#     m4_ifdef([AC_PROG_OBJC],
4651#        [AC_PROG_OBJC],
4652#        [AC_CHECK_TOOL([OBJC], [gcc])
4653#         AC_SUBST([OBJC])
4654#         AC_SUBST([OBJCFLAGS])
4655#        ])
4656if test -n "$ac_tool_prefix"; then
4657  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4658set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660$as_echo_n "checking for $ac_word... " >&6; }
4661if test "${ac_cv_prog_RANLIB+set}" = set; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664  if test -n "$RANLIB"; then
4665  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  test -z "$as_dir" && as_dir=.
4672    for ac_exec_ext in '' $ac_executable_extensions; do
4673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676    break 2
4677  fi
4678done
4679  done
4680IFS=$as_save_IFS
4681
4682fi
4683fi
4684RANLIB=$ac_cv_prog_RANLIB
4685if test -n "$RANLIB"; then
4686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4687$as_echo "$RANLIB" >&6; }
4688else
4689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690$as_echo "no" >&6; }
4691fi
4692
4693
4694fi
4695if test -z "$ac_cv_prog_RANLIB"; then
4696  ac_ct_RANLIB=$RANLIB
4697  # Extract the first word of "ranlib", so it can be a program name with args.
4698set dummy ranlib; ac_word=$2
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700$as_echo_n "checking for $ac_word... " >&6; }
4701if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4702  $as_echo_n "(cached) " >&6
4703else
4704  if test -n "$ac_ct_RANLIB"; then
4705  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710  IFS=$as_save_IFS
4711  test -z "$as_dir" && as_dir=.
4712    for ac_exec_ext in '' $ac_executable_extensions; do
4713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714    ac_cv_prog_ac_ct_RANLIB="ranlib"
4715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716    break 2
4717  fi
4718done
4719  done
4720IFS=$as_save_IFS
4721
4722fi
4723fi
4724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4725if test -n "$ac_ct_RANLIB"; then
4726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4727$as_echo "$ac_ct_RANLIB" >&6; }
4728else
4729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730$as_echo "no" >&6; }
4731fi
4732
4733  if test "x$ac_ct_RANLIB" = x; then
4734    RANLIB=":"
4735  else
4736    case $cross_compiling:$ac_tool_warned in
4737yes:)
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740ac_tool_warned=yes ;;
4741esac
4742    RANLIB=$ac_ct_RANLIB
4743  fi
4744else
4745  RANLIB="$ac_cv_prog_RANLIB"
4746fi
4747
4748# provide a very basic definition for AC_PROG_SED if it's not provided by
4749# autoconf (as e.g. in autoconf 2.59).
4750
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4752$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4753if test "${ac_cv_path_SED+set}" = set; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4757     for ac_i in 1 2 3 4 5 6 7; do
4758       ac_script="$ac_script$as_nl$ac_script"
4759     done
4760     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4761     { ac_script=; unset ac_script;}
4762     if test -z "$SED"; then
4763  ac_path_SED_found=false
4764  # Loop through the user's path and test for each of PROGNAME-LIST
4765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH
4767do
4768  IFS=$as_save_IFS
4769  test -z "$as_dir" && as_dir=.
4770    for ac_prog in sed gsed; do
4771    for ac_exec_ext in '' $ac_executable_extensions; do
4772      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4773      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4774# Check for GNU ac_path_SED and select it if it is found.
4775  # Check for GNU $ac_path_SED
4776case `"$ac_path_SED" --version 2>&1` in
4777*GNU*)
4778  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4779*)
4780  ac_count=0
4781  $as_echo_n 0123456789 >"conftest.in"
4782  while :
4783  do
4784    cat "conftest.in" "conftest.in" >"conftest.tmp"
4785    mv "conftest.tmp" "conftest.in"
4786    cp "conftest.in" "conftest.nl"
4787    $as_echo '' >> "conftest.nl"
4788    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790    as_fn_arith $ac_count + 1 && ac_count=$as_val
4791    if test $ac_count -gt ${ac_path_SED_max-0}; then
4792      # Best one so far, save it but keep looking for a better one
4793      ac_cv_path_SED="$ac_path_SED"
4794      ac_path_SED_max=$ac_count
4795    fi
4796    # 10*(2^10) chars as input seems more than enough
4797    test $ac_count -gt 10 && break
4798  done
4799  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800esac
4801
4802      $ac_path_SED_found && break 3
4803    done
4804  done
4805  done
4806IFS=$as_save_IFS
4807  if test -z "$ac_cv_path_SED"; then
4808    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4809  fi
4810else
4811  ac_cv_path_SED=$SED
4812fi
4813
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4816$as_echo "$ac_cv_path_SED" >&6; }
4817 SED="$ac_cv_path_SED"
4818  rm -f conftest.sed
4819
4820
4821# If no AR variable was specified, look up the name of the archiver. Otherwise
4822# do not touch the AR variable.
4823if test "x$AR" = "x"; then
4824  for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4825do
4826  # Extract the first word of "$ac_prog", so it can be a program name with args.
4827set dummy $ac_prog; ac_word=$2
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829$as_echo_n "checking for $ac_word... " >&6; }
4830if test "${ac_cv_path_AR+set}" = set; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  case $AR in
4834  [\\/]* | ?:[\\/]*)
4835  ac_cv_path_AR="$AR" # Let the user override the test with a path.
4836  ;;
4837  *)
4838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841  IFS=$as_save_IFS
4842  test -z "$as_dir" && as_dir=.
4843    for ac_exec_ext in '' $ac_executable_extensions; do
4844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847    break 2
4848  fi
4849done
4850  done
4851IFS=$as_save_IFS
4852
4853  ;;
4854esac
4855fi
4856AR=$ac_cv_path_AR
4857if test -n "$AR"; then
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4859$as_echo "$AR" >&6; }
4860else
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862$as_echo "no" >&6; }
4863fi
4864
4865
4866  test -n "$AR" && break
4867done
4868test -n "$AR" || AR="ar"
4869
4870fi
4871
4872
4873# Check for the compiler support
4874if test "${GCC}" != "yes" ; then
4875   as_fn_error "Valgrind relies on GCC to be compiled" "$LINENO" 5
4876fi
4877
4878# figure out where perl lives
4879# Extract the first word of "perl", so it can be a program name with args.
4880set dummy perl; ac_word=$2
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882$as_echo_n "checking for $ac_word... " >&6; }
4883if test "${ac_cv_path_PERL+set}" = set; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886  case $PERL in
4887  [\\/]* | ?:[\\/]*)
4888  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4889  ;;
4890  *)
4891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH
4893do
4894  IFS=$as_save_IFS
4895  test -z "$as_dir" && as_dir=.
4896    for ac_exec_ext in '' $ac_executable_extensions; do
4897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900    break 2
4901  fi
4902done
4903  done
4904IFS=$as_save_IFS
4905
4906  ;;
4907esac
4908fi
4909PERL=$ac_cv_path_PERL
4910if test -n "$PERL"; then
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4912$as_echo "$PERL" >&6; }
4913else
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
4916fi
4917
4918
4919
4920# figure out where gdb lives
4921# Extract the first word of "gdb", so it can be a program name with args.
4922set dummy gdb; ac_word=$2
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924$as_echo_n "checking for $ac_word... " >&6; }
4925if test "${ac_cv_path_GDB+set}" = set; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  case $GDB in
4929  [\\/]* | ?:[\\/]*)
4930  ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4931  ;;
4932  *)
4933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936  IFS=$as_save_IFS
4937  test -z "$as_dir" && as_dir=.
4938    for ac_exec_ext in '' $ac_executable_extensions; do
4939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940    ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942    break 2
4943  fi
4944done
4945  done
4946IFS=$as_save_IFS
4947
4948  test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4949  ;;
4950esac
4951fi
4952GDB=$ac_cv_path_GDB
4953if test -n "$GDB"; then
4954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4955$as_echo "$GDB" >&6; }
4956else
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
4959fi
4960
4961
4962
4963cat >>confdefs.h <<_ACEOF
4964#define GDB_PATH "$GDB"
4965_ACEOF
4966
4967
4968# some older automake's don't have it so try something on our own
4969# By default we simply use the C compiler to build assembly code.
4970
4971test "${CCAS+set}" = set || CCAS=$CC
4972test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4973
4974
4975
4976depcc="$CCAS"   am_compiler_list=
4977
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4979$as_echo_n "checking dependency style of $depcc... " >&6; }
4980if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4984  # We make a subdir and do the tests there.  Otherwise we can end up
4985  # making bogus files that we don't know about and never remove.  For
4986  # instance it was reported that on HP-UX the gcc test will end up
4987  # making a dummy file named `D' -- because `-MD' means `put the output
4988  # in D'.
4989  mkdir conftest.dir
4990  # Copy depcomp to subdir because otherwise we won't find it if we're
4991  # using a relative directory.
4992  cp "$am_depcomp" conftest.dir
4993  cd conftest.dir
4994  # We will build objects and dependencies in a subdirectory because
4995  # it helps to detect inapplicable dependency modes.  For instance
4996  # both Tru64's cc and ICC support -MD to output dependencies as a
4997  # side effect of compilation, but ICC will put the dependencies in
4998  # the current directory while Tru64 will put them in the object
4999  # directory.
5000  mkdir sub
5001
5002  am_cv_CCAS_dependencies_compiler_type=none
5003  if test "$am_compiler_list" = ""; then
5004     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5005  fi
5006  am__universal=false
5007
5008
5009  for depmode in $am_compiler_list; do
5010    # Setup a source with many dependencies, because some compilers
5011    # like to wrap large dependency lists on column 80 (with \), and
5012    # we should not choose a depcomp mode which is confused by this.
5013    #
5014    # We need to recreate these files for each test, as the compiler may
5015    # overwrite some of them when testing with obscure command lines.
5016    # This happens at least with the AIX C compiler.
5017    : > sub/conftest.c
5018    for i in 1 2 3 4 5 6; do
5019      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5020      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5021      # Solaris 8's {/usr,}/bin/sh.
5022      touch sub/conftst$i.h
5023    done
5024    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5025
5026    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5027    # mode.  It turns out that the SunPro C++ compiler does not properly
5028    # handle `-M -o', and we need to detect this.  Also, some Intel
5029    # versions had trouble with output in subdirs
5030    am__obj=sub/conftest.${OBJEXT-o}
5031    am__minus_obj="-o $am__obj"
5032    case $depmode in
5033    gcc)
5034      # This depmode causes a compiler race in universal mode.
5035      test "$am__universal" = false || continue
5036      ;;
5037    nosideeffect)
5038      # after this tag, mechanisms are not by side-effect, so they'll
5039      # only be used when explicitly requested
5040      if test "x$enable_dependency_tracking" = xyes; then
5041	continue
5042      else
5043	break
5044      fi
5045      ;;
5046    msvisualcpp | msvcmsys)
5047      # This compiler won't grok `-c -o', but also, the minuso test has
5048      # not run yet.  These depmodes are late enough in the game, and
5049      # so weak that their functioning should not be impacted.
5050      am__obj=conftest.${OBJEXT-o}
5051      am__minus_obj=
5052      ;;
5053    none) break ;;
5054    esac
5055    if depmode=$depmode \
5056       source=sub/conftest.c object=$am__obj \
5057       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5058       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5059         >/dev/null 2>conftest.err &&
5060       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5061       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5062       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5063       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5064      # icc doesn't choke on unknown options, it will just issue warnings
5065      # or remarks (even with -Werror).  So we grep stderr for any message
5066      # that says an option was ignored or not supported.
5067      # When given -MP, icc 7.0 and 7.1 complain thusly:
5068      #   icc: Command line warning: ignoring option '-M'; no argument required
5069      # The diagnosis changed in icc 8.0:
5070      #   icc: Command line remark: option '-MP' not supported
5071      if (grep 'ignoring option' conftest.err ||
5072          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5073        am_cv_CCAS_dependencies_compiler_type=$depmode
5074        break
5075      fi
5076    fi
5077  done
5078
5079  cd ..
5080  rm -rf conftest.dir
5081else
5082  am_cv_CCAS_dependencies_compiler_type=none
5083fi
5084
5085fi
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5087$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5088CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5089
5090 if
5091  test "x$enable_dependency_tracking" != xno \
5092  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5093  am__fastdepCCAS_TRUE=
5094  am__fastdepCCAS_FALSE='#'
5095else
5096  am__fastdepCCAS_TRUE='#'
5097  am__fastdepCCAS_FALSE=
5098fi
5099
5100
5101
5102
5103# Check if 'diff' supports -u (universal diffs) and use it if possible.
5104
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5106$as_echo_n "checking for diff -u... " >&6; }
5107
5108
5109# Comparing two identical files results in 0, unless -u isn't supported (as
5110# it's not on AIX).
5111tmpfile="tmp-xxx-yyy-zzz"
5112touch $tmpfile;
5113if diff -u $tmpfile $tmpfile ; then
5114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5115$as_echo "yes" >&6; }
5116    DIFF="diff -u"
5117else
5118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
5120    DIFF="diff"
5121fi
5122rm $tmpfile
5123
5124
5125# We don't want gcc < 3.0
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5127$as_echo_n "checking for a supported version of gcc... " >&6; }
5128
5129gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5130
5131case "${gcc_version}" in
5132     2.*)
5133	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5134$as_echo "no (${gcc_version})" >&6; }
5135	as_fn_error "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5136	;;
5137     *)
5138	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5139$as_echo "ok (${gcc_version})" >&6; }
5140	;;
5141esac
5142
5143#----------------------------------------------------------------------------
5144# Arch/OS/platform tests.
5145#----------------------------------------------------------------------------
5146# We create a number of arch/OS/platform-related variables.  We prefix them
5147# all with "VGCONF_" which indicates that they are defined at
5148# configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5149# variables used when compiling C files.
5150
5151# Make sure we can run config.sub.
5152$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5153  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5154
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5156$as_echo_n "checking build system type... " >&6; }
5157if test "${ac_cv_build+set}" = set; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  ac_build_alias=$build_alias
5161test "x$ac_build_alias" = x &&
5162  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5163test "x$ac_build_alias" = x &&
5164  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5165ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5166  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5167
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5170$as_echo "$ac_cv_build" >&6; }
5171case $ac_cv_build in
5172*-*-*) ;;
5173*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5174esac
5175build=$ac_cv_build
5176ac_save_IFS=$IFS; IFS='-'
5177set x $ac_cv_build
5178shift
5179build_cpu=$1
5180build_vendor=$2
5181shift; shift
5182# Remember, the first character of IFS is used to create $*,
5183# except with old shells:
5184build_os=$*
5185IFS=$ac_save_IFS
5186case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5187
5188
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5190$as_echo_n "checking host system type... " >&6; }
5191if test "${ac_cv_host+set}" = set; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  if test "x$host_alias" = x; then
5195  ac_cv_host=$ac_cv_build
5196else
5197  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5198    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5199fi
5200
5201fi
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5203$as_echo "$ac_cv_host" >&6; }
5204case $ac_cv_host in
5205*-*-*) ;;
5206*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5207esac
5208host=$ac_cv_host
5209ac_save_IFS=$IFS; IFS='-'
5210set x $ac_cv_host
5211shift
5212host_cpu=$1
5213host_vendor=$2
5214shift; shift
5215# Remember, the first character of IFS is used to create $*,
5216# except with old shells:
5217host_os=$*
5218IFS=$ac_save_IFS
5219case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5220
5221
5222
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5224$as_echo_n "checking for a supported CPU... " >&6; }
5225
5226# ARCH_MAX reflects the most that this CPU can do: for example if it
5227# is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5228# Ditto for amd64.  It is used for more configuration below, but is not used
5229# outside this file.
5230case "${host_cpu}" in
5231     i?86)
5232	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5233$as_echo "ok (${host_cpu})" >&6; }
5234        ARCH_MAX="x86"
5235        ;;
5236
5237     x86_64)
5238        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5239$as_echo "ok (${host_cpu})" >&6; }
5240        ARCH_MAX="amd64"
5241        ;;
5242
5243     powerpc64)
5244        # This value can only happen on Linux, not on AIX
5245        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5246$as_echo "ok (${host_cpu})" >&6; }
5247        ARCH_MAX="ppc64"
5248        ;;
5249
5250     powerpc)
5251        # Complexity.  'powerpc' on AIX implies a 64-bit capable CPU.
5252        # Whereas in Linux that means only a 32-bit capable CPU.
5253        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5254$as_echo "ok (${host_cpu})" >&6; }
5255	case "${host_os}" in
5256	   aix5.*)
5257	      ARCH_MAX="ppc64"
5258              ;;
5259           *)
5260              ARCH_MAX="ppc32"
5261              ;;
5262        esac
5263        ;;
5264
5265     armv7*)
5266	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5267$as_echo "ok (${host_cpu})" >&6; }
5268	ARCH_MAX="arm"
5269	;;
5270
5271     *)
5272	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5273$as_echo "no (${host_cpu})" >&6; }
5274	as_fn_error "Unsupported host architecture. Sorry" "$LINENO" 5
5275	;;
5276esac
5277
5278#----------------------------------------------------------------------------
5279
5280# Sometimes it's convenient to subvert the bi-arch build system and
5281# just have a single build even though the underlying platform is
5282# capable of both.  Hence handle --enable-only64bit and
5283# --enable-only32bit.  Complain if both are issued :-)
5284# [Actually, if either of these options are used, I think both get built,
5285# but only one gets installed.  So if you use an in-place build, both can be
5286# used. --njn]
5287
5288# Check if a 64-bit only build has been requested
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5290$as_echo_n "checking for a 64-bit only build... " >&6; }
5291if test "${vg_cv_only64bit+set}" = set; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  # Check whether --enable-only64bit was given.
5295if test "${enable_only64bit+set}" = set; then :
5296  enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5297else
5298  vg_cv_only64bit=no
5299fi
5300
5301fi
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5303$as_echo "$vg_cv_only64bit" >&6; }
5304
5305# Check if a 32-bit only build has been requested
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5307$as_echo_n "checking for a 32-bit only build... " >&6; }
5308if test "${vg_cv_only32bit+set}" = set; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  # Check whether --enable-only32bit was given.
5312if test "${enable_only32bit+set}" = set; then :
5313  enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5314else
5315  vg_cv_only32bit=no
5316fi
5317
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5320$as_echo "$vg_cv_only32bit" >&6; }
5321
5322# Stay sane
5323if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5324   as_fn_error "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5325fi
5326
5327#----------------------------------------------------------------------------
5328
5329# VGCONF_OS is the primary build OS, eg. "linux".  It is passed in to
5330# compilation of many C files via -VGO_$(VGCONF_OS) and
5331# -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5333$as_echo_n "checking for a supported OS... " >&6; }
5334
5335
5336DEFAULT_SUPP=""
5337
5338case "${host_os}" in
5339     *linux*)
5340	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5341$as_echo "ok (${host_os})" >&6; }
5342        VGCONF_OS="linux"
5343
5344        # Ok, this is linux. Check the kernel version
5345        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5346$as_echo_n "checking for the kernel version... " >&6; }
5347
5348        kernel=`uname -r`
5349
5350        case "${kernel}" in
5351             2.6.*)
5352        	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5353$as_echo "2.6 family (${kernel})" >&6; }
5354
5355$as_echo "#define KERNEL_2_6 1" >>confdefs.h
5356
5357        	    ;;
5358
5359             2.4.*)
5360        	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5361$as_echo "2.4 family (${kernel})" >&6; }
5362
5363$as_echo "#define KERNEL_2_4 1" >>confdefs.h
5364
5365        	    ;;
5366
5367             *)
5368        	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5369$as_echo "unsupported (${kernel})" >&6; }
5370        	    as_fn_error "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5371        	    ;;
5372        esac
5373
5374        ;;
5375
5376     aix5.1.*)
5377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5378$as_echo "ok (${host_os})" >&6; }
5379        VGCONF_OS="aix5"
5380        ;;
5381     aix5.2.*)
5382        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5383$as_echo "ok (${host_os})" >&6; }
5384        VGCONF_OS="aix5"
5385        ;;
5386     aix5.3.*)
5387        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5388$as_echo "ok (${host_os})" >&6; }
5389        VGCONF_OS="aix5"
5390        ;;
5391
5392     *darwin*)
5393        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5394$as_echo "ok (${host_os})" >&6; }
5395        VGCONF_OS="darwin"
5396
5397$as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5398
5399
5400$as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5401
5402
5403$as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5404
5405
5406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5407$as_echo_n "checking for the kernel version... " >&6; }
5408	kernel=`uname -r`
5409
5410        # Nb: for Darwin we set DEFAULT_SUPP here.  That's because Darwin
5411        # has only one relevant version, the OS version. The `uname` check
5412        # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5413        # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5414        # and we don't know of an macros similar to __GLIBC__ to get that info.
5415        #
5416        # XXX: `uname -r` won't do the right thing for cross-compiles, but
5417        # that's not a problem yet.
5418	case "${kernel}" in
5419	     9.*)
5420		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5421$as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5422
5423$as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5424
5425		  DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5426		  DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5427		  ;;
5428	     10.*)
5429		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5430$as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5431
5432$as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5433
5434		  DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5435		  DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5436		  ;;
5437     *)
5438		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5439$as_echo "unsupported (${kernel})" >&6; }
5440		  as_fn_error "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5441		  ;;
5442	esac
5443        ;;
5444
5445     *)
5446	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5447$as_echo "no (${host_os})" >&6; }
5448	as_fn_error "Valgrind is operating system specific. Sorry." "$LINENO" 5
5449	;;
5450esac
5451
5452#----------------------------------------------------------------------------
5453
5454# If we are building on a 64 bit platform test to see if the system
5455# supports building 32 bit programs and disable 32 bit support if it
5456# does not support building 32 bit programs
5457
5458case "$ARCH_MAX-$VGCONF_OS" in
5459     amd64-linux|ppc64-linux)
5460        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5461$as_echo_n "checking for 32 bit build support... " >&6; }
5462        safe_CFLAGS=$CFLAGS
5463        CFLAGS="-m32"
5464
5465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h.  */
5467
5468int
5469main ()
5470{
5471
5472          return 0;
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478if ac_fn_c_try_link "$LINENO"; then :
5479
5480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481$as_echo "yes" >&6; }
5482
5483else
5484
5485        vg_cv_only64bit="yes"
5486        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487$as_echo "no" >&6; }
5488
5489fi
5490rm -f core conftest.err conftest.$ac_objext \
5491    conftest$ac_exeext conftest.$ac_ext
5492        CFLAGS=$safe_CFLAGS;;
5493esac
5494
5495if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5496   as_fn_error "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5497fi
5498
5499#----------------------------------------------------------------------------
5500
5501# VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64".  By
5502# default it's the same as ARCH_MAX.  But if, say, we do a build on an amd64
5503# machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5504# above) will be "amd64" since that reflects the most that this cpu can do,
5505# but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5506# arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS).  It is
5507# passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5508# -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5509
5510
5511# VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5512# It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5513# and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5514# It is empty if there is no secondary target.
5515
5516
5517# VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5518# The entire system, including regression and performance tests, will be
5519# built for this target.  The "_CAPS" indicates that the name is in capital
5520# letters, and it also uses '_' rather than '-' as a separator, because it's
5521# used to create various Makefile variables, which are all in caps by
5522# convention and cannot contain '-' characters.  This is in contrast to
5523# VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5524
5525
5526# VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5527# Valgrind and tools will also be built for this target, but not the
5528# regression or performance tests.
5529#
5530# By default, the primary arch is the same as the "max" arch, as commented
5531# above (at the definition of ARCH_MAX).  We may choose to downgrade it in
5532# the big case statement just below here, in the case where we're building
5533# on a 64 bit machine but have been requested only to do a 32 bit build.
5534
5535
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5537$as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5538
5539# NB.  The load address for a given platform may be specified in more
5540# than one place, in some cases, depending on whether we're doing a biarch,
5541# 32-bit only or 64-bit only build.  eg see case for amd64-linux below.
5542# Be careful to give consistent values in all subcases.  Also, all four
5543# valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5544# even if it is to "0xUNSET".
5545#
5546case "$ARCH_MAX-$VGCONF_OS" in
5547     x86-linux)
5548        VGCONF_ARCH_PRI="x86"
5549        VGCONF_ARCH_SEC=""
5550	VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5551	VGCONF_PLATFORM_SEC_CAPS=""
5552        valt_load_address_pri_norml="0x38000000"
5553        valt_load_address_pri_inner="0x28000000"
5554        valt_load_address_sec_norml="0xUNSET"
5555        valt_load_address_sec_inner="0xUNSET"
5556        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5557$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5558	;;
5559     amd64-linux)
5560        valt_load_address_sec_norml="0xUNSET"
5561        valt_load_address_sec_inner="0xUNSET"
5562	if test x$vg_cv_only64bit = xyes; then
5563           VGCONF_ARCH_PRI="amd64"
5564           VGCONF_ARCH_SEC=""
5565	   VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5566	   VGCONF_PLATFORM_SEC_CAPS=""
5567           valt_load_address_pri_norml="0x38000000"
5568           valt_load_address_pri_inner="0x28000000"
5569	elif test x$vg_cv_only32bit = xyes; then
5570	   VGCONF_ARCH_PRI="x86"
5571           VGCONF_ARCH_SEC=""
5572	   VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5573	   VGCONF_PLATFORM_SEC_CAPS=""
5574           valt_load_address_pri_norml="0x38000000"
5575           valt_load_address_pri_inner="0x28000000"
5576	else
5577           VGCONF_ARCH_PRI="amd64"
5578           VGCONF_ARCH_SEC="x86"
5579	   VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5580	   VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5581           valt_load_address_pri_norml="0x38000000"
5582           valt_load_address_pri_inner="0x28000000"
5583           valt_load_address_sec_norml="0x38000000"
5584           valt_load_address_sec_inner="0x28000000"
5585	fi
5586        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5587$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5588	;;
5589     ppc32-linux)
5590        VGCONF_ARCH_PRI="ppc32"
5591        VGCONF_ARCH_SEC=""
5592	VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5593	VGCONF_PLATFORM_SEC_CAPS=""
5594        valt_load_address_pri_norml="0x38000000"
5595        valt_load_address_pri_inner="0x28000000"
5596        valt_load_address_sec_norml="0xUNSET"
5597        valt_load_address_sec_inner="0xUNSET"
5598        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5599$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5600	;;
5601     ppc64-aix5)
5602        valt_load_address_pri_norml="0xUNSET"
5603        valt_load_address_pri_inner="0xUNSET"
5604        valt_load_address_sec_norml="0xUNSET"
5605        valt_load_address_sec_inner="0xUNSET"
5606	if test x$vg_cv_only64bit = xyes; then
5607           VGCONF_ARCH_PRI="ppc64"
5608           VGCONF_ARCH_SEC=""
5609	   VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5610	   VGCONF_PLATFORM_SEC_CAPS=""
5611	elif test x$vg_cv_only32bit = xyes; then
5612	   VGCONF_ARCH_PRI="ppc32"
5613           VGCONF_ARCH_SEC=""
5614	   VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5615	   VGCONF_PLATFORM_SEC_CAPS=""
5616	else
5617	   VGCONF_ARCH_PRI="ppc64"
5618           VGCONF_ARCH_SEC="ppc32"
5619	   VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5620	   VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5621	fi
5622        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5623$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5624	;;
5625     ppc64-linux)
5626        valt_load_address_sec_norml="0xUNSET"
5627        valt_load_address_sec_inner="0xUNSET"
5628	if test x$vg_cv_only64bit = xyes; then
5629	   VGCONF_ARCH_PRI="ppc64"
5630           VGCONF_ARCH_SEC=""
5631	   VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5632	   VGCONF_PLATFORM_SEC_CAPS=""
5633           valt_load_address_pri_norml="0x38000000"
5634           valt_load_address_pri_inner="0x28000000"
5635	elif test x$vg_cv_only32bit = xyes; then
5636	   VGCONF_ARCH_PRI="ppc32"
5637           VGCONF_ARCH_SEC=""
5638	   VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5639	   VGCONF_PLATFORM_SEC_CAPS=""
5640           valt_load_address_pri_norml="0x38000000"
5641           valt_load_address_pri_inner="0x28000000"
5642	else
5643	   VGCONF_ARCH_PRI="ppc64"
5644           VGCONF_ARCH_SEC="ppc32"
5645	   VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5646	   VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5647           valt_load_address_pri_norml="0x38000000"
5648           valt_load_address_pri_inner="0x28000000"
5649           valt_load_address_sec_norml="0x38000000"
5650           valt_load_address_sec_inner="0x28000000"
5651	fi
5652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5653$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5654	;;
5655     # Darwin gets identified as 32-bit even when it supports 64-bit.
5656     # (Not sure why, possibly because 'uname' returns "i386"?)  Just about
5657     # all Macs support both 32-bit and 64-bit, so we just build both.  If
5658     # someone has a really old 32-bit only machine they can (hopefully?)
5659     # build with --enable-only32bit.  See bug 243362.
5660     x86-darwin|amd64-darwin)
5661        ARCH_MAX="amd64"
5662        valt_load_address_sec_norml="0xUNSET"
5663        valt_load_address_sec_inner="0xUNSET"
5664	if test x$vg_cv_only64bit = xyes; then
5665           VGCONF_ARCH_PRI="amd64"
5666           VGCONF_ARCH_SEC=""
5667	   VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5668	   VGCONF_PLATFORM_SEC_CAPS=""
5669           valt_load_address_pri_norml="0x138000000"
5670           valt_load_address_pri_inner="0x128000000"
5671	elif test x$vg_cv_only32bit = xyes; then
5672           VGCONF_ARCH_PRI="x86"
5673           VGCONF_ARCH_SEC=""
5674	   VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5675	   VGCONF_PLATFORM_SEC_CAPS=""
5676	   VGCONF_ARCH_PRI_CAPS="x86"
5677           valt_load_address_pri_norml="0x38000000"
5678           valt_load_address_pri_inner="0x28000000"
5679	else
5680           VGCONF_ARCH_PRI="amd64"
5681           VGCONF_ARCH_SEC="x86"
5682	   VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5683	   VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5684           valt_load_address_pri_norml="0x138000000"
5685           valt_load_address_pri_inner="0x128000000"
5686           valt_load_address_sec_norml="0x38000000"
5687           valt_load_address_sec_inner="0x28000000"
5688	fi
5689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5690$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5691	;;
5692     arm-linux)
5693	VGCONF_ARCH_PRI="arm"
5694	VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5695	VGCONF_PLATFORM_SEC_CAPS=""
5696	valt_load_address_pri_norml="0x38000000"
5697	valt_load_address_pri_inner="0x28000000"
5698        valt_load_address_sec_norml="0xUNSET"
5699        valt_load_address_sec_inner="0xUNSET"
5700	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5701$as_echo "ok (${host_cpu}-${host_os})" >&6; }
5702	;;
5703    *)
5704        VGCONF_ARCH_PRI="unknown"
5705        VGCONF_ARCH_SEC="unknown"
5706	VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5707	VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5708        valt_load_address_pri_norml="0xUNSET"
5709        valt_load_address_pri_inner="0xUNSET"
5710        valt_load_address_sec_norml="0xUNSET"
5711        valt_load_address_sec_inner="0xUNSET"
5712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5713$as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5714        as_fn_error "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5715        ;;
5716esac
5717
5718#----------------------------------------------------------------------------
5719
5720# Set up VGCONF_ARCHS_INCLUDE_<arch>.  Either one or two of these become
5721# defined.
5722 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5723                 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5724                 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5725                 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5726  VGCONF_ARCHS_INCLUDE_X86_TRUE=
5727  VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5728else
5729  VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5730  VGCONF_ARCHS_INCLUDE_X86_FALSE=
5731fi
5732
5733 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5734                 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5735  VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5736  VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5737else
5738  VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5739  VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5740fi
5741
5742 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5743                 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5744                 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5745                 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5746  VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5747  VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5748else
5749  VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5750  VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5751fi
5752
5753 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5754                 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5755  VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5756  VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5757else
5758  VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5759  VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5760fi
5761
5762 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5763  VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5764  VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5765else
5766  VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5767  VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5768fi
5769
5770
5771# Set up VGCONF_PLATFORMS_INCLUDE_<platform>.  Either one or two of these
5772# become defined.
5773 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5774                 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5775  VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5776  VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5777else
5778  VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5779  VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5780fi
5781
5782 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5783  VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5784  VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5785else
5786  VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5787  VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5788fi
5789
5790 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5791                 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5792  VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5793  VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5794else
5795  VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5796  VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5797fi
5798
5799 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5800  VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5801  VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5802else
5803  VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5804  VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5805fi
5806
5807 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5808  VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5809  VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5810else
5811  VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5812  VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5813fi
5814
5815
5816 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5817                 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5818  VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5819  VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5820else
5821  VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5822  VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5823fi
5824
5825 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5826  VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5827  VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5828else
5829  VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5830  VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5831fi
5832
5833
5834 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5835                 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5836  VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5837  VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5838else
5839  VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5840  VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5841fi
5842
5843 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5844  VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5845  VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5846else
5847  VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5848  VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5849fi
5850
5851
5852
5853# Similarly, set up VGCONF_OS_IS_<os>.  Exactly one of these becomes defined.
5854# Relies on the assumption that the primary and secondary targets are
5855# for the same OS, so therefore only necessary to test the primary.
5856 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5857                 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5858                 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5859                 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5860                 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5861  VGCONF_OS_IS_LINUX_TRUE=
5862  VGCONF_OS_IS_LINUX_FALSE='#'
5863else
5864  VGCONF_OS_IS_LINUX_TRUE='#'
5865  VGCONF_OS_IS_LINUX_FALSE=
5866fi
5867
5868 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5869                 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5870  VGCONF_OS_IS_AIX5_TRUE=
5871  VGCONF_OS_IS_AIX5_FALSE='#'
5872else
5873  VGCONF_OS_IS_AIX5_TRUE='#'
5874  VGCONF_OS_IS_AIX5_FALSE=
5875fi
5876
5877 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5878                 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5879  VGCONF_OS_IS_DARWIN_TRUE=
5880  VGCONF_OS_IS_DARWIN_FALSE='#'
5881else
5882  VGCONF_OS_IS_DARWIN_TRUE='#'
5883  VGCONF_OS_IS_DARWIN_FALSE=
5884fi
5885
5886
5887
5888# Sometimes, in the Makefile.am files, it's useful to know whether or not
5889# there is a secondary target.
5890 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5891  VGCONF_HAVE_PLATFORM_SEC_TRUE=
5892  VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5893else
5894  VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5895  VGCONF_HAVE_PLATFORM_SEC_FALSE=
5896fi
5897
5898
5899
5900#----------------------------------------------------------------------------
5901# Inner Valgrind?
5902#----------------------------------------------------------------------------
5903
5904# Check if this should be built as an inner Valgrind, to be run within
5905# another Valgrind.  Choose the load address accordingly.
5906
5907
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5909$as_echo_n "checking for use as an inner Valgrind... " >&6; }
5910if test "${vg_cv_inner+set}" = set; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  # Check whether --enable-inner was given.
5914if test "${enable_inner+set}" = set; then :
5915  enableval=$enable_inner; vg_cv_inner=$enableval
5916else
5917  vg_cv_inner=no
5918fi
5919
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5922$as_echo "$vg_cv_inner" >&6; }
5923if test "$vg_cv_inner" = yes; then
5924
5925$as_echo "#define ENABLE_INNER 1" >>confdefs.h
5926
5927    VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5928    VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5929else
5930    VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5931    VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5932fi
5933
5934
5935#----------------------------------------------------------------------------
5936# Libc and suppressions
5937#----------------------------------------------------------------------------
5938# This variable will collect the suppression files to be used.
5939
5940
5941
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5943$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5944if test "${ac_cv_path_GREP+set}" = set; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  if test -z "$GREP"; then
5948  ac_path_GREP_found=false
5949  # Loop through the user's path and test for each of PROGNAME-LIST
5950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955    for ac_prog in grep ggrep; do
5956    for ac_exec_ext in '' $ac_executable_extensions; do
5957      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5958      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5959# Check for GNU ac_path_GREP and select it if it is found.
5960  # Check for GNU $ac_path_GREP
5961case `"$ac_path_GREP" --version 2>&1` in
5962*GNU*)
5963  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5964*)
5965  ac_count=0
5966  $as_echo_n 0123456789 >"conftest.in"
5967  while :
5968  do
5969    cat "conftest.in" "conftest.in" >"conftest.tmp"
5970    mv "conftest.tmp" "conftest.in"
5971    cp "conftest.in" "conftest.nl"
5972    $as_echo 'GREP' >> "conftest.nl"
5973    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5974    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5975    as_fn_arith $ac_count + 1 && ac_count=$as_val
5976    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5977      # Best one so far, save it but keep looking for a better one
5978      ac_cv_path_GREP="$ac_path_GREP"
5979      ac_path_GREP_max=$ac_count
5980    fi
5981    # 10*(2^10) chars as input seems more than enough
5982    test $ac_count -gt 10 && break
5983  done
5984  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5985esac
5986
5987      $ac_path_GREP_found && break 3
5988    done
5989  done
5990  done
5991IFS=$as_save_IFS
5992  if test -z "$ac_cv_path_GREP"; then
5993    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5994  fi
5995else
5996  ac_cv_path_GREP=$GREP
5997fi
5998
5999fi
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6001$as_echo "$ac_cv_path_GREP" >&6; }
6002 GREP="$ac_cv_path_GREP"
6003
6004
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6006$as_echo_n "checking for egrep... " >&6; }
6007if test "${ac_cv_path_EGREP+set}" = set; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6011   then ac_cv_path_EGREP="$GREP -E"
6012   else
6013     if test -z "$EGREP"; then
6014  ac_path_EGREP_found=false
6015  # Loop through the user's path and test for each of PROGNAME-LIST
6016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6018do
6019  IFS=$as_save_IFS
6020  test -z "$as_dir" && as_dir=.
6021    for ac_prog in egrep; do
6022    for ac_exec_ext in '' $ac_executable_extensions; do
6023      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6024      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6025# Check for GNU ac_path_EGREP and select it if it is found.
6026  # Check for GNU $ac_path_EGREP
6027case `"$ac_path_EGREP" --version 2>&1` in
6028*GNU*)
6029  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6030*)
6031  ac_count=0
6032  $as_echo_n 0123456789 >"conftest.in"
6033  while :
6034  do
6035    cat "conftest.in" "conftest.in" >"conftest.tmp"
6036    mv "conftest.tmp" "conftest.in"
6037    cp "conftest.in" "conftest.nl"
6038    $as_echo 'EGREP' >> "conftest.nl"
6039    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6040    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6041    as_fn_arith $ac_count + 1 && ac_count=$as_val
6042    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6043      # Best one so far, save it but keep looking for a better one
6044      ac_cv_path_EGREP="$ac_path_EGREP"
6045      ac_path_EGREP_max=$ac_count
6046    fi
6047    # 10*(2^10) chars as input seems more than enough
6048    test $ac_count -gt 10 && break
6049  done
6050  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6051esac
6052
6053      $ac_path_EGREP_found && break 3
6054    done
6055  done
6056  done
6057IFS=$as_save_IFS
6058  if test -z "$ac_cv_path_EGREP"; then
6059    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6060  fi
6061else
6062  ac_cv_path_EGREP=$EGREP
6063fi
6064
6065   fi
6066fi
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6068$as_echo "$ac_cv_path_EGREP" >&6; }
6069 EGREP="$ac_cv_path_EGREP"
6070
6071
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6073$as_echo_n "checking for ANSI C header files... " >&6; }
6074if test "${ac_cv_header_stdc+set}" = set; then :
6075  $as_echo_n "(cached) " >&6
6076else
6077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h.  */
6079#include <stdlib.h>
6080#include <stdarg.h>
6081#include <string.h>
6082#include <float.h>
6083
6084int
6085main ()
6086{
6087
6088  ;
6089  return 0;
6090}
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093  ac_cv_header_stdc=yes
6094else
6095  ac_cv_header_stdc=no
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098
6099if test $ac_cv_header_stdc = yes; then
6100  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102/* end confdefs.h.  */
6103#include <string.h>
6104
6105_ACEOF
6106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107  $EGREP "memchr" >/dev/null 2>&1; then :
6108
6109else
6110  ac_cv_header_stdc=no
6111fi
6112rm -f conftest*
6113
6114fi
6115
6116if test $ac_cv_header_stdc = yes; then
6117  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120#include <stdlib.h>
6121
6122_ACEOF
6123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124  $EGREP "free" >/dev/null 2>&1; then :
6125
6126else
6127  ac_cv_header_stdc=no
6128fi
6129rm -f conftest*
6130
6131fi
6132
6133if test $ac_cv_header_stdc = yes; then
6134  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6135  if test "$cross_compiling" = yes; then :
6136  :
6137else
6138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140#include <ctype.h>
6141#include <stdlib.h>
6142#if ((' ' & 0x0FF) == 0x020)
6143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6145#else
6146# define ISLOWER(c) \
6147		   (('a' <= (c) && (c) <= 'i') \
6148		     || ('j' <= (c) && (c) <= 'r') \
6149		     || ('s' <= (c) && (c) <= 'z'))
6150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6151#endif
6152
6153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6154int
6155main ()
6156{
6157  int i;
6158  for (i = 0; i < 256; i++)
6159    if (XOR (islower (i), ISLOWER (i))
6160	|| toupper (i) != TOUPPER (i))
6161      return 2;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_run "$LINENO"; then :
6166
6167else
6168  ac_cv_header_stdc=no
6169fi
6170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6171  conftest.$ac_objext conftest.beam conftest.$ac_ext
6172fi
6173
6174fi
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6177$as_echo "$ac_cv_header_stdc" >&6; }
6178if test $ac_cv_header_stdc = yes; then
6179
6180$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6181
6182fi
6183
6184# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6185for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6186		  inttypes.h stdint.h unistd.h
6187do :
6188  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6189ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6190"
6191eval as_val=\$$as_ac_Header
6192   if test "x$as_val" = x""yes; then :
6193  cat >>confdefs.h <<_ACEOF
6194#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6195_ACEOF
6196
6197fi
6198
6199done
6200
6201
6202ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6203if test "x$ac_cv_header_features_h" = x""yes; then :
6204
6205fi
6206
6207
6208
6209if test x$ac_cv_header_features_h = xyes; then
6210  rm -f conftest.$ac_ext
6211  cat <<_ACEOF >conftest.$ac_ext
6212#include <features.h>
6213#if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6214glibc version is: __GLIBC__ __GLIBC_MINOR__
6215#endif
6216_ACEOF
6217  GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6218fi
6219
6220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222
6223#include <standards.h>
6224#if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6225  AIX5_LIBC
6226#endif
6227
6228_ACEOF
6229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230  $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6231  GLIBC_VERSION="aix5"
6232fi
6233rm -f conftest*
6234
6235
6236# not really a version check
6237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h.  */
6239
6240#include <sys/cdefs.h>
6241#if defined(__DARWIN_VERS_1050)
6242  DARWIN_LIBC
6243#endif
6244
6245_ACEOF
6246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6247  $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6248  GLIBC_VERSION="darwin"
6249fi
6250rm -f conftest*
6251
6252
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6254$as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6255
6256case "${GLIBC_VERSION}" in
6257     2.2)
6258	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6259$as_echo "2.2 family" >&6; }
6260
6261$as_echo "#define GLIBC_2_2 1" >>confdefs.h
6262
6263	DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6264	DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6265	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6266	;;
6267
6268     2.3)
6269	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6270$as_echo "2.3 family" >&6; }
6271
6272$as_echo "#define GLIBC_2_3 1" >>confdefs.h
6273
6274	DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6275	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6276	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6277	;;
6278
6279     2.4)
6280	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6281$as_echo "2.4 family" >&6; }
6282
6283$as_echo "#define GLIBC_2_4 1" >>confdefs.h
6284
6285	DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6286	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6287	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6288	;;
6289
6290     2.5)
6291	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6292$as_echo "2.5 family" >&6; }
6293
6294$as_echo "#define GLIBC_2_5 1" >>confdefs.h
6295
6296	DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6297	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6298	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6299	;;
6300     2.6)
6301	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6302$as_echo "2.6 family" >&6; }
6303
6304$as_echo "#define GLIBC_2_6 1" >>confdefs.h
6305
6306	DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6307	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6308	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6309	;;
6310     2.7)
6311	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6312$as_echo "2.7 family" >&6; }
6313
6314$as_echo "#define GLIBC_2_7 1" >>confdefs.h
6315
6316	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6317	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6318	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6319	;;
6320     2.8)
6321	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6322$as_echo "2.8 family" >&6; }
6323
6324$as_echo "#define GLIBC_2_8 1" >>confdefs.h
6325
6326	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6327	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6328	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6329	;;
6330     2.9)
6331	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6332$as_echo "2.9 family" >&6; }
6333
6334$as_echo "#define GLIBC_2_9 1" >>confdefs.h
6335
6336	DEFAULT_SUPP="glibc-2.X.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     2.10)
6341	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6342$as_echo "2.10 family" >&6; }
6343
6344$as_echo "#define GLIBC_2_10 1" >>confdefs.h
6345
6346	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6347	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6348	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6349	;;
6350     2.11)
6351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6352$as_echo "2.11 family" >&6; }
6353
6354$as_echo "#define GLIBC_2_11 1" >>confdefs.h
6355
6356	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6357	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6358	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6359        ;;
6360     2.12)
6361	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6362$as_echo "2.12 family" >&6; }
6363
6364$as_echo "#define GLIBC_2_12 1" >>confdefs.h
6365
6366	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6367	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6368	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6369	;;
6370     2.13)
6371	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.13 family" >&5
6372$as_echo "2.13 family" >&6; }
6373
6374$as_echo "#define GLIBC_2_13 1" >>confdefs.h
6375
6376	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6377	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6378	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6379	;;
6380     aix5)
6381	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6382$as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6383
6384$as_echo "#define AIX5_LIBC 1" >>confdefs.h
6385
6386	DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6387	;;
6388     darwin)
6389	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6390$as_echo "Darwin" >&6; }
6391
6392$as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6393
6394	# DEFAULT_SUPP set by kernel version check above.
6395	;;
6396
6397     *)
6398	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6399$as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6400	as_fn_error "Valgrind requires glibc version 2.2 - 2.13" "$LINENO" 5
6401	as_fn_error "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6402	as_fn_error "or Darwin libc" "$LINENO" 5
6403	;;
6404esac
6405
6406
6407
6408
6409# Add default suppressions for the X client libraries.  Make no
6410# attempt to detect whether such libraries are installed on the
6411# build machine (or even if any X facilities are present); just
6412# add the suppressions antidisirregardless.
6413DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6414DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6415
6416# Add glibc and X11 suppressions for exp-ptrcheck
6417DEFAULT_SUPP="exp-ptrcheck.supp ${DEFAULT_SUPP}"
6418
6419
6420#----------------------------------------------------------------------------
6421# Checking for various library functions and other definitions
6422#----------------------------------------------------------------------------
6423
6424# Check for CLOCK_MONOTONIC
6425
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6427$as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6428
6429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431
6432#include <time.h>
6433
6434int
6435main ()
6436{
6437
6438  struct timespec t;
6439  clock_gettime(CLOCK_MONOTONIC, &t);
6440  return 0;
6441
6442  ;
6443  return 0;
6444}
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"; then :
6447
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6449$as_echo "yes" >&6; }
6450
6451$as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6452
6453
6454else
6455
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457$as_echo "no" >&6; }
6458
6459fi
6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461
6462
6463# Check for PTHREAD_MUTEX_ADAPTIVE_NP
6464
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6466$as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6467
6468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470
6471#define _GNU_SOURCE
6472#include <pthread.h>
6473
6474int
6475main ()
6476{
6477
6478  return (PTHREAD_MUTEX_ADAPTIVE_NP);
6479
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484if ac_fn_c_try_compile "$LINENO"; then :
6485
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6487$as_echo "yes" >&6; }
6488
6489$as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6490
6491
6492else
6493
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495$as_echo "no" >&6; }
6496
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499
6500
6501# Check for PTHREAD_MUTEX_ERRORCHECK_NP
6502
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6504$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6505
6506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h.  */
6508
6509#define _GNU_SOURCE
6510#include <pthread.h>
6511
6512int
6513main ()
6514{
6515
6516  return (PTHREAD_MUTEX_ERRORCHECK_NP);
6517
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522if ac_fn_c_try_compile "$LINENO"; then :
6523
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525$as_echo "yes" >&6; }
6526
6527$as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6528
6529
6530else
6531
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533$as_echo "no" >&6; }
6534
6535fi
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537
6538
6539# Check for PTHREAD_MUTEX_RECURSIVE_NP
6540
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6542$as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6543
6544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h.  */
6546
6547#define _GNU_SOURCE
6548#include <pthread.h>
6549
6550int
6551main ()
6552{
6553
6554  return (PTHREAD_MUTEX_RECURSIVE_NP);
6555
6556  ;
6557  return 0;
6558}
6559_ACEOF
6560if ac_fn_c_try_compile "$LINENO"; then :
6561
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563$as_echo "yes" >&6; }
6564
6565$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6566
6567
6568else
6569
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572
6573fi
6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575
6576
6577# Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6578
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6580$as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6581
6582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h.  */
6584
6585#define _GNU_SOURCE
6586#include <pthread.h>
6587
6588int
6589main ()
6590{
6591
6592  pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6593  return 0;
6594
6595  ;
6596  return 0;
6597}
6598_ACEOF
6599if ac_fn_c_try_compile "$LINENO"; then :
6600
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6602$as_echo "yes" >&6; }
6603
6604$as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6605
6606
6607else
6608
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610$as_echo "no" >&6; }
6611
6612fi
6613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614
6615
6616# Check whether pthread_mutex_t has a member called __m_kind.
6617
6618ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__m_kind" "ac_cv_member_pthread_mutex_t___m_kind" "#include <pthread.h>
6619"
6620if test "x$ac_cv_member_pthread_mutex_t___m_kind" = x""yes; then :
6621
6622$as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6623
6624
6625fi
6626
6627
6628
6629# Check whether pthread_mutex_t has a member called __data.__kind.
6630
6631ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__kind" "ac_cv_member_pthread_mutex_t___data___kind" "#include <pthread.h>
6632"
6633if test "x$ac_cv_member_pthread_mutex_t___data___kind" = x""yes; then :
6634
6635$as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6636
6637
6638fi
6639
6640
6641
6642# does this compiler support -maltivec and does it have the include file
6643# <altivec.h> ?
6644
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6646$as_echo_n "checking for Altivec... " >&6; }
6647
6648safe_CFLAGS=$CFLAGS
6649CFLAGS="-maltivec"
6650
6651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653
6654#include <altivec.h>
6655
6656int
6657main ()
6658{
6659
6660  vector unsigned int v;
6661
6662  ;
6663  return 0;
6664}
6665_ACEOF
6666if ac_fn_c_try_compile "$LINENO"; then :
6667
6668ac_have_altivec=yes
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6670$as_echo "yes" >&6; }
6671
6672$as_echo "#define HAS_ALTIVEC 1" >>confdefs.h
6673
6674
6675else
6676
6677ac_have_altivec=no
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679$as_echo "no" >&6; }
6680
6681fi
6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683CFLAGS=$safe_CFLAGS
6684
6685 if test x$ac_have_altivec = xyes; then
6686  HAS_ALTIVEC_TRUE=
6687  HAS_ALTIVEC_FALSE='#'
6688else
6689  HAS_ALTIVEC_TRUE='#'
6690  HAS_ALTIVEC_FALSE=
6691fi
6692
6693
6694
6695# Check for pthread_create@GLIBC2.0
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6697$as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6698
6699safe_CFLAGS=$CFLAGS
6700CFLAGS="-lpthread"
6701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h.  */
6703
6704extern int pthread_create_glibc_2_0(void*, const void*,
6705                                    void *(*)(void*), void*);
6706__asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6707
6708int
6709main ()
6710{
6711
6712#ifdef __powerpc__
6713/*
6714 * Apparently on PowerPC linking this program succeeds and generates an
6715 * executable with the undefined symbol pthread_create@GLIBC_2.0.
6716 */
6717#error This test does not work properly on PowerPC.
6718#else
6719  pthread_create_glibc_2_0(0, 0, 0, 0);
6720#endif
6721  return 0;
6722
6723  ;
6724  return 0;
6725}
6726_ACEOF
6727if ac_fn_c_try_link "$LINENO"; then :
6728
6729ac_have_pthread_create_glibc_2_0=yes
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6731$as_echo "yes" >&6; }
6732
6733$as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6734
6735
6736else
6737
6738ac_have_pthread_create_glibc_2_0=no
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740$as_echo "no" >&6; }
6741
6742fi
6743rm -f core conftest.err conftest.$ac_objext \
6744    conftest$ac_exeext conftest.$ac_ext
6745CFLAGS=$safe_CFLAGS
6746
6747 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6748  HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6749  HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6750else
6751  HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6752  HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6753fi
6754
6755
6756
6757# Check for eventfd_t, eventfd() and eventfd_read()
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6759$as_echo_n "checking for eventfd()... " >&6; }
6760
6761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762/* end confdefs.h.  */
6763
6764#include <sys/eventfd.h>
6765
6766int
6767main ()
6768{
6769
6770  eventfd_t ev;
6771  int fd;
6772
6773  fd = eventfd(5, 0);
6774  eventfd_read(fd, &ev);
6775  return 0;
6776
6777  ;
6778  return 0;
6779}
6780_ACEOF
6781if ac_fn_c_try_link "$LINENO"; then :
6782
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6784$as_echo "yes" >&6; }
6785
6786$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
6787
6788
6789$as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
6790
6791
6792else
6793
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
6796
6797fi
6798rm -f core conftest.err conftest.$ac_objext \
6799    conftest$ac_exeext conftest.$ac_ext
6800
6801
6802#----------------------------------------------------------------------------
6803# Checking for supported compiler flags.
6804#----------------------------------------------------------------------------
6805
6806# does this compiler support -m32 ?
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
6808$as_echo_n "checking if gcc accepts -m32... " >&6; }
6809
6810safe_CFLAGS=$CFLAGS
6811CFLAGS="-m32"
6812
6813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814/* end confdefs.h.  */
6815
6816int
6817main ()
6818{
6819
6820  return 0;
6821
6822  ;
6823  return 0;
6824}
6825_ACEOF
6826if ac_fn_c_try_compile "$LINENO"; then :
6827
6828FLAG_M32="-m32"
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6830$as_echo "yes" >&6; }
6831
6832else
6833
6834FLAG_M32=""
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836$as_echo "no" >&6; }
6837
6838fi
6839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840CFLAGS=$safe_CFLAGS
6841
6842
6843
6844
6845# does this compiler support -maix32 ?
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
6847$as_echo_n "checking if gcc accepts -maix32... " >&6; }
6848
6849safe_CFLAGS=$CFLAGS
6850CFLAGS="-maix32"
6851
6852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853/* end confdefs.h.  */
6854
6855int
6856main ()
6857{
6858
6859  return 0;
6860
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865if ac_fn_c_try_compile "$LINENO"; then :
6866
6867FLAG_MAIX32="-maix32"
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6869$as_echo "yes" >&6; }
6870
6871else
6872
6873FLAG_MAIX32=""
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875$as_echo "no" >&6; }
6876
6877fi
6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879CFLAGS=$safe_CFLAGS
6880
6881
6882
6883
6884# does this compiler support -m64 ?
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
6886$as_echo_n "checking if gcc accepts -m64... " >&6; }
6887
6888safe_CFLAGS=$CFLAGS
6889CFLAGS="-m64"
6890
6891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893
6894int
6895main ()
6896{
6897
6898  return 0;
6899
6900  ;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_c_try_compile "$LINENO"; then :
6905
6906FLAG_M64="-m64"
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6908$as_echo "yes" >&6; }
6909
6910else
6911
6912FLAG_M64=""
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914$as_echo "no" >&6; }
6915
6916fi
6917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918CFLAGS=$safe_CFLAGS
6919
6920
6921
6922
6923# does this compiler support -maix64 ?
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
6925$as_echo_n "checking if gcc accepts -maix64... " >&6; }
6926
6927safe_CFLAGS=$CFLAGS
6928CFLAGS="-maix64"
6929
6930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931/* end confdefs.h.  */
6932
6933int
6934main ()
6935{
6936
6937  return 0;
6938
6939  ;
6940  return 0;
6941}
6942_ACEOF
6943if ac_fn_c_try_compile "$LINENO"; then :
6944
6945FLAG_MAIX64="-maix64"
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6947$as_echo "yes" >&6; }
6948
6949else
6950
6951FLAG_MAIX64=""
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953$as_echo "no" >&6; }
6954
6955fi
6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957CFLAGS=$safe_CFLAGS
6958
6959
6960
6961
6962# does this compiler support -mmmx ?
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
6964$as_echo_n "checking if gcc accepts -mmmx... " >&6; }
6965
6966safe_CFLAGS=$CFLAGS
6967CFLAGS="-mmmx"
6968
6969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971
6972int
6973main ()
6974{
6975
6976  return 0;
6977
6978  ;
6979  return 0;
6980}
6981_ACEOF
6982if ac_fn_c_try_compile "$LINENO"; then :
6983
6984FLAG_MMMX="-mmmx"
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6986$as_echo "yes" >&6; }
6987
6988else
6989
6990FLAG_MMMX=""
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992$as_echo "no" >&6; }
6993
6994fi
6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996CFLAGS=$safe_CFLAGS
6997
6998
6999
7000
7001# does this compiler support -msse ?
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7003$as_echo_n "checking if gcc accepts -msse... " >&6; }
7004
7005safe_CFLAGS=$CFLAGS
7006CFLAGS="-msse"
7007
7008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009/* end confdefs.h.  */
7010
7011int
7012main ()
7013{
7014
7015  return 0;
7016
7017  ;
7018  return 0;
7019}
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"; then :
7022
7023FLAG_MSSE="-msse"
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7025$as_echo "yes" >&6; }
7026
7027else
7028
7029FLAG_MSSE=""
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031$as_echo "no" >&6; }
7032
7033fi
7034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035CFLAGS=$safe_CFLAGS
7036
7037
7038
7039
7040# does this compiler support -mpreferred-stack-boundary=2 ?
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7042$as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7043
7044safe_CFLAGS=$CFLAGS
7045CFLAGS="-mpreferred-stack-boundary=2"
7046
7047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049
7050int
7051main ()
7052{
7053
7054  return 0;
7055
7056  ;
7057  return 0;
7058}
7059_ACEOF
7060if ac_fn_c_try_compile "$LINENO"; then :
7061
7062PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7064$as_echo "yes" >&6; }
7065
7066else
7067
7068PREFERRED_STACK_BOUNDARY=""
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070$as_echo "no" >&6; }
7071
7072fi
7073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074CFLAGS=$safe_CFLAGS
7075
7076
7077
7078
7079# does this compiler support -Wno-pointer-sign ?
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7081$as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7082
7083safe_CFLAGS=$CFLAGS
7084CFLAGS="-Wno-pointer-sign"
7085
7086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087/* end confdefs.h.  */
7088
7089int
7090main ()
7091{
7092
7093  return 0;
7094
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099if ac_fn_c_try_compile "$LINENO"; then :
7100
7101no_pointer_sign=yes
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7103$as_echo "yes" >&6; }
7104
7105else
7106
7107no_pointer_sign=no
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109$as_echo "no" >&6; }
7110
7111fi
7112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113CFLAGS=$safe_CFLAGS
7114
7115if test x$no_pointer_sign = xyes; then
7116  CFLAGS="$CFLAGS -Wno-pointer-sign"
7117fi
7118
7119
7120# does this compiler support -Wno-empty-body ?
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7123$as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7124
7125safe_CFLAGS=$CFLAGS
7126CFLAGS="-Wno-empty-body"
7127
7128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129/* end confdefs.h.  */
7130
7131int
7132main ()
7133{
7134
7135  return 0;
7136
7137  ;
7138  return 0;
7139}
7140_ACEOF
7141if ac_fn_c_try_compile "$LINENO"; then :
7142
7143FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7144
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7146$as_echo "yes" >&6; }
7147
7148else
7149
7150
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152$as_echo "no" >&6; }
7153
7154fi
7155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156CFLAGS=$safe_CFLAGS
7157
7158
7159# does this compiler support -Wno-format-zero-length ?
7160
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7162$as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7163
7164safe_CFLAGS=$CFLAGS
7165CFLAGS="-Wno-format-zero-length"
7166
7167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h.  */
7169
7170int
7171main ()
7172{
7173
7174  return 0;
7175
7176  ;
7177  return 0;
7178}
7179_ACEOF
7180if ac_fn_c_try_compile "$LINENO"; then :
7181
7182FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7183
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7185$as_echo "yes" >&6; }
7186
7187else
7188
7189
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
7192
7193fi
7194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195CFLAGS=$safe_CFLAGS
7196
7197
7198# does this compiler support -Wno-uninitialized ?
7199
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7201$as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7202
7203safe_CFLAGS=$CFLAGS
7204CFLAGS="-Wno-uninitialized"
7205
7206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h.  */
7208
7209int
7210main ()
7211{
7212
7213  return 0;
7214
7215  ;
7216  return 0;
7217}
7218_ACEOF
7219if ac_fn_c_try_compile "$LINENO"; then :
7220
7221FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7222
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7224$as_echo "yes" >&6; }
7225
7226else
7227
7228
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231
7232fi
7233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234CFLAGS=$safe_CFLAGS
7235
7236
7237# does this compiler support -Wextra or the older -W ?
7238
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7240$as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7241
7242safe_CFLAGS=$CFLAGS
7243CFLAGS="-Wextra"
7244
7245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247
7248int
7249main ()
7250{
7251
7252  return 0;
7253
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258if ac_fn_c_try_compile "$LINENO"; then :
7259
7260FLAG_W_EXTRA=-Wextra
7261
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7263$as_echo "-Wextra" >&6; }
7264
7265else
7266
7267  CFLAGS="-W"
7268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h.  */
7270
7271int
7272main ()
7273{
7274
7275    return 0;
7276
7277  ;
7278  return 0;
7279}
7280_ACEOF
7281if ac_fn_c_try_compile "$LINENO"; then :
7282
7283  FLAG_W_EXTRA=-W
7284
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7286$as_echo "-W" >&6; }
7287
7288else
7289
7290
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7292$as_echo "not supported" >&6; }
7293
7294fi
7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296
7297fi
7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299CFLAGS=$safe_CFLAGS
7300
7301
7302# does this compiler support -fno-stack-protector ?
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7304$as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7305
7306safe_CFLAGS=$CFLAGS
7307CFLAGS="-fno-stack-protector"
7308
7309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h.  */
7311
7312int
7313main ()
7314{
7315
7316  return 0;
7317
7318  ;
7319  return 0;
7320}
7321_ACEOF
7322if ac_fn_c_try_compile "$LINENO"; then :
7323
7324no_stack_protector=yes
7325FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327$as_echo "yes" >&6; }
7328
7329else
7330
7331no_stack_protector=no
7332FLAG_FNO_STACK_PROTECTOR=""
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7335
7336fi
7337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338CFLAGS=$safe_CFLAGS
7339
7340
7341
7342if test x$no_stack_protector = xyes; then
7343  CFLAGS="$CFLAGS -fno-stack-protector"
7344fi
7345
7346
7347# does this compiler support --param inline-unit-growth=... ?
7348
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7350$as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7351
7352safe_CFLAGS=$CFLAGS
7353CFLAGS="--param inline-unit-growth=900"
7354
7355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357
7358int
7359main ()
7360{
7361
7362  return 0;
7363
7364  ;
7365  return 0;
7366}
7367_ACEOF
7368if ac_fn_c_try_compile "$LINENO"; then :
7369
7370FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7371
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7373$as_echo "yes" >&6; }
7374
7375else
7376
7377FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7378
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381
7382fi
7383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384CFLAGS=$safe_CFLAGS
7385
7386
7387# does the linker support -Wl,--build-id=none ?  Note, it's
7388# important that we test indirectly via whichever C compiler
7389# is selected, rather than testing /usr/bin/ld or whatever
7390# directly.
7391
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7393$as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7394
7395safe_CFLAGS=$CFLAGS
7396CFLAGS="-Wl,--build-id=none"
7397
7398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400
7401int
7402main ()
7403{
7404return 0;
7405  ;
7406  return 0;
7407}
7408_ACEOF
7409if ac_fn_c_try_link "$LINENO"; then :
7410
7411  FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7412
7413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7414$as_echo "yes" >&6; }
7415
7416else
7417
7418  FLAG_NO_BUILD_ID=""
7419
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422
7423fi
7424rm -f core conftest.err conftest.$ac_objext \
7425    conftest$ac_exeext conftest.$ac_ext
7426CFLAGS=$safe_CFLAGS
7427
7428
7429# does the ppc assembler support "mtocrf" et al?
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7431$as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7432
7433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435
7436int
7437main ()
7438{
7439
7440__asm__ __volatile__("mtocrf 4,0");
7441__asm__ __volatile__("mfocrf 0,4");
7442
7443  ;
7444  return 0;
7445}
7446_ACEOF
7447if ac_fn_c_try_compile "$LINENO"; then :
7448
7449ac_have_as_ppc_mftocrf=yes
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451$as_echo "yes" >&6; }
7452
7453else
7454
7455ac_have_as_ppc_mftocrf=no
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457$as_echo "no" >&6; }
7458
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461if test x$ac_have_as_ppc_mftocrf = xyes ; then
7462
7463$as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7464
7465fi
7466
7467
7468# does the x86/amd64 assembler understand SSE3 instructions?
7469# Note, this doesn't generate a C-level symbol.  It generates a
7470# automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7472$as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7473
7474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476
7477int
7478main ()
7479{
7480
7481  do { long long int x;
7482     __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7483  while (0)
7484
7485  ;
7486  return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_compile "$LINENO"; then :
7490
7491ac_have_as_sse3=yes
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7493$as_echo "yes" >&6; }
7494
7495else
7496
7497ac_have_as_sse3=no
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499$as_echo "no" >&6; }
7500
7501fi
7502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503
7504 if test x$ac_have_as_sse3 = xyes; then
7505  BUILD_SSE3_TESTS_TRUE=
7506  BUILD_SSE3_TESTS_FALSE='#'
7507else
7508  BUILD_SSE3_TESTS_TRUE='#'
7509  BUILD_SSE3_TESTS_FALSE=
7510fi
7511
7512
7513
7514# Ditto for SSSE3 instructions (note extra S)
7515# Note, this doesn't generate a C-level symbol.  It generates a
7516# automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7518$as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7519
7520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h.  */
7522
7523int
7524main ()
7525{
7526
7527  do { long long int x;
7528   __asm__ __volatile__(
7529      "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7530  while (0)
7531
7532  ;
7533  return 0;
7534}
7535_ACEOF
7536if ac_fn_c_try_compile "$LINENO"; then :
7537
7538ac_have_as_ssse3=yes
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7540$as_echo "yes" >&6; }
7541
7542else
7543
7544ac_have_as_ssse3=no
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546$as_echo "no" >&6; }
7547
7548fi
7549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550
7551 if test x$ac_have_as_ssse3 = xyes; then
7552  BUILD_SSSE3_TESTS_TRUE=
7553  BUILD_SSSE3_TESTS_FALSE='#'
7554else
7555  BUILD_SSSE3_TESTS_TRUE='#'
7556  BUILD_SSSE3_TESTS_FALSE=
7557fi
7558
7559
7560
7561# Note: we're really checking the assembler-level support, not gcc's ;
7562# C-level code might require the flag -mpclmul be passed to gcc (e.g. to
7563# compile code which uses wmmintrin.h). Doesn't matter since tests also
7564# use inline assembly directly
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
7566$as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
7567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568/* end confdefs.h.  */
7569
7570int
7571main ()
7572{
7573
7574  do {
7575   __asm__ __volatile__(
7576      "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
7577  while (0)
7578
7579  ;
7580  return 0;
7581}
7582_ACEOF
7583if ac_fn_c_try_compile "$LINENO"; then :
7584
7585ac_have_as_pclmulqdq=yes
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7587$as_echo "yes" >&6; }
7588
7589else
7590
7591ac_have_as_pclmulqdq=no
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593$as_echo "no" >&6; }
7594
7595fi
7596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597
7598 if test x$ac_have_as_pclmulqdq = xyes; then
7599  BUILD_PCLMULQDQ_TESTS_TRUE=
7600  BUILD_PCLMULQDQ_TESTS_FALSE='#'
7601else
7602  BUILD_PCLMULQDQ_TESTS_TRUE='#'
7603  BUILD_PCLMULQDQ_TESTS_FALSE=
7604fi
7605
7606
7607
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
7609$as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
7610
7611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613
7614int
7615main ()
7616{
7617
7618  do {
7619      __asm__ __volatile__("lzcnt %rax,%rax");
7620  } while (0)
7621
7622  ;
7623  return 0;
7624}
7625_ACEOF
7626if ac_fn_c_try_compile "$LINENO"; then :
7627
7628  ac_have_as_lzcnt=yes
7629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7630$as_echo "yes" >&6; }
7631
7632else
7633
7634  ac_have_as_lzcnt=no
7635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
7637
7638fi
7639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640
7641 if test x$ac_have_as_lzcnt = xyes; then
7642  BUILD_LZCNT_TESTS_TRUE=
7643  BUILD_LZCNT_TESTS_FALSE='#'
7644else
7645  BUILD_LZCNT_TESTS_TRUE='#'
7646  BUILD_LZCNT_TESTS_FALSE=
7647fi
7648
7649
7650# XXX JRS 2010 Oct 13: what is this for?  For sure, we don't need this
7651# when building the tool executables.  I think we should get rid of it.
7652#
7653# Check for TLS support in the compiler and linker
7654if test "x${cross_compiling}" = "xno"; then
7655# Native compilation: check whether running a program using TLS succeeds.
7656# Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
7657# succeeds but running programs using TLS fails.
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7659$as_echo_n "checking for TLS support... " >&6; }
7660if test "${vg_cv_tls+set}" = set; then :
7661  $as_echo_n "(cached) " >&6
7662else
7663  # Check whether --enable-tls was given.
7664if test "${enable_tls+set}" = set; then :
7665  enableval=$enable_tls; vg_cv_tls=$enableval
7666else
7667  if test "$cross_compiling" = yes; then :
7668  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7670as_fn_error "cannot run test program while cross compiling
7671See \`config.log' for more details." "$LINENO" 5; }
7672else
7673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675static __thread int foo;
7676int
7677main ()
7678{
7679return foo;
7680  ;
7681  return 0;
7682}
7683_ACEOF
7684if ac_fn_c_try_run "$LINENO"; then :
7685  vg_cv_tls=yes
7686else
7687  vg_cv_tls=no
7688fi
7689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7690  conftest.$ac_objext conftest.beam conftest.$ac_ext
7691fi
7692
7693fi
7694
7695fi
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7697$as_echo "$vg_cv_tls" >&6; }
7698else
7699# Cross-compiling: check whether linking a program using TLS succeeds.
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7701$as_echo_n "checking for TLS support... " >&6; }
7702if test "${vg_cv_tls+set}" = set; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  # Check whether --enable-tls was given.
7706if test "${enable_tls+set}" = set; then :
7707  enableval=$enable_tls; vg_cv_tls=$enableval
7708else
7709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711static __thread int foo;
7712int
7713main ()
7714{
7715return foo;
7716  ;
7717  return 0;
7718}
7719_ACEOF
7720if ac_fn_c_try_link "$LINENO"; then :
7721  vg_cv_tls=yes
7722else
7723  vg_cv_tls=no
7724fi
7725rm -f core conftest.err conftest.$ac_objext \
7726    conftest$ac_exeext conftest.$ac_ext
7727fi
7728
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7731$as_echo "$vg_cv_tls" >&6; }
7732fi
7733
7734if test "$vg_cv_tls" = yes; then
7735
7736$as_echo "#define HAVE_TLS 1" >>confdefs.h
7737
7738fi
7739
7740
7741#----------------------------------------------------------------------------
7742# Checks for C header files.
7743#----------------------------------------------------------------------------
7744
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7746$as_echo_n "checking for ANSI C header files... " >&6; }
7747if test "${ac_cv_header_stdc+set}" = set; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752#include <stdlib.h>
7753#include <stdarg.h>
7754#include <string.h>
7755#include <float.h>
7756
7757int
7758main ()
7759{
7760
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765if ac_fn_c_try_compile "$LINENO"; then :
7766  ac_cv_header_stdc=yes
7767else
7768  ac_cv_header_stdc=no
7769fi
7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771
7772if test $ac_cv_header_stdc = yes; then
7773  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776#include <string.h>
7777
7778_ACEOF
7779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7780  $EGREP "memchr" >/dev/null 2>&1; then :
7781
7782else
7783  ac_cv_header_stdc=no
7784fi
7785rm -f conftest*
7786
7787fi
7788
7789if test $ac_cv_header_stdc = yes; then
7790  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792/* end confdefs.h.  */
7793#include <stdlib.h>
7794
7795_ACEOF
7796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7797  $EGREP "free" >/dev/null 2>&1; then :
7798
7799else
7800  ac_cv_header_stdc=no
7801fi
7802rm -f conftest*
7803
7804fi
7805
7806if test $ac_cv_header_stdc = yes; then
7807  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7808  if test "$cross_compiling" = yes; then :
7809  :
7810else
7811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h.  */
7813#include <ctype.h>
7814#include <stdlib.h>
7815#if ((' ' & 0x0FF) == 0x020)
7816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7818#else
7819# define ISLOWER(c) \
7820		   (('a' <= (c) && (c) <= 'i') \
7821		     || ('j' <= (c) && (c) <= 'r') \
7822		     || ('s' <= (c) && (c) <= 'z'))
7823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7824#endif
7825
7826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7827int
7828main ()
7829{
7830  int i;
7831  for (i = 0; i < 256; i++)
7832    if (XOR (islower (i), ISLOWER (i))
7833	|| toupper (i) != TOUPPER (i))
7834      return 2;
7835  return 0;
7836}
7837_ACEOF
7838if ac_fn_c_try_run "$LINENO"; then :
7839
7840else
7841  ac_cv_header_stdc=no
7842fi
7843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7844  conftest.$ac_objext conftest.beam conftest.$ac_ext
7845fi
7846
7847fi
7848fi
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7850$as_echo "$ac_cv_header_stdc" >&6; }
7851if test $ac_cv_header_stdc = yes; then
7852
7853$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7854
7855fi
7856
7857for ac_header in        \
7858        asm/unistd.h     \
7859        endian.h         \
7860        mqueue.h         \
7861        sys/endian.h     \
7862        sys/epoll.h      \
7863        sys/eventfd.h    \
7864        sys/klog.h       \
7865        sys/poll.h       \
7866        sys/signal.h     \
7867        sys/signalfd.h   \
7868        sys/syscall.h    \
7869        sys/time.h       \
7870        sys/types.h      \
7871
7872do :
7873  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7874ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7875eval as_val=\$$as_ac_Header
7876   if test "x$as_val" = x""yes; then :
7877  cat >>confdefs.h <<_ACEOF
7878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7879_ACEOF
7880
7881fi
7882
7883done
7884
7885
7886#----------------------------------------------------------------------------
7887# Checks for typedefs, structures, and compiler characteristics.
7888#----------------------------------------------------------------------------
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7890$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7891if test "${ac_cv_type_uid_t+set}" = set; then :
7892  $as_echo_n "(cached) " >&6
7893else
7894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895/* end confdefs.h.  */
7896#include <sys/types.h>
7897
7898_ACEOF
7899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900  $EGREP "uid_t" >/dev/null 2>&1; then :
7901  ac_cv_type_uid_t=yes
7902else
7903  ac_cv_type_uid_t=no
7904fi
7905rm -f conftest*
7906
7907fi
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7909$as_echo "$ac_cv_type_uid_t" >&6; }
7910if test $ac_cv_type_uid_t = no; then
7911
7912$as_echo "#define uid_t int" >>confdefs.h
7913
7914
7915$as_echo "#define gid_t int" >>confdefs.h
7916
7917fi
7918
7919ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7920if test "x$ac_cv_type_off_t" = x""yes; then :
7921
7922else
7923
7924cat >>confdefs.h <<_ACEOF
7925#define off_t long int
7926_ACEOF
7927
7928fi
7929
7930ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7931if test "x$ac_cv_type_size_t" = x""yes; then :
7932
7933else
7934
7935cat >>confdefs.h <<_ACEOF
7936#define size_t unsigned int
7937_ACEOF
7938
7939fi
7940
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7942$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7943if test "${ac_cv_header_time+set}" = set; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948#include <sys/types.h>
7949#include <sys/time.h>
7950#include <time.h>
7951
7952int
7953main ()
7954{
7955if ((struct tm *) 0)
7956return 0;
7957  ;
7958  return 0;
7959}
7960_ACEOF
7961if ac_fn_c_try_compile "$LINENO"; then :
7962  ac_cv_header_time=yes
7963else
7964  ac_cv_header_time=no
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967fi
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7969$as_echo "$ac_cv_header_time" >&6; }
7970if test $ac_cv_header_time = yes; then
7971
7972$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7973
7974fi
7975
7976
7977
7978#----------------------------------------------------------------------------
7979# Checks for library functions.
7980#----------------------------------------------------------------------------
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7982$as_echo_n "checking for working memcmp... " >&6; }
7983if test "${ac_cv_func_memcmp_working+set}" = set; then :
7984  $as_echo_n "(cached) " >&6
7985else
7986  if test "$cross_compiling" = yes; then :
7987  ac_cv_func_memcmp_working=no
7988else
7989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h.  */
7991$ac_includes_default
7992int
7993main ()
7994{
7995
7996  /* Some versions of memcmp are not 8-bit clean.  */
7997  char c0 = '\100', c1 = '\200', c2 = '\201';
7998  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7999    return 1;
8000
8001  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8002     or more and with at least one buffer not starting on a 4-byte boundary.
8003     William Lewis provided this test program.   */
8004  {
8005    char foo[21];
8006    char bar[21];
8007    int i;
8008    for (i = 0; i < 4; i++)
8009      {
8010	char *a = foo + i;
8011	char *b = bar + i;
8012	strcpy (a, "--------01111111");
8013	strcpy (b, "--------10000000");
8014	if (memcmp (a, b, 16) >= 0)
8015	  return 1;
8016      }
8017    return 0;
8018  }
8019
8020  ;
8021  return 0;
8022}
8023_ACEOF
8024if ac_fn_c_try_run "$LINENO"; then :
8025  ac_cv_func_memcmp_working=yes
8026else
8027  ac_cv_func_memcmp_working=no
8028fi
8029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8030  conftest.$ac_objext conftest.beam conftest.$ac_ext
8031fi
8032
8033fi
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8035$as_echo "$ac_cv_func_memcmp_working" >&6; }
8036test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8037  *" memcmp.$ac_objext "* ) ;;
8038  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8039 ;;
8040esac
8041
8042
8043
8044
8045
8046  for ac_header in $ac_header_list
8047do :
8048  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8049ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8050"
8051eval as_val=\$$as_ac_Header
8052   if test "x$as_val" = x""yes; then :
8053  cat >>confdefs.h <<_ACEOF
8054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8055_ACEOF
8056
8057fi
8058
8059done
8060
8061
8062
8063
8064
8065
8066
8067
8068for ac_func in getpagesize
8069do :
8070  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8071if test "x$ac_cv_func_getpagesize" = x""yes; then :
8072  cat >>confdefs.h <<_ACEOF
8073#define HAVE_GETPAGESIZE 1
8074_ACEOF
8075
8076fi
8077done
8078
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8080$as_echo_n "checking for working mmap... " >&6; }
8081if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
8082  $as_echo_n "(cached) " >&6
8083else
8084  if test "$cross_compiling" = yes; then :
8085  ac_cv_func_mmap_fixed_mapped=no
8086else
8087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089$ac_includes_default
8090/* malloc might have been renamed as rpl_malloc. */
8091#undef malloc
8092
8093/* Thanks to Mike Haertel and Jim Avera for this test.
8094   Here is a matrix of mmap possibilities:
8095	mmap private not fixed
8096	mmap private fixed at somewhere currently unmapped
8097	mmap private fixed at somewhere already mapped
8098	mmap shared not fixed
8099	mmap shared fixed at somewhere currently unmapped
8100	mmap shared fixed at somewhere already mapped
8101   For private mappings, we should verify that changes cannot be read()
8102   back from the file, nor mmap's back from the file at a different
8103   address.  (There have been systems where private was not correctly
8104   implemented like the infamous i386 svr4.0, and systems where the
8105   VM page cache was not coherent with the file system buffer cache
8106   like early versions of FreeBSD and possibly contemporary NetBSD.)
8107   For shared mappings, we should conversely verify that changes get
8108   propagated back to all the places they're supposed to be.
8109
8110   Grep wants private fixed already mapped.
8111   The main things grep needs to know about mmap are:
8112   * does it exist and is it safe to write into the mmap'd area
8113   * how to use it (BSD variants)  */
8114
8115#include <fcntl.h>
8116#include <sys/mman.h>
8117
8118#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8119char *malloc ();
8120#endif
8121
8122/* This mess was copied from the GNU getpagesize.h.  */
8123#ifndef HAVE_GETPAGESIZE
8124# ifdef _SC_PAGESIZE
8125#  define getpagesize() sysconf(_SC_PAGESIZE)
8126# else /* no _SC_PAGESIZE */
8127#  ifdef HAVE_SYS_PARAM_H
8128#   include <sys/param.h>
8129#   ifdef EXEC_PAGESIZE
8130#    define getpagesize() EXEC_PAGESIZE
8131#   else /* no EXEC_PAGESIZE */
8132#    ifdef NBPG
8133#     define getpagesize() NBPG * CLSIZE
8134#     ifndef CLSIZE
8135#      define CLSIZE 1
8136#     endif /* no CLSIZE */
8137#    else /* no NBPG */
8138#     ifdef NBPC
8139#      define getpagesize() NBPC
8140#     else /* no NBPC */
8141#      ifdef PAGESIZE
8142#       define getpagesize() PAGESIZE
8143#      endif /* PAGESIZE */
8144#     endif /* no NBPC */
8145#    endif /* no NBPG */
8146#   endif /* no EXEC_PAGESIZE */
8147#  else /* no HAVE_SYS_PARAM_H */
8148#   define getpagesize() 8192	/* punt totally */
8149#  endif /* no HAVE_SYS_PARAM_H */
8150# endif /* no _SC_PAGESIZE */
8151
8152#endif /* no HAVE_GETPAGESIZE */
8153
8154int
8155main ()
8156{
8157  char *data, *data2, *data3;
8158  const char *cdata2;
8159  int i, pagesize;
8160  int fd, fd2;
8161
8162  pagesize = getpagesize ();
8163
8164  /* First, make a file with some known garbage in it. */
8165  data = (char *) malloc (pagesize);
8166  if (!data)
8167    return 1;
8168  for (i = 0; i < pagesize; ++i)
8169    *(data + i) = rand ();
8170  umask (0);
8171  fd = creat ("conftest.mmap", 0600);
8172  if (fd < 0)
8173    return 2;
8174  if (write (fd, data, pagesize) != pagesize)
8175    return 3;
8176  close (fd);
8177
8178  /* Next, check that the tail of a page is zero-filled.  File must have
8179     non-zero length, otherwise we risk SIGBUS for entire page.  */
8180  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8181  if (fd2 < 0)
8182    return 4;
8183  cdata2 = "";
8184  if (write (fd2, cdata2, 1) != 1)
8185    return 5;
8186  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8187  if (data2 == MAP_FAILED)
8188    return 6;
8189  for (i = 0; i < pagesize; ++i)
8190    if (*(data2 + i))
8191      return 7;
8192  close (fd2);
8193  if (munmap (data2, pagesize))
8194    return 8;
8195
8196  /* Next, try to mmap the file at a fixed address which already has
8197     something else allocated at it.  If we can, also make sure that
8198     we see the same garbage.  */
8199  fd = open ("conftest.mmap", O_RDWR);
8200  if (fd < 0)
8201    return 9;
8202  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8203		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
8204    return 10;
8205  for (i = 0; i < pagesize; ++i)
8206    if (*(data + i) != *(data2 + i))
8207      return 11;
8208
8209  /* Finally, make sure that changes to the mapped area do not
8210     percolate back to the file as seen by read().  (This is a bug on
8211     some variants of i386 svr4.0.)  */
8212  for (i = 0; i < pagesize; ++i)
8213    *(data2 + i) = *(data2 + i) + 1;
8214  data3 = (char *) malloc (pagesize);
8215  if (!data3)
8216    return 12;
8217  if (read (fd, data3, pagesize) != pagesize)
8218    return 13;
8219  for (i = 0; i < pagesize; ++i)
8220    if (*(data + i) != *(data3 + i))
8221      return 14;
8222  close (fd);
8223  return 0;
8224}
8225_ACEOF
8226if ac_fn_c_try_run "$LINENO"; then :
8227  ac_cv_func_mmap_fixed_mapped=yes
8228else
8229  ac_cv_func_mmap_fixed_mapped=no
8230fi
8231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8232  conftest.$ac_objext conftest.beam conftest.$ac_ext
8233fi
8234
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8237$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8238if test $ac_cv_func_mmap_fixed_mapped = yes; then
8239
8240$as_echo "#define HAVE_MMAP 1" >>confdefs.h
8241
8242fi
8243rm -f conftest.mmap conftest.txt
8244
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8246$as_echo_n "checking return type of signal handlers... " >&6; }
8247if test "${ac_cv_type_signal+set}" = set; then :
8248  $as_echo_n "(cached) " >&6
8249else
8250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h.  */
8252#include <sys/types.h>
8253#include <signal.h>
8254
8255int
8256main ()
8257{
8258return *(signal (0, 0)) (0) == 1;
8259  ;
8260  return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_compile "$LINENO"; then :
8264  ac_cv_type_signal=int
8265else
8266  ac_cv_type_signal=void
8267fi
8268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269fi
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8271$as_echo "$ac_cv_type_signal" >&6; }
8272
8273cat >>confdefs.h <<_ACEOF
8274#define RETSIGTYPE $ac_cv_type_signal
8275_ACEOF
8276
8277
8278
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8280$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8281if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
8282  $as_echo_n "(cached) " >&6
8283else
8284  ac_check_lib_save_LIBS=$LIBS
8285LIBS="-lrt  $LIBS"
8286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h.  */
8288
8289/* Override any GCC internal prototype to avoid an error.
8290   Use char because int might match the return type of a GCC
8291   builtin and then its argument prototype would still apply.  */
8292#ifdef __cplusplus
8293extern "C"
8294#endif
8295char clock_gettime ();
8296int
8297main ()
8298{
8299return clock_gettime ();
8300  ;
8301  return 0;
8302}
8303_ACEOF
8304if ac_fn_c_try_link "$LINENO"; then :
8305  ac_cv_lib_rt_clock_gettime=yes
8306else
8307  ac_cv_lib_rt_clock_gettime=no
8308fi
8309rm -f core conftest.err conftest.$ac_objext \
8310    conftest$ac_exeext conftest.$ac_ext
8311LIBS=$ac_check_lib_save_LIBS
8312fi
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8314$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8315if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
8316  cat >>confdefs.h <<_ACEOF
8317#define HAVE_LIBRT 1
8318_ACEOF
8319
8320  LIBS="-lrt $LIBS"
8321
8322fi
8323
8324
8325for ac_func in      \
8326        clock_gettime\
8327        epoll_create \
8328        epoll_pwait  \
8329        floor        \
8330        klogctl      \
8331        mallinfo     \
8332        memchr       \
8333        memset       \
8334        mkdir        \
8335        mremap       \
8336        ppoll        \
8337        pthread_barrier_init       \
8338        pthread_condattr_setclock  \
8339        pthread_mutex_timedlock    \
8340        pthread_rwlock_timedrdlock \
8341        pthread_rwlock_timedwrlock \
8342        pthread_spin_lock          \
8343        pthread_yield              \
8344        readlinkat   \
8345        semtimedop   \
8346        signalfd     \
8347        sigwaitinfo  \
8348        strchr       \
8349        strdup       \
8350        strpbrk      \
8351        strrchr      \
8352        strstr       \
8353        syscall      \
8354        timerfd      \
8355        utimensat    \
8356
8357do :
8358  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8359ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8360eval as_val=\$$as_ac_var
8361   if test "x$as_val" = x""yes; then :
8362  cat >>confdefs.h <<_ACEOF
8363#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8364_ACEOF
8365
8366fi
8367done
8368
8369
8370# AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8371# libraries with any shared object and/or executable. This is NOT what we
8372# want for e.g. vgpreload_core-x86-linux.so
8373LIBS=""
8374
8375 if test x$ac_cv_func_pthread_barrier_init = xyes; then
8376  HAVE_PTHREAD_BARRIER_TRUE=
8377  HAVE_PTHREAD_BARRIER_FALSE='#'
8378else
8379  HAVE_PTHREAD_BARRIER_TRUE='#'
8380  HAVE_PTHREAD_BARRIER_FALSE=
8381fi
8382
8383 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8384  HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8385  HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8386else
8387  HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8388  HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8389fi
8390
8391 if test x$ac_cv_func_pthread_spin_lock = xyes; then
8392  HAVE_PTHREAD_SPINLOCK_TRUE=
8393  HAVE_PTHREAD_SPINLOCK_FALSE='#'
8394else
8395  HAVE_PTHREAD_SPINLOCK_TRUE='#'
8396  HAVE_PTHREAD_SPINLOCK_FALSE=
8397fi
8398
8399
8400
8401#----------------------------------------------------------------------------
8402# MPI checks
8403#----------------------------------------------------------------------------
8404# Do we have a useable MPI setup on the primary and/or secondary targets?
8405# On Linux, by default, assumes mpicc and -m32/-m64
8406# On AIX, by default, assumes mpxlc and -q32/-q64
8407# Note: this is a kludge in that it assumes the specified mpicc
8408# understands -m32/-m64/-q32/-q64 regardless of what is specified using
8409# --with-mpicc=.
8410MPI_CC="mpicc"
8411if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8412     -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8413  MPI_CC="mpxlc"
8414fi
8415
8416mflag_primary=
8417if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8418     -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8419  mflag_primary=$FLAG_M32
8420elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8421       -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX ; then
8422  mflag_primary=$FLAG_M64
8423elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8424  mflag_primary=-q32
8425elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8426  mflag_primary=-q64
8427fi
8428
8429mflag_secondary=
8430if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8431     -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8432  mflag_secondary=$FLAG_M32
8433elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8434  mflag_secondary=-q32
8435fi
8436
8437
8438
8439# Check whether --with-mpicc was given.
8440if test "${with_mpicc+set}" = set; then :
8441  withval=$with_mpicc; MPI_CC=$withval
8442
8443fi
8444
8445
8446
8447## See if MPI_CC works for the primary target
8448##
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8450$as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8451saved_CC=$CC
8452saved_CFLAGS=$CFLAGS
8453CC=$MPI_CC
8454CFLAGS=$mflag_primary
8455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h.  */
8457
8458#include <mpi.h>
8459#include <stdio.h>
8460
8461int
8462main ()
8463{
8464
8465  int r = MPI_Init(NULL,NULL);
8466  r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8467  return r;
8468
8469  ;
8470  return 0;
8471}
8472_ACEOF
8473if ac_fn_c_try_link "$LINENO"; then :
8474
8475ac_have_mpi2_pri=yes
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8477$as_echo "yes, $MPI_CC" >&6; }
8478
8479else
8480
8481ac_have_mpi2_pri=no
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
8484
8485fi
8486rm -f core conftest.err conftest.$ac_objext \
8487    conftest$ac_exeext conftest.$ac_ext
8488CC=$saved_CC
8489CFLAGS=$saved_CFLAGS
8490 if test x$ac_have_mpi2_pri = xyes; then
8491  BUILD_MPIWRAP_PRI_TRUE=
8492  BUILD_MPIWRAP_PRI_FALSE='#'
8493else
8494  BUILD_MPIWRAP_PRI_TRUE='#'
8495  BUILD_MPIWRAP_PRI_FALSE=
8496fi
8497
8498
8499## See if MPI_CC works for the secondary target.  Complication: what if
8500## there is no secondary target?  We need this to then fail.
8501## Kludge this by making MPI_CC something which will surely fail in
8502## such a case.
8503##
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8505$as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8506saved_CC=$CC
8507saved_CFLAGS=$CFLAGS
8508if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8509  CC="$MPI_CC this will surely fail"
8510else
8511  CC=$MPI_CC
8512fi
8513CFLAGS=$mflag_secondary
8514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516
8517#include <mpi.h>
8518#include <stdio.h>
8519
8520int
8521main ()
8522{
8523
8524  int r = MPI_Init(NULL,NULL);
8525  r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8526  return r;
8527
8528  ;
8529  return 0;
8530}
8531_ACEOF
8532if ac_fn_c_try_link "$LINENO"; then :
8533
8534ac_have_mpi2_sec=yes
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8536$as_echo "yes, $MPI_CC" >&6; }
8537
8538else
8539
8540ac_have_mpi2_sec=no
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
8543
8544fi
8545rm -f core conftest.err conftest.$ac_objext \
8546    conftest$ac_exeext conftest.$ac_ext
8547CC=$saved_CC
8548CFLAGS=$saved_CFLAGS
8549 if test x$ac_have_mpi2_sec = xyes; then
8550  BUILD_MPIWRAP_SEC_TRUE=
8551  BUILD_MPIWRAP_SEC_FALSE='#'
8552else
8553  BUILD_MPIWRAP_SEC_TRUE='#'
8554  BUILD_MPIWRAP_SEC_FALSE=
8555fi
8556
8557
8558
8559#----------------------------------------------------------------------------
8560# Other library checks
8561#----------------------------------------------------------------------------
8562# There now follow some tests for QtCore, Boost, and OpenMP.  These
8563# tests are present because Drd has some regression tests that use
8564# these packages.  All regression test programs all compiled only
8565# for the primary target.  And so it is important that the configure
8566# checks that follow, use the correct -m32 or -m64 flag for the
8567# primary target (called $mflag_primary).  Otherwise, we can end up
8568# in a situation (eg) where, on amd64-linux, the test for Boost checks
8569# for usable 64-bit Boost facilities, but because we are doing a 32-bit
8570# only build (meaning, the primary target is x86-linux), the build
8571# of the regtest programs that use Boost fails, because they are
8572# build as 32-bit (IN THIS EXAMPLE).
8573#
8574# Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8575# NEEDED BY THE REGRESSION TEST PROGRAMS.
8576
8577
8578# The test below verifies whether the QtCore package been installed.
8579# This test works as follows:
8580# - If pkg-config was not installed at the time autogen.sh was run,
8581#   the definition of the PKG_CHECK_EXISTS() macro will not be found by
8582#   autogen.sh. Augogen.sh will generate a configure script that prints
8583#   a warning about pkg-config and proceeds as if Qt4 has not been installed.
8584# - If pkg-config was installed at the time autogen.sh was run,
8585#   the generated configure script will try to detect the presence of the
8586#   Qt4 QtCore library by looking up compile and linker flags in the file
8587#   called QtCore.pc.
8588# - pkg-config settings can be overridden via the configure variables
8589#   QTCORE_CFLAGS and QTCORE_LIBS (added by the pkg-config m4 macro's to the
8590#   configure script -- see also ./configure --help).
8591# - The QTCORE_CFLAGS and QTCORE_LIBS configure variables can be used even if
8592#   the pkg-config executable is not present on the system on which the
8593#   configure script is run.
8594
8595
8596
8597if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8598	if test -n "$ac_tool_prefix"; then
8599  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8600set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602$as_echo_n "checking for $ac_word... " >&6; }
8603if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8604  $as_echo_n "(cached) " >&6
8605else
8606  case $PKG_CONFIG in
8607  [\\/]* | ?:[\\/]*)
8608  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8609  ;;
8610  *)
8611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614  IFS=$as_save_IFS
8615  test -z "$as_dir" && as_dir=.
8616    for ac_exec_ext in '' $ac_executable_extensions; do
8617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620    break 2
8621  fi
8622done
8623  done
8624IFS=$as_save_IFS
8625
8626  ;;
8627esac
8628fi
8629PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8630if test -n "$PKG_CONFIG"; then
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8632$as_echo "$PKG_CONFIG" >&6; }
8633else
8634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635$as_echo "no" >&6; }
8636fi
8637
8638
8639fi
8640if test -z "$ac_cv_path_PKG_CONFIG"; then
8641  ac_pt_PKG_CONFIG=$PKG_CONFIG
8642  # Extract the first word of "pkg-config", so it can be a program name with args.
8643set dummy pkg-config; ac_word=$2
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
8646if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8647  $as_echo_n "(cached) " >&6
8648else
8649  case $ac_pt_PKG_CONFIG in
8650  [\\/]* | ?:[\\/]*)
8651  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8652  ;;
8653  *)
8654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657  IFS=$as_save_IFS
8658  test -z "$as_dir" && as_dir=.
8659    for ac_exec_ext in '' $ac_executable_extensions; do
8660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663    break 2
8664  fi
8665done
8666  done
8667IFS=$as_save_IFS
8668
8669  ;;
8670esac
8671fi
8672ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8673if test -n "$ac_pt_PKG_CONFIG"; then
8674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8675$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8676else
8677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
8679fi
8680
8681  if test "x$ac_pt_PKG_CONFIG" = x; then
8682    PKG_CONFIG=""
8683  else
8684    case $cross_compiling:$ac_tool_warned in
8685yes:)
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688ac_tool_warned=yes ;;
8689esac
8690    PKG_CONFIG=$ac_pt_PKG_CONFIG
8691  fi
8692else
8693  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8694fi
8695
8696fi
8697if test -n "$PKG_CONFIG"; then
8698	_pkg_min_version=0.9.0
8699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8700$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8701	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8703$as_echo "yes" >&6; }
8704	else
8705		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
8707		PKG_CONFIG=""
8708	fi
8709
8710fi
8711
8712if test -n "$PKG_CONFIG" && \
8713    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8714  ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8715  ac_status=$?
8716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8717  test $ac_status = 0; }; then
8718
8719
8720pkg_failed=no
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
8722$as_echo_n "checking for QTCORE... " >&6; }
8723
8724if test -n "$PKG_CONFIG"; then
8725    if test -n "$QTCORE_CFLAGS"; then
8726        pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
8727    else
8728        if test -n "$PKG_CONFIG" && \
8729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8730  ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8731  ac_status=$?
8732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8733  test $ac_status = 0; }; then
8734  pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null`
8735else
8736  pkg_failed=yes
8737fi
8738    fi
8739else
8740	pkg_failed=untried
8741fi
8742if test -n "$PKG_CONFIG"; then
8743    if test -n "$QTCORE_LIBS"; then
8744        pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
8745    else
8746        if test -n "$PKG_CONFIG" && \
8747    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8748  ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8749  ac_status=$?
8750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8751  test $ac_status = 0; }; then
8752  pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null`
8753else
8754  pkg_failed=yes
8755fi
8756    fi
8757else
8758	pkg_failed=untried
8759fi
8760
8761
8762
8763if test $pkg_failed = yes; then
8764
8765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8766        _pkg_short_errors_supported=yes
8767else
8768        _pkg_short_errors_supported=no
8769fi
8770        if test $_pkg_short_errors_supported = yes; then
8771	        QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore"`
8772        else
8773	        QTCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore"`
8774        fi
8775	# Put the nasty error message in config.log where it belongs
8776	echo "$QTCORE_PKG_ERRORS" >&5
8777
8778	as_fn_error "Package requirements (QtCore) were not met:
8779
8780$QTCORE_PKG_ERRORS
8781
8782Consider adjusting the PKG_CONFIG_PATH environment variable if you
8783installed software in a non-standard prefix.
8784
8785Alternatively, you may set the environment variables QTCORE_CFLAGS
8786and QTCORE_LIBS to avoid the need to call pkg-config.
8787See the pkg-config man page for more details.
8788" "$LINENO" 5
8789elif test $pkg_failed = untried; then
8790	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8792as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
8793is in your PATH or set the PKG_CONFIG environment variable to the full
8794path to pkg-config.
8795
8796Alternatively, you may set the environment variables QTCORE_CFLAGS
8797and QTCORE_LIBS to avoid the need to call pkg-config.
8798See the pkg-config man page for more details.
8799
8800To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8801See \`config.log' for more details." "$LINENO" 5; }
8802else
8803	QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
8804	QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
8805        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8806$as_echo "yes" >&6; }
8807	:
8808fi
8809      # Paranoia: don't trust the result reported by pkg-config, but when
8810      # pkg-config reports that QtCore has been found, verify whether linking
8811      # programs with QtCore succeeds.
8812      ac_ext=cpp
8813ac_cpp='$CXXCPP $CPPFLAGS'
8814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8817
8818      safe_CXXFLAGS="${CXXFLAGS}"
8819      CXXFLAGS="${QTCORE_CFLAGS} ${QTCORE_LIBS} $mflag_primary"
8820      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821/* end confdefs.h.  */
8822#include <QMutex>
8823int
8824main ()
8825{
8826QMutex Mutex;
8827  ;
8828  return 0;
8829}
8830_ACEOF
8831if ac_fn_cxx_try_link "$LINENO"; then :
8832  ac_have_qtcore=yes
8833else
8834
8835          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&5
8836$as_echo "$as_me: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&2;}
8837          ac_have_qtcore=no
8838
8839
8840fi
8841rm -f core conftest.err conftest.$ac_objext \
8842    conftest$ac_exeext conftest.$ac_ext
8843      CXXFLAGS="${safe_CXXFLAGS}"
8844
8845else
8846
8847      ac_have_qtcore=no
8848
8849
8850fi
8851
8852
8853 if test x$ac_have_qtcore = xyes; then
8854  HAVE_QTCORE_TRUE=
8855  HAVE_QTCORE_FALSE='#'
8856else
8857  HAVE_QTCORE_TRUE='#'
8858  HAVE_QTCORE_FALSE=
8859fi
8860
8861
8862
8863# Test for QMutex::tryLock(int), which has been introduced in Qt 4.3.
8864# See also http://doc.trolltech.com/4.3/qmutex.html.
8865if test x$ac_have_qtcore = xyes; then
8866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QMutex::tryLock(int)" >&5
8867$as_echo_n "checking for Qt4 QMutex::tryLock(int)... " >&6; }
8868  ac_ext=cpp
8869ac_cpp='$CXXCPP $CPPFLAGS'
8870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8873
8874  safe_CXXFLAGS="${CXXFLAGS}"
8875  CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878
8879    #include <QtCore/QMutex>
8880
8881int
8882main ()
8883{
8884
8885    QMutex M;
8886    M.tryLock(1);
8887    M.unlock();
8888    return 0;
8889
8890  ;
8891  return 0;
8892}
8893_ACEOF
8894if ac_fn_cxx_try_compile "$LINENO"; then :
8895
8896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8897$as_echo "yes" >&6; }
8898
8899$as_echo "#define HAVE_QTCORE_QMUTEX_TRYLOCK_INT 1" >>confdefs.h
8900
8901
8902else
8903
8904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
8906
8907fi
8908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909  CXXFLAGS="${safe_CXXFLAGS}"
8910  ac_ext=c
8911ac_cpp='$CPP $CPPFLAGS'
8912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8914ac_compiler_gnu=$ac_cv_c_compiler_gnu
8915
8916fi
8917
8918
8919# Test for QAtomicInt, which has been introduced in Qt 4.4.
8920# See also http://doc.trolltech.com/4.4/qatomicint.html.
8921if test x$ac_have_qtcore = xyes; then
8922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QAtomicInt" >&5
8923$as_echo_n "checking for Qt4 QAtomicInt... " >&6; }
8924  ac_ext=cpp
8925ac_cpp='$CXXCPP $CPPFLAGS'
8926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8929
8930  safe_CXXFLAGS="${CXXFLAGS}"
8931  CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h.  */
8934
8935    #include <QtCore/QAtomicInt>
8936
8937int
8938main ()
8939{
8940
8941    QAtomicInt I;
8942    I.testAndSetOrdered(0, 1);
8943    return 0;
8944
8945  ;
8946  return 0;
8947}
8948_ACEOF
8949if ac_fn_cxx_try_compile "$LINENO"; then :
8950
8951    ac_have_qtcore_qatomicint=yes
8952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8953$as_echo "yes" >&6; }
8954
8955$as_echo "#define HAVE_QTCORE_QATOMICINT 1" >>confdefs.h
8956
8957
8958else
8959
8960    ac_have_qtcore_qatomicint=no
8961    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962$as_echo "no" >&6; }
8963
8964fi
8965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966  CXXFLAGS="${safe_CXXFLAGS}"
8967  ac_ext=c
8968ac_cpp='$CPP $CPPFLAGS'
8969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8971ac_compiler_gnu=$ac_cv_c_compiler_gnu
8972
8973fi
8974
8975 if test x$ac_have_qtcore_qatomicint = xyes; then
8976  HAVE_QTCORE_QATOMICINT_TRUE=
8977  HAVE_QTCORE_QATOMICINT_FALSE='#'
8978else
8979  HAVE_QTCORE_QATOMICINT_TRUE='#'
8980  HAVE_QTCORE_QATOMICINT_FALSE=
8981fi
8982
8983
8984
8985
8986# Check whether the boost library 1.35 or later has been installed.
8987# The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8988
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8990$as_echo_n "checking for boost... " >&6; }
8991
8992ac_ext=cpp
8993ac_cpp='$CXXCPP $CPPFLAGS'
8994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8997
8998safe_CXXFLAGS=$CXXFLAGS
8999CXXFLAGS="-lboost_thread-mt $mflag_primary"
9000
9001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002/* end confdefs.h.  */
9003
9004#include <boost/thread.hpp>
9005static void thread_func(void)
9006{ }
9007int main(int argc, char** argv)
9008{
9009  boost::thread t(thread_func);
9010  return 0;
9011}
9012
9013_ACEOF
9014if ac_fn_cxx_try_link "$LINENO"; then :
9015
9016ac_have_boost_1_35=yes
9017
9018BOOST_LIBS="${CXXFLAGS}"
9019
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9021$as_echo "yes" >&6; }
9022
9023else
9024
9025ac_have_boost_1_35=no
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027$as_echo "no" >&6; }
9028
9029fi
9030rm -f core conftest.err conftest.$ac_objext \
9031    conftest$ac_exeext conftest.$ac_ext
9032
9033CXXFLAGS=$safe_CXXFLAGS
9034ac_ext=c
9035ac_cpp='$CPP $CPPFLAGS'
9036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9038ac_compiler_gnu=$ac_cv_c_compiler_gnu
9039
9040
9041 if test x$ac_have_boost_1_35 = xyes; then
9042  HAVE_BOOST_1_35_TRUE=
9043  HAVE_BOOST_1_35_FALSE='#'
9044else
9045  HAVE_BOOST_1_35_TRUE='#'
9046  HAVE_BOOST_1_35_FALSE=
9047fi
9048
9049
9050
9051# does this compiler support -fopenmp, does it have the include file
9052# <omp.h> and does it have libgomp ?
9053
9054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
9055$as_echo_n "checking for OpenMP... " >&6; }
9056
9057safe_CFLAGS=$CFLAGS
9058CFLAGS="-fopenmp $mflag_primary"
9059
9060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061/* end confdefs.h.  */
9062
9063#include <omp.h>
9064int main(int argc, char** argv)
9065{
9066  omp_set_dynamic(0);
9067  return 0;
9068}
9069
9070_ACEOF
9071if ac_fn_c_try_link "$LINENO"; then :
9072
9073ac_have_openmp=yes
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9075$as_echo "yes" >&6; }
9076
9077else
9078
9079ac_have_openmp=no
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081$as_echo "no" >&6; }
9082
9083fi
9084rm -f core conftest.err conftest.$ac_objext \
9085    conftest$ac_exeext conftest.$ac_ext
9086CFLAGS=$safe_CFLAGS
9087
9088 if test x$ac_have_openmp = xyes; then
9089  HAVE_OPENMP_TRUE=
9090  HAVE_OPENMP_FALSE='#'
9091else
9092  HAVE_OPENMP_TRUE='#'
9093  HAVE_OPENMP_FALSE=
9094fi
9095
9096
9097
9098# does this compiler have built-in functions for atomic memory access ?
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9100$as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9101
9102safe_CFLAGS=$CFLAGS
9103CFLAGS="$mflag_primary"
9104
9105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107
9108int
9109main ()
9110{
9111
9112  int variable = 1;
9113  return (__sync_bool_compare_and_swap(&variable, 1, 2)
9114          && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9115
9116  ;
9117  return 0;
9118}
9119_ACEOF
9120if ac_fn_c_try_link "$LINENO"; then :
9121
9122  ac_have_builtin_atomic=yes
9123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9124$as_echo "yes" >&6; }
9125
9126$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9127
9128
9129else
9130
9131  ac_have_builtin_atomic=no
9132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
9134
9135fi
9136rm -f core conftest.err conftest.$ac_objext \
9137    conftest$ac_exeext conftest.$ac_ext
9138
9139CFLAGS=$safe_CFLAGS
9140
9141 if test x$ac_have_builtin_atomic = xyes; then
9142  HAVE_BUILTIN_ATOMIC_TRUE=
9143  HAVE_BUILTIN_ATOMIC_FALSE='#'
9144else
9145  HAVE_BUILTIN_ATOMIC_TRUE='#'
9146  HAVE_BUILTIN_ATOMIC_FALSE=
9147fi
9148
9149
9150
9151#----------------------------------------------------------------------------
9152# Ok.  We're done checking.
9153#----------------------------------------------------------------------------
9154
9155# Nb: VEX/Makefile is generated from Makefile.vex.in.
9156ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp docs/Makefile tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/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/linux/Makefile none/tests/darwin/Makefile none/tests/x86-linux/Makefile exp-ptrcheck/Makefile exp-ptrcheck/tests/Makefile drd/Makefile drd/scripts/download-and-build-splash2 drd/tests/Makefile exp-bbv/Makefile exp-bbv/tests/Makefile exp-bbv/tests/x86/Makefile exp-bbv/tests/x86-linux/Makefile exp-bbv/tests/amd64-linux/Makefile exp-bbv/tests/ppc32-linux/Makefile exp-bbv/tests/arm-linux/Makefile exp-dhat/Makefile exp-dhat/tests/Makefile"
9157
9158ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9159
9160ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9161
9162ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9163
9164cat >confcache <<\_ACEOF
9165# This file is a shell script that caches the results of configure
9166# tests run on this system so they can be shared between configure
9167# scripts and configure runs, see configure's option --config-cache.
9168# It is not useful on other systems.  If it contains results you don't
9169# want to keep, you may remove or edit it.
9170#
9171# config.status only pays attention to the cache file if you give it
9172# the --recheck option to rerun configure.
9173#
9174# `ac_cv_env_foo' variables (set or unset) will be overridden when
9175# loading this file, other *unset* `ac_cv_foo' will be assigned the
9176# following values.
9177
9178_ACEOF
9179
9180# The following way of writing the cache mishandles newlines in values,
9181# but we know of no workaround that is simple, portable, and efficient.
9182# So, we kill variables containing newlines.
9183# Ultrix sh set writes to stderr and can't be redirected directly,
9184# and sets the high bit in the cache file unless we assign to the vars.
9185(
9186  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9187    eval ac_val=\$$ac_var
9188    case $ac_val in #(
9189    *${as_nl}*)
9190      case $ac_var in #(
9191      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9192$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9193      esac
9194      case $ac_var in #(
9195      _ | IFS | as_nl) ;; #(
9196      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9197      *) { eval $ac_var=; unset $ac_var;} ;;
9198      esac ;;
9199    esac
9200  done
9201
9202  (set) 2>&1 |
9203    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9204    *${as_nl}ac_space=\ *)
9205      # `set' does not quote correctly, so add quotes: double-quote
9206      # substitution turns \\\\ into \\, and sed turns \\ into \.
9207      sed -n \
9208	"s/'/'\\\\''/g;
9209	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9210      ;; #(
9211    *)
9212      # `set' quotes correctly as required by POSIX, so do not add quotes.
9213      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9214      ;;
9215    esac |
9216    sort
9217) |
9218  sed '
9219     /^ac_cv_env_/b end
9220     t clear
9221     :clear
9222     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9223     t end
9224     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9225     :end' >>confcache
9226if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9227  if test -w "$cache_file"; then
9228    test "x$cache_file" != "x/dev/null" &&
9229      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9230$as_echo "$as_me: updating cache $cache_file" >&6;}
9231    cat confcache >$cache_file
9232  else
9233    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9234$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9235  fi
9236fi
9237rm -f confcache
9238
9239test "x$prefix" = xNONE && prefix=$ac_default_prefix
9240# Let make expand exec_prefix.
9241test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9242
9243DEFS=-DHAVE_CONFIG_H
9244
9245ac_libobjs=
9246ac_ltlibobjs=
9247for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9248  # 1. Remove the extension, and $U if already installed.
9249  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9250  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9251  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9252  #    will be set to the directory where LIBOBJS objects are built.
9253  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9254  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9255done
9256LIBOBJS=$ac_libobjs
9257
9258LTLIBOBJS=$ac_ltlibobjs
9259
9260
9261 if test -n "$EXEEXT"; then
9262  am__EXEEXT_TRUE=
9263  am__EXEEXT_FALSE='#'
9264else
9265  am__EXEEXT_TRUE='#'
9266  am__EXEEXT_FALSE=
9267fi
9268
9269if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9270  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
9271Usually this means the macro was only invoked conditionally." "$LINENO" 5
9272fi
9273if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9274  as_fn_error "conditional \"AMDEP\" was never defined.
9275Usually this means the macro was only invoked conditionally." "$LINENO" 5
9276fi
9277if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9278  as_fn_error "conditional \"am__fastdepCC\" was never defined.
9279Usually this means the macro was only invoked conditionally." "$LINENO" 5
9280fi
9281if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9282  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9283Usually this means the macro was only invoked conditionally." "$LINENO" 5
9284fi
9285if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9286  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
9287Usually this means the macro was only invoked conditionally." "$LINENO" 5
9288fi
9289if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9290  as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9291Usually this means the macro was only invoked conditionally." "$LINENO" 5
9292fi
9293if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9294  as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9295Usually this means the macro was only invoked conditionally." "$LINENO" 5
9296fi
9297if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9298  as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9299Usually this means the macro was only invoked conditionally." "$LINENO" 5
9300fi
9301if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9302  as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9303Usually this means the macro was only invoked conditionally." "$LINENO" 5
9304fi
9305if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9306  as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9307Usually this means the macro was only invoked conditionally." "$LINENO" 5
9308fi
9309if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9310  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9311Usually this means the macro was only invoked conditionally." "$LINENO" 5
9312fi
9313if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9314  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9315Usually this means the macro was only invoked conditionally." "$LINENO" 5
9316fi
9317if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9318  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9319Usually this means the macro was only invoked conditionally." "$LINENO" 5
9320fi
9321if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9322  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9323Usually this means the macro was only invoked conditionally." "$LINENO" 5
9324fi
9325if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9326  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9327Usually this means the macro was only invoked conditionally." "$LINENO" 5
9328fi
9329if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9330  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9331Usually this means the macro was only invoked conditionally." "$LINENO" 5
9332fi
9333if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9334  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9335Usually this means the macro was only invoked conditionally." "$LINENO" 5
9336fi
9337if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9338  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9339Usually this means the macro was only invoked conditionally." "$LINENO" 5
9340fi
9341if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9342  as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9343Usually this means the macro was only invoked conditionally." "$LINENO" 5
9344fi
9345if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9346  as_fn_error "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9347Usually this means the macro was only invoked conditionally." "$LINENO" 5
9348fi
9349if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9350  as_fn_error "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9351Usually this means the macro was only invoked conditionally." "$LINENO" 5
9352fi
9353if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9354  as_fn_error "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9355Usually this means the macro was only invoked conditionally." "$LINENO" 5
9356fi
9357if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9358  as_fn_error "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9359Usually this means the macro was only invoked conditionally." "$LINENO" 5
9360fi
9361if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9362  as_fn_error "conditional \"HAS_ALTIVEC\" was never defined.
9363Usually this means the macro was only invoked conditionally." "$LINENO" 5
9364fi
9365if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9366  as_fn_error "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9367Usually this means the macro was only invoked conditionally." "$LINENO" 5
9368fi
9369if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9370  as_fn_error "conditional \"BUILD_SSE3_TESTS\" was never defined.
9371Usually this means the macro was only invoked conditionally." "$LINENO" 5
9372fi
9373if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9374  as_fn_error "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9375Usually this means the macro was only invoked conditionally." "$LINENO" 5
9376fi
9377if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
9378  as_fn_error "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
9379Usually this means the macro was only invoked conditionally." "$LINENO" 5
9380fi
9381if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
9382  as_fn_error "conditional \"BUILD_LZCNT_TESTS\" was never defined.
9383Usually this means the macro was only invoked conditionally." "$LINENO" 5
9384fi
9385if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9386  as_fn_error "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9387Usually this means the macro was only invoked conditionally." "$LINENO" 5
9388fi
9389if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9390  as_fn_error "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9391Usually this means the macro was only invoked conditionally." "$LINENO" 5
9392fi
9393if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9394  as_fn_error "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9395Usually this means the macro was only invoked conditionally." "$LINENO" 5
9396fi
9397if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9398  as_fn_error "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9399Usually this means the macro was only invoked conditionally." "$LINENO" 5
9400fi
9401if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9402  as_fn_error "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9403Usually this means the macro was only invoked conditionally." "$LINENO" 5
9404fi
9405if test -z "${HAVE_QTCORE_TRUE}" && test -z "${HAVE_QTCORE_FALSE}"; then
9406  as_fn_error "conditional \"HAVE_QTCORE\" was never defined.
9407Usually this means the macro was only invoked conditionally." "$LINENO" 5
9408fi
9409if test -z "${HAVE_QTCORE_QATOMICINT_TRUE}" && test -z "${HAVE_QTCORE_QATOMICINT_FALSE}"; then
9410  as_fn_error "conditional \"HAVE_QTCORE_QATOMICINT\" was never defined.
9411Usually this means the macro was only invoked conditionally." "$LINENO" 5
9412fi
9413if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9414  as_fn_error "conditional \"HAVE_BOOST_1_35\" was never defined.
9415Usually this means the macro was only invoked conditionally." "$LINENO" 5
9416fi
9417if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9418  as_fn_error "conditional \"HAVE_OPENMP\" was never defined.
9419Usually this means the macro was only invoked conditionally." "$LINENO" 5
9420fi
9421if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9422  as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9423Usually this means the macro was only invoked conditionally." "$LINENO" 5
9424fi
9425
9426: ${CONFIG_STATUS=./config.status}
9427ac_write_fail=0
9428ac_clean_files_save=$ac_clean_files
9429ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9431$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9432as_write_fail=0
9433cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9434#! $SHELL
9435# Generated by $as_me.
9436# Run this file to recreate the current configuration.
9437# Compiler output produced by configure, useful for debugging
9438# configure, is in config.log if it exists.
9439
9440debug=false
9441ac_cs_recheck=false
9442ac_cs_silent=false
9443
9444SHELL=\${CONFIG_SHELL-$SHELL}
9445export SHELL
9446_ASEOF
9447cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9448## -------------------- ##
9449## M4sh Initialization. ##
9450## -------------------- ##
9451
9452# Be more Bourne compatible
9453DUALCASE=1; export DUALCASE # for MKS sh
9454if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9455  emulate sh
9456  NULLCMD=:
9457  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9458  # is contrary to our usage.  Disable this feature.
9459  alias -g '${1+"$@"}'='"$@"'
9460  setopt NO_GLOB_SUBST
9461else
9462  case `(set -o) 2>/dev/null` in #(
9463  *posix*) :
9464    set -o posix ;; #(
9465  *) :
9466     ;;
9467esac
9468fi
9469
9470
9471as_nl='
9472'
9473export as_nl
9474# Printing a long string crashes Solaris 7 /usr/bin/printf.
9475as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9476as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9477as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9478# Prefer a ksh shell builtin over an external printf program on Solaris,
9479# but without wasting forks for bash or zsh.
9480if test -z "$BASH_VERSION$ZSH_VERSION" \
9481    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9482  as_echo='print -r --'
9483  as_echo_n='print -rn --'
9484elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9485  as_echo='printf %s\n'
9486  as_echo_n='printf %s'
9487else
9488  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9489    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9490    as_echo_n='/usr/ucb/echo -n'
9491  else
9492    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9493    as_echo_n_body='eval
9494      arg=$1;
9495      case $arg in #(
9496      *"$as_nl"*)
9497	expr "X$arg" : "X\\(.*\\)$as_nl";
9498	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9499      esac;
9500      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9501    '
9502    export as_echo_n_body
9503    as_echo_n='sh -c $as_echo_n_body as_echo'
9504  fi
9505  export as_echo_body
9506  as_echo='sh -c $as_echo_body as_echo'
9507fi
9508
9509# The user is always right.
9510if test "${PATH_SEPARATOR+set}" != set; then
9511  PATH_SEPARATOR=:
9512  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9513    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9514      PATH_SEPARATOR=';'
9515  }
9516fi
9517
9518
9519# IFS
9520# We need space, tab and new line, in precisely that order.  Quoting is
9521# there to prevent editors from complaining about space-tab.
9522# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9523# splitting by setting IFS to empty value.)
9524IFS=" ""	$as_nl"
9525
9526# Find who we are.  Look in the path if we contain no directory separator.
9527case $0 in #((
9528  *[\\/]* ) as_myself=$0 ;;
9529  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530for as_dir in $PATH
9531do
9532  IFS=$as_save_IFS
9533  test -z "$as_dir" && as_dir=.
9534    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9535  done
9536IFS=$as_save_IFS
9537
9538     ;;
9539esac
9540# We did not find ourselves, most probably we were run as `sh COMMAND'
9541# in which case we are not to be found in the path.
9542if test "x$as_myself" = x; then
9543  as_myself=$0
9544fi
9545if test ! -f "$as_myself"; then
9546  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9547  exit 1
9548fi
9549
9550# Unset variables that we do not need and which cause bugs (e.g. in
9551# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9552# suppresses any "Segmentation fault" message there.  '((' could
9553# trigger a bug in pdksh 5.2.14.
9554for as_var in BASH_ENV ENV MAIL MAILPATH
9555do eval test x\${$as_var+set} = xset \
9556  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9557done
9558PS1='$ '
9559PS2='> '
9560PS4='+ '
9561
9562# NLS nuisances.
9563LC_ALL=C
9564export LC_ALL
9565LANGUAGE=C
9566export LANGUAGE
9567
9568# CDPATH.
9569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9570
9571
9572# as_fn_error ERROR [LINENO LOG_FD]
9573# ---------------------------------
9574# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9575# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9576# script with status $?, using 1 if that was 0.
9577as_fn_error ()
9578{
9579  as_status=$?; test $as_status -eq 0 && as_status=1
9580  if test "$3"; then
9581    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9582    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9583  fi
9584  $as_echo "$as_me: error: $1" >&2
9585  as_fn_exit $as_status
9586} # as_fn_error
9587
9588
9589# as_fn_set_status STATUS
9590# -----------------------
9591# Set $? to STATUS, without forking.
9592as_fn_set_status ()
9593{
9594  return $1
9595} # as_fn_set_status
9596
9597# as_fn_exit STATUS
9598# -----------------
9599# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9600as_fn_exit ()
9601{
9602  set +e
9603  as_fn_set_status $1
9604  exit $1
9605} # as_fn_exit
9606
9607# as_fn_unset VAR
9608# ---------------
9609# Portably unset VAR.
9610as_fn_unset ()
9611{
9612  { eval $1=; unset $1;}
9613}
9614as_unset=as_fn_unset
9615# as_fn_append VAR VALUE
9616# ----------------------
9617# Append the text in VALUE to the end of the definition contained in VAR. Take
9618# advantage of any shell optimizations that allow amortized linear growth over
9619# repeated appends, instead of the typical quadratic growth present in naive
9620# implementations.
9621if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9622  eval 'as_fn_append ()
9623  {
9624    eval $1+=\$2
9625  }'
9626else
9627  as_fn_append ()
9628  {
9629    eval $1=\$$1\$2
9630  }
9631fi # as_fn_append
9632
9633# as_fn_arith ARG...
9634# ------------------
9635# Perform arithmetic evaluation on the ARGs, and store the result in the
9636# global $as_val. Take advantage of shells that can avoid forks. The arguments
9637# must be portable across $(()) and expr.
9638if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9639  eval 'as_fn_arith ()
9640  {
9641    as_val=$(( $* ))
9642  }'
9643else
9644  as_fn_arith ()
9645  {
9646    as_val=`expr "$@" || test $? -eq 1`
9647  }
9648fi # as_fn_arith
9649
9650
9651if expr a : '\(a\)' >/dev/null 2>&1 &&
9652   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9653  as_expr=expr
9654else
9655  as_expr=false
9656fi
9657
9658if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9659  as_basename=basename
9660else
9661  as_basename=false
9662fi
9663
9664if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9665  as_dirname=dirname
9666else
9667  as_dirname=false
9668fi
9669
9670as_me=`$as_basename -- "$0" ||
9671$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9672	 X"$0" : 'X\(//\)$' \| \
9673	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9674$as_echo X/"$0" |
9675    sed '/^.*\/\([^/][^/]*\)\/*$/{
9676	    s//\1/
9677	    q
9678	  }
9679	  /^X\/\(\/\/\)$/{
9680	    s//\1/
9681	    q
9682	  }
9683	  /^X\/\(\/\).*/{
9684	    s//\1/
9685	    q
9686	  }
9687	  s/.*/./; q'`
9688
9689# Avoid depending upon Character Ranges.
9690as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9691as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9692as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9693as_cr_digits='0123456789'
9694as_cr_alnum=$as_cr_Letters$as_cr_digits
9695
9696ECHO_C= ECHO_N= ECHO_T=
9697case `echo -n x` in #(((((
9698-n*)
9699  case `echo 'xy\c'` in
9700  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9701  xy)  ECHO_C='\c';;
9702  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9703       ECHO_T='	';;
9704  esac;;
9705*)
9706  ECHO_N='-n';;
9707esac
9708
9709rm -f conf$$ conf$$.exe conf$$.file
9710if test -d conf$$.dir; then
9711  rm -f conf$$.dir/conf$$.file
9712else
9713  rm -f conf$$.dir
9714  mkdir conf$$.dir 2>/dev/null
9715fi
9716if (echo >conf$$.file) 2>/dev/null; then
9717  if ln -s conf$$.file conf$$ 2>/dev/null; then
9718    as_ln_s='ln -s'
9719    # ... but there are two gotchas:
9720    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9721    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9722    # In both cases, we have to default to `cp -p'.
9723    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9724      as_ln_s='cp -p'
9725  elif ln conf$$.file conf$$ 2>/dev/null; then
9726    as_ln_s=ln
9727  else
9728    as_ln_s='cp -p'
9729  fi
9730else
9731  as_ln_s='cp -p'
9732fi
9733rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9734rmdir conf$$.dir 2>/dev/null
9735
9736
9737# as_fn_mkdir_p
9738# -------------
9739# Create "$as_dir" as a directory, including parents if necessary.
9740as_fn_mkdir_p ()
9741{
9742
9743  case $as_dir in #(
9744  -*) as_dir=./$as_dir;;
9745  esac
9746  test -d "$as_dir" || eval $as_mkdir_p || {
9747    as_dirs=
9748    while :; do
9749      case $as_dir in #(
9750      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9751      *) as_qdir=$as_dir;;
9752      esac
9753      as_dirs="'$as_qdir' $as_dirs"
9754      as_dir=`$as_dirname -- "$as_dir" ||
9755$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9756	 X"$as_dir" : 'X\(//\)[^/]' \| \
9757	 X"$as_dir" : 'X\(//\)$' \| \
9758	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9759$as_echo X"$as_dir" |
9760    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9761	    s//\1/
9762	    q
9763	  }
9764	  /^X\(\/\/\)[^/].*/{
9765	    s//\1/
9766	    q
9767	  }
9768	  /^X\(\/\/\)$/{
9769	    s//\1/
9770	    q
9771	  }
9772	  /^X\(\/\).*/{
9773	    s//\1/
9774	    q
9775	  }
9776	  s/.*/./; q'`
9777      test -d "$as_dir" && break
9778    done
9779    test -z "$as_dirs" || eval "mkdir $as_dirs"
9780  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9781
9782
9783} # as_fn_mkdir_p
9784if mkdir -p . 2>/dev/null; then
9785  as_mkdir_p='mkdir -p "$as_dir"'
9786else
9787  test -d ./-p && rmdir ./-p
9788  as_mkdir_p=false
9789fi
9790
9791if test -x / >/dev/null 2>&1; then
9792  as_test_x='test -x'
9793else
9794  if ls -dL / >/dev/null 2>&1; then
9795    as_ls_L_option=L
9796  else
9797    as_ls_L_option=
9798  fi
9799  as_test_x='
9800    eval sh -c '\''
9801      if test -d "$1"; then
9802	test -d "$1/.";
9803      else
9804	case $1 in #(
9805	-*)set "./$1";;
9806	esac;
9807	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9808	???[sx]*):;;*)false;;esac;fi
9809    '\'' sh
9810  '
9811fi
9812as_executable_p=$as_test_x
9813
9814# Sed expression to map a string onto a valid CPP name.
9815as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9816
9817# Sed expression to map a string onto a valid variable name.
9818as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9819
9820
9821exec 6>&1
9822## ----------------------------------- ##
9823## Main body of $CONFIG_STATUS script. ##
9824## ----------------------------------- ##
9825_ASEOF
9826test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9827
9828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9829# Save the log message, to keep $0 and so on meaningful, and to
9830# report actual input values of CONFIG_FILES etc. instead of their
9831# values after options handling.
9832ac_log="
9833This file was extended by Valgrind $as_me 3.6.1, which was
9834generated by GNU Autoconf 2.65.  Invocation command line was
9835
9836  CONFIG_FILES    = $CONFIG_FILES
9837  CONFIG_HEADERS  = $CONFIG_HEADERS
9838  CONFIG_LINKS    = $CONFIG_LINKS
9839  CONFIG_COMMANDS = $CONFIG_COMMANDS
9840  $ $0 $@
9841
9842on `(hostname || uname -n) 2>/dev/null | sed 1q`
9843"
9844
9845_ACEOF
9846
9847case $ac_config_files in *"
9848"*) set x $ac_config_files; shift; ac_config_files=$*;;
9849esac
9850
9851case $ac_config_headers in *"
9852"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9853esac
9854
9855
9856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9857# Files that config.status was made for.
9858config_files="$ac_config_files"
9859config_headers="$ac_config_headers"
9860config_commands="$ac_config_commands"
9861
9862_ACEOF
9863
9864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9865ac_cs_usage="\
9866\`$as_me' instantiates files and other configuration actions
9867from templates according to the current configuration.  Unless the files
9868and actions are specified as TAGs, all are instantiated by default.
9869
9870Usage: $0 [OPTION]... [TAG]...
9871
9872  -h, --help       print this help, then exit
9873  -V, --version    print version number and configuration settings, then exit
9874      --config     print configuration, then exit
9875  -q, --quiet, --silent
9876                   do not print progress messages
9877  -d, --debug      don't remove temporary files
9878      --recheck    update $as_me by reconfiguring in the same conditions
9879      --file=FILE[:TEMPLATE]
9880                   instantiate the configuration file FILE
9881      --header=FILE[:TEMPLATE]
9882                   instantiate the configuration header FILE
9883
9884Configuration files:
9885$config_files
9886
9887Configuration headers:
9888$config_headers
9889
9890Configuration commands:
9891$config_commands
9892
9893Report bugs to <valgrind-users@lists.sourceforge.net>."
9894
9895_ACEOF
9896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9897ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9898ac_cs_version="\\
9899Valgrind config.status 3.6.1
9900configured by $0, generated by GNU Autoconf 2.65,
9901  with options \\"\$ac_cs_config\\"
9902
9903Copyright (C) 2009 Free Software Foundation, Inc.
9904This config.status script is free software; the Free Software Foundation
9905gives unlimited permission to copy, distribute and modify it."
9906
9907ac_pwd='$ac_pwd'
9908srcdir='$srcdir'
9909INSTALL='$INSTALL'
9910MKDIR_P='$MKDIR_P'
9911AWK='$AWK'
9912test -n "\$AWK" || AWK=awk
9913_ACEOF
9914
9915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9916# The default lists apply if the user does not specify any file.
9917ac_need_defaults=:
9918while test $# != 0
9919do
9920  case $1 in
9921  --*=*)
9922    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9923    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9924    ac_shift=:
9925    ;;
9926  *)
9927    ac_option=$1
9928    ac_optarg=$2
9929    ac_shift=shift
9930    ;;
9931  esac
9932
9933  case $ac_option in
9934  # Handling of the options.
9935  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9936    ac_cs_recheck=: ;;
9937  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9938    $as_echo "$ac_cs_version"; exit ;;
9939  --config | --confi | --conf | --con | --co | --c )
9940    $as_echo "$ac_cs_config"; exit ;;
9941  --debug | --debu | --deb | --de | --d | -d )
9942    debug=: ;;
9943  --file | --fil | --fi | --f )
9944    $ac_shift
9945    case $ac_optarg in
9946    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9947    esac
9948    as_fn_append CONFIG_FILES " '$ac_optarg'"
9949    ac_need_defaults=false;;
9950  --header | --heade | --head | --hea )
9951    $ac_shift
9952    case $ac_optarg in
9953    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9954    esac
9955    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9956    ac_need_defaults=false;;
9957  --he | --h)
9958    # Conflict between --help and --header
9959    as_fn_error "ambiguous option: \`$1'
9960Try \`$0 --help' for more information.";;
9961  --help | --hel | -h )
9962    $as_echo "$ac_cs_usage"; exit ;;
9963  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9964  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9965    ac_cs_silent=: ;;
9966
9967  # This is an error.
9968  -*) as_fn_error "unrecognized option: \`$1'
9969Try \`$0 --help' for more information." ;;
9970
9971  *) as_fn_append ac_config_targets " $1"
9972     ac_need_defaults=false ;;
9973
9974  esac
9975  shift
9976done
9977
9978ac_configure_extra_args=
9979
9980if $ac_cs_silent; then
9981  exec 6>/dev/null
9982  ac_configure_extra_args="$ac_configure_extra_args --silent"
9983fi
9984
9985_ACEOF
9986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9987if \$ac_cs_recheck; then
9988  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9989  shift
9990  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9991  CONFIG_SHELL='$SHELL'
9992  export CONFIG_SHELL
9993  exec "\$@"
9994fi
9995
9996_ACEOF
9997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9998exec 5>>config.log
9999{
10000  echo
10001  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10002## Running $as_me. ##
10003_ASBOX
10004  $as_echo "$ac_log"
10005} >&5
10006
10007_ACEOF
10008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10009#
10010# INIT-COMMANDS
10011#
10012AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10013
10014_ACEOF
10015
10016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10017
10018# Handling of arguments.
10019for ac_config_target in $ac_config_targets
10020do
10021  case $ac_config_target in
10022    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10023    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10024    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10025    "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
10026    "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
10027    "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
10028    "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
10029    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10030    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10031    "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
10032    "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
10033    "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
10034    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10035    "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
10036    "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
10037    "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
10038    "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
10039    "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
10040    "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
10041    "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
10042    "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
10043    "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
10044    "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
10045    "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
10046    "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
10047    "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
10048    "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
10049    "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10050    "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10051    "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10052    "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10053    "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10054    "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10055    "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10056    "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10057    "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10058    "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10059    "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10060    "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10061    "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10062    "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10063    "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10064    "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10065    "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10066    "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10067    "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10068    "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10069    "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10070    "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10071    "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10072    "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10073    "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10074    "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10075    "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10076    "exp-ptrcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/Makefile" ;;
10077    "exp-ptrcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/tests/Makefile" ;;
10078    "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10079    "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10080    "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10081    "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10082    "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10083    "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10084    "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10085    "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10086    "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10087    "exp-bbv/tests/arm-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/arm-linux/Makefile" ;;
10088    "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;;
10089    "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;;
10090    "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10091    "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10092    "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10093
10094  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10095  esac
10096done
10097
10098
10099# If the user did not use the arguments to specify the items to instantiate,
10100# then the envvar interface is used.  Set only those that are not.
10101# We use the long form for the default assignment because of an extremely
10102# bizarre bug on SunOS 4.1.3.
10103if $ac_need_defaults; then
10104  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10105  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10106  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10107fi
10108
10109# Have a temporary directory for convenience.  Make it in the build tree
10110# simply because there is no reason against having it here, and in addition,
10111# creating and moving files from /tmp can sometimes cause problems.
10112# Hook for its removal unless debugging.
10113# Note that there is a small window in which the directory will not be cleaned:
10114# after its creation but before its name has been assigned to `$tmp'.
10115$debug ||
10116{
10117  tmp=
10118  trap 'exit_status=$?
10119  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10120' 0
10121  trap 'as_fn_exit 1' 1 2 13 15
10122}
10123# Create a (secure) tmp directory for tmp files.
10124
10125{
10126  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10127  test -n "$tmp" && test -d "$tmp"
10128}  ||
10129{
10130  tmp=./conf$$-$RANDOM
10131  (umask 077 && mkdir "$tmp")
10132} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10133
10134# Set up the scripts for CONFIG_FILES section.
10135# No need to generate them if there are no CONFIG_FILES.
10136# This happens for instance with `./config.status config.h'.
10137if test -n "$CONFIG_FILES"; then
10138
10139
10140ac_cr=`echo X | tr X '\015'`
10141# On cygwin, bash can eat \r inside `` if the user requested igncr.
10142# But we know of no other shell where ac_cr would be empty at this
10143# point, so we can use a bashism as a fallback.
10144if test "x$ac_cr" = x; then
10145  eval ac_cr=\$\'\\r\'
10146fi
10147ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10148if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10149  ac_cs_awk_cr='\r'
10150else
10151  ac_cs_awk_cr=$ac_cr
10152fi
10153
10154echo 'BEGIN {' >"$tmp/subs1.awk" &&
10155_ACEOF
10156
10157
10158{
10159  echo "cat >conf$$subs.awk <<_ACEOF" &&
10160  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10161  echo "_ACEOF"
10162} >conf$$subs.sh ||
10163  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10164ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10165ac_delim='%!_!# '
10166for ac_last_try in false false false false false :; do
10167  . ./conf$$subs.sh ||
10168    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10169
10170  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10171  if test $ac_delim_n = $ac_delim_num; then
10172    break
10173  elif $ac_last_try; then
10174    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10175  else
10176    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10177  fi
10178done
10179rm -f conf$$subs.sh
10180
10181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10182cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10183_ACEOF
10184sed -n '
10185h
10186s/^/S["/; s/!.*/"]=/
10187p
10188g
10189s/^[^!]*!//
10190:repl
10191t repl
10192s/'"$ac_delim"'$//
10193t delim
10194:nl
10195h
10196s/\(.\{148\}\)..*/\1/
10197t more1
10198s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10199p
10200n
10201b repl
10202:more1
10203s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10204p
10205g
10206s/.\{148\}//
10207t nl
10208:delim
10209h
10210s/\(.\{148\}\)..*/\1/
10211t more2
10212s/["\\]/\\&/g; s/^/"/; s/$/"/
10213p
10214b
10215:more2
10216s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10217p
10218g
10219s/.\{148\}//
10220t delim
10221' <conf$$subs.awk | sed '
10222/^[^""]/{
10223  N
10224  s/\n//
10225}
10226' >>$CONFIG_STATUS || ac_write_fail=1
10227rm -f conf$$subs.awk
10228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10229_ACAWK
10230cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10231  for (key in S) S_is_set[key] = 1
10232  FS = ""
10233
10234}
10235{
10236  line = $ 0
10237  nfields = split(line, field, "@")
10238  substed = 0
10239  len = length(field[1])
10240  for (i = 2; i < nfields; i++) {
10241    key = field[i]
10242    keylen = length(key)
10243    if (S_is_set[key]) {
10244      value = S[key]
10245      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10246      len += length(value) + length(field[++i])
10247      substed = 1
10248    } else
10249      len += 1 + keylen
10250  }
10251
10252  print line
10253}
10254
10255_ACAWK
10256_ACEOF
10257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10258if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10259  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10260else
10261  cat
10262fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10263  || as_fn_error "could not setup config files machinery" "$LINENO" 5
10264_ACEOF
10265
10266# VPATH may cause trouble with some makes, so we remove $(srcdir),
10267# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10268# trailing colons and then remove the whole line if VPATH becomes empty
10269# (actually we leave an empty line to preserve line numbers).
10270if test "x$srcdir" = x.; then
10271  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
10272s/:*\$(srcdir):*/:/
10273s/:*\${srcdir}:*/:/
10274s/:*@srcdir@:*/:/
10275s/^\([^=]*=[	 ]*\):*/\1/
10276s/:*$//
10277s/^[^=]*=[	 ]*$//
10278}'
10279fi
10280
10281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10282fi # test -n "$CONFIG_FILES"
10283
10284# Set up the scripts for CONFIG_HEADERS section.
10285# No need to generate them if there are no CONFIG_HEADERS.
10286# This happens for instance with `./config.status Makefile'.
10287if test -n "$CONFIG_HEADERS"; then
10288cat >"$tmp/defines.awk" <<\_ACAWK ||
10289BEGIN {
10290_ACEOF
10291
10292# Transform confdefs.h into an awk script `defines.awk', embedded as
10293# here-document in config.status, that substitutes the proper values into
10294# config.h.in to produce config.h.
10295
10296# Create a delimiter string that does not exist in confdefs.h, to ease
10297# handling of long lines.
10298ac_delim='%!_!# '
10299for ac_last_try in false false :; do
10300  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10301  if test -z "$ac_t"; then
10302    break
10303  elif $ac_last_try; then
10304    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10305  else
10306    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10307  fi
10308done
10309
10310# For the awk script, D is an array of macro values keyed by name,
10311# likewise P contains macro parameters if any.  Preserve backslash
10312# newline sequences.
10313
10314ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10315sed -n '
10316s/.\{148\}/&'"$ac_delim"'/g
10317t rset
10318:rset
10319s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10320t def
10321d
10322:def
10323s/\\$//
10324t bsnl
10325s/["\\]/\\&/g
10326s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10327D["\1"]=" \3"/p
10328s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10329d
10330:bsnl
10331s/["\\]/\\&/g
10332s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10333D["\1"]=" \3\\\\\\n"\\/p
10334t cont
10335s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10336t cont
10337d
10338:cont
10339n
10340s/.\{148\}/&'"$ac_delim"'/g
10341t clear
10342:clear
10343s/\\$//
10344t bsnlc
10345s/["\\]/\\&/g; s/^/"/; s/$/"/p
10346d
10347:bsnlc
10348s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10349b cont
10350' <confdefs.h | sed '
10351s/'"$ac_delim"'/"\\\
10352"/g' >>$CONFIG_STATUS || ac_write_fail=1
10353
10354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10355  for (key in D) D_is_set[key] = 1
10356  FS = ""
10357}
10358/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10359  line = \$ 0
10360  split(line, arg, " ")
10361  if (arg[1] == "#") {
10362    defundef = arg[2]
10363    mac1 = arg[3]
10364  } else {
10365    defundef = substr(arg[1], 2)
10366    mac1 = arg[2]
10367  }
10368  split(mac1, mac2, "(") #)
10369  macro = mac2[1]
10370  prefix = substr(line, 1, index(line, defundef) - 1)
10371  if (D_is_set[macro]) {
10372    # Preserve the white space surrounding the "#".
10373    print prefix "define", macro P[macro] D[macro]
10374    next
10375  } else {
10376    # Replace #undef with comments.  This is necessary, for example,
10377    # in the case of _POSIX_SOURCE, which is predefined and required
10378    # on some systems where configure will not decide to define it.
10379    if (defundef == "undef") {
10380      print "/*", prefix defundef, macro, "*/"
10381      next
10382    }
10383  }
10384}
10385{ print }
10386_ACAWK
10387_ACEOF
10388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10389  as_fn_error "could not setup config headers machinery" "$LINENO" 5
10390fi # test -n "$CONFIG_HEADERS"
10391
10392
10393eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10394shift
10395for ac_tag
10396do
10397  case $ac_tag in
10398  :[FHLC]) ac_mode=$ac_tag; continue;;
10399  esac
10400  case $ac_mode$ac_tag in
10401  :[FHL]*:*);;
10402  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10403  :[FH]-) ac_tag=-:-;;
10404  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10405  esac
10406  ac_save_IFS=$IFS
10407  IFS=:
10408  set x $ac_tag
10409  IFS=$ac_save_IFS
10410  shift
10411  ac_file=$1
10412  shift
10413
10414  case $ac_mode in
10415  :L) ac_source=$1;;
10416  :[FH])
10417    ac_file_inputs=
10418    for ac_f
10419    do
10420      case $ac_f in
10421      -) ac_f="$tmp/stdin";;
10422      *) # Look for the file first in the build tree, then in the source tree
10423	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10424	 # because $ac_f cannot contain `:'.
10425	 test -f "$ac_f" ||
10426	   case $ac_f in
10427	   [\\/$]*) false;;
10428	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10429	   esac ||
10430	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10431      esac
10432      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10433      as_fn_append ac_file_inputs " '$ac_f'"
10434    done
10435
10436    # Let's still pretend it is `configure' which instantiates (i.e., don't
10437    # use $as_me), people would be surprised to read:
10438    #    /* config.h.  Generated by config.status.  */
10439    configure_input='Generated from '`
10440	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10441	`' by configure.'
10442    if test x"$ac_file" != x-; then
10443      configure_input="$ac_file.  $configure_input"
10444      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10445$as_echo "$as_me: creating $ac_file" >&6;}
10446    fi
10447    # Neutralize special characters interpreted by sed in replacement strings.
10448    case $configure_input in #(
10449    *\&* | *\|* | *\\* )
10450       ac_sed_conf_input=`$as_echo "$configure_input" |
10451       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10452    *) ac_sed_conf_input=$configure_input;;
10453    esac
10454
10455    case $ac_tag in
10456    *:-:* | *:-) cat >"$tmp/stdin" \
10457      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10458    esac
10459    ;;
10460  esac
10461
10462  ac_dir=`$as_dirname -- "$ac_file" ||
10463$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10464	 X"$ac_file" : 'X\(//\)[^/]' \| \
10465	 X"$ac_file" : 'X\(//\)$' \| \
10466	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10467$as_echo X"$ac_file" |
10468    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10469	    s//\1/
10470	    q
10471	  }
10472	  /^X\(\/\/\)[^/].*/{
10473	    s//\1/
10474	    q
10475	  }
10476	  /^X\(\/\/\)$/{
10477	    s//\1/
10478	    q
10479	  }
10480	  /^X\(\/\).*/{
10481	    s//\1/
10482	    q
10483	  }
10484	  s/.*/./; q'`
10485  as_dir="$ac_dir"; as_fn_mkdir_p
10486  ac_builddir=.
10487
10488case "$ac_dir" in
10489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10490*)
10491  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10492  # A ".." for each directory in $ac_dir_suffix.
10493  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10494  case $ac_top_builddir_sub in
10495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10497  esac ;;
10498esac
10499ac_abs_top_builddir=$ac_pwd
10500ac_abs_builddir=$ac_pwd$ac_dir_suffix
10501# for backward compatibility:
10502ac_top_builddir=$ac_top_build_prefix
10503
10504case $srcdir in
10505  .)  # We are building in place.
10506    ac_srcdir=.
10507    ac_top_srcdir=$ac_top_builddir_sub
10508    ac_abs_top_srcdir=$ac_pwd ;;
10509  [\\/]* | ?:[\\/]* )  # Absolute name.
10510    ac_srcdir=$srcdir$ac_dir_suffix;
10511    ac_top_srcdir=$srcdir
10512    ac_abs_top_srcdir=$srcdir ;;
10513  *) # Relative name.
10514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10515    ac_top_srcdir=$ac_top_build_prefix$srcdir
10516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10517esac
10518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10519
10520
10521  case $ac_mode in
10522  :F)
10523  #
10524  # CONFIG_FILE
10525  #
10526
10527  case $INSTALL in
10528  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10529  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10530  esac
10531  ac_MKDIR_P=$MKDIR_P
10532  case $MKDIR_P in
10533  [\\/$]* | ?:[\\/]* ) ;;
10534  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10535  esac
10536_ACEOF
10537
10538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10539# If the template does not know about datarootdir, expand it.
10540# FIXME: This hack should be removed a few years after 2.60.
10541ac_datarootdir_hack=; ac_datarootdir_seen=
10542ac_sed_dataroot='
10543/datarootdir/ {
10544  p
10545  q
10546}
10547/@datadir@/p
10548/@docdir@/p
10549/@infodir@/p
10550/@localedir@/p
10551/@mandir@/p'
10552case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10553*datarootdir*) ac_datarootdir_seen=yes;;
10554*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10555  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10556$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10557_ACEOF
10558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10559  ac_datarootdir_hack='
10560  s&@datadir@&$datadir&g
10561  s&@docdir@&$docdir&g
10562  s&@infodir@&$infodir&g
10563  s&@localedir@&$localedir&g
10564  s&@mandir@&$mandir&g
10565  s&\\\${datarootdir}&$datarootdir&g' ;;
10566esac
10567_ACEOF
10568
10569# Neutralize VPATH when `$srcdir' = `.'.
10570# Shell code in configure.ac might set extrasub.
10571# FIXME: do we really want to maintain this feature?
10572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10573ac_sed_extra="$ac_vpsub
10574$extrasub
10575_ACEOF
10576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10577:t
10578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10579s|@configure_input@|$ac_sed_conf_input|;t t
10580s&@top_builddir@&$ac_top_builddir_sub&;t t
10581s&@top_build_prefix@&$ac_top_build_prefix&;t t
10582s&@srcdir@&$ac_srcdir&;t t
10583s&@abs_srcdir@&$ac_abs_srcdir&;t t
10584s&@top_srcdir@&$ac_top_srcdir&;t t
10585s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10586s&@builddir@&$ac_builddir&;t t
10587s&@abs_builddir@&$ac_abs_builddir&;t t
10588s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10589s&@INSTALL@&$ac_INSTALL&;t t
10590s&@MKDIR_P@&$ac_MKDIR_P&;t t
10591$ac_datarootdir_hack
10592"
10593eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10594  || as_fn_error "could not create $ac_file" "$LINENO" 5
10595
10596test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10597  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10598  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10600which seems to be undefined.  Please make sure it is defined." >&5
10601$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10602which seems to be undefined.  Please make sure it is defined." >&2;}
10603
10604  rm -f "$tmp/stdin"
10605  case $ac_file in
10606  -) cat "$tmp/out" && rm -f "$tmp/out";;
10607  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10608  esac \
10609  || as_fn_error "could not create $ac_file" "$LINENO" 5
10610 ;;
10611  :H)
10612  #
10613  # CONFIG_HEADER
10614  #
10615  if test x"$ac_file" != x-; then
10616    {
10617      $as_echo "/* $configure_input  */" \
10618      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10619    } >"$tmp/config.h" \
10620      || as_fn_error "could not create $ac_file" "$LINENO" 5
10621    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10622      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10623$as_echo "$as_me: $ac_file is unchanged" >&6;}
10624    else
10625      rm -f "$ac_file"
10626      mv "$tmp/config.h" "$ac_file" \
10627	|| as_fn_error "could not create $ac_file" "$LINENO" 5
10628    fi
10629  else
10630    $as_echo "/* $configure_input  */" \
10631      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10632      || as_fn_error "could not create -" "$LINENO" 5
10633  fi
10634# Compute "$ac_file"'s index in $config_headers.
10635_am_arg="$ac_file"
10636_am_stamp_count=1
10637for _am_header in $config_headers :; do
10638  case $_am_header in
10639    $_am_arg | $_am_arg:* )
10640      break ;;
10641    * )
10642      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10643  esac
10644done
10645echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10646$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10647	 X"$_am_arg" : 'X\(//\)[^/]' \| \
10648	 X"$_am_arg" : 'X\(//\)$' \| \
10649	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10650$as_echo X"$_am_arg" |
10651    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10652	    s//\1/
10653	    q
10654	  }
10655	  /^X\(\/\/\)[^/].*/{
10656	    s//\1/
10657	    q
10658	  }
10659	  /^X\(\/\/\)$/{
10660	    s//\1/
10661	    q
10662	  }
10663	  /^X\(\/\).*/{
10664	    s//\1/
10665	    q
10666	  }
10667	  s/.*/./; q'`/stamp-h$_am_stamp_count
10668 ;;
10669
10670  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10671$as_echo "$as_me: executing $ac_file commands" >&6;}
10672 ;;
10673  esac
10674
10675
10676  case $ac_file$ac_mode in
10677    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10678  # Autoconf 2.62 quotes --file arguments for eval, but not when files
10679  # are listed without --file.  Let's play safe and only enable the eval
10680  # if we detect the quoting.
10681  case $CONFIG_FILES in
10682  *\'*) eval set x "$CONFIG_FILES" ;;
10683  *)   set x $CONFIG_FILES ;;
10684  esac
10685  shift
10686  for mf
10687  do
10688    # Strip MF so we end up with the name of the file.
10689    mf=`echo "$mf" | sed -e 's/:.*$//'`
10690    # Check whether this is an Automake generated Makefile or not.
10691    # We used to match only the files named `Makefile.in', but
10692    # some people rename them; so instead we look at the file content.
10693    # Grep'ing the first line is not enough: some people post-process
10694    # each Makefile.in and add a new line on top of each file to say so.
10695    # Grep'ing the whole file is not good either: AIX grep has a line
10696    # limit of 2048, but all sed's we know have understand at least 4000.
10697    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10698      dirpart=`$as_dirname -- "$mf" ||
10699$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10700	 X"$mf" : 'X\(//\)[^/]' \| \
10701	 X"$mf" : 'X\(//\)$' \| \
10702	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10703$as_echo X"$mf" |
10704    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10705	    s//\1/
10706	    q
10707	  }
10708	  /^X\(\/\/\)[^/].*/{
10709	    s//\1/
10710	    q
10711	  }
10712	  /^X\(\/\/\)$/{
10713	    s//\1/
10714	    q
10715	  }
10716	  /^X\(\/\).*/{
10717	    s//\1/
10718	    q
10719	  }
10720	  s/.*/./; q'`
10721    else
10722      continue
10723    fi
10724    # Extract the definition of DEPDIR, am__include, and am__quote
10725    # from the Makefile without running `make'.
10726    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10727    test -z "$DEPDIR" && continue
10728    am__include=`sed -n 's/^am__include = //p' < "$mf"`
10729    test -z "am__include" && continue
10730    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10731    # When using ansi2knr, U may be empty or an underscore; expand it
10732    U=`sed -n 's/^U = //p' < "$mf"`
10733    # Find all dependency output files, they are included files with
10734    # $(DEPDIR) in their names.  We invoke sed twice because it is the
10735    # simplest approach to changing $(DEPDIR) to its actual value in the
10736    # expansion.
10737    for file in `sed -n "
10738      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10739	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10740      # Make sure the directory exists.
10741      test -f "$dirpart/$file" && continue
10742      fdir=`$as_dirname -- "$file" ||
10743$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10744	 X"$file" : 'X\(//\)[^/]' \| \
10745	 X"$file" : 'X\(//\)$' \| \
10746	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10747$as_echo X"$file" |
10748    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10749	    s//\1/
10750	    q
10751	  }
10752	  /^X\(\/\/\)[^/].*/{
10753	    s//\1/
10754	    q
10755	  }
10756	  /^X\(\/\/\)$/{
10757	    s//\1/
10758	    q
10759	  }
10760	  /^X\(\/\).*/{
10761	    s//\1/
10762	    q
10763	  }
10764	  s/.*/./; q'`
10765      as_dir=$dirpart/$fdir; as_fn_mkdir_p
10766      # echo "creating $dirpart/$file"
10767      echo '# dummy' > "$dirpart/$file"
10768    done
10769  done
10770}
10771 ;;
10772    "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10773    "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10774    "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10775
10776  esac
10777done # for ac_tag
10778
10779
10780as_fn_exit 0
10781_ACEOF
10782ac_clean_files=$ac_clean_files_save
10783
10784test $ac_write_fail = 0 ||
10785  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10786
10787
10788# configure is writing to config.log, and then calls config.status.
10789# config.status does its own redirection, appending to config.log.
10790# Unfortunately, on DOS this fails, as config.log is still kept open
10791# by configure, so config.status won't be able to write to it; its
10792# output is simply discarded.  So we exec the FD to /dev/null,
10793# effectively closing config.log, so it can be properly (re)opened and
10794# appended to by config.status.  When coming back to configure, we
10795# need to make the FD available again.
10796if test "$no_create" != yes; then
10797  ac_cs_success=:
10798  ac_config_status_args=
10799  test "$silent" = yes &&
10800    ac_config_status_args="$ac_config_status_args --quiet"
10801  exec 5>/dev/null
10802  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10803  exec 5>>config.log
10804  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10805  # would make configure fail if this is the last instruction.
10806  $ac_cs_success || as_fn_exit $?
10807fi
10808if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10809  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10810$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10811fi
10812
10813
10814cat<<EOF
10815
10816         Maximum build arch: ${ARCH_MAX}
10817         Primary build arch: ${VGCONF_ARCH_PRI}
10818       Secondary build arch: ${VGCONF_ARCH_SEC}
10819                   Build OS: ${VGCONF_OS}
10820       Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10821     Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10822         Default supp files: ${DEFAULT_SUPP}
10823
10824EOF
10825