Home | History | Annotate | Download | only in main
      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 (at] lists.sourceforge.net>.
      6 #
      7 #
      8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
     10 # Inc.
     11 #
     12 #
     13 # This configure script is free software; the Free Software Foundation
     14 # gives unlimited permission to copy, distribute and modify it.
     15 ## -------------------- ##
     16 ## M4sh Initialization. ##
     17 ## -------------------- ##
     18 
     19 # Be more Bourne compatible
     20 DUALCASE=1; export DUALCASE # for MKS sh
     21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     22   emulate sh
     23   NULLCMD=:
     24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     25   # is contrary to our usage.  Disable this feature.
     26   alias -g '${1+"$@"}'='"$@"'
     27   setopt NO_GLOB_SUBST
     28 else
     29   case `(set -o) 2>/dev/null` in #(
     30   *posix*) :
     31     set -o posix ;; #(
     32   *) :
     33      ;;
     34 esac
     35 fi
     36 
     37 
     38 as_nl='
     39 '
     40 export as_nl
     41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     45 # Prefer a ksh shell builtin over an external printf program on Solaris,
     46 # but without wasting forks for bash or zsh.
     47 if test -z "$BASH_VERSION$ZSH_VERSION" \
     48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     49   as_echo='print -r --'
     50   as_echo_n='print -rn --'
     51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     52   as_echo='printf %s\n'
     53   as_echo_n='printf %s'
     54 else
     55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     57     as_echo_n='/usr/ucb/echo -n'
     58   else
     59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     60     as_echo_n_body='eval
     61       arg=$1;
     62       case $arg in #(
     63       *"$as_nl"*)
     64 	expr "X$arg" : "X\\(.*\\)$as_nl";
     65 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     66       esac;
     67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     68     '
     69     export as_echo_n_body
     70     as_echo_n='sh -c $as_echo_n_body as_echo'
     71   fi
     72   export as_echo_body
     73   as_echo='sh -c $as_echo_body as_echo'
     74 fi
     75 
     76 # The user is always right.
     77 if test "${PATH_SEPARATOR+set}" != set; then
     78   PATH_SEPARATOR=:
     79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     81       PATH_SEPARATOR=';'
     82   }
     83 fi
     84 
     85 
     86 # IFS
     87 # We need space, tab and new line, in precisely that order.  Quoting is
     88 # there to prevent editors from complaining about space-tab.
     89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     90 # splitting by setting IFS to empty value.)
     91 IFS=" ""	$as_nl"
     92 
     93 # Find who we are.  Look in the path if we contain no directory separator.
     94 case $0 in #((
     95   *[\\/]* ) as_myself=$0 ;;
     96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     97 for as_dir in $PATH
     98 do
     99   IFS=$as_save_IFS
    100   test -z "$as_dir" && as_dir=.
    101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    102   done
    103 IFS=$as_save_IFS
    104 
    105      ;;
    106 esac
    107 # We did not find ourselves, most probably we were run as `sh COMMAND'
    108 # in which case we are not to be found in the path.
    109 if test "x$as_myself" = x; then
    110   as_myself=$0
    111 fi
    112 if test ! -f "$as_myself"; then
    113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    114   exit 1
    115 fi
    116 
    117 # Unset variables that we do not need and which cause bugs (e.g. in
    118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    119 # suppresses any "Segmentation fault" message there.  '((' could
    120 # trigger a bug in pdksh 5.2.14.
    121 for as_var in BASH_ENV ENV MAIL MAILPATH
    122 do eval test x\${$as_var+set} = xset \
    123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    124 done
    125 PS1='$ '
    126 PS2='> '
    127 PS4='+ '
    128 
    129 # NLS nuisances.
    130 LC_ALL=C
    131 export LC_ALL
    132 LANGUAGE=C
    133 export LANGUAGE
    134 
    135 # CDPATH.
    136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    137 
    138 if test "x$CONFIG_SHELL" = x; then
    139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    140   emulate sh
    141   NULLCMD=:
    142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    143   # is contrary to our usage.  Disable this feature.
    144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    145   setopt NO_GLOB_SUBST
    146 else
    147   case \`(set -o) 2>/dev/null\` in #(
    148   *posix*) :
    149     set -o posix ;; #(
    150   *) :
    151      ;;
    152 esac
    153 fi
    154 "
    155   as_required="as_fn_return () { (exit \$1); }
    156 as_fn_success () { as_fn_return 0; }
    157 as_fn_failure () { as_fn_return 1; }
    158 as_fn_ret_success () { return 0; }
    159 as_fn_ret_failure () { return 1; }
    160 
    161 exitcode=0
    162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    167 
    168 else
    169   exitcode=1; echo positional parameters were not saved.
    170 fi
    171 test x\$exitcode = x0 || exit 1"
    172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    176 test \$(( 1 + 1 )) = 2 || exit 1"
    177   if (eval "$as_required") 2>/dev/null; then :
    178   as_have_required=yes
    179 else
    180   as_have_required=no
    181 fi
    182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    183 
    184 else
    185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    186 as_found=false
    187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    188 do
    189   IFS=$as_save_IFS
    190   test -z "$as_dir" && as_dir=.
    191   as_found=:
    192   case $as_dir in #(
    193 	 /*)
    194 	   for as_base in sh bash ksh sh5; do
    195 	     # Try only shells that exist, to save several forks.
    196 	     as_shell=$as_dir/$as_base
    197 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    198 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    199   CONFIG_SHELL=$as_shell as_have_required=yes
    200 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    201   break 2
    202 fi
    203 fi
    204 	   done;;
    205        esac
    206   as_found=false
    207 done
    208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    209 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    210   CONFIG_SHELL=$SHELL as_have_required=yes
    211 fi; }
    212 IFS=$as_save_IFS
    213 
    214 
    215       if test "x$CONFIG_SHELL" != x; then :
    216   # We cannot yet assume a decent shell, so we have to provide a
    217 	# neutralization value for shells without unset; and this also
    218 	# works around shells that cannot unset nonexistent variables.
    219 	BASH_ENV=/dev/null
    220 	ENV=/dev/null
    221 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    222 	export CONFIG_SHELL
    223 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    224 fi
    225 
    226     if test x$as_have_required = xno; then :
    227   $as_echo "$0: This script requires a shell more modern than all"
    228   $as_echo "$0: the shells that I found on your system."
    229   if test x${ZSH_VERSION+set} = xset ; then
    230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    232   else
    233     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
    234 $0: valgrind-users (at] lists.sourceforge.net about your system,
    235 $0: including any error possibly output before this
    236 $0: message. Then install a modern shell, or manually run
    237 $0: the script under such a shell if you do have one."
    238   fi
    239   exit 1
    240 fi
    241 fi
    242 fi
    243 SHELL=${CONFIG_SHELL-/bin/sh}
    244 export SHELL
    245 # Unset more variables known to interfere with behavior of common tools.
    246 CLICOLOR_FORCE= GREP_OPTIONS=
    247 unset CLICOLOR_FORCE GREP_OPTIONS
    248 
    249 ## --------------------- ##
    250 ## M4sh Shell Functions. ##
    251 ## --------------------- ##
    252 # as_fn_unset VAR
    253 # ---------------
    254 # Portably unset VAR.
    255 as_fn_unset ()
    256 {
    257   { eval $1=; unset $1;}
    258 }
    259 as_unset=as_fn_unset
    260 
    261 # as_fn_set_status STATUS
    262 # -----------------------
    263 # Set $? to STATUS, without forking.
    264 as_fn_set_status ()
    265 {
    266   return $1
    267 } # as_fn_set_status
    268 
    269 # as_fn_exit STATUS
    270 # -----------------
    271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    272 as_fn_exit ()
    273 {
    274   set +e
    275   as_fn_set_status $1
    276   exit $1
    277 } # as_fn_exit
    278 
    279 # as_fn_mkdir_p
    280 # -------------
    281 # Create "$as_dir" as a directory, including parents if necessary.
    282 as_fn_mkdir_p ()
    283 {
    284 
    285   case $as_dir in #(
    286   -*) as_dir=./$as_dir;;
    287   esac
    288   test -d "$as_dir" || eval $as_mkdir_p || {
    289     as_dirs=
    290     while :; do
    291       case $as_dir in #(
    292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    293       *) as_qdir=$as_dir;;
    294       esac
    295       as_dirs="'$as_qdir' $as_dirs"
    296       as_dir=`$as_dirname -- "$as_dir" ||
    297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    298 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    299 	 X"$as_dir" : 'X\(//\)$' \| \
    300 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    301 $as_echo X"$as_dir" |
    302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    303 	    s//\1/
    304 	    q
    305 	  }
    306 	  /^X\(\/\/\)[^/].*/{
    307 	    s//\1/
    308 	    q
    309 	  }
    310 	  /^X\(\/\/\)$/{
    311 	    s//\1/
    312 	    q
    313 	  }
    314 	  /^X\(\/\).*/{
    315 	    s//\1/
    316 	    q
    317 	  }
    318 	  s/.*/./; q'`
    319       test -d "$as_dir" && break
    320     done
    321     test -z "$as_dirs" || eval "mkdir $as_dirs"
    322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    323 
    324 
    325 } # as_fn_mkdir_p
    326 # as_fn_append VAR VALUE
    327 # ----------------------
    328 # Append the text in VALUE to the end of the definition contained in VAR. Take
    329 # advantage of any shell optimizations that allow amortized linear growth over
    330 # repeated appends, instead of the typical quadratic growth present in naive
    331 # implementations.
    332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    333   eval 'as_fn_append ()
    334   {
    335     eval $1+=\$2
    336   }'
    337 else
    338   as_fn_append ()
    339   {
    340     eval $1=\$$1\$2
    341   }
    342 fi # as_fn_append
    343 
    344 # as_fn_arith ARG...
    345 # ------------------
    346 # Perform arithmetic evaluation on the ARGs, and store the result in the
    347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    348 # must be portable across $(()) and expr.
    349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    350   eval 'as_fn_arith ()
    351   {
    352     as_val=$(( $* ))
    353   }'
    354 else
    355   as_fn_arith ()
    356   {
    357     as_val=`expr "$@" || test $? -eq 1`
    358   }
    359 fi # as_fn_arith
    360 
    361 
    362 # as_fn_error ERROR [LINENO LOG_FD]
    363 # ---------------------------------
    364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    366 # script with status $?, using 1 if that was 0.
    367 as_fn_error ()
    368 {
    369   as_status=$?; test $as_status -eq 0 && as_status=1
    370   if test "$3"; then
    371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
    373   fi
    374   $as_echo "$as_me: error: $1" >&2
    375   as_fn_exit $as_status
    376 } # as_fn_error
    377 
    378 if expr a : '\(a\)' >/dev/null 2>&1 &&
    379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    380   as_expr=expr
    381 else
    382   as_expr=false
    383 fi
    384 
    385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    386   as_basename=basename
    387 else
    388   as_basename=false
    389 fi
    390 
    391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    392   as_dirname=dirname
    393 else
    394   as_dirname=false
    395 fi
    396 
    397 as_me=`$as_basename -- "$0" ||
    398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    399 	 X"$0" : 'X\(//\)$' \| \
    400 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    401 $as_echo X/"$0" |
    402     sed '/^.*\/\([^/][^/]*\)\/*$/{
    403 	    s//\1/
    404 	    q
    405 	  }
    406 	  /^X\/\(\/\/\)$/{
    407 	    s//\1/
    408 	    q
    409 	  }
    410 	  /^X\/\(\/\).*/{
    411 	    s//\1/
    412 	    q
    413 	  }
    414 	  s/.*/./; q'`
    415 
    416 # Avoid depending upon Character Ranges.
    417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    420 as_cr_digits='0123456789'
    421 as_cr_alnum=$as_cr_Letters$as_cr_digits
    422 
    423 
    424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    429   sed -n '
    430     p
    431     /[$]LINENO/=
    432   ' <$as_myself |
    433     sed '
    434       s/[$]LINENO.*/&-/
    435       t lineno
    436       b
    437       :lineno
    438       N
    439       :loop
    440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    441       t loop
    442       s/-\n.*//
    443     ' >$as_me.lineno &&
    444   chmod +x "$as_me.lineno" ||
    445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    446 
    447   # Don't try to exec as it changes $[0], causing all sort of problems
    448   # (the dirname of $[0] is not the place where we might find the
    449   # original and so on.  Autoconf is especially sensitive to this).
    450   . "./$as_me.lineno"
    451   # Exit status is that of the last command.
    452   exit
    453 }
    454 
    455 ECHO_C= ECHO_N= ECHO_T=
    456 case `echo -n x` in #(((((
    457 -n*)
    458   case `echo 'xy\c'` in
    459   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    460   xy)  ECHO_C='\c';;
    461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    462        ECHO_T='	';;
    463   esac;;
    464 *)
    465   ECHO_N='-n';;
    466 esac
    467 
    468 rm -f conf$$ conf$$.exe conf$$.file
    469 if test -d conf$$.dir; then
    470   rm -f conf$$.dir/conf$$.file
    471 else
    472   rm -f conf$$.dir
    473   mkdir conf$$.dir 2>/dev/null
    474 fi
    475 if (echo >conf$$.file) 2>/dev/null; then
    476   if ln -s conf$$.file conf$$ 2>/dev/null; then
    477     as_ln_s='ln -s'
    478     # ... but there are two gotchas:
    479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    481     # In both cases, we have to default to `cp -p'.
    482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    483       as_ln_s='cp -p'
    484   elif ln conf$$.file conf$$ 2>/dev/null; then
    485     as_ln_s=ln
    486   else
    487     as_ln_s='cp -p'
    488   fi
    489 else
    490   as_ln_s='cp -p'
    491 fi
    492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    493 rmdir conf$$.dir 2>/dev/null
    494 
    495 if mkdir -p . 2>/dev/null; then
    496   as_mkdir_p='mkdir -p "$as_dir"'
    497 else
    498   test -d ./-p && rmdir ./-p
    499   as_mkdir_p=false
    500 fi
    501 
    502 if test -x / >/dev/null 2>&1; then
    503   as_test_x='test -x'
    504 else
    505   if ls -dL / >/dev/null 2>&1; then
    506     as_ls_L_option=L
    507   else
    508     as_ls_L_option=
    509   fi
    510   as_test_x='
    511     eval sh -c '\''
    512       if test -d "$1"; then
    513 	test -d "$1/.";
    514       else
    515 	case $1 in #(
    516 	-*)set "./$1";;
    517 	esac;
    518 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    519 	???[sx]*):;;*)false;;esac;fi
    520     '\'' sh
    521   '
    522 fi
    523 as_executable_p=$as_test_x
    524 
    525 # Sed expression to map a string onto a valid CPP name.
    526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    527 
    528 # Sed expression to map a string onto a valid variable name.
    529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    530 
    531 
    532 test -n "$DJDIR" || exec 7<&0 </dev/null
    533 exec 6>&1
    534 
    535 # Name of the host.
    536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    537 # so uname gets run too.
    538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    539 
    540 #
    541 # Initializations.
    542 #
    543 ac_default_prefix=/usr/local
    544 ac_clean_files=
    545 ac_config_libobj_dir=.
    546 LIBOBJS=
    547 cross_compiling=no
    548 subdirs=
    549 MFLAGS=
    550 MAKEFLAGS=
    551 
    552 # Identity of this package.
    553 PACKAGE_NAME='Valgrind'
    554 PACKAGE_TARNAME='valgrind'
    555 PACKAGE_VERSION='3.6.1'
    556 PACKAGE_STRING='Valgrind 3.6.1'
    557 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
    558 PACKAGE_URL=''
    559 
    560 ac_unique_file="coregrind/m_main.c"
    561 # Factoring default headers for most tests.
    562 ac_includes_default="\
    563 #include <stdio.h>
    564 #ifdef HAVE_SYS_TYPES_H
    565 # include <sys/types.h>
    566 #endif
    567 #ifdef HAVE_SYS_STAT_H
    568 # include <sys/stat.h>
    569 #endif
    570 #ifdef STDC_HEADERS
    571 # include <stdlib.h>
    572 # include <stddef.h>
    573 #else
    574 # ifdef HAVE_STDLIB_H
    575 #  include <stdlib.h>
    576 # endif
    577 #endif
    578 #ifdef HAVE_STRING_H
    579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    580 #  include <memory.h>
    581 # endif
    582 # include <string.h>
    583 #endif
    584 #ifdef HAVE_STRINGS_H
    585 # include <strings.h>
    586 #endif
    587 #ifdef HAVE_INTTYPES_H
    588 # include <inttypes.h>
    589 #endif
    590 #ifdef HAVE_STDINT_H
    591 # include <stdint.h>
    592 #endif
    593 #ifdef HAVE_UNISTD_H
    594 # include <unistd.h>
    595 #endif"
    596 
    597 ac_header_list=
    598 ac_subst_vars='am__EXEEXT_FALSE
    599 am__EXEEXT_TRUE
    600 LTLIBOBJS
    601 HAVE_BUILTIN_ATOMIC_FALSE
    602 HAVE_BUILTIN_ATOMIC_TRUE
    603 HAVE_OPENMP_FALSE
    604 HAVE_OPENMP_TRUE
    605 HAVE_BOOST_1_35_FALSE
    606 HAVE_BOOST_1_35_TRUE
    607 BOOST_LIBS
    608 BOOST_CFLAGS
    609 HAVE_QTCORE_QATOMICINT_FALSE
    610 HAVE_QTCORE_QATOMICINT_TRUE
    611 HAVE_QTCORE_FALSE
    612 HAVE_QTCORE_TRUE
    613 QTCORE_LIBS
    614 QTCORE_CFLAGS
    615 PKG_CONFIG
    616 BUILD_MPIWRAP_SEC_FALSE
    617 BUILD_MPIWRAP_SEC_TRUE
    618 BUILD_MPIWRAP_PRI_FALSE
    619 BUILD_MPIWRAP_PRI_TRUE
    620 MPI_CC
    621 HAVE_PTHREAD_SPINLOCK_FALSE
    622 HAVE_PTHREAD_SPINLOCK_TRUE
    623 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
    624 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
    625 HAVE_PTHREAD_BARRIER_FALSE
    626 HAVE_PTHREAD_BARRIER_TRUE
    627 LIBOBJS
    628 BUILD_LZCNT_TESTS_FALSE
    629 BUILD_LZCNT_TESTS_TRUE
    630 BUILD_PCLMULQDQ_TESTS_FALSE
    631 BUILD_PCLMULQDQ_TESTS_TRUE
    632 BUILD_SSSE3_TESTS_FALSE
    633 BUILD_SSSE3_TESTS_TRUE
    634 BUILD_SSE3_TESTS_FALSE
    635 BUILD_SSE3_TESTS_TRUE
    636 FLAG_NO_BUILD_ID
    637 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
    638 FLAG_FNO_STACK_PROTECTOR
    639 FLAG_W_EXTRA
    640 FLAG_W_NO_UNINITIALIZED
    641 FLAG_W_NO_FORMAT_ZERO_LENGTH
    642 FLAG_W_NO_EMPTY_BODY
    643 PREFERRED_STACK_BOUNDARY
    644 FLAG_MSSE
    645 FLAG_MMMX
    646 FLAG_MAIX64
    647 FLAG_M64
    648 FLAG_MAIX32
    649 FLAG_M32
    650 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
    651 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
    652 HAS_ALTIVEC_FALSE
    653 HAS_ALTIVEC_TRUE
    654 GLIBC_VERSION
    655 EGREP
    656 GREP
    657 DEFAULT_SUPP
    658 VALT_LOAD_ADDRESS_SEC
    659 VALT_LOAD_ADDRESS_PRI
    660 VGCONF_HAVE_PLATFORM_SEC_FALSE
    661 VGCONF_HAVE_PLATFORM_SEC_TRUE
    662 VGCONF_OS_IS_DARWIN_FALSE
    663 VGCONF_OS_IS_DARWIN_TRUE
    664 VGCONF_OS_IS_AIX5_FALSE
    665 VGCONF_OS_IS_AIX5_TRUE
    666 VGCONF_OS_IS_LINUX_FALSE
    667 VGCONF_OS_IS_LINUX_TRUE
    668 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
    669 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
    670 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
    671 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
    672 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
    673 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
    674 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
    675 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
    676 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
    677 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
    678 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
    679 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
    680 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
    681 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
    682 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
    683 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
    684 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
    685 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
    686 VGCONF_ARCHS_INCLUDE_ARM_FALSE
    687 VGCONF_ARCHS_INCLUDE_ARM_TRUE
    688 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
    689 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
    690 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
    691 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
    692 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
    693 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
    694 VGCONF_ARCHS_INCLUDE_X86_FALSE
    695 VGCONF_ARCHS_INCLUDE_X86_TRUE
    696 VGCONF_PLATFORM_SEC_CAPS
    697 VGCONF_PLATFORM_PRI_CAPS
    698 VGCONF_ARCH_SEC
    699 VGCONF_ARCH_PRI
    700 VGCONF_OS
    701 host_os
    702 host_vendor
    703 host_cpu
    704 host
    705 build_os
    706 build_vendor
    707 build_cpu
    708 build
    709 DIFF
    710 am__fastdepCCAS_FALSE
    711 am__fastdepCCAS_TRUE
    712 CCASDEPMODE
    713 CCASFLAGS
    714 CCAS
    715 GDB
    716 PERL
    717 AR
    718 SED
    719 RANLIB
    720 am__fastdepCXX_FALSE
    721 am__fastdepCXX_TRUE
    722 CXXDEPMODE
    723 ac_ct_CXX
    724 CXXFLAGS
    725 CXX
    726 CPP
    727 am__fastdepCC_FALSE
    728 am__fastdepCC_TRUE
    729 CCDEPMODE
    730 AMDEPBACKSLASH
    731 AMDEP_FALSE
    732 AMDEP_TRUE
    733 am__quote
    734 am__include
    735 DEPDIR
    736 OBJEXT
    737 EXEEXT
    738 ac_ct_CC
    739 CPPFLAGS
    740 LDFLAGS
    741 CFLAGS
    742 CC
    743 LN_S
    744 MAINT
    745 MAINTAINER_MODE_FALSE
    746 MAINTAINER_MODE_TRUE
    747 am__untar
    748 am__tar
    749 AMTAR
    750 am__leading_dot
    751 SET_MAKE
    752 AWK
    753 mkdir_p
    754 MKDIR_P
    755 INSTALL_STRIP_PROGRAM
    756 STRIP
    757 install_sh
    758 MAKEINFO
    759 AUTOHEADER
    760 AUTOMAKE
    761 AUTOCONF
    762 ACLOCAL
    763 VERSION
    764 PACKAGE
    765 CYGPATH_W
    766 am__isrc
    767 INSTALL_DATA
    768 INSTALL_SCRIPT
    769 INSTALL_PROGRAM
    770 target_alias
    771 host_alias
    772 build_alias
    773 LIBS
    774 ECHO_T
    775 ECHO_N
    776 ECHO_C
    777 DEFS
    778 mandir
    779 localedir
    780 libdir
    781 psdir
    782 pdfdir
    783 dvidir
    784 htmldir
    785 infodir
    786 docdir
    787 oldincludedir
    788 includedir
    789 localstatedir
    790 sharedstatedir
    791 sysconfdir
    792 datadir
    793 datarootdir
    794 libexecdir
    795 sbindir
    796 bindir
    797 program_transform_name
    798 prefix
    799 exec_prefix
    800 PACKAGE_URL
    801 PACKAGE_BUGREPORT
    802 PACKAGE_STRING
    803 PACKAGE_VERSION
    804 PACKAGE_TARNAME
    805 PACKAGE_NAME
    806 PATH_SEPARATOR
    807 SHELL'
    808 ac_subst_files=''
    809 ac_user_opts='
    810 enable_option_checking
    811 enable_maintainer_mode
    812 enable_dependency_tracking
    813 enable_only64bit
    814 enable_only32bit
    815 enable_inner
    816 enable_tls
    817 with_mpicc
    818 '
    819       ac_precious_vars='build_alias
    820 host_alias
    821 target_alias
    822 CC
    823 CFLAGS
    824 LDFLAGS
    825 LIBS
    826 CPPFLAGS
    827 CPP
    828 CXX
    829 CXXFLAGS
    830 CCC
    831 AR
    832 CCAS
    833 CCASFLAGS
    834 PKG_CONFIG
    835 QTCORE_CFLAGS
    836 QTCORE_LIBS'
    837 
    838 
    839 # Initialize some variables set by options.
    840 ac_init_help=
    841 ac_init_version=false
    842 ac_unrecognized_opts=
    843 ac_unrecognized_sep=
    844 # The variables have the same names as the options, with
    845 # dashes changed to underlines.
    846 cache_file=/dev/null
    847 exec_prefix=NONE
    848 no_create=
    849 no_recursion=
    850 prefix=NONE
    851 program_prefix=NONE
    852 program_suffix=NONE
    853 program_transform_name=s,x,x,
    854 silent=
    855 site=
    856 srcdir=
    857 verbose=
    858 x_includes=NONE
    859 x_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.)
    867 bindir='${exec_prefix}/bin'
    868 sbindir='${exec_prefix}/sbin'
    869 libexecdir='${exec_prefix}/libexec'
    870 datarootdir='${prefix}/share'
    871 datadir='${datarootdir}'
    872 sysconfdir='${prefix}/etc'
    873 sharedstatedir='${prefix}/com'
    874 localstatedir='${prefix}/var'
    875 includedir='${prefix}/include'
    876 oldincludedir='/usr/include'
    877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    878 infodir='${datarootdir}/info'
    879 htmldir='${docdir}'
    880 dvidir='${docdir}'
    881 pdfdir='${docdir}'
    882 psdir='${docdir}'
    883 libdir='${exec_prefix}/lib'
    884 localedir='${datarootdir}/locale'
    885 mandir='${datarootdir}/man'
    886 
    887 ac_prev=
    888 ac_dashdash=
    889 for ac_option
    890 do
    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'
   1222 Try \`$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
   1244 done
   1245 
   1246 if test -n "$ac_prev"; then
   1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1248   as_fn_error "missing argument to $ac_option"
   1249 fi
   1250 
   1251 if 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
   1257 fi
   1258 
   1259 # Check all directory arguments for consistency.
   1260 for 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
   1264 do
   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"
   1278 done
   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.
   1283 build=$build_alias
   1284 host=$host_alias
   1285 target=$target_alias
   1286 
   1287 # FIXME: To remove some day.
   1288 if 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
   1296 fi
   1297 
   1298 ac_tool_prefix=
   1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1300 
   1301 test "$silent" = yes && exec 6>/dev/null
   1302 
   1303 
   1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1305 ac_ls_di=`ls -di .` &&
   1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1307   as_fn_error "working directory cannot be determined"
   1308 test "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.
   1313 if 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
   1343 else
   1344   ac_srcdir_defaulted=no
   1345 fi
   1346 if 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"
   1349 fi
   1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1351 ac_abs_confdir=`(
   1352 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
   1353 	pwd)`
   1354 # When building in place, set srcdir=.
   1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1356   srcdir=.
   1357 fi
   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.
   1361 case $srcdir in
   1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1363 esac
   1364 for 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}
   1369 done
   1370 
   1371 #
   1372 # Report the --help message.
   1373 #
   1374 if 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 
   1380 Usage: $0 [OPTION]... [VAR=VALUE]...
   1381 
   1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1384 
   1385 Defaults for the options are specified in brackets.
   1386 
   1387 Configuration:
   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 
   1398 Installation 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 
   1404 By default, \`make install' will install all the files in
   1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1407 for instance \`--prefix=\$HOME'.
   1408 
   1409 For better control, use the options below.
   1410 
   1411 Fine 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 
   1435 Program 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 
   1440 System 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
   1444 fi
   1445 
   1446 if 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 
   1452 Optional 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 
   1465 Optional 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 
   1470 Some 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 
   1489 Use these variables to override the choices made by `configure' or to help
   1490 it to find libraries and programs with nonstandard names/locations.
   1491 
   1492 Report bugs to <valgrind-users@lists.sourceforge.net>.
   1493 _ACEOF
   1494 ac_status=$?
   1495 fi
   1496 
   1497 if 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 
   1505 case "$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 ;;
   1515 esac
   1516 ac_abs_top_builddir=$ac_pwd
   1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1518 # for backward compatibility:
   1519 ac_top_builddir=$ac_top_build_prefix
   1520 
   1521 case $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 ;;
   1534 esac
   1535 ac_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
   1550 fi
   1551 
   1552 test -n "$ac_init_help" && exit $ac_status
   1553 if $ac_init_version; then
   1554   cat <<\_ACEOF
   1555 Valgrind configure 3.6.1
   1556 generated by GNU Autoconf 2.65
   1557 
   1558 Copyright (C) 2009 Free Software Foundation, Inc.
   1559 This configure script is free software; the Free Software Foundation
   1560 gives unlimited permission to copy, distribute and modify it.
   1561 _ACEOF
   1562   exit
   1563 fi
   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.
   1572 ac_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"
   1577 case "(($ac_try" in
   1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1579   *) ac_try_echo=$ac_try;;
   1580 esac
   1581 eval 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
   1596 else
   1597   $as_echo "$as_me: failed program was:" >&5
   1598 sed 's/^/| /' conftest.$ac_ext >&5
   1599 
   1600 	ac_retval=1
   1601 fi
   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.
   1610 ac_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"
   1614 case "(($ac_try" in
   1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1616   *) ac_try_echo=$ac_try;;
   1617 esac
   1618 eval 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
   1633 else
   1634   $as_echo "$as_me: failed program was:" >&5
   1635 sed 's/^/| /' conftest.$ac_ext >&5
   1636 
   1637     ac_retval=1
   1638 fi
   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.
   1647 ac_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"
   1652 case "(($ac_try" in
   1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1654   *) ac_try_echo=$ac_try;;
   1655 esac
   1656 eval 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
   1671 else
   1672   $as_echo "$as_me: failed program was:" >&5
   1673 sed 's/^/| /' conftest.$ac_ext >&5
   1674 
   1675 	ac_retval=1
   1676 fi
   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.
   1685 ac_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"
   1690 case "(($ac_try" in
   1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1692   *) ac_try_echo=$ac_try;;
   1693 esac
   1694 eval 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
   1712 else
   1713   $as_echo "$as_me: failed program was:" >&5
   1714 sed 's/^/| /' conftest.$ac_ext >&5
   1715 
   1716 	ac_retval=1
   1717 fi
   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.
   1733 ac_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; }
   1739 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1740   $as_echo_n "(cached) " >&6
   1741 fi
   1742 eval ac_res=\$$3
   1743 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1744 $as_echo "$ac_res" >&6; }
   1745 else
   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; }
   1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1750 /* end confdefs.h.  */
   1751 $4
   1752 #include <$2>
   1753 _ACEOF
   1754 if ac_fn_c_try_compile "$LINENO"; then :
   1755   ac_header_compiler=yes
   1756 else
   1757   ac_header_compiler=no
   1758 fi
   1759 rm -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; }
   1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1767 /* end confdefs.h.  */
   1768 #include <$2>
   1769 _ACEOF
   1770 if ac_fn_c_try_cpp "$LINENO"; then :
   1771   ac_header_preproc=yes
   1772 else
   1773   ac_header_preproc=no
   1774 fi
   1775 rm -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?
   1780 case $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 (at] lists.sourceforge.net ##
   1801 ## --------------------------------------------------- ##
   1802 _ASBOX
   1803      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1804     ;;
   1805 esac
   1806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1807 $as_echo_n "checking for $2... " >&6; }
   1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1809   $as_echo_n "(cached) " >&6
   1810 else
   1811   eval "$3=\$ac_header_compiler"
   1812 fi
   1813 eval ac_res=\$$3
   1814 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1815 $as_echo "$ac_res" >&6; }
   1816 fi
   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.
   1825 ac_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"
   1829 case "(($ac_try" in
   1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1831   *) ac_try_echo=$ac_try;;
   1832 esac
   1833 eval 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;;
   1842 esac
   1843 eval 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
   1850 else
   1851   $as_echo "$as_me: program exited with status $ac_status" >&5
   1852        $as_echo "$as_me: failed program was:" >&5
   1853 sed 's/^/| /' conftest.$ac_ext >&5
   1854 
   1855        ac_retval=$ac_status
   1856 fi
   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.
   1867 ac_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; }
   1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1873   $as_echo_n "(cached) " >&6
   1874 else
   1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1876 /* end confdefs.h.  */
   1877 $4
   1878 #include <$2>
   1879 _ACEOF
   1880 if ac_fn_c_try_compile "$LINENO"; then :
   1881   eval "$3=yes"
   1882 else
   1883   eval "$3=no"
   1884 fi
   1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1886 fi
   1887 eval 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.
   1898 ac_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; }
   1903 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
   1904   $as_echo_n "(cached) " >&6
   1905 else
   1906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1907 /* end confdefs.h.  */
   1908 $5
   1909 int
   1910 main ()
   1911 {
   1912 static $2 ac_aggr;
   1913 if (ac_aggr.$3)
   1914 return 0;
   1915   ;
   1916   return 0;
   1917 }
   1918 _ACEOF
   1919 if ac_fn_c_try_compile "$LINENO"; then :
   1920   eval "$4=yes"
   1921 else
   1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1923 /* end confdefs.h.  */
   1924 $5
   1925 int
   1926 main ()
   1927 {
   1928 static $2 ac_aggr;
   1929 if (sizeof ac_aggr.$3)
   1930 return 0;
   1931   ;
   1932   return 0;
   1933 }
   1934 _ACEOF
   1935 if ac_fn_c_try_compile "$LINENO"; then :
   1936   eval "$4=yes"
   1937 else
   1938   eval "$4=no"
   1939 fi
   1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1941 fi
   1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1943 fi
   1944 eval 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.
   1955 ac_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; }
   1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1961   $as_echo_n "(cached) " >&6
   1962 else
   1963   eval "$3=no"
   1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1965 /* end confdefs.h.  */
   1966 $4
   1967 int
   1968 main ()
   1969 {
   1970 if (sizeof ($2))
   1971 	 return 0;
   1972   ;
   1973   return 0;
   1974 }
   1975 _ACEOF
   1976 if ac_fn_c_try_compile "$LINENO"; then :
   1977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1978 /* end confdefs.h.  */
   1979 $4
   1980 int
   1981 main ()
   1982 {
   1983 if (sizeof (($2)))
   1984 	    return 0;
   1985   ;
   1986   return 0;
   1987 }
   1988 _ACEOF
   1989 if ac_fn_c_try_compile "$LINENO"; then :
   1990 
   1991 else
   1992   eval "$3=yes"
   1993 fi
   1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1995 fi
   1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1997 fi
   1998 eval 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
   2008 ac_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; }
   2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2014   $as_echo_n "(cached) " >&6
   2015 else
   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
   2039 extern "C"
   2040 #endif
   2041 char $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
   2046 choke me
   2047 #endif
   2048 
   2049 int
   2050 main ()
   2051 {
   2052 return $2 ();
   2053   ;
   2054   return 0;
   2055 }
   2056 _ACEOF
   2057 if ac_fn_c_try_link "$LINENO"; then :
   2058   eval "$3=yes"
   2059 else
   2060   eval "$3=no"
   2061 fi
   2062 rm -f core conftest.err conftest.$ac_objext \
   2063     conftest$ac_exeext conftest.$ac_ext
   2064 fi
   2065 eval 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.
   2075 ac_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"
   2080 case "(($ac_try" in
   2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2082   *) ac_try_echo=$ac_try;;
   2083 esac
   2084 eval 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
   2102 else
   2103   $as_echo "$as_me: failed program was:" >&5
   2104 sed 's/^/| /' conftest.$ac_ext >&5
   2105 
   2106 	ac_retval=1
   2107 fi
   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
   2117 cat >config.log <<_ACEOF
   2118 This file contains any messages produced by compilers while
   2119 running configure, to aid debugging if configure makes a mistake.
   2120 
   2121 It was created by Valgrind $as_me 3.6.1, which was
   2122 generated by GNU Autoconf 2.65.  Invocation command line was
   2123 
   2124   $ $0 $@
   2125 
   2126 _ACEOF
   2127 exec 5>>config.log
   2128 {
   2129 cat <<_ASUNAME
   2130 ## --------- ##
   2131 ## Platform. ##
   2132 ## --------- ##
   2133 
   2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2138 uname -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 
   2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2154 for as_dir in $PATH
   2155 do
   2156   IFS=$as_save_IFS
   2157   test -z "$as_dir" && as_dir=.
   2158     $as_echo "PATH: $as_dir"
   2159   done
   2160 IFS=$as_save_IFS
   2161 
   2162 } >&5
   2163 
   2164 cat >&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.
   2179 ac_configure_args=
   2180 ac_configure_args0=
   2181 ac_configure_args1=
   2182 ac_must_keep_next=false
   2183 for ac_pass in 1 2
   2184 do
   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
   2218 done
   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.
   2227 trap '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
   2322 for ac_signal in 1 2 13 15; do
   2323   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2324 done
   2325 ac_signal=0
   2326 
   2327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2328 rm -f -r conftest* confdefs.h
   2329 
   2330 $as_echo "/* confdefs.h */" > confdefs.h
   2331 
   2332 # Predefined preprocessor variables.
   2333 
   2334 cat >>confdefs.h <<_ACEOF
   2335 #define PACKAGE_NAME "$PACKAGE_NAME"
   2336 _ACEOF
   2337 
   2338 cat >>confdefs.h <<_ACEOF
   2339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2340 _ACEOF
   2341 
   2342 cat >>confdefs.h <<_ACEOF
   2343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2344 _ACEOF
   2345 
   2346 cat >>confdefs.h <<_ACEOF
   2347 #define PACKAGE_STRING "$PACKAGE_STRING"
   2348 _ACEOF
   2349 
   2350 cat >>confdefs.h <<_ACEOF
   2351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2352 _ACEOF
   2353 
   2354 cat >>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.
   2361 ac_site_file1=NONE
   2362 ac_site_file2=NONE
   2363 if test -n "$CONFIG_SITE"; then
   2364   ac_site_file1=$CONFIG_SITE
   2365 elif test "x$prefix" != xNONE; then
   2366   ac_site_file1=$prefix/share/config.site
   2367   ac_site_file2=$prefix/etc/config.site
   2368 else
   2369   ac_site_file1=$ac_default_prefix/share/config.site
   2370   ac_site_file2=$ac_default_prefix/etc/config.site
   2371 fi
   2372 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2373 do
   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
   2381 done
   2382 
   2383 if 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
   2394 else
   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
   2398 fi
   2399 
   2400 as_fn_append ac_header_list " stdlib.h"
   2401 as_fn_append ac_header_list " unistd.h"
   2402 as_fn_append ac_header_list " sys/param.h"
   2403 # Check that the precious variables saved in the cache have kept the same
   2404 # value.
   2405 ac_cache_corrupted=false
   2406 for 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
   2452 done
   2453 if $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
   2459 fi
   2460 ## -------------------- ##
   2461 ## Main body of script. ##
   2462 ## -------------------- ##
   2463 
   2464 ac_ext=c
   2465 ac_cpp='$CPP $CPPFLAGS'
   2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2469 
   2470 
   2471 
   2472 ac_config_headers="$ac_config_headers config.h"
   2473 
   2474 am__api_version='1.11'
   2475 
   2476 ac_aux_dir=
   2477 for 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
   2485 done
   2486 if test -z "$ac_aux_dir"; then
   2487   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2488 fi
   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.
   2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2496 ac_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; }
   2515 if test -z "$INSTALL"; then
   2516 if test "${ac_cv_path_install+set}" = set; then :
   2517   $as_echo_n "(cached) " >&6
   2518 else
   2519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2520 for as_dir in $PATH
   2521 do
   2522   IFS=$as_save_IFS
   2523   test -z "$as_dir" && as_dir=.
   2524     # Account for people who put trailing slashes in PATH elements.
   2525 case $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     ;;
   2563 esac
   2564 
   2565   done
   2566 IFS=$as_save_IFS
   2567 
   2568 rm -rf conftest.one conftest.two conftest.dir
   2569 
   2570 fi
   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
   2580 fi
   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.
   2586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2587 
   2588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2589 
   2590 test -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
   2595 sleep 1
   2596 echo timestamp > conftest.file
   2597 # Reject unsafe characters in $srcdir or the absolute working directory
   2598 # name.  Accept space and tab only in the latter.
   2599 am_lf='
   2600 '
   2601 case `pwd` in
   2602   *[\\\"\#\$\&\'\`$am_lf]*)
   2603     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
   2604 esac
   2605 case $srcdir in
   2606   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   2607     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
   2608 esac
   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).
   2615 if (
   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
   2630 alias in your environment" "$LINENO" 5
   2631    fi
   2632 
   2633    test "$2" = conftest.file
   2634    )
   2635 then
   2636    # Ok.
   2637    :
   2638 else
   2639    as_fn_error "newly created file is older than distributed files!
   2640 Check your system clock" "$LINENO" 5
   2641 fi
   2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2643 $as_echo "yes" >&6; }
   2644 test "$program_prefix" != NONE &&
   2645   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2646 # Use a double $ so make ignores it.
   2647 test "$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.
   2651 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2652 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2653 
   2654 # expand $ac_aux_dir to an absolute path
   2655 am_aux_dir=`cd $ac_aux_dir && pwd`
   2656 
   2657 if 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
   2664 fi
   2665 # Use eval to expand $SHELL
   2666 if eval "$MISSING --run true"; then
   2667   am_missing_run="$MISSING --run "
   2668 else
   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;}
   2672 fi
   2673 
   2674 if 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
   2681 fi
   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.
   2687 if 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.
   2690 set 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; }
   2693 if test "${ac_cv_prog_STRIP+set}" = set; then :
   2694   $as_echo_n "(cached) " >&6
   2695 else
   2696   if test -n "$STRIP"; then
   2697   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2698 else
   2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2700 for as_dir in $PATH
   2701 do
   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
   2710 done
   2711   done
   2712 IFS=$as_save_IFS
   2713 
   2714 fi
   2715 fi
   2716 STRIP=$ac_cv_prog_STRIP
   2717 if test -n "$STRIP"; then
   2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   2719 $as_echo "$STRIP" >&6; }
   2720 else
   2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2722 $as_echo "no" >&6; }
   2723 fi
   2724 
   2725 
   2726 fi
   2727 if 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.
   2730 set 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; }
   2733 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
   2734   $as_echo_n "(cached) " >&6
   2735 else
   2736   if test -n "$ac_ct_STRIP"; then
   2737   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2738 else
   2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2740 for as_dir in $PATH
   2741 do
   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
   2750 done
   2751   done
   2752 IFS=$as_save_IFS
   2753 
   2754 fi
   2755 fi
   2756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2757 if 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; }
   2760 else
   2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2762 $as_echo "no" >&6; }
   2763 fi
   2764 
   2765   if test "x$ac_ct_STRIP" = x; then
   2766     STRIP=":"
   2767   else
   2768     case $cross_compiling:$ac_tool_warned in
   2769 yes:)
   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;}
   2772 ac_tool_warned=yes ;;
   2773 esac
   2774     STRIP=$ac_ct_STRIP
   2775   fi
   2776 else
   2777   STRIP="$ac_cv_prog_STRIP"
   2778 fi
   2779 
   2780 fi
   2781 INSTALL_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; }
   2785 if test -z "$MKDIR_P"; then
   2786   if test "${ac_cv_path_mkdir+set}" = set; then :
   2787   $as_echo_n "(cached) " >&6
   2788 else
   2789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2790 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   2791 do
   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
   2807 IFS=$as_save_IFS
   2808 
   2809 fi
   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
   2821 fi
   2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   2823 $as_echo "$MKDIR_P" >&6; }
   2824 
   2825 mkdir_p="$MKDIR_P"
   2826 case $mkdir_p in
   2827   [\\/$]* | ?:[\\/]*) ;;
   2828   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
   2829 esac
   2830 
   2831 for ac_prog in gawk mawk nawk awk
   2832 do
   2833   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2834 set 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; }
   2837 if test "${ac_cv_prog_AWK+set}" = set; then :
   2838   $as_echo_n "(cached) " >&6
   2839 else
   2840   if test -n "$AWK"; then
   2841   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2842 else
   2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2844 for as_dir in $PATH
   2845 do
   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
   2854 done
   2855   done
   2856 IFS=$as_save_IFS
   2857 
   2858 fi
   2859 fi
   2860 AWK=$ac_cv_prog_AWK
   2861 if test -n "$AWK"; then
   2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   2863 $as_echo "$AWK" >&6; }
   2864 else
   2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2866 $as_echo "no" >&6; }
   2867 fi
   2868 
   2869 
   2870   test -n "$AWK" && break
   2871 done
   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; }
   2875 set x ${MAKE-make}
   2876 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   2877 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
   2878   $as_echo_n "(cached) " >&6
   2879 else
   2880   cat >conftest.make <<\_ACEOF
   2881 SHELL = /bin/sh
   2882 all:
   2883 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   2884 _ACEOF
   2885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   2886 case `${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;;
   2891 esac
   2892 rm -f conftest.make
   2893 fi
   2894 if 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=
   2898 else
   2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2900 $as_echo "no" >&6; }
   2901   SET_MAKE="MAKE=${MAKE-make}"
   2902 fi
   2903 
   2904 rm -rf .tst 2>/dev/null
   2905 mkdir .tst 2>/dev/null
   2906 if test -d .tst; then
   2907   am__leading_dot=.
   2908 else
   2909   am__leading_dot=_
   2910 fi
   2911 rmdir .tst 2>/dev/null
   2912 
   2913 if 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
   2921 fi
   2922 
   2923 # test whether we have cygpath
   2924 if 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
   2930 fi
   2931 
   2932 
   2933 # Define the identity of the package.
   2934  PACKAGE='valgrind'
   2935  VERSION='3.6.1'
   2936 
   2937 
   2938 cat >>confdefs.h <<_ACEOF
   2939 #define PACKAGE "$PACKAGE"
   2940 _ACEOF
   2941 
   2942 
   2943 cat >>confdefs.h <<_ACEOF
   2944 #define VERSION "$VERSION"
   2945 _ACEOF
   2946 
   2947 # Some tools Automake needs.
   2948 
   2949 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   2950 
   2951 
   2952 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   2953 
   2954 
   2955 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   2956 
   2957 
   2958 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   2959 
   2960 
   2961 MAKEINFO=${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 
   2967 AMTAR=${AMTAR-"${am_missing_run}tar"}
   2968 
   2969 am__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.
   2980 if test "${enable_maintainer_mode+set}" = set; then :
   2981   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2982 else
   2983   USE_MAINTAINER_MODE=no
   2984 fi
   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='#'
   2991 else
   2992   MAINTAINER_MODE_TRUE='#'
   2993   MAINTAINER_MODE_FALSE=
   2994 fi
   2995 
   2996   MAINT=$MAINTAINER_MODE_TRUE
   2997 
   2998 
   2999 
   3000 #----------------------------------------------------------------------------
   3001 # Checks for various programs.
   3002 #----------------------------------------------------------------------------
   3003 CFLAGS="-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; }
   3007 LN_S=$as_ln_s
   3008 if test "$LN_S" = "ln -s"; then
   3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3010 $as_echo "yes" >&6; }
   3011 else
   3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   3013 $as_echo "no, using $LN_S" >&6; }
   3014 fi
   3015 
   3016 ac_ext=c
   3017 ac_cpp='$CPP $CPPFLAGS'
   3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3021 if 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.
   3023 set 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; }
   3026 if test "${ac_cv_prog_CC+set}" = set; then :
   3027   $as_echo_n "(cached) " >&6
   3028 else
   3029   if test -n "$CC"; then
   3030   ac_cv_prog_CC="$CC" # Let the user override the test.
   3031 else
   3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3033 for as_dir in $PATH
   3034 do
   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
   3043 done
   3044   done
   3045 IFS=$as_save_IFS
   3046 
   3047 fi
   3048 fi
   3049 CC=$ac_cv_prog_CC
   3050 if test -n "$CC"; then
   3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3052 $as_echo "$CC" >&6; }
   3053 else
   3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3055 $as_echo "no" >&6; }
   3056 fi
   3057 
   3058 
   3059 fi
   3060 if 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.
   3063 set 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; }
   3066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3067   $as_echo_n "(cached) " >&6
   3068 else
   3069   if test -n "$ac_ct_CC"; then
   3070   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3071 else
   3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3073 for as_dir in $PATH
   3074 do
   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
   3083 done
   3084   done
   3085 IFS=$as_save_IFS
   3086 
   3087 fi
   3088 fi
   3089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3090 if 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; }
   3093 else
   3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3095 $as_echo "no" >&6; }
   3096 fi
   3097 
   3098   if test "x$ac_ct_CC" = x; then
   3099     CC=""
   3100   else
   3101     case $cross_compiling:$ac_tool_warned in
   3102 yes:)
   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;}
   3105 ac_tool_warned=yes ;;
   3106 esac
   3107     CC=$ac_ct_CC
   3108   fi
   3109 else
   3110   CC="$ac_cv_prog_CC"
   3111 fi
   3112 
   3113 if 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.
   3116 set 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; }
   3119 if test "${ac_cv_prog_CC+set}" = set; then :
   3120   $as_echo_n "(cached) " >&6
   3121 else
   3122   if test -n "$CC"; then
   3123   ac_cv_prog_CC="$CC" # Let the user override the test.
   3124 else
   3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3126 for as_dir in $PATH
   3127 do
   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
   3136 done
   3137   done
   3138 IFS=$as_save_IFS
   3139 
   3140 fi
   3141 fi
   3142 CC=$ac_cv_prog_CC
   3143 if test -n "$CC"; then
   3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3145 $as_echo "$CC" >&6; }
   3146 else
   3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3148 $as_echo "no" >&6; }
   3149 fi
   3150 
   3151 
   3152   fi
   3153 fi
   3154 if test -z "$CC"; then
   3155   # Extract the first word of "cc", so it can be a program name with args.
   3156 set 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; }
   3159 if test "${ac_cv_prog_CC+set}" = set; then :
   3160   $as_echo_n "(cached) " >&6
   3161 else
   3162   if test -n "$CC"; then
   3163   ac_cv_prog_CC="$CC" # Let the user override the test.
   3164 else
   3165   ac_prog_rejected=no
   3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3167 for as_dir in $PATH
   3168 do
   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
   3181 done
   3182   done
   3183 IFS=$as_save_IFS
   3184 
   3185 if 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
   3196 fi
   3197 fi
   3198 fi
   3199 CC=$ac_cv_prog_CC
   3200 if test -n "$CC"; then
   3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3202 $as_echo "$CC" >&6; }
   3203 else
   3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3205 $as_echo "no" >&6; }
   3206 fi
   3207 
   3208 
   3209 fi
   3210 if 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.
   3215 set 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; }
   3218 if test "${ac_cv_prog_CC+set}" = set; then :
   3219   $as_echo_n "(cached) " >&6
   3220 else
   3221   if test -n "$CC"; then
   3222   ac_cv_prog_CC="$CC" # Let the user override the test.
   3223 else
   3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3225 for as_dir in $PATH
   3226 do
   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
   3235 done
   3236   done
   3237 IFS=$as_save_IFS
   3238 
   3239 fi
   3240 fi
   3241 CC=$ac_cv_prog_CC
   3242 if test -n "$CC"; then
   3243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3244 $as_echo "$CC" >&6; }
   3245 else
   3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3247 $as_echo "no" >&6; }
   3248 fi
   3249 
   3250 
   3251     test -n "$CC" && break
   3252   done
   3253 fi
   3254 if test -z "$CC"; then
   3255   ac_ct_CC=$CC
   3256   for ac_prog in cl.exe
   3257 do
   3258   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3259 set 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; }
   3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3263   $as_echo_n "(cached) " >&6
   3264 else
   3265   if test -n "$ac_ct_CC"; then
   3266   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3267 else
   3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3269 for as_dir in $PATH
   3270 do
   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
   3279 done
   3280   done
   3281 IFS=$as_save_IFS
   3282 
   3283 fi
   3284 fi
   3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3286 if 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; }
   3289 else
   3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3291 $as_echo "no" >&6; }
   3292 fi
   3293 
   3294 
   3295   test -n "$ac_ct_CC" && break
   3296 done
   3297 
   3298   if test "x$ac_ct_CC" = x; then
   3299     CC=""
   3300   else
   3301     case $cross_compiling:$ac_tool_warned in
   3302 yes:)
   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;}
   3305 ac_tool_warned=yes ;;
   3306 esac
   3307     CC=$ac_ct_CC
   3308   fi
   3309 fi
   3310 
   3311 fi
   3312 
   3313 
   3314 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3316 as_fn_error "no acceptable C compiler found in \$PATH
   3317 See \`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
   3321 set X $ac_compile
   3322 ac_compiler=$2
   3323 for ac_option in --version -v -V -qversion; do
   3324   { { ac_try="$ac_compiler $ac_option >&5"
   3325 case "(($ac_try" in
   3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3327   *) ac_try_echo=$ac_try;;
   3328 esac
   3329 eval 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; }
   3342 done
   3343 
   3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3345 /* end confdefs.h.  */
   3346 
   3347 int
   3348 main ()
   3349 {
   3350 
   3351   ;
   3352   return 0;
   3353 }
   3354 _ACEOF
   3355 ac_clean_files_save=$ac_clean_files
   3356 ac_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; }
   3362 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3363 
   3364 # The possible output files:
   3365 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3366 
   3367 ac_rmfiles=
   3368 for ac_file in $ac_files
   3369 do
   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
   3374 done
   3375 rm -f $ac_rmfiles
   3376 
   3377 if { { ac_try="$ac_link_default"
   3378 case "(($ac_try" in
   3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3380   *) ac_try_echo=$ac_try;;
   3381 esac
   3382 eval 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.
   3393 for ac_file in $ac_files ''
   3394 do
   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
   3417 done
   3418 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3419 
   3420 else
   3421   ac_file=''
   3422 fi
   3423 if 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
   3427 sed '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
   3432 as_fn_error "C compiler cannot create executables
   3433 See \`config.log' for more details." "$LINENO" 5; }; }
   3434 else
   3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3436 $as_echo "yes" >&6; }
   3437 fi
   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; }
   3442 ac_exeext=$ac_cv_exeext
   3443 
   3444 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3445 ac_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; }
   3448 if { { ac_try="$ac_link"
   3449 case "(($ac_try" in
   3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3451   *) ac_try_echo=$ac_try;;
   3452 esac
   3453 eval 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'.
   3463 for 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
   3471 done
   3472 else
   3473   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3475 as_fn_error "cannot compute suffix of executables: cannot compile and link
   3476 See \`config.log' for more details." "$LINENO" 5; }
   3477 fi
   3478 rm -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 
   3482 rm -f conftest.$ac_ext
   3483 EXEEXT=$ac_cv_exeext
   3484 ac_exeext=$EXEEXT
   3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3486 /* end confdefs.h.  */
   3487 #include <stdio.h>
   3488 int
   3489 main ()
   3490 {
   3491 FILE *f = fopen ("conftest.out", "w");
   3492  return ferror (f) || fclose (f) != 0;
   3493 
   3494   ;
   3495   return 0;
   3496 }
   3497 _ACEOF
   3498 ac_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; }
   3503 if test "$cross_compiling" != yes; then
   3504   { { ac_try="$ac_link"
   3505 case "(($ac_try" in
   3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3507   *) ac_try_echo=$ac_try;;
   3508 esac
   3509 eval 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;;
   3519 esac
   3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3521 $as_echo "$ac_try_echo"; } >&5
   3522   (eval "$ac_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;}
   3533 as_fn_error "cannot run C compiled programs.
   3534 If you meant to cross compile, use \`--host'.
   3535 See \`config.log' for more details." "$LINENO" 5; }
   3536     fi
   3537   fi
   3538 fi
   3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3540 $as_echo "$cross_compiling" >&6; }
   3541 
   3542 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3543 ac_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; }
   3546 if test "${ac_cv_objext+set}" = set; then :
   3547   $as_echo_n "(cached) " >&6
   3548 else
   3549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3550 /* end confdefs.h.  */
   3551 
   3552 int
   3553 main ()
   3554 {
   3555 
   3556   ;
   3557   return 0;
   3558 }
   3559 _ACEOF
   3560 rm -f conftest.o conftest.obj
   3561 if { { ac_try="$ac_compile"
   3562 case "(($ac_try" in
   3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3564   *) ac_try_echo=$ac_try;;
   3565 esac
   3566 eval 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
   3579 done
   3580 else
   3581   $as_echo "$as_me: failed program was:" >&5
   3582 sed '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;}
   3586 as_fn_error "cannot compute suffix of object files: cannot compile
   3587 See \`config.log' for more details." "$LINENO" 5; }
   3588 fi
   3589 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3590 fi
   3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3592 $as_echo "$ac_cv_objext" >&6; }
   3593 OBJEXT=$ac_cv_objext
   3594 ac_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; }
   3597 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   3598   $as_echo_n "(cached) " >&6
   3599 else
   3600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3601 /* end confdefs.h.  */
   3602 
   3603 int
   3604 main ()
   3605 {
   3606 #ifndef __GNUC__
   3607        choke me
   3608 #endif
   3609 
   3610   ;
   3611   return 0;
   3612 }
   3613 _ACEOF
   3614 if ac_fn_c_try_compile "$LINENO"; then :
   3615   ac_compiler_gnu=yes
   3616 else
   3617   ac_compiler_gnu=no
   3618 fi
   3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3621 
   3622 fi
   3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3625 if test $ac_compiler_gnu = yes; then
   3626   GCC=yes
   3627 else
   3628   GCC=
   3629 fi
   3630 ac_test_CFLAGS=${CFLAGS+set}
   3631 ac_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; }
   3634 if test "${ac_cv_prog_cc_g+set}" = set; then :
   3635   $as_echo_n "(cached) " >&6
   3636 else
   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 
   3644 int
   3645 main ()
   3646 {
   3647 
   3648   ;
   3649   return 0;
   3650 }
   3651 _ACEOF
   3652 if ac_fn_c_try_compile "$LINENO"; then :
   3653   ac_cv_prog_cc_g=yes
   3654 else
   3655   CFLAGS=""
   3656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3657 /* end confdefs.h.  */
   3658 
   3659 int
   3660 main ()
   3661 {
   3662 
   3663   ;
   3664   return 0;
   3665 }
   3666 _ACEOF
   3667 if ac_fn_c_try_compile "$LINENO"; then :
   3668 
   3669 else
   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 
   3675 int
   3676 main ()
   3677 {
   3678 
   3679   ;
   3680   return 0;
   3681 }
   3682 _ACEOF
   3683 if ac_fn_c_try_compile "$LINENO"; then :
   3684   ac_cv_prog_cc_g=yes
   3685 fi
   3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3687 fi
   3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3689 fi
   3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3691    ac_c_werror_flag=$ac_save_c_werror_flag
   3692 fi
   3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3694 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3695 if test "$ac_test_CFLAGS" = set; then
   3696   CFLAGS=$ac_save_CFLAGS
   3697 elif 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
   3703 else
   3704   if test "$GCC" = yes; then
   3705     CFLAGS="-O2"
   3706   else
   3707     CFLAGS=
   3708   fi
   3709 fi
   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; }
   3712 if test "${ac_cv_prog_cc_c89+set}" = set; then :
   3713   $as_echo_n "(cached) " >&6
   3714 else
   3715   ac_cv_prog_cc_c89=no
   3716 ac_save_CC=$CC
   3717 cat 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.  */
   3724 struct buf { int x; };
   3725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3726 static char *e (p, i)
   3727      char **p;
   3728      int i;
   3729 {
   3730   return p[i];
   3731 }
   3732 static 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.  */
   3749 int 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'
   3754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3755 
   3756 int test (int i, double x);
   3757 struct s1 {int (*f) (int a);};
   3758 struct s2 {int (*f) (double a);};
   3759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3760 int argc;
   3761 char **argv;
   3762 int
   3763 main ()
   3764 {
   3765 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3766   ;
   3767   return 0;
   3768 }
   3769 _ACEOF
   3770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3771 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3772 do
   3773   CC="$ac_save_CC $ac_arg"
   3774   if ac_fn_c_try_compile "$LINENO"; then :
   3775   ac_cv_prog_cc_c89=$ac_arg
   3776 fi
   3777 rm -f core conftest.err conftest.$ac_objext
   3778   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3779 done
   3780 rm -f conftest.$ac_ext
   3781 CC=$ac_save_CC
   3782 
   3783 fi
   3784 # AC_CACHE_VAL
   3785 case "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; } ;;
   3796 esac
   3797 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3798 
   3799 fi
   3800 
   3801 ac_ext=c
   3802 ac_cpp='$CPP $CPPFLAGS'
   3803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3806 DEPDIR="${am__leading_dot}deps"
   3807 
   3808 ac_config_commands="$ac_config_commands depfiles"
   3809 
   3810 
   3811 am_make=${MAKE-make}
   3812 cat > confinc << 'END'
   3813 am__doit:
   3814 	@echo this is the am__doit target
   3815 .PHONY: am__doit
   3816 END
   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; }
   3820 am__include="#"
   3821 am__quote=
   3822 _am_result=none
   3823 # First try GNU make style include.
   3824 echo "include confinc" > confmf
   3825 # Ignore all kinds of additional output from `make'.
   3826 case `$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   ;;
   3832 esac
   3833 # Now try BSD make style include.
   3834 if 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
   3843 fi
   3844 
   3845 
   3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   3847 $as_echo "$_am_result" >&6; }
   3848 rm -f confinc confmf
   3849 
   3850 # Check whether --enable-dependency-tracking was given.
   3851 if test "${enable_dependency_tracking+set}" = set; then :
   3852   enableval=$enable_dependency_tracking;
   3853 fi
   3854 
   3855 if test "x$enable_dependency_tracking" != xno; then
   3856   am_depcomp="$ac_aux_dir/depcomp"
   3857   AMDEPBACKSLASH='\'
   3858 fi
   3859  if test "x$enable_dependency_tracking" != xno; then
   3860   AMDEP_TRUE=
   3861   AMDEP_FALSE='#'
   3862 else
   3863   AMDEP_TRUE='#'
   3864   AMDEP_FALSE=
   3865 fi
   3866 
   3867 
   3868 
   3869 depcc="$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; }
   3873 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
   3874   $as_echo_n "(cached) " >&6
   3875 else
   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
   3976 else
   3977   am_cv_CC_dependencies_compiler_type=none
   3978 fi
   3979 
   3980 fi
   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; }
   3983 CCDEPMODE=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='#'
   3990 else
   3991   am__fastdepCC_TRUE='#'
   3992   am__fastdepCC_FALSE=
   3993 fi
   3994 
   3995 
   3996 if 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; }
   3999 else
   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; }
   4002 fi
   4003 set dummy $CC; ac_cc=`$as_echo "$2" |
   4004 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4005 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
   4006   $as_echo_n "(cached) " >&6
   4007 else
   4008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4009 /* end confdefs.h.  */
   4010 
   4011 int
   4012 main ()
   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.
   4022 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4023 rm -f conftest2.*
   4024 if { { case "(($ac_try" in
   4025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4026   *) ac_try_echo=$ac_try;;
   4027 esac
   4028 eval 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;;
   4037 esac
   4038 eval 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; };
   4044 then
   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;;
   4052 esac
   4053 eval 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;;
   4064 esac
   4065 eval 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;;
   4074 esac
   4075 eval 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
   4090 else
   4091   eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4092 fi
   4093 rm -f core conftest*
   4094 
   4095 fi
   4096 if 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; }
   4099 else
   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 
   4105 fi
   4106 
   4107 # FIXME: we rely on the cache variable name because
   4108 # there is no other way.
   4109 set dummy $CC
   4110 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4111 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
   4112 if 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"
   4119 fi
   4120 
   4121 
   4122 ac_ext=c
   4123 ac_cpp='$CPP $CPPFLAGS'
   4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4126 ac_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.
   4130 if test -n "$CPP" && test -d "$CPP"; then
   4131   CPP=
   4132 fi
   4133 if test -z "$CPP"; then
   4134   if test "${ac_cv_prog_CPP+set}" = set; then :
   4135   $as_echo_n "(cached) " >&6
   4136 else
   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
   4141 for ac_c_preproc_warn_flag in '' yes
   4142 do
   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
   4158 if ac_fn_c_try_cpp "$LINENO"; then :
   4159 
   4160 else
   4161   # Broken: fails on valid input.
   4162 continue
   4163 fi
   4164 rm -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
   4172 if ac_fn_c_try_cpp "$LINENO"; then :
   4173   # Broken: success on invalid input.
   4174 continue
   4175 else
   4176   # Passes both tests.
   4177 ac_preproc_ok=:
   4178 break
   4179 fi
   4180 rm -f conftest.err conftest.$ac_ext
   4181 
   4182 done
   4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4184 rm -f conftest.err conftest.$ac_ext
   4185 if $ac_preproc_ok; then :
   4186   break
   4187 fi
   4188 
   4189     done
   4190     ac_cv_prog_CPP=$CPP
   4191 
   4192 fi
   4193   CPP=$ac_cv_prog_CPP
   4194 else
   4195   ac_cv_prog_CPP=$CPP
   4196 fi
   4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4198 $as_echo "$CPP" >&6; }
   4199 ac_preproc_ok=false
   4200 for ac_c_preproc_warn_flag in '' yes
   4201 do
   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
   4217 if ac_fn_c_try_cpp "$LINENO"; then :
   4218 
   4219 else
   4220   # Broken: fails on valid input.
   4221 continue
   4222 fi
   4223 rm -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
   4231 if ac_fn_c_try_cpp "$LINENO"; then :
   4232   # Broken: success on invalid input.
   4233 continue
   4234 else
   4235   # Passes both tests.
   4236 ac_preproc_ok=:
   4237 break
   4238 fi
   4239 rm -f conftest.err conftest.$ac_ext
   4240 
   4241 done
   4242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4243 rm -f conftest.err conftest.$ac_ext
   4244 if $ac_preproc_ok; then :
   4245 
   4246 else
   4247   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4249 as_fn_error "C preprocessor \"$CPP\" fails sanity check
   4250 See \`config.log' for more details." "$LINENO" 5; }
   4251 fi
   4252 
   4253 ac_ext=c
   4254 ac_cpp='$CPP $CPPFLAGS'
   4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4258 
   4259 ac_ext=cpp
   4260 ac_cpp='$CXXCPP $CPPFLAGS'
   4261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   4264 if 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.
   4272 set 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; }
   4275 if test "${ac_cv_prog_CXX+set}" = set; then :
   4276   $as_echo_n "(cached) " >&6
   4277 else
   4278   if test -n "$CXX"; then
   4279   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   4280 else
   4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4282 for as_dir in $PATH
   4283 do
   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
   4292 done
   4293   done
   4294 IFS=$as_save_IFS
   4295 
   4296 fi
   4297 fi
   4298 CXX=$ac_cv_prog_CXX
   4299 if test -n "$CXX"; then
   4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4301 $as_echo "$CXX" >&6; }
   4302 else
   4303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4304 $as_echo "no" >&6; }
   4305 fi
   4306 
   4307 
   4308     test -n "$CXX" && break
   4309   done
   4310 fi
   4311 if 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
   4314 do
   4315   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4316 set 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; }
   4319 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
   4320   $as_echo_n "(cached) " >&6
   4321 else
   4322   if test -n "$ac_ct_CXX"; then
   4323   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   4324 else
   4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4326 for as_dir in $PATH
   4327 do
   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
   4336 done
   4337   done
   4338 IFS=$as_save_IFS
   4339 
   4340 fi
   4341 fi
   4342 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   4343 if 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; }
   4346 else
   4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4348 $as_echo "no" >&6; }
   4349 fi
   4350 
   4351 
   4352   test -n "$ac_ct_CXX" && break
   4353 done
   4354 
   4355   if test "x$ac_ct_CXX" = x; then
   4356     CXX="g++"
   4357   else
   4358     case $cross_compiling:$ac_tool_warned in
   4359 yes:)
   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;}
   4362 ac_tool_warned=yes ;;
   4363 esac
   4364     CXX=$ac_ct_CXX
   4365   fi
   4366 fi
   4367 
   4368   fi
   4369 fi
   4370 # Provide some information about the compiler.
   4371 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   4372 set X $ac_compile
   4373 ac_compiler=$2
   4374 for ac_option in --version -v -V -qversion; do
   4375   { { ac_try="$ac_compiler $ac_option >&5"
   4376 case "(($ac_try" in
   4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4378   *) ac_try_echo=$ac_try;;
   4379 esac
   4380 eval 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; }
   4393 done
   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; }
   4397 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
   4398   $as_echo_n "(cached) " >&6
   4399 else
   4400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4401 /* end confdefs.h.  */
   4402 
   4403 int
   4404 main ()
   4405 {
   4406 #ifndef __GNUC__
   4407        choke me
   4408 #endif
   4409 
   4410   ;
   4411   return 0;
   4412 }
   4413 _ACEOF
   4414 if ac_fn_cxx_try_compile "$LINENO"; then :
   4415   ac_compiler_gnu=yes
   4416 else
   4417   ac_compiler_gnu=no
   4418 fi
   4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4420 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   4421 
   4422 fi
   4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   4424 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   4425 if test $ac_compiler_gnu = yes; then
   4426   GXX=yes
   4427 else
   4428   GXX=
   4429 fi
   4430 ac_test_CXXFLAGS=${CXXFLAGS+set}
   4431 ac_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; }
   4434 if test "${ac_cv_prog_cxx_g+set}" = set; then :
   4435   $as_echo_n "(cached) " >&6
   4436 else
   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 
   4444 int
   4445 main ()
   4446 {
   4447 
   4448   ;
   4449   return 0;
   4450 }
   4451 _ACEOF
   4452 if ac_fn_cxx_try_compile "$LINENO"; then :
   4453   ac_cv_prog_cxx_g=yes
   4454 else
   4455   CXXFLAGS=""
   4456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4457 /* end confdefs.h.  */
   4458 
   4459 int
   4460 main ()
   4461 {
   4462 
   4463   ;
   4464   return 0;
   4465 }
   4466 _ACEOF
   4467 if ac_fn_cxx_try_compile "$LINENO"; then :
   4468 
   4469 else
   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 
   4475 int
   4476 main ()
   4477 {
   4478 
   4479   ;
   4480   return 0;
   4481 }
   4482 _ACEOF
   4483 if ac_fn_cxx_try_compile "$LINENO"; then :
   4484   ac_cv_prog_cxx_g=yes
   4485 fi
   4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4487 fi
   4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4489 fi
   4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4491    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4492 fi
   4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   4494 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   4495 if test "$ac_test_CXXFLAGS" = set; then
   4496   CXXFLAGS=$ac_save_CXXFLAGS
   4497 elif 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
   4503 else
   4504   if test "$GXX" = yes; then
   4505     CXXFLAGS="-O2"
   4506   else
   4507     CXXFLAGS=
   4508   fi
   4509 fi
   4510 ac_ext=c
   4511 ac_cpp='$CPP $CPPFLAGS'
   4512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4515 
   4516 depcc="$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; }
   4520 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
   4521   $as_echo_n "(cached) " >&6
   4522 else
   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
   4623 else
   4624   am_cv_CXX_dependencies_compiler_type=none
   4625 fi
   4626 
   4627 fi
   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; }
   4630 CXXDEPMODE=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='#'
   4637 else
   4638   am__fastdepCXX_TRUE='#'
   4639   am__fastdepCXX_FALSE=
   4640 fi
   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 #        ])
   4656 if 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.
   4658 set 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; }
   4661 if test "${ac_cv_prog_RANLIB+set}" = set; then :
   4662   $as_echo_n "(cached) " >&6
   4663 else
   4664   if test -n "$RANLIB"; then
   4665   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   4666 else
   4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4668 for as_dir in $PATH
   4669 do
   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
   4678 done
   4679   done
   4680 IFS=$as_save_IFS
   4681 
   4682 fi
   4683 fi
   4684 RANLIB=$ac_cv_prog_RANLIB
   4685 if test -n "$RANLIB"; then
   4686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   4687 $as_echo "$RANLIB" >&6; }
   4688 else
   4689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4690 $as_echo "no" >&6; }
   4691 fi
   4692 
   4693 
   4694 fi
   4695 if 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.
   4698 set 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; }
   4701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   4702   $as_echo_n "(cached) " >&6
   4703 else
   4704   if test -n "$ac_ct_RANLIB"; then
   4705   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   4706 else
   4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4708 for as_dir in $PATH
   4709 do
   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
   4718 done
   4719   done
   4720 IFS=$as_save_IFS
   4721 
   4722 fi
   4723 fi
   4724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   4725 if 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; }
   4728 else
   4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4730 $as_echo "no" >&6; }
   4731 fi
   4732 
   4733   if test "x$ac_ct_RANLIB" = x; then
   4734     RANLIB=":"
   4735   else
   4736     case $cross_compiling:$ac_tool_warned in
   4737 yes:)
   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;}
   4740 ac_tool_warned=yes ;;
   4741 esac
   4742     RANLIB=$ac_ct_RANLIB
   4743   fi
   4744 else
   4745   RANLIB="$ac_cv_prog_RANLIB"
   4746 fi
   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; }
   4753 if test "${ac_cv_path_SED+set}" = set; then :
   4754   $as_echo_n "(cached) " >&6
   4755 else
   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
   4766 for as_dir in $PATH
   4767 do
   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
   4776 case `"$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;;
   4800 esac
   4801 
   4802       $ac_path_SED_found && break 3
   4803     done
   4804   done
   4805   done
   4806 IFS=$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
   4810 else
   4811   ac_cv_path_SED=$SED
   4812 fi
   4813 
   4814 fi
   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.
   4823 if test "x$AR" = "x"; then
   4824   for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
   4825 do
   4826   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4827 set 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; }
   4830 if test "${ac_cv_path_AR+set}" = set; then :
   4831   $as_echo_n "(cached) " >&6
   4832 else
   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
   4839 for as_dir in $PATH
   4840 do
   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
   4849 done
   4850   done
   4851 IFS=$as_save_IFS
   4852 
   4853   ;;
   4854 esac
   4855 fi
   4856 AR=$ac_cv_path_AR
   4857 if test -n "$AR"; then
   4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   4859 $as_echo "$AR" >&6; }
   4860 else
   4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4862 $as_echo "no" >&6; }
   4863 fi
   4864 
   4865 
   4866   test -n "$AR" && break
   4867 done
   4868 test -n "$AR" || AR="ar"
   4869 
   4870 fi
   4871 
   4872 
   4873 # Check for the compiler support
   4874 if test "${GCC}" != "yes" ; then
   4875    as_fn_error "Valgrind relies on GCC to be compiled" "$LINENO" 5
   4876 fi
   4877 
   4878 # figure out where perl lives
   4879 # Extract the first word of "perl", so it can be a program name with args.
   4880 set 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; }
   4883 if test "${ac_cv_path_PERL+set}" = set; then :
   4884   $as_echo_n "(cached) " >&6
   4885 else
   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
   4892 for as_dir in $PATH
   4893 do
   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
   4902 done
   4903   done
   4904 IFS=$as_save_IFS
   4905 
   4906   ;;
   4907 esac
   4908 fi
   4909 PERL=$ac_cv_path_PERL
   4910 if test -n "$PERL"; then
   4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   4912 $as_echo "$PERL" >&6; }
   4913 else
   4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4915 $as_echo "no" >&6; }
   4916 fi
   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.
   4922 set 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; }
   4925 if test "${ac_cv_path_GDB+set}" = set; then :
   4926   $as_echo_n "(cached) " >&6
   4927 else
   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
   4934 for as_dir in $PATH
   4935 do
   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
   4944 done
   4945   done
   4946 IFS=$as_save_IFS
   4947 
   4948   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
   4949   ;;
   4950 esac
   4951 fi
   4952 GDB=$ac_cv_path_GDB
   4953 if test -n "$GDB"; then
   4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
   4955 $as_echo "$GDB" >&6; }
   4956 else
   4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4958 $as_echo "no" >&6; }
   4959 fi
   4960 
   4961 
   4962 
   4963 cat >>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 
   4971 test "${CCAS+set}" = set || CCAS=$CC
   4972 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
   4973 
   4974 
   4975 
   4976 depcc="$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; }
   4980 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
   4981   $as_echo_n "(cached) " >&6
   4982 else
   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
   5081 else
   5082   am_cv_CCAS_dependencies_compiler_type=none
   5083 fi
   5084 
   5085 fi
   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; }
   5088 CCASDEPMODE=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='#'
   5095 else
   5096   am__fastdepCCAS_TRUE='#'
   5097   am__fastdepCCAS_FALSE=
   5098 fi
   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).
   5111 tmpfile="tmp-xxx-yyy-zzz"
   5112 touch $tmpfile;
   5113 if 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"
   5117 else
   5118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5119 $as_echo "no" >&6; }
   5120     DIFF="diff"
   5121 fi
   5122 rm $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 
   5129 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
   5130 
   5131 case "${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 	;;
   5141 esac
   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; }
   5157 if test "${ac_cv_build+set}" = set; then :
   5158   $as_echo_n "(cached) " >&6
   5159 else
   5160   ac_build_alias=$build_alias
   5161 test "x$ac_build_alias" = x &&
   5162   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   5163 test "x$ac_build_alias" = x &&
   5164   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
   5165 ac_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 
   5168 fi
   5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   5170 $as_echo "$ac_cv_build" >&6; }
   5171 case $ac_cv_build in
   5172 *-*-*) ;;
   5173 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
   5174 esac
   5175 build=$ac_cv_build
   5176 ac_save_IFS=$IFS; IFS='-'
   5177 set x $ac_cv_build
   5178 shift
   5179 build_cpu=$1
   5180 build_vendor=$2
   5181 shift; shift
   5182 # Remember, the first character of IFS is used to create $*,
   5183 # except with old shells:
   5184 build_os=$*
   5185 IFS=$ac_save_IFS
   5186 case $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; }
   5191 if test "${ac_cv_host+set}" = set; then :
   5192   $as_echo_n "(cached) " >&6
   5193 else
   5194   if test "x$host_alias" = x; then
   5195   ac_cv_host=$ac_cv_build
   5196 else
   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
   5199 fi
   5200 
   5201 fi
   5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   5203 $as_echo "$ac_cv_host" >&6; }
   5204 case $ac_cv_host in
   5205 *-*-*) ;;
   5206 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
   5207 esac
   5208 host=$ac_cv_host
   5209 ac_save_IFS=$IFS; IFS='-'
   5210 set x $ac_cv_host
   5211 shift
   5212 host_cpu=$1
   5213 host_vendor=$2
   5214 shift; shift
   5215 # Remember, the first character of IFS is used to create $*,
   5216 # except with old shells:
   5217 host_os=$*
   5218 IFS=$ac_save_IFS
   5219 case $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.
   5230 case "${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 	;;
   5276 esac
   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; }
   5291 if test "${vg_cv_only64bit+set}" = set; then :
   5292   $as_echo_n "(cached) " >&6
   5293 else
   5294   # Check whether --enable-only64bit was given.
   5295 if test "${enable_only64bit+set}" = set; then :
   5296   enableval=$enable_only64bit; vg_cv_only64bit=$enableval
   5297 else
   5298   vg_cv_only64bit=no
   5299 fi
   5300 
   5301 fi
   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; }
   5308 if test "${vg_cv_only32bit+set}" = set; then :
   5309   $as_echo_n "(cached) " >&6
   5310 else
   5311   # Check whether --enable-only32bit was given.
   5312 if test "${enable_only32bit+set}" = set; then :
   5313   enableval=$enable_only32bit; vg_cv_only32bit=$enableval
   5314 else
   5315   vg_cv_only32bit=no
   5316 fi
   5317 
   5318 fi
   5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
   5320 $as_echo "$vg_cv_only32bit" >&6; }
   5321 
   5322 # Stay sane
   5323 if 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
   5325 fi
   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 
   5336 DEFAULT_SUPP=""
   5337 
   5338 case "${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 	;;
   5450 esac
   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 
   5458 case "$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 
   5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5466 /* end confdefs.h.  */
   5467 
   5468 int
   5469 main ()
   5470 {
   5471 
   5472           return 0;
   5473 
   5474   ;
   5475   return 0;
   5476 }
   5477 _ACEOF
   5478 if 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 
   5483 else
   5484 
   5485         vg_cv_only64bit="yes"
   5486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5487 $as_echo "no" >&6; }
   5488 
   5489 fi
   5490 rm -f core conftest.err conftest.$ac_objext \
   5491     conftest$ac_exeext conftest.$ac_ext
   5492         CFLAGS=$safe_CFLAGS;;
   5493 esac
   5494 
   5495 if 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
   5497 fi
   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 #
   5546 case "$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         ;;
   5716 esac
   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='#'
   5728 else
   5729   VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
   5730   VGCONF_ARCHS_INCLUDE_X86_FALSE=
   5731 fi
   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='#'
   5737 else
   5738   VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
   5739   VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
   5740 fi
   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='#'
   5748 else
   5749   VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
   5750   VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
   5751 fi
   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='#'
   5757 else
   5758   VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
   5759   VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
   5760 fi
   5761 
   5762  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
   5763   VGCONF_ARCHS_INCLUDE_ARM_TRUE=
   5764   VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
   5765 else
   5766   VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
   5767   VGCONF_ARCHS_INCLUDE_ARM_FALSE=
   5768 fi
   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='#'
   5777 else
   5778   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
   5779   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
   5780 fi
   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='#'
   5785 else
   5786   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
   5787   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
   5788 fi
   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='#'
   5794 else
   5795   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
   5796   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
   5797 fi
   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='#'
   5802 else
   5803   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
   5804   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
   5805 fi
   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='#'
   5810 else
   5811   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
   5812   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
   5813 fi
   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='#'
   5820 else
   5821   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
   5822   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
   5823 fi
   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='#'
   5828 else
   5829   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
   5830   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
   5831 fi
   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='#'
   5838 else
   5839   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
   5840   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
   5841 fi
   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='#'
   5846 else
   5847   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
   5848   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
   5849 fi
   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='#'
   5863 else
   5864   VGCONF_OS_IS_LINUX_TRUE='#'
   5865   VGCONF_OS_IS_LINUX_FALSE=
   5866 fi
   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='#'
   5872 else
   5873   VGCONF_OS_IS_AIX5_TRUE='#'
   5874   VGCONF_OS_IS_AIX5_FALSE=
   5875 fi
   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='#'
   5881 else
   5882   VGCONF_OS_IS_DARWIN_TRUE='#'
   5883   VGCONF_OS_IS_DARWIN_FALSE=
   5884 fi
   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='#'
   5893 else
   5894   VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
   5895   VGCONF_HAVE_PLATFORM_SEC_FALSE=
   5896 fi
   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; }
   5910 if test "${vg_cv_inner+set}" = set; then :
   5911   $as_echo_n "(cached) " >&6
   5912 else
   5913   # Check whether --enable-inner was given.
   5914 if test "${enable_inner+set}" = set; then :
   5915   enableval=$enable_inner; vg_cv_inner=$enableval
   5916 else
   5917   vg_cv_inner=no
   5918 fi
   5919 
   5920 fi
   5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
   5922 $as_echo "$vg_cv_inner" >&6; }
   5923 if 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
   5929 else
   5930     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
   5931     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
   5932 fi
   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; }
   5944 if test "${ac_cv_path_GREP+set}" = set; then :
   5945   $as_echo_n "(cached) " >&6
   5946 else
   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
   5951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5952 do
   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
   5961 case `"$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;;
   5985 esac
   5986 
   5987       $ac_path_GREP_found && break 3
   5988     done
   5989   done
   5990   done
   5991 IFS=$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
   5995 else
   5996   ac_cv_path_GREP=$GREP
   5997 fi
   5998 
   5999 fi
   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; }
   6007 if test "${ac_cv_path_EGREP+set}" = set; then :
   6008   $as_echo_n "(cached) " >&6
   6009 else
   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
   6017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6018 do
   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
   6027 case `"$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;;
   6051 esac
   6052 
   6053       $ac_path_EGREP_found && break 3
   6054     done
   6055   done
   6056   done
   6057 IFS=$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
   6061 else
   6062   ac_cv_path_EGREP=$EGREP
   6063 fi
   6064 
   6065    fi
   6066 fi
   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; }
   6074 if test "${ac_cv_header_stdc+set}" = set; then :
   6075   $as_echo_n "(cached) " >&6
   6076 else
   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 
   6084 int
   6085 main ()
   6086 {
   6087 
   6088   ;
   6089   return 0;
   6090 }
   6091 _ACEOF
   6092 if ac_fn_c_try_compile "$LINENO"; then :
   6093   ac_cv_header_stdc=yes
   6094 else
   6095   ac_cv_header_stdc=no
   6096 fi
   6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6098 
   6099 if 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
   6106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6107   $EGREP "memchr" >/dev/null 2>&1; then :
   6108 
   6109 else
   6110   ac_cv_header_stdc=no
   6111 fi
   6112 rm -f conftest*
   6113 
   6114 fi
   6115 
   6116 if 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
   6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6124   $EGREP "free" >/dev/null 2>&1; then :
   6125 
   6126 else
   6127   ac_cv_header_stdc=no
   6128 fi
   6129 rm -f conftest*
   6130 
   6131 fi
   6132 
   6133 if 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   :
   6137 else
   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)))
   6154 int
   6155 main ()
   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
   6165 if ac_fn_c_try_run "$LINENO"; then :
   6166 
   6167 else
   6168   ac_cv_header_stdc=no
   6169 fi
   6170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6171   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6172 fi
   6173 
   6174 fi
   6175 fi
   6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   6177 $as_echo "$ac_cv_header_stdc" >&6; }
   6178 if test $ac_cv_header_stdc = yes; then
   6179 
   6180 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   6181 
   6182 fi
   6183 
   6184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   6185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   6186 		  inttypes.h stdint.h unistd.h
   6187 do :
   6188   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   6190 "
   6191 eval 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 
   6197 fi
   6198 
   6199 done
   6200 
   6201 
   6202 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
   6203 if test "x$ac_cv_header_features_h" = x""yes; then :
   6204 
   6205 fi
   6206 
   6207 
   6208 
   6209 if 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__)
   6214 glibc 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'`"
   6218 fi
   6219 
   6220 cat 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
   6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6230   $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
   6231   GLIBC_VERSION="aix5"
   6232 fi
   6233 rm -f conftest*
   6234 
   6235 
   6236 # not really a version check
   6237 cat 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
   6246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6247   $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
   6248   GLIBC_VERSION="darwin"
   6249 fi
   6250 rm -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 
   6256 case "${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 	;;
   6404 esac
   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.
   6413 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
   6414 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
   6415 
   6416 # Add glibc and X11 suppressions for exp-ptrcheck
   6417 DEFAULT_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 
   6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6430 /* end confdefs.h.  */
   6431 
   6432 #include <time.h>
   6433 
   6434 int
   6435 main ()
   6436 {
   6437 
   6438   struct timespec t;
   6439   clock_gettime(CLOCK_MONOTONIC, &t);
   6440   return 0;
   6441 
   6442   ;
   6443   return 0;
   6444 }
   6445 _ACEOF
   6446 if 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 
   6454 else
   6455 
   6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6457 $as_echo "no" >&6; }
   6458 
   6459 fi
   6460 rm -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 
   6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6469 /* end confdefs.h.  */
   6470 
   6471 #define _GNU_SOURCE
   6472 #include <pthread.h>
   6473 
   6474 int
   6475 main ()
   6476 {
   6477 
   6478   return (PTHREAD_MUTEX_ADAPTIVE_NP);
   6479 
   6480   ;
   6481   return 0;
   6482 }
   6483 _ACEOF
   6484 if 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 
   6492 else
   6493 
   6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6495 $as_echo "no" >&6; }
   6496 
   6497 fi
   6498 rm -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 
   6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6507 /* end confdefs.h.  */
   6508 
   6509 #define _GNU_SOURCE
   6510 #include <pthread.h>
   6511 
   6512 int
   6513 main ()
   6514 {
   6515 
   6516   return (PTHREAD_MUTEX_ERRORCHECK_NP);
   6517 
   6518   ;
   6519   return 0;
   6520 }
   6521 _ACEOF
   6522 if 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 
   6530 else
   6531 
   6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6533 $as_echo "no" >&6; }
   6534 
   6535 fi
   6536 rm -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 
   6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6545 /* end confdefs.h.  */
   6546 
   6547 #define _GNU_SOURCE
   6548 #include <pthread.h>
   6549 
   6550 int
   6551 main ()
   6552 {
   6553 
   6554   return (PTHREAD_MUTEX_RECURSIVE_NP);
   6555 
   6556   ;
   6557   return 0;
   6558 }
   6559 _ACEOF
   6560 if 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 
   6568 else
   6569 
   6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6571 $as_echo "no" >&6; }
   6572 
   6573 fi
   6574 rm -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 
   6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6583 /* end confdefs.h.  */
   6584 
   6585 #define _GNU_SOURCE
   6586 #include <pthread.h>
   6587 
   6588 int
   6589 main ()
   6590 {
   6591 
   6592   pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
   6593   return 0;
   6594 
   6595   ;
   6596   return 0;
   6597 }
   6598 _ACEOF
   6599 if 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 
   6607 else
   6608 
   6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6610 $as_echo "no" >&6; }
   6611 
   6612 fi
   6613 rm -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 
   6618 ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__m_kind" "ac_cv_member_pthread_mutex_t___m_kind" "#include <pthread.h>
   6619 "
   6620 if 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 
   6625 fi
   6626 
   6627 
   6628 
   6629 # Check whether pthread_mutex_t has a member called __data.__kind.
   6630 
   6631 ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__kind" "ac_cv_member_pthread_mutex_t___data___kind" "#include <pthread.h>
   6632 "
   6633 if 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 
   6638 fi
   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 
   6648 safe_CFLAGS=$CFLAGS
   6649 CFLAGS="-maltivec"
   6650 
   6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6652 /* end confdefs.h.  */
   6653 
   6654 #include <altivec.h>
   6655 
   6656 int
   6657 main ()
   6658 {
   6659 
   6660   vector unsigned int v;
   6661 
   6662   ;
   6663   return 0;
   6664 }
   6665 _ACEOF
   6666 if ac_fn_c_try_compile "$LINENO"; then :
   6667 
   6668 ac_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 
   6675 else
   6676 
   6677 ac_have_altivec=no
   6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6679 $as_echo "no" >&6; }
   6680 
   6681 fi
   6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6683 CFLAGS=$safe_CFLAGS
   6684 
   6685  if test x$ac_have_altivec = xyes; then
   6686   HAS_ALTIVEC_TRUE=
   6687   HAS_ALTIVEC_FALSE='#'
   6688 else
   6689   HAS_ALTIVEC_TRUE='#'
   6690   HAS_ALTIVEC_FALSE=
   6691 fi
   6692 
   6693 
   6694 
   6695 # Check for pthread_create (at] GLIBC2.0
   6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create (at] GLIBC2.0()" >&5
   6697 $as_echo_n "checking for pthread_create (at] GLIBC2.0()... " >&6; }
   6698 
   6699 safe_CFLAGS=$CFLAGS
   6700 CFLAGS="-lpthread"
   6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6702 /* end confdefs.h.  */
   6703 
   6704 extern int pthread_create_glibc_2_0(void*, const void*,
   6705                                     void *(*)(void*), void*);
   6706 __asm__(".symver pthread_create_glibc_2_0, pthread_create (at] GLIBC_2.0");
   6707 
   6708 int
   6709 main ()
   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
   6727 if ac_fn_c_try_link "$LINENO"; then :
   6728 
   6729 ac_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 
   6736 else
   6737 
   6738 ac_have_pthread_create_glibc_2_0=no
   6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6740 $as_echo "no" >&6; }
   6741 
   6742 fi
   6743 rm -f core conftest.err conftest.$ac_objext \
   6744     conftest$ac_exeext conftest.$ac_ext
   6745 CFLAGS=$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='#'
   6750 else
   6751   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
   6752   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
   6753 fi
   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 
   6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6762 /* end confdefs.h.  */
   6763 
   6764 #include <sys/eventfd.h>
   6765 
   6766 int
   6767 main ()
   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
   6781 if 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 
   6792 else
   6793 
   6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6795 $as_echo "no" >&6; }
   6796 
   6797 fi
   6798 rm -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 
   6810 safe_CFLAGS=$CFLAGS
   6811 CFLAGS="-m32"
   6812 
   6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6814 /* end confdefs.h.  */
   6815 
   6816 int
   6817 main ()
   6818 {
   6819 
   6820   return 0;
   6821 
   6822   ;
   6823   return 0;
   6824 }
   6825 _ACEOF
   6826 if ac_fn_c_try_compile "$LINENO"; then :
   6827 
   6828 FLAG_M32="-m32"
   6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6830 $as_echo "yes" >&6; }
   6831 
   6832 else
   6833 
   6834 FLAG_M32=""
   6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6836 $as_echo "no" >&6; }
   6837 
   6838 fi
   6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6840 CFLAGS=$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 
   6849 safe_CFLAGS=$CFLAGS
   6850 CFLAGS="-maix32"
   6851 
   6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6853 /* end confdefs.h.  */
   6854 
   6855 int
   6856 main ()
   6857 {
   6858 
   6859   return 0;
   6860 
   6861   ;
   6862   return 0;
   6863 }
   6864 _ACEOF
   6865 if ac_fn_c_try_compile "$LINENO"; then :
   6866 
   6867 FLAG_MAIX32="-maix32"
   6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6869 $as_echo "yes" >&6; }
   6870 
   6871 else
   6872 
   6873 FLAG_MAIX32=""
   6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6875 $as_echo "no" >&6; }
   6876 
   6877 fi
   6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6879 CFLAGS=$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 
   6888 safe_CFLAGS=$CFLAGS
   6889 CFLAGS="-m64"
   6890 
   6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6892 /* end confdefs.h.  */
   6893 
   6894 int
   6895 main ()
   6896 {
   6897 
   6898   return 0;
   6899 
   6900   ;
   6901   return 0;
   6902 }
   6903 _ACEOF
   6904 if ac_fn_c_try_compile "$LINENO"; then :
   6905 
   6906 FLAG_M64="-m64"
   6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6908 $as_echo "yes" >&6; }
   6909 
   6910 else
   6911 
   6912 FLAG_M64=""
   6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6914 $as_echo "no" >&6; }
   6915 
   6916 fi
   6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6918 CFLAGS=$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 
   6927 safe_CFLAGS=$CFLAGS
   6928 CFLAGS="-maix64"
   6929 
   6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6931 /* end confdefs.h.  */
   6932 
   6933 int
   6934 main ()
   6935 {
   6936 
   6937   return 0;
   6938 
   6939   ;
   6940   return 0;
   6941 }
   6942 _ACEOF
   6943 if ac_fn_c_try_compile "$LINENO"; then :
   6944 
   6945 FLAG_MAIX64="-maix64"
   6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6947 $as_echo "yes" >&6; }
   6948 
   6949 else
   6950 
   6951 FLAG_MAIX64=""
   6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6953 $as_echo "no" >&6; }
   6954 
   6955 fi
   6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6957 CFLAGS=$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 
   6966 safe_CFLAGS=$CFLAGS
   6967 CFLAGS="-mmmx"
   6968 
   6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6970 /* end confdefs.h.  */
   6971 
   6972 int
   6973 main ()
   6974 {
   6975 
   6976   return 0;
   6977 
   6978   ;
   6979   return 0;
   6980 }
   6981 _ACEOF
   6982 if ac_fn_c_try_compile "$LINENO"; then :
   6983 
   6984 FLAG_MMMX="-mmmx"
   6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6986 $as_echo "yes" >&6; }
   6987 
   6988 else
   6989 
   6990 FLAG_MMMX=""
   6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6992 $as_echo "no" >&6; }
   6993 
   6994 fi
   6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6996 CFLAGS=$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 
   7005 safe_CFLAGS=$CFLAGS
   7006 CFLAGS="-msse"
   7007 
   7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7009 /* end confdefs.h.  */
   7010 
   7011 int
   7012 main ()
   7013 {
   7014 
   7015   return 0;
   7016 
   7017   ;
   7018   return 0;
   7019 }
   7020 _ACEOF
   7021 if ac_fn_c_try_compile "$LINENO"; then :
   7022 
   7023 FLAG_MSSE="-msse"
   7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7025 $as_echo "yes" >&6; }
   7026 
   7027 else
   7028 
   7029 FLAG_MSSE=""
   7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7031 $as_echo "no" >&6; }
   7032 
   7033 fi
   7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7035 CFLAGS=$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 
   7044 safe_CFLAGS=$CFLAGS
   7045 CFLAGS="-mpreferred-stack-boundary=2"
   7046 
   7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7048 /* end confdefs.h.  */
   7049 
   7050 int
   7051 main ()
   7052 {
   7053 
   7054   return 0;
   7055 
   7056   ;
   7057   return 0;
   7058 }
   7059 _ACEOF
   7060 if ac_fn_c_try_compile "$LINENO"; then :
   7061 
   7062 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
   7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7064 $as_echo "yes" >&6; }
   7065 
   7066 else
   7067 
   7068 PREFERRED_STACK_BOUNDARY=""
   7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7070 $as_echo "no" >&6; }
   7071 
   7072 fi
   7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7074 CFLAGS=$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 
   7083 safe_CFLAGS=$CFLAGS
   7084 CFLAGS="-Wno-pointer-sign"
   7085 
   7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7087 /* end confdefs.h.  */
   7088 
   7089 int
   7090 main ()
   7091 {
   7092 
   7093   return 0;
   7094 
   7095   ;
   7096   return 0;
   7097 }
   7098 _ACEOF
   7099 if ac_fn_c_try_compile "$LINENO"; then :
   7100 
   7101 no_pointer_sign=yes
   7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7103 $as_echo "yes" >&6; }
   7104 
   7105 else
   7106 
   7107 no_pointer_sign=no
   7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7109 $as_echo "no" >&6; }
   7110 
   7111 fi
   7112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7113 CFLAGS=$safe_CFLAGS
   7114 
   7115 if test x$no_pointer_sign = xyes; then
   7116   CFLAGS="$CFLAGS -Wno-pointer-sign"
   7117 fi
   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 
   7125 safe_CFLAGS=$CFLAGS
   7126 CFLAGS="-Wno-empty-body"
   7127 
   7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7129 /* end confdefs.h.  */
   7130 
   7131 int
   7132 main ()
   7133 {
   7134 
   7135   return 0;
   7136 
   7137   ;
   7138   return 0;
   7139 }
   7140 _ACEOF
   7141 if ac_fn_c_try_compile "$LINENO"; then :
   7142 
   7143 FLAG_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 
   7148 else
   7149 
   7150 
   7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7152 $as_echo "no" >&6; }
   7153 
   7154 fi
   7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7156 CFLAGS=$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 
   7164 safe_CFLAGS=$CFLAGS
   7165 CFLAGS="-Wno-format-zero-length"
   7166 
   7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7168 /* end confdefs.h.  */
   7169 
   7170 int
   7171 main ()
   7172 {
   7173 
   7174   return 0;
   7175 
   7176   ;
   7177   return 0;
   7178 }
   7179 _ACEOF
   7180 if ac_fn_c_try_compile "$LINENO"; then :
   7181 
   7182 FLAG_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 
   7187 else
   7188 
   7189 
   7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7191 $as_echo "no" >&6; }
   7192 
   7193 fi
   7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7195 CFLAGS=$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 
   7203 safe_CFLAGS=$CFLAGS
   7204 CFLAGS="-Wno-uninitialized"
   7205 
   7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7207 /* end confdefs.h.  */
   7208 
   7209 int
   7210 main ()
   7211 {
   7212 
   7213   return 0;
   7214 
   7215   ;
   7216   return 0;
   7217 }
   7218 _ACEOF
   7219 if ac_fn_c_try_compile "$LINENO"; then :
   7220 
   7221 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
   7222 
   7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7224 $as_echo "yes" >&6; }
   7225 
   7226 else
   7227 
   7228 
   7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7230 $as_echo "no" >&6; }
   7231 
   7232 fi
   7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7234 CFLAGS=$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 
   7242 safe_CFLAGS=$CFLAGS
   7243 CFLAGS="-Wextra"
   7244 
   7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7246 /* end confdefs.h.  */
   7247 
   7248 int
   7249 main ()
   7250 {
   7251 
   7252   return 0;
   7253 
   7254   ;
   7255   return 0;
   7256 }
   7257 _ACEOF
   7258 if ac_fn_c_try_compile "$LINENO"; then :
   7259 
   7260 FLAG_W_EXTRA=-Wextra
   7261 
   7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
   7263 $as_echo "-Wextra" >&6; }
   7264 
   7265 else
   7266 
   7267   CFLAGS="-W"
   7268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7269 /* end confdefs.h.  */
   7270 
   7271 int
   7272 main ()
   7273 {
   7274 
   7275     return 0;
   7276 
   7277   ;
   7278   return 0;
   7279 }
   7280 _ACEOF
   7281 if 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 
   7288 else
   7289 
   7290 
   7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
   7292 $as_echo "not supported" >&6; }
   7293 
   7294 fi
   7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7296 
   7297 fi
   7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7299 CFLAGS=$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 
   7306 safe_CFLAGS=$CFLAGS
   7307 CFLAGS="-fno-stack-protector"
   7308 
   7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7310 /* end confdefs.h.  */
   7311 
   7312 int
   7313 main ()
   7314 {
   7315 
   7316   return 0;
   7317 
   7318   ;
   7319   return 0;
   7320 }
   7321 _ACEOF
   7322 if ac_fn_c_try_compile "$LINENO"; then :
   7323 
   7324 no_stack_protector=yes
   7325 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
   7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7327 $as_echo "yes" >&6; }
   7328 
   7329 else
   7330 
   7331 no_stack_protector=no
   7332 FLAG_FNO_STACK_PROTECTOR=""
   7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7334 $as_echo "no" >&6; }
   7335 
   7336 fi
   7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7338 CFLAGS=$safe_CFLAGS
   7339 
   7340 
   7341 
   7342 if test x$no_stack_protector = xyes; then
   7343   CFLAGS="$CFLAGS -fno-stack-protector"
   7344 fi
   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 
   7352 safe_CFLAGS=$CFLAGS
   7353 CFLAGS="--param inline-unit-growth=900"
   7354 
   7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7356 /* end confdefs.h.  */
   7357 
   7358 int
   7359 main ()
   7360 {
   7361 
   7362   return 0;
   7363 
   7364   ;
   7365   return 0;
   7366 }
   7367 _ACEOF
   7368 if ac_fn_c_try_compile "$LINENO"; then :
   7369 
   7370 FLAG_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 
   7375 else
   7376 
   7377 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
   7378 
   7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7380 $as_echo "no" >&6; }
   7381 
   7382 fi
   7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7384 CFLAGS=$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 
   7395 safe_CFLAGS=$CFLAGS
   7396 CFLAGS="-Wl,--build-id=none"
   7397 
   7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7399 /* end confdefs.h.  */
   7400 
   7401 int
   7402 main ()
   7403 {
   7404 return 0;
   7405   ;
   7406   return 0;
   7407 }
   7408 _ACEOF
   7409 if 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 
   7416 else
   7417 
   7418   FLAG_NO_BUILD_ID=""
   7419 
   7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7421 $as_echo "no" >&6; }
   7422 
   7423 fi
   7424 rm -f core conftest.err conftest.$ac_objext \
   7425     conftest$ac_exeext conftest.$ac_ext
   7426 CFLAGS=$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 
   7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7434 /* end confdefs.h.  */
   7435 
   7436 int
   7437 main ()
   7438 {
   7439 
   7440 __asm__ __volatile__("mtocrf 4,0");
   7441 __asm__ __volatile__("mfocrf 0,4");
   7442 
   7443   ;
   7444   return 0;
   7445 }
   7446 _ACEOF
   7447 if ac_fn_c_try_compile "$LINENO"; then :
   7448 
   7449 ac_have_as_ppc_mftocrf=yes
   7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7451 $as_echo "yes" >&6; }
   7452 
   7453 else
   7454 
   7455 ac_have_as_ppc_mftocrf=no
   7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7457 $as_echo "no" >&6; }
   7458 
   7459 fi
   7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7461 if test x$ac_have_as_ppc_mftocrf = xyes ; then
   7462 
   7463 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
   7464 
   7465 fi
   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 
   7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7475 /* end confdefs.h.  */
   7476 
   7477 int
   7478 main ()
   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
   7489 if ac_fn_c_try_compile "$LINENO"; then :
   7490 
   7491 ac_have_as_sse3=yes
   7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7493 $as_echo "yes" >&6; }
   7494 
   7495 else
   7496 
   7497 ac_have_as_sse3=no
   7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7499 $as_echo "no" >&6; }
   7500 
   7501 fi
   7502 rm -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='#'
   7507 else
   7508   BUILD_SSE3_TESTS_TRUE='#'
   7509   BUILD_SSE3_TESTS_FALSE=
   7510 fi
   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 
   7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7521 /* end confdefs.h.  */
   7522 
   7523 int
   7524 main ()
   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
   7536 if ac_fn_c_try_compile "$LINENO"; then :
   7537 
   7538 ac_have_as_ssse3=yes
   7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7540 $as_echo "yes" >&6; }
   7541 
   7542 else
   7543 
   7544 ac_have_as_ssse3=no
   7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7546 $as_echo "no" >&6; }
   7547 
   7548 fi
   7549 rm -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='#'
   7554 else
   7555   BUILD_SSSE3_TESTS_TRUE='#'
   7556   BUILD_SSSE3_TESTS_FALSE=
   7557 fi
   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; }
   7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7568 /* end confdefs.h.  */
   7569 
   7570 int
   7571 main ()
   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
   7583 if ac_fn_c_try_compile "$LINENO"; then :
   7584 
   7585 ac_have_as_pclmulqdq=yes
   7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7587 $as_echo "yes" >&6; }
   7588 
   7589 else
   7590 
   7591 ac_have_as_pclmulqdq=no
   7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7593 $as_echo "no" >&6; }
   7594 
   7595 fi
   7596 rm -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='#'
   7601 else
   7602   BUILD_PCLMULQDQ_TESTS_TRUE='#'
   7603   BUILD_PCLMULQDQ_TESTS_FALSE=
   7604 fi
   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 
   7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7612 /* end confdefs.h.  */
   7613 
   7614 int
   7615 main ()
   7616 {
   7617 
   7618   do {
   7619       __asm__ __volatile__("lzcnt %rax,%rax");
   7620   } while (0)
   7621 
   7622   ;
   7623   return 0;
   7624 }
   7625 _ACEOF
   7626 if 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 
   7632 else
   7633 
   7634   ac_have_as_lzcnt=no
   7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7636 $as_echo "no" >&6; }
   7637 
   7638 fi
   7639 rm -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='#'
   7644 else
   7645   BUILD_LZCNT_TESTS_TRUE='#'
   7646   BUILD_LZCNT_TESTS_FALSE=
   7647 fi
   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
   7654 if 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; }
   7660 if test "${vg_cv_tls+set}" = set; then :
   7661   $as_echo_n "(cached) " >&6
   7662 else
   7663   # Check whether --enable-tls was given.
   7664 if test "${enable_tls+set}" = set; then :
   7665   enableval=$enable_tls; vg_cv_tls=$enableval
   7666 else
   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;}
   7670 as_fn_error "cannot run test program while cross compiling
   7671 See \`config.log' for more details." "$LINENO" 5; }
   7672 else
   7673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7674 /* end confdefs.h.  */
   7675 static __thread int foo;
   7676 int
   7677 main ()
   7678 {
   7679 return foo;
   7680   ;
   7681   return 0;
   7682 }
   7683 _ACEOF
   7684 if ac_fn_c_try_run "$LINENO"; then :
   7685   vg_cv_tls=yes
   7686 else
   7687   vg_cv_tls=no
   7688 fi
   7689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7690   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7691 fi
   7692 
   7693 fi
   7694 
   7695 fi
   7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
   7697 $as_echo "$vg_cv_tls" >&6; }
   7698 else
   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; }
   7702 if test "${vg_cv_tls+set}" = set; then :
   7703   $as_echo_n "(cached) " >&6
   7704 else
   7705   # Check whether --enable-tls was given.
   7706 if test "${enable_tls+set}" = set; then :
   7707   enableval=$enable_tls; vg_cv_tls=$enableval
   7708 else
   7709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7710 /* end confdefs.h.  */
   7711 static __thread int foo;
   7712 int
   7713 main ()
   7714 {
   7715 return foo;
   7716   ;
   7717   return 0;
   7718 }
   7719 _ACEOF
   7720 if ac_fn_c_try_link "$LINENO"; then :
   7721   vg_cv_tls=yes
   7722 else
   7723   vg_cv_tls=no
   7724 fi
   7725 rm -f core conftest.err conftest.$ac_objext \
   7726     conftest$ac_exeext conftest.$ac_ext
   7727 fi
   7728 
   7729 fi
   7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
   7731 $as_echo "$vg_cv_tls" >&6; }
   7732 fi
   7733 
   7734 if test "$vg_cv_tls" = yes; then
   7735 
   7736 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   7737 
   7738 fi
   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; }
   7747 if test "${ac_cv_header_stdc+set}" = set; then :
   7748   $as_echo_n "(cached) " >&6
   7749 else
   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 
   7757 int
   7758 main ()
   7759 {
   7760 
   7761   ;
   7762   return 0;
   7763 }
   7764 _ACEOF
   7765 if ac_fn_c_try_compile "$LINENO"; then :
   7766   ac_cv_header_stdc=yes
   7767 else
   7768   ac_cv_header_stdc=no
   7769 fi
   7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7771 
   7772 if 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
   7779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7780   $EGREP "memchr" >/dev/null 2>&1; then :
   7781 
   7782 else
   7783   ac_cv_header_stdc=no
   7784 fi
   7785 rm -f conftest*
   7786 
   7787 fi
   7788 
   7789 if 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
   7796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7797   $EGREP "free" >/dev/null 2>&1; then :
   7798 
   7799 else
   7800   ac_cv_header_stdc=no
   7801 fi
   7802 rm -f conftest*
   7803 
   7804 fi
   7805 
   7806 if 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   :
   7810 else
   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)))
   7827 int
   7828 main ()
   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
   7838 if ac_fn_c_try_run "$LINENO"; then :
   7839 
   7840 else
   7841   ac_cv_header_stdc=no
   7842 fi
   7843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7844   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7845 fi
   7846 
   7847 fi
   7848 fi
   7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   7850 $as_echo "$ac_cv_header_stdc" >&6; }
   7851 if test $ac_cv_header_stdc = yes; then
   7852 
   7853 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   7854 
   7855 fi
   7856 
   7857 for 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 
   7872 do :
   7873   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7874 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   7875 eval 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 
   7881 fi
   7882 
   7883 done
   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; }
   7891 if test "${ac_cv_type_uid_t+set}" = set; then :
   7892   $as_echo_n "(cached) " >&6
   7893 else
   7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7895 /* end confdefs.h.  */
   7896 #include <sys/types.h>
   7897 
   7898 _ACEOF
   7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7900   $EGREP "uid_t" >/dev/null 2>&1; then :
   7901   ac_cv_type_uid_t=yes
   7902 else
   7903   ac_cv_type_uid_t=no
   7904 fi
   7905 rm -f conftest*
   7906 
   7907 fi
   7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   7909 $as_echo "$ac_cv_type_uid_t" >&6; }
   7910 if 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 
   7917 fi
   7918 
   7919 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
   7920 if test "x$ac_cv_type_off_t" = x""yes; then :
   7921 
   7922 else
   7923 
   7924 cat >>confdefs.h <<_ACEOF
   7925 #define off_t long int
   7926 _ACEOF
   7927 
   7928 fi
   7929 
   7930 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   7931 if test "x$ac_cv_type_size_t" = x""yes; then :
   7932 
   7933 else
   7934 
   7935 cat >>confdefs.h <<_ACEOF
   7936 #define size_t unsigned int
   7937 _ACEOF
   7938 
   7939 fi
   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; }
   7943 if test "${ac_cv_header_time+set}" = set; then :
   7944   $as_echo_n "(cached) " >&6
   7945 else
   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 
   7952 int
   7953 main ()
   7954 {
   7955 if ((struct tm *) 0)
   7956 return 0;
   7957   ;
   7958   return 0;
   7959 }
   7960 _ACEOF
   7961 if ac_fn_c_try_compile "$LINENO"; then :
   7962   ac_cv_header_time=yes
   7963 else
   7964   ac_cv_header_time=no
   7965 fi
   7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7967 fi
   7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   7969 $as_echo "$ac_cv_header_time" >&6; }
   7970 if test $ac_cv_header_time = yes; then
   7971 
   7972 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   7973 
   7974 fi
   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; }
   7983 if test "${ac_cv_func_memcmp_working+set}" = set; then :
   7984   $as_echo_n "(cached) " >&6
   7985 else
   7986   if test "$cross_compiling" = yes; then :
   7987   ac_cv_func_memcmp_working=no
   7988 else
   7989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7990 /* end confdefs.h.  */
   7991 $ac_includes_default
   7992 int
   7993 main ()
   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
   8024 if ac_fn_c_try_run "$LINENO"; then :
   8025   ac_cv_func_memcmp_working=yes
   8026 else
   8027   ac_cv_func_memcmp_working=no
   8028 fi
   8029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8030   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8031 fi
   8032 
   8033 fi
   8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
   8035 $as_echo "$ac_cv_func_memcmp_working" >&6; }
   8036 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
   8037   *" memcmp.$ac_objext "* ) ;;
   8038   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   8039  ;;
   8040 esac
   8041 
   8042 
   8043 
   8044 
   8045 
   8046   for ac_header in $ac_header_list
   8047 do :
   8048   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8049 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   8050 "
   8051 eval 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 
   8057 fi
   8058 
   8059 done
   8060 
   8061 
   8062 
   8063 
   8064 
   8065 
   8066 
   8067 
   8068 for ac_func in getpagesize
   8069 do :
   8070   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   8071 if test "x$ac_cv_func_getpagesize" = x""yes; then :
   8072   cat >>confdefs.h <<_ACEOF
   8073 #define HAVE_GETPAGESIZE 1
   8074 _ACEOF
   8075 
   8076 fi
   8077 done
   8078 
   8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   8080 $as_echo_n "checking for working mmap... " >&6; }
   8081 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
   8082   $as_echo_n "(cached) " >&6
   8083 else
   8084   if test "$cross_compiling" = yes; then :
   8085   ac_cv_func_mmap_fixed_mapped=no
   8086 else
   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
   8119 char *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 
   8154 int
   8155 main ()
   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
   8226 if ac_fn_c_try_run "$LINENO"; then :
   8227   ac_cv_func_mmap_fixed_mapped=yes
   8228 else
   8229   ac_cv_func_mmap_fixed_mapped=no
   8230 fi
   8231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8232   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8233 fi
   8234 
   8235 fi
   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; }
   8238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   8239 
   8240 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   8241 
   8242 fi
   8243 rm -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; }
   8247 if test "${ac_cv_type_signal+set}" = set; then :
   8248   $as_echo_n "(cached) " >&6
   8249 else
   8250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8251 /* end confdefs.h.  */
   8252 #include <sys/types.h>
   8253 #include <signal.h>
   8254 
   8255 int
   8256 main ()
   8257 {
   8258 return *(signal (0, 0)) (0) == 1;
   8259   ;
   8260   return 0;
   8261 }
   8262 _ACEOF
   8263 if ac_fn_c_try_compile "$LINENO"; then :
   8264   ac_cv_type_signal=int
   8265 else
   8266   ac_cv_type_signal=void
   8267 fi
   8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8269 fi
   8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
   8271 $as_echo "$ac_cv_type_signal" >&6; }
   8272 
   8273 cat >>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; }
   8281 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
   8282   $as_echo_n "(cached) " >&6
   8283 else
   8284   ac_check_lib_save_LIBS=$LIBS
   8285 LIBS="-lrt  $LIBS"
   8286 cat 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
   8293 extern "C"
   8294 #endif
   8295 char clock_gettime ();
   8296 int
   8297 main ()
   8298 {
   8299 return clock_gettime ();
   8300   ;
   8301   return 0;
   8302 }
   8303 _ACEOF
   8304 if ac_fn_c_try_link "$LINENO"; then :
   8305   ac_cv_lib_rt_clock_gettime=yes
   8306 else
   8307   ac_cv_lib_rt_clock_gettime=no
   8308 fi
   8309 rm -f core conftest.err conftest.$ac_objext \
   8310     conftest$ac_exeext conftest.$ac_ext
   8311 LIBS=$ac_check_lib_save_LIBS
   8312 fi
   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; }
   8315 if 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 
   8322 fi
   8323 
   8324 
   8325 for 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 
   8357 do :
   8358   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   8360 eval 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 
   8366 fi
   8367 done
   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
   8373 LIBS=""
   8374 
   8375  if test x$ac_cv_func_pthread_barrier_init = xyes; then
   8376   HAVE_PTHREAD_BARRIER_TRUE=
   8377   HAVE_PTHREAD_BARRIER_FALSE='#'
   8378 else
   8379   HAVE_PTHREAD_BARRIER_TRUE='#'
   8380   HAVE_PTHREAD_BARRIER_FALSE=
   8381 fi
   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='#'
   8386 else
   8387   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
   8388   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
   8389 fi
   8390 
   8391  if test x$ac_cv_func_pthread_spin_lock = xyes; then
   8392   HAVE_PTHREAD_SPINLOCK_TRUE=
   8393   HAVE_PTHREAD_SPINLOCK_FALSE='#'
   8394 else
   8395   HAVE_PTHREAD_SPINLOCK_TRUE='#'
   8396   HAVE_PTHREAD_SPINLOCK_FALSE=
   8397 fi
   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=.
   8410 MPI_CC="mpicc"
   8411 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
   8412      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
   8413   MPI_CC="mpxlc"
   8414 fi
   8415 
   8416 mflag_primary=
   8417 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
   8418      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
   8419   mflag_primary=$FLAG_M32
   8420 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
   8421        -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX ; then
   8422   mflag_primary=$FLAG_M64
   8423 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
   8424   mflag_primary=-q32
   8425 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
   8426   mflag_primary=-q64
   8427 fi
   8428 
   8429 mflag_secondary=
   8430 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
   8431      -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
   8432   mflag_secondary=$FLAG_M32
   8433 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
   8434   mflag_secondary=-q32
   8435 fi
   8436 
   8437 
   8438 
   8439 # Check whether --with-mpicc was given.
   8440 if test "${with_mpicc+set}" = set; then :
   8441   withval=$with_mpicc; MPI_CC=$withval
   8442 
   8443 fi
   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; }
   8451 saved_CC=$CC
   8452 saved_CFLAGS=$CFLAGS
   8453 CC=$MPI_CC
   8454 CFLAGS=$mflag_primary
   8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8456 /* end confdefs.h.  */
   8457 
   8458 #include <mpi.h>
   8459 #include <stdio.h>
   8460 
   8461 int
   8462 main ()
   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
   8473 if ac_fn_c_try_link "$LINENO"; then :
   8474 
   8475 ac_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 
   8479 else
   8480 
   8481 ac_have_mpi2_pri=no
   8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8483 $as_echo "no" >&6; }
   8484 
   8485 fi
   8486 rm -f core conftest.err conftest.$ac_objext \
   8487     conftest$ac_exeext conftest.$ac_ext
   8488 CC=$saved_CC
   8489 CFLAGS=$saved_CFLAGS
   8490  if test x$ac_have_mpi2_pri = xyes; then
   8491   BUILD_MPIWRAP_PRI_TRUE=
   8492   BUILD_MPIWRAP_PRI_FALSE='#'
   8493 else
   8494   BUILD_MPIWRAP_PRI_TRUE='#'
   8495   BUILD_MPIWRAP_PRI_FALSE=
   8496 fi
   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; }
   8506 saved_CC=$CC
   8507 saved_CFLAGS=$CFLAGS
   8508 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
   8509   CC="$MPI_CC this will surely fail"
   8510 else
   8511   CC=$MPI_CC
   8512 fi
   8513 CFLAGS=$mflag_secondary
   8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8515 /* end confdefs.h.  */
   8516 
   8517 #include <mpi.h>
   8518 #include <stdio.h>
   8519 
   8520 int
   8521 main ()
   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
   8532 if ac_fn_c_try_link "$LINENO"; then :
   8533 
   8534 ac_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 
   8538 else
   8539 
   8540 ac_have_mpi2_sec=no
   8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8542 $as_echo "no" >&6; }
   8543 
   8544 fi
   8545 rm -f core conftest.err conftest.$ac_objext \
   8546     conftest$ac_exeext conftest.$ac_ext
   8547 CC=$saved_CC
   8548 CFLAGS=$saved_CFLAGS
   8549  if test x$ac_have_mpi2_sec = xyes; then
   8550   BUILD_MPIWRAP_SEC_TRUE=
   8551   BUILD_MPIWRAP_SEC_FALSE='#'
   8552 else
   8553   BUILD_MPIWRAP_SEC_TRUE='#'
   8554   BUILD_MPIWRAP_SEC_FALSE=
   8555 fi
   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 
   8597 if 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.
   8600 set 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; }
   8603 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
   8604   $as_echo_n "(cached) " >&6
   8605 else
   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
   8612 for as_dir in $PATH
   8613 do
   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
   8622 done
   8623   done
   8624 IFS=$as_save_IFS
   8625 
   8626   ;;
   8627 esac
   8628 fi
   8629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   8630 if test -n "$PKG_CONFIG"; then
   8631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   8632 $as_echo "$PKG_CONFIG" >&6; }
   8633 else
   8634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8635 $as_echo "no" >&6; }
   8636 fi
   8637 
   8638 
   8639 fi
   8640 if 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.
   8643 set 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; }
   8646 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
   8647   $as_echo_n "(cached) " >&6
   8648 else
   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
   8655 for as_dir in $PATH
   8656 do
   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
   8665 done
   8666   done
   8667 IFS=$as_save_IFS
   8668 
   8669   ;;
   8670 esac
   8671 fi
   8672 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   8673 if 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; }
   8676 else
   8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8678 $as_echo "no" >&6; }
   8679 fi
   8680 
   8681   if test "x$ac_pt_PKG_CONFIG" = x; then
   8682     PKG_CONFIG=""
   8683   else
   8684     case $cross_compiling:$ac_tool_warned in
   8685 yes:)
   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;}
   8688 ac_tool_warned=yes ;;
   8689 esac
   8690     PKG_CONFIG=$ac_pt_PKG_CONFIG
   8691   fi
   8692 else
   8693   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   8694 fi
   8695 
   8696 fi
   8697 if 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 
   8710 fi
   8711 
   8712 if 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 
   8720 pkg_failed=no
   8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
   8722 $as_echo_n "checking for QTCORE... " >&6; }
   8723 
   8724 if 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`
   8735 else
   8736   pkg_failed=yes
   8737 fi
   8738     fi
   8739 else
   8740 	pkg_failed=untried
   8741 fi
   8742 if 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`
   8753 else
   8754   pkg_failed=yes
   8755 fi
   8756     fi
   8757 else
   8758 	pkg_failed=untried
   8759 fi
   8760 
   8761 
   8762 
   8763 if test $pkg_failed = yes; then
   8764 
   8765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   8766         _pkg_short_errors_supported=yes
   8767 else
   8768         _pkg_short_errors_supported=no
   8769 fi
   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 
   8782 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   8783 installed software in a non-standard prefix.
   8784 
   8785 Alternatively, you may set the environment variables QTCORE_CFLAGS
   8786 and QTCORE_LIBS to avoid the need to call pkg-config.
   8787 See the pkg-config man page for more details.
   8788 " "$LINENO" 5
   8789 elif 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;}
   8792 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
   8793 is in your PATH or set the PKG_CONFIG environment variable to the full
   8794 path to pkg-config.
   8795 
   8796 Alternatively, you may set the environment variables QTCORE_CFLAGS
   8797 and QTCORE_LIBS to avoid the need to call pkg-config.
   8798 See the pkg-config man page for more details.
   8799 
   8800 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   8801 See \`config.log' for more details." "$LINENO" 5; }
   8802 else
   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 	:
   8808 fi
   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
   8813 ac_cpp='$CXXCPP $CPPFLAGS'
   8814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8816 ac_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>
   8823 int
   8824 main ()
   8825 {
   8826 QMutex Mutex;
   8827   ;
   8828   return 0;
   8829 }
   8830 _ACEOF
   8831 if ac_fn_cxx_try_link "$LINENO"; then :
   8832   ac_have_qtcore=yes
   8833 else
   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 
   8840 fi
   8841 rm -f core conftest.err conftest.$ac_objext \
   8842     conftest$ac_exeext conftest.$ac_ext
   8843       CXXFLAGS="${safe_CXXFLAGS}"
   8844 
   8845 else
   8846 
   8847       ac_have_qtcore=no
   8848 
   8849 
   8850 fi
   8851 
   8852 
   8853  if test x$ac_have_qtcore = xyes; then
   8854   HAVE_QTCORE_TRUE=
   8855   HAVE_QTCORE_FALSE='#'
   8856 else
   8857   HAVE_QTCORE_TRUE='#'
   8858   HAVE_QTCORE_FALSE=
   8859 fi
   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.
   8865 if 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
   8869 ac_cpp='$CXXCPP $CPPFLAGS'
   8870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8872 ac_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 
   8881 int
   8882 main ()
   8883 {
   8884 
   8885     QMutex M;
   8886     M.tryLock(1);
   8887     M.unlock();
   8888     return 0;
   8889 
   8890   ;
   8891   return 0;
   8892 }
   8893 _ACEOF
   8894 if 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 
   8902 else
   8903 
   8904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8905 $as_echo "no" >&6; }
   8906 
   8907 fi
   8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8909   CXXFLAGS="${safe_CXXFLAGS}"
   8910   ac_ext=c
   8911 ac_cpp='$CPP $CPPFLAGS'
   8912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8915 
   8916 fi
   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.
   8921 if 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
   8925 ac_cpp='$CXXCPP $CPPFLAGS'
   8926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8928 ac_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 
   8937 int
   8938 main ()
   8939 {
   8940 
   8941     QAtomicInt I;
   8942     I.testAndSetOrdered(0, 1);
   8943     return 0;
   8944 
   8945   ;
   8946   return 0;
   8947 }
   8948 _ACEOF
   8949 if 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 
   8958 else
   8959 
   8960     ac_have_qtcore_qatomicint=no
   8961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8962 $as_echo "no" >&6; }
   8963 
   8964 fi
   8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8966   CXXFLAGS="${safe_CXXFLAGS}"
   8967   ac_ext=c
   8968 ac_cpp='$CPP $CPPFLAGS'
   8969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8972 
   8973 fi
   8974 
   8975  if test x$ac_have_qtcore_qatomicint = xyes; then
   8976   HAVE_QTCORE_QATOMICINT_TRUE=
   8977   HAVE_QTCORE_QATOMICINT_FALSE='#'
   8978 else
   8979   HAVE_QTCORE_QATOMICINT_TRUE='#'
   8980   HAVE_QTCORE_QATOMICINT_FALSE=
   8981 fi
   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 
   8992 ac_ext=cpp
   8993 ac_cpp='$CXXCPP $CPPFLAGS'
   8994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8997 
   8998 safe_CXXFLAGS=$CXXFLAGS
   8999 CXXFLAGS="-lboost_thread-mt $mflag_primary"
   9000 
   9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9002 /* end confdefs.h.  */
   9003 
   9004 #include <boost/thread.hpp>
   9005 static void thread_func(void)
   9006 { }
   9007 int main(int argc, char** argv)
   9008 {
   9009   boost::thread t(thread_func);
   9010   return 0;
   9011 }
   9012 
   9013 _ACEOF
   9014 if ac_fn_cxx_try_link "$LINENO"; then :
   9015 
   9016 ac_have_boost_1_35=yes
   9017 
   9018 BOOST_LIBS="${CXXFLAGS}"
   9019 
   9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9021 $as_echo "yes" >&6; }
   9022 
   9023 else
   9024 
   9025 ac_have_boost_1_35=no
   9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9027 $as_echo "no" >&6; }
   9028 
   9029 fi
   9030 rm -f core conftest.err conftest.$ac_objext \
   9031     conftest$ac_exeext conftest.$ac_ext
   9032 
   9033 CXXFLAGS=$safe_CXXFLAGS
   9034 ac_ext=c
   9035 ac_cpp='$CPP $CPPFLAGS'
   9036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9038 ac_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='#'
   9044 else
   9045   HAVE_BOOST_1_35_TRUE='#'
   9046   HAVE_BOOST_1_35_FALSE=
   9047 fi
   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 
   9057 safe_CFLAGS=$CFLAGS
   9058 CFLAGS="-fopenmp $mflag_primary"
   9059 
   9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9061 /* end confdefs.h.  */
   9062 
   9063 #include <omp.h>
   9064 int main(int argc, char** argv)
   9065 {
   9066   omp_set_dynamic(0);
   9067   return 0;
   9068 }
   9069 
   9070 _ACEOF
   9071 if ac_fn_c_try_link "$LINENO"; then :
   9072 
   9073 ac_have_openmp=yes
   9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9075 $as_echo "yes" >&6; }
   9076 
   9077 else
   9078 
   9079 ac_have_openmp=no
   9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9081 $as_echo "no" >&6; }
   9082 
   9083 fi
   9084 rm -f core conftest.err conftest.$ac_objext \
   9085     conftest$ac_exeext conftest.$ac_ext
   9086 CFLAGS=$safe_CFLAGS
   9087 
   9088  if test x$ac_have_openmp = xyes; then
   9089   HAVE_OPENMP_TRUE=
   9090   HAVE_OPENMP_FALSE='#'
   9091 else
   9092   HAVE_OPENMP_TRUE='#'
   9093   HAVE_OPENMP_FALSE=
   9094 fi
   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 
   9102 safe_CFLAGS=$CFLAGS
   9103 CFLAGS="$mflag_primary"
   9104 
   9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9106 /* end confdefs.h.  */
   9107 
   9108 int
   9109 main ()
   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
   9120 if 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 
   9129 else
   9130 
   9131   ac_have_builtin_atomic=no
   9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9133 $as_echo "no" >&6; }
   9134 
   9135 fi
   9136 rm -f core conftest.err conftest.$ac_objext \
   9137     conftest$ac_exeext conftest.$ac_ext
   9138 
   9139 CFLAGS=$safe_CFLAGS
   9140 
   9141  if test x$ac_have_builtin_atomic = xyes; then
   9142   HAVE_BUILTIN_ATOMIC_TRUE=
   9143   HAVE_BUILTIN_ATOMIC_FALSE='#'
   9144 else
   9145   HAVE_BUILTIN_ATOMIC_TRUE='#'
   9146   HAVE_BUILTIN_ATOMIC_FALSE=
   9147 fi
   9148 
   9149 
   9150 
   9151 #----------------------------------------------------------------------------
   9152 # Ok.  We're done checking.
   9153 #----------------------------------------------------------------------------
   9154 
   9155 # Nb: VEX/Makefile is generated from Makefile.vex.in.
   9156 ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp docs/Makefile tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/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 
   9158 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
   9159 
   9160 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
   9161 
   9162 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
   9163 
   9164 cat >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
   9226 if 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
   9236 fi
   9237 rm -f confcache
   9238 
   9239 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   9240 # Let make expand exec_prefix.
   9241 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   9242 
   9243 DEFS=-DHAVE_CONFIG_H
   9244 
   9245 ac_libobjs=
   9246 ac_ltlibobjs=
   9247 for 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'
   9255 done
   9256 LIBOBJS=$ac_libobjs
   9257 
   9258 LTLIBOBJS=$ac_ltlibobjs
   9259 
   9260 
   9261  if test -n "$EXEEXT"; then
   9262   am__EXEEXT_TRUE=
   9263   am__EXEEXT_FALSE='#'
   9264 else
   9265   am__EXEEXT_TRUE='#'
   9266   am__EXEEXT_FALSE=
   9267 fi
   9268 
   9269 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   9270   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
   9271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9272 fi
   9273 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   9274   as_fn_error "conditional \"AMDEP\" was never defined.
   9275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9276 fi
   9277 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   9278   as_fn_error "conditional \"am__fastdepCC\" was never defined.
   9279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9280 fi
   9281 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
   9282   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
   9283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9284 fi
   9285 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
   9286   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
   9287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9288 fi
   9289 if 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.
   9291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9292 fi
   9293 if 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.
   9295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9296 fi
   9297 if 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.
   9299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9300 fi
   9301 if 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.
   9303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9304 fi
   9305 if 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.
   9307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9308 fi
   9309 if 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.
   9311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9312 fi
   9313 if 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.
   9315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9316 fi
   9317 if 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.
   9319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9320 fi
   9321 if 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.
   9323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9324 fi
   9325 if 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.
   9327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9328 fi
   9329 if 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.
   9331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9332 fi
   9333 if 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.
   9335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9336 fi
   9337 if 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.
   9339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9340 fi
   9341 if 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.
   9343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9344 fi
   9345 if 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.
   9347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9348 fi
   9349 if 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.
   9351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9352 fi
   9353 if 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.
   9355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9356 fi
   9357 if 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.
   9359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9360 fi
   9361 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
   9362   as_fn_error "conditional \"HAS_ALTIVEC\" was never defined.
   9363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9364 fi
   9365 if 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.
   9367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9368 fi
   9369 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
   9370   as_fn_error "conditional \"BUILD_SSE3_TESTS\" was never defined.
   9371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9372 fi
   9373 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
   9374   as_fn_error "conditional \"BUILD_SSSE3_TESTS\" was never defined.
   9375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9376 fi
   9377 if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
   9378   as_fn_error "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
   9379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9380 fi
   9381 if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
   9382   as_fn_error "conditional \"BUILD_LZCNT_TESTS\" was never defined.
   9383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9384 fi
   9385 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
   9386   as_fn_error "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
   9387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9388 fi
   9389 if 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.
   9391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9392 fi
   9393 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
   9394   as_fn_error "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
   9395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9396 fi
   9397 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
   9398   as_fn_error "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
   9399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9400 fi
   9401 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
   9402   as_fn_error "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
   9403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9404 fi
   9405 if test -z "${HAVE_QTCORE_TRUE}" && test -z "${HAVE_QTCORE_FALSE}"; then
   9406   as_fn_error "conditional \"HAVE_QTCORE\" was never defined.
   9407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9408 fi
   9409 if test -z "${HAVE_QTCORE_QATOMICINT_TRUE}" && test -z "${HAVE_QTCORE_QATOMICINT_FALSE}"; then
   9410   as_fn_error "conditional \"HAVE_QTCORE_QATOMICINT\" was never defined.
   9411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9412 fi
   9413 if 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.
   9415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9416 fi
   9417 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
   9418   as_fn_error "conditional \"HAVE_OPENMP\" was never defined.
   9419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9420 fi
   9421 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
   9422   as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
   9423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   9424 fi
   9425 
   9426 : ${CONFIG_STATUS=./config.status}
   9427 ac_write_fail=0
   9428 ac_clean_files_save=$ac_clean_files
   9429 ac_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;}
   9432 as_write_fail=0
   9433 cat >$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 
   9440 debug=false
   9441 ac_cs_recheck=false
   9442 ac_cs_silent=false
   9443 
   9444 SHELL=\${CONFIG_SHELL-$SHELL}
   9445 export SHELL
   9446 _ASEOF
   9447 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   9448 ## -------------------- ##
   9449 ## M4sh Initialization. ##
   9450 ## -------------------- ##
   9451 
   9452 # Be more Bourne compatible
   9453 DUALCASE=1; export DUALCASE # for MKS sh
   9454 if 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
   9461 else
   9462   case `(set -o) 2>/dev/null` in #(
   9463   *posix*) :
   9464     set -o posix ;; #(
   9465   *) :
   9466      ;;
   9467 esac
   9468 fi
   9469 
   9470 
   9471 as_nl='
   9472 '
   9473 export as_nl
   9474 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   9475 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   9476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   9477 as_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.
   9480 if 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 --'
   9484 elif (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'
   9487 else
   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'
   9507 fi
   9508 
   9509 # The user is always right.
   9510 if 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   }
   9516 fi
   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.)
   9524 IFS=" ""	$as_nl"
   9525 
   9526 # Find who we are.  Look in the path if we contain no directory separator.
   9527 case $0 in #((
   9528   *[\\/]* ) as_myself=$0 ;;
   9529   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9530 for as_dir in $PATH
   9531 do
   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
   9536 IFS=$as_save_IFS
   9537 
   9538      ;;
   9539 esac
   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.
   9542 if test "x$as_myself" = x; then
   9543   as_myself=$0
   9544 fi
   9545 if test ! -f "$as_myself"; then
   9546   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   9547   exit 1
   9548 fi
   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.
   9554 for as_var in BASH_ENV ENV MAIL MAILPATH
   9555 do eval test x\${$as_var+set} = xset \
   9556   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   9557 done
   9558 PS1='$ '
   9559 PS2='> '
   9560 PS4='+ '
   9561 
   9562 # NLS nuisances.
   9563 LC_ALL=C
   9564 export LC_ALL
   9565 LANGUAGE=C
   9566 export 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.
   9577 as_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.
   9592 as_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.
   9600 as_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.
   9610 as_fn_unset ()
   9611 {
   9612   { eval $1=; unset $1;}
   9613 }
   9614 as_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.
   9621 if (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   }'
   9626 else
   9627   as_fn_append ()
   9628   {
   9629     eval $1=\$$1\$2
   9630   }
   9631 fi # 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.
   9638 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   9639   eval 'as_fn_arith ()
   9640   {
   9641     as_val=$(( $* ))
   9642   }'
   9643 else
   9644   as_fn_arith ()
   9645   {
   9646     as_val=`expr "$@" || test $? -eq 1`
   9647   }
   9648 fi # as_fn_arith
   9649 
   9650 
   9651 if expr a : '\(a\)' >/dev/null 2>&1 &&
   9652    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   9653   as_expr=expr
   9654 else
   9655   as_expr=false
   9656 fi
   9657 
   9658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   9659   as_basename=basename
   9660 else
   9661   as_basename=false
   9662 fi
   9663 
   9664 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   9665   as_dirname=dirname
   9666 else
   9667   as_dirname=false
   9668 fi
   9669 
   9670 as_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.
   9690 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   9691 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   9692 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   9693 as_cr_digits='0123456789'
   9694 as_cr_alnum=$as_cr_Letters$as_cr_digits
   9695 
   9696 ECHO_C= ECHO_N= ECHO_T=
   9697 case `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';;
   9707 esac
   9708 
   9709 rm -f conf$$ conf$$.exe conf$$.file
   9710 if test -d conf$$.dir; then
   9711   rm -f conf$$.dir/conf$$.file
   9712 else
   9713   rm -f conf$$.dir
   9714   mkdir conf$$.dir 2>/dev/null
   9715 fi
   9716 if (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
   9730 else
   9731   as_ln_s='cp -p'
   9732 fi
   9733 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   9734 rmdir conf$$.dir 2>/dev/null
   9735 
   9736 
   9737 # as_fn_mkdir_p
   9738 # -------------
   9739 # Create "$as_dir" as a directory, including parents if necessary.
   9740 as_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
   9784 if mkdir -p . 2>/dev/null; then
   9785   as_mkdir_p='mkdir -p "$as_dir"'
   9786 else
   9787   test -d ./-p && rmdir ./-p
   9788   as_mkdir_p=false
   9789 fi
   9790 
   9791 if test -x / >/dev/null 2>&1; then
   9792   as_test_x='test -x'
   9793 else
   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   '
   9811 fi
   9812 as_executable_p=$as_test_x
   9813 
   9814 # Sed expression to map a string onto a valid CPP name.
   9815 as_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.
   9818 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   9819 
   9820 
   9821 exec 6>&1
   9822 ## ----------------------------------- ##
   9823 ## Main body of $CONFIG_STATUS script. ##
   9824 ## ----------------------------------- ##
   9825 _ASEOF
   9826 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   9827 
   9828 cat >>$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.
   9832 ac_log="
   9833 This file was extended by Valgrind $as_me 3.6.1, which was
   9834 generated 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 
   9842 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   9843 "
   9844 
   9845 _ACEOF
   9846 
   9847 case $ac_config_files in *"
   9848 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   9849 esac
   9850 
   9851 case $ac_config_headers in *"
   9852 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   9853 esac
   9854 
   9855 
   9856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9857 # Files that config.status was made for.
   9858 config_files="$ac_config_files"
   9859 config_headers="$ac_config_headers"
   9860 config_commands="$ac_config_commands"
   9861 
   9862 _ACEOF
   9863 
   9864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9865 ac_cs_usage="\
   9866 \`$as_me' instantiates files and other configuration actions
   9867 from templates according to the current configuration.  Unless the files
   9868 and actions are specified as TAGs, all are instantiated by default.
   9869 
   9870 Usage: $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 
   9884 Configuration files:
   9885 $config_files
   9886 
   9887 Configuration headers:
   9888 $config_headers
   9889 
   9890 Configuration commands:
   9891 $config_commands
   9892 
   9893 Report bugs to <valgrind-users (at] lists.sourceforge.net>."
   9894 
   9895 _ACEOF
   9896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9897 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   9898 ac_cs_version="\\
   9899 Valgrind config.status 3.6.1
   9900 configured by $0, generated by GNU Autoconf 2.65,
   9901   with options \\"\$ac_cs_config\\"
   9902 
   9903 Copyright (C) 2009 Free Software Foundation, Inc.
   9904 This config.status script is free software; the Free Software Foundation
   9905 gives unlimited permission to copy, distribute and modify it."
   9906 
   9907 ac_pwd='$ac_pwd'
   9908 srcdir='$srcdir'
   9909 INSTALL='$INSTALL'
   9910 MKDIR_P='$MKDIR_P'
   9911 AWK='$AWK'
   9912 test -n "\$AWK" || AWK=awk
   9913 _ACEOF
   9914 
   9915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9916 # The default lists apply if the user does not specify any file.
   9917 ac_need_defaults=:
   9918 while test $# != 0
   9919 do
   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'
   9960 Try \`$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'
   9969 Try \`$0 --help' for more information." ;;
   9970 
   9971   *) as_fn_append ac_config_targets " $1"
   9972      ac_need_defaults=false ;;
   9973 
   9974   esac
   9975   shift
   9976 done
   9977 
   9978 ac_configure_extra_args=
   9979 
   9980 if $ac_cs_silent; then
   9981   exec 6>/dev/null
   9982   ac_configure_extra_args="$ac_configure_extra_args --silent"
   9983 fi
   9984 
   9985 _ACEOF
   9986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9987 if \$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 "\$@"
   9994 fi
   9995 
   9996 _ACEOF
   9997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9998 exec 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
   10008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10009 #
   10010 # INIT-COMMANDS
   10011 #
   10012 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   10013 
   10014 _ACEOF
   10015 
   10016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10017 
   10018 # Handling of arguments.
   10019 for ac_config_target in $ac_config_targets
   10020 do
   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
   10096 done
   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.
   10103 if $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
   10107 fi
   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'.
   10137 if test -n "$CONFIG_FILES"; then
   10138 
   10139 
   10140 ac_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.
   10144 if test "x$ac_cr" = x; then
   10145   eval ac_cr=\$\'\\r\'
   10146 fi
   10147 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   10148 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   10149   ac_cs_awk_cr='\r'
   10150 else
   10151   ac_cs_awk_cr=$ac_cr
   10152 fi
   10153 
   10154 echo '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
   10164 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
   10165 ac_delim='%!_!# '
   10166 for 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
   10178 done
   10179 rm -f conf$$subs.sh
   10180 
   10181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10182 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   10183 _ACEOF
   10184 sed -n '
   10185 h
   10186 s/^/S["/; s/!.*/"]=/
   10187 p
   10188 g
   10189 s/^[^!]*!//
   10190 :repl
   10191 t repl
   10192 s/'"$ac_delim"'$//
   10193 t delim
   10194 :nl
   10195 h
   10196 s/\(.\{148\}\)..*/\1/
   10197 t more1
   10198 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   10199 p
   10200 n
   10201 b repl
   10202 :more1
   10203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   10204 p
   10205 g
   10206 s/.\{148\}//
   10207 t nl
   10208 :delim
   10209 h
   10210 s/\(.\{148\}\)..*/\1/
   10211 t more2
   10212 s/["\\]/\\&/g; s/^/"/; s/$/"/
   10213 p
   10214 b
   10215 :more2
   10216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   10217 p
   10218 g
   10219 s/.\{148\}//
   10220 t delim
   10221 ' <conf$$subs.awk | sed '
   10222 /^[^""]/{
   10223   N
   10224   s/\n//
   10225 }
   10226 ' >>$CONFIG_STATUS || ac_write_fail=1
   10227 rm -f conf$$subs.awk
   10228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10229 _ACAWK
   10230 cat >>"\$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
   10257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10258 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   10259   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   10260 else
   10261   cat
   10262 fi < "$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).
   10270 if test "x$srcdir" = x.; then
   10271   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   10272 s/:*\$(srcdir):*/:/
   10273 s/:*\${srcdir}:*/:/
   10274 s/:*@srcdir@:*/:/
   10275 s/^\([^=]*=[	 ]*\):*/\1/
   10276 s/:*$//
   10277 s/^[^=]*=[	 ]*$//
   10278 }'
   10279 fi
   10280 
   10281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10282 fi # 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'.
   10287 if test -n "$CONFIG_HEADERS"; then
   10288 cat >"$tmp/defines.awk" <<\_ACAWK ||
   10289 BEGIN {
   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.
   10298 ac_delim='%!_!# '
   10299 for 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
   10308 done
   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 
   10314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   10315 sed -n '
   10316 s/.\{148\}/&'"$ac_delim"'/g
   10317 t rset
   10318 :rset
   10319 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   10320 t def
   10321 d
   10322 :def
   10323 s/\\$//
   10324 t bsnl
   10325 s/["\\]/\\&/g
   10326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   10327 D["\1"]=" \3"/p
   10328 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   10329 d
   10330 :bsnl
   10331 s/["\\]/\\&/g
   10332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   10333 D["\1"]=" \3\\\\\\n"\\/p
   10334 t cont
   10335 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   10336 t cont
   10337 d
   10338 :cont
   10339 n
   10340 s/.\{148\}/&'"$ac_delim"'/g
   10341 t clear
   10342 :clear
   10343 s/\\$//
   10344 t bsnlc
   10345 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   10346 d
   10347 :bsnlc
   10348 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   10349 b cont
   10350 ' <confdefs.h | sed '
   10351 s/'"$ac_delim"'/"\\\
   10352 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   10353 
   10354 cat >>$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
   10388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10389   as_fn_error "could not setup config headers machinery" "$LINENO" 5
   10390 fi # test -n "$CONFIG_HEADERS"
   10391 
   10392 
   10393 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   10394 shift
   10395 for ac_tag
   10396 do
   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 
   10488 case "$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 ;;
   10498 esac
   10499 ac_abs_top_builddir=$ac_pwd
   10500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   10501 # for backward compatibility:
   10502 ac_top_builddir=$ac_top_build_prefix
   10503 
   10504 case $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 ;;
   10517 esac
   10518 ac_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 
   10538 cat >>$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.
   10541 ac_datarootdir_hack=; ac_datarootdir_seen=
   10542 ac_sed_dataroot='
   10543 /datarootdir/ {
   10544   p
   10545   q
   10546 }
   10547 /@datadir@/p
   10548 /@docdir@/p
   10549 /@infodir@/p
   10550 /@localedir@/p
   10551 /@mandir@/p'
   10552 case `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
   10558 cat >>$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' ;;
   10566 esac
   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?
   10572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10573 ac_sed_extra="$ac_vpsub
   10574 $extrasub
   10575 _ACEOF
   10576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10577 :t
   10578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   10579 s|@configure_input@|$ac_sed_conf_input|;t t
   10580 s&@top_builddir@&$ac_top_builddir_sub&;t t
   10581 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   10582 s&@srcdir@&$ac_srcdir&;t t
   10583 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   10584 s&@top_srcdir@&$ac_top_srcdir&;t t
   10585 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   10586 s&@builddir@&$ac_builddir&;t t
   10587 s&@abs_builddir@&$ac_abs_builddir&;t t
   10588 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   10589 s&@INSTALL@&$ac_INSTALL&;t t
   10590 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   10591 $ac_datarootdir_hack
   10592 "
   10593 eval 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 
   10596 test -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'
   10600 which 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'
   10602 which 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
   10637 for _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
   10644 done
   10645 echo "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
   10777 done # for ac_tag
   10778 
   10779 
   10780 as_fn_exit 0
   10781 _ACEOF
   10782 ac_clean_files=$ac_clean_files_save
   10783 
   10784 test $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.
   10796 if 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 $?
   10807 fi
   10808 if 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;}
   10811 fi
   10812 
   10813 
   10814 cat<<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 
   10824 EOF
   10825