common/autoconf/configure

changeset 425
e1830598f0b7
child 430
afeeed8e5f8c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/common/autoconf/configure	Tue Apr 10 08:18:28 2012 -0700
     1.3 @@ -0,0 +1,16395 @@
     1.4 +#! /bin/sh
     1.5 +# Guess values for system-dependent variables and create Makefiles.
     1.6 +# Generated by GNU Autoconf 2.67 for openjdk version-0.1.
     1.7 +#
     1.8 +# Report bugs to <build-infra-dev@openjdk.java.net>.
     1.9 +#
    1.10 +#
    1.11 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    1.12 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
    1.13 +# Foundation, Inc.
    1.14 +#
    1.15 +#
    1.16 +# This configure script is free software; the Free Software Foundation
    1.17 +# gives unlimited permission to copy, distribute and modify it.
    1.18 +## -------------------- ##
    1.19 +## M4sh Initialization. ##
    1.20 +## -------------------- ##
    1.21 +
    1.22 +# Be more Bourne compatible
    1.23 +DUALCASE=1; export DUALCASE # for MKS sh
    1.24 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    1.25 +  emulate sh
    1.26 +  NULLCMD=:
    1.27 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    1.28 +  # is contrary to our usage.  Disable this feature.
    1.29 +  alias -g '${1+"$@"}'='"$@"'
    1.30 +  setopt NO_GLOB_SUBST
    1.31 +else
    1.32 +  case `(set -o) 2>/dev/null` in #(
    1.33 +  *posix*) :
    1.34 +    set -o posix ;; #(
    1.35 +  *) :
    1.36 +     ;;
    1.37 +esac
    1.38 +fi
    1.39 +
    1.40 +
    1.41 +as_nl='
    1.42 +'
    1.43 +export as_nl
    1.44 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
    1.45 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    1.46 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    1.47 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    1.48 +# Prefer a ksh shell builtin over an external printf program on Solaris,
    1.49 +# but without wasting forks for bash or zsh.
    1.50 +if test -z "$BASH_VERSION$ZSH_VERSION" \
    1.51 +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
    1.52 +  as_echo='print -r --'
    1.53 +  as_echo_n='print -rn --'
    1.54 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    1.55 +  as_echo='printf %s\n'
    1.56 +  as_echo_n='printf %s'
    1.57 +else
    1.58 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    1.59 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    1.60 +    as_echo_n='/usr/ucb/echo -n'
    1.61 +  else
    1.62 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    1.63 +    as_echo_n_body='eval
    1.64 +      arg=$1;
    1.65 +      case $arg in #(
    1.66 +      *"$as_nl"*)
    1.67 +	expr "X$arg" : "X\\(.*\\)$as_nl";
    1.68 +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
    1.69 +      esac;
    1.70 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    1.71 +    '
    1.72 +    export as_echo_n_body
    1.73 +    as_echo_n='sh -c $as_echo_n_body as_echo'
    1.74 +  fi
    1.75 +  export as_echo_body
    1.76 +  as_echo='sh -c $as_echo_body as_echo'
    1.77 +fi
    1.78 +
    1.79 +# The user is always right.
    1.80 +if test "${PATH_SEPARATOR+set}" != set; then
    1.81 +  PATH_SEPARATOR=:
    1.82 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    1.83 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
    1.84 +      PATH_SEPARATOR=';'
    1.85 +  }
    1.86 +fi
    1.87 +
    1.88 +
    1.89 +# IFS
    1.90 +# We need space, tab and new line, in precisely that order.  Quoting is
    1.91 +# there to prevent editors from complaining about space-tab.
    1.92 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
    1.93 +# splitting by setting IFS to empty value.)
    1.94 +IFS=" ""	$as_nl"
    1.95 +
    1.96 +# Find who we are.  Look in the path if we contain no directory separator.
    1.97 +case $0 in #((
    1.98 +  *[\\/]* ) as_myself=$0 ;;
    1.99 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1.100 +for as_dir in $PATH
   1.101 +do
   1.102 +  IFS=$as_save_IFS
   1.103 +  test -z "$as_dir" && as_dir=.
   1.104 +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   1.105 +  done
   1.106 +IFS=$as_save_IFS
   1.107 +
   1.108 +     ;;
   1.109 +esac
   1.110 +# We did not find ourselves, most probably we were run as `sh COMMAND'
   1.111 +# in which case we are not to be found in the path.
   1.112 +if test "x$as_myself" = x; then
   1.113 +  as_myself=$0
   1.114 +fi
   1.115 +if test ! -f "$as_myself"; then
   1.116 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   1.117 +  exit 1
   1.118 +fi
   1.119 +
   1.120 +# Unset variables that we do not need and which cause bugs (e.g. in
   1.121 +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   1.122 +# suppresses any "Segmentation fault" message there.  '((' could
   1.123 +# trigger a bug in pdksh 5.2.14.
   1.124 +for as_var in BASH_ENV ENV MAIL MAILPATH
   1.125 +do eval test x\${$as_var+set} = xset \
   1.126 +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   1.127 +done
   1.128 +PS1='$ '
   1.129 +PS2='> '
   1.130 +PS4='+ '
   1.131 +
   1.132 +# NLS nuisances.
   1.133 +LC_ALL=C
   1.134 +export LC_ALL
   1.135 +LANGUAGE=C
   1.136 +export LANGUAGE
   1.137 +
   1.138 +# CDPATH.
   1.139 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   1.140 +
   1.141 +if test "x$CONFIG_SHELL" = x; then
   1.142 +  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
   1.143 +  emulate sh
   1.144 +  NULLCMD=:
   1.145 +  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
   1.146 +  # is contrary to our usage.  Disable this feature.
   1.147 +  alias -g '\${1+\"\$@\"}'='\"\$@\"'
   1.148 +  setopt NO_GLOB_SUBST
   1.149 +else
   1.150 +  case \`(set -o) 2>/dev/null\` in #(
   1.151 +  *posix*) :
   1.152 +    set -o posix ;; #(
   1.153 +  *) :
   1.154 +     ;;
   1.155 +esac
   1.156 +fi
   1.157 +"
   1.158 +  as_required="as_fn_return () { (exit \$1); }
   1.159 +as_fn_success () { as_fn_return 0; }
   1.160 +as_fn_failure () { as_fn_return 1; }
   1.161 +as_fn_ret_success () { return 0; }
   1.162 +as_fn_ret_failure () { return 1; }
   1.163 +
   1.164 +exitcode=0
   1.165 +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
   1.166 +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
   1.167 +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
   1.168 +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
   1.169 +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
   1.170 +
   1.171 +else
   1.172 +  exitcode=1; echo positional parameters were not saved.
   1.173 +fi
   1.174 +test x\$exitcode = x0 || exit 1"
   1.175 +  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
   1.176 +  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
   1.177 +  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
   1.178 +  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
   1.179 +test \$(( 1 + 1 )) = 2 || exit 1"
   1.180 +  if (eval "$as_required") 2>/dev/null; then :
   1.181 +  as_have_required=yes
   1.182 +else
   1.183 +  as_have_required=no
   1.184 +fi
   1.185 +  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
   1.186 +
   1.187 +else
   1.188 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1.189 +as_found=false
   1.190 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   1.191 +do
   1.192 +  IFS=$as_save_IFS
   1.193 +  test -z "$as_dir" && as_dir=.
   1.194 +  as_found=:
   1.195 +  case $as_dir in #(
   1.196 +	 /*)
   1.197 +	   for as_base in sh bash ksh sh5; do
   1.198 +	     # Try only shells that exist, to save several forks.
   1.199 +	     as_shell=$as_dir/$as_base
   1.200 +	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   1.201 +		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
   1.202 +  CONFIG_SHELL=$as_shell as_have_required=yes
   1.203 +		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
   1.204 +  break 2
   1.205 +fi
   1.206 +fi
   1.207 +	   done;;
   1.208 +       esac
   1.209 +  as_found=false
   1.210 +done
   1.211 +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
   1.212 +	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
   1.213 +  CONFIG_SHELL=$SHELL as_have_required=yes
   1.214 +fi; }
   1.215 +IFS=$as_save_IFS
   1.216 +
   1.217 +
   1.218 +      if test "x$CONFIG_SHELL" != x; then :
   1.219 +  # We cannot yet assume a decent shell, so we have to provide a
   1.220 +	# neutralization value for shells without unset; and this also
   1.221 +	# works around shells that cannot unset nonexistent variables.
   1.222 +	BASH_ENV=/dev/null
   1.223 +	ENV=/dev/null
   1.224 +	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
   1.225 +	export CONFIG_SHELL
   1.226 +	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   1.227 +fi
   1.228 +
   1.229 +    if test x$as_have_required = xno; then :
   1.230 +  $as_echo "$0: This script requires a shell more modern than all"
   1.231 +  $as_echo "$0: the shells that I found on your system."
   1.232 +  if test x${ZSH_VERSION+set} = xset ; then
   1.233 +    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
   1.234 +    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
   1.235 +  else
   1.236 +    $as_echo "$0: Please tell bug-autoconf@gnu.org and
   1.237 +$0: build-infra-dev@openjdk.java.net about your system,
   1.238 +$0: including any error possibly output before this
   1.239 +$0: message. Then install a modern shell, or manually run
   1.240 +$0: the script under such a shell if you do have one."
   1.241 +  fi
   1.242 +  exit 1
   1.243 +fi
   1.244 +fi
   1.245 +fi
   1.246 +SHELL=${CONFIG_SHELL-/bin/sh}
   1.247 +export SHELL
   1.248 +# Unset more variables known to interfere with behavior of common tools.
   1.249 +CLICOLOR_FORCE= GREP_OPTIONS=
   1.250 +unset CLICOLOR_FORCE GREP_OPTIONS
   1.251 +
   1.252 +## --------------------- ##
   1.253 +## M4sh Shell Functions. ##
   1.254 +## --------------------- ##
   1.255 +# as_fn_unset VAR
   1.256 +# ---------------
   1.257 +# Portably unset VAR.
   1.258 +as_fn_unset ()
   1.259 +{
   1.260 +  { eval $1=; unset $1;}
   1.261 +}
   1.262 +as_unset=as_fn_unset
   1.263 +
   1.264 +# as_fn_set_status STATUS
   1.265 +# -----------------------
   1.266 +# Set $? to STATUS, without forking.
   1.267 +as_fn_set_status ()
   1.268 +{
   1.269 +  return $1
   1.270 +} # as_fn_set_status
   1.271 +
   1.272 +# as_fn_exit STATUS
   1.273 +# -----------------
   1.274 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   1.275 +as_fn_exit ()
   1.276 +{
   1.277 +  set +e
   1.278 +  as_fn_set_status $1
   1.279 +  exit $1
   1.280 +} # as_fn_exit
   1.281 +
   1.282 +# as_fn_mkdir_p
   1.283 +# -------------
   1.284 +# Create "$as_dir" as a directory, including parents if necessary.
   1.285 +as_fn_mkdir_p ()
   1.286 +{
   1.287 +
   1.288 +  case $as_dir in #(
   1.289 +  -*) as_dir=./$as_dir;;
   1.290 +  esac
   1.291 +  test -d "$as_dir" || eval $as_mkdir_p || {
   1.292 +    as_dirs=
   1.293 +    while :; do
   1.294 +      case $as_dir in #(
   1.295 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   1.296 +      *) as_qdir=$as_dir;;
   1.297 +      esac
   1.298 +      as_dirs="'$as_qdir' $as_dirs"
   1.299 +      as_dir=`$as_dirname -- "$as_dir" ||
   1.300 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1.301 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
   1.302 +	 X"$as_dir" : 'X\(//\)$' \| \
   1.303 +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   1.304 +$as_echo X"$as_dir" |
   1.305 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1.306 +	    s//\1/
   1.307 +	    q
   1.308 +	  }
   1.309 +	  /^X\(\/\/\)[^/].*/{
   1.310 +	    s//\1/
   1.311 +	    q
   1.312 +	  }
   1.313 +	  /^X\(\/\/\)$/{
   1.314 +	    s//\1/
   1.315 +	    q
   1.316 +	  }
   1.317 +	  /^X\(\/\).*/{
   1.318 +	    s//\1/
   1.319 +	    q
   1.320 +	  }
   1.321 +	  s/.*/./; q'`
   1.322 +      test -d "$as_dir" && break
   1.323 +    done
   1.324 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
   1.325 +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   1.326 +
   1.327 +
   1.328 +} # as_fn_mkdir_p
   1.329 +# as_fn_append VAR VALUE
   1.330 +# ----------------------
   1.331 +# Append the text in VALUE to the end of the definition contained in VAR. Take
   1.332 +# advantage of any shell optimizations that allow amortized linear growth over
   1.333 +# repeated appends, instead of the typical quadratic growth present in naive
   1.334 +# implementations.
   1.335 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   1.336 +  eval 'as_fn_append ()
   1.337 +  {
   1.338 +    eval $1+=\$2
   1.339 +  }'
   1.340 +else
   1.341 +  as_fn_append ()
   1.342 +  {
   1.343 +    eval $1=\$$1\$2
   1.344 +  }
   1.345 +fi # as_fn_append
   1.346 +
   1.347 +# as_fn_arith ARG...
   1.348 +# ------------------
   1.349 +# Perform arithmetic evaluation on the ARGs, and store the result in the
   1.350 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
   1.351 +# must be portable across $(()) and expr.
   1.352 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   1.353 +  eval 'as_fn_arith ()
   1.354 +  {
   1.355 +    as_val=$(( $* ))
   1.356 +  }'
   1.357 +else
   1.358 +  as_fn_arith ()
   1.359 +  {
   1.360 +    as_val=`expr "$@" || test $? -eq 1`
   1.361 +  }
   1.362 +fi # as_fn_arith
   1.363 +
   1.364 +
   1.365 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
   1.366 +# ----------------------------------------
   1.367 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   1.368 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   1.369 +# script with STATUS, using 1 if that was 0.
   1.370 +as_fn_error ()
   1.371 +{
   1.372 +  as_status=$1; test $as_status -eq 0 && as_status=1
   1.373 +  if test "$4"; then
   1.374 +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1.375 +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   1.376 +  fi
   1.377 +  $as_echo "$as_me: error: $2" >&2
   1.378 +  as_fn_exit $as_status
   1.379 +} # as_fn_error
   1.380 +
   1.381 +if expr a : '\(a\)' >/dev/null 2>&1 &&
   1.382 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
   1.383 +  as_expr=expr
   1.384 +else
   1.385 +  as_expr=false
   1.386 +fi
   1.387 +
   1.388 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   1.389 +  as_basename=basename
   1.390 +else
   1.391 +  as_basename=false
   1.392 +fi
   1.393 +
   1.394 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   1.395 +  as_dirname=dirname
   1.396 +else
   1.397 +  as_dirname=false
   1.398 +fi
   1.399 +
   1.400 +as_me=`$as_basename -- "$0" ||
   1.401 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   1.402 +	 X"$0" : 'X\(//\)$' \| \
   1.403 +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1.404 +$as_echo X/"$0" |
   1.405 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
   1.406 +	    s//\1/
   1.407 +	    q
   1.408 +	  }
   1.409 +	  /^X\/\(\/\/\)$/{
   1.410 +	    s//\1/
   1.411 +	    q
   1.412 +	  }
   1.413 +	  /^X\/\(\/\).*/{
   1.414 +	    s//\1/
   1.415 +	    q
   1.416 +	  }
   1.417 +	  s/.*/./; q'`
   1.418 +
   1.419 +# Avoid depending upon Character Ranges.
   1.420 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   1.421 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   1.422 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   1.423 +as_cr_digits='0123456789'
   1.424 +as_cr_alnum=$as_cr_Letters$as_cr_digits
   1.425 +
   1.426 +
   1.427 +  as_lineno_1=$LINENO as_lineno_1a=$LINENO
   1.428 +  as_lineno_2=$LINENO as_lineno_2a=$LINENO
   1.429 +  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
   1.430 +  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
   1.431 +  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
   1.432 +  sed -n '
   1.433 +    p
   1.434 +    /[$]LINENO/=
   1.435 +  ' <$as_myself |
   1.436 +    sed '
   1.437 +      s/[$]LINENO.*/&-/
   1.438 +      t lineno
   1.439 +      b
   1.440 +      :lineno
   1.441 +      N
   1.442 +      :loop
   1.443 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   1.444 +      t loop
   1.445 +      s/-\n.*//
   1.446 +    ' >$as_me.lineno &&
   1.447 +  chmod +x "$as_me.lineno" ||
   1.448 +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
   1.449 +
   1.450 +  # Don't try to exec as it changes $[0], causing all sort of problems
   1.451 +  # (the dirname of $[0] is not the place where we might find the
   1.452 +  # original and so on.  Autoconf is especially sensitive to this).
   1.453 +  . "./$as_me.lineno"
   1.454 +  # Exit status is that of the last command.
   1.455 +  exit
   1.456 +}
   1.457 +
   1.458 +ECHO_C= ECHO_N= ECHO_T=
   1.459 +case `echo -n x` in #(((((
   1.460 +-n*)
   1.461 +  case `echo 'xy\c'` in
   1.462 +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   1.463 +  xy)  ECHO_C='\c';;
   1.464 +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   1.465 +       ECHO_T='	';;
   1.466 +  esac;;
   1.467 +*)
   1.468 +  ECHO_N='-n';;
   1.469 +esac
   1.470 +
   1.471 +rm -f conf$$ conf$$.exe conf$$.file
   1.472 +if test -d conf$$.dir; then
   1.473 +  rm -f conf$$.dir/conf$$.file
   1.474 +else
   1.475 +  rm -f conf$$.dir
   1.476 +  mkdir conf$$.dir 2>/dev/null
   1.477 +fi
   1.478 +if (echo >conf$$.file) 2>/dev/null; then
   1.479 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
   1.480 +    as_ln_s='ln -s'
   1.481 +    # ... but there are two gotchas:
   1.482 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   1.483 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   1.484 +    # In both cases, we have to default to `cp -p'.
   1.485 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   1.486 +      as_ln_s='cp -p'
   1.487 +  elif ln conf$$.file conf$$ 2>/dev/null; then
   1.488 +    as_ln_s=ln
   1.489 +  else
   1.490 +    as_ln_s='cp -p'
   1.491 +  fi
   1.492 +else
   1.493 +  as_ln_s='cp -p'
   1.494 +fi
   1.495 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   1.496 +rmdir conf$$.dir 2>/dev/null
   1.497 +
   1.498 +if mkdir -p . 2>/dev/null; then
   1.499 +  as_mkdir_p='mkdir -p "$as_dir"'
   1.500 +else
   1.501 +  test -d ./-p && rmdir ./-p
   1.502 +  as_mkdir_p=false
   1.503 +fi
   1.504 +
   1.505 +if test -x / >/dev/null 2>&1; then
   1.506 +  as_test_x='test -x'
   1.507 +else
   1.508 +  if ls -dL / >/dev/null 2>&1; then
   1.509 +    as_ls_L_option=L
   1.510 +  else
   1.511 +    as_ls_L_option=
   1.512 +  fi
   1.513 +  as_test_x='
   1.514 +    eval sh -c '\''
   1.515 +      if test -d "$1"; then
   1.516 +	test -d "$1/.";
   1.517 +      else
   1.518 +	case $1 in #(
   1.519 +	-*)set "./$1";;
   1.520 +	esac;
   1.521 +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   1.522 +	???[sx]*):;;*)false;;esac;fi
   1.523 +    '\'' sh
   1.524 +  '
   1.525 +fi
   1.526 +as_executable_p=$as_test_x
   1.527 +
   1.528 +# Sed expression to map a string onto a valid CPP name.
   1.529 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   1.530 +
   1.531 +# Sed expression to map a string onto a valid variable name.
   1.532 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   1.533 +
   1.534 +
   1.535 +test -n "$DJDIR" || exec 7<&0 </dev/null
   1.536 +exec 6>&1
   1.537 +
   1.538 +# Name of the host.
   1.539 +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
   1.540 +# so uname gets run too.
   1.541 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   1.542 +
   1.543 +#
   1.544 +# Initializations.
   1.545 +#
   1.546 +ac_default_prefix=/usr/local
   1.547 +ac_clean_files=
   1.548 +ac_config_libobj_dir=.
   1.549 +LIBOBJS=
   1.550 +cross_compiling=no
   1.551 +subdirs=
   1.552 +MFLAGS=
   1.553 +MAKEFLAGS=
   1.554 +
   1.555 +# Identity of this package.
   1.556 +PACKAGE_NAME='openjdk'
   1.557 +PACKAGE_TARNAME='openjdk'
   1.558 +PACKAGE_VERSION='version-0.1'
   1.559 +PACKAGE_STRING='openjdk version-0.1'
   1.560 +PACKAGE_BUGREPORT='build-infra-dev@openjdk.java.net'
   1.561 +PACKAGE_URL=''
   1.562 +
   1.563 +# Factoring default headers for most tests.
   1.564 +ac_includes_default="\
   1.565 +#include <stdio.h>
   1.566 +#ifdef HAVE_SYS_TYPES_H
   1.567 +# include <sys/types.h>
   1.568 +#endif
   1.569 +#ifdef HAVE_SYS_STAT_H
   1.570 +# include <sys/stat.h>
   1.571 +#endif
   1.572 +#ifdef STDC_HEADERS
   1.573 +# include <stdlib.h>
   1.574 +# include <stddef.h>
   1.575 +#else
   1.576 +# ifdef HAVE_STDLIB_H
   1.577 +#  include <stdlib.h>
   1.578 +# endif
   1.579 +#endif
   1.580 +#ifdef HAVE_STRING_H
   1.581 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   1.582 +#  include <memory.h>
   1.583 +# endif
   1.584 +# include <string.h>
   1.585 +#endif
   1.586 +#ifdef HAVE_STRINGS_H
   1.587 +# include <strings.h>
   1.588 +#endif
   1.589 +#ifdef HAVE_INTTYPES_H
   1.590 +# include <inttypes.h>
   1.591 +#endif
   1.592 +#ifdef HAVE_STDINT_H
   1.593 +# include <stdint.h>
   1.594 +#endif
   1.595 +#ifdef HAVE_UNISTD_H
   1.596 +# include <unistd.h>
   1.597 +#endif"
   1.598 +
   1.599 +ac_subst_vars='LTLIBOBJS
   1.600 +LIBOBJS
   1.601 +TEST_IN_BUILD
   1.602 +LIBCXX
   1.603 +LDFLAGS_JDKEXE_SUFFIX
   1.604 +LDFLAGS_JDKLIB_SUFFIX
   1.605 +LDFLAGS_JDKEXE
   1.606 +LDFLAGS_JDKLIB
   1.607 +CXXFLAGS_JDKEXE
   1.608 +CXXFLAGS_JDKLIB
   1.609 +CFLAGS_JDKEXE
   1.610 +CFLAGS_JDKLIB
   1.611 +PACKAGE_PATH
   1.612 +IMAGES_MAKE_ARGS
   1.613 +IMAGES_OUTPUTDIR
   1.614 +JDK_MAKE_ARGS
   1.615 +JDK_OUTPUTDIR
   1.616 +HOTSPOT_MAKE_ARGS
   1.617 +HOTSPOT_DIST
   1.618 +HOTSPOT_OUTPUTDIR
   1.619 +JAXWS_MAKE_ARGS
   1.620 +JAXWS_DIST
   1.621 +JAXWS_OUTPUTDIR
   1.622 +JAXP_MAKE_ARGS
   1.623 +JAXP_DIST
   1.624 +JAXP_OUTPUTDIR
   1.625 +CORBA_MAKE_ARGS
   1.626 +CORBA_DIST
   1.627 +CORBA_OUTPUTDIR
   1.628 +LANGTOOLS_MAKE_ARGS
   1.629 +LANGTOOLS_DIST
   1.630 +LANGTOOLS_OUTPUTDIR
   1.631 +CXX_O_FLAG_NONE
   1.632 +CXX_O_FLAG_NORM
   1.633 +CXX_O_FLAG_HI
   1.634 +C_O_FLAG_NONE
   1.635 +C_O_FLAG_NORM
   1.636 +C_O_FLAG_HI
   1.637 +DISABLE_NIMBUS
   1.638 +GENERATE_DOCS
   1.639 +ENABLE_DOCS
   1.640 +LIBM
   1.641 +USE_EXTERNAL_LIBZ
   1.642 +USE_EXTERNAL_LIBGIF
   1.643 +USE_EXTERNAL_LIBJPEG
   1.644 +PULSE_LIBS
   1.645 +PULSE_CFLAGS
   1.646 +LIBPULSE_LIBS
   1.647 +LIBPULSE_CFLAGS
   1.648 +ALSA_LIBS
   1.649 +ALSA_CFLAGS
   1.650 +FREETYPE2_LIB_PATH
   1.651 +USING_SYSTEM_FT_LIB
   1.652 +FREETYPE2_LIBS
   1.653 +FREETYPE2_CFLAGS
   1.654 +CUPS_LIBS
   1.655 +CUPS_CFLAGS
   1.656 +OPENWIN_HOME
   1.657 +X_EXTRA_LIBS
   1.658 +X_LIBS
   1.659 +X_PRE_LIBS
   1.660 +X_CFLAGS
   1.661 +XMKMF
   1.662 +JAVAC_USE_MODE
   1.663 +JAVAC_USE_DEPS
   1.664 +JAVAC_SERVER_CORES
   1.665 +JAVAC_SERVERS
   1.666 +JAVAC_USE_REMOTE
   1.667 +SERVER_JAVA
   1.668 +BOOT_JDK_JVMARGS
   1.669 +OVERRIDE_SRC_ROOT
   1.670 +ADD_SRC_ROOT
   1.671 +RMIC
   1.672 +JAR
   1.673 +JAVAH
   1.674 +JAVAC_FLAGS
   1.675 +JAVAC
   1.676 +BOOT_JDK_SOURCETARGET
   1.677 +JAVA
   1.678 +BOOT_TOOLSJAR
   1.679 +BOOT_RTJAR
   1.680 +BOOT_JDK
   1.681 +JAVA_CHECK
   1.682 +JAVAC_CHECK
   1.683 +ENDIAN
   1.684 +SET_SHARED_LIBRARY_ORIGIN
   1.685 +SET_SHARED_LIBRARY_MAPFILE
   1.686 +SET_SHARED_LIBRARY_NAME
   1.687 +SHARED_LIBRARY_FLAGS
   1.688 +EXE_SUFFIX
   1.689 +STATIC_LIBRARY_SUFFIX
   1.690 +SHARED_LIBRARY_SUFFIX
   1.691 +LIBRARY_PREFIX
   1.692 +STATIC_LIBRARY
   1.693 +SHARED_LIBRARY
   1.694 +OBJ_SUFFIX
   1.695 +USE_PRECOMPILED_HEADER
   1.696 +ARCH_DATA_MODEL
   1.697 +LP64
   1.698 +BUILD_LOG_WRAPPER
   1.699 +BUILD_LOG
   1.700 +CCACHE
   1.701 +UNCYGDRIVE
   1.702 +MCS
   1.703 +STRIP
   1.704 +NM
   1.705 +ASFLAGS
   1.706 +AS
   1.707 +CXXCPP
   1.708 +CPP
   1.709 +COMPILER_TYPE
   1.710 +RC_FLAGS
   1.711 +DUMPBIN
   1.712 +WINAR
   1.713 +RC
   1.714 +MT
   1.715 +WINLD
   1.716 +ARFLAGS
   1.717 +AR
   1.718 +LDEXECXX
   1.719 +LDCXX
   1.720 +LDEXE
   1.721 +LD
   1.722 +ac_ct_OBJC
   1.723 +OBJCFLAGS
   1.724 +OBJC
   1.725 +ac_ct_CXX
   1.726 +CXXFLAGS
   1.727 +CXX
   1.728 +OBJEXT
   1.729 +EXEEXT
   1.730 +ac_ct_CC
   1.731 +CPPFLAGS
   1.732 +LDFLAGS
   1.733 +CFLAGS
   1.734 +CC
   1.735 +HOSTCXX
   1.736 +HOSTCC
   1.737 +HOST_CXX
   1.738 +HOST_CC
   1.739 +DEFINE_CROSS_COMPILE_ARCH
   1.740 +AR_OUT_OPTION
   1.741 +LD_OUT_OPTION
   1.742 +EXE_OUT_OPTION
   1.743 +CC_OUT_OPTION
   1.744 +SYS_ROOT
   1.745 +BDEPS_FTP
   1.746 +BDEPS_UNZIP
   1.747 +PKG_CONFIG
   1.748 +JDK_TOPDIR
   1.749 +HOTSPOT_TOPDIR
   1.750 +JAXWS_TOPDIR
   1.751 +JAXP_TOPDIR
   1.752 +CORBA_TOPDIR
   1.753 +LANGTOOLS_TOPDIR
   1.754 +OUTPUT_ROOT
   1.755 +SPEC
   1.756 +MSVCR100DLL
   1.757 +CHECK_FOR_VCINSTALLDIR
   1.758 +SETUPDEVENV
   1.759 +COOKED_BUILD_NUMBER
   1.760 +FULL_VERSION
   1.761 +RELEASE
   1.762 +JDK_VERSION
   1.763 +RUNTIME_NAME
   1.764 +COPYRIGHT_YEAR
   1.765 +COMPANY_NAME
   1.766 +JDK_RC_PLATFORM_NAME
   1.767 +PRODUCT_SUFFIX
   1.768 +PRODUCT_NAME
   1.769 +LAUNCHER_NAME
   1.770 +MILESTONE
   1.771 +JDK_BUILD_NUMBER
   1.772 +JDK_UPDATE_VERSION
   1.773 +JDK_MICRO_VERSION
   1.774 +JDK_MINOR_VERSION
   1.775 +JDK_MAJOR_VERSION
   1.776 +BUILD_VARIANT_RELEASE
   1.777 +DEBUG_CLASSFILES
   1.778 +FASTDEBUG
   1.779 +VARIANT
   1.780 +DEBUG_LEVEL
   1.781 +JVM_VARIANT_ZEROSHARK
   1.782 +JVM_VARIANT_ZERO
   1.783 +JVM_VARIANT_KERNEL
   1.784 +JVM_VARIANT_CLIENT
   1.785 +JVM_VARIANT_SERVER
   1.786 +JVM_VARIANTS
   1.787 +BUILD_HEADLESS_ONLY
   1.788 +BUILD_HEADLESS
   1.789 +SUPPORT_HEADFUL
   1.790 +SUPPORT_HEADLESS
   1.791 +JDK_VARIANT
   1.792 +MINIMIZE_RAM_USAGE
   1.793 +JAVASE_EMBEDDED
   1.794 +JIGSAW
   1.795 +SET_OPENJDK
   1.796 +PATH_SEP
   1.797 +CYGPATH
   1.798 +SRC_ROOT
   1.799 +MEMORY_SIZE
   1.800 +CONCURRENT_BUILD_JOBS
   1.801 +NUM_CORES
   1.802 +DATE_WHEN_CONFIGURED
   1.803 +LEGACY_BUILD_CPU3
   1.804 +LEGACY_BUILD_CPU2
   1.805 +LEGACY_BUILD_CPU1
   1.806 +BUILD_CPU_ENDIAN
   1.807 +BUILD_CPU_BITS
   1.808 +BUILD_CPU_ARCH
   1.809 +BUILD_CPU
   1.810 +LEGACY_BUILD_OS_API
   1.811 +BUILD_OS_API
   1.812 +BUILD_OS_FAMILY
   1.813 +BUILD_OS
   1.814 +LEGACY_HOST_CPU3
   1.815 +LEGACY_HOST_CPU2
   1.816 +LEGACY_HOST_CPU1
   1.817 +HOST_CPU_ENDIAN
   1.818 +HOST_CPU_BITS
   1.819 +HOST_CPU_ARCH
   1.820 +HOST_CPU
   1.821 +LEGACY_HOST_OS_API
   1.822 +HOST_OS_API
   1.823 +HOST_OS_FAMILY
   1.824 +HOST_OS
   1.825 +BUILD
   1.826 +HOST
   1.827 +host_os
   1.828 +host_vendor
   1.829 +host_cpu
   1.830 +host
   1.831 +build_os
   1.832 +build_vendor
   1.833 +build_cpu
   1.834 +build
   1.835 +FILE
   1.836 +EXPR
   1.837 +READELF
   1.838 +OTOOL
   1.839 +LDD
   1.840 +UNZIP
   1.841 +ZIP
   1.842 +XARGS
   1.843 +WC
   1.844 +TOUCH
   1.845 +TR
   1.846 +TEE
   1.847 +TAIL
   1.848 +TAR
   1.849 +SORT
   1.850 +SH
   1.851 +SED
   1.852 +RM
   1.853 +THEPWDCMD
   1.854 +PRINTF
   1.855 +NAWK
   1.856 +MV
   1.857 +MKDIR
   1.858 +MAKE
   1.859 +LS
   1.860 +LN
   1.861 +HEAD
   1.862 +FIND_DELETE
   1.863 +FIND
   1.864 +FGREP
   1.865 +EGREP
   1.866 +GREP
   1.867 +ECHO
   1.868 +DIFF
   1.869 +DF
   1.870 +DATE
   1.871 +CUT
   1.872 +CPIO
   1.873 +CP
   1.874 +CHMOD
   1.875 +CAT
   1.876 +AWK
   1.877 +READLINK
   1.878 +CONFIGURE_COMMAND_LINE
   1.879 +PKGHANDLER
   1.880 +target_alias
   1.881 +host_alias
   1.882 +build_alias
   1.883 +LIBS
   1.884 +ECHO_T
   1.885 +ECHO_N
   1.886 +ECHO_C
   1.887 +DEFS
   1.888 +mandir
   1.889 +localedir
   1.890 +libdir
   1.891 +psdir
   1.892 +pdfdir
   1.893 +dvidir
   1.894 +htmldir
   1.895 +infodir
   1.896 +docdir
   1.897 +oldincludedir
   1.898 +includedir
   1.899 +localstatedir
   1.900 +sharedstatedir
   1.901 +sysconfdir
   1.902 +datadir
   1.903 +datarootdir
   1.904 +libexecdir
   1.905 +sbindir
   1.906 +bindir
   1.907 +program_transform_name
   1.908 +prefix
   1.909 +exec_prefix
   1.910 +PACKAGE_URL
   1.911 +PACKAGE_BUGREPORT
   1.912 +PACKAGE_STRING
   1.913 +PACKAGE_VERSION
   1.914 +PACKAGE_TARNAME
   1.915 +PACKAGE_NAME
   1.916 +PATH_SEPARATOR
   1.917 +SHELL'
   1.918 +ac_subst_files=''
   1.919 +ac_user_opts='
   1.920 +enable_option_checking
   1.921 +with_data_model
   1.922 +with_num_cores
   1.923 +with_memory_size
   1.924 +enable_openjdk
   1.925 +enable_jigsaw
   1.926 +with_jdk_variant
   1.927 +enable_headful
   1.928 +with_jvm_variants
   1.929 +enable_debug
   1.930 +with_debug_level
   1.931 +with_msvcr100dll
   1.932 +with_builddeps_conf
   1.933 +with_builddeps_server
   1.934 +with_builddeps_dir
   1.935 +with_builddeps_group
   1.936 +enable_list_builddeps
   1.937 +with_sys_root
   1.938 +enable_ccache
   1.939 +with_ccache_dir
   1.940 +enable_precompiled_headers
   1.941 +with_boot_jdk
   1.942 +with_add_source_root
   1.943 +with_override_source_root
   1.944 +with_adds_and_overrides
   1.945 +with_override_langtools
   1.946 +with_override_corba
   1.947 +with_override_jaxp
   1.948 +with_override_jaxws
   1.949 +with_override_hotspot
   1.950 +with_override_jdk
   1.951 +with_boot_jdk_jvmargs
   1.952 +with_server_java
   1.953 +enable_javac_server
   1.954 +with_javac_server_cores
   1.955 +enable_javac_deps
   1.956 +enable_javac_multi_core
   1.957 +enable_macosx_runtime_support
   1.958 +with_x
   1.959 +with_cups
   1.960 +with_cups_include
   1.961 +with_cups_lib
   1.962 +with_freetype
   1.963 +with_alsa
   1.964 +with_alsa_include
   1.965 +with_alsa_lib
   1.966 +with_pulse
   1.967 +with_pulse_include
   1.968 +with_pulse_lib
   1.969 +enable_docs
   1.970 +enable_nimbus
   1.971 +enable_static_link_stdc__
   1.972 +enable_hotspot_test_in_build
   1.973 +'
   1.974 +      ac_precious_vars='build_alias
   1.975 +host_alias
   1.976 +target_alias
   1.977 +PKG_CONFIG
   1.978 +CC
   1.979 +CFLAGS
   1.980 +LDFLAGS
   1.981 +LIBS
   1.982 +CPPFLAGS
   1.983 +CXX
   1.984 +CXXFLAGS
   1.985 +CCC
   1.986 +OBJC
   1.987 +OBJCFLAGS
   1.988 +CPP
   1.989 +CXXCPP
   1.990 +XMKMF
   1.991 +FREETYPE2_CFLAGS
   1.992 +FREETYPE2_LIBS
   1.993 +ALSA_CFLAGS
   1.994 +ALSA_LIBS
   1.995 +LIBPULSE_CFLAGS
   1.996 +LIBPULSE_LIBS'
   1.997 +
   1.998 +
   1.999 +# Initialize some variables set by options.
  1.1000 +ac_init_help=
  1.1001 +ac_init_version=false
  1.1002 +ac_unrecognized_opts=
  1.1003 +ac_unrecognized_sep=
  1.1004 +# The variables have the same names as the options, with
  1.1005 +# dashes changed to underlines.
  1.1006 +cache_file=/dev/null
  1.1007 +exec_prefix=NONE
  1.1008 +no_create=
  1.1009 +no_recursion=
  1.1010 +prefix=NONE
  1.1011 +program_prefix=NONE
  1.1012 +program_suffix=NONE
  1.1013 +program_transform_name=s,x,x,
  1.1014 +silent=
  1.1015 +site=
  1.1016 +srcdir=
  1.1017 +verbose=
  1.1018 +x_includes=NONE
  1.1019 +x_libraries=NONE
  1.1020 +
  1.1021 +# Installation directory options.
  1.1022 +# These are left unexpanded so users can "make install exec_prefix=/foo"
  1.1023 +# and all the variables that are supposed to be based on exec_prefix
  1.1024 +# by default will actually change.
  1.1025 +# Use braces instead of parens because sh, perl, etc. also accept them.
  1.1026 +# (The list follows the same order as the GNU Coding Standards.)
  1.1027 +bindir='${exec_prefix}/bin'
  1.1028 +sbindir='${exec_prefix}/sbin'
  1.1029 +libexecdir='${exec_prefix}/libexec'
  1.1030 +datarootdir='${prefix}/share'
  1.1031 +datadir='${datarootdir}'
  1.1032 +sysconfdir='${prefix}/etc'
  1.1033 +sharedstatedir='${prefix}/com'
  1.1034 +localstatedir='${prefix}/var'
  1.1035 +includedir='${prefix}/include'
  1.1036 +oldincludedir='/usr/include'
  1.1037 +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1.1038 +infodir='${datarootdir}/info'
  1.1039 +htmldir='${docdir}'
  1.1040 +dvidir='${docdir}'
  1.1041 +pdfdir='${docdir}'
  1.1042 +psdir='${docdir}'
  1.1043 +libdir='${exec_prefix}/lib'
  1.1044 +localedir='${datarootdir}/locale'
  1.1045 +mandir='${datarootdir}/man'
  1.1046 +
  1.1047 +ac_prev=
  1.1048 +ac_dashdash=
  1.1049 +for ac_option
  1.1050 +do
  1.1051 +  # If the previous option needs an argument, assign it.
  1.1052 +  if test -n "$ac_prev"; then
  1.1053 +    eval $ac_prev=\$ac_option
  1.1054 +    ac_prev=
  1.1055 +    continue
  1.1056 +  fi
  1.1057 +
  1.1058 +  case $ac_option in
  1.1059 +  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1.1060 +  *=)   ac_optarg= ;;
  1.1061 +  *)    ac_optarg=yes ;;
  1.1062 +  esac
  1.1063 +
  1.1064 +  # Accept the important Cygnus configure options, so we can diagnose typos.
  1.1065 +
  1.1066 +  case $ac_dashdash$ac_option in
  1.1067 +  --)
  1.1068 +    ac_dashdash=yes ;;
  1.1069 +
  1.1070 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1.1071 +    ac_prev=bindir ;;
  1.1072 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1.1073 +    bindir=$ac_optarg ;;
  1.1074 +
  1.1075 +  -build | --build | --buil | --bui | --bu)
  1.1076 +    ac_prev=build_alias ;;
  1.1077 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1.1078 +    build_alias=$ac_optarg ;;
  1.1079 +
  1.1080 +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  1.1081 +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1.1082 +    ac_prev=cache_file ;;
  1.1083 +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1.1084 +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1.1085 +    cache_file=$ac_optarg ;;
  1.1086 +
  1.1087 +  --config-cache | -C)
  1.1088 +    cache_file=config.cache ;;
  1.1089 +
  1.1090 +  -datadir | --datadir | --datadi | --datad)
  1.1091 +    ac_prev=datadir ;;
  1.1092 +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1.1093 +    datadir=$ac_optarg ;;
  1.1094 +
  1.1095 +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1.1096 +  | --dataroo | --dataro | --datar)
  1.1097 +    ac_prev=datarootdir ;;
  1.1098 +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1.1099 +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1.1100 +    datarootdir=$ac_optarg ;;
  1.1101 +
  1.1102 +  -disable-* | --disable-*)
  1.1103 +    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1.1104 +    # Reject names that are not valid shell variable names.
  1.1105 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1.1106 +      as_fn_error $? "invalid feature name: $ac_useropt"
  1.1107 +    ac_useropt_orig=$ac_useropt
  1.1108 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1.1109 +    case $ac_user_opts in
  1.1110 +      *"
  1.1111 +"enable_$ac_useropt"
  1.1112 +"*) ;;
  1.1113 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1.1114 +	 ac_unrecognized_sep=', ';;
  1.1115 +    esac
  1.1116 +    eval enable_$ac_useropt=no ;;
  1.1117 +
  1.1118 +  -docdir | --docdir | --docdi | --doc | --do)
  1.1119 +    ac_prev=docdir ;;
  1.1120 +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1.1121 +    docdir=$ac_optarg ;;
  1.1122 +
  1.1123 +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1.1124 +    ac_prev=dvidir ;;
  1.1125 +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1.1126 +    dvidir=$ac_optarg ;;
  1.1127 +
  1.1128 +  -enable-* | --enable-*)
  1.1129 +    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1.1130 +    # Reject names that are not valid shell variable names.
  1.1131 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1.1132 +      as_fn_error $? "invalid feature name: $ac_useropt"
  1.1133 +    ac_useropt_orig=$ac_useropt
  1.1134 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1.1135 +    case $ac_user_opts in
  1.1136 +      *"
  1.1137 +"enable_$ac_useropt"
  1.1138 +"*) ;;
  1.1139 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1.1140 +	 ac_unrecognized_sep=', ';;
  1.1141 +    esac
  1.1142 +    eval enable_$ac_useropt=\$ac_optarg ;;
  1.1143 +
  1.1144 +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1.1145 +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1.1146 +  | --exec | --exe | --ex)
  1.1147 +    ac_prev=exec_prefix ;;
  1.1148 +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1.1149 +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1.1150 +  | --exec=* | --exe=* | --ex=*)
  1.1151 +    exec_prefix=$ac_optarg ;;
  1.1152 +
  1.1153 +  -gas | --gas | --ga | --g)
  1.1154 +    # Obsolete; use --with-gas.
  1.1155 +    with_gas=yes ;;
  1.1156 +
  1.1157 +  -help | --help | --hel | --he | -h)
  1.1158 +    ac_init_help=long ;;
  1.1159 +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1.1160 +    ac_init_help=recursive ;;
  1.1161 +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1.1162 +    ac_init_help=short ;;
  1.1163 +
  1.1164 +  -host | --host | --hos | --ho)
  1.1165 +    ac_prev=host_alias ;;
  1.1166 +  -host=* | --host=* | --hos=* | --ho=*)
  1.1167 +    host_alias=$ac_optarg ;;
  1.1168 +
  1.1169 +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1.1170 +    ac_prev=htmldir ;;
  1.1171 +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1.1172 +  | --ht=*)
  1.1173 +    htmldir=$ac_optarg ;;
  1.1174 +
  1.1175 +  -includedir | --includedir | --includedi | --included | --include \
  1.1176 +  | --includ | --inclu | --incl | --inc)
  1.1177 +    ac_prev=includedir ;;
  1.1178 +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1.1179 +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  1.1180 +    includedir=$ac_optarg ;;
  1.1181 +
  1.1182 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  1.1183 +    ac_prev=infodir ;;
  1.1184 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1.1185 +    infodir=$ac_optarg ;;
  1.1186 +
  1.1187 +  -libdir | --libdir | --libdi | --libd)
  1.1188 +    ac_prev=libdir ;;
  1.1189 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1.1190 +    libdir=$ac_optarg ;;
  1.1191 +
  1.1192 +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1.1193 +  | --libexe | --libex | --libe)
  1.1194 +    ac_prev=libexecdir ;;
  1.1195 +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1.1196 +  | --libexe=* | --libex=* | --libe=*)
  1.1197 +    libexecdir=$ac_optarg ;;
  1.1198 +
  1.1199 +  -localedir | --localedir | --localedi | --localed | --locale)
  1.1200 +    ac_prev=localedir ;;
  1.1201 +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1.1202 +    localedir=$ac_optarg ;;
  1.1203 +
  1.1204 +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  1.1205 +  | --localstate | --localstat | --localsta | --localst | --locals)
  1.1206 +    ac_prev=localstatedir ;;
  1.1207 +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1.1208 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1.1209 +    localstatedir=$ac_optarg ;;
  1.1210 +
  1.1211 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1.1212 +    ac_prev=mandir ;;
  1.1213 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1.1214 +    mandir=$ac_optarg ;;
  1.1215 +
  1.1216 +  -nfp | --nfp | --nf)
  1.1217 +    # Obsolete; use --without-fp.
  1.1218 +    with_fp=no ;;
  1.1219 +
  1.1220 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1.1221 +  | --no-cr | --no-c | -n)
  1.1222 +    no_create=yes ;;
  1.1223 +
  1.1224 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1.1225 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1.1226 +    no_recursion=yes ;;
  1.1227 +
  1.1228 +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1.1229 +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1.1230 +  | --oldin | --oldi | --old | --ol | --o)
  1.1231 +    ac_prev=oldincludedir ;;
  1.1232 +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1.1233 +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1.1234 +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1.1235 +    oldincludedir=$ac_optarg ;;
  1.1236 +
  1.1237 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1.1238 +    ac_prev=prefix ;;
  1.1239 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1.1240 +    prefix=$ac_optarg ;;
  1.1241 +
  1.1242 +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1.1243 +  | --program-pre | --program-pr | --program-p)
  1.1244 +    ac_prev=program_prefix ;;
  1.1245 +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1.1246 +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1.1247 +    program_prefix=$ac_optarg ;;
  1.1248 +
  1.1249 +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1.1250 +  | --program-suf | --program-su | --program-s)
  1.1251 +    ac_prev=program_suffix ;;
  1.1252 +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1.1253 +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1.1254 +    program_suffix=$ac_optarg ;;
  1.1255 +
  1.1256 +  -program-transform-name | --program-transform-name \
  1.1257 +  | --program-transform-nam | --program-transform-na \
  1.1258 +  | --program-transform-n | --program-transform- \
  1.1259 +  | --program-transform | --program-transfor \
  1.1260 +  | --program-transfo | --program-transf \
  1.1261 +  | --program-trans | --program-tran \
  1.1262 +  | --progr-tra | --program-tr | --program-t)
  1.1263 +    ac_prev=program_transform_name ;;
  1.1264 +  -program-transform-name=* | --program-transform-name=* \
  1.1265 +  | --program-transform-nam=* | --program-transform-na=* \
  1.1266 +  | --program-transform-n=* | --program-transform-=* \
  1.1267 +  | --program-transform=* | --program-transfor=* \
  1.1268 +  | --program-transfo=* | --program-transf=* \
  1.1269 +  | --program-trans=* | --program-tran=* \
  1.1270 +  | --progr-tra=* | --program-tr=* | --program-t=*)
  1.1271 +    program_transform_name=$ac_optarg ;;
  1.1272 +
  1.1273 +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1.1274 +    ac_prev=pdfdir ;;
  1.1275 +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1.1276 +    pdfdir=$ac_optarg ;;
  1.1277 +
  1.1278 +  -psdir | --psdir | --psdi | --psd | --ps)
  1.1279 +    ac_prev=psdir ;;
  1.1280 +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1.1281 +    psdir=$ac_optarg ;;
  1.1282 +
  1.1283 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1.1284 +  | -silent | --silent | --silen | --sile | --sil)
  1.1285 +    silent=yes ;;
  1.1286 +
  1.1287 +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1.1288 +    ac_prev=sbindir ;;
  1.1289 +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1.1290 +  | --sbi=* | --sb=*)
  1.1291 +    sbindir=$ac_optarg ;;
  1.1292 +
  1.1293 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1.1294 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1.1295 +  | --sharedst | --shareds | --shared | --share | --shar \
  1.1296 +  | --sha | --sh)
  1.1297 +    ac_prev=sharedstatedir ;;
  1.1298 +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1.1299 +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1.1300 +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1.1301 +  | --sha=* | --sh=*)
  1.1302 +    sharedstatedir=$ac_optarg ;;
  1.1303 +
  1.1304 +  -site | --site | --sit)
  1.1305 +    ac_prev=site ;;
  1.1306 +  -site=* | --site=* | --sit=*)
  1.1307 +    site=$ac_optarg ;;
  1.1308 +
  1.1309 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1.1310 +    ac_prev=srcdir ;;
  1.1311 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1.1312 +    srcdir=$ac_optarg ;;
  1.1313 +
  1.1314 +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1.1315 +  | --syscon | --sysco | --sysc | --sys | --sy)
  1.1316 +    ac_prev=sysconfdir ;;
  1.1317 +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1.1318 +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1.1319 +    sysconfdir=$ac_optarg ;;
  1.1320 +
  1.1321 +  -target | --target | --targe | --targ | --tar | --ta | --t)
  1.1322 +    ac_prev=target_alias ;;
  1.1323 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1.1324 +    target_alias=$ac_optarg ;;
  1.1325 +
  1.1326 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1.1327 +    verbose=yes ;;
  1.1328 +
  1.1329 +  -version | --version | --versio | --versi | --vers | -V)
  1.1330 +    ac_init_version=: ;;
  1.1331 +
  1.1332 +  -with-* | --with-*)
  1.1333 +    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1.1334 +    # Reject names that are not valid shell variable names.
  1.1335 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1.1336 +      as_fn_error $? "invalid package name: $ac_useropt"
  1.1337 +    ac_useropt_orig=$ac_useropt
  1.1338 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1.1339 +    case $ac_user_opts in
  1.1340 +      *"
  1.1341 +"with_$ac_useropt"
  1.1342 +"*) ;;
  1.1343 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1.1344 +	 ac_unrecognized_sep=', ';;
  1.1345 +    esac
  1.1346 +    eval with_$ac_useropt=\$ac_optarg ;;
  1.1347 +
  1.1348 +  -without-* | --without-*)
  1.1349 +    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1.1350 +    # Reject names that are not valid shell variable names.
  1.1351 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1.1352 +      as_fn_error $? "invalid package name: $ac_useropt"
  1.1353 +    ac_useropt_orig=$ac_useropt
  1.1354 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1.1355 +    case $ac_user_opts in
  1.1356 +      *"
  1.1357 +"with_$ac_useropt"
  1.1358 +"*) ;;
  1.1359 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1.1360 +	 ac_unrecognized_sep=', ';;
  1.1361 +    esac
  1.1362 +    eval with_$ac_useropt=no ;;
  1.1363 +
  1.1364 +  --x)
  1.1365 +    # Obsolete; use --with-x.
  1.1366 +    with_x=yes ;;
  1.1367 +
  1.1368 +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1.1369 +  | --x-incl | --x-inc | --x-in | --x-i)
  1.1370 +    ac_prev=x_includes ;;
  1.1371 +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1.1372 +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1.1373 +    x_includes=$ac_optarg ;;
  1.1374 +
  1.1375 +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1.1376 +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1.1377 +    ac_prev=x_libraries ;;
  1.1378 +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1.1379 +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1.1380 +    x_libraries=$ac_optarg ;;
  1.1381 +
  1.1382 +  -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1.1383 +Try \`$0 --help' for more information"
  1.1384 +    ;;
  1.1385 +
  1.1386 +  *=*)
  1.1387 +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1.1388 +    # Reject names that are not valid shell variable names.
  1.1389 +    case $ac_envvar in #(
  1.1390 +      '' | [0-9]* | *[!_$as_cr_alnum]* )
  1.1391 +      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1.1392 +    esac
  1.1393 +    eval $ac_envvar=\$ac_optarg
  1.1394 +    export $ac_envvar ;;
  1.1395 +
  1.1396 +  *)
  1.1397 +    # FIXME: should be removed in autoconf 3.0.
  1.1398 +    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1.1399 +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1.1400 +      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1.1401 +    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1.1402 +    ;;
  1.1403 +
  1.1404 +  esac
  1.1405 +done
  1.1406 +
  1.1407 +if test -n "$ac_prev"; then
  1.1408 +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1.1409 +  as_fn_error $? "missing argument to $ac_option"
  1.1410 +fi
  1.1411 +
  1.1412 +if test -n "$ac_unrecognized_opts"; then
  1.1413 +  case $enable_option_checking in
  1.1414 +    no) ;;
  1.1415 +    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1.1416 +    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1.1417 +  esac
  1.1418 +fi
  1.1419 +
  1.1420 +# Check all directory arguments for consistency.
  1.1421 +for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1.1422 +		datadir sysconfdir sharedstatedir localstatedir includedir \
  1.1423 +		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1.1424 +		libdir localedir mandir
  1.1425 +do
  1.1426 +  eval ac_val=\$$ac_var
  1.1427 +  # Remove trailing slashes.
  1.1428 +  case $ac_val in
  1.1429 +    */ )
  1.1430 +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1.1431 +      eval $ac_var=\$ac_val;;
  1.1432 +  esac
  1.1433 +  # Be sure to have absolute directory names.
  1.1434 +  case $ac_val in
  1.1435 +    [\\/$]* | ?:[\\/]* )  continue;;
  1.1436 +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1.1437 +  esac
  1.1438 +  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1.1439 +done
  1.1440 +
  1.1441 +# There might be people who depend on the old broken behavior: `$host'
  1.1442 +# used to hold the argument of --host etc.
  1.1443 +# FIXME: To remove some day.
  1.1444 +build=$build_alias
  1.1445 +host=$host_alias
  1.1446 +target=$target_alias
  1.1447 +
  1.1448 +# FIXME: To remove some day.
  1.1449 +if test "x$host_alias" != x; then
  1.1450 +  if test "x$build_alias" = x; then
  1.1451 +    cross_compiling=maybe
  1.1452 +    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1.1453 +    If a cross compiler is detected then cross compile mode will be used" >&2
  1.1454 +  elif test "x$build_alias" != "x$host_alias"; then
  1.1455 +    cross_compiling=yes
  1.1456 +  fi
  1.1457 +fi
  1.1458 +
  1.1459 +ac_tool_prefix=
  1.1460 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1.1461 +
  1.1462 +test "$silent" = yes && exec 6>/dev/null
  1.1463 +
  1.1464 +
  1.1465 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1.1466 +ac_ls_di=`ls -di .` &&
  1.1467 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1.1468 +  as_fn_error $? "working directory cannot be determined"
  1.1469 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1.1470 +  as_fn_error $? "pwd does not report name of working directory"
  1.1471 +
  1.1472 +
  1.1473 +# Find the source files, if location was not specified.
  1.1474 +if test -z "$srcdir"; then
  1.1475 +  ac_srcdir_defaulted=yes
  1.1476 +  # Try the directory containing this script, then the parent directory.
  1.1477 +  ac_confdir=`$as_dirname -- "$as_myself" ||
  1.1478 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1.1479 +	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1.1480 +	 X"$as_myself" : 'X\(//\)$' \| \
  1.1481 +	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1.1482 +$as_echo X"$as_myself" |
  1.1483 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1.1484 +	    s//\1/
  1.1485 +	    q
  1.1486 +	  }
  1.1487 +	  /^X\(\/\/\)[^/].*/{
  1.1488 +	    s//\1/
  1.1489 +	    q
  1.1490 +	  }
  1.1491 +	  /^X\(\/\/\)$/{
  1.1492 +	    s//\1/
  1.1493 +	    q
  1.1494 +	  }
  1.1495 +	  /^X\(\/\).*/{
  1.1496 +	    s//\1/
  1.1497 +	    q
  1.1498 +	  }
  1.1499 +	  s/.*/./; q'`
  1.1500 +  srcdir=$ac_confdir
  1.1501 +  if test ! -r "$srcdir/$ac_unique_file"; then
  1.1502 +    srcdir=..
  1.1503 +  fi
  1.1504 +else
  1.1505 +  ac_srcdir_defaulted=no
  1.1506 +fi
  1.1507 +if test ! -r "$srcdir/$ac_unique_file"; then
  1.1508 +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1.1509 +  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1.1510 +fi
  1.1511 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1.1512 +ac_abs_confdir=`(
  1.1513 +	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1.1514 +	pwd)`
  1.1515 +# When building in place, set srcdir=.
  1.1516 +if test "$ac_abs_confdir" = "$ac_pwd"; then
  1.1517 +  srcdir=.
  1.1518 +fi
  1.1519 +# Remove unnecessary trailing slashes from srcdir.
  1.1520 +# Double slashes in file names in object file debugging info
  1.1521 +# mess up M-x gdb in Emacs.
  1.1522 +case $srcdir in
  1.1523 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1.1524 +esac
  1.1525 +for ac_var in $ac_precious_vars; do
  1.1526 +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1.1527 +  eval ac_env_${ac_var}_value=\$${ac_var}
  1.1528 +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1.1529 +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1.1530 +done
  1.1531 +
  1.1532 +#
  1.1533 +# Report the --help message.
  1.1534 +#
  1.1535 +if test "$ac_init_help" = "long"; then
  1.1536 +  # Omit some internal or obsolete options to make the list less imposing.
  1.1537 +  # This message is too long to be a string in the A/UX 3.1 sh.
  1.1538 +  cat <<_ACEOF
  1.1539 +\`configure' configures openjdk version-0.1 to adapt to many kinds of systems.
  1.1540 +
  1.1541 +Usage: $0 [OPTION]... [VAR=VALUE]...
  1.1542 +
  1.1543 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1.1544 +VAR=VALUE.  See below for descriptions of some of the useful variables.
  1.1545 +
  1.1546 +Defaults for the options are specified in brackets.
  1.1547 +
  1.1548 +Configuration:
  1.1549 +  -h, --help              display this help and exit
  1.1550 +      --help=short        display options specific to this package
  1.1551 +      --help=recursive    display the short help of all the included packages
  1.1552 +  -V, --version           display version information and exit
  1.1553 +  -q, --quiet, --silent   do not print \`checking ...' messages
  1.1554 +      --cache-file=FILE   cache test results in FILE [disabled]
  1.1555 +  -C, --config-cache      alias for \`--cache-file=config.cache'
  1.1556 +  -n, --no-create         do not create output files
  1.1557 +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1.1558 +
  1.1559 +Installation directories:
  1.1560 +  --prefix=PREFIX         install architecture-independent files in PREFIX
  1.1561 +                          [$ac_default_prefix]
  1.1562 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1.1563 +                          [PREFIX]
  1.1564 +
  1.1565 +By default, \`make install' will install all the files in
  1.1566 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1.1567 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1.1568 +for instance \`--prefix=\$HOME'.
  1.1569 +
  1.1570 +For better control, use the options below.
  1.1571 +
  1.1572 +Fine tuning of the installation directories:
  1.1573 +  --bindir=DIR            user executables [EPREFIX/bin]
  1.1574 +  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1.1575 +  --libexecdir=DIR        program executables [EPREFIX/libexec]
  1.1576 +  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1.1577 +  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1.1578 +  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1.1579 +  --libdir=DIR            object code libraries [EPREFIX/lib]
  1.1580 +  --includedir=DIR        C header files [PREFIX/include]
  1.1581 +  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1.1582 +  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1.1583 +  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1.1584 +  --infodir=DIR           info documentation [DATAROOTDIR/info]
  1.1585 +  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1.1586 +  --mandir=DIR            man documentation [DATAROOTDIR/man]
  1.1587 +  --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
  1.1588 +  --htmldir=DIR           html documentation [DOCDIR]
  1.1589 +  --dvidir=DIR            dvi documentation [DOCDIR]
  1.1590 +  --pdfdir=DIR            pdf documentation [DOCDIR]
  1.1591 +  --psdir=DIR             ps documentation [DOCDIR]
  1.1592 +_ACEOF
  1.1593 +
  1.1594 +  cat <<\_ACEOF
  1.1595 +
  1.1596 +X features:
  1.1597 +  --x-includes=DIR    X include files are in DIR
  1.1598 +  --x-libraries=DIR   X library files are in DIR
  1.1599 +
  1.1600 +System types:
  1.1601 +  --build=BUILD     configure for building on BUILD [guessed]
  1.1602 +  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1.1603 +_ACEOF
  1.1604 +fi
  1.1605 +
  1.1606 +if test -n "$ac_init_help"; then
  1.1607 +  case $ac_init_help in
  1.1608 +     short | recursive ) echo "Configuration of openjdk version-0.1:";;
  1.1609 +   esac
  1.1610 +  cat <<\_ACEOF
  1.1611 +
  1.1612 +Optional Features:
  1.1613 +  --disable-option-checking  ignore unrecognized --enable/--with options
  1.1614 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1.1615 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1.1616 +  --enable-openjdk        build OpenJDK regardless of the presence of closed
  1.1617 +                          repositories [disabled]
  1.1618 +  --enable-jigsaw         build Jigsaw images (not yet available) [disabled]
  1.1619 +  --disable-headful       build headful support (graphical UI support)
  1.1620 +                          [enabled]
  1.1621 +  --enable-debug          set the debug level to fastdebug (shorthand for
  1.1622 +                          --with-debug-level=fastdebug) [disabled]
  1.1623 +  --enable-list-builddeps list all build dependencies known to the configure
  1.1624 +                          script
  1.1625 +  --disable-ccache        use ccache to speed up recompilations [enabled]
  1.1626 +  --disable-precompiled-headers
  1.1627 +                          use precompiled headers when compiling C++ [enabled]
  1.1628 +  --enable-javac-server   enable the shared javac server during the build
  1.1629 +                          process [disabled]
  1.1630 +  --enable-javac-deps     enable the dependency tracking between Java packages
  1.1631 +                          [disabled]
  1.1632 +  --enable-javac-multi-core
  1.1633 +                          compile Java packages concurrently [disabled]
  1.1634 +  --disable-macosx-runtime-support
  1.1635 +                          disable the use of MacOSX Java runtime support
  1.1636 +                          framework [enabled]
  1.1637 +  --enable-docs           enable generation of Javadoc documentation
  1.1638 +                          [disabled]
  1.1639 +  --disable-nimbus        disable Nimbus L&F [enabled]
  1.1640 +  --disable-static-link-stdc++
  1.1641 +                          disable static linking of the C++ runtime on Linux
  1.1642 +                          [enabled]
  1.1643 +  --enable-hotspot-test-in-build
  1.1644 +                          enable running of Queens test after Hotspot build
  1.1645 +                          (not yet available) [disabled]
  1.1646 +
  1.1647 +Optional Packages:
  1.1648 +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1.1649 +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1.1650 +  --with-data-model       build 32-bit or 64-bit binaries (for platforms that
  1.1651 +                          support it), e.g. --with-data-model=32 [guessed]
  1.1652 +  --with-num-cores        number of cores in the build system, e.g.
  1.1653 +                          --with-num-cores=8 [probed]
  1.1654 +  --with-memory-size      memory (in MB) available in the build system, e.g.
  1.1655 +                          --with-memory-size=1024 [probed]
  1.1656 +  --with-jdk-variant      JDK variant to build (normal, embedded) [normal]
  1.1657 +  --with-jvm-variants     JVM variants (separated by commas) to build (server,
  1.1658 +                          client, kernel, zero, zeroshark) [server]
  1.1659 +  --with-debug-level      set the debug level (release, fastdebug, slowdebug)
  1.1660 +                          [release]
  1.1661 +  --with-msvcr100dll      copy this msvcr100.dll into the built JDK
  1.1662 +  --with-builddeps-conf   use this configuration file for the builddeps
  1.1663 +  --with-builddeps-server download and use build dependencies from this server
  1.1664 +                          url, e.g.
  1.1665 +                          --with-builddeps-server=ftp://example.com/dir
  1.1666 +  --with-builddeps-dir    store downloaded build dependencies here
  1.1667 +                          [d/localhome/builddeps]
  1.1668 +  --with-builddeps-group  chgrp the downloaded build dependencies to this
  1.1669 +                          group
  1.1670 +  --with-sys-root         pass this sys-root to the compilers and linker
  1.1671 +                          (useful if the sys-root encoded in the cross
  1.1672 +                          compiler tools is incorrect)
  1.1673 +  --with-ccache-dir       where to store ccache files [~/.ccache]
  1.1674 +  --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
  1.1675 +  --with-add-source-root  for each and every source directory, look in this
  1.1676 +                          additional source root for the same directory; if it
  1.1677 +                          exists and have files in it, include it in the build
  1.1678 +  --with-override-source-root
  1.1679 +                          for each and every source directory, look in this
  1.1680 +                          override source root for the same directory; if it
  1.1681 +                          exists, use that directory instead and ignore the
  1.1682 +                          directory in the original source root
  1.1683 +  --with-adds-and-overrides
  1.1684 +                          use the subdirs 'adds' and 'overrides' in the
  1.1685 +                          specified directory as add-source-root and
  1.1686 +                          override-source-root
  1.1687 +  --with-override-langtools
  1.1688 +                          use this langtools dir for the build
  1.1689 +  --with-override-corba   use this corba dir for the build
  1.1690 +  --with-override-jaxp    use this jaxp dir for the build
  1.1691 +  --with-override-jaxws   use this jaxws dir for the build
  1.1692 +  --with-override-hotspot use this hotspot dir for the build
  1.1693 +  --with-override-jdk     use this jdk dir for the build
  1.1694 +  --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
  1.1695 +                          invocations of the Boot JDK, overriding the default
  1.1696 +                          values, e.g --with-boot-jdk-jvmargs="-Xmx8G
  1.1697 +                          -enableassertions"
  1.1698 +  --with-server-java      use this java binary for running the javac
  1.1699 +                          background server and other long running java tasks
  1.1700 +                          in the build process, e.g.
  1.1701 +                          ---with-server-java="/opt/jrockit/bin/java -server"
  1.1702 +  --with-javac-server-cores
  1.1703 +                          use at most this number of concurrent threads on the
  1.1704 +                          javac server [probed]
  1.1705 +  --with-x                use the X Window System
  1.1706 +  --with-cups             specify prefix directory for the cups package
  1.1707 +                          (expecting the libraries under PATH/lib and the
  1.1708 +                          headers under PATH/include)
  1.1709 +  --with-cups-include     specify directory for the cups include files
  1.1710 +  --with-cups-lib         specify directory for the cups library
  1.1711 +  --with-freetype         specify prefix directory for the freetype2 package
  1.1712 +                          (expecting the libraries under PATH/lib and the
  1.1713 +                          headers under PATH/include)
  1.1714 +  --with-alsa             specify prefix directory for the alsa package
  1.1715 +                          (expecting the libraries under PATH/lib and the
  1.1716 +                          headers under PATH/include)
  1.1717 +  --with-alsa-include     specify directory for the alsa include files
  1.1718 +  --with-alsa-lib         specify directory for the alsa library
  1.1719 +  --with-pulse            specify prefix directory for the pulseaudio package
  1.1720 +                          (expecting the libraries under PATH/lib and the
  1.1721 +                          headers under PATH/include)
  1.1722 +  --with-pulse-include    specify directory for the pulseaudio include files
  1.1723 +  --with-pulse-lib        specify directory for the pulseaudio library
  1.1724 +
  1.1725 +Some influential environment variables:
  1.1726 +  PKG_CONFIG  path to pkg-config utility
  1.1727 +  CC          C compiler command
  1.1728 +  CFLAGS      C compiler flags
  1.1729 +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1.1730 +              nonstandard directory <lib dir>
  1.1731 +  LIBS        libraries to pass to the linker, e.g. -l<library>
  1.1732 +  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1.1733 +              you have headers in a nonstandard directory <include dir>
  1.1734 +  CXX         C++ compiler command
  1.1735 +  CXXFLAGS    C++ compiler flags
  1.1736 +  OBJC        Objective C compiler command
  1.1737 +  OBJCFLAGS   Objective C compiler flags
  1.1738 +  CPP         C preprocessor
  1.1739 +  CXXCPP      C++ preprocessor
  1.1740 +  XMKMF       Path to xmkmf, Makefile generator for X Window System
  1.1741 +  FREETYPE2_CFLAGS
  1.1742 +              C compiler flags for FREETYPE2, overriding pkg-config
  1.1743 +  FREETYPE2_LIBS
  1.1744 +              linker flags for FREETYPE2, overriding pkg-config
  1.1745 +  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1.1746 +  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1.1747 +  LIBPULSE_CFLAGS
  1.1748 +              C compiler flags for LIBPULSE, overriding pkg-config
  1.1749 +  LIBPULSE_LIBS
  1.1750 +              linker flags for LIBPULSE, overriding pkg-config
  1.1751 +
  1.1752 +Use these variables to override the choices made by `configure' or to help
  1.1753 +it to find libraries and programs with nonstandard names/locations.
  1.1754 +
  1.1755 +Report bugs to <build-infra-dev@openjdk.java.net>.
  1.1756 +_ACEOF
  1.1757 +ac_status=$?
  1.1758 +fi
  1.1759 +
  1.1760 +if test "$ac_init_help" = "recursive"; then
  1.1761 +  # If there are subdirs, report their specific --help.
  1.1762 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1.1763 +    test -d "$ac_dir" ||
  1.1764 +      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1.1765 +      continue
  1.1766 +    ac_builddir=.
  1.1767 +
  1.1768 +case "$ac_dir" in
  1.1769 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1.1770 +*)
  1.1771 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1.1772 +  # A ".." for each directory in $ac_dir_suffix.
  1.1773 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1.1774 +  case $ac_top_builddir_sub in
  1.1775 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1.1776 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1.1777 +  esac ;;
  1.1778 +esac
  1.1779 +ac_abs_top_builddir=$ac_pwd
  1.1780 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1.1781 +# for backward compatibility:
  1.1782 +ac_top_builddir=$ac_top_build_prefix
  1.1783 +
  1.1784 +case $srcdir in
  1.1785 +  .)  # We are building in place.
  1.1786 +    ac_srcdir=.
  1.1787 +    ac_top_srcdir=$ac_top_builddir_sub
  1.1788 +    ac_abs_top_srcdir=$ac_pwd ;;
  1.1789 +  [\\/]* | ?:[\\/]* )  # Absolute name.
  1.1790 +    ac_srcdir=$srcdir$ac_dir_suffix;
  1.1791 +    ac_top_srcdir=$srcdir
  1.1792 +    ac_abs_top_srcdir=$srcdir ;;
  1.1793 +  *) # Relative name.
  1.1794 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1.1795 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
  1.1796 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1.1797 +esac
  1.1798 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1.1799 +
  1.1800 +    cd "$ac_dir" || { ac_status=$?; continue; }
  1.1801 +    # Check for guested configure.
  1.1802 +    if test -f "$ac_srcdir/configure.gnu"; then
  1.1803 +      echo &&
  1.1804 +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1.1805 +    elif test -f "$ac_srcdir/configure"; then
  1.1806 +      echo &&
  1.1807 +      $SHELL "$ac_srcdir/configure" --help=recursive
  1.1808 +    else
  1.1809 +      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1.1810 +    fi || ac_status=$?
  1.1811 +    cd "$ac_pwd" || { ac_status=$?; break; }
  1.1812 +  done
  1.1813 +fi
  1.1814 +
  1.1815 +test -n "$ac_init_help" && exit $ac_status
  1.1816 +if $ac_init_version; then
  1.1817 +  cat <<\_ACEOF
  1.1818 +openjdk configure version-0.1
  1.1819 +generated by GNU Autoconf 2.67
  1.1820 +
  1.1821 +Copyright (C) 2010 Free Software Foundation, Inc.
  1.1822 +This configure script is free software; the Free Software Foundation
  1.1823 +gives unlimited permission to copy, distribute and modify it.
  1.1824 +_ACEOF
  1.1825 +  exit
  1.1826 +fi
  1.1827 +
  1.1828 +## ------------------------ ##
  1.1829 +## Autoconf initialization. ##
  1.1830 +## ------------------------ ##
  1.1831 +
  1.1832 +# ac_fn_c_try_compile LINENO
  1.1833 +# --------------------------
  1.1834 +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  1.1835 +ac_fn_c_try_compile ()
  1.1836 +{
  1.1837 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.1838 +  rm -f conftest.$ac_objext
  1.1839 +  if { { ac_try="$ac_compile"
  1.1840 +case "(($ac_try" in
  1.1841 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1842 +  *) ac_try_echo=$ac_try;;
  1.1843 +esac
  1.1844 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1845 +$as_echo "$ac_try_echo"; } >&5
  1.1846 +  (eval "$ac_compile") 2>conftest.err
  1.1847 +  ac_status=$?
  1.1848 +  if test -s conftest.err; then
  1.1849 +    grep -v '^ *+' conftest.err >conftest.er1
  1.1850 +    cat conftest.er1 >&5
  1.1851 +    mv -f conftest.er1 conftest.err
  1.1852 +  fi
  1.1853 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1854 +  test $ac_status = 0; } && {
  1.1855 +	 test -z "$ac_c_werror_flag" ||
  1.1856 +	 test ! -s conftest.err
  1.1857 +       } && test -s conftest.$ac_objext; then :
  1.1858 +  ac_retval=0
  1.1859 +else
  1.1860 +  $as_echo "$as_me: failed program was:" >&5
  1.1861 +sed 's/^/| /' conftest.$ac_ext >&5
  1.1862 +
  1.1863 +	ac_retval=1
  1.1864 +fi
  1.1865 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.1866 +  as_fn_set_status $ac_retval
  1.1867 +
  1.1868 +} # ac_fn_c_try_compile
  1.1869 +
  1.1870 +# ac_fn_cxx_try_compile LINENO
  1.1871 +# ----------------------------
  1.1872 +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  1.1873 +ac_fn_cxx_try_compile ()
  1.1874 +{
  1.1875 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.1876 +  rm -f conftest.$ac_objext
  1.1877 +  if { { ac_try="$ac_compile"
  1.1878 +case "(($ac_try" in
  1.1879 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1880 +  *) ac_try_echo=$ac_try;;
  1.1881 +esac
  1.1882 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1883 +$as_echo "$ac_try_echo"; } >&5
  1.1884 +  (eval "$ac_compile") 2>conftest.err
  1.1885 +  ac_status=$?
  1.1886 +  if test -s conftest.err; then
  1.1887 +    grep -v '^ *+' conftest.err >conftest.er1
  1.1888 +    cat conftest.er1 >&5
  1.1889 +    mv -f conftest.er1 conftest.err
  1.1890 +  fi
  1.1891 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1892 +  test $ac_status = 0; } && {
  1.1893 +	 test -z "$ac_cxx_werror_flag" ||
  1.1894 +	 test ! -s conftest.err
  1.1895 +       } && test -s conftest.$ac_objext; then :
  1.1896 +  ac_retval=0
  1.1897 +else
  1.1898 +  $as_echo "$as_me: failed program was:" >&5
  1.1899 +sed 's/^/| /' conftest.$ac_ext >&5
  1.1900 +
  1.1901 +	ac_retval=1
  1.1902 +fi
  1.1903 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.1904 +  as_fn_set_status $ac_retval
  1.1905 +
  1.1906 +} # ac_fn_cxx_try_compile
  1.1907 +
  1.1908 +# ac_fn_objc_try_compile LINENO
  1.1909 +# -----------------------------
  1.1910 +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  1.1911 +ac_fn_objc_try_compile ()
  1.1912 +{
  1.1913 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.1914 +  rm -f conftest.$ac_objext
  1.1915 +  if { { ac_try="$ac_compile"
  1.1916 +case "(($ac_try" in
  1.1917 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1918 +  *) ac_try_echo=$ac_try;;
  1.1919 +esac
  1.1920 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1921 +$as_echo "$ac_try_echo"; } >&5
  1.1922 +  (eval "$ac_compile") 2>conftest.err
  1.1923 +  ac_status=$?
  1.1924 +  if test -s conftest.err; then
  1.1925 +    grep -v '^ *+' conftest.err >conftest.er1
  1.1926 +    cat conftest.er1 >&5
  1.1927 +    mv -f conftest.er1 conftest.err
  1.1928 +  fi
  1.1929 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1930 +  test $ac_status = 0; } && {
  1.1931 +	 test -z "$ac_objc_werror_flag" ||
  1.1932 +	 test ! -s conftest.err
  1.1933 +       } && test -s conftest.$ac_objext; then :
  1.1934 +  ac_retval=0
  1.1935 +else
  1.1936 +  $as_echo "$as_me: failed program was:" >&5
  1.1937 +sed 's/^/| /' conftest.$ac_ext >&5
  1.1938 +
  1.1939 +	ac_retval=1
  1.1940 +fi
  1.1941 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.1942 +  as_fn_set_status $ac_retval
  1.1943 +
  1.1944 +} # ac_fn_objc_try_compile
  1.1945 +
  1.1946 +# ac_fn_c_try_cpp LINENO
  1.1947 +# ----------------------
  1.1948 +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1.1949 +ac_fn_c_try_cpp ()
  1.1950 +{
  1.1951 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.1952 +  if { { ac_try="$ac_cpp conftest.$ac_ext"
  1.1953 +case "(($ac_try" in
  1.1954 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1955 +  *) ac_try_echo=$ac_try;;
  1.1956 +esac
  1.1957 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1958 +$as_echo "$ac_try_echo"; } >&5
  1.1959 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1.1960 +  ac_status=$?
  1.1961 +  if test -s conftest.err; then
  1.1962 +    grep -v '^ *+' conftest.err >conftest.er1
  1.1963 +    cat conftest.er1 >&5
  1.1964 +    mv -f conftest.er1 conftest.err
  1.1965 +  fi
  1.1966 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1967 +  test $ac_status = 0; } > conftest.i && {
  1.1968 +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1.1969 +	 test ! -s conftest.err
  1.1970 +       }; then :
  1.1971 +  ac_retval=0
  1.1972 +else
  1.1973 +  $as_echo "$as_me: failed program was:" >&5
  1.1974 +sed 's/^/| /' conftest.$ac_ext >&5
  1.1975 +
  1.1976 +    ac_retval=1
  1.1977 +fi
  1.1978 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.1979 +  as_fn_set_status $ac_retval
  1.1980 +
  1.1981 +} # ac_fn_c_try_cpp
  1.1982 +
  1.1983 +# ac_fn_cxx_try_cpp LINENO
  1.1984 +# ------------------------
  1.1985 +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1.1986 +ac_fn_cxx_try_cpp ()
  1.1987 +{
  1.1988 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.1989 +  if { { ac_try="$ac_cpp conftest.$ac_ext"
  1.1990 +case "(($ac_try" in
  1.1991 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1992 +  *) ac_try_echo=$ac_try;;
  1.1993 +esac
  1.1994 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1995 +$as_echo "$ac_try_echo"; } >&5
  1.1996 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1.1997 +  ac_status=$?
  1.1998 +  if test -s conftest.err; then
  1.1999 +    grep -v '^ *+' conftest.err >conftest.er1
  1.2000 +    cat conftest.er1 >&5
  1.2001 +    mv -f conftest.er1 conftest.err
  1.2002 +  fi
  1.2003 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2004 +  test $ac_status = 0; } > conftest.i && {
  1.2005 +	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1.2006 +	 test ! -s conftest.err
  1.2007 +       }; then :
  1.2008 +  ac_retval=0
  1.2009 +else
  1.2010 +  $as_echo "$as_me: failed program was:" >&5
  1.2011 +sed 's/^/| /' conftest.$ac_ext >&5
  1.2012 +
  1.2013 +    ac_retval=1
  1.2014 +fi
  1.2015 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.2016 +  as_fn_set_status $ac_retval
  1.2017 +
  1.2018 +} # ac_fn_cxx_try_cpp
  1.2019 +
  1.2020 +# ac_fn_cxx_try_link LINENO
  1.2021 +# -------------------------
  1.2022 +# Try to link conftest.$ac_ext, and return whether this succeeded.
  1.2023 +ac_fn_cxx_try_link ()
  1.2024 +{
  1.2025 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.2026 +  rm -f conftest.$ac_objext conftest$ac_exeext
  1.2027 +  if { { ac_try="$ac_link"
  1.2028 +case "(($ac_try" in
  1.2029 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.2030 +  *) ac_try_echo=$ac_try;;
  1.2031 +esac
  1.2032 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.2033 +$as_echo "$ac_try_echo"; } >&5
  1.2034 +  (eval "$ac_link") 2>conftest.err
  1.2035 +  ac_status=$?
  1.2036 +  if test -s conftest.err; then
  1.2037 +    grep -v '^ *+' conftest.err >conftest.er1
  1.2038 +    cat conftest.er1 >&5
  1.2039 +    mv -f conftest.er1 conftest.err
  1.2040 +  fi
  1.2041 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2042 +  test $ac_status = 0; } && {
  1.2043 +	 test -z "$ac_cxx_werror_flag" ||
  1.2044 +	 test ! -s conftest.err
  1.2045 +       } && test -s conftest$ac_exeext && {
  1.2046 +	 test "$cross_compiling" = yes ||
  1.2047 +	 $as_test_x conftest$ac_exeext
  1.2048 +       }; then :
  1.2049 +  ac_retval=0
  1.2050 +else
  1.2051 +  $as_echo "$as_me: failed program was:" >&5
  1.2052 +sed 's/^/| /' conftest.$ac_ext >&5
  1.2053 +
  1.2054 +	ac_retval=1
  1.2055 +fi
  1.2056 +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1.2057 +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1.2058 +  # interfere with the next link command; also delete a directory that is
  1.2059 +  # left behind by Apple's compiler.  We do this before executing the actions.
  1.2060 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1.2061 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.2062 +  as_fn_set_status $ac_retval
  1.2063 +
  1.2064 +} # ac_fn_cxx_try_link
  1.2065 +
  1.2066 +# ac_fn_cxx_try_run LINENO
  1.2067 +# ------------------------
  1.2068 +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1.2069 +# that executables *can* be run.
  1.2070 +ac_fn_cxx_try_run ()
  1.2071 +{
  1.2072 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.2073 +  if { { ac_try="$ac_link"
  1.2074 +case "(($ac_try" in
  1.2075 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.2076 +  *) ac_try_echo=$ac_try;;
  1.2077 +esac
  1.2078 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.2079 +$as_echo "$ac_try_echo"; } >&5
  1.2080 +  (eval "$ac_link") 2>&5
  1.2081 +  ac_status=$?
  1.2082 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2083 +  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1.2084 +  { { case "(($ac_try" in
  1.2085 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.2086 +  *) ac_try_echo=$ac_try;;
  1.2087 +esac
  1.2088 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.2089 +$as_echo "$ac_try_echo"; } >&5
  1.2090 +  (eval "$ac_try") 2>&5
  1.2091 +  ac_status=$?
  1.2092 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2093 +  test $ac_status = 0; }; }; then :
  1.2094 +  ac_retval=0
  1.2095 +else
  1.2096 +  $as_echo "$as_me: program exited with status $ac_status" >&5
  1.2097 +       $as_echo "$as_me: failed program was:" >&5
  1.2098 +sed 's/^/| /' conftest.$ac_ext >&5
  1.2099 +
  1.2100 +       ac_retval=$ac_status
  1.2101 +fi
  1.2102 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1.2103 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.2104 +  as_fn_set_status $ac_retval
  1.2105 +
  1.2106 +} # ac_fn_cxx_try_run
  1.2107 +
  1.2108 +# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  1.2109 +# ----------------------------------------------
  1.2110 +# Tries to find the compile-time value of EXPR in a program that includes
  1.2111 +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  1.2112 +# computed
  1.2113 +ac_fn_cxx_compute_int ()
  1.2114 +{
  1.2115 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.2116 +  if test "$cross_compiling" = yes; then
  1.2117 +    # Depending upon the size, compute the lo and hi bounds.
  1.2118 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2119 +/* end confdefs.h.  */
  1.2120 +$4
  1.2121 +int
  1.2122 +main ()
  1.2123 +{
  1.2124 +static int test_array [1 - 2 * !(($2) >= 0)];
  1.2125 +test_array [0] = 0
  1.2126 +
  1.2127 +  ;
  1.2128 +  return 0;
  1.2129 +}
  1.2130 +_ACEOF
  1.2131 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.2132 +  ac_lo=0 ac_mid=0
  1.2133 +  while :; do
  1.2134 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2135 +/* end confdefs.h.  */
  1.2136 +$4
  1.2137 +int
  1.2138 +main ()
  1.2139 +{
  1.2140 +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1.2141 +test_array [0] = 0
  1.2142 +
  1.2143 +  ;
  1.2144 +  return 0;
  1.2145 +}
  1.2146 +_ACEOF
  1.2147 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.2148 +  ac_hi=$ac_mid; break
  1.2149 +else
  1.2150 +  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1.2151 +			if test $ac_lo -le $ac_mid; then
  1.2152 +			  ac_lo= ac_hi=
  1.2153 +			  break
  1.2154 +			fi
  1.2155 +			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1.2156 +fi
  1.2157 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2158 +  done
  1.2159 +else
  1.2160 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2161 +/* end confdefs.h.  */
  1.2162 +$4
  1.2163 +int
  1.2164 +main ()
  1.2165 +{
  1.2166 +static int test_array [1 - 2 * !(($2) < 0)];
  1.2167 +test_array [0] = 0
  1.2168 +
  1.2169 +  ;
  1.2170 +  return 0;
  1.2171 +}
  1.2172 +_ACEOF
  1.2173 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.2174 +  ac_hi=-1 ac_mid=-1
  1.2175 +  while :; do
  1.2176 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2177 +/* end confdefs.h.  */
  1.2178 +$4
  1.2179 +int
  1.2180 +main ()
  1.2181 +{
  1.2182 +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1.2183 +test_array [0] = 0
  1.2184 +
  1.2185 +  ;
  1.2186 +  return 0;
  1.2187 +}
  1.2188 +_ACEOF
  1.2189 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.2190 +  ac_lo=$ac_mid; break
  1.2191 +else
  1.2192 +  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1.2193 +			if test $ac_mid -le $ac_hi; then
  1.2194 +			  ac_lo= ac_hi=
  1.2195 +			  break
  1.2196 +			fi
  1.2197 +			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1.2198 +fi
  1.2199 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2200 +  done
  1.2201 +else
  1.2202 +  ac_lo= ac_hi=
  1.2203 +fi
  1.2204 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2205 +fi
  1.2206 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2207 +# Binary search between lo and hi bounds.
  1.2208 +while test "x$ac_lo" != "x$ac_hi"; do
  1.2209 +  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1.2210 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2211 +/* end confdefs.h.  */
  1.2212 +$4
  1.2213 +int
  1.2214 +main ()
  1.2215 +{
  1.2216 +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1.2217 +test_array [0] = 0
  1.2218 +
  1.2219 +  ;
  1.2220 +  return 0;
  1.2221 +}
  1.2222 +_ACEOF
  1.2223 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.2224 +  ac_hi=$ac_mid
  1.2225 +else
  1.2226 +  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1.2227 +fi
  1.2228 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2229 +done
  1.2230 +case $ac_lo in #((
  1.2231 +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1.2232 +'') ac_retval=1 ;;
  1.2233 +esac
  1.2234 +  else
  1.2235 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2236 +/* end confdefs.h.  */
  1.2237 +$4
  1.2238 +static long int longval () { return $2; }
  1.2239 +static unsigned long int ulongval () { return $2; }
  1.2240 +#include <stdio.h>
  1.2241 +#include <stdlib.h>
  1.2242 +int
  1.2243 +main ()
  1.2244 +{
  1.2245 +
  1.2246 +  FILE *f = fopen ("conftest.val", "w");
  1.2247 +  if (! f)
  1.2248 +    return 1;
  1.2249 +  if (($2) < 0)
  1.2250 +    {
  1.2251 +      long int i = longval ();
  1.2252 +      if (i != ($2))
  1.2253 +	return 1;
  1.2254 +      fprintf (f, "%ld", i);
  1.2255 +    }
  1.2256 +  else
  1.2257 +    {
  1.2258 +      unsigned long int i = ulongval ();
  1.2259 +      if (i != ($2))
  1.2260 +	return 1;
  1.2261 +      fprintf (f, "%lu", i);
  1.2262 +    }
  1.2263 +  /* Do not output a trailing newline, as this causes \r\n confusion
  1.2264 +     on some platforms.  */
  1.2265 +  return ferror (f) || fclose (f) != 0;
  1.2266 +
  1.2267 +  ;
  1.2268 +  return 0;
  1.2269 +}
  1.2270 +_ACEOF
  1.2271 +if ac_fn_cxx_try_run "$LINENO"; then :
  1.2272 +  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1.2273 +else
  1.2274 +  ac_retval=1
  1.2275 +fi
  1.2276 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1.2277 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
  1.2278 +rm -f conftest.val
  1.2279 +
  1.2280 +  fi
  1.2281 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.2282 +  as_fn_set_status $ac_retval
  1.2283 +
  1.2284 +} # ac_fn_cxx_compute_int
  1.2285 +
  1.2286 +# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1.2287 +# ---------------------------------------------------------
  1.2288 +# Tests whether HEADER exists and can be compiled using the include files in
  1.2289 +# INCLUDES, setting the cache variable VAR accordingly.
  1.2290 +ac_fn_cxx_check_header_compile ()
  1.2291 +{
  1.2292 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.2293 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1.2294 +$as_echo_n "checking for $2... " >&6; }
  1.2295 +if eval "test \"\${$3+set}\"" = set; then :
  1.2296 +  $as_echo_n "(cached) " >&6
  1.2297 +else
  1.2298 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2299 +/* end confdefs.h.  */
  1.2300 +$4
  1.2301 +#include <$2>
  1.2302 +_ACEOF
  1.2303 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.2304 +  eval "$3=yes"
  1.2305 +else
  1.2306 +  eval "$3=no"
  1.2307 +fi
  1.2308 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2309 +fi
  1.2310 +eval ac_res=\$$3
  1.2311 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1.2312 +$as_echo "$ac_res" >&6; }
  1.2313 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.2314 +
  1.2315 +} # ac_fn_cxx_check_header_compile
  1.2316 +
  1.2317 +# ac_fn_cxx_check_func LINENO FUNC VAR
  1.2318 +# ------------------------------------
  1.2319 +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  1.2320 +ac_fn_cxx_check_func ()
  1.2321 +{
  1.2322 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.2323 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1.2324 +$as_echo_n "checking for $2... " >&6; }
  1.2325 +if eval "test \"\${$3+set}\"" = set; then :
  1.2326 +  $as_echo_n "(cached) " >&6
  1.2327 +else
  1.2328 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2329 +/* end confdefs.h.  */
  1.2330 +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1.2331 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1.2332 +#define $2 innocuous_$2
  1.2333 +
  1.2334 +/* System header to define __stub macros and hopefully few prototypes,
  1.2335 +    which can conflict with char $2 (); below.
  1.2336 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1.2337 +    <limits.h> exists even on freestanding compilers.  */
  1.2338 +
  1.2339 +#ifdef __STDC__
  1.2340 +# include <limits.h>
  1.2341 +#else
  1.2342 +# include <assert.h>
  1.2343 +#endif
  1.2344 +
  1.2345 +#undef $2
  1.2346 +
  1.2347 +/* Override any GCC internal prototype to avoid an error.
  1.2348 +   Use char because int might match the return type of a GCC
  1.2349 +   builtin and then its argument prototype would still apply.  */
  1.2350 +#ifdef __cplusplus
  1.2351 +extern "C"
  1.2352 +#endif
  1.2353 +char $2 ();
  1.2354 +/* The GNU C library defines this for functions which it implements
  1.2355 +    to always fail with ENOSYS.  Some functions are actually named
  1.2356 +    something starting with __ and the normal name is an alias.  */
  1.2357 +#if defined __stub_$2 || defined __stub___$2
  1.2358 +choke me
  1.2359 +#endif
  1.2360 +
  1.2361 +int
  1.2362 +main ()
  1.2363 +{
  1.2364 +return $2 ();
  1.2365 +  ;
  1.2366 +  return 0;
  1.2367 +}
  1.2368 +_ACEOF
  1.2369 +if ac_fn_cxx_try_link "$LINENO"; then :
  1.2370 +  eval "$3=yes"
  1.2371 +else
  1.2372 +  eval "$3=no"
  1.2373 +fi
  1.2374 +rm -f core conftest.err conftest.$ac_objext \
  1.2375 +    conftest$ac_exeext conftest.$ac_ext
  1.2376 +fi
  1.2377 +eval ac_res=\$$3
  1.2378 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1.2379 +$as_echo "$ac_res" >&6; }
  1.2380 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.2381 +
  1.2382 +} # ac_fn_cxx_check_func
  1.2383 +
  1.2384 +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1.2385 +# -------------------------------------------------------
  1.2386 +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1.2387 +# the include files in INCLUDES and setting the cache variable VAR
  1.2388 +# accordingly.
  1.2389 +ac_fn_c_check_header_mongrel ()
  1.2390 +{
  1.2391 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.2392 +  if eval "test \"\${$3+set}\"" = set; then :
  1.2393 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1.2394 +$as_echo_n "checking for $2... " >&6; }
  1.2395 +if eval "test \"\${$3+set}\"" = set; then :
  1.2396 +  $as_echo_n "(cached) " >&6
  1.2397 +fi
  1.2398 +eval ac_res=\$$3
  1.2399 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1.2400 +$as_echo "$ac_res" >&6; }
  1.2401 +else
  1.2402 +  # Is the header compilable?
  1.2403 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1.2404 +$as_echo_n "checking $2 usability... " >&6; }
  1.2405 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2406 +/* end confdefs.h.  */
  1.2407 +$4
  1.2408 +#include <$2>
  1.2409 +_ACEOF
  1.2410 +if ac_fn_c_try_compile "$LINENO"; then :
  1.2411 +  ac_header_compiler=yes
  1.2412 +else
  1.2413 +  ac_header_compiler=no
  1.2414 +fi
  1.2415 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2416 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1.2417 +$as_echo "$ac_header_compiler" >&6; }
  1.2418 +
  1.2419 +# Is the header present?
  1.2420 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1.2421 +$as_echo_n "checking $2 presence... " >&6; }
  1.2422 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2423 +/* end confdefs.h.  */
  1.2424 +#include <$2>
  1.2425 +_ACEOF
  1.2426 +if ac_fn_c_try_cpp "$LINENO"; then :
  1.2427 +  ac_header_preproc=yes
  1.2428 +else
  1.2429 +  ac_header_preproc=no
  1.2430 +fi
  1.2431 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.2432 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1.2433 +$as_echo "$ac_header_preproc" >&6; }
  1.2434 +
  1.2435 +# So?  What about this header?
  1.2436 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1.2437 +  yes:no: )
  1.2438 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1.2439 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1.2440 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1.2441 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1.2442 +    ;;
  1.2443 +  no:yes:* )
  1.2444 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1.2445 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1.2446 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1.2447 +$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1.2448 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1.2449 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1.2450 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1.2451 +$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1.2452 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1.2453 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1.2454 +( $as_echo "## ----------------------------------------------- ##
  1.2455 +## Report this to build-infra-dev@openjdk.java.net ##
  1.2456 +## ----------------------------------------------- ##"
  1.2457 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
  1.2458 +    ;;
  1.2459 +esac
  1.2460 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1.2461 +$as_echo_n "checking for $2... " >&6; }
  1.2462 +if eval "test \"\${$3+set}\"" = set; then :
  1.2463 +  $as_echo_n "(cached) " >&6
  1.2464 +else
  1.2465 +  eval "$3=\$ac_header_compiler"
  1.2466 +fi
  1.2467 +eval ac_res=\$$3
  1.2468 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1.2469 +$as_echo "$ac_res" >&6; }
  1.2470 +fi
  1.2471 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.2472 +
  1.2473 +} # ac_fn_c_check_header_mongrel
  1.2474 +
  1.2475 +# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1.2476 +# ---------------------------------------------------------
  1.2477 +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1.2478 +# the include files in INCLUDES and setting the cache variable VAR
  1.2479 +# accordingly.
  1.2480 +ac_fn_cxx_check_header_mongrel ()
  1.2481 +{
  1.2482 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1.2483 +  if eval "test \"\${$3+set}\"" = set; then :
  1.2484 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1.2485 +$as_echo_n "checking for $2... " >&6; }
  1.2486 +if eval "test \"\${$3+set}\"" = set; then :
  1.2487 +  $as_echo_n "(cached) " >&6
  1.2488 +fi
  1.2489 +eval ac_res=\$$3
  1.2490 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1.2491 +$as_echo "$ac_res" >&6; }
  1.2492 +else
  1.2493 +  # Is the header compilable?
  1.2494 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1.2495 +$as_echo_n "checking $2 usability... " >&6; }
  1.2496 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2497 +/* end confdefs.h.  */
  1.2498 +$4
  1.2499 +#include <$2>
  1.2500 +_ACEOF
  1.2501 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.2502 +  ac_header_compiler=yes
  1.2503 +else
  1.2504 +  ac_header_compiler=no
  1.2505 +fi
  1.2506 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2507 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1.2508 +$as_echo "$ac_header_compiler" >&6; }
  1.2509 +
  1.2510 +# Is the header present?
  1.2511 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1.2512 +$as_echo_n "checking $2 presence... " >&6; }
  1.2513 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2514 +/* end confdefs.h.  */
  1.2515 +#include <$2>
  1.2516 +_ACEOF
  1.2517 +if ac_fn_cxx_try_cpp "$LINENO"; then :
  1.2518 +  ac_header_preproc=yes
  1.2519 +else
  1.2520 +  ac_header_preproc=no
  1.2521 +fi
  1.2522 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.2523 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1.2524 +$as_echo "$ac_header_preproc" >&6; }
  1.2525 +
  1.2526 +# So?  What about this header?
  1.2527 +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1.2528 +  yes:no: )
  1.2529 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1.2530 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1.2531 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1.2532 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1.2533 +    ;;
  1.2534 +  no:yes:* )
  1.2535 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1.2536 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1.2537 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1.2538 +$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1.2539 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1.2540 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1.2541 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1.2542 +$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1.2543 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1.2544 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1.2545 +( $as_echo "## ----------------------------------------------- ##
  1.2546 +## Report this to build-infra-dev@openjdk.java.net ##
  1.2547 +## ----------------------------------------------- ##"
  1.2548 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
  1.2549 +    ;;
  1.2550 +esac
  1.2551 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1.2552 +$as_echo_n "checking for $2... " >&6; }
  1.2553 +if eval "test \"\${$3+set}\"" = set; then :
  1.2554 +  $as_echo_n "(cached) " >&6
  1.2555 +else
  1.2556 +  eval "$3=\$ac_header_compiler"
  1.2557 +fi
  1.2558 +eval ac_res=\$$3
  1.2559 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1.2560 +$as_echo "$ac_res" >&6; }
  1.2561 +fi
  1.2562 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1.2563 +
  1.2564 +} # ac_fn_cxx_check_header_mongrel
  1.2565 +cat >config.log <<_ACEOF
  1.2566 +This file contains any messages produced by compilers while
  1.2567 +running configure, to aid debugging if configure makes a mistake.
  1.2568 +
  1.2569 +It was created by openjdk $as_me version-0.1, which was
  1.2570 +generated by GNU Autoconf 2.67.  Invocation command line was
  1.2571 +
  1.2572 +  $ $0 $@
  1.2573 +
  1.2574 +_ACEOF
  1.2575 +exec 5>>config.log
  1.2576 +{
  1.2577 +cat <<_ASUNAME
  1.2578 +## --------- ##
  1.2579 +## Platform. ##
  1.2580 +## --------- ##
  1.2581 +
  1.2582 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1.2583 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1.2584 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1.2585 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1.2586 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1.2587 +
  1.2588 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1.2589 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1.2590 +
  1.2591 +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1.2592 +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1.2593 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1.2594 +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1.2595 +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1.2596 +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1.2597 +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1.2598 +
  1.2599 +_ASUNAME
  1.2600 +
  1.2601 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.2602 +for as_dir in $PATH
  1.2603 +do
  1.2604 +  IFS=$as_save_IFS
  1.2605 +  test -z "$as_dir" && as_dir=.
  1.2606 +    $as_echo "PATH: $as_dir"
  1.2607 +  done
  1.2608 +IFS=$as_save_IFS
  1.2609 +
  1.2610 +} >&5
  1.2611 +
  1.2612 +cat >&5 <<_ACEOF
  1.2613 +
  1.2614 +
  1.2615 +## ----------- ##
  1.2616 +## Core tests. ##
  1.2617 +## ----------- ##
  1.2618 +
  1.2619 +_ACEOF
  1.2620 +
  1.2621 +
  1.2622 +# Keep a trace of the command line.
  1.2623 +# Strip out --no-create and --no-recursion so they do not pile up.
  1.2624 +# Strip out --silent because we don't want to record it for future runs.
  1.2625 +# Also quote any args containing shell meta-characters.
  1.2626 +# Make two passes to allow for proper duplicate-argument suppression.
  1.2627 +ac_configure_args=
  1.2628 +ac_configure_args0=
  1.2629 +ac_configure_args1=
  1.2630 +ac_must_keep_next=false
  1.2631 +for ac_pass in 1 2
  1.2632 +do
  1.2633 +  for ac_arg
  1.2634 +  do
  1.2635 +    case $ac_arg in
  1.2636 +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1.2637 +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1.2638 +    | -silent | --silent | --silen | --sile | --sil)
  1.2639 +      continue ;;
  1.2640 +    *\'*)
  1.2641 +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1.2642 +    esac
  1.2643 +    case $ac_pass in
  1.2644 +    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1.2645 +    2)
  1.2646 +      as_fn_append ac_configure_args1 " '$ac_arg'"
  1.2647 +      if test $ac_must_keep_next = true; then
  1.2648 +	ac_must_keep_next=false # Got value, back to normal.
  1.2649 +      else
  1.2650 +	case $ac_arg in
  1.2651 +	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1.2652 +	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1.2653 +	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1.2654 +	  | -with-* | --with-* | -without-* | --without-* | --x)
  1.2655 +	    case "$ac_configure_args0 " in
  1.2656 +	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1.2657 +	    esac
  1.2658 +	    ;;
  1.2659 +	  -* ) ac_must_keep_next=true ;;
  1.2660 +	esac
  1.2661 +      fi
  1.2662 +      as_fn_append ac_configure_args " '$ac_arg'"
  1.2663 +      ;;
  1.2664 +    esac
  1.2665 +  done
  1.2666 +done
  1.2667 +{ ac_configure_args0=; unset ac_configure_args0;}
  1.2668 +{ ac_configure_args1=; unset ac_configure_args1;}
  1.2669 +
  1.2670 +# When interrupted or exit'd, cleanup temporary files, and complete
  1.2671 +# config.log.  We remove comments because anyway the quotes in there
  1.2672 +# would cause problems or look ugly.
  1.2673 +# WARNING: Use '\'' to represent an apostrophe within the trap.
  1.2674 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1.2675 +trap 'exit_status=$?
  1.2676 +  # Save into config.log some information that might help in debugging.
  1.2677 +  {
  1.2678 +    echo
  1.2679 +
  1.2680 +    $as_echo "## ---------------- ##
  1.2681 +## Cache variables. ##
  1.2682 +## ---------------- ##"
  1.2683 +    echo
  1.2684 +    # The following way of writing the cache mishandles newlines in values,
  1.2685 +(
  1.2686 +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1.2687 +    eval ac_val=\$$ac_var
  1.2688 +    case $ac_val in #(
  1.2689 +    *${as_nl}*)
  1.2690 +      case $ac_var in #(
  1.2691 +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1.2692 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1.2693 +      esac
  1.2694 +      case $ac_var in #(
  1.2695 +      _ | IFS | as_nl) ;; #(
  1.2696 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1.2697 +      *) { eval $ac_var=; unset $ac_var;} ;;
  1.2698 +      esac ;;
  1.2699 +    esac
  1.2700 +  done
  1.2701 +  (set) 2>&1 |
  1.2702 +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1.2703 +    *${as_nl}ac_space=\ *)
  1.2704 +      sed -n \
  1.2705 +	"s/'\''/'\''\\\\'\'''\''/g;
  1.2706 +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1.2707 +      ;; #(
  1.2708 +    *)
  1.2709 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1.2710 +      ;;
  1.2711 +    esac |
  1.2712 +    sort
  1.2713 +)
  1.2714 +    echo
  1.2715 +
  1.2716 +    $as_echo "## ----------------- ##
  1.2717 +## Output variables. ##
  1.2718 +## ----------------- ##"
  1.2719 +    echo
  1.2720 +    for ac_var in $ac_subst_vars
  1.2721 +    do
  1.2722 +      eval ac_val=\$$ac_var
  1.2723 +      case $ac_val in
  1.2724 +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1.2725 +      esac
  1.2726 +      $as_echo "$ac_var='\''$ac_val'\''"
  1.2727 +    done | sort
  1.2728 +    echo
  1.2729 +
  1.2730 +    if test -n "$ac_subst_files"; then
  1.2731 +      $as_echo "## ------------------- ##
  1.2732 +## File substitutions. ##
  1.2733 +## ------------------- ##"
  1.2734 +      echo
  1.2735 +      for ac_var in $ac_subst_files
  1.2736 +      do
  1.2737 +	eval ac_val=\$$ac_var
  1.2738 +	case $ac_val in
  1.2739 +	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1.2740 +	esac
  1.2741 +	$as_echo "$ac_var='\''$ac_val'\''"
  1.2742 +      done | sort
  1.2743 +      echo
  1.2744 +    fi
  1.2745 +
  1.2746 +    if test -s confdefs.h; then
  1.2747 +      $as_echo "## ----------- ##
  1.2748 +## confdefs.h. ##
  1.2749 +## ----------- ##"
  1.2750 +      echo
  1.2751 +      cat confdefs.h
  1.2752 +      echo
  1.2753 +    fi
  1.2754 +    test "$ac_signal" != 0 &&
  1.2755 +      $as_echo "$as_me: caught signal $ac_signal"
  1.2756 +    $as_echo "$as_me: exit $exit_status"
  1.2757 +  } >&5
  1.2758 +  rm -f core *.core core.conftest.* &&
  1.2759 +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1.2760 +    exit $exit_status
  1.2761 +' 0
  1.2762 +for ac_signal in 1 2 13 15; do
  1.2763 +  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1.2764 +done
  1.2765 +ac_signal=0
  1.2766 +
  1.2767 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1.2768 +rm -f -r conftest* confdefs.h
  1.2769 +
  1.2770 +$as_echo "/* confdefs.h */" > confdefs.h
  1.2771 +
  1.2772 +# Predefined preprocessor variables.
  1.2773 +
  1.2774 +cat >>confdefs.h <<_ACEOF
  1.2775 +#define PACKAGE_NAME "$PACKAGE_NAME"
  1.2776 +_ACEOF
  1.2777 +
  1.2778 +cat >>confdefs.h <<_ACEOF
  1.2779 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1.2780 +_ACEOF
  1.2781 +
  1.2782 +cat >>confdefs.h <<_ACEOF
  1.2783 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  1.2784 +_ACEOF
  1.2785 +
  1.2786 +cat >>confdefs.h <<_ACEOF
  1.2787 +#define PACKAGE_STRING "$PACKAGE_STRING"
  1.2788 +_ACEOF
  1.2789 +
  1.2790 +cat >>confdefs.h <<_ACEOF
  1.2791 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1.2792 +_ACEOF
  1.2793 +
  1.2794 +cat >>confdefs.h <<_ACEOF
  1.2795 +#define PACKAGE_URL "$PACKAGE_URL"
  1.2796 +_ACEOF
  1.2797 +
  1.2798 +
  1.2799 +# Let the site file select an alternate cache file if it wants to.
  1.2800 +# Prefer an explicitly selected file to automatically selected ones.
  1.2801 +ac_site_file1=NONE
  1.2802 +ac_site_file2=NONE
  1.2803 +if test -n "$CONFIG_SITE"; then
  1.2804 +  # We do not want a PATH search for config.site.
  1.2805 +  case $CONFIG_SITE in #((
  1.2806 +    -*)  ac_site_file1=./$CONFIG_SITE;;
  1.2807 +    */*) ac_site_file1=$CONFIG_SITE;;
  1.2808 +    *)   ac_site_file1=./$CONFIG_SITE;;
  1.2809 +  esac
  1.2810 +elif test "x$prefix" != xNONE; then
  1.2811 +  ac_site_file1=$prefix/share/config.site
  1.2812 +  ac_site_file2=$prefix/etc/config.site
  1.2813 +else
  1.2814 +  ac_site_file1=$ac_default_prefix/share/config.site
  1.2815 +  ac_site_file2=$ac_default_prefix/etc/config.site
  1.2816 +fi
  1.2817 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1.2818 +do
  1.2819 +  test "x$ac_site_file" = xNONE && continue
  1.2820 +  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1.2821 +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1.2822 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1.2823 +    sed 's/^/| /' "$ac_site_file" >&5
  1.2824 +    . "$ac_site_file" \
  1.2825 +      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2826 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2827 +as_fn_error $? "failed to load site script $ac_site_file
  1.2828 +See \`config.log' for more details" "$LINENO" 5 ; }
  1.2829 +  fi
  1.2830 +done
  1.2831 +
  1.2832 +if test -r "$cache_file"; then
  1.2833 +  # Some versions of bash will fail to source /dev/null (special files
  1.2834 +  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  1.2835 +  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1.2836 +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1.2837 +$as_echo "$as_me: loading cache $cache_file" >&6;}
  1.2838 +    case $cache_file in
  1.2839 +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1.2840 +      *)                      . "./$cache_file";;
  1.2841 +    esac
  1.2842 +  fi
  1.2843 +else
  1.2844 +  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1.2845 +$as_echo "$as_me: creating cache $cache_file" >&6;}
  1.2846 +  >$cache_file
  1.2847 +fi
  1.2848 +
  1.2849 +# Check that the precious variables saved in the cache have kept the same
  1.2850 +# value.
  1.2851 +ac_cache_corrupted=false
  1.2852 +for ac_var in $ac_precious_vars; do
  1.2853 +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1.2854 +  eval ac_new_set=\$ac_env_${ac_var}_set
  1.2855 +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1.2856 +  eval ac_new_val=\$ac_env_${ac_var}_value
  1.2857 +  case $ac_old_set,$ac_new_set in
  1.2858 +    set,)
  1.2859 +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1.2860 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1.2861 +      ac_cache_corrupted=: ;;
  1.2862 +    ,set)
  1.2863 +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1.2864 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1.2865 +      ac_cache_corrupted=: ;;
  1.2866 +    ,);;
  1.2867 +    *)
  1.2868 +      if test "x$ac_old_val" != "x$ac_new_val"; then
  1.2869 +	# differences in whitespace do not lead to failure.
  1.2870 +	ac_old_val_w=`echo x $ac_old_val`
  1.2871 +	ac_new_val_w=`echo x $ac_new_val`
  1.2872 +	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1.2873 +	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1.2874 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1.2875 +	  ac_cache_corrupted=:
  1.2876 +	else
  1.2877 +	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1.2878 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1.2879 +	  eval $ac_var=\$ac_old_val
  1.2880 +	fi
  1.2881 +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  1.2882 +$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1.2883 +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  1.2884 +$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1.2885 +      fi;;
  1.2886 +  esac
  1.2887 +  # Pass precious variables to config.status.
  1.2888 +  if test "$ac_new_set" = set; then
  1.2889 +    case $ac_new_val in
  1.2890 +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1.2891 +    *) ac_arg=$ac_var=$ac_new_val ;;
  1.2892 +    esac
  1.2893 +    case " $ac_configure_args " in
  1.2894 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1.2895 +      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1.2896 +    esac
  1.2897 +  fi
  1.2898 +done
  1.2899 +if $ac_cache_corrupted; then
  1.2900 +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2901 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2902 +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1.2903 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1.2904 +  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1.2905 +fi
  1.2906 +## -------------------- ##
  1.2907 +## Main body of script. ##
  1.2908 +## -------------------- ##
  1.2909 +
  1.2910 +ac_ext=c
  1.2911 +ac_cpp='$CPP $CPPFLAGS'
  1.2912 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.2913 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.2914 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1.2915 +
  1.2916 +
  1.2917 +
  1.2918 +ac_aux_dir=
  1.2919 +for ac_dir in build-aux "$srcdir"/build-aux; do
  1.2920 +  if test -f "$ac_dir/install-sh"; then
  1.2921 +    ac_aux_dir=$ac_dir
  1.2922 +    ac_install_sh="$ac_aux_dir/install-sh -c"
  1.2923 +    break
  1.2924 +  elif test -f "$ac_dir/install.sh"; then
  1.2925 +    ac_aux_dir=$ac_dir
  1.2926 +    ac_install_sh="$ac_aux_dir/install.sh -c"
  1.2927 +    break
  1.2928 +  elif test -f "$ac_dir/shtool"; then
  1.2929 +    ac_aux_dir=$ac_dir
  1.2930 +    ac_install_sh="$ac_aux_dir/shtool install -c"
  1.2931 +    break
  1.2932 +  fi
  1.2933 +done
  1.2934 +if test -z "$ac_aux_dir"; then
  1.2935 +  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  1.2936 +fi
  1.2937 +
  1.2938 +# These three variables are undocumented and unsupported,
  1.2939 +# and are intended to be withdrawn in a future Autoconf release.
  1.2940 +# They can cause serious problems if a builder's source tree is in a directory
  1.2941 +# whose full name contains unusual characters.
  1.2942 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1.2943 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1.2944 +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1.2945 +
  1.2946 +
  1.2947 +
  1.2948 +# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
  1.2949 +#
  1.2950 +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  1.2951 +#
  1.2952 +# This program is free software; you can redistribute it and/or modify
  1.2953 +# it under the terms of the GNU General Public License as published by
  1.2954 +# the Free Software Foundation; either version 2 of the License, or
  1.2955 +# (at your option) any later version.
  1.2956 +#
  1.2957 +# This program is distributed in the hope that it will be useful, but
  1.2958 +# WITHOUT ANY WARRANTY; without even the implied warranty of
  1.2959 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1.2960 +# General Public License for more details.
  1.2961 +#
  1.2962 +# You should have received a copy of the GNU General Public License
  1.2963 +# along with this program; if not, write to the Free Software
  1.2964 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  1.2965 +#
  1.2966 +# As a special exception to the GNU General Public License, if you
  1.2967 +# distribute this file as part of a program that contains a
  1.2968 +# configuration script generated by Autoconf, you may include it under
  1.2969 +# the same distribution terms that you use for the rest of that program.
  1.2970 +
  1.2971 +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
  1.2972 +# ----------------------------------
  1.2973 +# PKG_PROG_PKG_CONFIG
  1.2974 +
  1.2975 +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  1.2976 +#
  1.2977 +# Check to see whether a particular set of modules exists.  Similar
  1.2978 +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
  1.2979 +#
  1.2980 +#
  1.2981 +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
  1.2982 +# this or PKG_CHECK_MODULES is called, or make sure to call
  1.2983 +# PKG_CHECK_EXISTS manually
  1.2984 +# --------------------------------------------------------------
  1.2985 +
  1.2986 +
  1.2987 +
  1.2988 +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  1.2989 +# ---------------------------------------------
  1.2990 +# _PKG_CONFIG
  1.2991 +
  1.2992 +# _PKG_SHORT_ERRORS_SUPPORTED
  1.2993 +# -----------------------------
  1.2994 +# _PKG_SHORT_ERRORS_SUPPORTED
  1.2995 +
  1.2996 +
  1.2997 +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  1.2998 +# [ACTION-IF-NOT-FOUND])
  1.2999 +#
  1.3000 +#
  1.3001 +# Note that if there is a possibility the first call to
  1.3002 +# PKG_CHECK_MODULES might not happen, you should be sure to include an
  1.3003 +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  1.3004 +#
  1.3005 +#
  1.3006 +# --------------------------------------------------------------
  1.3007 +# PKG_CHECK_MODULES
  1.3008 +
  1.3009 +#
  1.3010 +# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
  1.3011 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  1.3012 +#
  1.3013 +# This code is free software; you can redistribute it and/or modify it
  1.3014 +# under the terms of the GNU General Public License version 2 only, as
  1.3015 +# published by the Free Software Foundation.  Oracle designates this
  1.3016 +# particular file as subject to the "Classpath" exception as provided
  1.3017 +# by Oracle in the LICENSE file that accompanied this code.
  1.3018 +#
  1.3019 +# This code is distributed in the hope that it will be useful, but WITHOUT
  1.3020 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  1.3021 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  1.3022 +# version 2 for more details (a copy is included in the LICENSE file that
  1.3023 +# accompanied this code).
  1.3024 +#
  1.3025 +# You should have received a copy of the GNU General Public License version
  1.3026 +# 2 along with this work; if not, write to the Free Software Foundation,
  1.3027 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  1.3028 +#
  1.3029 +# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  1.3030 +# or visit www.oracle.com if you need additional information or have any
  1.3031 +# questions.
  1.3032 +#
  1.3033 +
  1.3034 +
  1.3035 +
  1.3036 +
  1.3037 +
  1.3038 +
  1.3039 +
  1.3040 +
  1.3041 +
  1.3042 +
  1.3043 +#
  1.3044 +# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
  1.3045 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  1.3046 +#
  1.3047 +# This code is free software; you can redistribute it and/or modify it
  1.3048 +# under the terms of the GNU General Public License version 2 only, as
  1.3049 +# published by the Free Software Foundation.  Oracle designates this
  1.3050 +# particular file as subject to the "Classpath" exception as provided
  1.3051 +# by Oracle in the LICENSE file that accompanied this code.
  1.3052 +#
  1.3053 +# This code is distributed in the hope that it will be useful, but WITHOUT
  1.3054 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  1.3055 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  1.3056 +# version 2 for more details (a copy is included in the LICENSE file that
  1.3057 +# accompanied this code).
  1.3058 +#
  1.3059 +# You should have received a copy of the GNU General Public License version
  1.3060 +# 2 along with this work; if not, write to the Free Software Foundation,
  1.3061 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  1.3062 +#
  1.3063 +# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  1.3064 +# or visit www.oracle.com if you need additional information or have any
  1.3065 +# questions.
  1.3066 +#
  1.3067 +
  1.3068 +
  1.3069 +
  1.3070 +
  1.3071 +
  1.3072 +
  1.3073 +
  1.3074 +
  1.3075 +
  1.3076 +
  1.3077 +
  1.3078 +
  1.3079 +
  1.3080 +
  1.3081 +
  1.3082 +
  1.3083 +
  1.3084 +
  1.3085 +
  1.3086 +
  1.3087 +
  1.3088 +
  1.3089 +
  1.3090 +
  1.3091 +
  1.3092 +
  1.3093 +
  1.3094 +
  1.3095 +
  1.3096 +
  1.3097 +
  1.3098 +# Fixes paths on windows hosts to be mixed mode short.
  1.3099 +
  1.3100 +
  1.3101 +#
  1.3102 +# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
  1.3103 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  1.3104 +#
  1.3105 +# This code is free software; you can redistribute it and/or modify it
  1.3106 +# under the terms of the GNU General Public License version 2 only, as
  1.3107 +# published by the Free Software Foundation.  Oracle designates this
  1.3108 +# particular file as subject to the "Classpath" exception as provided
  1.3109 +# by Oracle in the LICENSE file that accompanied this code.
  1.3110 +#
  1.3111 +# This code is distributed in the hope that it will be useful, but WITHOUT
  1.3112 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  1.3113 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  1.3114 +# version 2 for more details (a copy is included in the LICENSE file that
  1.3115 +# accompanied this code).
  1.3116 +#
  1.3117 +# You should have received a copy of the GNU General Public License version
  1.3118 +# 2 along with this work; if not, write to the Free Software Foundation,
  1.3119 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  1.3120 +#
  1.3121 +# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  1.3122 +# or visit www.oracle.com if you need additional information or have any
  1.3123 +# questions.
  1.3124 +#
  1.3125 +
  1.3126 +
  1.3127 +
  1.3128 +
  1.3129 +
  1.3130 +#
  1.3131 +# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
  1.3132 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  1.3133 +#
  1.3134 +# This code is free software; you can redistribute it and/or modify it
  1.3135 +# under the terms of the GNU General Public License version 2 only, as
  1.3136 +# published by the Free Software Foundation.  Oracle designates this
  1.3137 +# particular file as subject to the "Classpath" exception as provided
  1.3138 +# by Oracle in the LICENSE file that accompanied this code.
  1.3139 +#
  1.3140 +# This code is distributed in the hope that it will be useful, but WITHOUT
  1.3141 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  1.3142 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  1.3143 +# version 2 for more details (a copy is included in the LICENSE file that
  1.3144 +# accompanied this code).
  1.3145 +#
  1.3146 +# You should have received a copy of the GNU General Public License version
  1.3147 +# 2 along with this work; if not, write to the Free Software Foundation,
  1.3148 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  1.3149 +#
  1.3150 +# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  1.3151 +# or visit www.oracle.com if you need additional information or have any
  1.3152 +# questions.
  1.3153 +#
  1.3154 +
  1.3155 +function help_on_build_dependency {
  1.3156 +    # Print a helpful message on how to acquire the necessary build dependency.
  1.3157 +    # $1 is the help tag: freetyp2, cups, pulse, alsa etc
  1.3158 +    MISSING_DEPENDENCY=$1
  1.3159 +    PKGHANDLER_COMMAND=
  1.3160 +
  1.3161 +    for ac_prog in apt-get yum port pkgutil pkgadd
  1.3162 +do
  1.3163 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.3164 +set dummy $ac_prog; ac_word=$2
  1.3165 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3166 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3167 +if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
  1.3168 +  $as_echo_n "(cached) " >&6
  1.3169 +else
  1.3170 +  if test -n "$PKGHANDLER"; then
  1.3171 +  ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
  1.3172 +else
  1.3173 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3174 +for as_dir in $PATH
  1.3175 +do
  1.3176 +  IFS=$as_save_IFS
  1.3177 +  test -z "$as_dir" && as_dir=.
  1.3178 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3179 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3180 +    ac_cv_prog_PKGHANDLER="$ac_prog"
  1.3181 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3182 +    break 2
  1.3183 +  fi
  1.3184 +done
  1.3185 +  done
  1.3186 +IFS=$as_save_IFS
  1.3187 +
  1.3188 +fi
  1.3189 +fi
  1.3190 +PKGHANDLER=$ac_cv_prog_PKGHANDLER
  1.3191 +if test -n "$PKGHANDLER"; then
  1.3192 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
  1.3193 +$as_echo "$PKGHANDLER" >&6; }
  1.3194 +else
  1.3195 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3196 +$as_echo "no" >&6; }
  1.3197 +fi
  1.3198 +
  1.3199 +
  1.3200 +  test -n "$PKGHANDLER" && break
  1.3201 +done
  1.3202 +
  1.3203 +
  1.3204 +    case $PKGHANDLER in
  1.3205 +	apt-get)
  1.3206 +                apt_help     $MISSING_DEPENDENCY ;;
  1.3207 +        yum)
  1.3208 +                yum_help     $MISSING_DEPENDENCY ;;
  1.3209 +	port)
  1.3210 +                port_help    $MISSING_DEPENDENCY ;;
  1.3211 +	pkgutil)
  1.3212 +                pkgutil_help $MISSING_DEPENDENCY ;;
  1.3213 +	pkgadd)
  1.3214 +                pkgadd_help  $MISSING_DEPENDENCY ;;
  1.3215 +    * )
  1.3216 +      break ;;
  1.3217 +    esac
  1.3218 +
  1.3219 +    if test "x$PKGHANDLER_COMMAND" != x; then
  1.3220 +        HELP_MSG="Try running '$PKGHANDLER_COMMAND'."
  1.3221 +    fi
  1.3222 +}
  1.3223 +
  1.3224 +function apt_help {
  1.3225 +    case $1 in
  1.3226 +    devkit)
  1.3227 +        PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
  1.3228 +    openjdk)
  1.3229 +        PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
  1.3230 +    alsa)
  1.3231 +        PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
  1.3232 +    cups)
  1.3233 +        PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
  1.3234 +    freetype2)
  1.3235 +        PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
  1.3236 +    pulse)
  1.3237 +        PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
  1.3238 +    x11)
  1.3239 +        PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;;
  1.3240 +    ccache)
  1.3241 +        PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
  1.3242 +    * )
  1.3243 +       break ;;
  1.3244 +    esac
  1.3245 +}
  1.3246 +
  1.3247 +function yum_help {
  1.3248 +    case $1 in
  1.3249 +    devkit)
  1.3250 +        PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
  1.3251 +    openjdk)
  1.3252 +        PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
  1.3253 +    alsa)
  1.3254 +        PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
  1.3255 +    cups)
  1.3256 +        PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
  1.3257 +    freetype2)
  1.3258 +        PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;;
  1.3259 +    pulse)
  1.3260 +        PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
  1.3261 +    x11)
  1.3262 +        PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;;
  1.3263 +    ccache)
  1.3264 +        PKGHANDLER_COMMAND="sudo yum install ccache" ;;
  1.3265 +    * )
  1.3266 +       break ;;
  1.3267 +    esac
  1.3268 +}
  1.3269 +
  1.3270 +function port_help {
  1.3271 +    PKGHANDLER_COMMAND=""
  1.3272 +}
  1.3273 +
  1.3274 +function pkgutil_help {
  1.3275 +    PKGHANDLER_COMMAND=""
  1.3276 +}
  1.3277 +
  1.3278 +function pkgadd_help {
  1.3279 +    PKGHANDLER_COMMAND=""
  1.3280 +}
  1.3281 +
  1.3282 +
  1.3283 +# Save the command line. Do this very early, before it is lost by calling autoconf macros.
  1.3284 +CONFIGURE_COMMAND_LINE="$@"
  1.3285 +
  1.3286 +
  1.3287 +# Locate the directory of this script.
  1.3288 +SCRIPT="$0"
  1.3289 +
  1.3290 +    if test "x$BUILD_OS" != xwindows; then
  1.3291 +        # Follow a chain of symbolic links. Use readlink
  1.3292 +        # where it exists, else fall back to horribly
  1.3293 +        # complicated shell code.
  1.3294 +        # Extract the first word of "readlink", so it can be a program name with args.
  1.3295 +set dummy readlink; ac_word=$2
  1.3296 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3297 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3298 +if test "${ac_cv_path_READLINK+set}" = set; then :
  1.3299 +  $as_echo_n "(cached) " >&6
  1.3300 +else
  1.3301 +  case $READLINK in
  1.3302 +  [\\/]* | ?:[\\/]*)
  1.3303 +  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
  1.3304 +  ;;
  1.3305 +  *)
  1.3306 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3307 +for as_dir in $PATH
  1.3308 +do
  1.3309 +  IFS=$as_save_IFS
  1.3310 +  test -z "$as_dir" && as_dir=.
  1.3311 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3312 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3313 +    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
  1.3314 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3315 +    break 2
  1.3316 +  fi
  1.3317 +done
  1.3318 +  done
  1.3319 +IFS=$as_save_IFS
  1.3320 +
  1.3321 +  ;;
  1.3322 +esac
  1.3323 +fi
  1.3324 +READLINK=$ac_cv_path_READLINK
  1.3325 +if test -n "$READLINK"; then
  1.3326 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
  1.3327 +$as_echo "$READLINK" >&6; }
  1.3328 +else
  1.3329 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3330 +$as_echo "no" >&6; }
  1.3331 +fi
  1.3332 +
  1.3333 +
  1.3334 +        if test "x$READLINK_TESTED" != yes; then
  1.3335 +            # On MacOSX there is a readlink tool with a different
  1.3336 +            # purpose than the GNU readlink tool. Check the found readlink.
  1.3337 +            ISGNU=`$READLINK --help 2>&1 | grep GNU`
  1.3338 +            if test "x$ISGNU" = x; then
  1.3339 +                 # A readlink that we do not know how to use.
  1.3340 +                 # Are there other non-GNU readlinks out there?
  1.3341 +                 READLINK_TESTED=yes
  1.3342 +                 READLINK=
  1.3343 +            fi
  1.3344 +        fi
  1.3345 +
  1.3346 +        if test "x$READLINK" != x; then
  1.3347 +            SCRIPT=`$READLINK -f $SCRIPT`
  1.3348 +        else
  1.3349 +            STARTDIR=$PWD
  1.3350 +            COUNTER=0
  1.3351 +            DIR=`dirname $SCRIPT`
  1.3352 +            FIL=`basename $SCRIPT`
  1.3353 +            while test $COUNTER -lt 20; do
  1.3354 +                ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'`
  1.3355 +                if test "x$ISLINK" == x; then
  1.3356 +                    # This is not a symbolic link! We are done!
  1.3357 +                    break
  1.3358 +                fi
  1.3359 +                # The link might be relative! We have to use cd to travel safely.
  1.3360 +                cd $DIR
  1.3361 +                cd `dirname $ISLINK`
  1.3362 +                DIR=`pwd`
  1.3363 +                FIL=`basename $ISLINK`
  1.3364 +                let COUNTER=COUNTER+1
  1.3365 +            done
  1.3366 +            cd $STARTDIR
  1.3367 +            SCRIPT=$DIR/$FIL
  1.3368 +        fi
  1.3369 +    fi
  1.3370 +
  1.3371 +AUTOCONF_DIR=`dirname $0`
  1.3372 +
  1.3373 +# Start with tools that do not need have cross compilation support
  1.3374 +# and can be expected to be found in the default PATH. These tools are
  1.3375 +# used by configure. Nor are these tools expected to be found in the
  1.3376 +# devkit from the builddeps server either, since they are
  1.3377 +# needed to download the devkit.
  1.3378 +for ac_prog in gawk mawk nawk awk
  1.3379 +do
  1.3380 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.3381 +set dummy $ac_prog; ac_word=$2
  1.3382 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3383 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3384 +if test "${ac_cv_prog_AWK+set}" = set; then :
  1.3385 +  $as_echo_n "(cached) " >&6
  1.3386 +else
  1.3387 +  if test -n "$AWK"; then
  1.3388 +  ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1.3389 +else
  1.3390 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3391 +for as_dir in $PATH
  1.3392 +do
  1.3393 +  IFS=$as_save_IFS
  1.3394 +  test -z "$as_dir" && as_dir=.
  1.3395 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3396 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3397 +    ac_cv_prog_AWK="$ac_prog"
  1.3398 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3399 +    break 2
  1.3400 +  fi
  1.3401 +done
  1.3402 +  done
  1.3403 +IFS=$as_save_IFS
  1.3404 +
  1.3405 +fi
  1.3406 +fi
  1.3407 +AWK=$ac_cv_prog_AWK
  1.3408 +if test -n "$AWK"; then
  1.3409 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  1.3410 +$as_echo "$AWK" >&6; }
  1.3411 +else
  1.3412 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3413 +$as_echo "no" >&6; }
  1.3414 +fi
  1.3415 +
  1.3416 +
  1.3417 +  test -n "$AWK" && break
  1.3418 +done
  1.3419 +
  1.3420 +
  1.3421 +    # Test that variable AWK is not empty.
  1.3422 +    if test "" = "$AWK"; then as_fn_error $? "Could not find awk !" "$LINENO" 5 ; fi
  1.3423 +
  1.3424 +# Extract the first word of "cat", so it can be a program name with args.
  1.3425 +set dummy cat; ac_word=$2
  1.3426 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3427 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3428 +if test "${ac_cv_path_CAT+set}" = set; then :
  1.3429 +  $as_echo_n "(cached) " >&6
  1.3430 +else
  1.3431 +  case $CAT in
  1.3432 +  [\\/]* | ?:[\\/]*)
  1.3433 +  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
  1.3434 +  ;;
  1.3435 +  *)
  1.3436 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3437 +for as_dir in $PATH
  1.3438 +do
  1.3439 +  IFS=$as_save_IFS
  1.3440 +  test -z "$as_dir" && as_dir=.
  1.3441 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3442 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3443 +    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
  1.3444 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3445 +    break 2
  1.3446 +  fi
  1.3447 +done
  1.3448 +  done
  1.3449 +IFS=$as_save_IFS
  1.3450 +
  1.3451 +  ;;
  1.3452 +esac
  1.3453 +fi
  1.3454 +CAT=$ac_cv_path_CAT
  1.3455 +if test -n "$CAT"; then
  1.3456 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
  1.3457 +$as_echo "$CAT" >&6; }
  1.3458 +else
  1.3459 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3460 +$as_echo "no" >&6; }
  1.3461 +fi
  1.3462 +
  1.3463 +
  1.3464 +
  1.3465 +    # Test that variable CAT is not empty.
  1.3466 +    if test "" = "$CAT"; then as_fn_error $? "Could not find cat !" "$LINENO" 5 ; fi
  1.3467 +
  1.3468 +# Extract the first word of "chmod", so it can be a program name with args.
  1.3469 +set dummy chmod; ac_word=$2
  1.3470 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3471 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3472 +if test "${ac_cv_path_CHMOD+set}" = set; then :
  1.3473 +  $as_echo_n "(cached) " >&6
  1.3474 +else
  1.3475 +  case $CHMOD in
  1.3476 +  [\\/]* | ?:[\\/]*)
  1.3477 +  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
  1.3478 +  ;;
  1.3479 +  *)
  1.3480 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3481 +for as_dir in $PATH
  1.3482 +do
  1.3483 +  IFS=$as_save_IFS
  1.3484 +  test -z "$as_dir" && as_dir=.
  1.3485 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3486 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3487 +    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
  1.3488 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3489 +    break 2
  1.3490 +  fi
  1.3491 +done
  1.3492 +  done
  1.3493 +IFS=$as_save_IFS
  1.3494 +
  1.3495 +  ;;
  1.3496 +esac
  1.3497 +fi
  1.3498 +CHMOD=$ac_cv_path_CHMOD
  1.3499 +if test -n "$CHMOD"; then
  1.3500 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
  1.3501 +$as_echo "$CHMOD" >&6; }
  1.3502 +else
  1.3503 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3504 +$as_echo "no" >&6; }
  1.3505 +fi
  1.3506 +
  1.3507 +
  1.3508 +
  1.3509 +    # Test that variable CHMOD is not empty.
  1.3510 +    if test "" = "$CHMOD"; then as_fn_error $? "Could not find chmod !" "$LINENO" 5 ; fi
  1.3511 +
  1.3512 +# Extract the first word of "cp", so it can be a program name with args.
  1.3513 +set dummy cp; ac_word=$2
  1.3514 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3515 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3516 +if test "${ac_cv_path_CP+set}" = set; then :
  1.3517 +  $as_echo_n "(cached) " >&6
  1.3518 +else
  1.3519 +  case $CP in
  1.3520 +  [\\/]* | ?:[\\/]*)
  1.3521 +  ac_cv_path_CP="$CP" # Let the user override the test with a path.
  1.3522 +  ;;
  1.3523 +  *)
  1.3524 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3525 +for as_dir in $PATH
  1.3526 +do
  1.3527 +  IFS=$as_save_IFS
  1.3528 +  test -z "$as_dir" && as_dir=.
  1.3529 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3530 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3531 +    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
  1.3532 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3533 +    break 2
  1.3534 +  fi
  1.3535 +done
  1.3536 +  done
  1.3537 +IFS=$as_save_IFS
  1.3538 +
  1.3539 +  ;;
  1.3540 +esac
  1.3541 +fi
  1.3542 +CP=$ac_cv_path_CP
  1.3543 +if test -n "$CP"; then
  1.3544 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
  1.3545 +$as_echo "$CP" >&6; }
  1.3546 +else
  1.3547 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3548 +$as_echo "no" >&6; }
  1.3549 +fi
  1.3550 +
  1.3551 +
  1.3552 +
  1.3553 +    # Test that variable CP is not empty.
  1.3554 +    if test "" = "$CP"; then as_fn_error $? "Could not find cp !" "$LINENO" 5 ; fi
  1.3555 +
  1.3556 +# Extract the first word of "cpio", so it can be a program name with args.
  1.3557 +set dummy cpio; ac_word=$2
  1.3558 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3559 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3560 +if test "${ac_cv_path_CPIO+set}" = set; then :
  1.3561 +  $as_echo_n "(cached) " >&6
  1.3562 +else
  1.3563 +  case $CPIO in
  1.3564 +  [\\/]* | ?:[\\/]*)
  1.3565 +  ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
  1.3566 +  ;;
  1.3567 +  *)
  1.3568 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3569 +for as_dir in $PATH
  1.3570 +do
  1.3571 +  IFS=$as_save_IFS
  1.3572 +  test -z "$as_dir" && as_dir=.
  1.3573 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3574 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3575 +    ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
  1.3576 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3577 +    break 2
  1.3578 +  fi
  1.3579 +done
  1.3580 +  done
  1.3581 +IFS=$as_save_IFS
  1.3582 +
  1.3583 +  ;;
  1.3584 +esac
  1.3585 +fi
  1.3586 +CPIO=$ac_cv_path_CPIO
  1.3587 +if test -n "$CPIO"; then
  1.3588 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
  1.3589 +$as_echo "$CPIO" >&6; }
  1.3590 +else
  1.3591 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3592 +$as_echo "no" >&6; }
  1.3593 +fi
  1.3594 +
  1.3595 +
  1.3596 +
  1.3597 +    # Test that variable CPIO is not empty.
  1.3598 +    if test "" = "$CPIO"; then as_fn_error $? "Could not find cpio !" "$LINENO" 5 ; fi
  1.3599 +
  1.3600 +# Extract the first word of "cut", so it can be a program name with args.
  1.3601 +set dummy cut; ac_word=$2
  1.3602 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3603 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3604 +if test "${ac_cv_path_CUT+set}" = set; then :
  1.3605 +  $as_echo_n "(cached) " >&6
  1.3606 +else
  1.3607 +  case $CUT in
  1.3608 +  [\\/]* | ?:[\\/]*)
  1.3609 +  ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  1.3610 +  ;;
  1.3611 +  *)
  1.3612 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3613 +for as_dir in $PATH
  1.3614 +do
  1.3615 +  IFS=$as_save_IFS
  1.3616 +  test -z "$as_dir" && as_dir=.
  1.3617 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3618 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3619 +    ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  1.3620 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3621 +    break 2
  1.3622 +  fi
  1.3623 +done
  1.3624 +  done
  1.3625 +IFS=$as_save_IFS
  1.3626 +
  1.3627 +  ;;
  1.3628 +esac
  1.3629 +fi
  1.3630 +CUT=$ac_cv_path_CUT
  1.3631 +if test -n "$CUT"; then
  1.3632 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  1.3633 +$as_echo "$CUT" >&6; }
  1.3634 +else
  1.3635 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3636 +$as_echo "no" >&6; }
  1.3637 +fi
  1.3638 +
  1.3639 +
  1.3640 +
  1.3641 +    # Test that variable CUT is not empty.
  1.3642 +    if test "" = "$CUT"; then as_fn_error $? "Could not find cut !" "$LINENO" 5 ; fi
  1.3643 +
  1.3644 +# Extract the first word of "date", so it can be a program name with args.
  1.3645 +set dummy date; ac_word=$2
  1.3646 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3647 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3648 +if test "${ac_cv_path_DATE+set}" = set; then :
  1.3649 +  $as_echo_n "(cached) " >&6
  1.3650 +else
  1.3651 +  case $DATE in
  1.3652 +  [\\/]* | ?:[\\/]*)
  1.3653 +  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
  1.3654 +  ;;
  1.3655 +  *)
  1.3656 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3657 +for as_dir in $PATH
  1.3658 +do
  1.3659 +  IFS=$as_save_IFS
  1.3660 +  test -z "$as_dir" && as_dir=.
  1.3661 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3662 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3663 +    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
  1.3664 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3665 +    break 2
  1.3666 +  fi
  1.3667 +done
  1.3668 +  done
  1.3669 +IFS=$as_save_IFS
  1.3670 +
  1.3671 +  ;;
  1.3672 +esac
  1.3673 +fi
  1.3674 +DATE=$ac_cv_path_DATE
  1.3675 +if test -n "$DATE"; then
  1.3676 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
  1.3677 +$as_echo "$DATE" >&6; }
  1.3678 +else
  1.3679 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3680 +$as_echo "no" >&6; }
  1.3681 +fi
  1.3682 +
  1.3683 +
  1.3684 +
  1.3685 +    # Test that variable DATE is not empty.
  1.3686 +    if test "" = "$DATE"; then as_fn_error $? "Could not find date !" "$LINENO" 5 ; fi
  1.3687 +
  1.3688 +# Extract the first word of "df", so it can be a program name with args.
  1.3689 +set dummy df; ac_word=$2
  1.3690 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3691 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3692 +if test "${ac_cv_path_DF+set}" = set; then :
  1.3693 +  $as_echo_n "(cached) " >&6
  1.3694 +else
  1.3695 +  case $DF in
  1.3696 +  [\\/]* | ?:[\\/]*)
  1.3697 +  ac_cv_path_DF="$DF" # Let the user override the test with a path.
  1.3698 +  ;;
  1.3699 +  *)
  1.3700 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3701 +for as_dir in $PATH
  1.3702 +do
  1.3703 +  IFS=$as_save_IFS
  1.3704 +  test -z "$as_dir" && as_dir=.
  1.3705 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3706 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3707 +    ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
  1.3708 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3709 +    break 2
  1.3710 +  fi
  1.3711 +done
  1.3712 +  done
  1.3713 +IFS=$as_save_IFS
  1.3714 +
  1.3715 +  ;;
  1.3716 +esac
  1.3717 +fi
  1.3718 +DF=$ac_cv_path_DF
  1.3719 +if test -n "$DF"; then
  1.3720 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
  1.3721 +$as_echo "$DF" >&6; }
  1.3722 +else
  1.3723 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3724 +$as_echo "no" >&6; }
  1.3725 +fi
  1.3726 +
  1.3727 +
  1.3728 +
  1.3729 +    # Test that variable DF is not empty.
  1.3730 +    if test "" = "$DF"; then as_fn_error $? "Could not find df !" "$LINENO" 5 ; fi
  1.3731 +
  1.3732 +# Extract the first word of "diff", so it can be a program name with args.
  1.3733 +set dummy diff; ac_word=$2
  1.3734 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3735 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3736 +if test "${ac_cv_path_DIFF+set}" = set; then :
  1.3737 +  $as_echo_n "(cached) " >&6
  1.3738 +else
  1.3739 +  case $DIFF in
  1.3740 +  [\\/]* | ?:[\\/]*)
  1.3741 +  ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
  1.3742 +  ;;
  1.3743 +  *)
  1.3744 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3745 +for as_dir in $PATH
  1.3746 +do
  1.3747 +  IFS=$as_save_IFS
  1.3748 +  test -z "$as_dir" && as_dir=.
  1.3749 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3750 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3751 +    ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
  1.3752 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3753 +    break 2
  1.3754 +  fi
  1.3755 +done
  1.3756 +  done
  1.3757 +IFS=$as_save_IFS
  1.3758 +
  1.3759 +  ;;
  1.3760 +esac
  1.3761 +fi
  1.3762 +DIFF=$ac_cv_path_DIFF
  1.3763 +if test -n "$DIFF"; then
  1.3764 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  1.3765 +$as_echo "$DIFF" >&6; }
  1.3766 +else
  1.3767 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3768 +$as_echo "no" >&6; }
  1.3769 +fi
  1.3770 +
  1.3771 +
  1.3772 +
  1.3773 +    # Test that variable DIFF is not empty.
  1.3774 +    if test "" = "$DIFF"; then as_fn_error $? "Could not find diff !" "$LINENO" 5 ; fi
  1.3775 +
  1.3776 +# Warning echo is really, really unportable!!!!! Different
  1.3777 +# behaviour in bash and dash and in a lot of other shells!
  1.3778 +# Use printf for serious work!
  1.3779 +# Extract the first word of "echo", so it can be a program name with args.
  1.3780 +set dummy echo; ac_word=$2
  1.3781 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3782 +$as_echo_n "checking for $ac_word... " >&6; }
  1.3783 +if test "${ac_cv_path_ECHO+set}" = set; then :
  1.3784 +  $as_echo_n "(cached) " >&6
  1.3785 +else
  1.3786 +  case $ECHO in
  1.3787 +  [\\/]* | ?:[\\/]*)
  1.3788 +  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  1.3789 +  ;;
  1.3790 +  *)
  1.3791 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3792 +for as_dir in $PATH
  1.3793 +do
  1.3794 +  IFS=$as_save_IFS
  1.3795 +  test -z "$as_dir" && as_dir=.
  1.3796 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3797 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.3798 +    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  1.3799 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.3800 +    break 2
  1.3801 +  fi
  1.3802 +done
  1.3803 +  done
  1.3804 +IFS=$as_save_IFS
  1.3805 +
  1.3806 +  ;;
  1.3807 +esac
  1.3808 +fi
  1.3809 +ECHO=$ac_cv_path_ECHO
  1.3810 +if test -n "$ECHO"; then
  1.3811 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  1.3812 +$as_echo "$ECHO" >&6; }
  1.3813 +else
  1.3814 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.3815 +$as_echo "no" >&6; }
  1.3816 +fi
  1.3817 +
  1.3818 +
  1.3819 +
  1.3820 +    # Test that variable ECHO is not empty.
  1.3821 +    if test "" = "$ECHO"; then as_fn_error $? "Could not find echo !" "$LINENO" 5 ; fi
  1.3822 +
  1.3823 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  1.3824 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  1.3825 +if test "${ac_cv_path_GREP+set}" = set; then :
  1.3826 +  $as_echo_n "(cached) " >&6
  1.3827 +else
  1.3828 +  if test -z "$GREP"; then
  1.3829 +  ac_path_GREP_found=false
  1.3830 +  # Loop through the user's path and test for each of PROGNAME-LIST
  1.3831 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3832 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  1.3833 +do
  1.3834 +  IFS=$as_save_IFS
  1.3835 +  test -z "$as_dir" && as_dir=.
  1.3836 +    for ac_prog in grep ggrep; do
  1.3837 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3838 +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  1.3839 +      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  1.3840 +# Check for GNU ac_path_GREP and select it if it is found.
  1.3841 +  # Check for GNU $ac_path_GREP
  1.3842 +case `"$ac_path_GREP" --version 2>&1` in
  1.3843 +*GNU*)
  1.3844 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  1.3845 +*)
  1.3846 +  ac_count=0
  1.3847 +  $as_echo_n 0123456789 >"conftest.in"
  1.3848 +  while :
  1.3849 +  do
  1.3850 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  1.3851 +    mv "conftest.tmp" "conftest.in"
  1.3852 +    cp "conftest.in" "conftest.nl"
  1.3853 +    $as_echo 'GREP' >> "conftest.nl"
  1.3854 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  1.3855 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  1.3856 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
  1.3857 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
  1.3858 +      # Best one so far, save it but keep looking for a better one
  1.3859 +      ac_cv_path_GREP="$ac_path_GREP"
  1.3860 +      ac_path_GREP_max=$ac_count
  1.3861 +    fi
  1.3862 +    # 10*(2^10) chars as input seems more than enough
  1.3863 +    test $ac_count -gt 10 && break
  1.3864 +  done
  1.3865 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  1.3866 +esac
  1.3867 +
  1.3868 +      $ac_path_GREP_found && break 3
  1.3869 +    done
  1.3870 +  done
  1.3871 +  done
  1.3872 +IFS=$as_save_IFS
  1.3873 +  if test -z "$ac_cv_path_GREP"; then
  1.3874 +    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  1.3875 +  fi
  1.3876 +else
  1.3877 +  ac_cv_path_GREP=$GREP
  1.3878 +fi
  1.3879 +
  1.3880 +fi
  1.3881 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  1.3882 +$as_echo "$ac_cv_path_GREP" >&6; }
  1.3883 + GREP="$ac_cv_path_GREP"
  1.3884 +
  1.3885 +
  1.3886 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  1.3887 +$as_echo_n "checking for egrep... " >&6; }
  1.3888 +if test "${ac_cv_path_EGREP+set}" = set; then :
  1.3889 +  $as_echo_n "(cached) " >&6
  1.3890 +else
  1.3891 +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  1.3892 +   then ac_cv_path_EGREP="$GREP -E"
  1.3893 +   else
  1.3894 +     if test -z "$EGREP"; then
  1.3895 +  ac_path_EGREP_found=false
  1.3896 +  # Loop through the user's path and test for each of PROGNAME-LIST
  1.3897 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3898 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  1.3899 +do
  1.3900 +  IFS=$as_save_IFS
  1.3901 +  test -z "$as_dir" && as_dir=.
  1.3902 +    for ac_prog in egrep; do
  1.3903 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3904 +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  1.3905 +      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  1.3906 +# Check for GNU ac_path_EGREP and select it if it is found.
  1.3907 +  # Check for GNU $ac_path_EGREP
  1.3908 +case `"$ac_path_EGREP" --version 2>&1` in
  1.3909 +*GNU*)
  1.3910 +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  1.3911 +*)
  1.3912 +  ac_count=0
  1.3913 +  $as_echo_n 0123456789 >"conftest.in"
  1.3914 +  while :
  1.3915 +  do
  1.3916 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  1.3917 +    mv "conftest.tmp" "conftest.in"
  1.3918 +    cp "conftest.in" "conftest.nl"
  1.3919 +    $as_echo 'EGREP' >> "conftest.nl"
  1.3920 +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  1.3921 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  1.3922 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
  1.3923 +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  1.3924 +      # Best one so far, save it but keep looking for a better one
  1.3925 +      ac_cv_path_EGREP="$ac_path_EGREP"
  1.3926 +      ac_path_EGREP_max=$ac_count
  1.3927 +    fi
  1.3928 +    # 10*(2^10) chars as input seems more than enough
  1.3929 +    test $ac_count -gt 10 && break
  1.3930 +  done
  1.3931 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  1.3932 +esac
  1.3933 +
  1.3934 +      $ac_path_EGREP_found && break 3
  1.3935 +    done
  1.3936 +  done
  1.3937 +  done
  1.3938 +IFS=$as_save_IFS
  1.3939 +  if test -z "$ac_cv_path_EGREP"; then
  1.3940 +    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  1.3941 +  fi
  1.3942 +else
  1.3943 +  ac_cv_path_EGREP=$EGREP
  1.3944 +fi
  1.3945 +
  1.3946 +   fi
  1.3947 +fi
  1.3948 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  1.3949 +$as_echo "$ac_cv_path_EGREP" >&6; }
  1.3950 + EGREP="$ac_cv_path_EGREP"
  1.3951 +
  1.3952 +
  1.3953 +
  1.3954 +    # Test that variable EGREP is not empty.
  1.3955 +    if test "" = "$EGREP"; then as_fn_error $? "Could not find egrep !" "$LINENO" 5 ; fi
  1.3956 +
  1.3957 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  1.3958 +$as_echo_n "checking for fgrep... " >&6; }
  1.3959 +if test "${ac_cv_path_FGREP+set}" = set; then :
  1.3960 +  $as_echo_n "(cached) " >&6
  1.3961 +else
  1.3962 +  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  1.3963 +   then ac_cv_path_FGREP="$GREP -F"
  1.3964 +   else
  1.3965 +     if test -z "$FGREP"; then
  1.3966 +  ac_path_FGREP_found=false
  1.3967 +  # Loop through the user's path and test for each of PROGNAME-LIST
  1.3968 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3969 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  1.3970 +do
  1.3971 +  IFS=$as_save_IFS
  1.3972 +  test -z "$as_dir" && as_dir=.
  1.3973 +    for ac_prog in fgrep; do
  1.3974 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.3975 +      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  1.3976 +      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  1.3977 +# Check for GNU ac_path_FGREP and select it if it is found.
  1.3978 +  # Check for GNU $ac_path_FGREP
  1.3979 +case `"$ac_path_FGREP" --version 2>&1` in
  1.3980 +*GNU*)
  1.3981 +  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  1.3982 +*)
  1.3983 +  ac_count=0
  1.3984 +  $as_echo_n 0123456789 >"conftest.in"
  1.3985 +  while :
  1.3986 +  do
  1.3987 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  1.3988 +    mv "conftest.tmp" "conftest.in"
  1.3989 +    cp "conftest.in" "conftest.nl"
  1.3990 +    $as_echo 'FGREP' >> "conftest.nl"
  1.3991 +    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  1.3992 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  1.3993 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
  1.3994 +    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  1.3995 +      # Best one so far, save it but keep looking for a better one
  1.3996 +      ac_cv_path_FGREP="$ac_path_FGREP"
  1.3997 +      ac_path_FGREP_max=$ac_count
  1.3998 +    fi
  1.3999 +    # 10*(2^10) chars as input seems more than enough
  1.4000 +    test $ac_count -gt 10 && break
  1.4001 +  done
  1.4002 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  1.4003 +esac
  1.4004 +
  1.4005 +      $ac_path_FGREP_found && break 3
  1.4006 +    done
  1.4007 +  done
  1.4008 +  done
  1.4009 +IFS=$as_save_IFS
  1.4010 +  if test -z "$ac_cv_path_FGREP"; then
  1.4011 +    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  1.4012 +  fi
  1.4013 +else
  1.4014 +  ac_cv_path_FGREP=$FGREP
  1.4015 +fi
  1.4016 +
  1.4017 +   fi
  1.4018 +fi
  1.4019 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  1.4020 +$as_echo "$ac_cv_path_FGREP" >&6; }
  1.4021 + FGREP="$ac_cv_path_FGREP"
  1.4022 +
  1.4023 +
  1.4024 +
  1.4025 +    # Test that variable FGREP is not empty.
  1.4026 +    if test "" = "$FGREP"; then as_fn_error $? "Could not find fgrep !" "$LINENO" 5 ; fi
  1.4027 +
  1.4028 +
  1.4029 +# Extract the first word of "find", so it can be a program name with args.
  1.4030 +set dummy find; ac_word=$2
  1.4031 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4032 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4033 +if test "${ac_cv_path_FIND+set}" = set; then :
  1.4034 +  $as_echo_n "(cached) " >&6
  1.4035 +else
  1.4036 +  case $FIND in
  1.4037 +  [\\/]* | ?:[\\/]*)
  1.4038 +  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  1.4039 +  ;;
  1.4040 +  *)
  1.4041 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4042 +for as_dir in $PATH
  1.4043 +do
  1.4044 +  IFS=$as_save_IFS
  1.4045 +  test -z "$as_dir" && as_dir=.
  1.4046 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4047 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4048 +    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  1.4049 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4050 +    break 2
  1.4051 +  fi
  1.4052 +done
  1.4053 +  done
  1.4054 +IFS=$as_save_IFS
  1.4055 +
  1.4056 +  ;;
  1.4057 +esac
  1.4058 +fi
  1.4059 +FIND=$ac_cv_path_FIND
  1.4060 +if test -n "$FIND"; then
  1.4061 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  1.4062 +$as_echo "$FIND" >&6; }
  1.4063 +else
  1.4064 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4065 +$as_echo "no" >&6; }
  1.4066 +fi
  1.4067 +
  1.4068 +
  1.4069 +
  1.4070 +    # Test that variable FIND is not empty.
  1.4071 +    if test "" = "$FIND"; then as_fn_error $? "Could not find find !" "$LINENO" 5 ; fi
  1.4072 +
  1.4073 +
  1.4074 +    # Test if find supports -delete
  1.4075 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
  1.4076 +$as_echo_n "checking if find supports -delete... " >&6; }
  1.4077 +    FIND_DELETE="-delete"
  1.4078 +
  1.4079 +    DELETEDIR=`mktemp -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
  1.4080 +
  1.4081 +    echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
  1.4082 +
  1.4083 +    TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
  1.4084 +    if test -f $DELETEDIR/TestIfFindSupportsDelete; then
  1.4085 +        # No, it does not.
  1.4086 +        rm $DELETEDIR/TestIfFindSupportsDelete
  1.4087 +        FIND_DELETE="-exec rm \{\} \+"
  1.4088 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4089 +$as_echo "no" >&6; }
  1.4090 +    else
  1.4091 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1.4092 +$as_echo "yes" >&6; }
  1.4093 +    fi
  1.4094 +    rmdir $DELETEDIR
  1.4095 +
  1.4096 +
  1.4097 +
  1.4098 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  1.4099 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  1.4100 +if test "${ac_cv_path_GREP+set}" = set; then :
  1.4101 +  $as_echo_n "(cached) " >&6
  1.4102 +else
  1.4103 +  if test -z "$GREP"; then
  1.4104 +  ac_path_GREP_found=false
  1.4105 +  # Loop through the user's path and test for each of PROGNAME-LIST
  1.4106 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4107 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  1.4108 +do
  1.4109 +  IFS=$as_save_IFS
  1.4110 +  test -z "$as_dir" && as_dir=.
  1.4111 +    for ac_prog in grep ggrep; do
  1.4112 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4113 +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  1.4114 +      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  1.4115 +# Check for GNU ac_path_GREP and select it if it is found.
  1.4116 +  # Check for GNU $ac_path_GREP
  1.4117 +case `"$ac_path_GREP" --version 2>&1` in
  1.4118 +*GNU*)
  1.4119 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  1.4120 +*)
  1.4121 +  ac_count=0
  1.4122 +  $as_echo_n 0123456789 >"conftest.in"
  1.4123 +  while :
  1.4124 +  do
  1.4125 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  1.4126 +    mv "conftest.tmp" "conftest.in"
  1.4127 +    cp "conftest.in" "conftest.nl"
  1.4128 +    $as_echo 'GREP' >> "conftest.nl"
  1.4129 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  1.4130 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  1.4131 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
  1.4132 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
  1.4133 +      # Best one so far, save it but keep looking for a better one
  1.4134 +      ac_cv_path_GREP="$ac_path_GREP"
  1.4135 +      ac_path_GREP_max=$ac_count
  1.4136 +    fi
  1.4137 +    # 10*(2^10) chars as input seems more than enough
  1.4138 +    test $ac_count -gt 10 && break
  1.4139 +  done
  1.4140 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  1.4141 +esac
  1.4142 +
  1.4143 +      $ac_path_GREP_found && break 3
  1.4144 +    done
  1.4145 +  done
  1.4146 +  done
  1.4147 +IFS=$as_save_IFS
  1.4148 +  if test -z "$ac_cv_path_GREP"; then
  1.4149 +    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  1.4150 +  fi
  1.4151 +else
  1.4152 +  ac_cv_path_GREP=$GREP
  1.4153 +fi
  1.4154 +
  1.4155 +fi
  1.4156 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  1.4157 +$as_echo "$ac_cv_path_GREP" >&6; }
  1.4158 + GREP="$ac_cv_path_GREP"
  1.4159 +
  1.4160 +
  1.4161 +
  1.4162 +    # Test that variable GREP is not empty.
  1.4163 +    if test "" = "$GREP"; then as_fn_error $? "Could not find grep !" "$LINENO" 5 ; fi
  1.4164 +
  1.4165 +# Extract the first word of "head", so it can be a program name with args.
  1.4166 +set dummy head; ac_word=$2
  1.4167 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4168 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4169 +if test "${ac_cv_path_HEAD+set}" = set; then :
  1.4170 +  $as_echo_n "(cached) " >&6
  1.4171 +else
  1.4172 +  case $HEAD in
  1.4173 +  [\\/]* | ?:[\\/]*)
  1.4174 +  ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
  1.4175 +  ;;
  1.4176 +  *)
  1.4177 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4178 +for as_dir in $PATH
  1.4179 +do
  1.4180 +  IFS=$as_save_IFS
  1.4181 +  test -z "$as_dir" && as_dir=.
  1.4182 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4183 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4184 +    ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
  1.4185 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4186 +    break 2
  1.4187 +  fi
  1.4188 +done
  1.4189 +  done
  1.4190 +IFS=$as_save_IFS
  1.4191 +
  1.4192 +  ;;
  1.4193 +esac
  1.4194 +fi
  1.4195 +HEAD=$ac_cv_path_HEAD
  1.4196 +if test -n "$HEAD"; then
  1.4197 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
  1.4198 +$as_echo "$HEAD" >&6; }
  1.4199 +else
  1.4200 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4201 +$as_echo "no" >&6; }
  1.4202 +fi
  1.4203 +
  1.4204 +
  1.4205 +
  1.4206 +    # Test that variable HEAD is not empty.
  1.4207 +    if test "" = "$HEAD"; then as_fn_error $? "Could not find head !" "$LINENO" 5 ; fi
  1.4208 +
  1.4209 +# Extract the first word of "ln", so it can be a program name with args.
  1.4210 +set dummy ln; ac_word=$2
  1.4211 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4212 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4213 +if test "${ac_cv_path_LN+set}" = set; then :
  1.4214 +  $as_echo_n "(cached) " >&6
  1.4215 +else
  1.4216 +  case $LN in
  1.4217 +  [\\/]* | ?:[\\/]*)
  1.4218 +  ac_cv_path_LN="$LN" # Let the user override the test with a path.
  1.4219 +  ;;
  1.4220 +  *)
  1.4221 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4222 +for as_dir in $PATH
  1.4223 +do
  1.4224 +  IFS=$as_save_IFS
  1.4225 +  test -z "$as_dir" && as_dir=.
  1.4226 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4227 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4228 +    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  1.4229 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4230 +    break 2
  1.4231 +  fi
  1.4232 +done
  1.4233 +  done
  1.4234 +IFS=$as_save_IFS
  1.4235 +
  1.4236 +  ;;
  1.4237 +esac
  1.4238 +fi
  1.4239 +LN=$ac_cv_path_LN
  1.4240 +if test -n "$LN"; then
  1.4241 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  1.4242 +$as_echo "$LN" >&6; }
  1.4243 +else
  1.4244 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4245 +$as_echo "no" >&6; }
  1.4246 +fi
  1.4247 +
  1.4248 +
  1.4249 +
  1.4250 +    # Test that variable LN is not empty.
  1.4251 +    if test "" = "$LN"; then as_fn_error $? "Could not find ln !" "$LINENO" 5 ; fi
  1.4252 +
  1.4253 +# Extract the first word of "ls", so it can be a program name with args.
  1.4254 +set dummy ls; ac_word=$2
  1.4255 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4256 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4257 +if test "${ac_cv_path_LS+set}" = set; then :
  1.4258 +  $as_echo_n "(cached) " >&6
  1.4259 +else
  1.4260 +  case $LS in
  1.4261 +  [\\/]* | ?:[\\/]*)
  1.4262 +  ac_cv_path_LS="$LS" # Let the user override the test with a path.
  1.4263 +  ;;
  1.4264 +  *)
  1.4265 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4266 +for as_dir in $PATH
  1.4267 +do
  1.4268 +  IFS=$as_save_IFS
  1.4269 +  test -z "$as_dir" && as_dir=.
  1.4270 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4271 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4272 +    ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
  1.4273 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4274 +    break 2
  1.4275 +  fi
  1.4276 +done
  1.4277 +  done
  1.4278 +IFS=$as_save_IFS
  1.4279 +
  1.4280 +  ;;
  1.4281 +esac
  1.4282 +fi
  1.4283 +LS=$ac_cv_path_LS
  1.4284 +if test -n "$LS"; then
  1.4285 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
  1.4286 +$as_echo "$LS" >&6; }
  1.4287 +else
  1.4288 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4289 +$as_echo "no" >&6; }
  1.4290 +fi
  1.4291 +
  1.4292 +
  1.4293 +
  1.4294 +    # Test that variable LS is not empty.
  1.4295 +    if test "" = "$LS"; then as_fn_error $? "Could not find ls !" "$LINENO" 5 ; fi
  1.4296 +
  1.4297 +for ac_prog in gmake make
  1.4298 +do
  1.4299 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.4300 +set dummy $ac_prog; ac_word=$2
  1.4301 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4302 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4303 +if test "${ac_cv_path_MAKE+set}" = set; then :
  1.4304 +  $as_echo_n "(cached) " >&6
  1.4305 +else
  1.4306 +  case $MAKE in
  1.4307 +  [\\/]* | ?:[\\/]*)
  1.4308 +  ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
  1.4309 +  ;;
  1.4310 +  *)
  1.4311 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4312 +for as_dir in $PATH
  1.4313 +do
  1.4314 +  IFS=$as_save_IFS
  1.4315 +  test -z "$as_dir" && as_dir=.
  1.4316 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4317 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4318 +    ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
  1.4319 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4320 +    break 2
  1.4321 +  fi
  1.4322 +done
  1.4323 +  done
  1.4324 +IFS=$as_save_IFS
  1.4325 +
  1.4326 +  ;;
  1.4327 +esac
  1.4328 +fi
  1.4329 +MAKE=$ac_cv_path_MAKE
  1.4330 +if test -n "$MAKE"; then
  1.4331 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  1.4332 +$as_echo "$MAKE" >&6; }
  1.4333 +else
  1.4334 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4335 +$as_echo "no" >&6; }
  1.4336 +fi
  1.4337 +
  1.4338 +
  1.4339 +  test -n "$MAKE" && break
  1.4340 +done
  1.4341 +
  1.4342 +
  1.4343 +    # Test that variable MAKE is not empty.
  1.4344 +    if test "" = "$MAKE"; then as_fn_error $? "Could not find make !" "$LINENO" 5 ; fi
  1.4345 +
  1.4346 +MAKE_VERSION=`$MAKE --version | head -n 1 | grep '3.8[12346789]'`
  1.4347 +if test "x$MAKE_VERSION" = x; then
  1.4348 +    as_fn_error $? "You must use GNU make 3.81 or newer! Please put it in the path." "$LINENO" 5
  1.4349 +fi
  1.4350 +# Extract the first word of "mkdir", so it can be a program name with args.
  1.4351 +set dummy mkdir; ac_word=$2
  1.4352 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4353 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4354 +if test "${ac_cv_path_MKDIR+set}" = set; then :
  1.4355 +  $as_echo_n "(cached) " >&6
  1.4356 +else
  1.4357 +  case $MKDIR in
  1.4358 +  [\\/]* | ?:[\\/]*)
  1.4359 +  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  1.4360 +  ;;
  1.4361 +  *)
  1.4362 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4363 +for as_dir in $PATH
  1.4364 +do
  1.4365 +  IFS=$as_save_IFS
  1.4366 +  test -z "$as_dir" && as_dir=.
  1.4367 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4368 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4369 +    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
  1.4370 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4371 +    break 2
  1.4372 +  fi
  1.4373 +done
  1.4374 +  done
  1.4375 +IFS=$as_save_IFS
  1.4376 +
  1.4377 +  ;;
  1.4378 +esac
  1.4379 +fi
  1.4380 +MKDIR=$ac_cv_path_MKDIR
  1.4381 +if test -n "$MKDIR"; then
  1.4382 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
  1.4383 +$as_echo "$MKDIR" >&6; }
  1.4384 +else
  1.4385 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4386 +$as_echo "no" >&6; }
  1.4387 +fi
  1.4388 +
  1.4389 +
  1.4390 +
  1.4391 +    # Test that variable MKDIR is not empty.
  1.4392 +    if test "" = "$MKDIR"; then as_fn_error $? "Could not find mkdir !" "$LINENO" 5 ; fi
  1.4393 +
  1.4394 +# Extract the first word of "mv", so it can be a program name with args.
  1.4395 +set dummy mv; ac_word=$2
  1.4396 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4397 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4398 +if test "${ac_cv_path_MV+set}" = set; then :
  1.4399 +  $as_echo_n "(cached) " >&6
  1.4400 +else
  1.4401 +  case $MV in
  1.4402 +  [\\/]* | ?:[\\/]*)
  1.4403 +  ac_cv_path_MV="$MV" # Let the user override the test with a path.
  1.4404 +  ;;
  1.4405 +  *)
  1.4406 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4407 +for as_dir in $PATH
  1.4408 +do
  1.4409 +  IFS=$as_save_IFS
  1.4410 +  test -z "$as_dir" && as_dir=.
  1.4411 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4412 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4413 +    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
  1.4414 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4415 +    break 2
  1.4416 +  fi
  1.4417 +done
  1.4418 +  done
  1.4419 +IFS=$as_save_IFS
  1.4420 +
  1.4421 +  ;;
  1.4422 +esac
  1.4423 +fi
  1.4424 +MV=$ac_cv_path_MV
  1.4425 +if test -n "$MV"; then
  1.4426 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
  1.4427 +$as_echo "$MV" >&6; }
  1.4428 +else
  1.4429 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4430 +$as_echo "no" >&6; }
  1.4431 +fi
  1.4432 +
  1.4433 +
  1.4434 +
  1.4435 +    # Test that variable MV is not empty.
  1.4436 +    if test "" = "$MV"; then as_fn_error $? "Could not find mv !" "$LINENO" 5 ; fi
  1.4437 +
  1.4438 +for ac_prog in nawk gawk awk
  1.4439 +do
  1.4440 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.4441 +set dummy $ac_prog; ac_word=$2
  1.4442 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4443 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4444 +if test "${ac_cv_path_NAWK+set}" = set; then :
  1.4445 +  $as_echo_n "(cached) " >&6
  1.4446 +else
  1.4447 +  case $NAWK in
  1.4448 +  [\\/]* | ?:[\\/]*)
  1.4449 +  ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
  1.4450 +  ;;
  1.4451 +  *)
  1.4452 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4453 +for as_dir in $PATH
  1.4454 +do
  1.4455 +  IFS=$as_save_IFS
  1.4456 +  test -z "$as_dir" && as_dir=.
  1.4457 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4458 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4459 +    ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
  1.4460 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4461 +    break 2
  1.4462 +  fi
  1.4463 +done
  1.4464 +  done
  1.4465 +IFS=$as_save_IFS
  1.4466 +
  1.4467 +  ;;
  1.4468 +esac
  1.4469 +fi
  1.4470 +NAWK=$ac_cv_path_NAWK
  1.4471 +if test -n "$NAWK"; then
  1.4472 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
  1.4473 +$as_echo "$NAWK" >&6; }
  1.4474 +else
  1.4475 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4476 +$as_echo "no" >&6; }
  1.4477 +fi
  1.4478 +
  1.4479 +
  1.4480 +  test -n "$NAWK" && break
  1.4481 +done
  1.4482 +
  1.4483 +
  1.4484 +    # Test that variable NAWK is not empty.
  1.4485 +    if test "" = "$NAWK"; then as_fn_error $? "Could not find nawk !" "$LINENO" 5 ; fi
  1.4486 +
  1.4487 +# Extract the first word of "printf", so it can be a program name with args.
  1.4488 +set dummy printf; ac_word=$2
  1.4489 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4490 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4491 +if test "${ac_cv_path_PRINTF+set}" = set; then :
  1.4492 +  $as_echo_n "(cached) " >&6
  1.4493 +else
  1.4494 +  case $PRINTF in
  1.4495 +  [\\/]* | ?:[\\/]*)
  1.4496 +  ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  1.4497 +  ;;
  1.4498 +  *)
  1.4499 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4500 +for as_dir in $PATH
  1.4501 +do
  1.4502 +  IFS=$as_save_IFS
  1.4503 +  test -z "$as_dir" && as_dir=.
  1.4504 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4505 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4506 +    ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  1.4507 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4508 +    break 2
  1.4509 +  fi
  1.4510 +done
  1.4511 +  done
  1.4512 +IFS=$as_save_IFS
  1.4513 +
  1.4514 +  ;;
  1.4515 +esac
  1.4516 +fi
  1.4517 +PRINTF=$ac_cv_path_PRINTF
  1.4518 +if test -n "$PRINTF"; then
  1.4519 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  1.4520 +$as_echo "$PRINTF" >&6; }
  1.4521 +else
  1.4522 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4523 +$as_echo "no" >&6; }
  1.4524 +fi
  1.4525 +
  1.4526 +
  1.4527 +
  1.4528 +    # Test that variable PRINTF is not empty.
  1.4529 +    if test "" = "$PRINTF"; then as_fn_error $? "Could not find printf !" "$LINENO" 5 ; fi
  1.4530 +
  1.4531 +# Extract the first word of "pwd", so it can be a program name with args.
  1.4532 +set dummy pwd; ac_word=$2
  1.4533 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4534 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4535 +if test "${ac_cv_path_THEPWDCMD+set}" = set; then :
  1.4536 +  $as_echo_n "(cached) " >&6
  1.4537 +else
  1.4538 +  case $THEPWDCMD in
  1.4539 +  [\\/]* | ?:[\\/]*)
  1.4540 +  ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
  1.4541 +  ;;
  1.4542 +  *)
  1.4543 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4544 +for as_dir in $PATH
  1.4545 +do
  1.4546 +  IFS=$as_save_IFS
  1.4547 +  test -z "$as_dir" && as_dir=.
  1.4548 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4549 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4550 +    ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
  1.4551 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4552 +    break 2
  1.4553 +  fi
  1.4554 +done
  1.4555 +  done
  1.4556 +IFS=$as_save_IFS
  1.4557 +
  1.4558 +  ;;
  1.4559 +esac
  1.4560 +fi
  1.4561 +THEPWDCMD=$ac_cv_path_THEPWDCMD
  1.4562 +if test -n "$THEPWDCMD"; then
  1.4563 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THEPWDCMD" >&5
  1.4564 +$as_echo "$THEPWDCMD" >&6; }
  1.4565 +else
  1.4566 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4567 +$as_echo "no" >&6; }
  1.4568 +fi
  1.4569 +
  1.4570 +
  1.4571 +# Extract the first word of "rm", so it can be a program name with args.
  1.4572 +set dummy rm; ac_word=$2
  1.4573 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4574 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4575 +if test "${ac_cv_path_RM+set}" = set; then :
  1.4576 +  $as_echo_n "(cached) " >&6
  1.4577 +else
  1.4578 +  case $RM in
  1.4579 +  [\\/]* | ?:[\\/]*)
  1.4580 +  ac_cv_path_RM="$RM" # Let the user override the test with a path.
  1.4581 +  ;;
  1.4582 +  *)
  1.4583 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4584 +for as_dir in $PATH
  1.4585 +do
  1.4586 +  IFS=$as_save_IFS
  1.4587 +  test -z "$as_dir" && as_dir=.
  1.4588 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4589 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4590 +    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
  1.4591 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4592 +    break 2
  1.4593 +  fi
  1.4594 +done
  1.4595 +  done
  1.4596 +IFS=$as_save_IFS
  1.4597 +
  1.4598 +  ;;
  1.4599 +esac
  1.4600 +fi
  1.4601 +RM=$ac_cv_path_RM
  1.4602 +if test -n "$RM"; then
  1.4603 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
  1.4604 +$as_echo "$RM" >&6; }
  1.4605 +else
  1.4606 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4607 +$as_echo "no" >&6; }
  1.4608 +fi
  1.4609 +
  1.4610 +
  1.4611 +
  1.4612 +    # Test that variable RM is not empty.
  1.4613 +    if test "" = "$RM"; then as_fn_error $? "Could not find rm !" "$LINENO" 5 ; fi
  1.4614 +
  1.4615 +RM="$RM -f"
  1.4616 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  1.4617 +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  1.4618 +if test "${ac_cv_path_SED+set}" = set; then :
  1.4619 +  $as_echo_n "(cached) " >&6
  1.4620 +else
  1.4621 +            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  1.4622 +     for ac_i in 1 2 3 4 5 6 7; do
  1.4623 +       ac_script="$ac_script$as_nl$ac_script"
  1.4624 +     done
  1.4625 +     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  1.4626 +     { ac_script=; unset ac_script;}
  1.4627 +     if test -z "$SED"; then
  1.4628 +  ac_path_SED_found=false
  1.4629 +  # Loop through the user's path and test for each of PROGNAME-LIST
  1.4630 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4631 +for as_dir in $PATH
  1.4632 +do
  1.4633 +  IFS=$as_save_IFS
  1.4634 +  test -z "$as_dir" && as_dir=.
  1.4635 +    for ac_prog in sed gsed; do
  1.4636 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4637 +      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  1.4638 +      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  1.4639 +# Check for GNU ac_path_SED and select it if it is found.
  1.4640 +  # Check for GNU $ac_path_SED
  1.4641 +case `"$ac_path_SED" --version 2>&1` in
  1.4642 +*GNU*)
  1.4643 +  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  1.4644 +*)
  1.4645 +  ac_count=0
  1.4646 +  $as_echo_n 0123456789 >"conftest.in"
  1.4647 +  while :
  1.4648 +  do
  1.4649 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  1.4650 +    mv "conftest.tmp" "conftest.in"
  1.4651 +    cp "conftest.in" "conftest.nl"
  1.4652 +    $as_echo '' >> "conftest.nl"
  1.4653 +    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  1.4654 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  1.4655 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
  1.4656 +    if test $ac_count -gt ${ac_path_SED_max-0}; then
  1.4657 +      # Best one so far, save it but keep looking for a better one
  1.4658 +      ac_cv_path_SED="$ac_path_SED"
  1.4659 +      ac_path_SED_max=$ac_count
  1.4660 +    fi
  1.4661 +    # 10*(2^10) chars as input seems more than enough
  1.4662 +    test $ac_count -gt 10 && break
  1.4663 +  done
  1.4664 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  1.4665 +esac
  1.4666 +
  1.4667 +      $ac_path_SED_found && break 3
  1.4668 +    done
  1.4669 +  done
  1.4670 +  done
  1.4671 +IFS=$as_save_IFS
  1.4672 +  if test -z "$ac_cv_path_SED"; then
  1.4673 +    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  1.4674 +  fi
  1.4675 +else
  1.4676 +  ac_cv_path_SED=$SED
  1.4677 +fi
  1.4678 +
  1.4679 +fi
  1.4680 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  1.4681 +$as_echo "$ac_cv_path_SED" >&6; }
  1.4682 + SED="$ac_cv_path_SED"
  1.4683 +  rm -f conftest.sed
  1.4684 +
  1.4685 +
  1.4686 +    # Test that variable SED is not empty.
  1.4687 +    if test "" = "$SED"; then as_fn_error $? "Could not find sed !" "$LINENO" 5 ; fi
  1.4688 +
  1.4689 +# Extract the first word of "sh", so it can be a program name with args.
  1.4690 +set dummy sh; ac_word=$2
  1.4691 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4692 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4693 +if test "${ac_cv_path_SH+set}" = set; then :
  1.4694 +  $as_echo_n "(cached) " >&6
  1.4695 +else
  1.4696 +  case $SH in
  1.4697 +  [\\/]* | ?:[\\/]*)
  1.4698 +  ac_cv_path_SH="$SH" # Let the user override the test with a path.
  1.4699 +  ;;
  1.4700 +  *)
  1.4701 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4702 +for as_dir in $PATH
  1.4703 +do
  1.4704 +  IFS=$as_save_IFS
  1.4705 +  test -z "$as_dir" && as_dir=.
  1.4706 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4707 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4708 +    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
  1.4709 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4710 +    break 2
  1.4711 +  fi
  1.4712 +done
  1.4713 +  done
  1.4714 +IFS=$as_save_IFS
  1.4715 +
  1.4716 +  ;;
  1.4717 +esac
  1.4718 +fi
  1.4719 +SH=$ac_cv_path_SH
  1.4720 +if test -n "$SH"; then
  1.4721 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
  1.4722 +$as_echo "$SH" >&6; }
  1.4723 +else
  1.4724 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4725 +$as_echo "no" >&6; }
  1.4726 +fi
  1.4727 +
  1.4728 +
  1.4729 +
  1.4730 +    # Test that variable SH is not empty.
  1.4731 +    if test "" = "$SH"; then as_fn_error $? "Could not find sh !" "$LINENO" 5 ; fi
  1.4732 +
  1.4733 +# Extract the first word of "sort", so it can be a program name with args.
  1.4734 +set dummy sort; ac_word=$2
  1.4735 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4736 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4737 +if test "${ac_cv_path_SORT+set}" = set; then :
  1.4738 +  $as_echo_n "(cached) " >&6
  1.4739 +else
  1.4740 +  case $SORT in
  1.4741 +  [\\/]* | ?:[\\/]*)
  1.4742 +  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
  1.4743 +  ;;
  1.4744 +  *)
  1.4745 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4746 +for as_dir in $PATH
  1.4747 +do
  1.4748 +  IFS=$as_save_IFS
  1.4749 +  test -z "$as_dir" && as_dir=.
  1.4750 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4751 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4752 +    ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
  1.4753 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4754 +    break 2
  1.4755 +  fi
  1.4756 +done
  1.4757 +  done
  1.4758 +IFS=$as_save_IFS
  1.4759 +
  1.4760 +  ;;
  1.4761 +esac
  1.4762 +fi
  1.4763 +SORT=$ac_cv_path_SORT
  1.4764 +if test -n "$SORT"; then
  1.4765 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  1.4766 +$as_echo "$SORT" >&6; }
  1.4767 +else
  1.4768 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4769 +$as_echo "no" >&6; }
  1.4770 +fi
  1.4771 +
  1.4772 +
  1.4773 +
  1.4774 +    # Test that variable SORT is not empty.
  1.4775 +    if test "" = "$SORT"; then as_fn_error $? "Could not find sort !" "$LINENO" 5 ; fi
  1.4776 +
  1.4777 +# Extract the first word of "tar", so it can be a program name with args.
  1.4778 +set dummy tar; ac_word=$2
  1.4779 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4780 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4781 +if test "${ac_cv_path_TAR+set}" = set; then :
  1.4782 +  $as_echo_n "(cached) " >&6
  1.4783 +else
  1.4784 +  case $TAR in
  1.4785 +  [\\/]* | ?:[\\/]*)
  1.4786 +  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
  1.4787 +  ;;
  1.4788 +  *)
  1.4789 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4790 +for as_dir in $PATH
  1.4791 +do
  1.4792 +  IFS=$as_save_IFS
  1.4793 +  test -z "$as_dir" && as_dir=.
  1.4794 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4795 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4796 +    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
  1.4797 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4798 +    break 2
  1.4799 +  fi
  1.4800 +done
  1.4801 +  done
  1.4802 +IFS=$as_save_IFS
  1.4803 +
  1.4804 +  ;;
  1.4805 +esac
  1.4806 +fi
  1.4807 +TAR=$ac_cv_path_TAR
  1.4808 +if test -n "$TAR"; then
  1.4809 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
  1.4810 +$as_echo "$TAR" >&6; }
  1.4811 +else
  1.4812 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4813 +$as_echo "no" >&6; }
  1.4814 +fi
  1.4815 +
  1.4816 +
  1.4817 +
  1.4818 +    # Test that variable TAR is not empty.
  1.4819 +    if test "" = "$TAR"; then as_fn_error $? "Could not find tar !" "$LINENO" 5 ; fi
  1.4820 +
  1.4821 +# Extract the first word of "tail", so it can be a program name with args.
  1.4822 +set dummy tail; ac_word=$2
  1.4823 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4824 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4825 +if test "${ac_cv_path_TAIL+set}" = set; then :
  1.4826 +  $as_echo_n "(cached) " >&6
  1.4827 +else
  1.4828 +  case $TAIL in
  1.4829 +  [\\/]* | ?:[\\/]*)
  1.4830 +  ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
  1.4831 +  ;;
  1.4832 +  *)
  1.4833 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4834 +for as_dir in $PATH
  1.4835 +do
  1.4836 +  IFS=$as_save_IFS
  1.4837 +  test -z "$as_dir" && as_dir=.
  1.4838 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4839 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4840 +    ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
  1.4841 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4842 +    break 2
  1.4843 +  fi
  1.4844 +done
  1.4845 +  done
  1.4846 +IFS=$as_save_IFS
  1.4847 +
  1.4848 +  ;;
  1.4849 +esac
  1.4850 +fi
  1.4851 +TAIL=$ac_cv_path_TAIL
  1.4852 +if test -n "$TAIL"; then
  1.4853 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
  1.4854 +$as_echo "$TAIL" >&6; }
  1.4855 +else
  1.4856 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4857 +$as_echo "no" >&6; }
  1.4858 +fi
  1.4859 +
  1.4860 +
  1.4861 +
  1.4862 +    # Test that variable TAIL is not empty.
  1.4863 +    if test "" = "$TAIL"; then as_fn_error $? "Could not find tail !" "$LINENO" 5 ; fi
  1.4864 +
  1.4865 +# Extract the first word of "tee", so it can be a program name with args.
  1.4866 +set dummy tee; ac_word=$2
  1.4867 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4868 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4869 +if test "${ac_cv_path_TEE+set}" = set; then :
  1.4870 +  $as_echo_n "(cached) " >&6
  1.4871 +else
  1.4872 +  case $TEE in
  1.4873 +  [\\/]* | ?:[\\/]*)
  1.4874 +  ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
  1.4875 +  ;;
  1.4876 +  *)
  1.4877 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4878 +for as_dir in $PATH
  1.4879 +do
  1.4880 +  IFS=$as_save_IFS
  1.4881 +  test -z "$as_dir" && as_dir=.
  1.4882 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4883 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4884 +    ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
  1.4885 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4886 +    break 2
  1.4887 +  fi
  1.4888 +done
  1.4889 +  done
  1.4890 +IFS=$as_save_IFS
  1.4891 +
  1.4892 +  ;;
  1.4893 +esac
  1.4894 +fi
  1.4895 +TEE=$ac_cv_path_TEE
  1.4896 +if test -n "$TEE"; then
  1.4897 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
  1.4898 +$as_echo "$TEE" >&6; }
  1.4899 +else
  1.4900 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4901 +$as_echo "no" >&6; }
  1.4902 +fi
  1.4903 +
  1.4904 +
  1.4905 +
  1.4906 +    # Test that variable TEE is not empty.
  1.4907 +    if test "" = "$TEE"; then as_fn_error $? "Could not find tee !" "$LINENO" 5 ; fi
  1.4908 +
  1.4909 +# Extract the first word of "tr", so it can be a program name with args.
  1.4910 +set dummy tr; ac_word=$2
  1.4911 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4912 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4913 +if test "${ac_cv_path_TR+set}" = set; then :
  1.4914 +  $as_echo_n "(cached) " >&6
  1.4915 +else
  1.4916 +  case $TR in
  1.4917 +  [\\/]* | ?:[\\/]*)
  1.4918 +  ac_cv_path_TR="$TR" # Let the user override the test with a path.
  1.4919 +  ;;
  1.4920 +  *)
  1.4921 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4922 +for as_dir in $PATH
  1.4923 +do
  1.4924 +  IFS=$as_save_IFS
  1.4925 +  test -z "$as_dir" && as_dir=.
  1.4926 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4927 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4928 +    ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
  1.4929 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4930 +    break 2
  1.4931 +  fi
  1.4932 +done
  1.4933 +  done
  1.4934 +IFS=$as_save_IFS
  1.4935 +
  1.4936 +  ;;
  1.4937 +esac
  1.4938 +fi
  1.4939 +TR=$ac_cv_path_TR
  1.4940 +if test -n "$TR"; then
  1.4941 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
  1.4942 +$as_echo "$TR" >&6; }
  1.4943 +else
  1.4944 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4945 +$as_echo "no" >&6; }
  1.4946 +fi
  1.4947 +
  1.4948 +
  1.4949 +
  1.4950 +    # Test that variable TR is not empty.
  1.4951 +    if test "" = "$TR"; then as_fn_error $? "Could not find tr !" "$LINENO" 5 ; fi
  1.4952 +
  1.4953 +# Extract the first word of "touch", so it can be a program name with args.
  1.4954 +set dummy touch; ac_word=$2
  1.4955 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.4956 +$as_echo_n "checking for $ac_word... " >&6; }
  1.4957 +if test "${ac_cv_path_TOUCH+set}" = set; then :
  1.4958 +  $as_echo_n "(cached) " >&6
  1.4959 +else
  1.4960 +  case $TOUCH in
  1.4961 +  [\\/]* | ?:[\\/]*)
  1.4962 +  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
  1.4963 +  ;;
  1.4964 +  *)
  1.4965 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.4966 +for as_dir in $PATH
  1.4967 +do
  1.4968 +  IFS=$as_save_IFS
  1.4969 +  test -z "$as_dir" && as_dir=.
  1.4970 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.4971 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.4972 +    ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
  1.4973 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.4974 +    break 2
  1.4975 +  fi
  1.4976 +done
  1.4977 +  done
  1.4978 +IFS=$as_save_IFS
  1.4979 +
  1.4980 +  ;;
  1.4981 +esac
  1.4982 +fi
  1.4983 +TOUCH=$ac_cv_path_TOUCH
  1.4984 +if test -n "$TOUCH"; then
  1.4985 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
  1.4986 +$as_echo "$TOUCH" >&6; }
  1.4987 +else
  1.4988 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.4989 +$as_echo "no" >&6; }
  1.4990 +fi
  1.4991 +
  1.4992 +
  1.4993 +
  1.4994 +    # Test that variable TOUCH is not empty.
  1.4995 +    if test "" = "$TOUCH"; then as_fn_error $? "Could not find touch !" "$LINENO" 5 ; fi
  1.4996 +
  1.4997 +# Extract the first word of "wc", so it can be a program name with args.
  1.4998 +set dummy wc; ac_word=$2
  1.4999 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5000 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5001 +if test "${ac_cv_path_WC+set}" = set; then :
  1.5002 +  $as_echo_n "(cached) " >&6
  1.5003 +else
  1.5004 +  case $WC in
  1.5005 +  [\\/]* | ?:[\\/]*)
  1.5006 +  ac_cv_path_WC="$WC" # Let the user override the test with a path.
  1.5007 +  ;;
  1.5008 +  *)
  1.5009 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5010 +for as_dir in $PATH
  1.5011 +do
  1.5012 +  IFS=$as_save_IFS
  1.5013 +  test -z "$as_dir" && as_dir=.
  1.5014 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5015 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5016 +    ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
  1.5017 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5018 +    break 2
  1.5019 +  fi
  1.5020 +done
  1.5021 +  done
  1.5022 +IFS=$as_save_IFS
  1.5023 +
  1.5024 +  ;;
  1.5025 +esac
  1.5026 +fi
  1.5027 +WC=$ac_cv_path_WC
  1.5028 +if test -n "$WC"; then
  1.5029 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
  1.5030 +$as_echo "$WC" >&6; }
  1.5031 +else
  1.5032 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5033 +$as_echo "no" >&6; }
  1.5034 +fi
  1.5035 +
  1.5036 +
  1.5037 +
  1.5038 +    # Test that variable WC is not empty.
  1.5039 +    if test "" = "$WC"; then as_fn_error $? "Could not find wc !" "$LINENO" 5 ; fi
  1.5040 +
  1.5041 +# Extract the first word of "xargs", so it can be a program name with args.
  1.5042 +set dummy xargs; ac_word=$2
  1.5043 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5044 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5045 +if test "${ac_cv_path_XARGS+set}" = set; then :
  1.5046 +  $as_echo_n "(cached) " >&6
  1.5047 +else
  1.5048 +  case $XARGS in
  1.5049 +  [\\/]* | ?:[\\/]*)
  1.5050 +  ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
  1.5051 +  ;;
  1.5052 +  *)
  1.5053 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5054 +for as_dir in $PATH
  1.5055 +do
  1.5056 +  IFS=$as_save_IFS
  1.5057 +  test -z "$as_dir" && as_dir=.
  1.5058 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5059 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5060 +    ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
  1.5061 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5062 +    break 2
  1.5063 +  fi
  1.5064 +done
  1.5065 +  done
  1.5066 +IFS=$as_save_IFS
  1.5067 +
  1.5068 +  ;;
  1.5069 +esac
  1.5070 +fi
  1.5071 +XARGS=$ac_cv_path_XARGS
  1.5072 +if test -n "$XARGS"; then
  1.5073 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
  1.5074 +$as_echo "$XARGS" >&6; }
  1.5075 +else
  1.5076 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5077 +$as_echo "no" >&6; }
  1.5078 +fi
  1.5079 +
  1.5080 +
  1.5081 +
  1.5082 +    # Test that variable XARGS is not empty.
  1.5083 +    if test "" = "$XARGS"; then as_fn_error $? "Could not find xargs !" "$LINENO" 5 ; fi
  1.5084 +
  1.5085 +# Extract the first word of "zip", so it can be a program name with args.
  1.5086 +set dummy zip; ac_word=$2
  1.5087 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5088 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5089 +if test "${ac_cv_path_ZIP+set}" = set; then :
  1.5090 +  $as_echo_n "(cached) " >&6
  1.5091 +else
  1.5092 +  case $ZIP in
  1.5093 +  [\\/]* | ?:[\\/]*)
  1.5094 +  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  1.5095 +  ;;
  1.5096 +  *)
  1.5097 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5098 +for as_dir in $PATH
  1.5099 +do
  1.5100 +  IFS=$as_save_IFS
  1.5101 +  test -z "$as_dir" && as_dir=.
  1.5102 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5103 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5104 +    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
  1.5105 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5106 +    break 2
  1.5107 +  fi
  1.5108 +done
  1.5109 +  done
  1.5110 +IFS=$as_save_IFS
  1.5111 +
  1.5112 +  ;;
  1.5113 +esac
  1.5114 +fi
  1.5115 +ZIP=$ac_cv_path_ZIP
  1.5116 +if test -n "$ZIP"; then
  1.5117 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
  1.5118 +$as_echo "$ZIP" >&6; }
  1.5119 +else
  1.5120 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5121 +$as_echo "no" >&6; }
  1.5122 +fi
  1.5123 +
  1.5124 +
  1.5125 +
  1.5126 +    # Test that variable ZIP is not empty.
  1.5127 +    if test "" = "$ZIP"; then as_fn_error $? "Could not find zip !" "$LINENO" 5 ; fi
  1.5128 +
  1.5129 +# Extract the first word of "unzip", so it can be a program name with args.
  1.5130 +set dummy unzip; ac_word=$2
  1.5131 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5132 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5133 +if test "${ac_cv_path_UNZIP+set}" = set; then :
  1.5134 +  $as_echo_n "(cached) " >&6
  1.5135 +else
  1.5136 +  case $UNZIP in
  1.5137 +  [\\/]* | ?:[\\/]*)
  1.5138 +  ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
  1.5139 +  ;;
  1.5140 +  *)
  1.5141 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5142 +for as_dir in $PATH
  1.5143 +do
  1.5144 +  IFS=$as_save_IFS
  1.5145 +  test -z "$as_dir" && as_dir=.
  1.5146 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5147 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5148 +    ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
  1.5149 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5150 +    break 2
  1.5151 +  fi
  1.5152 +done
  1.5153 +  done
  1.5154 +IFS=$as_save_IFS
  1.5155 +
  1.5156 +  ;;
  1.5157 +esac
  1.5158 +fi
  1.5159 +UNZIP=$ac_cv_path_UNZIP
  1.5160 +if test -n "$UNZIP"; then
  1.5161 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
  1.5162 +$as_echo "$UNZIP" >&6; }
  1.5163 +else
  1.5164 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5165 +$as_echo "no" >&6; }
  1.5166 +fi
  1.5167 +
  1.5168 +
  1.5169 +
  1.5170 +    # Test that variable UNZIP is not empty.
  1.5171 +    if test "" = "$UNZIP"; then as_fn_error $? "Could not find unzip !" "$LINENO" 5 ; fi
  1.5172 +
  1.5173 +# Extract the first word of "ldd", so it can be a program name with args.
  1.5174 +set dummy ldd; ac_word=$2
  1.5175 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5176 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5177 +if test "${ac_cv_path_LDD+set}" = set; then :
  1.5178 +  $as_echo_n "(cached) " >&6
  1.5179 +else
  1.5180 +  case $LDD in
  1.5181 +  [\\/]* | ?:[\\/]*)
  1.5182 +  ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
  1.5183 +  ;;
  1.5184 +  *)
  1.5185 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5186 +for as_dir in $PATH
  1.5187 +do
  1.5188 +  IFS=$as_save_IFS
  1.5189 +  test -z "$as_dir" && as_dir=.
  1.5190 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5191 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5192 +    ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
  1.5193 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5194 +    break 2
  1.5195 +  fi
  1.5196 +done
  1.5197 +  done
  1.5198 +IFS=$as_save_IFS
  1.5199 +
  1.5200 +  ;;
  1.5201 +esac
  1.5202 +fi
  1.5203 +LDD=$ac_cv_path_LDD
  1.5204 +if test -n "$LDD"; then
  1.5205 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
  1.5206 +$as_echo "$LDD" >&6; }
  1.5207 +else
  1.5208 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5209 +$as_echo "no" >&6; }
  1.5210 +fi
  1.5211 +
  1.5212 +
  1.5213 +if test "x$LDD" = "x"; then
  1.5214 +    # List shared lib dependencies is used for
  1.5215 +    # debug output and checking for forbidden dependencies.
  1.5216 +    # We can build without it.
  1.5217 +    LDD="true"
  1.5218 +fi
  1.5219 +# Extract the first word of "otool", so it can be a program name with args.
  1.5220 +set dummy otool; ac_word=$2
  1.5221 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5222 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5223 +if test "${ac_cv_path_OTOOL+set}" = set; then :
  1.5224 +  $as_echo_n "(cached) " >&6
  1.5225 +else
  1.5226 +  case $OTOOL in
  1.5227 +  [\\/]* | ?:[\\/]*)
  1.5228 +  ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
  1.5229 +  ;;
  1.5230 +  *)
  1.5231 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5232 +for as_dir in $PATH
  1.5233 +do
  1.5234 +  IFS=$as_save_IFS
  1.5235 +  test -z "$as_dir" && as_dir=.
  1.5236 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5237 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5238 +    ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
  1.5239 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5240 +    break 2
  1.5241 +  fi
  1.5242 +done
  1.5243 +  done
  1.5244 +IFS=$as_save_IFS
  1.5245 +
  1.5246 +  ;;
  1.5247 +esac
  1.5248 +fi
  1.5249 +OTOOL=$ac_cv_path_OTOOL
  1.5250 +if test -n "$OTOOL"; then
  1.5251 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  1.5252 +$as_echo "$OTOOL" >&6; }
  1.5253 +else
  1.5254 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5255 +$as_echo "no" >&6; }
  1.5256 +fi
  1.5257 +
  1.5258 +
  1.5259 +if test "x$OTOOL" = "x"; then
  1.5260 +   OTOOL="true"
  1.5261 +fi
  1.5262 +# Extract the first word of "readelf", so it can be a program name with args.
  1.5263 +set dummy readelf; ac_word=$2
  1.5264 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5265 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5266 +if test "${ac_cv_path_READELF+set}" = set; then :
  1.5267 +  $as_echo_n "(cached) " >&6
  1.5268 +else
  1.5269 +  case $READELF in
  1.5270 +  [\\/]* | ?:[\\/]*)
  1.5271 +  ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
  1.5272 +  ;;
  1.5273 +  *)
  1.5274 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5275 +for as_dir in $PATH
  1.5276 +do
  1.5277 +  IFS=$as_save_IFS
  1.5278 +  test -z "$as_dir" && as_dir=.
  1.5279 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5280 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5281 +    ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
  1.5282 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5283 +    break 2
  1.5284 +  fi
  1.5285 +done
  1.5286 +  done
  1.5287 +IFS=$as_save_IFS
  1.5288 +
  1.5289 +  ;;
  1.5290 +esac
  1.5291 +fi
  1.5292 +READELF=$ac_cv_path_READELF
  1.5293 +if test -n "$READELF"; then
  1.5294 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  1.5295 +$as_echo "$READELF" >&6; }
  1.5296 +else
  1.5297 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5298 +$as_echo "no" >&6; }
  1.5299 +fi
  1.5300 +
  1.5301 +
  1.5302 +# Extract the first word of "expr", so it can be a program name with args.
  1.5303 +set dummy expr; ac_word=$2
  1.5304 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5305 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5306 +if test "${ac_cv_path_EXPR+set}" = set; then :
  1.5307 +  $as_echo_n "(cached) " >&6
  1.5308 +else
  1.5309 +  case $EXPR in
  1.5310 +  [\\/]* | ?:[\\/]*)
  1.5311 +  ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
  1.5312 +  ;;
  1.5313 +  *)
  1.5314 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5315 +for as_dir in $PATH
  1.5316 +do
  1.5317 +  IFS=$as_save_IFS
  1.5318 +  test -z "$as_dir" && as_dir=.
  1.5319 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5320 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5321 +    ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
  1.5322 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5323 +    break 2
  1.5324 +  fi
  1.5325 +done
  1.5326 +  done
  1.5327 +IFS=$as_save_IFS
  1.5328 +
  1.5329 +  ;;
  1.5330 +esac
  1.5331 +fi
  1.5332 +EXPR=$ac_cv_path_EXPR
  1.5333 +if test -n "$EXPR"; then
  1.5334 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
  1.5335 +$as_echo "$EXPR" >&6; }
  1.5336 +else
  1.5337 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5338 +$as_echo "no" >&6; }
  1.5339 +fi
  1.5340 +
  1.5341 +
  1.5342 +
  1.5343 +    # Test that variable EXPR is not empty.
  1.5344 +    if test "" = "$EXPR"; then as_fn_error $? "Could not find expr !" "$LINENO" 5 ; fi
  1.5345 +
  1.5346 +# Extract the first word of "file", so it can be a program name with args.
  1.5347 +set dummy file; ac_word=$2
  1.5348 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.5349 +$as_echo_n "checking for $ac_word... " >&6; }
  1.5350 +if test "${ac_cv_path_FILE+set}" = set; then :
  1.5351 +  $as_echo_n "(cached) " >&6
  1.5352 +else
  1.5353 +  case $FILE in
  1.5354 +  [\\/]* | ?:[\\/]*)
  1.5355 +  ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
  1.5356 +  ;;
  1.5357 +  *)
  1.5358 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.5359 +for as_dir in $PATH
  1.5360 +do
  1.5361 +  IFS=$as_save_IFS
  1.5362 +  test -z "$as_dir" && as_dir=.
  1.5363 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.5364 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.5365 +    ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
  1.5366 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.5367 +    break 2
  1.5368 +  fi
  1.5369 +done
  1.5370 +  done
  1.5371 +IFS=$as_save_IFS
  1.5372 +
  1.5373 +  ;;
  1.5374 +esac
  1.5375 +fi
  1.5376 +FILE=$ac_cv_path_FILE
  1.5377 +if test -n "$FILE"; then
  1.5378 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
  1.5379 +$as_echo "$FILE" >&6; }
  1.5380 +else
  1.5381 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.5382 +$as_echo "no" >&6; }
  1.5383 +fi
  1.5384 +
  1.5385 +
  1.5386 +
  1.5387 +    # Test that variable FILE is not empty.
  1.5388 +    if test "" = "$FILE"; then as_fn_error $? "Could not find file !" "$LINENO" 5 ; fi
  1.5389 +
  1.5390 +# Figure out the build and host system.
  1.5391 +# Make sure we can run config.sub.
  1.5392 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1.5393 +  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1.5394 +
  1.5395 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1.5396 +$as_echo_n "checking build system type... " >&6; }
  1.5397 +if test "${ac_cv_build+set}" = set; then :
  1.5398 +  $as_echo_n "(cached) " >&6
  1.5399 +else
  1.5400 +  ac_build_alias=$build_alias
  1.5401 +test "x$ac_build_alias" = x &&
  1.5402 +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1.5403 +test "x$ac_build_alias" = x &&
  1.5404 +  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1.5405 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1.5406 +  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1.5407 +
  1.5408 +fi
  1.5409 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1.5410 +$as_echo "$ac_cv_build" >&6; }
  1.5411 +case $ac_cv_build in
  1.5412 +*-*-*) ;;
  1.5413 +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  1.5414 +esac
  1.5415 +build=$ac_cv_build
  1.5416 +ac_save_IFS=$IFS; IFS='-'
  1.5417 +set x $ac_cv_build
  1.5418 +shift
  1.5419 +build_cpu=$1
  1.5420 +build_vendor=$2
  1.5421 +shift; shift
  1.5422 +# Remember, the first character of IFS is used to create $*,
  1.5423 +# except with old shells:
  1.5424 +build_os=$*
  1.5425 +IFS=$ac_save_IFS
  1.5426 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1.5427 +
  1.5428 +
  1.5429 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1.5430 +$as_echo_n "checking host system type... " >&6; }
  1.5431 +if test "${ac_cv_host+set}" = set; then :
  1.5432 +  $as_echo_n "(cached) " >&6
  1.5433 +else
  1.5434 +  if test "x$host_alias" = x; then
  1.5435 +  ac_cv_host=$ac_cv_build
  1.5436 +else
  1.5437 +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1.5438 +    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1.5439 +fi
  1.5440 +
  1.5441 +fi
  1.5442 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1.5443 +$as_echo "$ac_cv_host" >&6; }
  1.5444 +case $ac_cv_host in
  1.5445 +*-*-*) ;;
  1.5446 +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  1.5447 +esac
  1.5448 +host=$ac_cv_host
  1.5449 +ac_save_IFS=$IFS; IFS='-'
  1.5450 +set x $ac_cv_host
  1.5451 +shift
  1.5452 +host_cpu=$1
  1.5453 +host_vendor=$2
  1.5454 +shift; shift
  1.5455 +# Remember, the first character of IFS is used to create $*,
  1.5456 +# except with old shells:
  1.5457 +host_os=$*
  1.5458 +IFS=$ac_save_IFS
  1.5459 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1.5460 +
  1.5461 +
  1.5462 +
  1.5463 +
  1.5464 +# Check whether --with-data-model was given.
  1.5465 +if test "${with_data_model+set}" = set; then :
  1.5466 +  withval=$with_data_model;
  1.5467 +fi
  1.5468 +
  1.5469 +
  1.5470 +if test "x$with_data_model" != x && \
  1.5471 +   test "x$with_data_model" != x32 && \
  1.5472 +   test "x$with_data_model" != x64 ; then
  1.5473 +    as_fn_error $? "The data model can only be 32 or 64!" "$LINENO" 5
  1.5474 +fi
  1.5475 +# Translate the standard cpu-vendor-kernel-os quadruplets into
  1.5476 +# the new HOST_.... and BUILD_... and the legacy names used by
  1.5477 +# the openjdk build.
  1.5478 +# It uses $host_os $host_cpu $build_os $build_cpu and $with_data_model
  1.5479 +
  1.5480 +    # Expects $host_os $host_cpu $build_os and $build_cpu
  1.5481 +    # and $with_data_model to have been setup!
  1.5482 +    #
  1.5483 +    # Translate the standard triplet(quadruplet) definition
  1.5484 +    # of the host/build system into
  1.5485 +    # HOST_OS=aix,bsd,hpux,linux,macosx,solaris,windows
  1.5486 +    # HOST_OS_FAMILY=bsd,gnu,sysv,win32,wince
  1.5487 +    # HOST_OS_API=posix,winapi
  1.5488 +    #
  1.5489 +    # HOST_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64
  1.5490 +    # HOST_CPU_ARCH=x86,sparc,pcc,arm
  1.5491 +    # HOST_CPU_BITS=32,64
  1.5492 +    # HOST_CPU_ENDIAN=big,little
  1.5493 +    #
  1.5494 +    # The same values are setup for BUILD_...
  1.5495 +    #
  1.5496 +    # And the legacy variables, for controlling the old makefiles.
  1.5497 +    # LEGACY_HOST_CPU1=i586,amd64,sparc,sparcv9,arm,arm64...
  1.5498 +    # LEGACY_HOST_CPU2=i386,amd64,sparc,sparcv9,arm,arm64...
  1.5499 +    # LEGACY_HOST_CPU3=sparcv9,amd64 (but only on solaris)
  1.5500 +    # LEGACY_HOST_OS_API=solaris,windows
  1.5501 +    #
  1.5502 +    # We also copy the autoconf trip/quadruplet
  1.5503 +    # verbatim to HOST and BUILD
  1.5504 +    HOST=${host}
  1.5505 +
  1.5506 +    BUILD=${build}
  1.5507 +
  1.5508 +
  1.5509 +
  1.5510 +
  1.5511 +  case "$host_os" in
  1.5512 +    *linux*)
  1.5513 +      VAR_OS=linux
  1.5514 +      VAR_OS_API=posix
  1.5515 +      VAR_OS_FAMILY=gnu
  1.5516 +      ;;
  1.5517 +    *solaris*)
  1.5518 +      VAR_OS=solaris
  1.5519 +      VAR_OS_API=posix
  1.5520 +      VAR_OS_FAMILY=sysv
  1.5521 +      ;;
  1.5522 +    *darwin*)
  1.5523 +      VAR_OS=macosx
  1.5524 +      VAR_OS_API=posix
  1.5525 +      VAR_OS_FAMILY=bsd
  1.5526 +      ;;
  1.5527 +    *bsd*)
  1.5528 +      VAR_OS=bsd
  1.5529 +      VAR_OS_API=posix
  1.5530 +      VAR_OS_FAMILY=bsd
  1.5531 +      ;;
  1.5532 +    *cygwin*|*windows*)
  1.5533 +      VAR_OS=windows
  1.5534 +      VAR_OS_API=winapi
  1.5535 +      VAR_OS_FAMILY=windows
  1.5536 +      ;;
  1.5537 +    *)
  1.5538 +      as_fn_error $? "unsupported host operating system $host_os" "$LINENO" 5
  1.5539 +      ;;
  1.5540 +  esac
  1.5541 +
  1.5542 +    HOST_OS="$VAR_OS"
  1.5543 +    HOST_OS_FAMILY="$VAR_OS_FAMILY"
  1.5544 +    HOST_OS_API="$VAR_OS_API"
  1.5545 +
  1.5546 +
  1.5547 +
  1.5548 +
  1.5549 +
  1.5550 +    if test "x$HOST_OS_API" = xposix; then
  1.5551 +        LEGACY_HOST_OS_API="solaris"
  1.5552 +    fi
  1.5553 +    if test "x$HOST_OS_API" = xwinapi; then
  1.5554 +        LEGACY_HOST_OS_API="windows"
  1.5555 +    fi
  1.5556 +
  1.5557 +
  1.5558 +
  1.5559 +
  1.5560 +  # First argument is the cpu name from the trip/quad
  1.5561 +  case "$host_cpu" in
  1.5562 +    x86_64)
  1.5563 +      VAR_CPU=x64
  1.5564 +      VAR_CPU_ARCH=x86
  1.5565 +      VAR_CPU_BITS=64
  1.5566 +      VAR_CPU_ENDIAN=little
  1.5567 +      VAR_LEGACY_CPU=amd64
  1.5568 +      ;;
  1.5569 +    i?86)
  1.5570 +      VAR_CPU=ia32
  1.5571 +      VAR_CPU_ARCH=x86
  1.5572 +      VAR_CPU_BITS=32
  1.5573 +      VAR_CPU_ENDIAN=little
  1.5574 +      VAR_LEGACY_CPU=i586
  1.5575 +      ;;
  1.5576 +    alpha*)
  1.5577 +      VAR_CPU=alpha
  1.5578 +      VAR_CPU_ARCH=alpha
  1.5579 +      VAR_CPU_BITS=64
  1.5580 +      VAR_CPU_ENDIAN=big
  1.5581 +      VAR_LEGACY_CPU=alpha
  1.5582 +      ;;
  1.5583 +    arm*)
  1.5584 +      VAR_CPU=arm
  1.5585 +      VAR_CPU_ARCH=arm
  1.5586 +      VAR_CPU_BITS=3264
  1.5587 +      VAR_CPU_ENDIAN=big
  1.5588 +      VAR_LEGACY_CPU=arm
  1.5589 +      ;;
  1.5590 +    mips)
  1.5591 +      VAR_CPU=mips
  1.5592 +      VAR_CPU_ARCH=mips
  1.5593 +      VAR_CPU_BITS=woot
  1.5594 +      VAR_CPU_ENDIAN=woot
  1.5595 +      VAR_LEGACY_CPU=mips
  1.5596 +       ;;
  1.5597 +    mipsel)
  1.5598 +      VAR_CPU=mipsel
  1.5599 +      VAR_CPU_ARCH=mips
  1.5600 +      VAR_CPU_BITS=woot
  1.5601 +      VAR_CPU_ENDIAN=woot
  1.5602 +      VAR_LEGACY_CPU=mipsel
  1.5603 +       ;;
  1.5604 +    powerpc)
  1.5605 +      VAR_CPU=ppc
  1.5606 +      VAR_CPU_ARCH=ppc
  1.5607 +      VAR_CPU_BITS=32
  1.5608 +      VAR_CPU_ENDIAN=big
  1.5609 +      VAR_LEGACY_CPU=ppc
  1.5610 +       ;;
  1.5611 +    powerpc64)
  1.5612 +      VAR_CPU=ppc64
  1.5613 +      VAR_CPU_ARCH=ppc
  1.5614 +      VAR_CPU_BITS=64
  1.5615 +      VAR_CPU_ENDIAN=32
  1.5616 +      VAR_LEGACY_CPU=ppc64
  1.5617 +       ;;
  1.5618 +    sparc)
  1.5619 +      VAR_CPU=sparc
  1.5620 +      VAR_CPU_ARCH=sparc
  1.5621 +      VAR_CPU_BITS=32
  1.5622 +      VAR_CPU_ENDIAN=big
  1.5623 +      VAR_LEGACY_CPU=sparc
  1.5624 +       ;;
  1.5625 +    sparc64)
  1.5626 +      VAR_CPU=sparcv9
  1.5627 +      VAR_CPU_ARCH=sparc
  1.5628 +      VAR_CPU_BITS=64
  1.5629 +      VAR_CPU_ENDIAN=big
  1.5630 +      VAR_LEGACY_CPU=sparc_sparcv9
  1.5631 +       ;;
  1.5632 +    s390)
  1.5633 +      VAR_CPU=s390
  1.5634 +      VAR_CPU_ARCH=s390
  1.5635 +      VAR_CPU_BITS=32
  1.5636 +      VAR_CPU_ENDIAN=woot
  1.5637 +      VAR_LEGACY_CPU=s390
  1.5638 +      VAR_LEGACY_CPU=s390
  1.5639 +       ;;
  1.5640 +    s390x)
  1.5641 +      VAR_CPU=s390x
  1.5642 +      VAR_CPU_ARCH=s390
  1.5643 +      VAR_CPU_BITS=64
  1.5644 +      VAR_CPU_ENDIAN=woot
  1.5645 +      VAR_LEGACY_CPU=s390x
  1.5646 +       ;;
  1.5647 +    *)
  1.5648 +      as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
  1.5649 +      ;;
  1.5650 +  esac
  1.5651 +
  1.5652 +  # Workaround cygwin not knowing about 64 bit.
  1.5653 +  if test "x$VAR_OS" = "xwindows"; then
  1.5654 +      if test "x$PROCESSOR_IDENTIFIER" != "x"; then
  1.5655 +          PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '`
  1.5656 +          case "$PROC_ARCH" in
  1.5657 +            intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
  1.5658 +              VAR_CPU=x64
  1.5659 +              VAR_CPU_BITS=64
  1.5660 +              VAR_LEGACY_CPU=amd64
  1.5661 +              ;;
  1.5662 +          esac
  1.5663 +      fi
  1.5664 +  fi
  1.5665 +
  1.5666 +  if test "x$VAR_CPU_ARCH" = "xx86"; then
  1.5667 +      if test "x$with_data_model" = "x64"; then
  1.5668 +          VAR_CPU=x64
  1.5669 +          VAR_CPU_BITS=64
  1.5670 +          VAR_LEGACY_CPU=amd64
  1.5671 +      fi
  1.5672 +      if test "x$with_data_model" = "x32"; then
  1.5673 +          VAR_CPU=ia32
  1.5674 +          VAR_CPU_BITS=32
  1.5675 +          VAR_LEGACY_CPU=i586
  1.5676 +      fi
  1.5677 +  fi
  1.5678 +
  1.5679 +    HOST_CPU="$VAR_CPU"
  1.5680 +    HOST_CPU_ARCH="$VAR_CPU_ARCH"
  1.5681 +    HOST_CPU_BITS="$VAR_CPU_BITS"
  1.5682 +    HOST_CPU_ENDIAN="$VAR_CPU_ENDIAN"
  1.5683 +
  1.5684 +
  1.5685 +
  1.5686 +
  1.5687 +
  1.5688 +
  1.5689 +    # Also store the legacy naming of the cpu.
  1.5690 +    # Ie i586 and amd64 instead of ia32 and x64
  1.5691 +    LEGACY_HOST_CPU1="$VAR_LEGACY_CPU"
  1.5692 +
  1.5693 +
  1.5694 +    # And the second legacy naming of the cpu.
  1.5695 +    # Ie i386 and amd64 instead of ia32 and x64.
  1.5696 +    LEGACY_HOST_CPU2="$LEGACY_HOST_CPU1"
  1.5697 +    if test "x$LEGACY_HOST_CPU1" = xi586; then
  1.5698 +        LEGACY_HOST_CPU2=i386
  1.5699 +    fi
  1.5700 +
  1.5701 +
  1.5702 +    # And the third legacy naming of the cpu.
  1.5703 +    # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris.
  1.5704 +    LEGACY_HOST_CPU3=""
  1.5705 +    if test "x$HOST_CPU" = xx64; then
  1.5706 +        LEGACY_HOST_CPU3=amd64
  1.5707 +    fi
  1.5708 +    if test "x$HOST_CPU" = xsparcv9; then
  1.5709 +        LEGACY_HOST_CPU3=sparvc9
  1.5710 +    fi
  1.5711 +
  1.5712 +
  1.5713 +
  1.5714 +
  1.5715 +
  1.5716 +  case "$build_os" in
  1.5717 +    *linux*)
  1.5718 +      VAR_OS=linux
  1.5719 +      VAR_OS_API=posix
  1.5720 +      VAR_OS_FAMILY=gnu
  1.5721 +      ;;
  1.5722 +    *solaris*)
  1.5723 +      VAR_OS=solaris
  1.5724 +      VAR_OS_API=posix
  1.5725 +      VAR_OS_FAMILY=sysv
  1.5726 +      ;;
  1.5727 +    *darwin*)
  1.5728 +      VAR_OS=macosx
  1.5729 +      VAR_OS_API=posix
  1.5730 +      VAR_OS_FAMILY=bsd
  1.5731 +      ;;
  1.5732 +    *bsd*)
  1.5733 +      VAR_OS=bsd
  1.5734 +      VAR_OS_API=posix
  1.5735 +      VAR_OS_FAMILY=bsd
  1.5736 +      ;;
  1.5737 +    *cygwin*|*windows*)
  1.5738 +      VAR_OS=windows
  1.5739 +      VAR_OS_API=winapi
  1.5740 +      VAR_OS_FAMILY=windows
  1.5741 +      ;;
  1.5742 +    *)
  1.5743 +      as_fn_error $? "unsupported host operating system $build_os" "$LINENO" 5
  1.5744 +      ;;
  1.5745 +  esac
  1.5746 +
  1.5747 +    BUILD_OS="$VAR_OS"
  1.5748 +    BUILD_OS_FAMILY="$VAR_OS_FAMILY"
  1.5749 +    BUILD_OS_API="$VAR_OS_API"
  1.5750 +
  1.5751 +
  1.5752 +
  1.5753 +
  1.5754 +
  1.5755 +    if test "x$BUILD_OS_API" = xposix; then
  1.5756 +        LEGACY_BUILD_OS_API="solaris"
  1.5757 +    fi
  1.5758 +    if test "x$BUILD_OS_API" = xwinapi; then
  1.5759 +        LEGACY_BUILD_OS_API="windows"
  1.5760 +    fi
  1.5761 +
  1.5762 +
  1.5763 +
  1.5764 +
  1.5765 +  # First argument is the cpu name from the trip/quad
  1.5766 +  case "$build_cpu" in
  1.5767 +    x86_64)
  1.5768 +      VAR_CPU=x64
  1.5769 +      VAR_CPU_ARCH=x86
  1.5770 +      VAR_CPU_BITS=64
  1.5771 +      VAR_CPU_ENDIAN=little
  1.5772 +      VAR_LEGACY_CPU=amd64
  1.5773 +      ;;
  1.5774 +    i?86)
  1.5775 +      VAR_CPU=ia32
  1.5776 +      VAR_CPU_ARCH=x86
  1.5777 +      VAR_CPU_BITS=32
  1.5778 +      VAR_CPU_ENDIAN=little
  1.5779 +      VAR_LEGACY_CPU=i586
  1.5780 +      ;;
  1.5781 +    alpha*)
  1.5782 +      VAR_CPU=alpha
  1.5783 +      VAR_CPU_ARCH=alpha
  1.5784 +      VAR_CPU_BITS=64
  1.5785 +      VAR_CPU_ENDIAN=big
  1.5786 +      VAR_LEGACY_CPU=alpha
  1.5787 +      ;;
  1.5788 +    arm*)
  1.5789 +      VAR_CPU=arm
  1.5790 +      VAR_CPU_ARCH=arm
  1.5791 +      VAR_CPU_BITS=3264
  1.5792 +      VAR_CPU_ENDIAN=big
  1.5793 +      VAR_LEGACY_CPU=arm
  1.5794 +      ;;
  1.5795 +    mips)
  1.5796 +      VAR_CPU=mips
  1.5797 +      VAR_CPU_ARCH=mips
  1.5798 +      VAR_CPU_BITS=woot
  1.5799 +      VAR_CPU_ENDIAN=woot
  1.5800 +      VAR_LEGACY_CPU=mips
  1.5801 +       ;;
  1.5802 +    mipsel)
  1.5803 +      VAR_CPU=mipsel
  1.5804 +      VAR_CPU_ARCH=mips
  1.5805 +      VAR_CPU_BITS=woot
  1.5806 +      VAR_CPU_ENDIAN=woot
  1.5807 +      VAR_LEGACY_CPU=mipsel
  1.5808 +       ;;
  1.5809 +    powerpc)
  1.5810 +      VAR_CPU=ppc
  1.5811 +      VAR_CPU_ARCH=ppc
  1.5812 +      VAR_CPU_BITS=32
  1.5813 +      VAR_CPU_ENDIAN=big
  1.5814 +      VAR_LEGACY_CPU=ppc
  1.5815 +       ;;
  1.5816 +    powerpc64)
  1.5817 +      VAR_CPU=ppc64
  1.5818 +      VAR_CPU_ARCH=ppc
  1.5819 +      VAR_CPU_BITS=64
  1.5820 +      VAR_CPU_ENDIAN=32
  1.5821 +      VAR_LEGACY_CPU=ppc64
  1.5822 +       ;;
  1.5823 +    sparc)
  1.5824 +      VAR_CPU=sparc
  1.5825 +      VAR_CPU_ARCH=sparc
  1.5826 +      VAR_CPU_BITS=32
  1.5827 +      VAR_CPU_ENDIAN=big
  1.5828 +      VAR_LEGACY_CPU=sparc
  1.5829 +       ;;
  1.5830 +    sparc64)
  1.5831 +      VAR_CPU=sparcv9
  1.5832 +      VAR_CPU_ARCH=sparc
  1.5833 +      VAR_CPU_BITS=64
  1.5834 +      VAR_CPU_ENDIAN=big
  1.5835 +      VAR_LEGACY_CPU=sparc_sparcv9
  1.5836 +       ;;
  1.5837 +    s390)
  1.5838 +      VAR_CPU=s390
  1.5839 +      VAR_CPU_ARCH=s390
  1.5840 +      VAR_CPU_BITS=32
  1.5841 +      VAR_CPU_ENDIAN=woot
  1.5842 +      VAR_LEGACY_CPU=s390
  1.5843 +      VAR_LEGACY_CPU=s390
  1.5844 +       ;;
  1.5845 +    s390x)
  1.5846 +      VAR_CPU=s390x
  1.5847 +      VAR_CPU_ARCH=s390
  1.5848 +      VAR_CPU_BITS=64
  1.5849 +      VAR_CPU_ENDIAN=woot
  1.5850 +      VAR_LEGACY_CPU=s390x
  1.5851 +       ;;
  1.5852 +    *)
  1.5853 +      as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
  1.5854 +      ;;
  1.5855 +  esac
  1.5856 +
  1.5857 +  # Workaround cygwin not knowing about 64 bit.
  1.5858 +  if test "x$VAR_OS" = "xwindows"; then
  1.5859 +      if test "x$PROCESSOR_IDENTIFIER" != "x"; then
  1.5860 +          PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '`
  1.5861 +          case "$PROC_ARCH" in
  1.5862 +            intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
  1.5863 +              VAR_CPU=x64
  1.5864 +              VAR_CPU_BITS=64
  1.5865 +              VAR_LEGACY_CPU=amd64
  1.5866 +              ;;
  1.5867 +          esac
  1.5868 +      fi
  1.5869 +  fi
  1.5870 +
  1.5871 +  if test "x$VAR_CPU_ARCH" = "xx86"; then
  1.5872 +      if test "x$with_data_model" = "x64"; then
  1.5873 +          VAR_CPU=x64
  1.5874 +          VAR_CPU_BITS=64
  1.5875 +          VAR_LEGACY_CPU=amd64
  1.5876 +      fi
  1.5877 +      if test "x$with_data_model" = "x32"; then
  1.5878 +          VAR_CPU=ia32
  1.5879 +          VAR_CPU_BITS=32
  1.5880 +          VAR_LEGACY_CPU=i586
  1.5881 +      fi
  1.5882 +  fi
  1.5883 +
  1.5884 +    BUILD_CPU="$VAR_CPU"
  1.5885 +    BUILD_CPU_ARCH="$VAR_CPU_ARCH"
  1.5886 +    BUILD_CPU_BITS="$VAR_CPU_BITS"
  1.5887 +    BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
  1.5888 +
  1.5889 +
  1.5890 +
  1.5891 +
  1.5892 +
  1.5893 +
  1.5894 +    # Also store the legacy naming of the cpu.
  1.5895 +    # Ie i586 and amd64 instead of ia32 and x64
  1.5896 +    LEGACY_BUILD_CPU1="$VAR_LEGACY_CPU"
  1.5897 +
  1.5898 +
  1.5899 +    # And the second legacy naming of the cpu.
  1.5900 +    # Ie i386 and amd64 instead of ia32 and x64.
  1.5901 +    LEGACY_BUILD_CPU2="$LEGACY_BUILD_CPU1"
  1.5902 +    if test "x$LEGACY_BUILD_CPU1" = xi586; then
  1.5903 +        LEGACY_BUILD_CPU2=i386
  1.5904 +    fi
  1.5905 +
  1.5906 +
  1.5907 +    # And the third legacy naming of the cpu.
  1.5908 +    # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris.
  1.5909 +    LEGACY_BUILD_CPU3=""
  1.5910 +    if test "x$BUILD_CPU" = xx64; then
  1.5911 +        LEGACY_BUILD_CPU3=amd64
  1.5912 +    fi
  1.5913 +    if test "x$BUILD_CPU" = xsparcv9; then
  1.5914 +        LEGACY_BUILD_CPU3=sparvc9
  1.5915 +    fi
  1.5916 +
  1.5917 +
  1.5918 +
  1.5919 +    if test "x$HOST_OS" != xsolaris; then
  1.5920 +        LEGACY_HOST_CPU3=""
  1.5921 +        LEGACY_BUILD_CPU3=""
  1.5922 +    fi
  1.5923 +
  1.5924 +# Now the following vars are defined.
  1.5925 +# HOST_OS=aix,bsd,hpux,linux,macosx,solaris,windows
  1.5926 +# HOST_OS_FAMILY=bsd,gnu,sysv,win32,wince
  1.5927 +# HOST_OS_API=posix,winapi
  1.5928 +#
  1.5929 +# HOST_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64
  1.5930 +# HOST_CPU_ARCH=x86,sparc,pcc,arm
  1.5931 +# HOST_CPU_BITS=32,64
  1.5932 +# HOST_CPU_ENDIAN=big,little
  1.5933 +#
  1.5934 +# There is also a:
  1.5935 +# LEGACY_HOST_CPU1=i586,amd64,....  # used to set the old var ARCH
  1.5936 +# LEGACY_HOST_CPU2=i386,amd64,.... # used to set the old var LIBARCH
  1.5937 +# LEGACY_HOST_CPU3=only sparcv9,amd64 # used to set the ISA_DIR on Solaris
  1.5938 +# There was also a BUILDARCH that had i486,amd64,... but we do not use that
  1.5939 +# in the new build.
  1.5940 +# LEGACY_HOST_OS_API=solaris,windows # used to select source roots
  1.5941 +
  1.5942 +DATE_WHEN_CONFIGURED=`LANG=C date`
  1.5943 +
  1.5944 +
  1.5945 +# How many cores do we have on this build system?
  1.5946 +
  1.5947 +# Check whether --with-num-cores was given.
  1.5948 +if test "${with_num_cores+set}" = set; then :
  1.5949 +  withval=$with_num_cores;
  1.5950 +fi
  1.5951 +
  1.5952 +if test "x$with_num_cores" = x; then
  1.5953 +    # The number of cores were not specified, try to probe them.
  1.5954 +
  1.5955 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
  1.5956 +$as_echo_n "checking for number of cores... " >&6; }
  1.5957 +    NUM_CORES=1
  1.5958 +    FOUND_CORES=no
  1.5959 +
  1.5960 +    if test -f /proc/cpuinfo; then
  1.5961 +        # Looks like a Linux system
  1.5962 +        NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
  1.5963 +        FOUND_CORES=yes
  1.5964 +    fi
  1.5965 +
  1.5966 +    if test -x /usr/sbin/psrinfo; then
  1.5967 +        # Looks like a Solaris system
  1.5968 +        NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
  1.5969 +        FOUND_CORES=yes
  1.5970 +    fi
  1.5971 +
  1.5972 +    if test -x /usr/sbin/system_profiler; then
  1.5973 +        # Looks like a MacOSX system
  1.5974 +        NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
  1.5975 +        FOUND_CORES=yes
  1.5976 +    fi
  1.5977 +
  1.5978 +    if test "x$build_os" = xwindows; then
  1.5979 +        NUM_CORES=4
  1.5980 +    fi
  1.5981 +
  1.5982 +    # For c/c++ code we run twice as many concurrent build
  1.5983 +    # jobs than we have cores, otherwise we will stall on io.
  1.5984 +    CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
  1.5985 +
  1.5986 +    if test "x$FOUND_CORES" = xyes; then
  1.5987 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
  1.5988 +$as_echo "$NUM_CORES" >&6; }
  1.5989 +    else
  1.5990 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1!" >&5
  1.5991 +$as_echo "could not detect number of cores, defaulting to 1!" >&6; }
  1.5992 +    fi
  1.5993 +
  1.5994 +
  1.5995 +else
  1.5996 +    NUM_CORES=$with_num_cores
  1.5997 +    CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
  1.5998 +fi
  1.5999 +
  1.6000 +
  1.6001 +
  1.6002 +# How many cores do we have on this build system?
  1.6003 +
  1.6004 +# Check whether --with-memory-size was given.
  1.6005 +if test "${with_memory_size+set}" = set; then :
  1.6006 +  withval=$with_memory_size;
  1.6007 +fi
  1.6008 +
  1.6009 +if test "x$with_memory_size" = x; then
  1.6010 +    # The memory size was not specified, try to probe it.
  1.6011 +
  1.6012 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
  1.6013 +$as_echo_n "checking for memory size... " >&6; }
  1.6014 +    # Default to 1024MB
  1.6015 +    MEMORY_SIZE=1024
  1.6016 +    FOUND_MEM=no
  1.6017 +
  1.6018 +    if test -f /proc/cpuinfo; then
  1.6019 +        # Looks like a Linux system
  1.6020 +        MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
  1.6021 +        MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
  1.6022 +        FOUND_MEM=yes
  1.6023 +    fi
  1.6024 +
  1.6025 +    if test -x /usr/sbin/prtconf; then
  1.6026 +        # Looks like a Solaris system
  1.6027 +        MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'`
  1.6028 +        FOUND_MEM=yes
  1.6029 +    fi
  1.6030 +
  1.6031 +    if test -x /usr/sbin/system_profiler; then
  1.6032 +        # Looks like a MacOSX system
  1.6033 +        MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
  1.6034 +        MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
  1.6035 +        FOUND_MEM=yes
  1.6036 +    fi
  1.6037 +
  1.6038 +    if test "x$build_os" = xwindows; then
  1.6039 +        MEMORY_SIZE=`systeminfo | grep 'Total Physical Memory:' | awk '{ print $4 }' | sed 's/,//'`
  1.6040 +        FOUND_MEM=yes
  1.6041 +    fi
  1.6042 +
  1.6043 +    if test "x$FOUND_MEM" = xyes; then
  1.6044 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
  1.6045 +$as_echo "$MEMORY_SIZE MB" >&6; }
  1.6046 +    else
  1.6047 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size defaulting to 1024MB!" >&5
  1.6048 +$as_echo "could not detect memory size defaulting to 1024MB!" >&6; }
  1.6049 +    fi
  1.6050 +
  1.6051 +else
  1.6052 +    MEMORY_SIZE=$with_memory_size
  1.6053 +fi
  1.6054 +
  1.6055 +
  1.6056 +# Where is the source? It is located two levels above the configure script.
  1.6057 +CURDIR="$PWD"
  1.6058 +cd "$AUTOCONF_DIR/../.."
  1.6059 +SRC_ROOT="`pwd`"
  1.6060 +
  1.6061 +cd "$CURDIR"
  1.6062 +
  1.6063 +# For cygwin we need cygpath first, since it is used everywhere.
  1.6064 +# Extract the first word of "cygpath", so it can be a program name with args.
  1.6065 +set dummy cygpath; ac_word=$2
  1.6066 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.6067 +$as_echo_n "checking for $ac_word... " >&6; }
  1.6068 +if test "${ac_cv_path_CYGPATH+set}" = set; then :
  1.6069 +  $as_echo_n "(cached) " >&6
  1.6070 +else
  1.6071 +  case $CYGPATH in
  1.6072 +  [\\/]* | ?:[\\/]*)
  1.6073 +  ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
  1.6074 +  ;;
  1.6075 +  *)
  1.6076 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.6077 +for as_dir in $PATH
  1.6078 +do
  1.6079 +  IFS=$as_save_IFS
  1.6080 +  test -z "$as_dir" && as_dir=.
  1.6081 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.6082 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.6083 +    ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
  1.6084 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.6085 +    break 2
  1.6086 +  fi
  1.6087 +done
  1.6088 +  done
  1.6089 +IFS=$as_save_IFS
  1.6090 +
  1.6091 +  ;;
  1.6092 +esac
  1.6093 +fi
  1.6094 +CYGPATH=$ac_cv_path_CYGPATH
  1.6095 +if test -n "$CYGPATH"; then
  1.6096 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
  1.6097 +$as_echo "$CYGPATH" >&6; }
  1.6098 +else
  1.6099 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6100 +$as_echo "no" >&6; }
  1.6101 +fi
  1.6102 +
  1.6103 +
  1.6104 +PATH_SEP=":"
  1.6105 +if test "x$BUILD_OS" = "xwindows"; then
  1.6106 +    if test "x$CYGPATH" = x; then
  1.6107 +        as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
  1.6108 +    fi
  1.6109 +    PATH_SEP=";"
  1.6110 +fi
  1.6111 +
  1.6112 +
  1.6113 +
  1.6114 +    # Fail with message the path to the source root if var SRC_ROOT contains a path with no spaces in it.
  1.6115 +    # Unless on Windows, where we can rewrite the path.
  1.6116 +    HAS_SPACE=`echo "$SRC_ROOT" | grep " "`
  1.6117 +    if test "x$HAS_SPACE" != x; then
  1.6118 +        if test "x$BUILD_OS" = "xwindows"; then
  1.6119 +            SRC_ROOT=`$CYGPATH -s -m -a "$SRC_ROOT"`
  1.6120 +            SRC_ROOT=`$CYGPATH -u "$SRC_ROOT"`
  1.6121 +        else
  1.6122 +            as_fn_error $? "You cannot have spaces in the path to the source root! \"$SRC_ROOT\"" "$LINENO" 5
  1.6123 +        fi
  1.6124 +    fi
  1.6125 +
  1.6126 +
  1.6127 +    # Fail with message the path to the current directory if var CURDIR contains a path with no spaces in it.
  1.6128 +    # Unless on Windows, where we can rewrite the path.
  1.6129 +    HAS_SPACE=`echo "$CURDIR" | grep " "`
  1.6130 +    if test "x$HAS_SPACE" != x; then
  1.6131 +        if test "x$BUILD_OS" = "xwindows"; then
  1.6132 +            CURDIR=`$CYGPATH -s -m -a "$CURDIR"`
  1.6133 +            CURDIR=`$CYGPATH -u "$CURDIR"`
  1.6134 +        else
  1.6135 +            as_fn_error $? "You cannot have spaces in the path to the current directory! \"$CURDIR\"" "$LINENO" 5
  1.6136 +        fi
  1.6137 +    fi
  1.6138 +
  1.6139 +
  1.6140 +if test "x$BUILD_OS" = "xsolaris"; then
  1.6141 +    # Also search in /usr/ccs/bin for utilities like ar and as.
  1.6142 +    PATH="/usr/ccs/bin:$PATH"
  1.6143 +fi
  1.6144 +
  1.6145 +###############################################################################
  1.6146 +#
  1.6147 +# OpenJDK or closed
  1.6148 +#
  1.6149 +# Check whether --enable-openjdk was given.
  1.6150 +if test "${enable_openjdk+set}" = set; then :
  1.6151 +  enableval=$enable_openjdk;
  1.6152 +fi
  1.6153 +
  1.6154 +
  1.6155 +if test "x$enable_openjdk" = "xyes"; then
  1.6156 +    OPENJDK=true
  1.6157 +elif test "x$enable_openjdk" = "xno"; then
  1.6158 +    OPENJDK=false
  1.6159 +elif test -d "$SRC_ROOT/jdk/src/closed"; then
  1.6160 +    OPENJDK=false
  1.6161 +else
  1.6162 +    OPENJDK=true
  1.6163 +fi
  1.6164 +
  1.6165 +if test "x$OPENJDK" = "xtrue"; then
  1.6166 +    SET_OPENJDK=OPENJDK=true
  1.6167 +fi
  1.6168 +
  1.6169 +
  1.6170 +
  1.6171 +###############################################################################
  1.6172 +#
  1.6173 +# JIGSAW or not.  The JIGSAW variable is used during the intermediate
  1.6174 +# stage when we are building both the old style JDK and the new style modularized JDK.
  1.6175 +# When the modularized JDK is finalized, this option will go away.
  1.6176 +#
  1.6177 +# Check whether --enable-jigsaw was given.
  1.6178 +if test "${enable_jigsaw+set}" = set; then :
  1.6179 +  enableval=$enable_jigsaw;
  1.6180 +fi
  1.6181 +
  1.6182 +
  1.6183 +if test "x$enable_jigsaw" = "xyes"; then
  1.6184 +    JIGSAW=true
  1.6185 +else
  1.6186 +    JIGSAW=false
  1.6187 +fi
  1.6188 +
  1.6189 +
  1.6190 +###############################################################################
  1.6191 +#
  1.6192 +# Check which variant of the JDK that we want to build.
  1.6193 +# Currently we have:
  1.6194 +#    normal:   standard edition
  1.6195 +#    embedded: cut down to a smaller footprint
  1.6196 +#
  1.6197 +# Effectively the JDK variant gives a name to a specific set of
  1.6198 +# modules to compile into the JDK. In the future, these modules
  1.6199 +# might even be Jigsaw modules.
  1.6200 +#
  1.6201 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
  1.6202 +$as_echo_n "checking which variant of the JDK to build... " >&6; }
  1.6203 +
  1.6204 +# Check whether --with-jdk-variant was given.
  1.6205 +if test "${with_jdk_variant+set}" = set; then :
  1.6206 +  withval=$with_jdk_variant;
  1.6207 +fi
  1.6208 +
  1.6209 +
  1.6210 +if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
  1.6211 +    JAVASE_EMBEDDED=""
  1.6212 +    MINIMIZE_RAM_USAGE=""
  1.6213 +    JDK_VARIANT="normal"
  1.6214 +elif test "x$with_jdk_variant" = xembedded; then
  1.6215 +    JAVASE_EMBEDDED="JAVASE_EMBEDDED:=true"
  1.6216 +    MINIMIZE_RAM_USAGE="MINIMIZE_RAM_USAGE:=true"
  1.6217 +    JDK_VARIANT="embedded"
  1.6218 +else
  1.6219 +    as_fn_error $? "The available JDK variants are: normal, embedded" "$LINENO" 5
  1.6220 +fi
  1.6221 +
  1.6222 +
  1.6223 +
  1.6224 +
  1.6225 +
  1.6226 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
  1.6227 +$as_echo "$JDK_VARIANT" >&6; }
  1.6228 +
  1.6229 +###############################################################################
  1.6230 +#
  1.6231 +# Should we build a JDK/JVM with head support (ie a graphical ui)?
  1.6232 +# We always build headless support.
  1.6233 +#
  1.6234 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
  1.6235 +$as_echo_n "checking headful support... " >&6; }
  1.6236 +# Check whether --enable-headful was given.
  1.6237 +if test "${enable_headful+set}" = set; then :
  1.6238 +  enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
  1.6239 +else
  1.6240 +  SUPPORT_HEADFUL=yes
  1.6241 +fi
  1.6242 +
  1.6243 +
  1.6244 +SUPPORT_HEADLESS=yes
  1.6245 +BUILD_HEADLESS="BUILD_HEADLESS:=true"
  1.6246 +
  1.6247 +if test "x$SUPPORT_HEADFUL" = xyes; then
  1.6248 +    # We are building both headful and headless.
  1.6249 +    BUILD_HEADLESS_ONLY=""
  1.6250 +    headful_msg="inlude support for both headful and headless"
  1.6251 +fi
  1.6252 +
  1.6253 +if test "x$SUPPORT_HEADFUL" = xno; then
  1.6254 +    # Thus we are building headless only.
  1.6255 +    BUILD_HEADLESS="BUILD_HEADLESS:=true"
  1.6256 +    BUILD_HEADLESS_ONLY="BUILD_HEADLESS_ONLY:=true"
  1.6257 +    headful_msg="headless only"
  1.6258 +fi
  1.6259 +
  1.6260 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
  1.6261 +$as_echo "$headful_msg" >&6; }
  1.6262 +
  1.6263 +
  1.6264 +
  1.6265 +
  1.6266 +
  1.6267 +
  1.6268 +###############################################################################
  1.6269 +#
  1.6270 +# Check which variants of the JVM that we want to build.
  1.6271 +# Currently we have:
  1.6272 +#    server: normal interpreter and a tiered C1/C2 compiler
  1.6273 +#    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
  1.6274 +#    kernel: kernel footprint JVM that passes the TCK without major performance problems,
  1.6275 +#             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
  1.6276 +#    zero: no machine code interpreter, no compiler
  1.6277 +#    zeroshark: zero interpreter and shark/llvm compiler backend
  1.6278 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM that should be built" >&5
  1.6279 +$as_echo_n "checking which variants of the JVM that should be built... " >&6; }
  1.6280 +
  1.6281 +# Check whether --with-jvm-variants was given.
  1.6282 +if test "${with_jvm_variants+set}" = set; then :
  1.6283 +  withval=$with_jvm_variants;
  1.6284 +fi
  1.6285 +
  1.6286 +
  1.6287 +if test "x$with_jvm_variants" = x; then
  1.6288 +    if test "x$JDK_VARIANT" = xembedded; then
  1.6289 +        with_jvm_variants="kernel"
  1.6290 +    elif test "x$HOST_CPU_BITS" = x64; then
  1.6291 +        with_jvm_variants="server"
  1.6292 +    else
  1.6293 +        # Yes, on 32-bit machines, the same source (almost) is compiled twice
  1.6294 +        # to generate two libjvm.so files. Fun, fun.
  1.6295 +        with_jvm_variants="client,server"
  1.6296 +    fi
  1.6297 +fi
  1.6298 +
  1.6299 +JVM_VARIANTS=",$with_jvm_variants,"
  1.6300 +TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'`
  1.6301 +
  1.6302 +if test "x$TEST_VARIANTS" != "x,"; then
  1.6303 +   as_fn_error $? "The available JVM variants are: server, client, kernel, zero, zeroshark" "$LINENO" 5
  1.6304 +fi
  1.6305 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
  1.6306 +$as_echo "$with_jvm_variants" >&6; }
  1.6307 +
  1.6308 +JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
  1.6309 +JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
  1.6310 +JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
  1.6311 +JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
  1.6312 +JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
  1.6313 +
  1.6314 +if test "x$JVM_VARIANT_CLIENT" = xtrue; then
  1.6315 +    if test "x$HOST_CPU_BITS" = x64; then
  1.6316 +        as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
  1.6317 +    fi
  1.6318 +fi
  1.6319 +if test "x$JVM_VARIANT_KERNEL" = xtrue; then
  1.6320 +    if test "x$HOST_CPU_BITS" = x64; then
  1.6321 +        as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
  1.6322 +    fi
  1.6323 +fi
  1.6324 +
  1.6325 +COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/'`
  1.6326 +# Replace the commas with AND for use in the build directory name.
  1.6327 +ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'`
  1.6328 +if test "x$COUNT_VARIANTS" != "x,1"; then
  1.6329 +    { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE! Longer build time since we are building more than one version of the libjvm! $with_jvm_variants" >&5
  1.6330 +$as_echo "$as_me: NOTE! Longer build time since we are building more than one version of the libjvm! $with_jvm_variants" >&6;}
  1.6331 +fi
  1.6332 +
  1.6333 +
  1.6334 +
  1.6335 +
  1.6336 +
  1.6337 +
  1.6338 +
  1.6339 +
  1.6340 +###############################################################################
  1.6341 +#
  1.6342 +# Set the debug level
  1.6343 +#    release: no debug information, all optimizations, no asserts.
  1.6344 +#    fastdebug: debug information (-g), all optimizations, all asserts
  1.6345 +#    slowdebug: debug information (-g), no optimizations, all asserts
  1.6346 +#
  1.6347 +DEBUG_LEVEL="release"
  1.6348 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
  1.6349 +$as_echo_n "checking which debug level to use... " >&6; }
  1.6350 +# Check whether --enable-debug was given.
  1.6351 +if test "${enable_debug+set}" = set; then :
  1.6352 +  enableval=$enable_debug;
  1.6353 +        ENABLE_DEBUG="${enableval}"
  1.6354 +        DEBUG_LEVEL="fastdebug"
  1.6355 +
  1.6356 +else
  1.6357 +  ENABLE_DEBUG="no"
  1.6358 +fi
  1.6359 +
  1.6360 +
  1.6361 +
  1.6362 +# Check whether --with-debug-level was given.
  1.6363 +if test "${with_debug_level+set}" = set; then :
  1.6364 +  withval=$with_debug_level;
  1.6365 +        DEBUG_LEVEL="${withval}"
  1.6366 +        if test "x$ENABLE_DEBUG" = xyes; then
  1.6367 +			as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
  1.6368 +        fi
  1.6369 +
  1.6370 +fi
  1.6371 +
  1.6372 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
  1.6373 +$as_echo "$DEBUG_LEVEL" >&6; }
  1.6374 +
  1.6375 +if test "x$DEBUG_LEVEL" != xrelease && \
  1.6376 +   test "x$DEBUG_LEVEL" != xfastdebug && \
  1.6377 +   test "x$DEBUG_LEVEL" != xslowdebug; then
  1.6378 +   as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
  1.6379 +fi
  1.6380 +
  1.6381 +case $DEBUG_LEVEL in
  1.6382 +      release )
  1.6383 +          VARIANT="OPT"
  1.6384 +          FASTDEBUG="false"
  1.6385 +          DEBUG_CLASSFILES="false"
  1.6386 +          BUILD_VARIANT_RELEASE=""
  1.6387 +           ;;
  1.6388 +      fastdebug )
  1.6389 +          VARIANT="DBG"
  1.6390 +          FASTDEBUG="true"
  1.6391 +          DEBUG_CLASSFILES="true"
  1.6392 +          BUILD_VARIANT_RELEASE="-fastdebug"
  1.6393 +           ;;
  1.6394 +      slowdebug )
  1.6395 +          VARIANT="DBG"
  1.6396 +          FASTDEBUG="false"
  1.6397 +          DEBUG_CLASSFILES="true"
  1.6398 +          BUILD_VARIANT_RELEASE="-debug"
  1.6399 +           ;;
  1.6400 +esac
  1.6401 +
  1.6402 +
  1.6403 +
  1.6404 +
  1.6405 +
  1.6406 +
  1.6407 +
  1.6408 +# Source the version numbers
  1.6409 +. $AUTOCONF_DIR/version.numbers
  1.6410 +if test "x$OPENJDK" = "xfalse"; then
  1.6411 +    . $AUTOCONF_DIR/closed.version.numbers
  1.6412 +fi
  1.6413 +# Now set the JDK version, milestone, build number etc.
  1.6414 +
  1.6415 +
  1.6416 +
  1.6417 +
  1.6418 +
  1.6419 +
  1.6420 +
  1.6421 +
  1.6422 +
  1.6423 +
  1.6424 +
  1.6425 +
  1.6426 +COPYRIGHT_YEAR=`date +'%Y'`
  1.6427 +
  1.6428 +
  1.6429 +RUNTIME_NAME="$PRODUCT_NAME $PRODUCT_SUFFIX"
  1.6430 +
  1.6431 +
  1.6432 +if test "x$JDK_UPDATE_VERSION" != x; then
  1.6433 +    JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
  1.6434 +else
  1.6435 +    JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
  1.6436 +fi
  1.6437 +
  1.6438 +
  1.6439 +if test "x$MILESTONE" != x; then
  1.6440 +    RELEASE="${JDK_VERSION}-${MILESTONE}${BUILD_VARIANT_RELEASE}"
  1.6441 +else
  1.6442 +    RELEASE="${JDK_VERSION}${BUILD_VARIANT_RELEASE}"
  1.6443 +fi
  1.6444 +
  1.6445 +
  1.6446 +if test "x$JDK_BUILD_NUMBER" != x; then
  1.6447 +    FULL_VERSION="${RELEASE}-${JDK_BUILD_NUMBER}"
  1.6448 +else
  1.6449 +    JDK_BUILD_NUMBER=b00
  1.6450 +    BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
  1.6451 +    # Avoid [:alnum:] since it depends on the locale.
  1.6452 +    CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'`
  1.6453 +    USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvqxyz'`
  1.6454 +    FULL_VERSION="${RELEASE}-${USER_RELEASE_SUFFIX}-${JDK_BUILD_NUMBER}"
  1.6455 +fi
  1.6456 +
  1.6457 +COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
  1.6458 +
  1.6459 +
  1.6460 +# Test from where we are running configure, in or outside of src root.
  1.6461 +if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" || test "x$CURDIR" = "x$SRC_ROOT/common/makefiles" ; then
  1.6462 +    # We are running configure from the src root.
  1.6463 +    # Create a default ./build/host-variant-debuglevel output root.
  1.6464 +    OUTPUT_ROOT="$SRC_ROOT/build/${HOST_OS}-${HOST_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
  1.6465 +    mkdir -p "$OUTPUT_ROOT"
  1.6466 +    if test ! -d "$OUTPUT_ROOT"; then
  1.6467 +        as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
  1.6468 +    fi
  1.6469 +else
  1.6470 +    # We are running configure from outside of the src dir.
  1.6471 +    # Then use the current directory as output dir!
  1.6472 +    OUTPUT_ROOT="$CURDIR"
  1.6473 +fi
  1.6474 +
  1.6475 +
  1.6476 +    # Fail with message the path to the output root if var OUTPUT_ROOT contains a path with no spaces in it.
  1.6477 +    # Unless on Windows, where we can rewrite the path.
  1.6478 +    HAS_SPACE=`echo "$OUTPUT_ROOT" | grep " "`
  1.6479 +    if test "x$HAS_SPACE" != x; then
  1.6480 +        if test "x$BUILD_OS" = "xwindows"; then
  1.6481 +            OUTPUT_ROOT=`$CYGPATH -s -m -a "$OUTPUT_ROOT"`
  1.6482 +            OUTPUT_ROOT=`$CYGPATH -u "$OUTPUT_ROOT"`
  1.6483 +        else
  1.6484 +            as_fn_error $? "You cannot have spaces in the path to the output root! \"$OUTPUT_ROOT\"" "$LINENO" 5
  1.6485 +        fi
  1.6486 +    fi
  1.6487 +
  1.6488 +
  1.6489 +# Save the arguments given to us
  1.6490 +echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
  1.6491 +
  1.6492 +# Check if the VS env variables were setup prior to running configure.
  1.6493 +# If not, then find vcvarsall.bat and run it automatically, and integrate
  1.6494 +# the set env variables into the spec file.
  1.6495 +SETUPDEVENV="# No special vars"
  1.6496 +if test "x$BUILD_OS" = "xwindows"; then
  1.6497 +    # If vcvarsall.bat has been run, then VCINSTALLDIR is set.
  1.6498 +    if test "x$VCINSTALLDIR" != x; then
  1.6499 +        # No further setup is needed. The build will happen from this kind
  1.6500 +        # of shell.
  1.6501 +        SETUPDEVENV="# This spec file expects that you are running bash from within a VS command prompt."
  1.6502 +        # Make sure to remind you, if you forget to run make from a cygwin bash shell
  1.6503 +        # that is spawned "bash -l" from a VS command prompt.
  1.6504 +        CHECK_FOR_VCINSTALLDIR=yes
  1.6505 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are running from within a VS command prompt" >&5
  1.6506 +$as_echo_n "checking if you are running from within a VS command prompt... " >&6; }
  1.6507 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1.6508 +$as_echo "yes" >&6; }
  1.6509 +    else
  1.6510 +        # Ah, we have not yet run vcvarsall.bat/vsvars32.bat/vsvars64.bat. Lets do that. First find it.
  1.6511 +        if test "x$VS100COMNTOOLS" != x; then
  1.6512 +            VARSBAT=`find "$VS100COMNTOOLS/../.." -name vcvarsall.bat`
  1.6513 +	    SEARCH_ROOT="$VS100COMNTOOLS"
  1.6514 +        else
  1.6515 +            VARSBAT=`find "$PROGRAMFILES" -name vcvarsall.bat`
  1.6516 +	    SEARCH_ROOT="$PROGRAMFILES"
  1.6517 +        fi
  1.6518 +        VCPATH=`dirname "$VARSBAT"`
  1.6519 +        VCPATH=`cygpath -w "$VCPATH"`
  1.6520 +	if test "x$VARSBAT" = x || test ! -d "$VCPATH"; then
  1.6521 +            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5
  1.6522 +$as_echo_n "checking if we can find the VS installation... " >&6; }
  1.6523 +            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6524 +$as_echo "no" >&6; }
  1.6525 +            as_fn_error $? "Tried to find a VS installation using both $SEARCH_ROOT but failed. Please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
  1.6526 +        fi
  1.6527 +        case "$LEGACY_HOST_CPU1" in
  1.6528 +          i?86)
  1.6529 +            VARSBAT_ARCH=x86
  1.6530 +            ;;
  1.6531 +          *)
  1.6532 +            VARSBAT_ARCH=$LEGACY_HOST_CPU1
  1.6533 +            ;;
  1.6534 +        esac
  1.6535 +        # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
  1.6536 +        cd $OUTPUT_ROOT
  1.6537 +        $SRC_ROOT/common/bin/extractvcvars.sh "$VARSBAT" "$VARSBAT_ARCH"
  1.6538 +	cd $CURDIR
  1.6539 +	if test ! -s $OUTPUT_ROOT/localdevenv.sh || test ! -s $OUTPUT_ROOT/localdevenv.gmk; then
  1.6540 +            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can extract the needed env variables" >&5
  1.6541 +$as_echo_n "checking if we can extract the needed env variables... " >&6; }
  1.6542 +            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6543 +$as_echo "no" >&6; }
  1.6544 +            as_fn_error $? "Could not succesfully extract the env variables needed for the VS setup. Please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
  1.6545 +        fi
  1.6546 +        # Now set all paths and other env variables. This will allow the rest of
  1.6547 +        # the configure script to find and run the compiler in the proper way.
  1.6548 +        . $OUTPUT_ROOT/localdevenv.sh
  1.6549 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5
  1.6550 +$as_echo_n "checking if we can find the VS installation... " >&6; }
  1.6551 +	if test "x$VCINSTALLDIR" != x; then
  1.6552 +            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VCINSTALLDIR" >&5
  1.6553 +$as_echo "$VCINSTALLDIR" >&6; }
  1.6554 +        else
  1.6555 +            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6556 +$as_echo "no" >&6; }
  1.6557 +            as_fn_error $? "Could not find VS installation. Please install. If you are sure you have installed VS, then please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
  1.6558 +        fi
  1.6559 +        CHECK_FOR_VCINSTALLDIR=no
  1.6560 +	SETUPDEVENV="include $OUTPUT_ROOT/localdevenv.gmk"
  1.6561 +
  1.6562 +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
  1.6563 +$as_echo_n "checking for msvcr100.dll... " >&6; }
  1.6564 +
  1.6565 +# Check whether --with-msvcr100dll was given.
  1.6566 +if test "${with_msvcr100dll+set}" = set; then :
  1.6567 +  withval=$with_msvcr100dll;
  1.6568 +fi
  1.6569 +
  1.6570 +        if test "x$with_msvcr100dll" != x; then
  1.6571 +            MSVCR100DLL="$with_msvcr100dll"
  1.6572 +        else
  1.6573 +            if test "x$HOST_CPU_BITS" = x64; then
  1.6574 +                MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x64 | head --lines 1`
  1.6575 +            else
  1.6576 +                MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x86 | grep -v ia64 | grep -v x64 | head --lines 1`
  1.6577 +                if test "x$MSVCR100DLL" = x; then
  1.6578 +                    MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | head --lines 1`
  1.6579 +                fi
  1.6580 +            fi
  1.6581 +        fi
  1.6582 +	if test "x$MSVCR100DLL" = x; then
  1.6583 +           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6584 +$as_echo "no" >&6; }
  1.6585 +	   as_fn_error $? "Could not find msvcr100.dll !" "$LINENO" 5
  1.6586 +        fi
  1.6587 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR100DLL" >&5
  1.6588 +$as_echo "$MSVCR100DLL" >&6; }
  1.6589 +
  1.6590 +    # Fail with message the path to msvcr100.dll if var MSVCR100DLL contains a path with no spaces in it.
  1.6591 +    # Unless on Windows, where we can rewrite the path.
  1.6592 +    HAS_SPACE=`echo "$MSVCR100DLL" | grep " "`
  1.6593 +    if test "x$HAS_SPACE" != x; then
  1.6594 +        if test "x$BUILD_OS" = "xwindows"; then
  1.6595 +            MSVCR100DLL=`$CYGPATH -s -m -a "$MSVCR100DLL"`
  1.6596 +            MSVCR100DLL=`$CYGPATH -u "$MSVCR100DLL"`
  1.6597 +        else
  1.6598 +            as_fn_error $? "You cannot have spaces in the path to msvcr100.dll! \"$MSVCR100DLL\"" "$LINENO" 5
  1.6599 +        fi
  1.6600 +    fi
  1.6601 +
  1.6602 +    fi
  1.6603 +fi
  1.6604 +
  1.6605 +
  1.6606 +
  1.6607 +
  1.6608 +# Most of the probed defines are put into config.h
  1.6609 +ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
  1.6610 +
  1.6611 +# The spec.gmk file contains all variables for the make system.
  1.6612 +ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
  1.6613 +
  1.6614 +# The generated Makefile knows where the spec.gmk is and where the source is.
  1.6615 +# You can run make from the OUTPUT_ROOT. If you have only
  1.6616 +# one configured host, then you can also run make from the SRC_ROOT,
  1.6617 +# since it will go look for a single spec.gmk file. Or perhaps it
  1.6618 +# should instead make all configured hosts it can find?
  1.6619 +ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
  1.6620 +
  1.6621 +
  1.6622 +SPEC=$OUTPUT_ROOT/spec.gmk
  1.6623 +
  1.6624 +OUTPUT_ROOT=$OUTPUT_ROOT
  1.6625 +
  1.6626 +
  1.6627 +# Where are the sources. Any of these can be overridden
  1.6628 +# using --with-override-corba and the likes.
  1.6629 +LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
  1.6630 +CORBA_TOPDIR="$SRC_ROOT/corba"
  1.6631 +JAXP_TOPDIR="$SRC_ROOT/jaxp"
  1.6632 +JAXWS_TOPDIR="$SRC_ROOT/jaxws"
  1.6633 +HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
  1.6634 +JDK_TOPDIR="$SRC_ROOT/jdk"
  1.6635 +
  1.6636 +
  1.6637 +
  1.6638 +
  1.6639 +
  1.6640 +
  1.6641 +
  1.6642 +# Check if pkg-config is available.
  1.6643 +
  1.6644 +
  1.6645 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  1.6646 +	if test -n "$ac_tool_prefix"; then
  1.6647 +  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  1.6648 +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  1.6649 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.6650 +$as_echo_n "checking for $ac_word... " >&6; }
  1.6651 +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  1.6652 +  $as_echo_n "(cached) " >&6
  1.6653 +else
  1.6654 +  case $PKG_CONFIG in
  1.6655 +  [\\/]* | ?:[\\/]*)
  1.6656 +  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  1.6657 +  ;;
  1.6658 +  *)
  1.6659 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.6660 +for as_dir in $PATH
  1.6661 +do
  1.6662 +  IFS=$as_save_IFS
  1.6663 +  test -z "$as_dir" && as_dir=.
  1.6664 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.6665 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.6666 +    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1.6667 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.6668 +    break 2
  1.6669 +  fi
  1.6670 +done
  1.6671 +  done
  1.6672 +IFS=$as_save_IFS
  1.6673 +
  1.6674 +  ;;
  1.6675 +esac
  1.6676 +fi
  1.6677 +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  1.6678 +if test -n "$PKG_CONFIG"; then
  1.6679 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  1.6680 +$as_echo "$PKG_CONFIG" >&6; }
  1.6681 +else
  1.6682 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6683 +$as_echo "no" >&6; }
  1.6684 +fi
  1.6685 +
  1.6686 +
  1.6687 +fi
  1.6688 +if test -z "$ac_cv_path_PKG_CONFIG"; then
  1.6689 +  ac_pt_PKG_CONFIG=$PKG_CONFIG
  1.6690 +  # Extract the first word of "pkg-config", so it can be a program name with args.
  1.6691 +set dummy pkg-config; ac_word=$2
  1.6692 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.6693 +$as_echo_n "checking for $ac_word... " >&6; }
  1.6694 +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  1.6695 +  $as_echo_n "(cached) " >&6
  1.6696 +else
  1.6697 +  case $ac_pt_PKG_CONFIG in
  1.6698 +  [\\/]* | ?:[\\/]*)
  1.6699 +  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  1.6700 +  ;;
  1.6701 +  *)
  1.6702 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.6703 +for as_dir in $PATH
  1.6704 +do
  1.6705 +  IFS=$as_save_IFS
  1.6706 +  test -z "$as_dir" && as_dir=.
  1.6707 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.6708 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.6709 +    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1.6710 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.6711 +    break 2
  1.6712 +  fi
  1.6713 +done
  1.6714 +  done
  1.6715 +IFS=$as_save_IFS
  1.6716 +
  1.6717 +  ;;
  1.6718 +esac
  1.6719 +fi
  1.6720 +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  1.6721 +if test -n "$ac_pt_PKG_CONFIG"; then
  1.6722 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  1.6723 +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  1.6724 +else
  1.6725 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6726 +$as_echo "no" >&6; }
  1.6727 +fi
  1.6728 +
  1.6729 +  if test "x$ac_pt_PKG_CONFIG" = x; then
  1.6730 +    PKG_CONFIG=""
  1.6731 +  else
  1.6732 +    case $cross_compiling:$ac_tool_warned in
  1.6733 +yes:)
  1.6734 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1.6735 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1.6736 +ac_tool_warned=yes ;;
  1.6737 +esac
  1.6738 +    PKG_CONFIG=$ac_pt_PKG_CONFIG
  1.6739 +  fi
  1.6740 +else
  1.6741 +  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  1.6742 +fi
  1.6743 +
  1.6744 +fi
  1.6745 +if test -n "$PKG_CONFIG"; then
  1.6746 +	_pkg_min_version=0.9.0
  1.6747 +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  1.6748 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  1.6749 +	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  1.6750 +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1.6751 +$as_echo "yes" >&6; }
  1.6752 +	else
  1.6753 +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6754 +$as_echo "no" >&6; }
  1.6755 +		PKG_CONFIG=""
  1.6756 +	fi
  1.6757 +
  1.6758 +fi
  1.6759 +
  1.6760 +
  1.6761 +# Check whether --with-builddeps-conf was given.
  1.6762 +if test "${with_builddeps_conf+set}" = set; then :
  1.6763 +  withval=$with_builddeps_conf;
  1.6764 +fi
  1.6765 +
  1.6766 +
  1.6767 +
  1.6768 +# Check whether --with-builddeps-server was given.
  1.6769 +if test "${with_builddeps_server+set}" = set; then :
  1.6770 +  withval=$with_builddeps_server;
  1.6771 +fi
  1.6772 +
  1.6773 +
  1.6774 +
  1.6775 +# Check whether --with-builddeps-dir was given.
  1.6776 +if test "${with_builddeps_dir+set}" = set; then :
  1.6777 +  withval=$with_builddeps_dir;
  1.6778 +else
  1.6779 +  with_builddeps_dir=/localhome/builddeps
  1.6780 +fi
  1.6781 +
  1.6782 +
  1.6783 +
  1.6784 +# Check whether --with-builddeps-group was given.
  1.6785 +if test "${with_builddeps_group+set}" = set; then :
  1.6786 +  withval=$with_builddeps_group;
  1.6787 +fi
  1.6788 +
  1.6789 +
  1.6790 +# Check whether --enable-list-builddeps was given.
  1.6791 +if test "${enable_list_builddeps+set}" = set; then :
  1.6792 +  enableval=$enable_list_builddeps; LIST_BUILDDEPS="${enableval}"
  1.6793 +else
  1.6794 +  LIST_BUILDDEPS='no'
  1.6795 +fi
  1.6796 +
  1.6797 +
  1.6798 +if test "x$LIST_BUILDDEPS" = xyes; then
  1.6799 +    echo
  1.6800 +    echo List of build dependencies known to the configure script,
  1.6801 +    echo that can be used in builddeps.conf files:
  1.6802 +    cat $SRC_ROOT/configure.ac | grep BDEPS_CHECK_MODUL | grep -v configure.ac | cut -f 2 -d ',' | tr -d ' ' | sort
  1.6803 +    echo
  1.6804 +    exit 1
  1.6805 +fi
  1.6806 +
  1.6807 +# If builddeps server or conf file is given. Setup buildeps usage.
  1.6808 +
  1.6809 +
  1.6810 +    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
  1.6811 +        if test "x$with_builddeps_conf" != x; then
  1.6812 +            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
  1.6813 +$as_echo_n "checking for supplied builddeps configuration file... " >&6; }
  1.6814 +            builddepsfile=$with_builddeps_conf
  1.6815 +            if test -s $builddepsfile; then
  1.6816 +                . $builddepsfile
  1.6817 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
  1.6818 +$as_echo "loaded!" >&6; }
  1.6819 +            else
  1.6820 +               as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
  1.6821 +           fi
  1.6822 +        else
  1.6823 +            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
  1.6824 +$as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
  1.6825 +            builddepsfile=`mktemp`
  1.6826 +            touch $builddepsfile
  1.6827 +            # Put all found confs into a single file.
  1.6828 +            find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
  1.6829 +            # Source the file to acquire the variables
  1.6830 +            if test -s $builddepsfile; then
  1.6831 +                . $builddepsfile
  1.6832 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
  1.6833 +$as_echo "found at least one!" >&6; }
  1.6834 +            else
  1.6835 +               as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
  1.6836 +           fi
  1.6837 +        fi
  1.6838 +        # Create build and host names that use _ instead of "-" and ".".
  1.6839 +        # This is necessary to use them in variable names.
  1.6840 +        build_var=`echo ${build} | tr '-' '_' | tr '.' '_'`
  1.6841 +        host_var=`echo ${host} | tr '-' '_' | tr '.' '_'`
  1.6842 +        # Extract rewrite information for build and host
  1.6843 +        eval rewritten_build=\${REWRITE_${build_var}}
  1.6844 +        if test "x$rewritten_build" = x; then
  1.6845 +            rewritten_build=${build}
  1.6846 +            echo Build stays the same $rewritten_build
  1.6847 +        else
  1.6848 +            echo Rewriting build for builddeps into $rewritten_build
  1.6849 +        fi
  1.6850 +        eval rewritten_host=\${REWRITE_${host_var}}
  1.6851 +        if test "x$rewritten_host" = x; then
  1.6852 +            rewritten_host=${host}
  1.6853 +            echo Host stays the same $rewritten_host
  1.6854 +        else
  1.6855 +            echo Rewriting host for builddeps into $rewritten_host
  1.6856 +        fi
  1.6857 +        rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
  1.6858 +        rewritten_host_var=`echo ${rewritten_host} | tr '-' '_' | tr '.' '_'`
  1.6859 +    fi
  1.6860 +    for ac_prog in 7z unzip
  1.6861 +do
  1.6862 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.6863 +set dummy $ac_prog; ac_word=$2
  1.6864 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.6865 +$as_echo_n "checking for $ac_word... " >&6; }
  1.6866 +if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
  1.6867 +  $as_echo_n "(cached) " >&6
  1.6868 +else
  1.6869 +  if test -n "$BDEPS_UNZIP"; then
  1.6870 +  ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
  1.6871 +else
  1.6872 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.6873 +for as_dir in $PATH
  1.6874 +do
  1.6875 +  IFS=$as_save_IFS
  1.6876 +  test -z "$as_dir" && as_dir=.
  1.6877 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.6878 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.6879 +    ac_cv_prog_BDEPS_UNZIP="$ac_prog"
  1.6880 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.6881 +    break 2
  1.6882 +  fi
  1.6883 +done
  1.6884 +  done
  1.6885 +IFS=$as_save_IFS
  1.6886 +
  1.6887 +fi
  1.6888 +fi
  1.6889 +BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
  1.6890 +if test -n "$BDEPS_UNZIP"; then
  1.6891 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
  1.6892 +$as_echo "$BDEPS_UNZIP" >&6; }
  1.6893 +else
  1.6894 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6895 +$as_echo "no" >&6; }
  1.6896 +fi
  1.6897 +
  1.6898 +
  1.6899 +  test -n "$BDEPS_UNZIP" && break
  1.6900 +done
  1.6901 +
  1.6902 +    if test "x$BDEPS_UNZIP" = x7z; then
  1.6903 +        BDEPS_UNZIP="7z x"
  1.6904 +    fi
  1.6905 +
  1.6906 +    for ac_prog in wget lftp ftp
  1.6907 +do
  1.6908 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.6909 +set dummy $ac_prog; ac_word=$2
  1.6910 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.6911 +$as_echo_n "checking for $ac_word... " >&6; }
  1.6912 +if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
  1.6913 +  $as_echo_n "(cached) " >&6
  1.6914 +else
  1.6915 +  if test -n "$BDEPS_FTP"; then
  1.6916 +  ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
  1.6917 +else
  1.6918 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.6919 +for as_dir in $PATH
  1.6920 +do
  1.6921 +  IFS=$as_save_IFS
  1.6922 +  test -z "$as_dir" && as_dir=.
  1.6923 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.6924 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.6925 +    ac_cv_prog_BDEPS_FTP="$ac_prog"
  1.6926 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.6927 +    break 2
  1.6928 +  fi
  1.6929 +done
  1.6930 +  done
  1.6931 +IFS=$as_save_IFS
  1.6932 +
  1.6933 +fi
  1.6934 +fi
  1.6935 +BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
  1.6936 +if test -n "$BDEPS_FTP"; then
  1.6937 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
  1.6938 +$as_echo "$BDEPS_FTP" >&6; }
  1.6939 +else
  1.6940 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.6941 +$as_echo "no" >&6; }
  1.6942 +fi
  1.6943 +
  1.6944 +
  1.6945 +  test -n "$BDEPS_FTP" && break
  1.6946 +done
  1.6947 +
  1.6948 +
  1.6949 +
  1.6950 +###############################################################################
  1.6951 +#
  1.6952 +# Configure the development tool paths and potential sysroot.
  1.6953 +#
  1.6954 +ac_ext=cpp
  1.6955 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.6956 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.6957 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.6958 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.6959 +
  1.6960 +DEVKIT=
  1.6961 +SYS_ROOT=/
  1.6962 +
  1.6963 +
  1.6964 +# The option used to specify the target .o,.a or .so file.
  1.6965 +# When compiling, how to specify the to be created object file.
  1.6966 +CC_OUT_OPTION='-o$(SPACE)'
  1.6967 +# When linking, how to specify the to be created executable.
  1.6968 +EXE_OUT_OPTION='-o$(SPACE)'
  1.6969 +# When linking, how to specify the to be created dynamically linkable library.
  1.6970 +LD_OUT_OPTION='-o$(SPACE)'
  1.6971 +# When archiving, how to specify the to be create static archive for object files.
  1.6972 +AR_OUT_OPTION='rcs$(SPACE)'
  1.6973 +
  1.6974 +
  1.6975 +
  1.6976 +
  1.6977 +
  1.6978 +# If --build AND --host is set, then the configure script will find any
  1.6979 +# cross compilation tools in the PATH. Cross compilation tools
  1.6980 +# follows the cross compilation standard where they are prefixed with ${host}.
  1.6981 +# For example the binary i686-sun-solaris2.10-gcc
  1.6982 +# will cross compile for i686-sun-solaris2.10
  1.6983 +# If neither of build and host is not set, then build=host and the
  1.6984 +# default compiler found in the path will be used.
  1.6985 +# Setting only --host, does not seem to be really supported.
  1.6986 +# Please set both --build and --host if you want to cross compile.
  1.6987 +
  1.6988 +DEFINE_CROSS_COMPILE_ARCH=""
  1.6989 +HOSTCC=""
  1.6990 +HOSTCXX=""
  1.6991 +
  1.6992 +
  1.6993 +
  1.6994 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a cross compile" >&5
  1.6995 +$as_echo_n "checking if this is a cross compile... " >&6; }
  1.6996 +if test "x$build_var" != "x$host_var"; then
  1.6997 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, from $build_var to $host_var" >&5
  1.6998 +$as_echo "yes, from $build_var to $host_var" >&6; }
  1.6999 +    # We have detected a cross compile!
  1.7000 +    DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$LEGACY_HOST_CPU1"
  1.7001 +    # Now we to find a C/C++ compiler that can build executables for the build
  1.7002 +    # platform. We can't use the AC_PROG_CC macro, since it can only be used
  1.7003 +    # once.
  1.7004 +    for ac_prog in cl cc gcc
  1.7005 +do
  1.7006 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.7007 +set dummy $ac_prog; ac_word=$2
  1.7008 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.7009 +$as_echo_n "checking for $ac_word... " >&6; }
  1.7010 +if test "${ac_cv_path_HOSTCC+set}" = set; then :
  1.7011 +  $as_echo_n "(cached) " >&6
  1.7012 +else
  1.7013 +  case $HOSTCC in
  1.7014 +  [\\/]* | ?:[\\/]*)
  1.7015 +  ac_cv_path_HOSTCC="$HOSTCC" # Let the user override the test with a path.
  1.7016 +  ;;
  1.7017 +  *)
  1.7018 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.7019 +for as_dir in $PATH
  1.7020 +do
  1.7021 +  IFS=$as_save_IFS
  1.7022 +  test -z "$as_dir" && as_dir=.
  1.7023 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.7024 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.7025 +    ac_cv_path_HOSTCC="$as_dir/$ac_word$ac_exec_ext"
  1.7026 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.7027 +    break 2
  1.7028 +  fi
  1.7029 +done
  1.7030 +  done
  1.7031 +IFS=$as_save_IFS
  1.7032 +
  1.7033 +  ;;
  1.7034 +esac
  1.7035 +fi
  1.7036 +HOSTCC=$ac_cv_path_HOSTCC
  1.7037 +if test -n "$HOSTCC"; then
  1.7038 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCC" >&5
  1.7039 +$as_echo "$HOSTCC" >&6; }
  1.7040 +else
  1.7041 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.7042 +$as_echo "no" >&6; }
  1.7043 +fi
  1.7044 +
  1.7045 +
  1.7046 +  test -n "$HOSTCC" && break
  1.7047 +done
  1.7048 +
  1.7049 +
  1.7050 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.7051 +    # extract the full path to the binary and at the
  1.7052 +    # same time maintain any arguments passed to it.
  1.7053 +    # The command MUST exist in the path, or else!
  1.7054 +    tmp="$HOSTCC"
  1.7055 +    car="${tmp%% *}"
  1.7056 +    tmp="$HOSTCC EOL"
  1.7057 +    cdr="${tmp#* }"
  1.7058 +    # On windows we want paths without spaces.
  1.7059 +    if test "x$BUILD_OS" = "xwindows"; then
  1.7060 +
  1.7061 +    # Translate long cygdrive or C:\sdfsf path
  1.7062 +    # into a short mixed mode path that has no
  1.7063 +    # spaces in it.
  1.7064 +    tmp="$car"
  1.7065 +    if test "x$BUILD_OS" = "xwindows"; then
  1.7066 +        tmp=`$CYGPATH -u "$car"`
  1.7067 +        tmp=`which "$tmp"`
  1.7068 +        # If file exists with .exe appended, that's the real filename
  1.7069 +        # and cygpath needs that to convert to short style path.
  1.7070 +        if test -f "${tmp}.exe"; then
  1.7071 +           tmp="${tmp}.exe"
  1.7072 +        elif test -f "${tmp}.cmd"; then
  1.7073 +           tmp="${tmp}.cmd"
  1.7074 +        fi
  1.7075 +        # Convert to C:/ mixed style path without spaces.
  1.7076 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.7077 +    fi
  1.7078 +    car="$tmp"
  1.7079 +
  1.7080 +    else
  1.7081 +        # "which" is not portable, but is used here
  1.7082 +        # because we know that the command exists!
  1.7083 +        car=`which $car`
  1.7084 +    fi
  1.7085 +    if test "x$cdr" != xEOL; then
  1.7086 +        HOSTCC="$car ${cdr% *}"
  1.7087 +    else
  1.7088 +        HOSTCC="$car"
  1.7089 +    fi
  1.7090 +
  1.7091 +    for ac_prog in cl CC g++
  1.7092 +do
  1.7093 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.7094 +set dummy $ac_prog; ac_word=$2
  1.7095 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.7096 +$as_echo_n "checking for $ac_word... " >&6; }
  1.7097 +if test "${ac_cv_path_HOSTCXX+set}" = set; then :
  1.7098 +  $as_echo_n "(cached) " >&6
  1.7099 +else
  1.7100 +  case $HOSTCXX in
  1.7101 +  [\\/]* | ?:[\\/]*)
  1.7102 +  ac_cv_path_HOSTCXX="$HOSTCXX" # Let the user override the test with a path.
  1.7103 +  ;;
  1.7104 +  *)
  1.7105 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.7106 +for as_dir in $PATH
  1.7107 +do
  1.7108 +  IFS=$as_save_IFS
  1.7109 +  test -z "$as_dir" && as_dir=.
  1.7110 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.7111 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.7112 +    ac_cv_path_HOSTCXX="$as_dir/$ac_word$ac_exec_ext"
  1.7113 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.7114 +    break 2
  1.7115 +  fi
  1.7116 +done
  1.7117 +  done
  1.7118 +IFS=$as_save_IFS
  1.7119 +
  1.7120 +  ;;
  1.7121 +esac
  1.7122 +fi
  1.7123 +HOSTCXX=$ac_cv_path_HOSTCXX
  1.7124 +if test -n "$HOSTCXX"; then
  1.7125 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCXX" >&5
  1.7126 +$as_echo "$HOSTCXX" >&6; }
  1.7127 +else
  1.7128 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.7129 +$as_echo "no" >&6; }
  1.7130 +fi
  1.7131 +
  1.7132 +
  1.7133 +  test -n "$HOSTCXX" && break
  1.7134 +done
  1.7135 +
  1.7136 +
  1.7137 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.7138 +    # extract the full path to the binary and at the
  1.7139 +    # same time maintain any arguments passed to it.
  1.7140 +    # The command MUST exist in the path, or else!
  1.7141 +    tmp="$HOSTCXX"
  1.7142 +    car="${tmp%% *}"
  1.7143 +    tmp="$HOSTCXX EOL"
  1.7144 +    cdr="${tmp#* }"
  1.7145 +    # On windows we want paths without spaces.
  1.7146 +    if test "x$BUILD_OS" = "xwindows"; then
  1.7147 +
  1.7148 +    # Translate long cygdrive or C:\sdfsf path
  1.7149 +    # into a short mixed mode path that has no
  1.7150 +    # spaces in it.
  1.7151 +    tmp="$car"
  1.7152 +    if test "x$BUILD_OS" = "xwindows"; then
  1.7153 +        tmp=`$CYGPATH -u "$car"`
  1.7154 +        tmp=`which "$tmp"`
  1.7155 +        # If file exists with .exe appended, that's the real filename
  1.7156 +        # and cygpath needs that to convert to short style path.
  1.7157 +        if test -f "${tmp}.exe"; then
  1.7158 +           tmp="${tmp}.exe"
  1.7159 +        elif test -f "${tmp}.cmd"; then
  1.7160 +           tmp="${tmp}.cmd"
  1.7161 +        fi
  1.7162 +        # Convert to C:/ mixed style path without spaces.
  1.7163 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.7164 +    fi
  1.7165 +    car="$tmp"
  1.7166 +
  1.7167 +    else
  1.7168 +        # "which" is not portable, but is used here
  1.7169 +        # because we know that the command exists!
  1.7170 +        car=`which $car`
  1.7171 +    fi
  1.7172 +    if test "x$cdr" != xEOL; then
  1.7173 +        HOSTCXX="$car ${cdr% *}"
  1.7174 +    else
  1.7175 +        HOSTCXX="$car"
  1.7176 +    fi
  1.7177 +
  1.7178 +    # Building for the build platform should be easy. Therefore
  1.7179 +    # we do not need any linkers or assemblers etc.
  1.7180 +else
  1.7181 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.7182 +$as_echo "no" >&6; }
  1.7183 +fi
  1.7184 +
  1.7185 +# You can force the sys-root if the sys-root encoded into the cross compiler tools
  1.7186 +# is not correct.
  1.7187 +
  1.7188 +# Check whether --with-sys-root was given.
  1.7189 +if test "${with_sys_root+set}" = set; then :
  1.7190 +  withval=$with_sys_root;
  1.7191 +fi
  1.7192 +
  1.7193 +
  1.7194 +if test "x$with_sys_root" != x; then
  1.7195 +    SYS_ROOT=$with_sys_root
  1.7196 +fi
  1.7197 +
  1.7198 +# If a devkit is found on the builddeps server, then prepend its path to the
  1.7199 +# PATH variable. If there are cross compilers available in the devkit, these
  1.7200 +# will be found by AC_PROG_CC et al.
  1.7201 +
  1.7202 +
  1.7203 +    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
  1.7204 +        # Source the builddeps file again, to make sure it uses the latest variables!
  1.7205 +        . $builddepsfile
  1.7206 +        # Look for a host and build machine specific resource!
  1.7207 +        eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
  1.7208 +        if test "x$resource" = x; then
  1.7209 +            # Ok, lets instead look for a host specific resource
  1.7210 +            eval resource=\${builddep_devkit_HOST_${rewritten_host_var}}
  1.7211 +        fi
  1.7212 +        if test "x$resource" = x; then
  1.7213 +            # Ok, lets instead look for a build specific resource
  1.7214 +            eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}}
  1.7215 +        fi
  1.7216 +        if test "x$resource" = x; then
  1.7217 +            # Ok, lets instead look for a generic resource
  1.7218 +            # (The devkit comes from M4 and not the shell, thus no need for eval here.)
  1.7219 +            resource=${builddep_devkit}
  1.7220 +        fi
  1.7221 +        if test "x$resource" != x; then
  1.7222 +            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5
  1.7223 +$as_echo "$as_me: Using builddeps $resource for devkit" >&6;}
  1.7224 +	    # If the resource in the builddeps.conf file is an existing directory,
  1.7225 +	    # for example /java/linux/cups
  1.7226 +	    if test -d ${resource}; then
  1.7227 +	       depdir=${resource}
  1.7228 +	    else
  1.7229 +
  1.7230 +# devkit is for example mymodule
  1.7231 +# $resource is for example libs/general/libmymod_1_2_3.zip
  1.7232 +# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
  1.7233 +# $with_builddeps_dir is for example /localhome/builddeps
  1.7234 +# depdir is the name of the variable into which we store the depdir, eg MYMOD
  1.7235 +# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
  1.7236 +# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
  1.7237 +    filename=`basename $resource`
  1.7238 +    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
  1.7239 +    filebase=${filename%%.*}
  1.7240 +    extension=${filename#*.}
  1.7241 +    installdir=$with_builddeps_dir/$filebase
  1.7242 +    if test ! -f $installdir/$filename.unpacked; then
  1.7243 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5
  1.7244 +$as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;}
  1.7245 +        if test ! -d $installdir; then
  1.7246 +            mkdir -p $installdir
  1.7247 +        fi
  1.7248 +        if test ! -d $installdir; then
  1.7249 +            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
  1.7250 +        fi
  1.7251 +        tmpfile=`mktemp $installdir/devkit.XXXXXXXXX`
  1.7252 +        touch $tmpfile
  1.7253 +        if test ! -f $tmpfile; then
  1.7254 +            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
  1.7255 +        fi
  1.7256 +
  1.7257 +    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
  1.7258 +    # $tmpfile is the local file name for the downloaded file.
  1.7259 +    VALID_TOOL=no
  1.7260 +    if test "x$BDEPS_FTP" = xwget; then
  1.7261 +       VALID_TOOL=yes
  1.7262 +       wget -O $tmpfile $with_builddeps_server/$resource
  1.7263 +    fi
  1.7264 +    if test "x$BDEPS_FTP" = xlftp; then
  1.7265 +       VALID_TOOL=yes
  1.7266 +       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
  1.7267 +    fi
  1.7268 +    if test "x$BDEPS_FTP" = xftp; then
  1.7269 +        VALID_TOOL=yes
  1.7270 +        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
  1.7271 +        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
  1.7272 +        FTPUSERPWD=${FTPSERVER%%@*}
  1.7273 +        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
  1.7274 +            FTPUSER=${userpwd%%:*}
  1.7275 +            FTPPWD=${userpwd#*@}
  1.7276 +            FTPSERVER=${FTPSERVER#*@}
  1.7277 +        else
  1.7278 +            FTPUSER=ftp
  1.7279 +            FTPPWD=ftp
  1.7280 +        fi
  1.7281 +        # the "pass" command does not work on some
  1.7282 +        # ftp clients (read ftp.exe) but if it works,
  1.7283 +        # passive mode is better!
  1.7284 +        (\
  1.7285 +            echo "user $FTPUSER $FTPPWD"        ;\
  1.7286 +            echo "pass"                         ;\
  1.7287 +            echo "bin"                          ;\
  1.7288 +            echo "get $FTPPATH $tmpfile"              ;\
  1.7289 +        ) | ftp -in $FTPSERVER
  1.7290 +    fi
  1.7291 +    if test "x$VALID_TOOL" != xyes; then
  1.7292 +       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
  1.7293 +    fi
  1.7294 +
  1.7295 +        mv $tmpfile $installdir/$filename
  1.7296 +        if test ! -s $installdir/$filename; then
  1.7297 +            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
  1.7298 +        fi
  1.7299 +        case "$extension" in
  1.7300 +            zip)  echo "Unzipping $installdir/$filename..."
  1.7301 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
  1.7302 +            ;;
  1.7303 +            tar.gz) echo "Untaring $installdir/$filename..."
  1.7304 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
  1.7305 +            ;;
  1.7306 +            tgz) echo "Untaring $installdir/$filename..."
  1.7307 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
  1.7308 +            ;;
  1.7309 +            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
  1.7310 +            ;;
  1.7311 +        esac
  1.7312 +    fi
  1.7313 +    if test -f $installdir/$filename.unpacked; then
  1.7314 +        depdir=$installdir
  1.7315 +    fi
  1.7316 +
  1.7317 +	    fi
  1.7318 +            # Source the builddeps file again, because in the previous command, the depdir
  1.7319 +            # was updated to point at the current build dependency install directory.
  1.7320 +            . $builddepsfile
  1.7321 +            # Now extract variables from the builddeps.conf files.
  1.7322 +            theroot=${builddep_devkit_ROOT}
  1.7323 +            thecflags=${builddep_devkit_CFLAGS}
  1.7324 +            thelibs=${builddep_devkit_LIBS}
  1.7325 +            if test "x$depdir" = x; then
  1.7326 +                as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5
  1.7327 +            fi
  1.7328 +            DEVKIT=$depdir
  1.7329 +            if test "x$theroot" != x; then
  1.7330 +               DEVKIT="$theroot"
  1.7331 +            fi
  1.7332 +            if test "x$thecflags" != x; then
  1.7333 +               DEVKIT_CFLAGS="$thecflags"
  1.7334 +            fi
  1.7335 +            if test "x$thelibs" != x; then
  1.7336 +               DEVKIT_LIBS="$thelibs"
  1.7337 +            fi
  1.7338 +            # Found devkit
  1.7339 +                     PATH="$DEVKIT/bin:$PATH"
  1.7340 +                     SYS_ROOT="$DEVKIT/${rewritten_host}/sys-root"
  1.7341 +                     if test "x$x_includes" = "xNONE"; then
  1.7342 +                         x_includes="$SYS_ROOT/usr/include/X11"
  1.7343 +                     fi
  1.7344 +                     if test "x$x_libraries" = "xNONE"; then
  1.7345 +                         x_libraries="$SYS_ROOT/usr/lib"
  1.7346 +                     fi
  1.7347 +
  1.7348 +
  1.7349 +        fi
  1.7350 +
  1.7351 +    fi
  1.7352 +
  1.7353 +
  1.7354 +if test "x$SYS_ROOT" != "x/" ; then
  1.7355 +    CFLAGS="--sysroot=$SYS_ROOT $CFLAGS"
  1.7356 +    CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS"
  1.7357 +    OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
  1.7358 +    OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
  1.7359 +    CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS"
  1.7360 +    LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS"
  1.7361 +fi
  1.7362 +
  1.7363 +# Store the CFLAGS etal passed to the configure script.
  1.7364 +ORG_CFLAGS="$CFLAGS"
  1.7365 +ORG_CXXFLAGS="$CXXFLAGS"
  1.7366 +ORG_OBJCFLAGS="$OBJCFLAGS"
  1.7367 +
  1.7368 +# gcc is almost always present, but on Windows we
  1.7369 +# prefer cl.exe and on Solaris we prefer CC.
  1.7370 +# Thus test for them in this order.
  1.7371 +ac_ext=c
  1.7372 +ac_cpp='$CPP $CPPFLAGS'
  1.7373 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.7374 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.7375 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1.7376 +if test -n "$ac_tool_prefix"; then
  1.7377 +  for ac_prog in cl cc gcc
  1.7378 +  do
  1.7379 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1.7380 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.7381 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.7382 +$as_echo_n "checking for $ac_word... " >&6; }
  1.7383 +if test "${ac_cv_prog_CC+set}" = set; then :
  1.7384 +  $as_echo_n "(cached) " >&6
  1.7385 +else
  1.7386 +  if test -n "$CC"; then
  1.7387 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  1.7388 +else
  1.7389 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.7390 +for as_dir in $PATH
  1.7391 +do
  1.7392 +  IFS=$as_save_IFS
  1.7393 +  test -z "$as_dir" && as_dir=.
  1.7394 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.7395 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.7396 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1.7397 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.7398 +    break 2
  1.7399 +  fi
  1.7400 +done
  1.7401 +  done
  1.7402 +IFS=$as_save_IFS
  1.7403 +
  1.7404 +fi
  1.7405 +fi
  1.7406 +CC=$ac_cv_prog_CC
  1.7407 +if test -n "$CC"; then
  1.7408 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1.7409 +$as_echo "$CC" >&6; }
  1.7410 +else
  1.7411 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.7412 +$as_echo "no" >&6; }
  1.7413 +fi
  1.7414 +
  1.7415 +
  1.7416 +    test -n "$CC" && break
  1.7417 +  done
  1.7418 +fi
  1.7419 +if test -z "$CC"; then
  1.7420 +  ac_ct_CC=$CC
  1.7421 +  for ac_prog in cl cc gcc
  1.7422 +do
  1.7423 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.7424 +set dummy $ac_prog; ac_word=$2
  1.7425 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.7426 +$as_echo_n "checking for $ac_word... " >&6; }
  1.7427 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  1.7428 +  $as_echo_n "(cached) " >&6
  1.7429 +else
  1.7430 +  if test -n "$ac_ct_CC"; then
  1.7431 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1.7432 +else
  1.7433 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.7434 +for as_dir in $PATH
  1.7435 +do
  1.7436 +  IFS=$as_save_IFS
  1.7437 +  test -z "$as_dir" && as_dir=.
  1.7438 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.7439 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.7440 +    ac_cv_prog_ac_ct_CC="$ac_prog"
  1.7441 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.7442 +    break 2
  1.7443 +  fi
  1.7444 +done
  1.7445 +  done
  1.7446 +IFS=$as_save_IFS
  1.7447 +
  1.7448 +fi
  1.7449 +fi
  1.7450 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1.7451 +if test -n "$ac_ct_CC"; then
  1.7452 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1.7453 +$as_echo "$ac_ct_CC" >&6; }
  1.7454 +else
  1.7455 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.7456 +$as_echo "no" >&6; }
  1.7457 +fi
  1.7458 +
  1.7459 +
  1.7460 +  test -n "$ac_ct_CC" && break
  1.7461 +done
  1.7462 +
  1.7463 +  if test "x$ac_ct_CC" = x; then
  1.7464 +    CC=""
  1.7465 +  else
  1.7466 +    case $cross_compiling:$ac_tool_warned in
  1.7467 +yes:)
  1.7468 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1.7469 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1.7470 +ac_tool_warned=yes ;;
  1.7471 +esac
  1.7472 +    CC=$ac_ct_CC
  1.7473 +  fi
  1.7474 +fi
  1.7475 +
  1.7476 +
  1.7477 +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.7478 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.7479 +as_fn_error $? "no acceptable C compiler found in \$PATH
  1.7480 +See \`config.log' for more details" "$LINENO" 5 ; }
  1.7481 +
  1.7482 +# Provide some information about the compiler.
  1.7483 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  1.7484 +set X $ac_compile
  1.7485 +ac_compiler=$2
  1.7486 +for ac_option in --version -v -V -qversion; do
  1.7487 +  { { ac_try="$ac_compiler $ac_option >&5"
  1.7488 +case "(($ac_try" in
  1.7489 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.7490 +  *) ac_try_echo=$ac_try;;
  1.7491 +esac
  1.7492 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.7493 +$as_echo "$ac_try_echo"; } >&5
  1.7494 +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  1.7495 +  ac_status=$?
  1.7496 +  if test -s conftest.err; then
  1.7497 +    sed '10a\
  1.7498 +... rest of stderr output deleted ...
  1.7499 +         10q' conftest.err >conftest.er1
  1.7500 +    cat conftest.er1 >&5
  1.7501 +  fi
  1.7502 +  rm -f conftest.er1 conftest.err
  1.7503 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.7504 +  test $ac_status = 0; }
  1.7505 +done
  1.7506 +
  1.7507 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.7508 +/* end confdefs.h.  */
  1.7509 +
  1.7510 +int
  1.7511 +main ()
  1.7512 +{
  1.7513 +
  1.7514 +  ;
  1.7515 +  return 0;
  1.7516 +}
  1.7517 +_ACEOF
  1.7518 +ac_clean_files_save=$ac_clean_files
  1.7519 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1.7520 +# Try to create an executable without -o first, disregard a.out.
  1.7521 +# It will help us diagnose broken compilers, and finding out an intuition
  1.7522 +# of exeext.
  1.7523 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  1.7524 +$as_echo_n "checking whether the C compiler works... " >&6; }
  1.7525 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1.7526 +
  1.7527 +# The possible output files:
  1.7528 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1.7529 +
  1.7530 +ac_rmfiles=
  1.7531 +for ac_file in $ac_files
  1.7532 +do
  1.7533 +  case $ac_file in
  1.7534 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1.7535 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1.7536 +  esac
  1.7537 +done
  1.7538 +rm -f $ac_rmfiles
  1.7539 +
  1.7540 +if { { ac_try="$ac_link_default"
  1.7541 +case "(($ac_try" in
  1.7542 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.7543 +  *) ac_try_echo=$ac_try;;
  1.7544 +esac
  1.7545 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.7546 +$as_echo "$ac_try_echo"; } >&5
  1.7547 +  (eval "$ac_link_default") 2>&5
  1.7548 +  ac_status=$?
  1.7549 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.7550 +  test $ac_status = 0; }; then :
  1.7551 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1.7552 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1.7553 +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
  1.7554 +# so that the user can short-circuit this test for compilers unknown to
  1.7555 +# Autoconf.
  1.7556 +for ac_file in $ac_files ''
  1.7557 +do
  1.7558 +  test -f "$ac_file" || continue
  1.7559 +  case $ac_file in
  1.7560 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1.7561 +	;;
  1.7562 +    [ab].out )
  1.7563 +	# We found the default executable, but exeext='' is most
  1.7564 +	# certainly right.
  1.7565 +	break;;
  1.7566 +    *.* )
  1.7567 +	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1.7568 +	then :; else
  1.7569 +	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1.7570 +	fi
  1.7571 +	# We set ac_cv_exeext here because the later test for it is not
  1.7572 +	# safe: cross compilers may not add the suffix if given an `-o'
  1.7573 +	# argument, so we may need to know it at that point already.
  1.7574 +	# Even if this section looks crufty: it has the advantage of
  1.7575 +	# actually working.
  1.7576 +	break;;
  1.7577 +    * )
  1.7578 +	break;;
  1.7579 +  esac
  1.7580 +done
  1.7581 +test "$ac_cv_exeext" = no && ac_cv_exeext=
  1.7582 +
  1.7583 +else
  1.7584 +  ac_file=''
  1.7585 +fi
  1.7586 +if test -z "$ac_file"; then :
  1.7587 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.7588 +$as_echo "no" >&6; }
  1.7589 +$as_echo "$as_me: failed program was:" >&5
  1.7590 +sed 's/^/| /' conftest.$ac_ext >&5
  1.7591 +
  1.7592 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.7593 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.7594 +as_fn_error 77 "C compiler cannot create executables
  1.7595 +See \`config.log' for more details" "$LINENO" 5 ; }
  1.7596 +else
  1.7597 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1.7598 +$as_echo "yes" >&6; }
  1.7599 +fi
  1.7600 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  1.7601 +$as_echo_n "checking for C compiler default output file name... " >&6; }
  1.7602 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  1.7603 +$as_echo "$ac_file" >&6; }
  1.7604 +ac_exeext=$ac_cv_exeext
  1.7605 +
  1.7606 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1.7607 +ac_clean_files=$ac_clean_files_save
  1.7608 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  1.7609 +$as_echo_n "checking for suffix of executables... " >&6; }
  1.7610 +if { { ac_try="$ac_link"
  1.7611 +case "(($ac_try" in
  1.7612 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.7613 +  *) ac_try_echo=$ac_try;;
  1.7614 +esac
  1.7615 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.7616 +$as_echo "$ac_try_echo"; } >&5
  1.7617 +  (eval "$ac_link") 2>&5
  1.7618 +  ac_status=$?
  1.7619 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.7620 +  test $ac_status = 0; }; then :
  1.7621 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1.7622 +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  1.7623 +# work properly (i.e., refer to `conftest.exe'), while it won't with
  1.7624 +# `rm'.
  1.7625 +for ac_file in conftest.exe conftest conftest.*; do
  1.7626 +  test -f "$ac_file" || continue
  1.7627 +  case $ac_file in
  1.7628 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1.7629 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1.7630 +	  break;;
  1.7631 +    * ) break;;
  1.7632 +  esac
  1.7633 +done
  1.7634 +else
  1.7635 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.7636 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.7637 +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  1.7638 +See \`config.log' for more details" "$LINENO" 5 ; }
  1.7639 +fi
  1.7640 +rm -f conftest conftest$ac_cv_exeext
  1.7641 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  1.7642 +$as_echo "$ac_cv_exeext" >&6; }
  1.7643 +
  1.7644 +rm -f conftest.$ac_ext
  1.7645 +EXEEXT=$ac_cv_exeext
  1.7646 +ac_exeext=$EXEEXT
  1.7647 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.7648 +/* end confdefs.h.  */
  1.7649 +#include <stdio.h>
  1.7650 +int
  1.7651 +main ()
  1.7652 +{
  1.7653 +FILE *f = fopen ("conftest.out", "w");
  1.7654 + return ferror (f) || fclose (f) != 0;
  1.7655 +
  1.7656 +  ;
  1.7657 +  return 0;
  1.7658 +}
  1.7659 +_ACEOF
  1.7660 +ac_clean_files="$ac_clean_files conftest.out"
  1.7661 +# Check that the compiler produces executables we can run.  If not, either
  1.7662 +# the compiler is broken, or we cross compile.
  1.7663 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  1.7664 +$as_echo_n "checking whether we are cross compiling... " >&6; }
  1.7665 +if test "$cross_compiling" != yes; then
  1.7666 +  { { ac_try="$ac_link"
  1.7667 +case "(($ac_try" in
  1.7668 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.7669 +  *) ac_try_echo=$ac_try;;
  1.7670 +esac
  1.7671 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.7672 +$as_echo "$ac_try_echo"; } >&5
  1.7673 +  (eval "$ac_link") 2>&5
  1.7674 +  ac_status=$?
  1.7675 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.7676 +  test $ac_status = 0; }
  1.7677 +  if { ac_try='./conftest$ac_cv_exeext'
  1.7678 +  { { case "(($ac_try" in
  1.7679 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.7680 +  *) ac_try_echo=$ac_try;;
  1.7681 +esac
  1.7682 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.7683 +$as_echo "$ac_try_echo"; } >&5
  1.7684 +  (eval "$ac_try") 2>&5
  1.7685 +  ac_status=$?
  1.7686 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.7687 +  test $ac_status = 0; }; }; then
  1.7688 +    cross_compiling=no
  1.7689 +  else
  1.7690 +    if test "$cross_compiling" = maybe; then
  1.7691 +	cross_compiling=yes
  1.7692 +    else
  1.7693 +	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.7694 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.7695 +as_fn_error $? "cannot run C compiled programs.
  1.7696 +If you meant to cross compile, use \`--host'.
  1.7697 +See \`config.log' for more details" "$LINENO" 5 ; }
  1.7698 +    fi
  1.7699 +  fi
  1.7700 +fi
  1.7701 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  1.7702 +$as_echo "$cross_compiling" >&6; }
  1.7703 +
  1.7704 +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  1.7705 +ac_clean_files=$ac_clean_files_save
  1.7706 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  1.7707 +$as_echo_n "checking for suffix of object files... " >&6; }
  1.7708 +if test "${ac_cv_objext+set}" = set; then :
  1.7709 +  $as_echo_n "(cached) " >&6
  1.7710 +else
  1.7711 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.7712 +/* end confdefs.h.  */
  1.7713 +
  1.7714 +int
  1.7715 +main ()
  1.7716 +{
  1.7717 +
  1.7718 +  ;
  1.7719 +  return 0;
  1.7720 +}
  1.7721 +_ACEOF
  1.7722 +rm -f conftest.o conftest.obj
  1.7723 +if { { ac_try="$ac_compile"
  1.7724 +case "(($ac_try" in
  1.7725 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.7726 +  *) ac_try_echo=$ac_try;;
  1.7727 +esac
  1.7728 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.7729 +$as_echo "$ac_try_echo"; } >&5
  1.7730 +  (eval "$ac_compile") 2>&5
  1.7731 +  ac_status=$?
  1.7732 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.7733 +  test $ac_status = 0; }; then :
  1.7734 +  for ac_file in conftest.o conftest.obj conftest.*; do
  1.7735 +  test -f "$ac_file" || continue;
  1.7736 +  case $ac_file in
  1.7737 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1.7738 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1.7739 +       break;;
  1.7740 +  esac
  1.7741 +done
  1.7742 +else
  1.7743 +  $as_echo "$as_me: failed program was:" >&5
  1.7744 +sed 's/^/| /' conftest.$ac_ext >&5
  1.7745 +
  1.7746 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.7747 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.7748 +as_fn_error $? "cannot compute suffix of object files: cannot compile
  1.7749 +See \`config.log' for more details" "$LINENO" 5 ; }
  1.7750 +fi
  1.7751 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1.7752 +fi
  1.7753 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  1.7754 +$as_echo "$ac_cv_objext" >&6; }
  1.7755 +OBJEXT=$ac_cv_objext
  1.7756 +ac_objext=$OBJEXT
  1.7757 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  1.7758 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  1.7759 +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  1.7760 +  $as_echo_n "(cached) " >&6
  1.7761 +else
  1.7762 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.7763 +/* end confdefs.h.  */
  1.7764 +
  1.7765 +int
  1.7766 +main ()
  1.7767 +{
  1.7768 +#ifndef __GNUC__
  1.7769 +       choke me
  1.7770 +#endif
  1.7771 +
  1.7772 +  ;
  1.7773 +  return 0;
  1.7774 +}
  1.7775 +_ACEOF
  1.7776 +if ac_fn_c_try_compile "$LINENO"; then :
  1.7777 +  ac_compiler_gnu=yes
  1.7778 +else
  1.7779 +  ac_compiler_gnu=no
  1.7780 +fi
  1.7781 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.7782 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1.7783 +
  1.7784 +fi
  1.7785 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  1.7786 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  1.7787 +if test $ac_compiler_gnu = yes; then
  1.7788 +  GCC=yes
  1.7789 +else
  1.7790 +  GCC=
  1.7791 +fi
  1.7792 +ac_test_CFLAGS=${CFLAGS+set}
  1.7793 +ac_save_CFLAGS=$CFLAGS
  1.7794 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  1.7795 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  1.7796 +if test "${ac_cv_prog_cc_g+set}" = set; then :
  1.7797 +  $as_echo_n "(cached) " >&6
  1.7798 +else
  1.7799 +  ac_save_c_werror_flag=$ac_c_werror_flag
  1.7800 +   ac_c_werror_flag=yes
  1.7801 +   ac_cv_prog_cc_g=no
  1.7802 +   CFLAGS="-g"
  1.7803 +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.7804 +/* end confdefs.h.  */
  1.7805 +
  1.7806 +int
  1.7807 +main ()
  1.7808 +{
  1.7809 +
  1.7810 +  ;
  1.7811 +  return 0;
  1.7812 +}
  1.7813 +_ACEOF
  1.7814 +if ac_fn_c_try_compile "$LINENO"; then :
  1.7815 +  ac_cv_prog_cc_g=yes
  1.7816 +else
  1.7817 +  CFLAGS=""
  1.7818 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.7819 +/* end confdefs.h.  */
  1.7820 +
  1.7821 +int
  1.7822 +main ()
  1.7823 +{
  1.7824 +
  1.7825 +  ;
  1.7826 +  return 0;
  1.7827 +}
  1.7828 +_ACEOF
  1.7829 +if ac_fn_c_try_compile "$LINENO"; then :
  1.7830 +
  1.7831 +else
  1.7832 +  ac_c_werror_flag=$ac_save_c_werror_flag
  1.7833 +	 CFLAGS="-g"
  1.7834 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.7835 +/* end confdefs.h.  */
  1.7836 +
  1.7837 +int
  1.7838 +main ()
  1.7839 +{
  1.7840 +
  1.7841 +  ;
  1.7842 +  return 0;
  1.7843 +}
  1.7844 +_ACEOF
  1.7845 +if ac_fn_c_try_compile "$LINENO"; then :
  1.7846 +  ac_cv_prog_cc_g=yes
  1.7847 +fi
  1.7848 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.7849 +fi
  1.7850 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.7851 +fi
  1.7852 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.7853 +   ac_c_werror_flag=$ac_save_c_werror_flag
  1.7854 +fi
  1.7855 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  1.7856 +$as_echo "$ac_cv_prog_cc_g" >&6; }
  1.7857 +if test "$ac_test_CFLAGS" = set; then
  1.7858 +  CFLAGS=$ac_save_CFLAGS
  1.7859 +elif test $ac_cv_prog_cc_g = yes; then
  1.7860 +  if test "$GCC" = yes; then
  1.7861 +    CFLAGS="-g -O2"
  1.7862 +  else
  1.7863 +    CFLAGS="-g"
  1.7864 +  fi
  1.7865 +else
  1.7866 +  if test "$GCC" = yes; then
  1.7867 +    CFLAGS="-O2"
  1.7868 +  else
  1.7869 +    CFLAGS=
  1.7870 +  fi
  1.7871 +fi
  1.7872 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  1.7873 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  1.7874 +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  1.7875 +  $as_echo_n "(cached) " >&6
  1.7876 +else
  1.7877 +  ac_cv_prog_cc_c89=no
  1.7878 +ac_save_CC=$CC
  1.7879 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.7880 +/* end confdefs.h.  */
  1.7881 +#include <stdarg.h>
  1.7882 +#include <stdio.h>
  1.7883 +#include <sys/types.h>
  1.7884 +#include <sys/stat.h>
  1.7885 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  1.7886 +struct buf { int x; };
  1.7887 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1.7888 +static char *e (p, i)
  1.7889 +     char **p;
  1.7890 +     int i;
  1.7891 +{
  1.7892 +  return p[i];
  1.7893 +}
  1.7894 +static char *f (char * (*g) (char **, int), char **p, ...)
  1.7895 +{
  1.7896 +  char *s;
  1.7897 +  va_list v;
  1.7898 +  va_start (v,p);
  1.7899 +  s = g (p, va_arg (v,int));
  1.7900 +  va_end (v);
  1.7901 +  return s;
  1.7902 +}
  1.7903 +
  1.7904 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  1.7905 +   function prototypes and stuff, but not '\xHH' hex character constants.
  1.7906 +   These don't provoke an error unfortunately, instead are silently treated
  1.7907 +   as 'x'.  The following induces an error, until -std is added to get
  1.7908 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  1.7909 +   array size at least.  It's necessary to write '\x00'==0 to get something
  1.7910 +   that's true only with -std.  */
  1.7911 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1.7912 +
  1.7913 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1.7914 +   inside strings and character constants.  */
  1.7915 +#define FOO(x) 'x'
  1.7916 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  1.7917 +
  1.7918 +int test (int i, double x);
  1.7919 +struct s1 {int (*f) (int a);};
  1.7920 +struct s2 {int (*f) (double a);};
  1.7921 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1.7922 +int argc;
  1.7923 +char **argv;
  1.7924 +int
  1.7925 +main ()
  1.7926 +{
  1.7927 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  1.7928 +  ;
  1.7929 +  return 0;
  1.7930 +}
  1.7931 +_ACEOF
  1.7932 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  1.7933 +	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1.7934 +do
  1.7935 +  CC="$ac_save_CC $ac_arg"
  1.7936 +  if ac_fn_c_try_compile "$LINENO"; then :
  1.7937 +  ac_cv_prog_cc_c89=$ac_arg
  1.7938 +fi
  1.7939 +rm -f core conftest.err conftest.$ac_objext
  1.7940 +  test "x$ac_cv_prog_cc_c89" != "xno" && break
  1.7941 +done
  1.7942 +rm -f conftest.$ac_ext
  1.7943 +CC=$ac_save_CC
  1.7944 +
  1.7945 +fi
  1.7946 +# AC_CACHE_VAL
  1.7947 +case "x$ac_cv_prog_cc_c89" in
  1.7948 +  x)
  1.7949 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  1.7950 +$as_echo "none needed" >&6; } ;;
  1.7951 +  xno)
  1.7952 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  1.7953 +$as_echo "unsupported" >&6; } ;;
  1.7954 +  *)
  1.7955 +    CC="$CC $ac_cv_prog_cc_c89"
  1.7956 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  1.7957 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  1.7958 +esac
  1.7959 +if test "x$ac_cv_prog_cc_c89" != xno; then :
  1.7960 +
  1.7961 +fi
  1.7962 +
  1.7963 +ac_ext=cpp
  1.7964 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.7965 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.7966 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.7967 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.7968 +
  1.7969 +if test "x$CC" = x; then
  1.7970 +    help_on_build_dependency devkit
  1.7971 +    as_fn_error $? "Could not find a compiler. $HELP_MSG" "$LINENO" 5
  1.7972 +fi
  1.7973 +if test "x$CC" = xcc && test "x$BUILD_OS" = xmacosx; then
  1.7974 +    # Do not use cc on MacOSX use gcc instead.
  1.7975 +    CC="gcc"
  1.7976 +fi
  1.7977 +
  1.7978 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.7979 +    # extract the full path to the binary and at the
  1.7980 +    # same time maintain any arguments passed to it.
  1.7981 +    # The command MUST exist in the path, or else!
  1.7982 +    tmp="$CC"
  1.7983 +    car="${tmp%% *}"
  1.7984 +    tmp="$CC EOL"
  1.7985 +    cdr="${tmp#* }"
  1.7986 +    # On windows we want paths without spaces.
  1.7987 +    if test "x$BUILD_OS" = "xwindows"; then
  1.7988 +
  1.7989 +    # Translate long cygdrive or C:\sdfsf path
  1.7990 +    # into a short mixed mode path that has no
  1.7991 +    # spaces in it.
  1.7992 +    tmp="$car"
  1.7993 +    if test "x$BUILD_OS" = "xwindows"; then
  1.7994 +        tmp=`$CYGPATH -u "$car"`
  1.7995 +        tmp=`which "$tmp"`
  1.7996 +        # If file exists with .exe appended, that's the real filename
  1.7997 +        # and cygpath needs that to convert to short style path.
  1.7998 +        if test -f "${tmp}.exe"; then
  1.7999 +           tmp="${tmp}.exe"
  1.8000 +        elif test -f "${tmp}.cmd"; then
  1.8001 +           tmp="${tmp}.cmd"
  1.8002 +        fi
  1.8003 +        # Convert to C:/ mixed style path without spaces.
  1.8004 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.8005 +    fi
  1.8006 +    car="$tmp"
  1.8007 +
  1.8008 +    else
  1.8009 +        # "which" is not portable, but is used here
  1.8010 +        # because we know that the command exists!
  1.8011 +        car=`which $car`
  1.8012 +    fi
  1.8013 +    if test "x$cdr" != xEOL; then
  1.8014 +        CC="$car ${cdr% *}"
  1.8015 +    else
  1.8016 +        CC="$car"
  1.8017 +    fi
  1.8018 +
  1.8019 +
  1.8020 +ac_ext=cpp
  1.8021 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.8022 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.8023 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.8024 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.8025 +if test -z "$CXX"; then
  1.8026 +  if test -n "$CCC"; then
  1.8027 +    CXX=$CCC
  1.8028 +  else
  1.8029 +    if test -n "$ac_tool_prefix"; then
  1.8030 +  for ac_prog in cl CC g++
  1.8031 +  do
  1.8032 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1.8033 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.8034 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8035 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8036 +if test "${ac_cv_prog_CXX+set}" = set; then :
  1.8037 +  $as_echo_n "(cached) " >&6
  1.8038 +else
  1.8039 +  if test -n "$CXX"; then
  1.8040 +  ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1.8041 +else
  1.8042 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8043 +for as_dir in $PATH
  1.8044 +do
  1.8045 +  IFS=$as_save_IFS
  1.8046 +  test -z "$as_dir" && as_dir=.
  1.8047 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8048 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8049 +    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1.8050 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8051 +    break 2
  1.8052 +  fi
  1.8053 +done
  1.8054 +  done
  1.8055 +IFS=$as_save_IFS
  1.8056 +
  1.8057 +fi
  1.8058 +fi
  1.8059 +CXX=$ac_cv_prog_CXX
  1.8060 +if test -n "$CXX"; then
  1.8061 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  1.8062 +$as_echo "$CXX" >&6; }
  1.8063 +else
  1.8064 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8065 +$as_echo "no" >&6; }
  1.8066 +fi
  1.8067 +
  1.8068 +
  1.8069 +    test -n "$CXX" && break
  1.8070 +  done
  1.8071 +fi
  1.8072 +if test -z "$CXX"; then
  1.8073 +  ac_ct_CXX=$CXX
  1.8074 +  for ac_prog in cl CC g++
  1.8075 +do
  1.8076 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.8077 +set dummy $ac_prog; ac_word=$2
  1.8078 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8079 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8080 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  1.8081 +  $as_echo_n "(cached) " >&6
  1.8082 +else
  1.8083 +  if test -n "$ac_ct_CXX"; then
  1.8084 +  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1.8085 +else
  1.8086 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8087 +for as_dir in $PATH
  1.8088 +do
  1.8089 +  IFS=$as_save_IFS
  1.8090 +  test -z "$as_dir" && as_dir=.
  1.8091 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8092 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8093 +    ac_cv_prog_ac_ct_CXX="$ac_prog"
  1.8094 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8095 +    break 2
  1.8096 +  fi
  1.8097 +done
  1.8098 +  done
  1.8099 +IFS=$as_save_IFS
  1.8100 +
  1.8101 +fi
  1.8102 +fi
  1.8103 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1.8104 +if test -n "$ac_ct_CXX"; then
  1.8105 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  1.8106 +$as_echo "$ac_ct_CXX" >&6; }
  1.8107 +else
  1.8108 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8109 +$as_echo "no" >&6; }
  1.8110 +fi
  1.8111 +
  1.8112 +
  1.8113 +  test -n "$ac_ct_CXX" && break
  1.8114 +done
  1.8115 +
  1.8116 +  if test "x$ac_ct_CXX" = x; then
  1.8117 +    CXX="g++"
  1.8118 +  else
  1.8119 +    case $cross_compiling:$ac_tool_warned in
  1.8120 +yes:)
  1.8121 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1.8122 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1.8123 +ac_tool_warned=yes ;;
  1.8124 +esac
  1.8125 +    CXX=$ac_ct_CXX
  1.8126 +  fi
  1.8127 +fi
  1.8128 +
  1.8129 +  fi
  1.8130 +fi
  1.8131 +# Provide some information about the compiler.
  1.8132 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  1.8133 +set X $ac_compile
  1.8134 +ac_compiler=$2
  1.8135 +for ac_option in --version -v -V -qversion; do
  1.8136 +  { { ac_try="$ac_compiler $ac_option >&5"
  1.8137 +case "(($ac_try" in
  1.8138 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.8139 +  *) ac_try_echo=$ac_try;;
  1.8140 +esac
  1.8141 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.8142 +$as_echo "$ac_try_echo"; } >&5
  1.8143 +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  1.8144 +  ac_status=$?
  1.8145 +  if test -s conftest.err; then
  1.8146 +    sed '10a\
  1.8147 +... rest of stderr output deleted ...
  1.8148 +         10q' conftest.err >conftest.er1
  1.8149 +    cat conftest.er1 >&5
  1.8150 +  fi
  1.8151 +  rm -f conftest.er1 conftest.err
  1.8152 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.8153 +  test $ac_status = 0; }
  1.8154 +done
  1.8155 +
  1.8156 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  1.8157 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1.8158 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  1.8159 +  $as_echo_n "(cached) " >&6
  1.8160 +else
  1.8161 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.8162 +/* end confdefs.h.  */
  1.8163 +
  1.8164 +int
  1.8165 +main ()
  1.8166 +{
  1.8167 +#ifndef __GNUC__
  1.8168 +       choke me
  1.8169 +#endif
  1.8170 +
  1.8171 +  ;
  1.8172 +  return 0;
  1.8173 +}
  1.8174 +_ACEOF
  1.8175 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.8176 +  ac_compiler_gnu=yes
  1.8177 +else
  1.8178 +  ac_compiler_gnu=no
  1.8179 +fi
  1.8180 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.8181 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1.8182 +
  1.8183 +fi
  1.8184 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  1.8185 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  1.8186 +if test $ac_compiler_gnu = yes; then
  1.8187 +  GXX=yes
  1.8188 +else
  1.8189 +  GXX=
  1.8190 +fi
  1.8191 +ac_test_CXXFLAGS=${CXXFLAGS+set}
  1.8192 +ac_save_CXXFLAGS=$CXXFLAGS
  1.8193 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  1.8194 +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  1.8195 +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  1.8196 +  $as_echo_n "(cached) " >&6
  1.8197 +else
  1.8198 +  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1.8199 +   ac_cxx_werror_flag=yes
  1.8200 +   ac_cv_prog_cxx_g=no
  1.8201 +   CXXFLAGS="-g"
  1.8202 +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.8203 +/* end confdefs.h.  */
  1.8204 +
  1.8205 +int
  1.8206 +main ()
  1.8207 +{
  1.8208 +
  1.8209 +  ;
  1.8210 +  return 0;
  1.8211 +}
  1.8212 +_ACEOF
  1.8213 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.8214 +  ac_cv_prog_cxx_g=yes
  1.8215 +else
  1.8216 +  CXXFLAGS=""
  1.8217 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.8218 +/* end confdefs.h.  */
  1.8219 +
  1.8220 +int
  1.8221 +main ()
  1.8222 +{
  1.8223 +
  1.8224 +  ;
  1.8225 +  return 0;
  1.8226 +}
  1.8227 +_ACEOF
  1.8228 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.8229 +
  1.8230 +else
  1.8231 +  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  1.8232 +	 CXXFLAGS="-g"
  1.8233 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.8234 +/* end confdefs.h.  */
  1.8235 +
  1.8236 +int
  1.8237 +main ()
  1.8238 +{
  1.8239 +
  1.8240 +  ;
  1.8241 +  return 0;
  1.8242 +}
  1.8243 +_ACEOF
  1.8244 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.8245 +  ac_cv_prog_cxx_g=yes
  1.8246 +fi
  1.8247 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.8248 +fi
  1.8249 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.8250 +fi
  1.8251 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.8252 +   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  1.8253 +fi
  1.8254 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  1.8255 +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  1.8256 +if test "$ac_test_CXXFLAGS" = set; then
  1.8257 +  CXXFLAGS=$ac_save_CXXFLAGS
  1.8258 +elif test $ac_cv_prog_cxx_g = yes; then
  1.8259 +  if test "$GXX" = yes; then
  1.8260 +    CXXFLAGS="-g -O2"
  1.8261 +  else
  1.8262 +    CXXFLAGS="-g"
  1.8263 +  fi
  1.8264 +else
  1.8265 +  if test "$GXX" = yes; then
  1.8266 +    CXXFLAGS="-O2"
  1.8267 +  else
  1.8268 +    CXXFLAGS=
  1.8269 +  fi
  1.8270 +fi
  1.8271 +ac_ext=cpp
  1.8272 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.8273 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.8274 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.8275 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.8276 +
  1.8277 +if test "x$CXX" = xCC && test "x$BUILD_OS" = xmacosx; then
  1.8278 +    # The found CC, even though it seems to be a g++ derivate, cannot compile
  1.8279 +    # c++ code. Override.
  1.8280 +    CXX="g++"
  1.8281 +fi
  1.8282 +
  1.8283 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.8284 +    # extract the full path to the binary and at the
  1.8285 +    # same time maintain any arguments passed to it.
  1.8286 +    # The command MUST exist in the path, or else!
  1.8287 +    tmp="$CXX"
  1.8288 +    car="${tmp%% *}"
  1.8289 +    tmp="$CXX EOL"
  1.8290 +    cdr="${tmp#* }"
  1.8291 +    # On windows we want paths without spaces.
  1.8292 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8293 +
  1.8294 +    # Translate long cygdrive or C:\sdfsf path
  1.8295 +    # into a short mixed mode path that has no
  1.8296 +    # spaces in it.
  1.8297 +    tmp="$car"
  1.8298 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8299 +        tmp=`$CYGPATH -u "$car"`
  1.8300 +        tmp=`which "$tmp"`
  1.8301 +        # If file exists with .exe appended, that's the real filename
  1.8302 +        # and cygpath needs that to convert to short style path.
  1.8303 +        if test -f "${tmp}.exe"; then
  1.8304 +           tmp="${tmp}.exe"
  1.8305 +        elif test -f "${tmp}.cmd"; then
  1.8306 +           tmp="${tmp}.cmd"
  1.8307 +        fi
  1.8308 +        # Convert to C:/ mixed style path without spaces.
  1.8309 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.8310 +    fi
  1.8311 +    car="$tmp"
  1.8312 +
  1.8313 +    else
  1.8314 +        # "which" is not portable, but is used here
  1.8315 +        # because we know that the command exists!
  1.8316 +        car=`which $car`
  1.8317 +    fi
  1.8318 +    if test "x$cdr" != xEOL; then
  1.8319 +        CXX="$car ${cdr% *}"
  1.8320 +    else
  1.8321 +        CXX="$car"
  1.8322 +    fi
  1.8323 +
  1.8324 +
  1.8325 +if test "x$CXX" = x || test "x$CC" = x; then
  1.8326 +    help_on_build_dependency devkit
  1.8327 +    as_fn_error $? "Could not find the needed compilers! $HELP_MSG " "$LINENO" 5
  1.8328 +fi
  1.8329 +
  1.8330 +if test "x$BUILD_OS" != xwindows; then
  1.8331 +    ac_ext=m
  1.8332 +ac_cpp='$OBJCPP $CPPFLAGS'
  1.8333 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.8334 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.8335 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  1.8336 +if test -n "$ac_tool_prefix"; then
  1.8337 +  for ac_prog in gcc objcc objc cc CC
  1.8338 +  do
  1.8339 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1.8340 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.8341 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8342 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8343 +if test "${ac_cv_prog_OBJC+set}" = set; then :
  1.8344 +  $as_echo_n "(cached) " >&6
  1.8345 +else
  1.8346 +  if test -n "$OBJC"; then
  1.8347 +  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  1.8348 +else
  1.8349 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8350 +for as_dir in $PATH
  1.8351 +do
  1.8352 +  IFS=$as_save_IFS
  1.8353 +  test -z "$as_dir" && as_dir=.
  1.8354 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8355 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8356 +    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  1.8357 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8358 +    break 2
  1.8359 +  fi
  1.8360 +done
  1.8361 +  done
  1.8362 +IFS=$as_save_IFS
  1.8363 +
  1.8364 +fi
  1.8365 +fi
  1.8366 +OBJC=$ac_cv_prog_OBJC
  1.8367 +if test -n "$OBJC"; then
  1.8368 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
  1.8369 +$as_echo "$OBJC" >&6; }
  1.8370 +else
  1.8371 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8372 +$as_echo "no" >&6; }
  1.8373 +fi
  1.8374 +
  1.8375 +
  1.8376 +    test -n "$OBJC" && break
  1.8377 +  done
  1.8378 +fi
  1.8379 +if test -z "$OBJC"; then
  1.8380 +  ac_ct_OBJC=$OBJC
  1.8381 +  for ac_prog in gcc objcc objc cc CC
  1.8382 +do
  1.8383 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.8384 +set dummy $ac_prog; ac_word=$2
  1.8385 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8386 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8387 +if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
  1.8388 +  $as_echo_n "(cached) " >&6
  1.8389 +else
  1.8390 +  if test -n "$ac_ct_OBJC"; then
  1.8391 +  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  1.8392 +else
  1.8393 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8394 +for as_dir in $PATH
  1.8395 +do
  1.8396 +  IFS=$as_save_IFS
  1.8397 +  test -z "$as_dir" && as_dir=.
  1.8398 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8399 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8400 +    ac_cv_prog_ac_ct_OBJC="$ac_prog"
  1.8401 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8402 +    break 2
  1.8403 +  fi
  1.8404 +done
  1.8405 +  done
  1.8406 +IFS=$as_save_IFS
  1.8407 +
  1.8408 +fi
  1.8409 +fi
  1.8410 +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  1.8411 +if test -n "$ac_ct_OBJC"; then
  1.8412 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
  1.8413 +$as_echo "$ac_ct_OBJC" >&6; }
  1.8414 +else
  1.8415 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8416 +$as_echo "no" >&6; }
  1.8417 +fi
  1.8418 +
  1.8419 +
  1.8420 +  test -n "$ac_ct_OBJC" && break
  1.8421 +done
  1.8422 +
  1.8423 +  if test "x$ac_ct_OBJC" = x; then
  1.8424 +    OBJC="gcc"
  1.8425 +  else
  1.8426 +    case $cross_compiling:$ac_tool_warned in
  1.8427 +yes:)
  1.8428 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1.8429 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1.8430 +ac_tool_warned=yes ;;
  1.8431 +esac
  1.8432 +    OBJC=$ac_ct_OBJC
  1.8433 +  fi
  1.8434 +fi
  1.8435 +
  1.8436 +# Provide some information about the compiler.
  1.8437 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
  1.8438 +set X $ac_compile
  1.8439 +ac_compiler=$2
  1.8440 +for ac_option in --version -v -V -qversion; do
  1.8441 +  { { ac_try="$ac_compiler $ac_option >&5"
  1.8442 +case "(($ac_try" in
  1.8443 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.8444 +  *) ac_try_echo=$ac_try;;
  1.8445 +esac
  1.8446 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.8447 +$as_echo "$ac_try_echo"; } >&5
  1.8448 +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  1.8449 +  ac_status=$?
  1.8450 +  if test -s conftest.err; then
  1.8451 +    sed '10a\
  1.8452 +... rest of stderr output deleted ...
  1.8453 +         10q' conftest.err >conftest.er1
  1.8454 +    cat conftest.er1 >&5
  1.8455 +  fi
  1.8456 +  rm -f conftest.er1 conftest.err
  1.8457 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.8458 +  test $ac_status = 0; }
  1.8459 +done
  1.8460 +
  1.8461 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
  1.8462 +$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  1.8463 +if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
  1.8464 +  $as_echo_n "(cached) " >&6
  1.8465 +else
  1.8466 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.8467 +/* end confdefs.h.  */
  1.8468 +
  1.8469 +int
  1.8470 +main ()
  1.8471 +{
  1.8472 +#ifndef __GNUC__
  1.8473 +       choke me
  1.8474 +#endif
  1.8475 +
  1.8476 +  ;
  1.8477 +  return 0;
  1.8478 +}
  1.8479 +_ACEOF
  1.8480 +if ac_fn_objc_try_compile "$LINENO"; then :
  1.8481 +  ac_compiler_gnu=yes
  1.8482 +else
  1.8483 +  ac_compiler_gnu=no
  1.8484 +fi
  1.8485 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.8486 +ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  1.8487 +
  1.8488 +fi
  1.8489 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
  1.8490 +$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  1.8491 +if test $ac_compiler_gnu = yes; then
  1.8492 +  GOBJC=yes
  1.8493 +else
  1.8494 +  GOBJC=
  1.8495 +fi
  1.8496 +ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  1.8497 +ac_save_OBJCFLAGS=$OBJCFLAGS
  1.8498 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
  1.8499 +$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  1.8500 +if test "${ac_cv_prog_objc_g+set}" = set; then :
  1.8501 +  $as_echo_n "(cached) " >&6
  1.8502 +else
  1.8503 +  ac_save_objc_werror_flag=$ac_objc_werror_flag
  1.8504 +   ac_objc_werror_flag=yes
  1.8505 +   ac_cv_prog_objc_g=no
  1.8506 +   OBJCFLAGS="-g"
  1.8507 +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.8508 +/* end confdefs.h.  */
  1.8509 +
  1.8510 +int
  1.8511 +main ()
  1.8512 +{
  1.8513 +
  1.8514 +  ;
  1.8515 +  return 0;
  1.8516 +}
  1.8517 +_ACEOF
  1.8518 +if ac_fn_objc_try_compile "$LINENO"; then :
  1.8519 +  ac_cv_prog_objc_g=yes
  1.8520 +else
  1.8521 +  OBJCFLAGS=""
  1.8522 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.8523 +/* end confdefs.h.  */
  1.8524 +
  1.8525 +int
  1.8526 +main ()
  1.8527 +{
  1.8528 +
  1.8529 +  ;
  1.8530 +  return 0;
  1.8531 +}
  1.8532 +_ACEOF
  1.8533 +if ac_fn_objc_try_compile "$LINENO"; then :
  1.8534 +
  1.8535 +else
  1.8536 +  ac_objc_werror_flag=$ac_save_objc_werror_flag
  1.8537 +	 OBJCFLAGS="-g"
  1.8538 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.8539 +/* end confdefs.h.  */
  1.8540 +
  1.8541 +int
  1.8542 +main ()
  1.8543 +{
  1.8544 +
  1.8545 +  ;
  1.8546 +  return 0;
  1.8547 +}
  1.8548 +_ACEOF
  1.8549 +if ac_fn_objc_try_compile "$LINENO"; then :
  1.8550 +  ac_cv_prog_objc_g=yes
  1.8551 +fi
  1.8552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.8553 +fi
  1.8554 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.8555 +fi
  1.8556 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.8557 +   ac_objc_werror_flag=$ac_save_objc_werror_flag
  1.8558 +fi
  1.8559 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
  1.8560 +$as_echo "$ac_cv_prog_objc_g" >&6; }
  1.8561 +if test "$ac_test_OBJCFLAGS" = set; then
  1.8562 +  OBJCFLAGS=$ac_save_OBJCFLAGS
  1.8563 +elif test $ac_cv_prog_objc_g = yes; then
  1.8564 +  if test "$GOBJC" = yes; then
  1.8565 +    OBJCFLAGS="-g -O2"
  1.8566 +  else
  1.8567 +    OBJCFLAGS="-g"
  1.8568 +  fi
  1.8569 +else
  1.8570 +  if test "$GOBJC" = yes; then
  1.8571 +    OBJCFLAGS="-O2"
  1.8572 +  else
  1.8573 +    OBJCFLAGS=
  1.8574 +  fi
  1.8575 +fi
  1.8576 +ac_ext=cpp
  1.8577 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.8578 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.8579 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.8580 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.8581 +
  1.8582 +
  1.8583 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.8584 +    # extract the full path to the binary and at the
  1.8585 +    # same time maintain any arguments passed to it.
  1.8586 +    # The command MUST exist in the path, or else!
  1.8587 +    tmp="$OBJC"
  1.8588 +    car="${tmp%% *}"
  1.8589 +    tmp="$OBJC EOL"
  1.8590 +    cdr="${tmp#* }"
  1.8591 +    # On windows we want paths without spaces.
  1.8592 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8593 +
  1.8594 +    # Translate long cygdrive or C:\sdfsf path
  1.8595 +    # into a short mixed mode path that has no
  1.8596 +    # spaces in it.
  1.8597 +    tmp="$car"
  1.8598 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8599 +        tmp=`$CYGPATH -u "$car"`
  1.8600 +        tmp=`which "$tmp"`
  1.8601 +        # If file exists with .exe appended, that's the real filename
  1.8602 +        # and cygpath needs that to convert to short style path.
  1.8603 +        if test -f "${tmp}.exe"; then
  1.8604 +           tmp="${tmp}.exe"
  1.8605 +        elif test -f "${tmp}.cmd"; then
  1.8606 +           tmp="${tmp}.cmd"
  1.8607 +        fi
  1.8608 +        # Convert to C:/ mixed style path without spaces.
  1.8609 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.8610 +    fi
  1.8611 +    car="$tmp"
  1.8612 +
  1.8613 +    else
  1.8614 +        # "which" is not portable, but is used here
  1.8615 +        # because we know that the command exists!
  1.8616 +        car=`which $car`
  1.8617 +    fi
  1.8618 +    if test "x$cdr" != xEOL; then
  1.8619 +        OBJC="$car ${cdr% *}"
  1.8620 +    else
  1.8621 +        OBJC="$car"
  1.8622 +    fi
  1.8623 +
  1.8624 +else
  1.8625 +    OBJC=
  1.8626 +fi
  1.8627 +
  1.8628 +# Restore the flags to the user specified values.
  1.8629 +# This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
  1.8630 +CFLAGS="$ORG_CFLAGS"
  1.8631 +CXXFLAGS="$ORG_CXXFLAGS"
  1.8632 +OBJCFLAGS="$ORG_OBJCFLAGS"
  1.8633 +
  1.8634 +# If we are not cross compiling, use the same compilers for
  1.8635 +# building the build platform executables.
  1.8636 +if test "x$DEFINE_CROSS_COMPILE_ARCH" = x; then
  1.8637 +    HOSTCC="$CC"
  1.8638 +    HOSTCXX="$CXX"
  1.8639 +fi
  1.8640 +
  1.8641 +if test -n "$ac_tool_prefix"; then
  1.8642 +  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  1.8643 +set dummy ${ac_tool_prefix}ld; ac_word=$2
  1.8644 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8645 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8646 +if test "${ac_cv_prog_LD+set}" = set; then :
  1.8647 +  $as_echo_n "(cached) " >&6
  1.8648 +else
  1.8649 +  if test -n "$LD"; then
  1.8650 +  ac_cv_prog_LD="$LD" # Let the user override the test.
  1.8651 +else
  1.8652 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8653 +for as_dir in $PATH
  1.8654 +do
  1.8655 +  IFS=$as_save_IFS
  1.8656 +  test -z "$as_dir" && as_dir=.
  1.8657 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8658 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8659 +    ac_cv_prog_LD="${ac_tool_prefix}ld"
  1.8660 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8661 +    break 2
  1.8662 +  fi
  1.8663 +done
  1.8664 +  done
  1.8665 +IFS=$as_save_IFS
  1.8666 +
  1.8667 +fi
  1.8668 +fi
  1.8669 +LD=$ac_cv_prog_LD
  1.8670 +if test -n "$LD"; then
  1.8671 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  1.8672 +$as_echo "$LD" >&6; }
  1.8673 +else
  1.8674 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8675 +$as_echo "no" >&6; }
  1.8676 +fi
  1.8677 +
  1.8678 +
  1.8679 +fi
  1.8680 +if test -z "$ac_cv_prog_LD"; then
  1.8681 +  ac_ct_LD=$LD
  1.8682 +  # Extract the first word of "ld", so it can be a program name with args.
  1.8683 +set dummy ld; ac_word=$2
  1.8684 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8685 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8686 +if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
  1.8687 +  $as_echo_n "(cached) " >&6
  1.8688 +else
  1.8689 +  if test -n "$ac_ct_LD"; then
  1.8690 +  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  1.8691 +else
  1.8692 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8693 +for as_dir in $PATH
  1.8694 +do
  1.8695 +  IFS=$as_save_IFS
  1.8696 +  test -z "$as_dir" && as_dir=.
  1.8697 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8698 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8699 +    ac_cv_prog_ac_ct_LD="ld"
  1.8700 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8701 +    break 2
  1.8702 +  fi
  1.8703 +done
  1.8704 +  done
  1.8705 +IFS=$as_save_IFS
  1.8706 +
  1.8707 +fi
  1.8708 +fi
  1.8709 +ac_ct_LD=$ac_cv_prog_ac_ct_LD
  1.8710 +if test -n "$ac_ct_LD"; then
  1.8711 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  1.8712 +$as_echo "$ac_ct_LD" >&6; }
  1.8713 +else
  1.8714 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8715 +$as_echo "no" >&6; }
  1.8716 +fi
  1.8717 +
  1.8718 +  if test "x$ac_ct_LD" = x; then
  1.8719 +    LD=""
  1.8720 +  else
  1.8721 +    case $cross_compiling:$ac_tool_warned in
  1.8722 +yes:)
  1.8723 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1.8724 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1.8725 +ac_tool_warned=yes ;;
  1.8726 +esac
  1.8727 +    LD=$ac_ct_LD
  1.8728 +  fi
  1.8729 +else
  1.8730 +  LD="$ac_cv_prog_LD"
  1.8731 +fi
  1.8732 +
  1.8733 +
  1.8734 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.8735 +    # extract the full path to the binary and at the
  1.8736 +    # same time maintain any arguments passed to it.
  1.8737 +    # The command MUST exist in the path, or else!
  1.8738 +    tmp="$LD"
  1.8739 +    car="${tmp%% *}"
  1.8740 +    tmp="$LD EOL"
  1.8741 +    cdr="${tmp#* }"
  1.8742 +    # On windows we want paths without spaces.
  1.8743 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8744 +
  1.8745 +    # Translate long cygdrive or C:\sdfsf path
  1.8746 +    # into a short mixed mode path that has no
  1.8747 +    # spaces in it.
  1.8748 +    tmp="$car"
  1.8749 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8750 +        tmp=`$CYGPATH -u "$car"`
  1.8751 +        tmp=`which "$tmp"`
  1.8752 +        # If file exists with .exe appended, that's the real filename
  1.8753 +        # and cygpath needs that to convert to short style path.
  1.8754 +        if test -f "${tmp}.exe"; then
  1.8755 +           tmp="${tmp}.exe"
  1.8756 +        elif test -f "${tmp}.cmd"; then
  1.8757 +           tmp="${tmp}.cmd"
  1.8758 +        fi
  1.8759 +        # Convert to C:/ mixed style path without spaces.
  1.8760 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.8761 +    fi
  1.8762 +    car="$tmp"
  1.8763 +
  1.8764 +    else
  1.8765 +        # "which" is not portable, but is used here
  1.8766 +        # because we know that the command exists!
  1.8767 +        car=`which $car`
  1.8768 +    fi
  1.8769 +    if test "x$cdr" != xEOL; then
  1.8770 +        LD="$car ${cdr% *}"
  1.8771 +    else
  1.8772 +        LD="$car"
  1.8773 +    fi
  1.8774 +
  1.8775 +LDEXE="$LD"
  1.8776 +LDCXX="$LD"
  1.8777 +LDEXECXX="$LD"
  1.8778 +# LDEXE is the linker to use, when creating executables.
  1.8779 +
  1.8780 +# Linking C++ libraries.
  1.8781 +
  1.8782 +# Linking C++ executables.
  1.8783 +
  1.8784 +
  1.8785 +if test -n "$ac_tool_prefix"; then
  1.8786 +  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  1.8787 +set dummy ${ac_tool_prefix}ar; ac_word=$2
  1.8788 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8789 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8790 +if test "${ac_cv_prog_AR+set}" = set; then :
  1.8791 +  $as_echo_n "(cached) " >&6
  1.8792 +else
  1.8793 +  if test -n "$AR"; then
  1.8794 +  ac_cv_prog_AR="$AR" # Let the user override the test.
  1.8795 +else
  1.8796 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8797 +for as_dir in $PATH
  1.8798 +do
  1.8799 +  IFS=$as_save_IFS
  1.8800 +  test -z "$as_dir" && as_dir=.
  1.8801 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8802 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8803 +    ac_cv_prog_AR="${ac_tool_prefix}ar"
  1.8804 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8805 +    break 2
  1.8806 +  fi
  1.8807 +done
  1.8808 +  done
  1.8809 +IFS=$as_save_IFS
  1.8810 +
  1.8811 +fi
  1.8812 +fi
  1.8813 +AR=$ac_cv_prog_AR
  1.8814 +if test -n "$AR"; then
  1.8815 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  1.8816 +$as_echo "$AR" >&6; }
  1.8817 +else
  1.8818 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8819 +$as_echo "no" >&6; }
  1.8820 +fi
  1.8821 +
  1.8822 +
  1.8823 +fi
  1.8824 +if test -z "$ac_cv_prog_AR"; then
  1.8825 +  ac_ct_AR=$AR
  1.8826 +  # Extract the first word of "ar", so it can be a program name with args.
  1.8827 +set dummy ar; ac_word=$2
  1.8828 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8829 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8830 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  1.8831 +  $as_echo_n "(cached) " >&6
  1.8832 +else
  1.8833 +  if test -n "$ac_ct_AR"; then
  1.8834 +  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  1.8835 +else
  1.8836 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8837 +for as_dir in $PATH
  1.8838 +do
  1.8839 +  IFS=$as_save_IFS
  1.8840 +  test -z "$as_dir" && as_dir=.
  1.8841 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8842 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8843 +    ac_cv_prog_ac_ct_AR="ar"
  1.8844 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8845 +    break 2
  1.8846 +  fi
  1.8847 +done
  1.8848 +  done
  1.8849 +IFS=$as_save_IFS
  1.8850 +
  1.8851 +fi
  1.8852 +fi
  1.8853 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  1.8854 +if test -n "$ac_ct_AR"; then
  1.8855 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  1.8856 +$as_echo "$ac_ct_AR" >&6; }
  1.8857 +else
  1.8858 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8859 +$as_echo "no" >&6; }
  1.8860 +fi
  1.8861 +
  1.8862 +  if test "x$ac_ct_AR" = x; then
  1.8863 +    AR=""
  1.8864 +  else
  1.8865 +    case $cross_compiling:$ac_tool_warned in
  1.8866 +yes:)
  1.8867 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1.8868 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1.8869 +ac_tool_warned=yes ;;
  1.8870 +esac
  1.8871 +    AR=$ac_ct_AR
  1.8872 +  fi
  1.8873 +else
  1.8874 +  AR="$ac_cv_prog_AR"
  1.8875 +fi
  1.8876 +
  1.8877 +
  1.8878 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.8879 +    # extract the full path to the binary and at the
  1.8880 +    # same time maintain any arguments passed to it.
  1.8881 +    # The command MUST exist in the path, or else!
  1.8882 +    tmp="$AR"
  1.8883 +    car="${tmp%% *}"
  1.8884 +    tmp="$AR EOL"
  1.8885 +    cdr="${tmp#* }"
  1.8886 +    # On windows we want paths without spaces.
  1.8887 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8888 +
  1.8889 +    # Translate long cygdrive or C:\sdfsf path
  1.8890 +    # into a short mixed mode path that has no
  1.8891 +    # spaces in it.
  1.8892 +    tmp="$car"
  1.8893 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8894 +        tmp=`$CYGPATH -u "$car"`
  1.8895 +        tmp=`which "$tmp"`
  1.8896 +        # If file exists with .exe appended, that's the real filename
  1.8897 +        # and cygpath needs that to convert to short style path.
  1.8898 +        if test -f "${tmp}.exe"; then
  1.8899 +           tmp="${tmp}.exe"
  1.8900 +        elif test -f "${tmp}.cmd"; then
  1.8901 +           tmp="${tmp}.cmd"
  1.8902 +        fi
  1.8903 +        # Convert to C:/ mixed style path without spaces.
  1.8904 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.8905 +    fi
  1.8906 +    car="$tmp"
  1.8907 +
  1.8908 +    else
  1.8909 +        # "which" is not portable, but is used here
  1.8910 +        # because we know that the command exists!
  1.8911 +        car=`which $car`
  1.8912 +    fi
  1.8913 +    if test "x$cdr" != xEOL; then
  1.8914 +        AR="$car ${cdr% *}"
  1.8915 +    else
  1.8916 +        AR="$car"
  1.8917 +    fi
  1.8918 +
  1.8919 +if test "x$BUILD_OS" = xmacosx; then
  1.8920 +    ARFLAGS="-r"
  1.8921 +else
  1.8922 +    ARFLAGS=""
  1.8923 +fi
  1.8924 +
  1.8925 +
  1.8926 +COMPILER_NAME=gcc
  1.8927 +COMPILER_TYPE=CC
  1.8928 +if test "x$BUILD_OS" = xwindows; then :
  1.8929 +
  1.8930 +    # For now, assume that we are always compiling using cl.exe.
  1.8931 +    CC_OUT_OPTION=-Fo
  1.8932 +    EXE_OUT_OPTION=-Fe
  1.8933 +    LD_OUT_OPTION=-out:
  1.8934 +    AR_OUT_OPTION=-out:
  1.8935 +    # On Windows, reject /usr/bin/link, which is a cygwin
  1.8936 +    # program for something completely different.
  1.8937 +    # Extract the first word of "link", so it can be a program name with args.
  1.8938 +set dummy link; ac_word=$2
  1.8939 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.8940 +$as_echo_n "checking for $ac_word... " >&6; }
  1.8941 +if test "${ac_cv_prog_WINLD+set}" = set; then :
  1.8942 +  $as_echo_n "(cached) " >&6
  1.8943 +else
  1.8944 +  if test -n "$WINLD"; then
  1.8945 +  ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
  1.8946 +else
  1.8947 +  ac_prog_rejected=no
  1.8948 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.8949 +for as_dir in $PATH
  1.8950 +do
  1.8951 +  IFS=$as_save_IFS
  1.8952 +  test -z "$as_dir" && as_dir=.
  1.8953 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.8954 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.8955 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/link"; then
  1.8956 +       ac_prog_rejected=yes
  1.8957 +       continue
  1.8958 +     fi
  1.8959 +    ac_cv_prog_WINLD="link"
  1.8960 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.8961 +    break 2
  1.8962 +  fi
  1.8963 +done
  1.8964 +  done
  1.8965 +IFS=$as_save_IFS
  1.8966 +
  1.8967 +if test $ac_prog_rejected = yes; then
  1.8968 +  # We found a bogon in the path, so make sure we never use it.
  1.8969 +  set dummy $ac_cv_prog_WINLD
  1.8970 +  shift
  1.8971 +  if test $# != 0; then
  1.8972 +    # We chose a different compiler from the bogus one.
  1.8973 +    # However, it has the same basename, so the bogon will be chosen
  1.8974 +    # first if we set WINLD to just the basename; use the full file name.
  1.8975 +    shift
  1.8976 +    ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@"
  1.8977 +  fi
  1.8978 +fi
  1.8979 +fi
  1.8980 +fi
  1.8981 +WINLD=$ac_cv_prog_WINLD
  1.8982 +if test -n "$WINLD"; then
  1.8983 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5
  1.8984 +$as_echo "$WINLD" >&6; }
  1.8985 +else
  1.8986 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.8987 +$as_echo "no" >&6; }
  1.8988 +fi
  1.8989 +
  1.8990 +
  1.8991 +    # Since we must ignore the first found link, WINLD will contain
  1.8992 +    # the full path to the link.exe program.
  1.8993 +
  1.8994 +    # Translate long cygdrive or C:\sdfsf path
  1.8995 +    # into a short mixed mode path that has no
  1.8996 +    # spaces in it.
  1.8997 +    tmp="$WINLD"
  1.8998 +    if test "x$BUILD_OS" = "xwindows"; then
  1.8999 +        tmp=`$CYGPATH -u "$WINLD"`
  1.9000 +        tmp=`which "$tmp"`
  1.9001 +        # If file exists with .exe appended, that's the real filename
  1.9002 +        # and cygpath needs that to convert to short style path.
  1.9003 +        if test -f "${tmp}.exe"; then
  1.9004 +           tmp="${tmp}.exe"
  1.9005 +        elif test -f "${tmp}.cmd"; then
  1.9006 +           tmp="${tmp}.cmd"
  1.9007 +        fi
  1.9008 +        # Convert to C:/ mixed style path without spaces.
  1.9009 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9010 +    fi
  1.9011 +    WINLD="$tmp"
  1.9012 +
  1.9013 +    LD="$WINLD"
  1.9014 +    # However creating executables can only be done with cl.exe.
  1.9015 +    LDEXE="$CC"
  1.9016 +    LDCXX="$WINLD"
  1.9017 +    LDEXECXX="$CC"
  1.9018 +
  1.9019 +    # Extract the first word of "mt", so it can be a program name with args.
  1.9020 +set dummy mt; ac_word=$2
  1.9021 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.9022 +$as_echo_n "checking for $ac_word... " >&6; }
  1.9023 +if test "${ac_cv_prog_MT+set}" = set; then :
  1.9024 +  $as_echo_n "(cached) " >&6
  1.9025 +else
  1.9026 +  if test -n "$MT"; then
  1.9027 +  ac_cv_prog_MT="$MT" # Let the user override the test.
  1.9028 +else
  1.9029 +  ac_prog_rejected=no
  1.9030 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.9031 +for as_dir in $PATH
  1.9032 +do
  1.9033 +  IFS=$as_save_IFS
  1.9034 +  test -z "$as_dir" && as_dir=.
  1.9035 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.9036 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.9037 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
  1.9038 +       ac_prog_rejected=yes
  1.9039 +       continue
  1.9040 +     fi
  1.9041 +    ac_cv_prog_MT="mt"
  1.9042 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.9043 +    break 2
  1.9044 +  fi
  1.9045 +done
  1.9046 +  done
  1.9047 +IFS=$as_save_IFS
  1.9048 +
  1.9049 +if test $ac_prog_rejected = yes; then
  1.9050 +  # We found a bogon in the path, so make sure we never use it.
  1.9051 +  set dummy $ac_cv_prog_MT
  1.9052 +  shift
  1.9053 +  if test $# != 0; then
  1.9054 +    # We chose a different compiler from the bogus one.
  1.9055 +    # However, it has the same basename, so the bogon will be chosen
  1.9056 +    # first if we set MT to just the basename; use the full file name.
  1.9057 +    shift
  1.9058 +    ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@"
  1.9059 +  fi
  1.9060 +fi
  1.9061 +fi
  1.9062 +fi
  1.9063 +MT=$ac_cv_prog_MT
  1.9064 +if test -n "$MT"; then
  1.9065 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
  1.9066 +$as_echo "$MT" >&6; }
  1.9067 +else
  1.9068 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9069 +$as_echo "no" >&6; }
  1.9070 +fi
  1.9071 +
  1.9072 +
  1.9073 +
  1.9074 +    # Translate long cygdrive or C:\sdfsf path
  1.9075 +    # into a short mixed mode path that has no
  1.9076 +    # spaces in it.
  1.9077 +    tmp="$MT"
  1.9078 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9079 +        tmp=`$CYGPATH -u "$MT"`
  1.9080 +        tmp=`which "$tmp"`
  1.9081 +        # If file exists with .exe appended, that's the real filename
  1.9082 +        # and cygpath needs that to convert to short style path.
  1.9083 +        if test -f "${tmp}.exe"; then
  1.9084 +           tmp="${tmp}.exe"
  1.9085 +        elif test -f "${tmp}.cmd"; then
  1.9086 +           tmp="${tmp}.cmd"
  1.9087 +        fi
  1.9088 +        # Convert to C:/ mixed style path without spaces.
  1.9089 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9090 +    fi
  1.9091 +    MT="$tmp"
  1.9092 +
  1.9093 +    # The resource compiler
  1.9094 +    # Extract the first word of "rc", so it can be a program name with args.
  1.9095 +set dummy rc; ac_word=$2
  1.9096 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.9097 +$as_echo_n "checking for $ac_word... " >&6; }
  1.9098 +if test "${ac_cv_prog_RC+set}" = set; then :
  1.9099 +  $as_echo_n "(cached) " >&6
  1.9100 +else
  1.9101 +  if test -n "$RC"; then
  1.9102 +  ac_cv_prog_RC="$RC" # Let the user override the test.
  1.9103 +else
  1.9104 +  ac_prog_rejected=no
  1.9105 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.9106 +for as_dir in $PATH
  1.9107 +do
  1.9108 +  IFS=$as_save_IFS
  1.9109 +  test -z "$as_dir" && as_dir=.
  1.9110 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.9111 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.9112 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
  1.9113 +       ac_prog_rejected=yes
  1.9114 +       continue
  1.9115 +     fi
  1.9116 +    ac_cv_prog_RC="rc"
  1.9117 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.9118 +    break 2
  1.9119 +  fi
  1.9120 +done
  1.9121 +  done
  1.9122 +IFS=$as_save_IFS
  1.9123 +
  1.9124 +if test $ac_prog_rejected = yes; then
  1.9125 +  # We found a bogon in the path, so make sure we never use it.
  1.9126 +  set dummy $ac_cv_prog_RC
  1.9127 +  shift
  1.9128 +  if test $# != 0; then
  1.9129 +    # We chose a different compiler from the bogus one.
  1.9130 +    # However, it has the same basename, so the bogon will be chosen
  1.9131 +    # first if we set RC to just the basename; use the full file name.
  1.9132 +    shift
  1.9133 +    ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@"
  1.9134 +  fi
  1.9135 +fi
  1.9136 +fi
  1.9137 +fi
  1.9138 +RC=$ac_cv_prog_RC
  1.9139 +if test -n "$RC"; then
  1.9140 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  1.9141 +$as_echo "$RC" >&6; }
  1.9142 +else
  1.9143 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9144 +$as_echo "no" >&6; }
  1.9145 +fi
  1.9146 +
  1.9147 +
  1.9148 +
  1.9149 +    # Translate long cygdrive or C:\sdfsf path
  1.9150 +    # into a short mixed mode path that has no
  1.9151 +    # spaces in it.
  1.9152 +    tmp="$RC"
  1.9153 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9154 +        tmp=`$CYGPATH -u "$RC"`
  1.9155 +        tmp=`which "$tmp"`
  1.9156 +        # If file exists with .exe appended, that's the real filename
  1.9157 +        # and cygpath needs that to convert to short style path.
  1.9158 +        if test -f "${tmp}.exe"; then
  1.9159 +           tmp="${tmp}.exe"
  1.9160 +        elif test -f "${tmp}.cmd"; then
  1.9161 +           tmp="${tmp}.cmd"
  1.9162 +        fi
  1.9163 +        # Convert to C:/ mixed style path without spaces.
  1.9164 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9165 +    fi
  1.9166 +    RC="$tmp"
  1.9167 +
  1.9168 +
  1.9169 +    RC_FLAGS="/l 0x409 /r"
  1.9170 +    if test "x$VARIANT" = xOPT; then :
  1.9171 +
  1.9172 +        RC_FLAGS="$RC_FLAGS -d NDEBUG"
  1.9173 +
  1.9174 +fi
  1.9175 +    JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
  1.9176 +    if test "x$JDK_UPDATE_VERSION" = x; then :
  1.9177 +
  1.9178 +        JDK_UPDATE_VERSION_NOTNULL=0
  1.9179 +
  1.9180 +fi
  1.9181 +    RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
  1.9182 +    RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
  1.9183 +    RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
  1.9184 +    RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
  1.9185 +    RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
  1.9186 +    RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
  1.9187 +    RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
  1.9188 +
  1.9189 +    # lib.exe is used to create static libraries.
  1.9190 +    # Extract the first word of "lib", so it can be a program name with args.
  1.9191 +set dummy lib; ac_word=$2
  1.9192 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.9193 +$as_echo_n "checking for $ac_word... " >&6; }
  1.9194 +if test "${ac_cv_prog_WINAR+set}" = set; then :
  1.9195 +  $as_echo_n "(cached) " >&6
  1.9196 +else
  1.9197 +  if test -n "$WINAR"; then
  1.9198 +  ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
  1.9199 +else
  1.9200 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.9201 +for as_dir in $PATH
  1.9202 +do
  1.9203 +  IFS=$as_save_IFS
  1.9204 +  test -z "$as_dir" && as_dir=.
  1.9205 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.9206 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.9207 +    ac_cv_prog_WINAR="lib"
  1.9208 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.9209 +    break 2
  1.9210 +  fi
  1.9211 +done
  1.9212 +  done
  1.9213 +IFS=$as_save_IFS
  1.9214 +
  1.9215 +fi
  1.9216 +fi
  1.9217 +WINAR=$ac_cv_prog_WINAR
  1.9218 +if test -n "$WINAR"; then
  1.9219 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
  1.9220 +$as_echo "$WINAR" >&6; }
  1.9221 +else
  1.9222 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9223 +$as_echo "no" >&6; }
  1.9224 +fi
  1.9225 +
  1.9226 +
  1.9227 +
  1.9228 +    # Translate long cygdrive or C:\sdfsf path
  1.9229 +    # into a short mixed mode path that has no
  1.9230 +    # spaces in it.
  1.9231 +    tmp="$WINAR"
  1.9232 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9233 +        tmp=`$CYGPATH -u "$WINAR"`
  1.9234 +        tmp=`which "$tmp"`
  1.9235 +        # If file exists with .exe appended, that's the real filename
  1.9236 +        # and cygpath needs that to convert to short style path.
  1.9237 +        if test -f "${tmp}.exe"; then
  1.9238 +           tmp="${tmp}.exe"
  1.9239 +        elif test -f "${tmp}.cmd"; then
  1.9240 +           tmp="${tmp}.cmd"
  1.9241 +        fi
  1.9242 +        # Convert to C:/ mixed style path without spaces.
  1.9243 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9244 +    fi
  1.9245 +    WINAR="$tmp"
  1.9246 +
  1.9247 +    AR="$WINAR"
  1.9248 +    ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
  1.9249 +
  1.9250 +    # Extract the first word of "dumpbin", so it can be a program name with args.
  1.9251 +set dummy dumpbin; ac_word=$2
  1.9252 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.9253 +$as_echo_n "checking for $ac_word... " >&6; }
  1.9254 +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  1.9255 +  $as_echo_n "(cached) " >&6
  1.9256 +else
  1.9257 +  if test -n "$DUMPBIN"; then
  1.9258 +  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  1.9259 +else
  1.9260 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.9261 +for as_dir in $PATH
  1.9262 +do
  1.9263 +  IFS=$as_save_IFS
  1.9264 +  test -z "$as_dir" && as_dir=.
  1.9265 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.9266 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.9267 +    ac_cv_prog_DUMPBIN="dumpbin"
  1.9268 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.9269 +    break 2
  1.9270 +  fi
  1.9271 +done
  1.9272 +  done
  1.9273 +IFS=$as_save_IFS
  1.9274 +
  1.9275 +fi
  1.9276 +fi
  1.9277 +DUMPBIN=$ac_cv_prog_DUMPBIN
  1.9278 +if test -n "$DUMPBIN"; then
  1.9279 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  1.9280 +$as_echo "$DUMPBIN" >&6; }
  1.9281 +else
  1.9282 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9283 +$as_echo "no" >&6; }
  1.9284 +fi
  1.9285 +
  1.9286 +
  1.9287 +
  1.9288 +    # Translate long cygdrive or C:\sdfsf path
  1.9289 +    # into a short mixed mode path that has no
  1.9290 +    # spaces in it.
  1.9291 +    tmp="$DUMPBIN"
  1.9292 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9293 +        tmp=`$CYGPATH -u "$DUMPBIN"`
  1.9294 +        tmp=`which "$tmp"`
  1.9295 +        # If file exists with .exe appended, that's the real filename
  1.9296 +        # and cygpath needs that to convert to short style path.
  1.9297 +        if test -f "${tmp}.exe"; then
  1.9298 +           tmp="${tmp}.exe"
  1.9299 +        elif test -f "${tmp}.cmd"; then
  1.9300 +           tmp="${tmp}.cmd"
  1.9301 +        fi
  1.9302 +        # Convert to C:/ mixed style path without spaces.
  1.9303 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9304 +    fi
  1.9305 +    DUMPBIN="$tmp"
  1.9306 +
  1.9307 +
  1.9308 +    COMPILER_TYPE=CL
  1.9309 +    CFLAGS="$CFLAGS -nologo"
  1.9310 +    LDFLAGS="$LDFLAGS -nologo -dll -opt:ref -incremental:no "
  1.9311 +    if test "x$LEGACY_HOST_CPU1" = xi586; then
  1.9312 +        LDFLAGS="$LDFLAGS -safeseh"
  1.9313 +    fi
  1.9314 +    if test "x$DEBUG_LEVEL" != xrelease; then
  1.9315 +        LDFLAGS="$LDFLAGS -debug"
  1.9316 +    fi
  1.9317 +
  1.9318 +fi
  1.9319 +
  1.9320 +
  1.9321 +
  1.9322 +ac_ext=c
  1.9323 +ac_cpp='$CPP $CPPFLAGS'
  1.9324 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.9325 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.9326 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1.9327 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  1.9328 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  1.9329 +# On Suns, sometimes $CPP names a directory.
  1.9330 +if test -n "$CPP" && test -d "$CPP"; then
  1.9331 +  CPP=
  1.9332 +fi
  1.9333 +if test -z "$CPP"; then
  1.9334 +  if test "${ac_cv_prog_CPP+set}" = set; then :
  1.9335 +  $as_echo_n "(cached) " >&6
  1.9336 +else
  1.9337 +      # Double quotes because CPP needs to be expanded
  1.9338 +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  1.9339 +    do
  1.9340 +      ac_preproc_ok=false
  1.9341 +for ac_c_preproc_warn_flag in '' yes
  1.9342 +do
  1.9343 +  # Use a header file that comes with gcc, so configuring glibc
  1.9344 +  # with a fresh cross-compiler works.
  1.9345 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1.9346 +  # <limits.h> exists even on freestanding compilers.
  1.9347 +  # On the NeXT, cc -E runs the code through the compiler's parser,
  1.9348 +  # not just through cpp. "Syntax error" is here to catch this case.
  1.9349 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9350 +/* end confdefs.h.  */
  1.9351 +#ifdef __STDC__
  1.9352 +# include <limits.h>
  1.9353 +#else
  1.9354 +# include <assert.h>
  1.9355 +#endif
  1.9356 +		     Syntax error
  1.9357 +_ACEOF
  1.9358 +if ac_fn_c_try_cpp "$LINENO"; then :
  1.9359 +
  1.9360 +else
  1.9361 +  # Broken: fails on valid input.
  1.9362 +continue
  1.9363 +fi
  1.9364 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.9365 +
  1.9366 +  # OK, works on sane cases.  Now check whether nonexistent headers
  1.9367 +  # can be detected and how.
  1.9368 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9369 +/* end confdefs.h.  */
  1.9370 +#include <ac_nonexistent.h>
  1.9371 +_ACEOF
  1.9372 +if ac_fn_c_try_cpp "$LINENO"; then :
  1.9373 +  # Broken: success on invalid input.
  1.9374 +continue
  1.9375 +else
  1.9376 +  # Passes both tests.
  1.9377 +ac_preproc_ok=:
  1.9378 +break
  1.9379 +fi
  1.9380 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.9381 +
  1.9382 +done
  1.9383 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1.9384 +rm -f conftest.i conftest.err conftest.$ac_ext
  1.9385 +if $ac_preproc_ok; then :
  1.9386 +  break
  1.9387 +fi
  1.9388 +
  1.9389 +    done
  1.9390 +    ac_cv_prog_CPP=$CPP
  1.9391 +
  1.9392 +fi
  1.9393 +  CPP=$ac_cv_prog_CPP
  1.9394 +else
  1.9395 +  ac_cv_prog_CPP=$CPP
  1.9396 +fi
  1.9397 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  1.9398 +$as_echo "$CPP" >&6; }
  1.9399 +ac_preproc_ok=false
  1.9400 +for ac_c_preproc_warn_flag in '' yes
  1.9401 +do
  1.9402 +  # Use a header file that comes with gcc, so configuring glibc
  1.9403 +  # with a fresh cross-compiler works.
  1.9404 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1.9405 +  # <limits.h> exists even on freestanding compilers.
  1.9406 +  # On the NeXT, cc -E runs the code through the compiler's parser,
  1.9407 +  # not just through cpp. "Syntax error" is here to catch this case.
  1.9408 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9409 +/* end confdefs.h.  */
  1.9410 +#ifdef __STDC__
  1.9411 +# include <limits.h>
  1.9412 +#else
  1.9413 +# include <assert.h>
  1.9414 +#endif
  1.9415 +		     Syntax error
  1.9416 +_ACEOF
  1.9417 +if ac_fn_c_try_cpp "$LINENO"; then :
  1.9418 +
  1.9419 +else
  1.9420 +  # Broken: fails on valid input.
  1.9421 +continue
  1.9422 +fi
  1.9423 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.9424 +
  1.9425 +  # OK, works on sane cases.  Now check whether nonexistent headers
  1.9426 +  # can be detected and how.
  1.9427 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9428 +/* end confdefs.h.  */
  1.9429 +#include <ac_nonexistent.h>
  1.9430 +_ACEOF
  1.9431 +if ac_fn_c_try_cpp "$LINENO"; then :
  1.9432 +  # Broken: success on invalid input.
  1.9433 +continue
  1.9434 +else
  1.9435 +  # Passes both tests.
  1.9436 +ac_preproc_ok=:
  1.9437 +break
  1.9438 +fi
  1.9439 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.9440 +
  1.9441 +done
  1.9442 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1.9443 +rm -f conftest.i conftest.err conftest.$ac_ext
  1.9444 +if $ac_preproc_ok; then :
  1.9445 +
  1.9446 +else
  1.9447 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.9448 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.9449 +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  1.9450 +See \`config.log' for more details" "$LINENO" 5 ; }
  1.9451 +fi
  1.9452 +
  1.9453 +ac_ext=cpp
  1.9454 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.9455 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.9456 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.9457 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.9458 +
  1.9459 +
  1.9460 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.9461 +    # extract the full path to the binary and at the
  1.9462 +    # same time maintain any arguments passed to it.
  1.9463 +    # The command MUST exist in the path, or else!
  1.9464 +    tmp="$CPP"
  1.9465 +    car="${tmp%% *}"
  1.9466 +    tmp="$CPP EOL"
  1.9467 +    cdr="${tmp#* }"
  1.9468 +    # On windows we want paths without spaces.
  1.9469 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9470 +
  1.9471 +    # Translate long cygdrive or C:\sdfsf path
  1.9472 +    # into a short mixed mode path that has no
  1.9473 +    # spaces in it.
  1.9474 +    tmp="$car"
  1.9475 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9476 +        tmp=`$CYGPATH -u "$car"`
  1.9477 +        tmp=`which "$tmp"`
  1.9478 +        # If file exists with .exe appended, that's the real filename
  1.9479 +        # and cygpath needs that to convert to short style path.
  1.9480 +        if test -f "${tmp}.exe"; then
  1.9481 +           tmp="${tmp}.exe"
  1.9482 +        elif test -f "${tmp}.cmd"; then
  1.9483 +           tmp="${tmp}.cmd"
  1.9484 +        fi
  1.9485 +        # Convert to C:/ mixed style path without spaces.
  1.9486 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9487 +    fi
  1.9488 +    car="$tmp"
  1.9489 +
  1.9490 +    else
  1.9491 +        # "which" is not portable, but is used here
  1.9492 +        # because we know that the command exists!
  1.9493 +        car=`which $car`
  1.9494 +    fi
  1.9495 +    if test "x$cdr" != xEOL; then
  1.9496 +        CPP="$car ${cdr% *}"
  1.9497 +    else
  1.9498 +        CPP="$car"
  1.9499 +    fi
  1.9500 +
  1.9501 +
  1.9502 +ac_ext=cpp
  1.9503 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.9504 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.9505 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.9506 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.9507 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  1.9508 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  1.9509 +if test -z "$CXXCPP"; then
  1.9510 +  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  1.9511 +  $as_echo_n "(cached) " >&6
  1.9512 +else
  1.9513 +      # Double quotes because CXXCPP needs to be expanded
  1.9514 +    for CXXCPP in "$CXX -E" "/lib/cpp"
  1.9515 +    do
  1.9516 +      ac_preproc_ok=false
  1.9517 +for ac_cxx_preproc_warn_flag in '' yes
  1.9518 +do
  1.9519 +  # Use a header file that comes with gcc, so configuring glibc
  1.9520 +  # with a fresh cross-compiler works.
  1.9521 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1.9522 +  # <limits.h> exists even on freestanding compilers.
  1.9523 +  # On the NeXT, cc -E runs the code through the compiler's parser,
  1.9524 +  # not just through cpp. "Syntax error" is here to catch this case.
  1.9525 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9526 +/* end confdefs.h.  */
  1.9527 +#ifdef __STDC__
  1.9528 +# include <limits.h>
  1.9529 +#else
  1.9530 +# include <assert.h>
  1.9531 +#endif
  1.9532 +		     Syntax error
  1.9533 +_ACEOF
  1.9534 +if ac_fn_cxx_try_cpp "$LINENO"; then :
  1.9535 +
  1.9536 +else
  1.9537 +  # Broken: fails on valid input.
  1.9538 +continue
  1.9539 +fi
  1.9540 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.9541 +
  1.9542 +  # OK, works on sane cases.  Now check whether nonexistent headers
  1.9543 +  # can be detected and how.
  1.9544 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9545 +/* end confdefs.h.  */
  1.9546 +#include <ac_nonexistent.h>
  1.9547 +_ACEOF
  1.9548 +if ac_fn_cxx_try_cpp "$LINENO"; then :
  1.9549 +  # Broken: success on invalid input.
  1.9550 +continue
  1.9551 +else
  1.9552 +  # Passes both tests.
  1.9553 +ac_preproc_ok=:
  1.9554 +break
  1.9555 +fi
  1.9556 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.9557 +
  1.9558 +done
  1.9559 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1.9560 +rm -f conftest.i conftest.err conftest.$ac_ext
  1.9561 +if $ac_preproc_ok; then :
  1.9562 +  break
  1.9563 +fi
  1.9564 +
  1.9565 +    done
  1.9566 +    ac_cv_prog_CXXCPP=$CXXCPP
  1.9567 +
  1.9568 +fi
  1.9569 +  CXXCPP=$ac_cv_prog_CXXCPP
  1.9570 +else
  1.9571 +  ac_cv_prog_CXXCPP=$CXXCPP
  1.9572 +fi
  1.9573 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  1.9574 +$as_echo "$CXXCPP" >&6; }
  1.9575 +ac_preproc_ok=false
  1.9576 +for ac_cxx_preproc_warn_flag in '' yes
  1.9577 +do
  1.9578 +  # Use a header file that comes with gcc, so configuring glibc
  1.9579 +  # with a fresh cross-compiler works.
  1.9580 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1.9581 +  # <limits.h> exists even on freestanding compilers.
  1.9582 +  # On the NeXT, cc -E runs the code through the compiler's parser,
  1.9583 +  # not just through cpp. "Syntax error" is here to catch this case.
  1.9584 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9585 +/* end confdefs.h.  */
  1.9586 +#ifdef __STDC__
  1.9587 +# include <limits.h>
  1.9588 +#else
  1.9589 +# include <assert.h>
  1.9590 +#endif
  1.9591 +		     Syntax error
  1.9592 +_ACEOF
  1.9593 +if ac_fn_cxx_try_cpp "$LINENO"; then :
  1.9594 +
  1.9595 +else
  1.9596 +  # Broken: fails on valid input.
  1.9597 +continue
  1.9598 +fi
  1.9599 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.9600 +
  1.9601 +  # OK, works on sane cases.  Now check whether nonexistent headers
  1.9602 +  # can be detected and how.
  1.9603 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9604 +/* end confdefs.h.  */
  1.9605 +#include <ac_nonexistent.h>
  1.9606 +_ACEOF
  1.9607 +if ac_fn_cxx_try_cpp "$LINENO"; then :
  1.9608 +  # Broken: success on invalid input.
  1.9609 +continue
  1.9610 +else
  1.9611 +  # Passes both tests.
  1.9612 +ac_preproc_ok=:
  1.9613 +break
  1.9614 +fi
  1.9615 +rm -f conftest.err conftest.i conftest.$ac_ext
  1.9616 +
  1.9617 +done
  1.9618 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1.9619 +rm -f conftest.i conftest.err conftest.$ac_ext
  1.9620 +if $ac_preproc_ok; then :
  1.9621 +
  1.9622 +else
  1.9623 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.9624 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.9625 +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  1.9626 +See \`config.log' for more details" "$LINENO" 5 ; }
  1.9627 +fi
  1.9628 +
  1.9629 +ac_ext=cpp
  1.9630 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.9631 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.9632 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.9633 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.9634 +
  1.9635 +
  1.9636 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.9637 +    # extract the full path to the binary and at the
  1.9638 +    # same time maintain any arguments passed to it.
  1.9639 +    # The command MUST exist in the path, or else!
  1.9640 +    tmp="$CXXCPP"
  1.9641 +    car="${tmp%% *}"
  1.9642 +    tmp="$CXXCPP EOL"
  1.9643 +    cdr="${tmp#* }"
  1.9644 +    # On windows we want paths without spaces.
  1.9645 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9646 +
  1.9647 +    # Translate long cygdrive or C:\sdfsf path
  1.9648 +    # into a short mixed mode path that has no
  1.9649 +    # spaces in it.
  1.9650 +    tmp="$car"
  1.9651 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9652 +        tmp=`$CYGPATH -u "$car"`
  1.9653 +        tmp=`which "$tmp"`
  1.9654 +        # If file exists with .exe appended, that's the real filename
  1.9655 +        # and cygpath needs that to convert to short style path.
  1.9656 +        if test -f "${tmp}.exe"; then
  1.9657 +           tmp="${tmp}.exe"
  1.9658 +        elif test -f "${tmp}.cmd"; then
  1.9659 +           tmp="${tmp}.cmd"
  1.9660 +        fi
  1.9661 +        # Convert to C:/ mixed style path without spaces.
  1.9662 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9663 +    fi
  1.9664 +    car="$tmp"
  1.9665 +
  1.9666 +    else
  1.9667 +        # "which" is not portable, but is used here
  1.9668 +        # because we know that the command exists!
  1.9669 +        car=`which $car`
  1.9670 +    fi
  1.9671 +    if test "x$cdr" != xEOL; then
  1.9672 +        CXXCPP="$car ${cdr% *}"
  1.9673 +    else
  1.9674 +        CXXCPP="$car"
  1.9675 +    fi
  1.9676 +
  1.9677 +
  1.9678 +# Find the right assembler.
  1.9679 +if test "x$BUILD_OS" = xsolaris; then
  1.9680 +    # Extract the first word of "as", so it can be a program name with args.
  1.9681 +set dummy as; ac_word=$2
  1.9682 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.9683 +$as_echo_n "checking for $ac_word... " >&6; }
  1.9684 +if test "${ac_cv_path_AS+set}" = set; then :
  1.9685 +  $as_echo_n "(cached) " >&6
  1.9686 +else
  1.9687 +  case $AS in
  1.9688 +  [\\/]* | ?:[\\/]*)
  1.9689 +  ac_cv_path_AS="$AS" # Let the user override the test with a path.
  1.9690 +  ;;
  1.9691 +  *)
  1.9692 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.9693 +for as_dir in $PATH
  1.9694 +do
  1.9695 +  IFS=$as_save_IFS
  1.9696 +  test -z "$as_dir" && as_dir=.
  1.9697 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.9698 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.9699 +    ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
  1.9700 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.9701 +    break 2
  1.9702 +  fi
  1.9703 +done
  1.9704 +  done
  1.9705 +IFS=$as_save_IFS
  1.9706 +
  1.9707 +  ;;
  1.9708 +esac
  1.9709 +fi
  1.9710 +AS=$ac_cv_path_AS
  1.9711 +if test -n "$AS"; then
  1.9712 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  1.9713 +$as_echo "$AS" >&6; }
  1.9714 +else
  1.9715 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9716 +$as_echo "no" >&6; }
  1.9717 +fi
  1.9718 +
  1.9719 +
  1.9720 +
  1.9721 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.9722 +    # extract the full path to the binary and at the
  1.9723 +    # same time maintain any arguments passed to it.
  1.9724 +    # The command MUST exist in the path, or else!
  1.9725 +    tmp="$AS"
  1.9726 +    car="${tmp%% *}"
  1.9727 +    tmp="$AS EOL"
  1.9728 +    cdr="${tmp#* }"
  1.9729 +    # On windows we want paths without spaces.
  1.9730 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9731 +
  1.9732 +    # Translate long cygdrive or C:\sdfsf path
  1.9733 +    # into a short mixed mode path that has no
  1.9734 +    # spaces in it.
  1.9735 +    tmp="$car"
  1.9736 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9737 +        tmp=`$CYGPATH -u "$car"`
  1.9738 +        tmp=`which "$tmp"`
  1.9739 +        # If file exists with .exe appended, that's the real filename
  1.9740 +        # and cygpath needs that to convert to short style path.
  1.9741 +        if test -f "${tmp}.exe"; then
  1.9742 +           tmp="${tmp}.exe"
  1.9743 +        elif test -f "${tmp}.cmd"; then
  1.9744 +           tmp="${tmp}.cmd"
  1.9745 +        fi
  1.9746 +        # Convert to C:/ mixed style path without spaces.
  1.9747 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9748 +    fi
  1.9749 +    car="$tmp"
  1.9750 +
  1.9751 +    else
  1.9752 +        # "which" is not portable, but is used here
  1.9753 +        # because we know that the command exists!
  1.9754 +        car=`which $car`
  1.9755 +    fi
  1.9756 +    if test "x$cdr" != xEOL; then
  1.9757 +        AS="$car ${cdr% *}"
  1.9758 +    else
  1.9759 +        AS="$car"
  1.9760 +    fi
  1.9761 +
  1.9762 +    ASFLAGS=" "
  1.9763 +else
  1.9764 +    AS="$CC -c"
  1.9765 +    ASFLAGS=" "
  1.9766 +fi
  1.9767 +
  1.9768 +
  1.9769 +
  1.9770 +if test "x$HOST_CPU_BITS" = x32 && test "x$HOST_OS" = macosx; then
  1.9771 +    # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
  1.9772 +    # While waiting for a better solution, the current workaround is to use -mstackrealign.
  1.9773 +    CFLAGS="$CFLAGS -mstackrealign"
  1.9774 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5
  1.9775 +$as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; }
  1.9776 +
  1.9777 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.9778 +/* end confdefs.h.  */
  1.9779 +int main() { return 0; }
  1.9780 +_ACEOF
  1.9781 +if ac_fn_cxx_try_link "$LINENO"; then :
  1.9782 +
  1.9783 +		        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1.9784 +$as_echo "yes" >&6; }
  1.9785 +
  1.9786 +else
  1.9787 +
  1.9788 +		        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9789 +$as_echo "no" >&6; }
  1.9790 +	                as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
  1.9791 +
  1.9792 +fi
  1.9793 +rm -f core conftest.err conftest.$ac_objext \
  1.9794 +    conftest$ac_exeext conftest.$ac_ext
  1.9795 +fi
  1.9796 +
  1.9797 +if test "x$BUILD_OS" = xsolaris; then
  1.9798 +    # Extract the first word of "nm", so it can be a program name with args.
  1.9799 +set dummy nm; ac_word=$2
  1.9800 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.9801 +$as_echo_n "checking for $ac_word... " >&6; }
  1.9802 +if test "${ac_cv_path_NM+set}" = set; then :
  1.9803 +  $as_echo_n "(cached) " >&6
  1.9804 +else
  1.9805 +  case $NM in
  1.9806 +  [\\/]* | ?:[\\/]*)
  1.9807 +  ac_cv_path_NM="$NM" # Let the user override the test with a path.
  1.9808 +  ;;
  1.9809 +  *)
  1.9810 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.9811 +for as_dir in $PATH
  1.9812 +do
  1.9813 +  IFS=$as_save_IFS
  1.9814 +  test -z "$as_dir" && as_dir=.
  1.9815 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.9816 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.9817 +    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
  1.9818 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.9819 +    break 2
  1.9820 +  fi
  1.9821 +done
  1.9822 +  done
  1.9823 +IFS=$as_save_IFS
  1.9824 +
  1.9825 +  ;;
  1.9826 +esac
  1.9827 +fi
  1.9828 +NM=$ac_cv_path_NM
  1.9829 +if test -n "$NM"; then
  1.9830 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  1.9831 +$as_echo "$NM" >&6; }
  1.9832 +else
  1.9833 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9834 +$as_echo "no" >&6; }
  1.9835 +fi
  1.9836 +
  1.9837 +
  1.9838 +
  1.9839 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.9840 +    # extract the full path to the binary and at the
  1.9841 +    # same time maintain any arguments passed to it.
  1.9842 +    # The command MUST exist in the path, or else!
  1.9843 +    tmp="$NM"
  1.9844 +    car="${tmp%% *}"
  1.9845 +    tmp="$NM EOL"
  1.9846 +    cdr="${tmp#* }"
  1.9847 +    # On windows we want paths without spaces.
  1.9848 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9849 +
  1.9850 +    # Translate long cygdrive or C:\sdfsf path
  1.9851 +    # into a short mixed mode path that has no
  1.9852 +    # spaces in it.
  1.9853 +    tmp="$car"
  1.9854 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9855 +        tmp=`$CYGPATH -u "$car"`
  1.9856 +        tmp=`which "$tmp"`
  1.9857 +        # If file exists with .exe appended, that's the real filename
  1.9858 +        # and cygpath needs that to convert to short style path.
  1.9859 +        if test -f "${tmp}.exe"; then
  1.9860 +           tmp="${tmp}.exe"
  1.9861 +        elif test -f "${tmp}.cmd"; then
  1.9862 +           tmp="${tmp}.cmd"
  1.9863 +        fi
  1.9864 +        # Convert to C:/ mixed style path without spaces.
  1.9865 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9866 +    fi
  1.9867 +    car="$tmp"
  1.9868 +
  1.9869 +    else
  1.9870 +        # "which" is not portable, but is used here
  1.9871 +        # because we know that the command exists!
  1.9872 +        car=`which $car`
  1.9873 +    fi
  1.9874 +    if test "x$cdr" != xEOL; then
  1.9875 +        NM="$car ${cdr% *}"
  1.9876 +    else
  1.9877 +        NM="$car"
  1.9878 +    fi
  1.9879 +
  1.9880 +    # Extract the first word of "strip", so it can be a program name with args.
  1.9881 +set dummy strip; ac_word=$2
  1.9882 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.9883 +$as_echo_n "checking for $ac_word... " >&6; }
  1.9884 +if test "${ac_cv_path_STRIP+set}" = set; then :
  1.9885 +  $as_echo_n "(cached) " >&6
  1.9886 +else
  1.9887 +  case $STRIP in
  1.9888 +  [\\/]* | ?:[\\/]*)
  1.9889 +  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
  1.9890 +  ;;
  1.9891 +  *)
  1.9892 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.9893 +for as_dir in $PATH
  1.9894 +do
  1.9895 +  IFS=$as_save_IFS
  1.9896 +  test -z "$as_dir" && as_dir=.
  1.9897 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.9898 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.9899 +    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
  1.9900 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.9901 +    break 2
  1.9902 +  fi
  1.9903 +done
  1.9904 +  done
  1.9905 +IFS=$as_save_IFS
  1.9906 +
  1.9907 +  ;;
  1.9908 +esac
  1.9909 +fi
  1.9910 +STRIP=$ac_cv_path_STRIP
  1.9911 +if test -n "$STRIP"; then
  1.9912 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  1.9913 +$as_echo "$STRIP" >&6; }
  1.9914 +else
  1.9915 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9916 +$as_echo "no" >&6; }
  1.9917 +fi
  1.9918 +
  1.9919 +
  1.9920 +
  1.9921 +    # Translate "gcc -E" into "`which gcc` -E" ie
  1.9922 +    # extract the full path to the binary and at the
  1.9923 +    # same time maintain any arguments passed to it.
  1.9924 +    # The command MUST exist in the path, or else!
  1.9925 +    tmp="$STRIP"
  1.9926 +    car="${tmp%% *}"
  1.9927 +    tmp="$STRIP EOL"
  1.9928 +    cdr="${tmp#* }"
  1.9929 +    # On windows we want paths without spaces.
  1.9930 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9931 +
  1.9932 +    # Translate long cygdrive or C:\sdfsf path
  1.9933 +    # into a short mixed mode path that has no
  1.9934 +    # spaces in it.
  1.9935 +    tmp="$car"
  1.9936 +    if test "x$BUILD_OS" = "xwindows"; then
  1.9937 +        tmp=`$CYGPATH -u "$car"`
  1.9938 +        tmp=`which "$tmp"`
  1.9939 +        # If file exists with .exe appended, that's the real filename
  1.9940 +        # and cygpath needs that to convert to short style path.
  1.9941 +        if test -f "${tmp}.exe"; then
  1.9942 +           tmp="${tmp}.exe"
  1.9943 +        elif test -f "${tmp}.cmd"; then
  1.9944 +           tmp="${tmp}.cmd"
  1.9945 +        fi
  1.9946 +        # Convert to C:/ mixed style path without spaces.
  1.9947 +         tmp=`$CYGPATH -s -m "$tmp"`
  1.9948 +    fi
  1.9949 +    car="$tmp"
  1.9950 +
  1.9951 +    else
  1.9952 +        # "which" is not portable, but is used here
  1.9953 +        # because we know that the command exists!
  1.9954 +        car=`which $car`
  1.9955 +    fi
  1.9956 +    if test "x$cdr" != xEOL; then
  1.9957 +        STRIP="$car ${cdr% *}"
  1.9958 +    else
  1.9959 +        STRIP="$car"
  1.9960 +    fi
  1.9961 +
  1.9962 +    # Extract the first word of "mcs", so it can be a program name with args.
  1.9963 +set dummy mcs; ac_word=$2
  1.9964 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.9965 +$as_echo_n "checking for $ac_word... " >&6; }
  1.9966 +if test "${ac_cv_path_MCS+set}" = set; then :
  1.9967 +  $as_echo_n "(cached) " >&6
  1.9968 +else
  1.9969 +  case $MCS in
  1.9970 +  [\\/]* | ?:[\\/]*)
  1.9971 +  ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
  1.9972 +  ;;
  1.9973 +  *)
  1.9974 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.9975 +for as_dir in $PATH
  1.9976 +do
  1.9977 +  IFS=$as_save_IFS
  1.9978 +  test -z "$as_dir" && as_dir=.
  1.9979 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.9980 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.9981 +    ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
  1.9982 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.9983 +    break 2
  1.9984 +  fi
  1.9985 +done
  1.9986 +  done
  1.9987 +IFS=$as_save_IFS
  1.9988 +
  1.9989 +  ;;
  1.9990 +esac
  1.9991 +fi
  1.9992 +MCS=$ac_cv_path_MCS
  1.9993 +if test -n "$MCS"; then
  1.9994 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
  1.9995 +$as_echo "$MCS" >&6; }
  1.9996 +else
  1.9997 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.9998 +$as_echo "no" >&6; }
  1.9999 +fi
 1.10000 +
 1.10001 +
 1.10002 +
 1.10003 +    # Translate "gcc -E" into "`which gcc` -E" ie
 1.10004 +    # extract the full path to the binary and at the
 1.10005 +    # same time maintain any arguments passed to it.
 1.10006 +    # The command MUST exist in the path, or else!
 1.10007 +    tmp="$MCS"
 1.10008 +    car="${tmp%% *}"
 1.10009 +    tmp="$MCS EOL"
 1.10010 +    cdr="${tmp#* }"
 1.10011 +    # On windows we want paths without spaces.
 1.10012 +    if test "x$BUILD_OS" = "xwindows"; then
 1.10013 +
 1.10014 +    # Translate long cygdrive or C:\sdfsf path
 1.10015 +    # into a short mixed mode path that has no
 1.10016 +    # spaces in it.
 1.10017 +    tmp="$car"
 1.10018 +    if test "x$BUILD_OS" = "xwindows"; then
 1.10019 +        tmp=`$CYGPATH -u "$car"`
 1.10020 +        tmp=`which "$tmp"`
 1.10021 +        # If file exists with .exe appended, that's the real filename
 1.10022 +        # and cygpath needs that to convert to short style path.
 1.10023 +        if test -f "${tmp}.exe"; then
 1.10024 +           tmp="${tmp}.exe"
 1.10025 +        elif test -f "${tmp}.cmd"; then
 1.10026 +           tmp="${tmp}.cmd"
 1.10027 +        fi
 1.10028 +        # Convert to C:/ mixed style path without spaces.
 1.10029 +         tmp=`$CYGPATH -s -m "$tmp"`
 1.10030 +    fi
 1.10031 +    car="$tmp"
 1.10032 +
 1.10033 +    else
 1.10034 +        # "which" is not portable, but is used here
 1.10035 +        # because we know that the command exists!
 1.10036 +        car=`which $car`
 1.10037 +    fi
 1.10038 +    if test "x$cdr" != xEOL; then
 1.10039 +        MCS="$car ${cdr% *}"
 1.10040 +    else
 1.10041 +        MCS="$car"
 1.10042 +    fi
 1.10043 +
 1.10044 +else
 1.10045 +    if test -n "$ac_tool_prefix"; then
 1.10046 +  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
 1.10047 +set dummy ${ac_tool_prefix}nm; ac_word=$2
 1.10048 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.10049 +$as_echo_n "checking for $ac_word... " >&6; }
 1.10050 +if test "${ac_cv_prog_NM+set}" = set; then :
 1.10051 +  $as_echo_n "(cached) " >&6
 1.10052 +else
 1.10053 +  if test -n "$NM"; then
 1.10054 +  ac_cv_prog_NM="$NM" # Let the user override the test.
 1.10055 +else
 1.10056 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.10057 +for as_dir in $PATH
 1.10058 +do
 1.10059 +  IFS=$as_save_IFS
 1.10060 +  test -z "$as_dir" && as_dir=.
 1.10061 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.10062 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.10063 +    ac_cv_prog_NM="${ac_tool_prefix}nm"
 1.10064 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.10065 +    break 2
 1.10066 +  fi
 1.10067 +done
 1.10068 +  done
 1.10069 +IFS=$as_save_IFS
 1.10070 +
 1.10071 +fi
 1.10072 +fi
 1.10073 +NM=$ac_cv_prog_NM
 1.10074 +if test -n "$NM"; then
 1.10075 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
 1.10076 +$as_echo "$NM" >&6; }
 1.10077 +else
 1.10078 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.10079 +$as_echo "no" >&6; }
 1.10080 +fi
 1.10081 +
 1.10082 +
 1.10083 +fi
 1.10084 +if test -z "$ac_cv_prog_NM"; then
 1.10085 +  ac_ct_NM=$NM
 1.10086 +  # Extract the first word of "nm", so it can be a program name with args.
 1.10087 +set dummy nm; ac_word=$2
 1.10088 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.10089 +$as_echo_n "checking for $ac_word... " >&6; }
 1.10090 +if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
 1.10091 +  $as_echo_n "(cached) " >&6
 1.10092 +else
 1.10093 +  if test -n "$ac_ct_NM"; then
 1.10094 +  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
 1.10095 +else
 1.10096 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.10097 +for as_dir in $PATH
 1.10098 +do
 1.10099 +  IFS=$as_save_IFS
 1.10100 +  test -z "$as_dir" && as_dir=.
 1.10101 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.10102 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.10103 +    ac_cv_prog_ac_ct_NM="nm"
 1.10104 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.10105 +    break 2
 1.10106 +  fi
 1.10107 +done
 1.10108 +  done
 1.10109 +IFS=$as_save_IFS
 1.10110 +
 1.10111 +fi
 1.10112 +fi
 1.10113 +ac_ct_NM=$ac_cv_prog_ac_ct_NM
 1.10114 +if test -n "$ac_ct_NM"; then
 1.10115 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
 1.10116 +$as_echo "$ac_ct_NM" >&6; }
 1.10117 +else
 1.10118 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.10119 +$as_echo "no" >&6; }
 1.10120 +fi
 1.10121 +
 1.10122 +  if test "x$ac_ct_NM" = x; then
 1.10123 +    NM=""
 1.10124 +  else
 1.10125 +    case $cross_compiling:$ac_tool_warned in
 1.10126 +yes:)
 1.10127 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 1.10128 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 1.10129 +ac_tool_warned=yes ;;
 1.10130 +esac
 1.10131 +    NM=$ac_ct_NM
 1.10132 +  fi
 1.10133 +else
 1.10134 +  NM="$ac_cv_prog_NM"
 1.10135 +fi
 1.10136 +
 1.10137 +
 1.10138 +    # Translate "gcc -E" into "`which gcc` -E" ie
 1.10139 +    # extract the full path to the binary and at the
 1.10140 +    # same time maintain any arguments passed to it.
 1.10141 +    # The command MUST exist in the path, or else!
 1.10142 +    tmp="$NM"
 1.10143 +    car="${tmp%% *}"
 1.10144 +    tmp="$NM EOL"
 1.10145 +    cdr="${tmp#* }"
 1.10146 +    # On windows we want paths without spaces.
 1.10147 +    if test "x$BUILD_OS" = "xwindows"; then
 1.10148 +
 1.10149 +    # Translate long cygdrive or C:\sdfsf path
 1.10150 +    # into a short mixed mode path that has no
 1.10151 +    # spaces in it.
 1.10152 +    tmp="$car"
 1.10153 +    if test "x$BUILD_OS" = "xwindows"; then
 1.10154 +        tmp=`$CYGPATH -u "$car"`
 1.10155 +        tmp=`which "$tmp"`
 1.10156 +        # If file exists with .exe appended, that's the real filename
 1.10157 +        # and cygpath needs that to convert to short style path.
 1.10158 +        if test -f "${tmp}.exe"; then
 1.10159 +           tmp="${tmp}.exe"
 1.10160 +        elif test -f "${tmp}.cmd"; then
 1.10161 +           tmp="${tmp}.cmd"
 1.10162 +        fi
 1.10163 +        # Convert to C:/ mixed style path without spaces.
 1.10164 +         tmp=`$CYGPATH -s -m "$tmp"`
 1.10165 +    fi
 1.10166 +    car="$tmp"
 1.10167 +
 1.10168 +    else
 1.10169 +        # "which" is not portable, but is used here
 1.10170 +        # because we know that the command exists!
 1.10171 +        car=`which $car`
 1.10172 +    fi
 1.10173 +    if test "x$cdr" != xEOL; then
 1.10174 +        NM="$car ${cdr% *}"
 1.10175 +    else
 1.10176 +        NM="$car"
 1.10177 +    fi
 1.10178 +
 1.10179 +    if test -n "$ac_tool_prefix"; then
 1.10180 +  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 1.10181 +set dummy ${ac_tool_prefix}strip; ac_word=$2
 1.10182 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.10183 +$as_echo_n "checking for $ac_word... " >&6; }
 1.10184 +if test "${ac_cv_prog_STRIP+set}" = set; then :
 1.10185 +  $as_echo_n "(cached) " >&6
 1.10186 +else
 1.10187 +  if test -n "$STRIP"; then
 1.10188 +  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 1.10189 +else
 1.10190 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.10191 +for as_dir in $PATH
 1.10192 +do
 1.10193 +  IFS=$as_save_IFS
 1.10194 +  test -z "$as_dir" && as_dir=.
 1.10195 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.10196 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.10197 +    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 1.10198 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.10199 +    break 2
 1.10200 +  fi
 1.10201 +done
 1.10202 +  done
 1.10203 +IFS=$as_save_IFS
 1.10204 +
 1.10205 +fi
 1.10206 +fi
 1.10207 +STRIP=$ac_cv_prog_STRIP
 1.10208 +if test -n "$STRIP"; then
 1.10209 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 1.10210 +$as_echo "$STRIP" >&6; }
 1.10211 +else
 1.10212 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.10213 +$as_echo "no" >&6; }
 1.10214 +fi
 1.10215 +
 1.10216 +
 1.10217 +fi
 1.10218 +if test -z "$ac_cv_prog_STRIP"; then
 1.10219 +  ac_ct_STRIP=$STRIP
 1.10220 +  # Extract the first word of "strip", so it can be a program name with args.
 1.10221 +set dummy strip; ac_word=$2
 1.10222 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.10223 +$as_echo_n "checking for $ac_word... " >&6; }
 1.10224 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 1.10225 +  $as_echo_n "(cached) " >&6
 1.10226 +else
 1.10227 +  if test -n "$ac_ct_STRIP"; then
 1.10228 +  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 1.10229 +else
 1.10230 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.10231 +for as_dir in $PATH
 1.10232 +do
 1.10233 +  IFS=$as_save_IFS
 1.10234 +  test -z "$as_dir" && as_dir=.
 1.10235 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.10236 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.10237 +    ac_cv_prog_ac_ct_STRIP="strip"
 1.10238 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.10239 +    break 2
 1.10240 +  fi
 1.10241 +done
 1.10242 +  done
 1.10243 +IFS=$as_save_IFS
 1.10244 +
 1.10245 +fi
 1.10246 +fi
 1.10247 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 1.10248 +if test -n "$ac_ct_STRIP"; then
 1.10249 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 1.10250 +$as_echo "$ac_ct_STRIP" >&6; }
 1.10251 +else
 1.10252 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.10253 +$as_echo "no" >&6; }
 1.10254 +fi
 1.10255 +
 1.10256 +  if test "x$ac_ct_STRIP" = x; then
 1.10257 +    STRIP=""
 1.10258 +  else
 1.10259 +    case $cross_compiling:$ac_tool_warned in
 1.10260 +yes:)
 1.10261 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 1.10262 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 1.10263 +ac_tool_warned=yes ;;
 1.10264 +esac
 1.10265 +    STRIP=$ac_ct_STRIP
 1.10266 +  fi
 1.10267 +else
 1.10268 +  STRIP="$ac_cv_prog_STRIP"
 1.10269 +fi
 1.10270 +
 1.10271 +
 1.10272 +    # Translate "gcc -E" into "`which gcc` -E" ie
 1.10273 +    # extract the full path to the binary and at the
 1.10274 +    # same time maintain any arguments passed to it.
 1.10275 +    # The command MUST exist in the path, or else!
 1.10276 +    tmp="$STRIP"
 1.10277 +    car="${tmp%% *}"
 1.10278 +    tmp="$STRIP EOL"
 1.10279 +    cdr="${tmp#* }"
 1.10280 +    # On windows we want paths without spaces.
 1.10281 +    if test "x$BUILD_OS" = "xwindows"; then
 1.10282 +
 1.10283 +    # Translate long cygdrive or C:\sdfsf path
 1.10284 +    # into a short mixed mode path that has no
 1.10285 +    # spaces in it.
 1.10286 +    tmp="$car"
 1.10287 +    if test "x$BUILD_OS" = "xwindows"; then
 1.10288 +        tmp=`$CYGPATH -u "$car"`
 1.10289 +        tmp=`which "$tmp"`
 1.10290 +        # If file exists with .exe appended, that's the real filename
 1.10291 +        # and cygpath needs that to convert to short style path.
 1.10292 +        if test -f "${tmp}.exe"; then
 1.10293 +           tmp="${tmp}.exe"
 1.10294 +        elif test -f "${tmp}.cmd"; then
 1.10295 +           tmp="${tmp}.cmd"
 1.10296 +        fi
 1.10297 +        # Convert to C:/ mixed style path without spaces.
 1.10298 +         tmp=`$CYGPATH -s -m "$tmp"`
 1.10299 +    fi
 1.10300 +    car="$tmp"
 1.10301 +
 1.10302 +    else
 1.10303 +        # "which" is not portable, but is used here
 1.10304 +        # because we know that the command exists!
 1.10305 +        car=`which $car`
 1.10306 +    fi
 1.10307 +    if test "x$cdr" != xEOL; then
 1.10308 +        STRIP="$car ${cdr% *}"
 1.10309 +    else
 1.10310 +        STRIP="$car"
 1.10311 +    fi
 1.10312 +
 1.10313 +fi
 1.10314 +
 1.10315 +# When using cygwin, we need a wrapper binary that renames
 1.10316 +# /cygdrive/c/ arguments into c:/ arguments and peeks into
 1.10317 +# @files and rewrites these too! This wrapper binary is
 1.10318 +# called uncygdrive.exe.
 1.10319 +UNCYGDRIVE=
 1.10320 +if test "x$BUILD_OS" = xwindows; then
 1.10321 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive can be created" >&5
 1.10322 +$as_echo_n "checking if uncygdrive can be created... " >&6; }
 1.10323 +    UNCYGDRIVE_SRC=`$CYGPATH -m $SRC_ROOT/common/src/uncygdrive.c`
 1.10324 +    rm -f $OUTPUT_ROOT/uncygdrive*
 1.10325 +    UNCYGDRIVE=`$CYGPATH -m $OUTPUT_ROOT/uncygdrive.exe`
 1.10326 +    cd $OUTPUT_ROOT
 1.10327 +    $CC $UNCYGDRIVE_SRC /Fe$UNCYGDRIVE > $OUTPUT_ROOT/uncygdrive1.log 2>&1
 1.10328 +    cd $CURDIR
 1.10329 +
 1.10330 +    if test ! -x $OUTPUT_ROOT/uncygdrive.exe; then
 1.10331 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.10332 +$as_echo "no" >&6; }
 1.10333 +        cat $OUTPUT_ROOT/uncygdrive1.log
 1.10334 +        as_fn_error $? "Could not create $OUTPUT_ROOT/uncygdrive.exe" "$LINENO" 5
 1.10335 +    fi
 1.10336 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCYGDRIVE" >&5
 1.10337 +$as_echo "$UNCYGDRIVE" >&6; }
 1.10338 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive.exe works" >&5
 1.10339 +$as_echo_n "checking if uncygdrive.exe works... " >&6; }
 1.10340 +    cd $OUTPUT_ROOT
 1.10341 +    $UNCYGDRIVE $CC $SRC_ROOT/common/src/uncygdrive.c /Fe$OUTPUT_ROOT/uncygdrive2.exe > $OUTPUT_ROOT/uncygdrive2.log 2>&1
 1.10342 +    cd $CURDIR
 1.10343 +    if test ! -x $OUTPUT_ROOT/uncygdrive2.exe; then
 1.10344 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.10345 +$as_echo "no" >&6; }
 1.10346 +        cat $OUTPUT_ROOT/uncygdrive2.log
 1.10347 +        as_fn_error $? "Uncygdrive did not work!" "$LINENO" 5
 1.10348 +    fi
 1.10349 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.10350 +$as_echo "yes" >&6; }
 1.10351 +    rm -f $OUTPUT_ROOT/uncygdrive?.??? $OUTPUT_ROOT/uncygdrive.obj
 1.10352 +fi
 1.10353 +
 1.10354 +
 1.10355 +
 1.10356 +
 1.10357 +    # Check whether --enable-ccache was given.
 1.10358 +if test "${enable_ccache+set}" = set; then :
 1.10359 +  enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
 1.10360 +else
 1.10361 +  ENABLE_CCACHE=yes
 1.10362 +fi
 1.10363 +
 1.10364 +    if test "x$ENABLE_CCACHE" = xyes; then
 1.10365 +        # Extract the first word of "ccache", so it can be a program name with args.
 1.10366 +set dummy ccache; ac_word=$2
 1.10367 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.10368 +$as_echo_n "checking for $ac_word... " >&6; }
 1.10369 +if test "${ac_cv_path_CCACHE+set}" = set; then :
 1.10370 +  $as_echo_n "(cached) " >&6
 1.10371 +else
 1.10372 +  case $CCACHE in
 1.10373 +  [\\/]* | ?:[\\/]*)
 1.10374 +  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
 1.10375 +  ;;
 1.10376 +  *)
 1.10377 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.10378 +for as_dir in $PATH
 1.10379 +do
 1.10380 +  IFS=$as_save_IFS
 1.10381 +  test -z "$as_dir" && as_dir=.
 1.10382 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.10383 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.10384 +    ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
 1.10385 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.10386 +    break 2
 1.10387 +  fi
 1.10388 +done
 1.10389 +  done
 1.10390 +IFS=$as_save_IFS
 1.10391 +
 1.10392 +  ;;
 1.10393 +esac
 1.10394 +fi
 1.10395 +CCACHE=$ac_cv_path_CCACHE
 1.10396 +if test -n "$CCACHE"; then
 1.10397 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
 1.10398 +$as_echo "$CCACHE" >&6; }
 1.10399 +else
 1.10400 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.10401 +$as_echo "no" >&6; }
 1.10402 +fi
 1.10403 +
 1.10404 +
 1.10405 +    else
 1.10406 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache" >&5
 1.10407 +$as_echo_n "checking for ccache... " >&6; }
 1.10408 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicitly disabled" >&5
 1.10409 +$as_echo "explicitly disabled" >&6; }
 1.10410 +        CCACHE=
 1.10411 +    fi
 1.10412 +
 1.10413 +
 1.10414 +
 1.10415 +# Check whether --with-ccache-dir was given.
 1.10416 +if test "${with_ccache_dir+set}" = set; then :
 1.10417 +  withval=$with_ccache_dir;
 1.10418 +fi
 1.10419 +
 1.10420 +
 1.10421 +    if test "x$with_ccache_dir" != x; then
 1.10422 +        # When using a non home ccache directory, assume the use is to share ccache files
 1.10423 +        # with other users. Thus change the umask.
 1.10424 +        SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
 1.10425 +    fi
 1.10426 +    CCACHE_FOUND=""
 1.10427 +    if test "x$CCACHE" != x; then
 1.10428 +
 1.10429 +    if test "x$CCACHE" != x; then
 1.10430 +        CCACHE_FOUND="true"
 1.10431 +        # Only use ccache if it is 3.1.4 or later, which supports
 1.10432 +        # precompiled headers.
 1.10433 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
 1.10434 +$as_echo_n "checking if ccache supports precompiled headers... " >&6; }
 1.10435 +        HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
 1.10436 +        if test "x$HAS_GOOD_CCACHE" = x; then
 1.10437 +            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
 1.10438 +$as_echo "no, disabling ccache" >&6; }
 1.10439 +            CCACHE=
 1.10440 +        else
 1.10441 +            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.10442 +$as_echo "yes" >&6; }
 1.10443 +            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
 1.10444 +$as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
 1.10445 +            PUSHED_FLAGS="$CXXFLAGS"
 1.10446 +            CXXFLAGS="-fpch-preprocess $CXXFLAGS"
 1.10447 +            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10448 +/* end confdefs.h.  */
 1.10449 +
 1.10450 +int
 1.10451 +main ()
 1.10452 +{
 1.10453 +
 1.10454 +  ;
 1.10455 +  return 0;
 1.10456 +}
 1.10457 +_ACEOF
 1.10458 +if ac_fn_cxx_try_compile "$LINENO"; then :
 1.10459 +  CC_KNOWS_CCACHE_TRICK=yes
 1.10460 +else
 1.10461 +  CC_KNOWS_CCACHE_TRICK=no
 1.10462 +fi
 1.10463 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1.10464 +            CXXFLAGS="$PUSHED_FLAGS"
 1.10465 +            if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
 1.10466 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.10467 +$as_echo "yes" >&6; }
 1.10468 +            else
 1.10469 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
 1.10470 +$as_echo "no, disabling ccaching of precompiled headers" >&6; }
 1.10471 +                CCACHE=
 1.10472 +            fi
 1.10473 +        fi
 1.10474 +    fi
 1.10475 +
 1.10476 +    if test "x$CCACHE" != x; then
 1.10477 +        CCACHE_SLOPPINESS=time_macros
 1.10478 +        CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
 1.10479 +        CCACHE_FLAGS=-fpch-preprocess
 1.10480 +
 1.10481 +        if test "x$SET_CCACHE_DIR" != x; then
 1.10482 +            mkdir -p $CCACHE_DIR > /dev/null 2>&1
 1.10483 +	    chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
 1.10484 +        fi
 1.10485 +    fi
 1.10486 +
 1.10487 +    fi
 1.10488 +
 1.10489 +
 1.10490 +# Used on GNU/Linux systems, can be empty...
 1.10491 +#AC_PATH_PROG(ELFDUMP, elfdump)
 1.10492 +
 1.10493 +# Setup default logging of stdout and stderr to build.log in the output root.
 1.10494 +BUILD_LOG='$(OUTPUT_ROOT)/build.log'
 1.10495 +BUILD_LOG_WRAPPER='$(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
 1.10496 +
 1.10497 +
 1.10498 +
 1.10499 +###############################################################################
 1.10500 +#
 1.10501 +# Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
 1.10502 +# (The JVM can use 32 or 64 bit Java pointers but that decision
 1.10503 +# is made at runtime.)
 1.10504 +#
 1.10505 +
 1.10506 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 1.10507 +$as_echo_n "checking for ANSI C header files... " >&6; }
 1.10508 +if test "${ac_cv_header_stdc+set}" = set; then :
 1.10509 +  $as_echo_n "(cached) " >&6
 1.10510 +else
 1.10511 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10512 +/* end confdefs.h.  */
 1.10513 +#include <stdlib.h>
 1.10514 +#include <stdarg.h>
 1.10515 +#include <string.h>
 1.10516 +#include <float.h>
 1.10517 +
 1.10518 +int
 1.10519 +main ()
 1.10520 +{
 1.10521 +
 1.10522 +  ;
 1.10523 +  return 0;
 1.10524 +}
 1.10525 +_ACEOF
 1.10526 +if ac_fn_cxx_try_compile "$LINENO"; then :
 1.10527 +  ac_cv_header_stdc=yes
 1.10528 +else
 1.10529 +  ac_cv_header_stdc=no
 1.10530 +fi
 1.10531 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1.10532 +
 1.10533 +if test $ac_cv_header_stdc = yes; then
 1.10534 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 1.10535 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10536 +/* end confdefs.h.  */
 1.10537 +#include <string.h>
 1.10538 +
 1.10539 +_ACEOF
 1.10540 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1.10541 +  $EGREP "memchr" >/dev/null 2>&1; then :
 1.10542 +
 1.10543 +else
 1.10544 +  ac_cv_header_stdc=no
 1.10545 +fi
 1.10546 +rm -f conftest*
 1.10547 +
 1.10548 +fi
 1.10549 +
 1.10550 +if test $ac_cv_header_stdc = yes; then
 1.10551 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 1.10552 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10553 +/* end confdefs.h.  */
 1.10554 +#include <stdlib.h>
 1.10555 +
 1.10556 +_ACEOF
 1.10557 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1.10558 +  $EGREP "free" >/dev/null 2>&1; then :
 1.10559 +
 1.10560 +else
 1.10561 +  ac_cv_header_stdc=no
 1.10562 +fi
 1.10563 +rm -f conftest*
 1.10564 +
 1.10565 +fi
 1.10566 +
 1.10567 +if test $ac_cv_header_stdc = yes; then
 1.10568 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 1.10569 +  if test "$cross_compiling" = yes; then :
 1.10570 +  :
 1.10571 +else
 1.10572 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10573 +/* end confdefs.h.  */
 1.10574 +#include <ctype.h>
 1.10575 +#include <stdlib.h>
 1.10576 +#if ((' ' & 0x0FF) == 0x020)
 1.10577 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 1.10578 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 1.10579 +#else
 1.10580 +# define ISLOWER(c) \
 1.10581 +		   (('a' <= (c) && (c) <= 'i') \
 1.10582 +		     || ('j' <= (c) && (c) <= 'r') \
 1.10583 +		     || ('s' <= (c) && (c) <= 'z'))
 1.10584 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 1.10585 +#endif
 1.10586 +
 1.10587 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 1.10588 +int
 1.10589 +main ()
 1.10590 +{
 1.10591 +  int i;
 1.10592 +  for (i = 0; i < 256; i++)
 1.10593 +    if (XOR (islower (i), ISLOWER (i))
 1.10594 +	|| toupper (i) != TOUPPER (i))
 1.10595 +      return 2;
 1.10596 +  return 0;
 1.10597 +}
 1.10598 +_ACEOF
 1.10599 +if ac_fn_cxx_try_run "$LINENO"; then :
 1.10600 +
 1.10601 +else
 1.10602 +  ac_cv_header_stdc=no
 1.10603 +fi
 1.10604 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 1.10605 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
 1.10606 +fi
 1.10607 +
 1.10608 +fi
 1.10609 +fi
 1.10610 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 1.10611 +$as_echo "$ac_cv_header_stdc" >&6; }
 1.10612 +if test $ac_cv_header_stdc = yes; then
 1.10613 +
 1.10614 +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 1.10615 +
 1.10616 +fi
 1.10617 +
 1.10618 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 1.10619 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 1.10620 +		  inttypes.h stdint.h unistd.h
 1.10621 +do :
 1.10622 +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 1.10623 +ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 1.10624 +"
 1.10625 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 1.10626 +  cat >>confdefs.h <<_ACEOF
 1.10627 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 1.10628 +_ACEOF
 1.10629 +
 1.10630 +fi
 1.10631 +
 1.10632 +done
 1.10633 +
 1.10634 +
 1.10635 +# The cast to long int works around a bug in the HP C Compiler
 1.10636 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 1.10637 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 1.10638 +# This bug is HP SR number 8606223364.
 1.10639 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
 1.10640 +$as_echo_n "checking size of int *... " >&6; }
 1.10641 +if test "${ac_cv_sizeof_int_p+set}" = set; then :
 1.10642 +  $as_echo_n "(cached) " >&6
 1.10643 +else
 1.10644 +  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
 1.10645 +
 1.10646 +else
 1.10647 +  if test "$ac_cv_type_int_p" = yes; then
 1.10648 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 1.10649 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 1.10650 +as_fn_error 77 "cannot compute sizeof (int *)
 1.10651 +See \`config.log' for more details" "$LINENO" 5 ; }
 1.10652 +   else
 1.10653 +     ac_cv_sizeof_int_p=0
 1.10654 +   fi
 1.10655 +fi
 1.10656 +
 1.10657 +fi
 1.10658 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
 1.10659 +$as_echo "$ac_cv_sizeof_int_p" >&6; }
 1.10660 +
 1.10661 +
 1.10662 +
 1.10663 +cat >>confdefs.h <<_ACEOF
 1.10664 +#define SIZEOF_INT_P $ac_cv_sizeof_int_p
 1.10665 +_ACEOF
 1.10666 +
 1.10667 +
 1.10668 +if test "x$ac_cv_sizeof_int_p" = x0; then
 1.10669 +    # The test failed, lets pick the assumed value.
 1.10670 +    ARCH_DATA_MODEL=$HOST_CPU_BITS
 1.10671 +else
 1.10672 +    ARCH_DATA_MODEL=`expr 8 \* $ac_cv_sizeof_int_p`
 1.10673 +fi
 1.10674 +
 1.10675 +if test "x$ARCH_DATA_MODEL" = x64; then
 1.10676 +    A_LP64="LP64:="
 1.10677 +    ADD_LP64="-D_LP64=1"
 1.10678 +fi
 1.10679 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host address size" >&5
 1.10680 +$as_echo_n "checking for host address size... " >&6; }
 1.10681 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH_DATA_MODEL bits" >&5
 1.10682 +$as_echo "$ARCH_DATA_MODEL bits" >&6; }
 1.10683 +LP64=$A_LP64
 1.10684 +
 1.10685 +
 1.10686 +
 1.10687 +if test "x$ARCH_DATA_MODEL" != "x$HOST_CPU_BITS"; then
 1.10688 +    as_fn_error $? "The tested number of bits in the host ($ARCH_DATA_MODEL) differs from the number of bits expected to be found in the host ($HOST_CPU_BITS)" "$LINENO" 5
 1.10689 +fi
 1.10690 +
 1.10691 +###############################################################################
 1.10692 +#
 1.10693 +# Can the C/C++ compiler use precompiled headers?
 1.10694 +#
 1.10695 +# Check whether --enable-precompiled-headers was given.
 1.10696 +if test "${enable_precompiled_headers+set}" = set; then :
 1.10697 +  enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled-headers}
 1.10698 +else
 1.10699 +  ENABLE_PRECOMPH=yes
 1.10700 +fi
 1.10701 +
 1.10702 +
 1.10703 +USE_PRECOMPILED_HEADER=1
 1.10704 +if test "x$ENABLE_PRECOMPH" = xno; then
 1.10705 +    USE_PRECOMPILED_HEADER=0
 1.10706 +fi
 1.10707 +
 1.10708 +if test "x$ENABLE_PRECOMPH" = xyes; then
 1.10709 +    # Check that the compiler actually supports precomp headers.
 1.10710 +    if test "x$GCC" = xyes; then
 1.10711 +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5
 1.10712 +$as_echo_n "checking that precompiled headers work... " >&6; }
 1.10713 +         echo "int alfa();" > conftest.h
 1.10714 +         $CXX -x c++-header conftest.h -o conftest.hpp.gch
 1.10715 +         if test ! -f conftest.hpp.gch; then
 1.10716 +             echo Precompiled header is not working!
 1.10717 +             USE_PRECOMPILED_HEADER=0
 1.10718 +             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.10719 +$as_echo "no" >&6; }
 1.10720 +         else
 1.10721 +             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.10722 +$as_echo "yes" >&6; }
 1.10723 +         fi
 1.10724 +         rm -f conftest.h
 1.10725 +    fi
 1.10726 +fi
 1.10727 +
 1.10728 +
 1.10729 +
 1.10730 +###############################################################################
 1.10731 +#
 1.10732 +# How to compile shared libraries.
 1.10733 +#
 1.10734 +
 1.10735 +if test "x$GCC" = xyes; then
 1.10736 +    COMPILER_NAME=gcc
 1.10737 +    PICFLAG="-fPIC"
 1.10738 +    LIBRARY_PREFIX=lib
 1.10739 +    SHARED_LIBRARY='lib$1.so'
 1.10740 +    STATIC_LIBRARY='lib$1.a'
 1.10741 +    SHARED_LIBRARY_FLAGS="-shared"
 1.10742 +    SHARED_LIBRARY_SUFFIX='.so'
 1.10743 +    STATIC_LIBRARY_SUFFIX='.a'
 1.10744 +    OBJ_SUFFIX='.o'
 1.10745 +    EXE_SUFFIX=''
 1.10746 +    SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
 1.10747 +    SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$(JDK_TOPDIR)/$1'
 1.10748 +    SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN/$1'
 1.10749 +    LD="$CC"
 1.10750 +    LDEXE="$CC"
 1.10751 +    LDCXX="$CXX"
 1.10752 +    LDEXECXX="$CXX"
 1.10753 +
 1.10754 +    # Linking is different on MacOSX
 1.10755 +    if test "x$BUILD_OS" = xmacosx; then
 1.10756 +        # Might change in the future to clang.
 1.10757 +        COMPILER_NAME=gcc
 1.10758 +        SHARED_LIBRARY='lib$1.dylib'
 1.10759 +        SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
 1.10760 +        SHARED_LIBRARY_SUFFIX='.dylib'
 1.10761 +        EXE_SUFFIX=''
 1.10762 +        SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
 1.10763 +        SET_SHARED_LIBRARY_MAPFILE=''
 1.10764 +        SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
 1.10765 +    fi
 1.10766 +else
 1.10767 +    if test "x$BUILD_OS" = xsolaris; then
 1.10768 +        # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler
 1.10769 +        COMPILER_NAME=ossc
 1.10770 +        PICFLAG="-KPIC"
 1.10771 +        LIBRARY_PREFIX=lib
 1.10772 +        SHARED_LIBRARY='lib$1.so'
 1.10773 +        STATIC_LIBRARY='lib$1.a'
 1.10774 +        SHARED_LIBRARY_FLAGS="-G"
 1.10775 +        SHARED_LIBRARY_SUFFIX='.so'
 1.10776 +        STATIC_LIBRARY_SUFFIX='.a'
 1.10777 +        OBJ_SUFFIX='.o'
 1.10778 +        EXE_SUFFIX=''
 1.10779 +        SET_SHARED_LIBRARY_NAME=''
 1.10780 +        SET_SHARED_LIBRARY_MAPFILE='-M $(JDK_TOPDIR)/$1'
 1.10781 +        SET_SHARED_LIBRARY_ORIGIN='-R \$$$$ORIGIN/$1'
 1.10782 +        CFLAGS_JDKLIB_EXTRA='-xstrconst -D__solaris__'
 1.10783 +    fi
 1.10784 +    if test "x$BUILD_OS" = xwindows; then
 1.10785 +        # If it is not gcc, then assume it is the MS Visual Studio compiler
 1.10786 +        COMPILER_NAME=cl
 1.10787 +        PICFLAG=""
 1.10788 +        LIBRARY_PREFIX=
 1.10789 +        SHARED_LIBRARY='$1.dll'
 1.10790 +        STATIC_LIBRARY='$1.lib'
 1.10791 +        SHARED_LIBRARY_FLAGS="-LD"
 1.10792 +        SHARED_LIBRARY_SUFFIX='.dll'
 1.10793 +        STATIC_LIBRARY_SUFFIX='.lib'
 1.10794 +        OBJ_SUFFIX='.obj'
 1.10795 +        EXE_SUFFIX='.exe'
 1.10796 +        SET_SHARED_LIBRARY_NAME=''
 1.10797 +        SET_SHARED_LIBRARY_MAPFILE=''
 1.10798 +        SET_SHARED_LIBRARY_ORIGIN=''
 1.10799 +    fi
 1.10800 +fi
 1.10801 +
 1.10802 +
 1.10803 +
 1.10804 +
 1.10805 +
 1.10806 +
 1.10807 +
 1.10808 +
 1.10809 +
 1.10810 +
 1.10811 +
 1.10812 +
 1.10813 +
 1.10814 +# The (cross) compiler is now configured, we can now test capabilities
 1.10815 +# of the host platform.
 1.10816 +
 1.10817 +###############################################################################
 1.10818 +#
 1.10819 +# Is the host little of big endian?
 1.10820 +#
 1.10821 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 1.10822 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 1.10823 +if test "${ac_cv_c_bigendian+set}" = set; then :
 1.10824 +  $as_echo_n "(cached) " >&6
 1.10825 +else
 1.10826 +  ac_cv_c_bigendian=unknown
 1.10827 +    # See if we're dealing with a universal compiler.
 1.10828 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10829 +/* end confdefs.h.  */
 1.10830 +#ifndef __APPLE_CC__
 1.10831 +	       not a universal capable compiler
 1.10832 +	     #endif
 1.10833 +	     typedef int dummy;
 1.10834 +
 1.10835 +_ACEOF
 1.10836 +if ac_fn_cxx_try_compile "$LINENO"; then :
 1.10837 +
 1.10838 +	# Check for potential -arch flags.  It is not universal unless
 1.10839 +	# there are at least two -arch flags with different values.
 1.10840 +	ac_arch=
 1.10841 +	ac_prev=
 1.10842 +	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 1.10843 +	 if test -n "$ac_prev"; then
 1.10844 +	   case $ac_word in
 1.10845 +	     i?86 | x86_64 | ppc | ppc64)
 1.10846 +	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 1.10847 +		 ac_arch=$ac_word
 1.10848 +	       else
 1.10849 +		 ac_cv_c_bigendian=universal
 1.10850 +		 break
 1.10851 +	       fi
 1.10852 +	       ;;
 1.10853 +	   esac
 1.10854 +	   ac_prev=
 1.10855 +	 elif test "x$ac_word" = "x-arch"; then
 1.10856 +	   ac_prev=arch
 1.10857 +	 fi
 1.10858 +       done
 1.10859 +fi
 1.10860 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1.10861 +    if test $ac_cv_c_bigendian = unknown; then
 1.10862 +      # See if sys/param.h defines the BYTE_ORDER macro.
 1.10863 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10864 +/* end confdefs.h.  */
 1.10865 +#include <sys/types.h>
 1.10866 +	     #include <sys/param.h>
 1.10867 +
 1.10868 +int
 1.10869 +main ()
 1.10870 +{
 1.10871 +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 1.10872 +		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 1.10873 +		     && LITTLE_ENDIAN)
 1.10874 +	      bogus endian macros
 1.10875 +	     #endif
 1.10876 +
 1.10877 +  ;
 1.10878 +  return 0;
 1.10879 +}
 1.10880 +_ACEOF
 1.10881 +if ac_fn_cxx_try_compile "$LINENO"; then :
 1.10882 +  # It does; now see whether it defined to BIG_ENDIAN or not.
 1.10883 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10884 +/* end confdefs.h.  */
 1.10885 +#include <sys/types.h>
 1.10886 +		#include <sys/param.h>
 1.10887 +
 1.10888 +int
 1.10889 +main ()
 1.10890 +{
 1.10891 +#if BYTE_ORDER != BIG_ENDIAN
 1.10892 +		 not big endian
 1.10893 +		#endif
 1.10894 +
 1.10895 +  ;
 1.10896 +  return 0;
 1.10897 +}
 1.10898 +_ACEOF
 1.10899 +if ac_fn_cxx_try_compile "$LINENO"; then :
 1.10900 +  ac_cv_c_bigendian=yes
 1.10901 +else
 1.10902 +  ac_cv_c_bigendian=no
 1.10903 +fi
 1.10904 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1.10905 +fi
 1.10906 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1.10907 +    fi
 1.10908 +    if test $ac_cv_c_bigendian = unknown; then
 1.10909 +      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 1.10910 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10911 +/* end confdefs.h.  */
 1.10912 +#include <limits.h>
 1.10913 +
 1.10914 +int
 1.10915 +main ()
 1.10916 +{
 1.10917 +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 1.10918 +	      bogus endian macros
 1.10919 +	     #endif
 1.10920 +
 1.10921 +  ;
 1.10922 +  return 0;
 1.10923 +}
 1.10924 +_ACEOF
 1.10925 +if ac_fn_cxx_try_compile "$LINENO"; then :
 1.10926 +  # It does; now see whether it defined to _BIG_ENDIAN or not.
 1.10927 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10928 +/* end confdefs.h.  */
 1.10929 +#include <limits.h>
 1.10930 +
 1.10931 +int
 1.10932 +main ()
 1.10933 +{
 1.10934 +#ifndef _BIG_ENDIAN
 1.10935 +		 not big endian
 1.10936 +		#endif
 1.10937 +
 1.10938 +  ;
 1.10939 +  return 0;
 1.10940 +}
 1.10941 +_ACEOF
 1.10942 +if ac_fn_cxx_try_compile "$LINENO"; then :
 1.10943 +  ac_cv_c_bigendian=yes
 1.10944 +else
 1.10945 +  ac_cv_c_bigendian=no
 1.10946 +fi
 1.10947 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1.10948 +fi
 1.10949 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1.10950 +    fi
 1.10951 +    if test $ac_cv_c_bigendian = unknown; then
 1.10952 +      # Compile a test program.
 1.10953 +      if test "$cross_compiling" = yes; then :
 1.10954 +  # Try to guess by grepping values from an object file.
 1.10955 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10956 +/* end confdefs.h.  */
 1.10957 +short int ascii_mm[] =
 1.10958 +		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 1.10959 +		short int ascii_ii[] =
 1.10960 +		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 1.10961 +		int use_ascii (int i) {
 1.10962 +		  return ascii_mm[i] + ascii_ii[i];
 1.10963 +		}
 1.10964 +		short int ebcdic_ii[] =
 1.10965 +		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 1.10966 +		short int ebcdic_mm[] =
 1.10967 +		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 1.10968 +		int use_ebcdic (int i) {
 1.10969 +		  return ebcdic_mm[i] + ebcdic_ii[i];
 1.10970 +		}
 1.10971 +		extern int foo;
 1.10972 +
 1.10973 +int
 1.10974 +main ()
 1.10975 +{
 1.10976 +return use_ascii (foo) == use_ebcdic (foo);
 1.10977 +  ;
 1.10978 +  return 0;
 1.10979 +}
 1.10980 +_ACEOF
 1.10981 +if ac_fn_cxx_try_compile "$LINENO"; then :
 1.10982 +  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 1.10983 +	      ac_cv_c_bigendian=yes
 1.10984 +	    fi
 1.10985 +	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 1.10986 +	      if test "$ac_cv_c_bigendian" = unknown; then
 1.10987 +		ac_cv_c_bigendian=no
 1.10988 +	      else
 1.10989 +		# finding both strings is unlikely to happen, but who knows?
 1.10990 +		ac_cv_c_bigendian=unknown
 1.10991 +	      fi
 1.10992 +	    fi
 1.10993 +fi
 1.10994 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1.10995 +else
 1.10996 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.10997 +/* end confdefs.h.  */
 1.10998 +$ac_includes_default
 1.10999 +int
 1.11000 +main ()
 1.11001 +{
 1.11002 +
 1.11003 +	     /* Are we little or big endian?  From Harbison&Steele.  */
 1.11004 +	     union
 1.11005 +	     {
 1.11006 +	       long int l;
 1.11007 +	       char c[sizeof (long int)];
 1.11008 +	     } u;
 1.11009 +	     u.l = 1;
 1.11010 +	     return u.c[sizeof (long int) - 1] == 1;
 1.11011 +
 1.11012 +  ;
 1.11013 +  return 0;
 1.11014 +}
 1.11015 +_ACEOF
 1.11016 +if ac_fn_cxx_try_run "$LINENO"; then :
 1.11017 +  ac_cv_c_bigendian=no
 1.11018 +else
 1.11019 +  ac_cv_c_bigendian=yes
 1.11020 +fi
 1.11021 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 1.11022 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
 1.11023 +fi
 1.11024 +
 1.11025 +    fi
 1.11026 +fi
 1.11027 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 1.11028 +$as_echo "$ac_cv_c_bigendian" >&6; }
 1.11029 + case $ac_cv_c_bigendian in #(
 1.11030 +   yes)
 1.11031 +     ENDIAN="big";; #(
 1.11032 +   no)
 1.11033 +     ENDIAN="little" ;; #(
 1.11034 +   universal)
 1.11035 +     ENDIAN="universal"
 1.11036 +     ;; #(
 1.11037 +   *)
 1.11038 +     ENDIAN="unknown" ;;
 1.11039 + esac
 1.11040 +
 1.11041 +
 1.11042 +if test "x$ENDIAN" = xuniversal; then
 1.11043 +    as_fn_error $? "It seems like someone needs to decide how we are to deal with universal binaries on the MacOSX?" "$LINENO" 5
 1.11044 +fi
 1.11045 +if test "x$ENDIAN" = xunknown; then
 1.11046 +    ENDIAN="$HOST_CPU_ENDIAN"
 1.11047 +fi
 1.11048 +if test "x$ENDIAN" != "x$HOST_CPU_ENDIAN"; then
 1.11049 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The tested endian in the host ($ENDIAN) differs from the endian expected to be found in the host ($HOST_CPU_ENDIAN)" >&5
 1.11050 +$as_echo "$as_me: WARNING: The tested endian in the host ($ENDIAN) differs from the endian expected to be found in the host ($HOST_CPU_ENDIAN)" >&2;}
 1.11051 +    ENDIAN="$HOST_CPU_ENDIAN"
 1.11052 +fi
 1.11053 +
 1.11054 +
 1.11055 +###############################################################################
 1.11056 +#
 1.11057 +# We need a Boot JDK to bootstrap the build.
 1.11058 +#
 1.11059 +BOOT_JDK_FOUND=no
 1.11060 +
 1.11061 +# Check whether --with-boot-jdk was given.
 1.11062 +if test "${with_boot_jdk+set}" = set; then :
 1.11063 +  withval=$with_boot_jdk;
 1.11064 +fi
 1.11065 +
 1.11066 +
 1.11067 +if test "x$with_boot_jdk" != x; then
 1.11068 +    BOOT_JDK=$with_boot_jdk
 1.11069 +    BOOT_JDK_FOUND=yes
 1.11070 +fi
 1.11071 +if test "x$BOOT_JDK_FOUND" = xno; then
 1.11072 +
 1.11073 +
 1.11074 +    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
 1.11075 +        # Source the builddeps file again, to make sure it uses the latest variables!
 1.11076 +        . $builddepsfile
 1.11077 +        # Look for a host and build machine specific resource!
 1.11078 +        eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
 1.11079 +        if test "x$resource" = x; then
 1.11080 +            # Ok, lets instead look for a host specific resource
 1.11081 +            eval resource=\${builddep_bootjdk_HOST_${rewritten_host_var}}
 1.11082 +        fi
 1.11083 +        if test "x$resource" = x; then
 1.11084 +            # Ok, lets instead look for a build specific resource
 1.11085 +            eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
 1.11086 +        fi
 1.11087 +        if test "x$resource" = x; then
 1.11088 +            # Ok, lets instead look for a generic resource
 1.11089 +            # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
 1.11090 +            resource=${builddep_bootjdk}
 1.11091 +        fi
 1.11092 +        if test "x$resource" != x; then
 1.11093 +            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
 1.11094 +$as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
 1.11095 +	    # If the resource in the builddeps.conf file is an existing directory,
 1.11096 +	    # for example /java/linux/cups
 1.11097 +	    if test -d ${resource}; then
 1.11098 +	       depdir=${resource}
 1.11099 +	    else
 1.11100 +
 1.11101 +# bootjdk is for example mymodule
 1.11102 +# $resource is for example libs/general/libmymod_1_2_3.zip
 1.11103 +# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
 1.11104 +# $with_builddeps_dir is for example /localhome/builddeps
 1.11105 +# depdir is the name of the variable into which we store the depdir, eg MYMOD
 1.11106 +# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
 1.11107 +# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
 1.11108 +    filename=`basename $resource`
 1.11109 +    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
 1.11110 +    filebase=${filename%%.*}
 1.11111 +    extension=${filename#*.}
 1.11112 +    installdir=$with_builddeps_dir/$filebase
 1.11113 +    if test ! -f $installdir/$filename.unpacked; then
 1.11114 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
 1.11115 +$as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
 1.11116 +        if test ! -d $installdir; then
 1.11117 +            mkdir -p $installdir
 1.11118 +        fi
 1.11119 +        if test ! -d $installdir; then
 1.11120 +            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
 1.11121 +        fi
 1.11122 +        tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
 1.11123 +        touch $tmpfile
 1.11124 +        if test ! -f $tmpfile; then
 1.11125 +            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
 1.11126 +        fi
 1.11127 +
 1.11128 +    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
 1.11129 +    # $tmpfile is the local file name for the downloaded file.
 1.11130 +    VALID_TOOL=no
 1.11131 +    if test "x$BDEPS_FTP" = xwget; then
 1.11132 +       VALID_TOOL=yes
 1.11133 +       wget -O $tmpfile $with_builddeps_server/$resource
 1.11134 +    fi
 1.11135 +    if test "x$BDEPS_FTP" = xlftp; then
 1.11136 +       VALID_TOOL=yes
 1.11137 +       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
 1.11138 +    fi
 1.11139 +    if test "x$BDEPS_FTP" = xftp; then
 1.11140 +        VALID_TOOL=yes
 1.11141 +        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
 1.11142 +        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
 1.11143 +        FTPUSERPWD=${FTPSERVER%%@*}
 1.11144 +        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
 1.11145 +            FTPUSER=${userpwd%%:*}
 1.11146 +            FTPPWD=${userpwd#*@}
 1.11147 +            FTPSERVER=${FTPSERVER#*@}
 1.11148 +        else
 1.11149 +            FTPUSER=ftp
 1.11150 +            FTPPWD=ftp
 1.11151 +        fi
 1.11152 +        # the "pass" command does not work on some
 1.11153 +        # ftp clients (read ftp.exe) but if it works,
 1.11154 +        # passive mode is better!
 1.11155 +        (\
 1.11156 +            echo "user $FTPUSER $FTPPWD"        ;\
 1.11157 +            echo "pass"                         ;\
 1.11158 +            echo "bin"                          ;\
 1.11159 +            echo "get $FTPPATH $tmpfile"              ;\
 1.11160 +        ) | ftp -in $FTPSERVER
 1.11161 +    fi
 1.11162 +    if test "x$VALID_TOOL" != xyes; then
 1.11163 +       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
 1.11164 +    fi
 1.11165 +
 1.11166 +        mv $tmpfile $installdir/$filename
 1.11167 +        if test ! -s $installdir/$filename; then
 1.11168 +            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
 1.11169 +        fi
 1.11170 +        case "$extension" in
 1.11171 +            zip)  echo "Unzipping $installdir/$filename..."
 1.11172 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
 1.11173 +            ;;
 1.11174 +            tar.gz) echo "Untaring $installdir/$filename..."
 1.11175 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.11176 +            ;;
 1.11177 +            tgz) echo "Untaring $installdir/$filename..."
 1.11178 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.11179 +            ;;
 1.11180 +            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
 1.11181 +            ;;
 1.11182 +        esac
 1.11183 +    fi
 1.11184 +    if test -f $installdir/$filename.unpacked; then
 1.11185 +        depdir=$installdir
 1.11186 +    fi
 1.11187 +
 1.11188 +	    fi
 1.11189 +            # Source the builddeps file again, because in the previous command, the depdir
 1.11190 +            # was updated to point at the current build dependency install directory.
 1.11191 +            . $builddepsfile
 1.11192 +            # Now extract variables from the builddeps.conf files.
 1.11193 +            theroot=${builddep_bootjdk_ROOT}
 1.11194 +            thecflags=${builddep_bootjdk_CFLAGS}
 1.11195 +            thelibs=${builddep_bootjdk_LIBS}
 1.11196 +            if test "x$depdir" = x; then
 1.11197 +                as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
 1.11198 +            fi
 1.11199 +            BOOT_JDK=$depdir
 1.11200 +            if test "x$theroot" != x; then
 1.11201 +               BOOT_JDK="$theroot"
 1.11202 +            fi
 1.11203 +            if test "x$thecflags" != x; then
 1.11204 +               BOOT_JDK_CFLAGS="$thecflags"
 1.11205 +            fi
 1.11206 +            if test "x$thelibs" != x; then
 1.11207 +               BOOT_JDK_LIBS="$thelibs"
 1.11208 +            fi
 1.11209 +            BOOT_JDK_FOUND=yes
 1.11210 +            else BOOT_JDK_FOUND=no
 1.11211 +
 1.11212 +        fi
 1.11213 +        else BOOT_JDK_FOUND=no
 1.11214 +
 1.11215 +    fi
 1.11216 +
 1.11217 +fi
 1.11218 +
 1.11219 +if test "x$BOOT_JDK_FOUND" = xno; then
 1.11220 +    if test "x$JAVA_HOME" != x; then
 1.11221 +        if test ! -d "$JAVA_HOME"; then
 1.11222 +            as_fn_error $? "Your JAVA_HOME points to a non-existing directory!" "$LINENO" 5
 1.11223 +        fi
 1.11224 +        # Aha, the user has set a JAVA_HOME
 1.11225 +        # let us use that as the Boot JDK.
 1.11226 +        BOOT_JDK=$JAVA_HOME
 1.11227 +        BOOT_JDK_FOUND=yes
 1.11228 +        # To be on the safe side, lets check that it is a JDK.
 1.11229 +        if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
 1.11230 +            JAVAC=$BOOT_JDK/bin/javac
 1.11231 +            JAVA=$BOOT_JDK/bin/java
 1.11232 +            BOOT_JDK_FOUND=yes
 1.11233 +        else
 1.11234 +            as_fn_error $? "Your JAVA_HOME points to a JRE! The build needs a JDK! Please point JAVA_HOME to a JDK." "$LINENO" 5
 1.11235 +        fi
 1.11236 +    fi
 1.11237 +fi
 1.11238 +
 1.11239 +if test "x$BOOT_JDK_FOUND" = xno; then
 1.11240 +    # Extract the first word of "javac", so it can be a program name with args.
 1.11241 +set dummy javac; ac_word=$2
 1.11242 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.11243 +$as_echo_n "checking for $ac_word... " >&6; }
 1.11244 +if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
 1.11245 +  $as_echo_n "(cached) " >&6
 1.11246 +else
 1.11247 +  case $JAVAC_CHECK in
 1.11248 +  [\\/]* | ?:[\\/]*)
 1.11249 +  ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
 1.11250 +  ;;
 1.11251 +  *)
 1.11252 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.11253 +for as_dir in $PATH
 1.11254 +do
 1.11255 +  IFS=$as_save_IFS
 1.11256 +  test -z "$as_dir" && as_dir=.
 1.11257 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.11258 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.11259 +    ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
 1.11260 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.11261 +    break 2
 1.11262 +  fi
 1.11263 +done
 1.11264 +  done
 1.11265 +IFS=$as_save_IFS
 1.11266 +
 1.11267 +  ;;
 1.11268 +esac
 1.11269 +fi
 1.11270 +JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
 1.11271 +if test -n "$JAVAC_CHECK"; then
 1.11272 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
 1.11273 +$as_echo "$JAVAC_CHECK" >&6; }
 1.11274 +else
 1.11275 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.11276 +$as_echo "no" >&6; }
 1.11277 +fi
 1.11278 +
 1.11279 +
 1.11280 +    # Extract the first word of "java", so it can be a program name with args.
 1.11281 +set dummy java; ac_word=$2
 1.11282 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.11283 +$as_echo_n "checking for $ac_word... " >&6; }
 1.11284 +if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
 1.11285 +  $as_echo_n "(cached) " >&6
 1.11286 +else
 1.11287 +  case $JAVA_CHECK in
 1.11288 +  [\\/]* | ?:[\\/]*)
 1.11289 +  ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
 1.11290 +  ;;
 1.11291 +  *)
 1.11292 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.11293 +for as_dir in $PATH
 1.11294 +do
 1.11295 +  IFS=$as_save_IFS
 1.11296 +  test -z "$as_dir" && as_dir=.
 1.11297 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.11298 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.11299 +    ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
 1.11300 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.11301 +    break 2
 1.11302 +  fi
 1.11303 +done
 1.11304 +  done
 1.11305 +IFS=$as_save_IFS
 1.11306 +
 1.11307 +  ;;
 1.11308 +esac
 1.11309 +fi
 1.11310 +JAVA_CHECK=$ac_cv_path_JAVA_CHECK
 1.11311 +if test -n "$JAVA_CHECK"; then
 1.11312 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
 1.11313 +$as_echo "$JAVA_CHECK" >&6; }
 1.11314 +else
 1.11315 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.11316 +$as_echo "no" >&6; }
 1.11317 +fi
 1.11318 +
 1.11319 +
 1.11320 +    BINARY="$JAVAC_CHECK"
 1.11321 +    if test "x$JAVAC_CHECK" = x; then
 1.11322 +        BINARY="$JAVA_CHECK"
 1.11323 +    fi
 1.11324 +    if test "x$BINARY" != x; then
 1.11325 +        # So there is a java(c) binary, it might be part of a JDK.
 1.11326 +        # Lets find the JDK/JRE directory by following symbolic links.
 1.11327 +        # Linux/GNU systems often have links from /usr/bin/java to
 1.11328 +        # /etc/alternatives/java to the real JDK binary.
 1.11329 +
 1.11330 +    # Translate long cygdrive or C:\sdfsf path
 1.11331 +    # into a short mixed mode path that has no
 1.11332 +    # spaces in it.
 1.11333 +    tmp="$BINARY"
 1.11334 +    if test "x$BUILD_OS" = "xwindows"; then
 1.11335 +        tmp=`$CYGPATH -u "$BINARY"`
 1.11336 +        tmp=`which "$tmp"`
 1.11337 +        # If file exists with .exe appended, that's the real filename
 1.11338 +        # and cygpath needs that to convert to short style path.
 1.11339 +        if test -f "${tmp}.exe"; then
 1.11340 +           tmp="${tmp}.exe"
 1.11341 +        elif test -f "${tmp}.cmd"; then
 1.11342 +           tmp="${tmp}.cmd"
 1.11343 +        fi
 1.11344 +        # Convert to C:/ mixed style path without spaces.
 1.11345 +         tmp=`$CYGPATH -s -m "$tmp"`
 1.11346 +    fi
 1.11347 +    BINARY="$tmp"
 1.11348 +
 1.11349 +
 1.11350 +    if test "x$BUILD_OS" != xwindows; then
 1.11351 +        # Follow a chain of symbolic links. Use readlink
 1.11352 +        # where it exists, else fall back to horribly
 1.11353 +        # complicated shell code.
 1.11354 +        # Extract the first word of "readlink", so it can be a program name with args.
 1.11355 +set dummy readlink; ac_word=$2
 1.11356 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.11357 +$as_echo_n "checking for $ac_word... " >&6; }
 1.11358 +if test "${ac_cv_path_READLINK+set}" = set; then :
 1.11359 +  $as_echo_n "(cached) " >&6
 1.11360 +else
 1.11361 +  case $READLINK in
 1.11362 +  [\\/]* | ?:[\\/]*)
 1.11363 +  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
 1.11364 +  ;;
 1.11365 +  *)
 1.11366 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.11367 +for as_dir in $PATH
 1.11368 +do
 1.11369 +  IFS=$as_save_IFS
 1.11370 +  test -z "$as_dir" && as_dir=.
 1.11371 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.11372 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.11373 +    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
 1.11374 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.11375 +    break 2
 1.11376 +  fi
 1.11377 +done
 1.11378 +  done
 1.11379 +IFS=$as_save_IFS
 1.11380 +
 1.11381 +  ;;
 1.11382 +esac
 1.11383 +fi
 1.11384 +READLINK=$ac_cv_path_READLINK
 1.11385 +if test -n "$READLINK"; then
 1.11386 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
 1.11387 +$as_echo "$READLINK" >&6; }
 1.11388 +else
 1.11389 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.11390 +$as_echo "no" >&6; }
 1.11391 +fi
 1.11392 +
 1.11393 +
 1.11394 +        if test "x$READLINK_TESTED" != yes; then
 1.11395 +            # On MacOSX there is a readlink tool with a different
 1.11396 +            # purpose than the GNU readlink tool. Check the found readlink.
 1.11397 +            ISGNU=`$READLINK --help 2>&1 | grep GNU`
 1.11398 +            if test "x$ISGNU" = x; then
 1.11399 +                 # A readlink that we do not know how to use.
 1.11400 +                 # Are there other non-GNU readlinks out there?
 1.11401 +                 READLINK_TESTED=yes
 1.11402 +                 READLINK=
 1.11403 +            fi
 1.11404 +        fi
 1.11405 +
 1.11406 +        if test "x$READLINK" != x; then
 1.11407 +            BINARY=`$READLINK -f $BINARY`
 1.11408 +        else
 1.11409 +            STARTDIR=$PWD
 1.11410 +            COUNTER=0
 1.11411 +            DIR=`dirname $BINARY`
 1.11412 +            FIL=`basename $BINARY`
 1.11413 +            while test $COUNTER -lt 20; do
 1.11414 +                ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'`
 1.11415 +                if test "x$ISLINK" == x; then
 1.11416 +                    # This is not a symbolic link! We are done!
 1.11417 +                    break
 1.11418 +                fi
 1.11419 +                # The link might be relative! We have to use cd to travel safely.
 1.11420 +                cd $DIR
 1.11421 +                cd `dirname $ISLINK`
 1.11422 +                DIR=`pwd`
 1.11423 +                FIL=`basename $ISLINK`
 1.11424 +                let COUNTER=COUNTER+1
 1.11425 +            done
 1.11426 +            cd $STARTDIR
 1.11427 +            BINARY=$DIR/$FIL
 1.11428 +        fi
 1.11429 +    fi
 1.11430 +
 1.11431 +        BOOT_JDK=`dirname $BINARY`
 1.11432 +        BOOT_JDK=`cd $BOOT_JDK/..; pwd`
 1.11433 +        if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
 1.11434 +            JAVAC=$BOOT_JDK/bin/javac
 1.11435 +            JAVA=$BOOT_JDK/bin/java
 1.11436 +            BOOT_JDK_FOUND=yes
 1.11437 +        fi
 1.11438 +    fi
 1.11439 +fi
 1.11440 +
 1.11441 +if test "x$BOOT_JDK_FOUND" = xno; then
 1.11442 +    # Try the MacOSX way.
 1.11443 +    if test -x /usr/libexec/java_home; then
 1.11444 +        BOOT_JDK=`/usr/libexec/java_home`
 1.11445 +        if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
 1.11446 +            JAVAC=$BOOT_JDK/bin/javac
 1.11447 +            JAVA=$BOOT_JDK/bin/java
 1.11448 +            BOOT_JDK_FOUND=yes
 1.11449 +        fi
 1.11450 +    fi
 1.11451 +fi
 1.11452 +
 1.11453 +if test "x$BOOT_JDK_FOUND" = xno; then
 1.11454 +    # Extract the first word of "java", so it can be a program name with args.
 1.11455 +set dummy java; ac_word=$2
 1.11456 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.11457 +$as_echo_n "checking for $ac_word... " >&6; }
 1.11458 +if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
 1.11459 +  $as_echo_n "(cached) " >&6
 1.11460 +else
 1.11461 +  case $JAVA_CHECK in
 1.11462 +  [\\/]* | ?:[\\/]*)
 1.11463 +  ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
 1.11464 +  ;;
 1.11465 +  *)
 1.11466 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.11467 +for as_dir in $PATH
 1.11468 +do
 1.11469 +  IFS=$as_save_IFS
 1.11470 +  test -z "$as_dir" && as_dir=.
 1.11471 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.11472 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.11473 +    ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
 1.11474 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.11475 +    break 2
 1.11476 +  fi
 1.11477 +done
 1.11478 +  done
 1.11479 +IFS=$as_save_IFS
 1.11480 +
 1.11481 +  ;;
 1.11482 +esac
 1.11483 +fi
 1.11484 +JAVA_CHECK=$ac_cv_path_JAVA_CHECK
 1.11485 +if test -n "$JAVA_CHECK"; then
 1.11486 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
 1.11487 +$as_echo "$JAVA_CHECK" >&6; }
 1.11488 +else
 1.11489 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.11490 +$as_echo "no" >&6; }
 1.11491 +fi
 1.11492 +
 1.11493 +
 1.11494 +    if test "x$JAVA_CHECK" != x; then
 1.11495 +        # There is a java in the path. But apparently we have not found a javac
 1.11496 +        # in the path, since that would have been tested earlier.
 1.11497 +        if test "x$HOST_OS" = xwindows; then
 1.11498 +            # Now if this is a windows platform. The default installation of a JDK
 1.11499 +            # actually puts the JRE in the path and keeps the JDK out of the path!
 1.11500 +            # Go look in the default installation location.
 1.11501 +            BOOT_JDK=/cygdrive/c/Program\ Files/Java/`ls /cygdrive/c/Program\ Files/Java | grep jdk | sort -r | head --lines 1`
 1.11502 +            if test -d "$BOOT_JDK"; then
 1.11503 +                BOOT_JDK_FOUND=yes
 1.11504 +            fi
 1.11505 +        fi
 1.11506 +        if test "x$BOOT_JDK_FOUND" = xno; then
 1.11507 +            help_on_build_dependency openjdk
 1.11508 +            as_fn_error $? "Found a JRE, not not a JDK! Please remove the JRE from your path and put a JDK there instead. $HELP_MSG" "$LINENO" 5
 1.11509 +        fi
 1.11510 +    else
 1.11511 +        help_on_build_dependency openjdk
 1.11512 +        as_fn_error $? "Could not find a JDK. $HELP_MSG" "$LINENO" 5
 1.11513 +    fi
 1.11514 +fi
 1.11515 +
 1.11516 +
 1.11517 +    if test "x$BUILD_OS" = "xwindows"; then
 1.11518 +        # Extract the first word of "cygpath", so it can be a program name with args.
 1.11519 +set dummy cygpath; ac_word=$2
 1.11520 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1.11521 +$as_echo_n "checking for $ac_word... " >&6; }
 1.11522 +if test "${ac_cv_path_CYGPATH+set}" = set; then :
 1.11523 +  $as_echo_n "(cached) " >&6
 1.11524 +else
 1.11525 +  case $CYGPATH in
 1.11526 +  [\\/]* | ?:[\\/]*)
 1.11527 +  ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
 1.11528 +  ;;
 1.11529 +  *)
 1.11530 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.11531 +for as_dir in $PATH
 1.11532 +do
 1.11533 +  IFS=$as_save_IFS
 1.11534 +  test -z "$as_dir" && as_dir=.
 1.11535 +    for ac_exec_ext in '' $ac_executable_extensions; do
 1.11536 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 1.11537 +    ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
 1.11538 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1.11539 +    break 2
 1.11540 +  fi
 1.11541 +done
 1.11542 +  done
 1.11543 +IFS=$as_save_IFS
 1.11544 +
 1.11545 +  ;;
 1.11546 +esac
 1.11547 +fi
 1.11548 +CYGPATH=$ac_cv_path_CYGPATH
 1.11549 +if test -n "$CYGPATH"; then
 1.11550 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
 1.11551 +$as_echo "$CYGPATH" >&6; }
 1.11552 +else
 1.11553 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.11554 +$as_echo "no" >&6; }
 1.11555 +fi
 1.11556 +
 1.11557 +
 1.11558 +        tmp="$BOOT_JDK"
 1.11559 +        # Convert to C:/ mixed style path without spaces.
 1.11560 +        tmp=`$CYGPATH -s -m "$tmp"`
 1.11561 +        BOOT_JDK="$tmp"
 1.11562 +    fi
 1.11563 +
 1.11564 +
 1.11565 +# Now see if we can find the rt.jar, or its nearest equivalent.
 1.11566 +BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
 1.11567 +
 1.11568 +    # Fail with message the path to the Boot JDK rt.jar (or nearest equivalent) if var BOOT_RTJAR contains a path with no spaces in it.
 1.11569 +    # Unless on Windows, where we can rewrite the path.
 1.11570 +    HAS_SPACE=`echo "$BOOT_RTJAR" | grep " "`
 1.11571 +    if test "x$HAS_SPACE" != x; then
 1.11572 +        if test "x$BUILD_OS" = "xwindows"; then
 1.11573 +            BOOT_RTJAR=`$CYGPATH -s -m -a "$BOOT_RTJAR"`
 1.11574 +            BOOT_RTJAR=`$CYGPATH -u "$BOOT_RTJAR"`
 1.11575 +        else
 1.11576 +            as_fn_error $? "You cannot have spaces in the path to the Boot JDK rt.jar (or nearest equivalent)! \"$BOOT_RTJAR\"" "$LINENO" 5
 1.11577 +        fi
 1.11578 +    fi
 1.11579 +
 1.11580 +
 1.11581 +BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
 1.11582 +
 1.11583 +    # Fail with message the path to the Boot JDK tools.jar (or nearest equivalent) if var BOOT_TOOLSJAR contains a path with no spaces in it.
 1.11584 +    # Unless on Windows, where we can rewrite the path.
 1.11585 +    HAS_SPACE=`echo "$BOOT_TOOLSJAR" | grep " "`
 1.11586 +    if test "x$HAS_SPACE" != x; then
 1.11587 +        if test "x$BUILD_OS" = "xwindows"; then
 1.11588 +            BOOT_TOOLSJAR=`$CYGPATH -s -m -a "$BOOT_TOOLSJAR"`
 1.11589 +            BOOT_TOOLSJAR=`$CYGPATH -u "$BOOT_TOOLSJAR"`
 1.11590 +        else
 1.11591 +            as_fn_error $? "You cannot have spaces in the path to the Boot JDK tools.jar (or nearest equivalent)! \"$BOOT_TOOLSJAR\"" "$LINENO" 5
 1.11592 +        fi
 1.11593 +    fi
 1.11594 +
 1.11595 +
 1.11596 +if test ! -f $BOOT_RTJAR; then
 1.11597 +    # On MacOSX it is called classes.jar
 1.11598 +    BOOT_RTJAR=$BOOT_JDK/../Classes/classes.jar
 1.11599 +    if test ! -f $BOOT_RTJAR; then
 1.11600 +        as_fn_error $? "Cannot find the rt.jar or its equivalent!" "$LINENO" 5
 1.11601 +    fi
 1.11602 +    # Remove the ..
 1.11603 +    BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
 1.11604 +    # The tools.jar is part of classes.jar
 1.11605 +    BOOT_TOOLSJAR="$BOOT_RTJAR"
 1.11606 +fi
 1.11607 +
 1.11608 +
 1.11609 +
 1.11610 +
 1.11611 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
 1.11612 +$as_echo_n "checking for Boot JDK... " >&6; }
 1.11613 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
 1.11614 +$as_echo "$BOOT_JDK" >&6; }
 1.11615 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot rt.jar" >&5
 1.11616 +$as_echo_n "checking for Boot rt.jar... " >&6; }
 1.11617 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_RTJAR" >&5
 1.11618 +$as_echo "$BOOT_RTJAR" >&6; }
 1.11619 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot tools.jar" >&5
 1.11620 +$as_echo_n "checking for Boot tools.jar... " >&6; }
 1.11621 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_TOOLSJAR" >&5
 1.11622 +$as_echo "$BOOT_TOOLSJAR" >&6; }
 1.11623 +
 1.11624 +# Use the java tool from the Boot JDK.
 1.11625 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
 1.11626 +$as_echo_n "checking for java in Boot JDK... " >&6; }
 1.11627 +JAVA=$BOOT_JDK/bin/java
 1.11628 +if test ! -x $JAVA; then
 1.11629 +    as_fn_error $? "Could not find a working java" "$LINENO" 5
 1.11630 +fi
 1.11631 +BOOT_JDK_VERSION=`$JAVA -version 2>&1 | head -n 1`
 1.11632 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes $BOOT_JDK_VERSION" >&5
 1.11633 +$as_echo "yes $BOOT_JDK_VERSION" >&6; }
 1.11634 +
 1.11635 +
 1.11636 +# Extra M4 quote needed to protect [] in grep expression.
 1.11637 +FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
 1.11638 +if test "x$FOUND_VERSION_78" = x; then
 1.11639 +    help_on_build_dependency openjdk
 1.11640 +    as_fn_error $? "Your bootjdk must be version 7 or 8. $HELP_MSG" "$LINENO" 5
 1.11641 +fi
 1.11642 +
 1.11643 +# When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
 1.11644 +BOOT_JDK_SOURCETARGET="-source 7 -target 7"
 1.11645 +
 1.11646 +
 1.11647 +# Use the javac tool from the Boot JDK.
 1.11648 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
 1.11649 +$as_echo_n "checking for javac in Boot JDK... " >&6; }
 1.11650 +JAVAC=$BOOT_JDK/bin/javac
 1.11651 +if test ! -x $JAVAC; then
 1.11652 +    as_fn_error $? "Could not find a working javac" "$LINENO" 5
 1.11653 +fi
 1.11654 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.11655 +$as_echo "yes" >&6; }
 1.11656 +
 1.11657 +
 1.11658 +
 1.11659 +# Use the javac tool from the Boot JDK.
 1.11660 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
 1.11661 +$as_echo_n "checking for javah in Boot JDK... " >&6; }
 1.11662 +JAVAH=$BOOT_JDK/bin/javah
 1.11663 +if test ! -x $JAVAH; then
 1.11664 +    as_fn_error $? "Could not find a working javah" "$LINENO" 5
 1.11665 +fi
 1.11666 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.11667 +$as_echo "yes" >&6; }
 1.11668 +
 1.11669 +
 1.11670 +# Use the jar tool from the Boot JDK.
 1.11671 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
 1.11672 +$as_echo_n "checking for jar in Boot JDK... " >&6; }
 1.11673 +JAR=$BOOT_JDK/bin/jar
 1.11674 +if test ! -x $JAR; then
 1.11675 +    as_fn_error $? "Could not find a working jar" "$LINENO" 5
 1.11676 +fi
 1.11677 +
 1.11678 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.11679 +$as_echo "yes" >&6; }
 1.11680 +
 1.11681 +# Use the rmic tool from the Boot JDK.
 1.11682 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
 1.11683 +$as_echo_n "checking for rmic in Boot JDK... " >&6; }
 1.11684 +RMIC=$BOOT_JDK/bin/rmic
 1.11685 +if test ! -x $RMIC; then
 1.11686 +    as_fn_error $? "Could not find a working rmic" "$LINENO" 5
 1.11687 +fi
 1.11688 +
 1.11689 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.11690 +$as_echo "yes" >&6; }
 1.11691 +
 1.11692 +###############################################################################
 1.11693 +#
 1.11694 +# Pickup additional source for a component from outside of the source root
 1.11695 +# or override source for a component.
 1.11696 +#
 1.11697 +
 1.11698 +# Check whether --with-add-source-root was given.
 1.11699 +if test "${with_add_source_root+set}" = set; then :
 1.11700 +  withval=$with_add_source_root;
 1.11701 +fi
 1.11702 +
 1.11703 +
 1.11704 +
 1.11705 +# Check whether --with-override-source-root was given.
 1.11706 +if test "${with_override_source_root+set}" = set; then :
 1.11707 +  withval=$with_override_source_root;
 1.11708 +fi
 1.11709 +
 1.11710 +
 1.11711 +
 1.11712 +# Check whether --with-adds-and-overrides was given.
 1.11713 +if test "${with_adds_and_overrides+set}" = set; then :
 1.11714 +  withval=$with_adds_and_overrides;
 1.11715 +fi
 1.11716 +
 1.11717 +
 1.11718 +if test "x$with_adds_and_overrides" != x; then
 1.11719 +    with_add_source_root="$with_adds_and_overrides/adds"
 1.11720 +    with_override_source_root="$with_adds_and_overrides/overrides"
 1.11721 +fi
 1.11722 +
 1.11723 +if test "x$with_add_source_root" != x; then
 1.11724 +    if ! test -d $with_add_source_root; then
 1.11725 +       as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
 1.11726 +    fi
 1.11727 +    CURDIR="$PWD"
 1.11728 +    cd "$with_add_source_root"
 1.11729 +    ADD_SRC_ROOT="`pwd`"
 1.11730 +    cd "$CURDIR"
 1.11731 +    # Verify that the addon source root does not have any root makefiles.
 1.11732 +    # If it does, then it is usually an error, prevent this.
 1.11733 +    if test -f $with_add_source_root/langtools/makefiles/Makefile || \
 1.11734 +       test -f $with_add_source_root/langtools/make/Makefile; then
 1.11735 +        as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5
 1.11736 +    fi
 1.11737 +    if test -f $with_add_source_root/corba/makefiles/Makefile || \
 1.11738 +       test -f $with_add_source_root/corba/make/Makefile; then
 1.11739 +        as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5
 1.11740 +    fi
 1.11741 +    if test -f $with_add_source_root/jaxp/makefiles/Makefile || \
 1.11742 +       test -f $with_add_source_root/jaxp/make/Makefile; then
 1.11743 +        as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5
 1.11744 +    fi
 1.11745 +    if test -f $with_add_source_root/jaxws/makefiles/Makefile || \
 1.11746 +       test -f $with_add_source_root/jaxws/make/Makefile; then
 1.11747 +        as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5
 1.11748 +    fi
 1.11749 +    if test -f $with_add_source_root/hotspot/makefiles/Makefile || \
 1.11750 +       test -f $with_add_source_root/hotspot/make/Makefile; then
 1.11751 +        as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5
 1.11752 +    fi
 1.11753 +    if test -f $with_add_source_root/jdk/makefiles/Makefile || \
 1.11754 +       test -f $with_add_source_root/jdk/make/Makefile; then
 1.11755 +        as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5
 1.11756 +    fi
 1.11757 +fi
 1.11758 +
 1.11759 +
 1.11760 +if test "x$with_override_source_root" != x; then
 1.11761 +    if ! test -d $with_override_source_root; then
 1.11762 +       as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5
 1.11763 +    fi
 1.11764 +    CURDIR="$PWD"
 1.11765 +    cd "$with_override_source_root"
 1.11766 +    OVERRIDE_SRC_ROOT="`pwd`"
 1.11767 +    cd "$CURDIR"
 1.11768 +    if test -f $with_override_source_root/langtools/makefiles/Makefile || \
 1.11769 +       test -f $with_override_source_root/langtools/make/Makefile; then
 1.11770 +        as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5
 1.11771 +    fi
 1.11772 +    if test -f $with_override_source_root/corba/makefiles/Makefile || \
 1.11773 +       test -f $with_override_source_root/corba/make/Makefile; then
 1.11774 +        as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5
 1.11775 +    fi
 1.11776 +    if test -f $with_override_source_root/jaxp/makefiles/Makefile || \
 1.11777 +       test -f $with_override_source_root/jaxp/make/Makefile; then
 1.11778 +        as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5
 1.11779 +    fi
 1.11780 +    if test -f $with_override_source_root/jaxws/makefiles/Makefile || \
 1.11781 +       test -f $with_override_source_root/jaxws/make/Makefile; then
 1.11782 +        as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5
 1.11783 +    fi
 1.11784 +    if test -f $with_override_source_root/hotspot/makefiles/Makefile || \
 1.11785 +       test -f $with_override_source_root/hotspot/make/Makefile; then
 1.11786 +        as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5
 1.11787 +    fi
 1.11788 +    if test -f $with_override_source_root/jdk/makefiles/Makefile || \
 1.11789 +       test -f $with_override_source_root/jdk/make/Makefile; then
 1.11790 +        as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5
 1.11791 +    fi
 1.11792 +fi
 1.11793 +
 1.11794 +
 1.11795 +###############################################################################
 1.11796 +#
 1.11797 +# Override a repo completely, this is used for example when you have 3 small
 1.11798 +# development sandboxes of the langtools sources and want to avoid having 3 full
 1.11799 +# OpenJDK sources checked out on disk.
 1.11800 +#
 1.11801 +# Assuming that the 3 langtools sandboxes are located here:
 1.11802 +# /home/fredrik/sandbox1/langtools
 1.11803 +# /home/fredrik/sandbox2/langtools
 1.11804 +# /home/fredrik/sandbox3/langtools
 1.11805 +#
 1.11806 +# From the source root you create build subdirs manually:
 1.11807 +#     mkdir -p build1 build2 build3
 1.11808 +# in each build directory run:
 1.11809 +#     (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make)
 1.11810 +#     (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make)
 1.11811 +#     (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make)
 1.11812 +#
 1.11813 +
 1.11814 +
 1.11815 +# Check whether --with-override-langtools was given.
 1.11816 +if test "${with_override_langtools+set}" = set; then :
 1.11817 +  withval=$with_override_langtools;
 1.11818 +fi
 1.11819 +
 1.11820 +
 1.11821 +
 1.11822 +# Check whether --with-override-corba was given.
 1.11823 +if test "${with_override_corba+set}" = set; then :
 1.11824 +  withval=$with_override_corba;
 1.11825 +fi
 1.11826 +
 1.11827 +
 1.11828 +
 1.11829 +# Check whether --with-override-jaxp was given.
 1.11830 +if test "${with_override_jaxp+set}" = set; then :
 1.11831 +  withval=$with_override_jaxp;
 1.11832 +fi
 1.11833 +
 1.11834 +
 1.11835 +
 1.11836 +# Check whether --with-override-jaxws was given.
 1.11837 +if test "${with_override_jaxws+set}" = set; then :
 1.11838 +  withval=$with_override_jaxws;
 1.11839 +fi
 1.11840 +
 1.11841 +
 1.11842 +
 1.11843 +# Check whether --with-override-hotspot was given.
 1.11844 +if test "${with_override_hotspot+set}" = set; then :
 1.11845 +  withval=$with_override_hotspot;
 1.11846 +fi
 1.11847 +
 1.11848 +
 1.11849 +
 1.11850 +# Check whether --with-override-jdk was given.
 1.11851 +if test "${with_override_jdk+set}" = set; then :
 1.11852 +  withval=$with_override_jdk;
 1.11853 +fi
 1.11854 +
 1.11855 +
 1.11856 +if test "x$with_override_langtools" != x; then
 1.11857 +    CURDIR="$PWD"
 1.11858 +    cd "$with_override_langtools"
 1.11859 +    LANGTOOLS_TOPDIR="`pwd`"
 1.11860 +    cd "$CURDIR"
 1.11861 +    if ! test -f $LANGTOOLS_TOPDIR/makefiles/Makefile; then
 1.11862 +        as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5
 1.11863 +    fi
 1.11864 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5
 1.11865 +$as_echo_n "checking if langtools should be overridden... " >&6; }
 1.11866 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5
 1.11867 +$as_echo "yes with $LANGTOOLS_TOPDIR" >&6; }
 1.11868 +fi
 1.11869 +if test "x$with_override_corba" != x; then
 1.11870 +    CURDIR="$PWD"
 1.11871 +    cd "$with_override_corba"
 1.11872 +    CORBA_TOPDIR="`pwd`"
 1.11873 +    cd "$CURDIR"
 1.11874 +    if ! test -f $CORBA_TOPDIR/makefiles/Makefile; then
 1.11875 +        as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5
 1.11876 +    fi
 1.11877 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5
 1.11878 +$as_echo_n "checking if corba should be overridden... " >&6; }
 1.11879 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5
 1.11880 +$as_echo "yes with $CORBA_TOPDIR" >&6; }
 1.11881 +fi
 1.11882 +if test "x$with_override_jaxp" != x; then
 1.11883 +    CURDIR="$PWD"
 1.11884 +    cd "$with_override_jaxp"
 1.11885 +    JAXP_TOPDIR="`pwd`"
 1.11886 +    cd "$CURDIR"
 1.11887 +    if ! test -f $JAXP_TOPDIR/makefiles/Makefile; then
 1.11888 +        as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5
 1.11889 +    fi
 1.11890 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5
 1.11891 +$as_echo_n "checking if jaxp should be overridden... " >&6; }
 1.11892 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5
 1.11893 +$as_echo "yes with $JAXP_TOPDIR" >&6; }
 1.11894 +fi
 1.11895 +if test "x$with_override_jaxws" != x; then
 1.11896 +    CURDIR="$PWD"
 1.11897 +    cd "$with_override_jaxws"
 1.11898 +    JAXWS_TOPDIR="`pwd`"
 1.11899 +    cd "$CURDIR"
 1.11900 +    if ! test -f $JAXWS_TOPDIR/makefiles/Makefile; then
 1.11901 +        as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5
 1.11902 +    fi
 1.11903 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5
 1.11904 +$as_echo_n "checking if jaxws should be overridden... " >&6; }
 1.11905 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5
 1.11906 +$as_echo "yes with $JAXWS_TOPDIR" >&6; }
 1.11907 +fi
 1.11908 +if test "x$with_override_hotspot" != x; then
 1.11909 +    CURDIR="$PWD"
 1.11910 +    cd "$with_override_hotspot"
 1.11911 +    HOTSPOT_TOPDIR="`pwd`"
 1.11912 +    cd "$CURDIR"
 1.11913 +    if ! test -f $HOTSPOT_TOPDIR/make/Makefile && \
 1.11914 +       ! test -f $HOTSPOT_TOPDIR/makefiles/Makefile; then
 1.11915 +        as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5
 1.11916 +    fi
 1.11917 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5
 1.11918 +$as_echo_n "checking if hotspot should be overridden... " >&6; }
 1.11919 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5
 1.11920 +$as_echo "yes with $HOTSPOT_TOPDIR" >&6; }
 1.11921 +fi
 1.11922 +if test "x$with_override_jdk" != x; then
 1.11923 +    CURDIR="$PWD"
 1.11924 +    cd "$with_override_jdk"
 1.11925 +    JDK_TOPDIR="`pwd`"
 1.11926 +    cd "$CURDIR"
 1.11927 +    if ! test -f $JDK_TOPDIR/makefiles/Makefile; then
 1.11928 +        as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5
 1.11929 +    fi
 1.11930 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5
 1.11931 +$as_echo_n "checking if JDK should be overridden... " >&6; }
 1.11932 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5
 1.11933 +$as_echo "yes with $JDK_TOPDIR" >&6; }
 1.11934 +fi
 1.11935 +
 1.11936 +###############################################################################
 1.11937 +#
 1.11938 +# Specify options for anything that is run with the Boot JDK.
 1.11939 +#
 1.11940 +
 1.11941 +# Check whether --with-boot-jdk-jvmargs was given.
 1.11942 +if test "${with_boot_jdk_jvmargs+set}" = set; then :
 1.11943 +  withval=$with_boot_jdk_jvmargs;
 1.11944 +fi
 1.11945 +
 1.11946 +
 1.11947 +if test "x$with_boot_jdk_jvmargs" = x; then
 1.11948 +    # Not all JVM:s accept the same arguments on the command line.
 1.11949 +    # OpenJDK specific increase in thread stack for JDK build,
 1.11950 +    # well more specifically, when running javac.
 1.11951 +    if test "x$BUILD_NUM_BITS" = x32; then
 1.11952 +       STACK_SIZE=768
 1.11953 +    else
 1.11954 +       # Running Javac on a JVM on a 64-bit machine, the stack takes more space
 1.11955 +       # since 64-bit pointers are pushed on the stach. Apparently, we need
 1.11956 +       # to increase the stack space when javacing the JDK....
 1.11957 +       STACK_SIZE=1536
 1.11958 +    fi
 1.11959 +
 1.11960 +    # Minimum amount of heap memory.
 1.11961 +
 1.11962 +    # Test if -Xms64M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.11963 +    # If so, then append -Xms64M to boot_jdk_jvmargs
 1.11964 +    FOUND_WARN=`$JAVA -Xms64M -version 2>&1 | grep -i warn`
 1.11965 +    FOUND_VERSION=`$JAVA -Xms64M -version 2>&1 | grep " version \""`
 1.11966 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.11967 +        boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M"
 1.11968 +    fi
 1.11969 +
 1.11970 +    if test "x$HOST_OS" = "xmacosx"; then
 1.11971 +        # Why does macosx need more heap? Its the huge JDK batch.
 1.11972 +
 1.11973 +    # Test if -Xmx1600M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.11974 +    # If so, then append -Xmx1600M to boot_jdk_jvmargs
 1.11975 +    FOUND_WARN=`$JAVA -Xmx1600M -version 2>&1 | grep -i warn`
 1.11976 +    FOUND_VERSION=`$JAVA -Xmx1600M -version 2>&1 | grep " version \""`
 1.11977 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.11978 +        boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M"
 1.11979 +    fi
 1.11980 +
 1.11981 +    else
 1.11982 +
 1.11983 +    # Test if -Xmx1100M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.11984 +    # If so, then append -Xmx1100M to boot_jdk_jvmargs
 1.11985 +    FOUND_WARN=`$JAVA -Xmx1100M -version 2>&1 | grep -i warn`
 1.11986 +    FOUND_VERSION=`$JAVA -Xmx1100M -version 2>&1 | grep " version \""`
 1.11987 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.11988 +        boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M"
 1.11989 +    fi
 1.11990 +
 1.11991 +    fi
 1.11992 +    # When is adding -client something that speeds up the JVM?
 1.11993 +    # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA])
 1.11994 +
 1.11995 +    # Test if -XX:PermSize=32m is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.11996 +    # If so, then append -XX:PermSize=32m to boot_jdk_jvmargs
 1.11997 +    FOUND_WARN=`$JAVA -XX:PermSize=32m -version 2>&1 | grep -i warn`
 1.11998 +    FOUND_VERSION=`$JAVA -XX:PermSize=32m -version 2>&1 | grep " version \""`
 1.11999 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12000 +        boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:PermSize=32m"
 1.12001 +    fi
 1.12002 +
 1.12003 +
 1.12004 +    # Test if -XX:MaxPermSize=160m is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.12005 +    # If so, then append -XX:MaxPermSize=160m to boot_jdk_jvmargs
 1.12006 +    FOUND_WARN=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep -i warn`
 1.12007 +    FOUND_VERSION=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep " version \""`
 1.12008 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12009 +        boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:MaxPermSize=160m"
 1.12010 +    fi
 1.12011 +
 1.12012 +
 1.12013 +    # Test if -XX:ThreadStackSize=$STACK_SIZE is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.12014 +    # If so, then append -XX:ThreadStackSize=$STACK_SIZE to boot_jdk_jvmargs
 1.12015 +    FOUND_WARN=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep -i warn`
 1.12016 +    FOUND_VERSION=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep " version \""`
 1.12017 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12018 +        boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE"
 1.12019 +    fi
 1.12020 +
 1.12021 +    # Disable special log output when a debug build is used as Boot JDK...
 1.12022 +
 1.12023 +    # Test if -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.12024 +    # If so, then append -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput to boot_jdk_jvmargs
 1.12025 +    FOUND_WARN=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep -i warn`
 1.12026 +    FOUND_VERSION=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep " version \""`
 1.12027 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12028 +        boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
 1.12029 +    fi
 1.12030 +
 1.12031 +fi
 1.12032 +
 1.12033 +BOOT_JDK_JVMARGS=$boot_jdk_jvmargs
 1.12034 +
 1.12035 +
 1.12036 +
 1.12037 +# Check whether --with-server-java was given.
 1.12038 +if test "${with_server_java+set}" = set; then :
 1.12039 +  withval=$with_server_java;
 1.12040 +fi
 1.12041 +
 1.12042 +
 1.12043 +if test "x$with_server_java" != x; then
 1.12044 +    SERVER_JAVA="$with_server_java"
 1.12045 +    FOUND_VERSION=`$SERVER_JAVA -version 2>&1 | grep " version \""`
 1.12046 +    if test "x$FOUND_VERSION" = x; then
 1.12047 +        as_fn_error $? "Could not execute server java: $SERVER_JAVA" "$LINENO" 5
 1.12048 +    fi
 1.12049 +else
 1.12050 +    SERVER_JAVA=""
 1.12051 +    # Hotspot specific options.
 1.12052 +
 1.12053 +    # Test if -XX:+UseParallelOldGC is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.12054 +    # If so, then append -XX:+UseParallelOldGC to SERVER_JAVA
 1.12055 +    FOUND_WARN=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep -i warn`
 1.12056 +    FOUND_VERSION=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep " version \""`
 1.12057 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12058 +        SERVER_JAVA="$SERVER_JAVA -XX:+UseParallelOldGC"
 1.12059 +    fi
 1.12060 +
 1.12061 +
 1.12062 +    # Test if -verbosegc is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.12063 +    # If so, then append -verbosegc to SERVER_JAVA
 1.12064 +    FOUND_WARN=`$JAVA -verbosegc -version 2>&1 | grep -i warn`
 1.12065 +    FOUND_VERSION=`$JAVA -verbosegc -version 2>&1 | grep " version \""`
 1.12066 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12067 +        SERVER_JAVA="$SERVER_JAVA -verbosegc"
 1.12068 +    fi
 1.12069 +
 1.12070 +    # JRockit specific options.
 1.12071 +
 1.12072 +    # Test if -Xverbose:gc is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
 1.12073 +    # If so, then append -Xverbose:gc to SERVER_JAVA
 1.12074 +    FOUND_WARN=`$JAVA -Xverbose:gc -version 2>&1 | grep -i warn`
 1.12075 +    FOUND_VERSION=`$JAVA -Xverbose:gc -version 2>&1 | grep " version \""`
 1.12076 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12077 +        SERVER_JAVA="$SERVER_JAVA -Xverbose:gc"
 1.12078 +    fi
 1.12079 +
 1.12080 +    SERVER_JAVA="$JAVA $SERVER_JAVA"
 1.12081 +fi
 1.12082 +
 1.12083 +
 1.12084 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shared server for javac" >&5
 1.12085 +$as_echo_n "checking whether to use shared server for javac... " >&6; }
 1.12086 +# Check whether --enable-javac-server was given.
 1.12087 +if test "${enable_javac_server+set}" = set; then :
 1.12088 +  enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}"
 1.12089 +else
 1.12090 +  ENABLE_JAVAC_SERVER='no'
 1.12091 +fi
 1.12092 +
 1.12093 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5
 1.12094 +$as_echo "$ENABLE_JAVAC_SERVER" >&6; }
 1.12095 +if test "x$ENABLE_JAVAC_SERVER" = xyes; then
 1.12096 +    JAVAC_USE_REMOTE=true
 1.12097 +    JAVAC_SERVERS="$OUTPUT_ROOT/javacservers"
 1.12098 +else
 1.12099 +    JAVAC_USE_REMOTE=false
 1.12100 +    JAVAC_SERVERS=
 1.12101 +fi
 1.12102 +
 1.12103 +
 1.12104 +
 1.12105 +
 1.12106 +# Check whether --with-javac-server-cores was given.
 1.12107 +if test "${with_javac_server_cores+set}" = set; then :
 1.12108 +  withval=$with_javac_server_cores;
 1.12109 +fi
 1.12110 +
 1.12111 +if test "x$with_javac_server_cores" != x; then
 1.12112 +    JAVAC_SERVER_CORES="$with_javac_server_cores"
 1.12113 +else
 1.12114 +    if test "$NUM_CORES" -gt 16; then
 1.12115 +        # We set this arbitrary limit because we want to limit the heap
 1.12116 +        # size of the javac server.
 1.12117 +        # In the future we will make the javac compilers in the server
 1.12118 +        # share more and more state, thus enabling us to use more and
 1.12119 +        # more concurrent threads in the server.
 1.12120 +        JAVAC_SERVER_CORES="16"
 1.12121 +    else
 1.12122 +        JAVAC_SERVER_CORES="$NUM_CORES"
 1.12123 +    fi
 1.12124 +
 1.12125 +    if test "$MEMORY_SIZE" -gt "17000"; then
 1.12126 +        MAX_HEAP_MEM=10000
 1.12127 +
 1.12128 +    # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12129 +    # If so, then append -d64 to SERVER_JAVA
 1.12130 +    FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
 1.12131 +    FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
 1.12132 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12133 +        SERVER_JAVA="$SERVER_JAVA -d64"
 1.12134 +    fi
 1.12135 +
 1.12136 +
 1.12137 +    # Test if -Xms10G -Xmx10G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12138 +    # If so, then append -Xms10G -Xmx10G to SERVER_JAVA
 1.12139 +    FOUND_WARN=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep -i warn`
 1.12140 +    FOUND_VERSION=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep " version \""`
 1.12141 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12142 +        SERVER_JAVA="$SERVER_JAVA -Xms10G -Xmx10G"
 1.12143 +    fi
 1.12144 +
 1.12145 +
 1.12146 +    # Test if -Xmn2G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12147 +    # If so, then append -Xmn2G to SERVER_JAVA
 1.12148 +    FOUND_WARN=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep -i warn`
 1.12149 +    FOUND_VERSION=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep " version \""`
 1.12150 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12151 +        SERVER_JAVA="$SERVER_JAVA -Xmn2G"
 1.12152 +    fi
 1.12153 +
 1.12154 +    elif test "$MEMORY_SIZE" -gt "10000"; then
 1.12155 +        MAX_HEAP_MEM=6000
 1.12156 +
 1.12157 +    # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12158 +    # If so, then append -d64 to SERVER_JAVA
 1.12159 +    FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
 1.12160 +    FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
 1.12161 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12162 +        SERVER_JAVA="$SERVER_JAVA -d64"
 1.12163 +    fi
 1.12164 +
 1.12165 +
 1.12166 +    # Test if -Xms6G -Xmx6G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12167 +    # If so, then append -Xms6G -Xmx6G to SERVER_JAVA
 1.12168 +    FOUND_WARN=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep -i warn`
 1.12169 +    FOUND_VERSION=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep " version \""`
 1.12170 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12171 +        SERVER_JAVA="$SERVER_JAVA -Xms6G -Xmx6G"
 1.12172 +    fi
 1.12173 +
 1.12174 +
 1.12175 +    # Test if -Xmn1G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12176 +    # If so, then append -Xmn1G to SERVER_JAVA
 1.12177 +    FOUND_WARN=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep -i warn`
 1.12178 +    FOUND_VERSION=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep " version \""`
 1.12179 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12180 +        SERVER_JAVA="$SERVER_JAVA -Xmn1G"
 1.12181 +    fi
 1.12182 +
 1.12183 +    elif test "$MEMORY_SIZE" -gt "5000"; then
 1.12184 +        MAX_HEAP_MEM=3000
 1.12185 +
 1.12186 +    # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12187 +    # If so, then append -d64 to SERVER_JAVA
 1.12188 +    FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
 1.12189 +    FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
 1.12190 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12191 +        SERVER_JAVA="$SERVER_JAVA -d64"
 1.12192 +    fi
 1.12193 +
 1.12194 +
 1.12195 +    # Test if -Xms1G -Xmx3G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12196 +    # If so, then append -Xms1G -Xmx3G to SERVER_JAVA
 1.12197 +    FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep -i warn`
 1.12198 +    FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep " version \""`
 1.12199 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12200 +        SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx3G"
 1.12201 +    fi
 1.12202 +
 1.12203 +
 1.12204 +    # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12205 +    # If so, then append -Xmn256M to SERVER_JAVA
 1.12206 +    FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
 1.12207 +    FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
 1.12208 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12209 +        SERVER_JAVA="$SERVER_JAVA -Xmn256M"
 1.12210 +    fi
 1.12211 +
 1.12212 +    elif test "$MEMORY_SIZE" -gt "3800"; then
 1.12213 +        MAX_HEAP_MEM=2500
 1.12214 +
 1.12215 +    # Test if -Xms1G -Xmx2500M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12216 +    # If so, then append -Xms1G -Xmx2500M to SERVER_JAVA
 1.12217 +    FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep -i warn`
 1.12218 +    FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep " version \""`
 1.12219 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12220 +        SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx2500M"
 1.12221 +    fi
 1.12222 +
 1.12223 +
 1.12224 +    # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12225 +    # If so, then append -Xmn256M to SERVER_JAVA
 1.12226 +    FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
 1.12227 +    FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
 1.12228 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12229 +        SERVER_JAVA="$SERVER_JAVA -Xmn256M"
 1.12230 +    fi
 1.12231 +
 1.12232 +    elif test "$MEMORY_SIZE" -gt "1900"; then
 1.12233 +        MAX_HEAP_MEM=1200
 1.12234 +
 1.12235 +    # Test if -Xms700M -Xmx1200M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12236 +    # If so, then append -Xms700M -Xmx1200M to SERVER_JAVA
 1.12237 +    FOUND_WARN=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep -i warn`
 1.12238 +    FOUND_VERSION=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep " version \""`
 1.12239 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12240 +        SERVER_JAVA="$SERVER_JAVA -Xms700M -Xmx1200M"
 1.12241 +    fi
 1.12242 +
 1.12243 +
 1.12244 +    # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12245 +    # If so, then append -Xmn256M to SERVER_JAVA
 1.12246 +    FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
 1.12247 +    FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
 1.12248 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12249 +        SERVER_JAVA="$SERVER_JAVA -Xmn256M"
 1.12250 +    fi
 1.12251 +
 1.12252 +    elif test "$MEMORY_SIZE" -gt "1000"; then
 1.12253 +        MAX_HEAP_MEM=900
 1.12254 +
 1.12255 +    # Test if -Xms400M -Xmx900M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12256 +    # If so, then append -Xms400M -Xmx900M to SERVER_JAVA
 1.12257 +    FOUND_WARN=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep -i warn`
 1.12258 +    FOUND_VERSION=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep " version \""`
 1.12259 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12260 +        SERVER_JAVA="$SERVER_JAVA -Xms400M -Xmx900M"
 1.12261 +    fi
 1.12262 +
 1.12263 +
 1.12264 +    # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12265 +    # If so, then append -Xmn128M to SERVER_JAVA
 1.12266 +    FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn`
 1.12267 +    FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""`
 1.12268 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12269 +        SERVER_JAVA="$SERVER_JAVA -Xmn128M"
 1.12270 +    fi
 1.12271 +
 1.12272 +    else
 1.12273 +        MAX_HEAP_MEM=512
 1.12274 +
 1.12275 +    # Test if -Xms256M -Xmx512M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12276 +    # If so, then append -Xms256M -Xmx512M to SERVER_JAVA
 1.12277 +    FOUND_WARN=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep -i warn`
 1.12278 +    FOUND_VERSION=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep " version \""`
 1.12279 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12280 +        SERVER_JAVA="$SERVER_JAVA -Xms256M -Xmx512M"
 1.12281 +    fi
 1.12282 +
 1.12283 +
 1.12284 +    # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
 1.12285 +    # If so, then append -Xmn128M to SERVER_JAVA
 1.12286 +    FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn`
 1.12287 +    FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""`
 1.12288 +    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
 1.12289 +        SERVER_JAVA="$SERVER_JAVA -Xmn128M"
 1.12290 +    fi
 1.12291 +
 1.12292 +    fi
 1.12293 +
 1.12294 +    MAX_COMPILERS_IN_HEAP=`expr $MAX_HEAP_MEM / 501`
 1.12295 +    if test "$JAVAC_SERVER_CORES" -gt "$MAX_COMPILERS_IN_HEAP"; then
 1.12296 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if number of server cores must be reduced" >&5
 1.12297 +$as_echo_n "checking if number of server cores must be reduced... " >&6; }
 1.12298 +        JAVAC_SERVER_CORES="$MAX_COMPILERS_IN_HEAP"
 1.12299 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&5
 1.12300 +$as_echo "yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&6; }
 1.12301 +    fi
 1.12302 +fi
 1.12303 +
 1.12304 +
 1.12305 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track dependencies between Java packages" >&5
 1.12306 +$as_echo_n "checking whether to track dependencies between Java packages... " >&6; }
 1.12307 +# Check whether --enable-javac-deps was given.
 1.12308 +if test "${enable_javac_deps+set}" = set; then :
 1.12309 +  enableval=$enable_javac_deps; ENABLE_JAVAC_DEPS="${enableval}"
 1.12310 +else
 1.12311 +  ENABLE_JAVAC_DEPS='no'
 1.12312 +fi
 1.12313 +
 1.12314 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_DEPS" >&5
 1.12315 +$as_echo "$ENABLE_JAVAC_DEPS" >&6; }
 1.12316 +if test "x$ENABLE_JAVAC_DEPS" = xyes; then
 1.12317 +    JAVAC_USE_DEPS=true
 1.12318 +else
 1.12319 +    JAVAC_USE_DEPS=false
 1.12320 +fi
 1.12321 +
 1.12322 +
 1.12323 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use multiple cores for javac compilation" >&5
 1.12324 +$as_echo_n "checking whether to use multiple cores for javac compilation... " >&6; }
 1.12325 +# Check whether --enable-javac-multi-core was given.
 1.12326 +if test "${enable_javac_multi_core+set}" = set; then :
 1.12327 +  enableval=$enable_javac_multi_core; ENABLE_JAVAC_MULTICORE="${enableval}"
 1.12328 +else
 1.12329 +  ENABLE_JAVAC_MULTICORE='no'
 1.12330 +fi
 1.12331 +
 1.12332 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_MULTICORE" >&5
 1.12333 +$as_echo "$ENABLE_JAVAC_MULTICORE" >&6; }
 1.12334 +if test "x$ENABLE_JAVAC_MULTICORE" = xyes; then
 1.12335 +    JAVAC_USE_MODE=MULTI_CORE_CONCURRENT
 1.12336 +else
 1.12337 +    JAVAC_USE_MODE=SINGLE_THREADED_BATCH
 1.12338 +    if test "x$ENABLE_JAVAC_DEPS" = xyes; then
 1.12339 +        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking is not supported with single threaded batch compiles of Java source roots. Please add --disable-javac-deps to your configure options." >&5
 1.12340 +$as_echo "$as_me: WARNING: Dependency tracking is not supported with single threaded batch compiles of Java source roots. Please add --disable-javac-deps to your configure options." >&2;}
 1.12341 +        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling dependency tracking for you now." >&5
 1.12342 +$as_echo "$as_me: WARNING: Disabling dependency tracking for you now." >&2;}
 1.12343 +        JAVAC_USE_DEPS=false
 1.12344 +    fi
 1.12345 +    if test "x$ENABLE_JAVAC_SERVER" = xyes; then
 1.12346 +        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The javac server will not be used since single threaded batch compiles are run within their own JVM. Please add --disable-javac-server to your configure options." >&5
 1.12347 +$as_echo "$as_me: WARNING: The javac server will not be used since single threaded batch compiles are run within their own JVM. Please add --disable-javac-server to your configure options." >&2;}
 1.12348 +        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling javac server for you now." >&5
 1.12349 +$as_echo "$as_me: WARNING: Disabling javac server for you now." >&2;}
 1.12350 +        JAVAC_USE_REMOTE=false
 1.12351 +    fi
 1.12352 +fi
 1.12353 +
 1.12354 +
 1.12355 +###############################################################################
 1.12356 +#
 1.12357 +# OS specific settings that we never will need to probe.
 1.12358 +#
 1.12359 +if test "x$HOST_OS" = xlinux; then
 1.12360 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
 1.12361 +$as_echo_n "checking what is not needed on Linux?... " >&6; }
 1.12362 +    PULSE_NOT_NEEDED=yes
 1.12363 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
 1.12364 +$as_echo "pulse" >&6; }
 1.12365 +fi
 1.12366 +
 1.12367 +if test "x$HOST_OS" = xsolaris; then
 1.12368 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
 1.12369 +$as_echo_n "checking what is not needed on Solaris?... " >&6; }
 1.12370 +    ALSA_NOT_NEEDED=yes
 1.12371 +    PULSE_NOT_NEEDED=yes
 1.12372 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
 1.12373 +$as_echo "alsa pulse" >&6; }
 1.12374 +fi
 1.12375 +
 1.12376 +if test "x$HOST_OS" = xwindows; then
 1.12377 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
 1.12378 +$as_echo_n "checking what is not needed on Windows?... " >&6; }
 1.12379 +    CUPS_NOT_NEEDED=yes
 1.12380 +    ALSA_NOT_NEEDED=yes
 1.12381 +    PULSE_NOT_NEEDED=yes
 1.12382 +    X11_NOT_NEEDED=yes
 1.12383 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
 1.12384 +$as_echo "alsa cups pulse x11" >&6; }
 1.12385 +fi
 1.12386 +
 1.12387 +if test "x$HOST_OS" = xmacosx; then
 1.12388 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
 1.12389 +$as_echo_n "checking what is not needed on MacOSX?... " >&6; }
 1.12390 +    ALSA_NOT_NEEDED=yes
 1.12391 +    PULSE_NOT_NEEDED=yes
 1.12392 +    X11_NOT_NEEDED=yes
 1.12393 +    FREETYPE2_NOT_NEEDED=yes
 1.12394 +    # If the java runtime framework is disabled, then we need X11.
 1.12395 +    # This will be adjusted below.
 1.12396 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
 1.12397 +$as_echo "alsa pulse x11" >&6; }
 1.12398 +fi
 1.12399 +
 1.12400 +if test "x$HOST_OS" = xbsd; then
 1.12401 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
 1.12402 +$as_echo_n "checking what is not needed on bsd?... " >&6; }
 1.12403 +    ALSA_NOT_NEEDED=yes
 1.12404 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
 1.12405 +$as_echo "alsa" >&6; }
 1.12406 +fi
 1.12407 +
 1.12408 +###############################################################################
 1.12409 +#
 1.12410 +# Check for MacOSX support for OpenJDK. If this exists, try to build a JVM
 1.12411 +# that uses this API.
 1.12412 +#
 1.12413 +# Check whether --enable-macosx-runtime-support was given.
 1.12414 +if test "${enable_macosx_runtime_support+set}" = set; then :
 1.12415 +  enableval=$enable_macosx_runtime_support; MACOSX_RUNTIME_SUPPORT="${enableval}"
 1.12416 +else
 1.12417 +  MACOSX_RUNTIME_SUPPORT="no"
 1.12418 +fi
 1.12419 +
 1.12420 +
 1.12421 +USE_MACOSX_RUNTIME_SUPPORT=no
 1.12422 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit Java runtime support in the OS" >&5
 1.12423 +$as_echo_n "checking for explicit Java runtime support in the OS... " >&6; }
 1.12424 +if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
 1.12425 +    if test "x$MACOSX_RUNTIME_SUPPORT" != xno; then
 1.12426 +        MACOSX_RUNTIME_SUPPORT=yes
 1.12427 +        USE_MACOSX_RUNTIME_SUPPORT=yes
 1.12428 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, does not need alsa freetype2 pulse and X11" >&5
 1.12429 +$as_echo "yes, does not need alsa freetype2 pulse and X11" >&6; }
 1.12430 +    else
 1.12431 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5
 1.12432 +$as_echo "yes, but explicitly disabled." >&6; }
 1.12433 +    fi
 1.12434 +else
 1.12435 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.12436 +$as_echo "no" >&6; }
 1.12437 +fi
 1.12438 +
 1.12439 +if test "x$HOST_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then
 1.12440 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5
 1.12441 +$as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; }
 1.12442 +    X11_NOT_NEEDED=
 1.12443 +    FREETYPE2_NOT_NEEDED=
 1.12444 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
 1.12445 +$as_echo "alsa pulse" >&6; }
 1.12446 +fi
 1.12447 +
 1.12448 +###############################################################################
 1.12449 +#
 1.12450 +# Check for X Windows
 1.12451 +#
 1.12452 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
 1.12453 +$as_echo_n "checking for X... " >&6; }
 1.12454 +
 1.12455 +
 1.12456 +# Check whether --with-x was given.
 1.12457 +if test "${with_x+set}" = set; then :
 1.12458 +  withval=$with_x;
 1.12459 +fi
 1.12460 +
 1.12461 +# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 1.12462 +if test "x$with_x" = xno; then
 1.12463 +  # The user explicitly disabled X.
 1.12464 +  have_x=disabled
 1.12465 +else
 1.12466 +  case $x_includes,$x_libraries in #(
 1.12467 +    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
 1.12468 +    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
 1.12469 +  $as_echo_n "(cached) " >&6
 1.12470 +else
 1.12471 +  # One or both of the vars are not set, and there is no cached value.
 1.12472 +ac_x_includes=no ac_x_libraries=no
 1.12473 +rm -f -r conftest.dir
 1.12474 +if mkdir conftest.dir; then
 1.12475 +  cd conftest.dir
 1.12476 +  cat >Imakefile <<'_ACEOF'
 1.12477 +incroot:
 1.12478 +	@echo incroot='${INCROOT}'
 1.12479 +usrlibdir:
 1.12480 +	@echo usrlibdir='${USRLIBDIR}'
 1.12481 +libdir:
 1.12482 +	@echo libdir='${LIBDIR}'
 1.12483 +_ACEOF
 1.12484 +  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
 1.12485 +    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 1.12486 +    for ac_var in incroot usrlibdir libdir; do
 1.12487 +      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 1.12488 +    done
 1.12489 +    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 1.12490 +    for ac_extension in a so sl dylib la dll; do
 1.12491 +      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 1.12492 +	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
 1.12493 +	ac_im_usrlibdir=$ac_im_libdir; break
 1.12494 +      fi
 1.12495 +    done
 1.12496 +    # Screen out bogus values from the imake configuration.  They are
 1.12497 +    # bogus both because they are the default anyway, and because
 1.12498 +    # using them would break gcc on systems where it needs fixed includes.
 1.12499 +    case $ac_im_incroot in
 1.12500 +	/usr/include) ac_x_includes= ;;
 1.12501 +	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 1.12502 +    esac
 1.12503 +    case $ac_im_usrlibdir in
 1.12504 +	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
 1.12505 +	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 1.12506 +    esac
 1.12507 +  fi
 1.12508 +  cd ..
 1.12509 +  rm -f -r conftest.dir
 1.12510 +fi
 1.12511 +
 1.12512 +# Standard set of common directories for X headers.
 1.12513 +# Check X11 before X11Rn because it is often a symlink to the current release.
 1.12514 +ac_x_header_dirs='
 1.12515 +/usr/X11/include
 1.12516 +/usr/X11R7/include
 1.12517 +/usr/X11R6/include
 1.12518 +/usr/X11R5/include
 1.12519 +/usr/X11R4/include
 1.12520 +
 1.12521 +/usr/include/X11
 1.12522 +/usr/include/X11R7
 1.12523 +/usr/include/X11R6
 1.12524 +/usr/include/X11R5
 1.12525 +/usr/include/X11R4
 1.12526 +
 1.12527 +/usr/local/X11/include
 1.12528 +/usr/local/X11R7/include
 1.12529 +/usr/local/X11R6/include
 1.12530 +/usr/local/X11R5/include
 1.12531 +/usr/local/X11R4/include
 1.12532 +
 1.12533 +/usr/local/include/X11
 1.12534 +/usr/local/include/X11R7
 1.12535 +/usr/local/include/X11R6
 1.12536 +/usr/local/include/X11R5
 1.12537 +/usr/local/include/X11R4
 1.12538 +
 1.12539 +/usr/X386/include
 1.12540 +/usr/x386/include
 1.12541 +/usr/XFree86/include/X11
 1.12542 +
 1.12543 +/usr/include
 1.12544 +/usr/local/include
 1.12545 +/usr/unsupported/include
 1.12546 +/usr/athena/include
 1.12547 +/usr/local/x11r5/include
 1.12548 +/usr/lpp/Xamples/include
 1.12549 +
 1.12550 +/usr/openwin/include
 1.12551 +/usr/openwin/share/include'
 1.12552 +
 1.12553 +if test "$ac_x_includes" = no; then
 1.12554 +  # Guess where to find include files, by looking for Xlib.h.
 1.12555 +  # First, try using that file with no special directory specified.
 1.12556 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12557 +/* end confdefs.h.  */
 1.12558 +#include <X11/Xlib.h>
 1.12559 +_ACEOF
 1.12560 +if ac_fn_cxx_try_cpp "$LINENO"; then :
 1.12561 +  # We can compile using X headers with no special include directory.
 1.12562 +ac_x_includes=
 1.12563 +else
 1.12564 +  for ac_dir in $ac_x_header_dirs; do
 1.12565 +  if test -r "$ac_dir/X11/Xlib.h"; then
 1.12566 +    ac_x_includes=$ac_dir
 1.12567 +    break
 1.12568 +  fi
 1.12569 +done
 1.12570 +fi
 1.12571 +rm -f conftest.err conftest.i conftest.$ac_ext
 1.12572 +fi # $ac_x_includes = no
 1.12573 +
 1.12574 +if test "$ac_x_libraries" = no; then
 1.12575 +  # Check for the libraries.
 1.12576 +  # See if we find them without any special options.
 1.12577 +  # Don't add to $LIBS permanently.
 1.12578 +  ac_save_LIBS=$LIBS
 1.12579 +  LIBS="-lX11 $LIBS"
 1.12580 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12581 +/* end confdefs.h.  */
 1.12582 +#include <X11/Xlib.h>
 1.12583 +int
 1.12584 +main ()
 1.12585 +{
 1.12586 +XrmInitialize ()
 1.12587 +  ;
 1.12588 +  return 0;
 1.12589 +}
 1.12590 +_ACEOF
 1.12591 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12592 +  LIBS=$ac_save_LIBS
 1.12593 +# We can link X programs with no special library path.
 1.12594 +ac_x_libraries=
 1.12595 +else
 1.12596 +  LIBS=$ac_save_LIBS
 1.12597 +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 1.12598 +do
 1.12599 +  # Don't even attempt the hair of trying to link an X program!
 1.12600 +  for ac_extension in a so sl dylib la dll; do
 1.12601 +    if test -r "$ac_dir/libX11.$ac_extension"; then
 1.12602 +      ac_x_libraries=$ac_dir
 1.12603 +      break 2
 1.12604 +    fi
 1.12605 +  done
 1.12606 +done
 1.12607 +fi
 1.12608 +rm -f core conftest.err conftest.$ac_objext \
 1.12609 +    conftest$ac_exeext conftest.$ac_ext
 1.12610 +fi # $ac_x_libraries = no
 1.12611 +
 1.12612 +case $ac_x_includes,$ac_x_libraries in #(
 1.12613 +  no,* | *,no | *\'*)
 1.12614 +    # Didn't find X, or a directory has "'" in its name.
 1.12615 +    ac_cv_have_x="have_x=no";; #(
 1.12616 +  *)
 1.12617 +    # Record where we found X for the cache.
 1.12618 +    ac_cv_have_x="have_x=yes\
 1.12619 +	ac_x_includes='$ac_x_includes'\
 1.12620 +	ac_x_libraries='$ac_x_libraries'"
 1.12621 +esac
 1.12622 +fi
 1.12623 +;; #(
 1.12624 +    *) have_x=yes;;
 1.12625 +  esac
 1.12626 +  eval "$ac_cv_have_x"
 1.12627 +fi # $with_x != no
 1.12628 +
 1.12629 +if test "$have_x" != yes; then
 1.12630 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
 1.12631 +$as_echo "$have_x" >&6; }
 1.12632 +  no_x=yes
 1.12633 +else
 1.12634 +  # If each of the values was on the command line, it overrides each guess.
 1.12635 +  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 1.12636 +  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 1.12637 +  # Update the cache value to reflect the command line values.
 1.12638 +  ac_cv_have_x="have_x=yes\
 1.12639 +	ac_x_includes='$x_includes'\
 1.12640 +	ac_x_libraries='$x_libraries'"
 1.12641 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
 1.12642 +$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
 1.12643 +fi
 1.12644 +
 1.12645 +if test "$no_x" = yes; then
 1.12646 +  # Not all programs may use this symbol, but it does not hurt to define it.
 1.12647 +
 1.12648 +$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
 1.12649 +
 1.12650 +  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 1.12651 +else
 1.12652 +  if test -n "$x_includes"; then
 1.12653 +    X_CFLAGS="$X_CFLAGS -I$x_includes"
 1.12654 +  fi
 1.12655 +
 1.12656 +  # It would also be nice to do this for all -L options, not just this one.
 1.12657 +  if test -n "$x_libraries"; then
 1.12658 +    X_LIBS="$X_LIBS -L$x_libraries"
 1.12659 +    # For Solaris; some versions of Sun CC require a space after -R and
 1.12660 +    # others require no space.  Words are not sufficient . . . .
 1.12661 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
 1.12662 +$as_echo_n "checking whether -R must be followed by a space... " >&6; }
 1.12663 +    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 1.12664 +    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
 1.12665 +    ac_cxx_werror_flag=yes
 1.12666 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12667 +/* end confdefs.h.  */
 1.12668 +
 1.12669 +int
 1.12670 +main ()
 1.12671 +{
 1.12672 +
 1.12673 +  ;
 1.12674 +  return 0;
 1.12675 +}
 1.12676 +_ACEOF
 1.12677 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12678 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.12679 +$as_echo "no" >&6; }
 1.12680 +       X_LIBS="$X_LIBS -R$x_libraries"
 1.12681 +else
 1.12682 +  LIBS="$ac_xsave_LIBS -R $x_libraries"
 1.12683 +       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12684 +/* end confdefs.h.  */
 1.12685 +
 1.12686 +int
 1.12687 +main ()
 1.12688 +{
 1.12689 +
 1.12690 +  ;
 1.12691 +  return 0;
 1.12692 +}
 1.12693 +_ACEOF
 1.12694 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12695 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.12696 +$as_echo "yes" >&6; }
 1.12697 +	  X_LIBS="$X_LIBS -R $x_libraries"
 1.12698 +else
 1.12699 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
 1.12700 +$as_echo "neither works" >&6; }
 1.12701 +fi
 1.12702 +rm -f core conftest.err conftest.$ac_objext \
 1.12703 +    conftest$ac_exeext conftest.$ac_ext
 1.12704 +fi
 1.12705 +rm -f core conftest.err conftest.$ac_objext \
 1.12706 +    conftest$ac_exeext conftest.$ac_ext
 1.12707 +    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
 1.12708 +    LIBS=$ac_xsave_LIBS
 1.12709 +  fi
 1.12710 +
 1.12711 +  # Check for system-dependent libraries X programs must link with.
 1.12712 +  # Do this before checking for the system-independent R6 libraries
 1.12713 +  # (-lICE), since we may need -lsocket or whatever for X linking.
 1.12714 +
 1.12715 +  if test "$ISC" = yes; then
 1.12716 +    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 1.12717 +  else
 1.12718 +    # Martyn Johnson says this is needed for Ultrix, if the X
 1.12719 +    # libraries were built with DECnet support.  And Karl Berry says
 1.12720 +    # the Alpha needs dnet_stub (dnet does not exist).
 1.12721 +    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 1.12722 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12723 +/* end confdefs.h.  */
 1.12724 +
 1.12725 +/* Override any GCC internal prototype to avoid an error.
 1.12726 +   Use char because int might match the return type of a GCC
 1.12727 +   builtin and then its argument prototype would still apply.  */
 1.12728 +#ifdef __cplusplus
 1.12729 +extern "C"
 1.12730 +#endif
 1.12731 +char XOpenDisplay ();
 1.12732 +int
 1.12733 +main ()
 1.12734 +{
 1.12735 +return XOpenDisplay ();
 1.12736 +  ;
 1.12737 +  return 0;
 1.12738 +}
 1.12739 +_ACEOF
 1.12740 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12741 +
 1.12742 +else
 1.12743 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
 1.12744 +$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
 1.12745 +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
 1.12746 +  $as_echo_n "(cached) " >&6
 1.12747 +else
 1.12748 +  ac_check_lib_save_LIBS=$LIBS
 1.12749 +LIBS="-ldnet  $LIBS"
 1.12750 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12751 +/* end confdefs.h.  */
 1.12752 +
 1.12753 +/* Override any GCC internal prototype to avoid an error.
 1.12754 +   Use char because int might match the return type of a GCC
 1.12755 +   builtin and then its argument prototype would still apply.  */
 1.12756 +#ifdef __cplusplus
 1.12757 +extern "C"
 1.12758 +#endif
 1.12759 +char dnet_ntoa ();
 1.12760 +int
 1.12761 +main ()
 1.12762 +{
 1.12763 +return dnet_ntoa ();
 1.12764 +  ;
 1.12765 +  return 0;
 1.12766 +}
 1.12767 +_ACEOF
 1.12768 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12769 +  ac_cv_lib_dnet_dnet_ntoa=yes
 1.12770 +else
 1.12771 +  ac_cv_lib_dnet_dnet_ntoa=no
 1.12772 +fi
 1.12773 +rm -f core conftest.err conftest.$ac_objext \
 1.12774 +    conftest$ac_exeext conftest.$ac_ext
 1.12775 +LIBS=$ac_check_lib_save_LIBS
 1.12776 +fi
 1.12777 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 1.12778 +$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 1.12779 +if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
 1.12780 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 1.12781 +fi
 1.12782 +
 1.12783 +    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 1.12784 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
 1.12785 +$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
 1.12786 +if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
 1.12787 +  $as_echo_n "(cached) " >&6
 1.12788 +else
 1.12789 +  ac_check_lib_save_LIBS=$LIBS
 1.12790 +LIBS="-ldnet_stub  $LIBS"
 1.12791 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12792 +/* end confdefs.h.  */
 1.12793 +
 1.12794 +/* Override any GCC internal prototype to avoid an error.
 1.12795 +   Use char because int might match the return type of a GCC
 1.12796 +   builtin and then its argument prototype would still apply.  */
 1.12797 +#ifdef __cplusplus
 1.12798 +extern "C"
 1.12799 +#endif
 1.12800 +char dnet_ntoa ();
 1.12801 +int
 1.12802 +main ()
 1.12803 +{
 1.12804 +return dnet_ntoa ();
 1.12805 +  ;
 1.12806 +  return 0;
 1.12807 +}
 1.12808 +_ACEOF
 1.12809 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12810 +  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 1.12811 +else
 1.12812 +  ac_cv_lib_dnet_stub_dnet_ntoa=no
 1.12813 +fi
 1.12814 +rm -f core conftest.err conftest.$ac_objext \
 1.12815 +    conftest$ac_exeext conftest.$ac_ext
 1.12816 +LIBS=$ac_check_lib_save_LIBS
 1.12817 +fi
 1.12818 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 1.12819 +$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 1.12820 +if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
 1.12821 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 1.12822 +fi
 1.12823 +
 1.12824 +    fi
 1.12825 +fi
 1.12826 +rm -f core conftest.err conftest.$ac_objext \
 1.12827 +    conftest$ac_exeext conftest.$ac_ext
 1.12828 +    LIBS="$ac_xsave_LIBS"
 1.12829 +
 1.12830 +    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 1.12831 +    # to get the SysV transport functions.
 1.12832 +    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 1.12833 +    # needs -lnsl.
 1.12834 +    # The nsl library prevents programs from opening the X display
 1.12835 +    # on Irix 5.2, according to T.E. Dickey.
 1.12836 +    # The functions gethostbyname, getservbyname, and inet_addr are
 1.12837 +    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 1.12838 +    ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
 1.12839 +if test "x$ac_cv_func_gethostbyname" = x""yes; then :
 1.12840 +
 1.12841 +fi
 1.12842 +
 1.12843 +    if test $ac_cv_func_gethostbyname = no; then
 1.12844 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
 1.12845 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
 1.12846 +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
 1.12847 +  $as_echo_n "(cached) " >&6
 1.12848 +else
 1.12849 +  ac_check_lib_save_LIBS=$LIBS
 1.12850 +LIBS="-lnsl  $LIBS"
 1.12851 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12852 +/* end confdefs.h.  */
 1.12853 +
 1.12854 +/* Override any GCC internal prototype to avoid an error.
 1.12855 +   Use char because int might match the return type of a GCC
 1.12856 +   builtin and then its argument prototype would still apply.  */
 1.12857 +#ifdef __cplusplus
 1.12858 +extern "C"
 1.12859 +#endif
 1.12860 +char gethostbyname ();
 1.12861 +int
 1.12862 +main ()
 1.12863 +{
 1.12864 +return gethostbyname ();
 1.12865 +  ;
 1.12866 +  return 0;
 1.12867 +}
 1.12868 +_ACEOF
 1.12869 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12870 +  ac_cv_lib_nsl_gethostbyname=yes
 1.12871 +else
 1.12872 +  ac_cv_lib_nsl_gethostbyname=no
 1.12873 +fi
 1.12874 +rm -f core conftest.err conftest.$ac_objext \
 1.12875 +    conftest$ac_exeext conftest.$ac_ext
 1.12876 +LIBS=$ac_check_lib_save_LIBS
 1.12877 +fi
 1.12878 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
 1.12879 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 1.12880 +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
 1.12881 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 1.12882 +fi
 1.12883 +
 1.12884 +      if test $ac_cv_lib_nsl_gethostbyname = no; then
 1.12885 +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
 1.12886 +$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
 1.12887 +if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
 1.12888 +  $as_echo_n "(cached) " >&6
 1.12889 +else
 1.12890 +  ac_check_lib_save_LIBS=$LIBS
 1.12891 +LIBS="-lbsd  $LIBS"
 1.12892 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12893 +/* end confdefs.h.  */
 1.12894 +
 1.12895 +/* Override any GCC internal prototype to avoid an error.
 1.12896 +   Use char because int might match the return type of a GCC
 1.12897 +   builtin and then its argument prototype would still apply.  */
 1.12898 +#ifdef __cplusplus
 1.12899 +extern "C"
 1.12900 +#endif
 1.12901 +char gethostbyname ();
 1.12902 +int
 1.12903 +main ()
 1.12904 +{
 1.12905 +return gethostbyname ();
 1.12906 +  ;
 1.12907 +  return 0;
 1.12908 +}
 1.12909 +_ACEOF
 1.12910 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12911 +  ac_cv_lib_bsd_gethostbyname=yes
 1.12912 +else
 1.12913 +  ac_cv_lib_bsd_gethostbyname=no
 1.12914 +fi
 1.12915 +rm -f core conftest.err conftest.$ac_objext \
 1.12916 +    conftest$ac_exeext conftest.$ac_ext
 1.12917 +LIBS=$ac_check_lib_save_LIBS
 1.12918 +fi
 1.12919 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
 1.12920 +$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
 1.12921 +if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
 1.12922 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 1.12923 +fi
 1.12924 +
 1.12925 +      fi
 1.12926 +    fi
 1.12927 +
 1.12928 +    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 1.12929 +    # socket/setsockopt and other routines are undefined under SCO ODT
 1.12930 +    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 1.12931 +    # on later versions), says Simon Leinen: it contains gethostby*
 1.12932 +    # variants that don't use the name server (or something).  -lsocket
 1.12933 +    # must be given before -lnsl if both are needed.  We assume that
 1.12934 +    # if connect needs -lnsl, so does gethostbyname.
 1.12935 +    ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
 1.12936 +if test "x$ac_cv_func_connect" = x""yes; then :
 1.12937 +
 1.12938 +fi
 1.12939 +
 1.12940 +    if test $ac_cv_func_connect = no; then
 1.12941 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
 1.12942 +$as_echo_n "checking for connect in -lsocket... " >&6; }
 1.12943 +if test "${ac_cv_lib_socket_connect+set}" = set; then :
 1.12944 +  $as_echo_n "(cached) " >&6
 1.12945 +else
 1.12946 +  ac_check_lib_save_LIBS=$LIBS
 1.12947 +LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 1.12948 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12949 +/* end confdefs.h.  */
 1.12950 +
 1.12951 +/* Override any GCC internal prototype to avoid an error.
 1.12952 +   Use char because int might match the return type of a GCC
 1.12953 +   builtin and then its argument prototype would still apply.  */
 1.12954 +#ifdef __cplusplus
 1.12955 +extern "C"
 1.12956 +#endif
 1.12957 +char connect ();
 1.12958 +int
 1.12959 +main ()
 1.12960 +{
 1.12961 +return connect ();
 1.12962 +  ;
 1.12963 +  return 0;
 1.12964 +}
 1.12965 +_ACEOF
 1.12966 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.12967 +  ac_cv_lib_socket_connect=yes
 1.12968 +else
 1.12969 +  ac_cv_lib_socket_connect=no
 1.12970 +fi
 1.12971 +rm -f core conftest.err conftest.$ac_objext \
 1.12972 +    conftest$ac_exeext conftest.$ac_ext
 1.12973 +LIBS=$ac_check_lib_save_LIBS
 1.12974 +fi
 1.12975 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
 1.12976 +$as_echo "$ac_cv_lib_socket_connect" >&6; }
 1.12977 +if test "x$ac_cv_lib_socket_connect" = x""yes; then :
 1.12978 +  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 1.12979 +fi
 1.12980 +
 1.12981 +    fi
 1.12982 +
 1.12983 +    # Guillermo Gomez says -lposix is necessary on A/UX.
 1.12984 +    ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
 1.12985 +if test "x$ac_cv_func_remove" = x""yes; then :
 1.12986 +
 1.12987 +fi
 1.12988 +
 1.12989 +    if test $ac_cv_func_remove = no; then
 1.12990 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
 1.12991 +$as_echo_n "checking for remove in -lposix... " >&6; }
 1.12992 +if test "${ac_cv_lib_posix_remove+set}" = set; then :
 1.12993 +  $as_echo_n "(cached) " >&6
 1.12994 +else
 1.12995 +  ac_check_lib_save_LIBS=$LIBS
 1.12996 +LIBS="-lposix  $LIBS"
 1.12997 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.12998 +/* end confdefs.h.  */
 1.12999 +
 1.13000 +/* Override any GCC internal prototype to avoid an error.
 1.13001 +   Use char because int might match the return type of a GCC
 1.13002 +   builtin and then its argument prototype would still apply.  */
 1.13003 +#ifdef __cplusplus
 1.13004 +extern "C"
 1.13005 +#endif
 1.13006 +char remove ();
 1.13007 +int
 1.13008 +main ()
 1.13009 +{
 1.13010 +return remove ();
 1.13011 +  ;
 1.13012 +  return 0;
 1.13013 +}
 1.13014 +_ACEOF
 1.13015 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.13016 +  ac_cv_lib_posix_remove=yes
 1.13017 +else
 1.13018 +  ac_cv_lib_posix_remove=no
 1.13019 +fi
 1.13020 +rm -f core conftest.err conftest.$ac_objext \
 1.13021 +    conftest$ac_exeext conftest.$ac_ext
 1.13022 +LIBS=$ac_check_lib_save_LIBS
 1.13023 +fi
 1.13024 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
 1.13025 +$as_echo "$ac_cv_lib_posix_remove" >&6; }
 1.13026 +if test "x$ac_cv_lib_posix_remove" = x""yes; then :
 1.13027 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 1.13028 +fi
 1.13029 +
 1.13030 +    fi
 1.13031 +
 1.13032 +    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 1.13033 +    ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
 1.13034 +if test "x$ac_cv_func_shmat" = x""yes; then :
 1.13035 +
 1.13036 +fi
 1.13037 +
 1.13038 +    if test $ac_cv_func_shmat = no; then
 1.13039 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
 1.13040 +$as_echo_n "checking for shmat in -lipc... " >&6; }
 1.13041 +if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
 1.13042 +  $as_echo_n "(cached) " >&6
 1.13043 +else
 1.13044 +  ac_check_lib_save_LIBS=$LIBS
 1.13045 +LIBS="-lipc  $LIBS"
 1.13046 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.13047 +/* end confdefs.h.  */
 1.13048 +
 1.13049 +/* Override any GCC internal prototype to avoid an error.
 1.13050 +   Use char because int might match the return type of a GCC
 1.13051 +   builtin and then its argument prototype would still apply.  */
 1.13052 +#ifdef __cplusplus
 1.13053 +extern "C"
 1.13054 +#endif
 1.13055 +char shmat ();
 1.13056 +int
 1.13057 +main ()
 1.13058 +{
 1.13059 +return shmat ();
 1.13060 +  ;
 1.13061 +  return 0;
 1.13062 +}
 1.13063 +_ACEOF
 1.13064 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.13065 +  ac_cv_lib_ipc_shmat=yes
 1.13066 +else
 1.13067 +  ac_cv_lib_ipc_shmat=no
 1.13068 +fi
 1.13069 +rm -f core conftest.err conftest.$ac_objext \
 1.13070 +    conftest$ac_exeext conftest.$ac_ext
 1.13071 +LIBS=$ac_check_lib_save_LIBS
 1.13072 +fi
 1.13073 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
 1.13074 +$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
 1.13075 +if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
 1.13076 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 1.13077 +fi
 1.13078 +
 1.13079 +    fi
 1.13080 +  fi
 1.13081 +
 1.13082 +  # Check for libraries that X11R6 Xt/Xaw programs need.
 1.13083 +  ac_save_LDFLAGS=$LDFLAGS
 1.13084 +  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 1.13085 +  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 1.13086 +  # check for ICE first), but we must link in the order -lSM -lICE or
 1.13087 +  # we get undefined symbols.  So assume we have SM if we have ICE.
 1.13088 +  # These have to be linked with before -lX11, unlike the other
 1.13089 +  # libraries we check for below, so use a different variable.
 1.13090 +  # John Interrante, Karl Berry
 1.13091 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
 1.13092 +$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
 1.13093 +if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
 1.13094 +  $as_echo_n "(cached) " >&6
 1.13095 +else
 1.13096 +  ac_check_lib_save_LIBS=$LIBS
 1.13097 +LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 1.13098 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.13099 +/* end confdefs.h.  */
 1.13100 +
 1.13101 +/* Override any GCC internal prototype to avoid an error.
 1.13102 +   Use char because int might match the return type of a GCC
 1.13103 +   builtin and then its argument prototype would still apply.  */
 1.13104 +#ifdef __cplusplus
 1.13105 +extern "C"
 1.13106 +#endif
 1.13107 +char IceConnectionNumber ();
 1.13108 +int
 1.13109 +main ()
 1.13110 +{
 1.13111 +return IceConnectionNumber ();
 1.13112 +  ;
 1.13113 +  return 0;
 1.13114 +}
 1.13115 +_ACEOF
 1.13116 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.13117 +  ac_cv_lib_ICE_IceConnectionNumber=yes
 1.13118 +else
 1.13119 +  ac_cv_lib_ICE_IceConnectionNumber=no
 1.13120 +fi
 1.13121 +rm -f core conftest.err conftest.$ac_objext \
 1.13122 +    conftest$ac_exeext conftest.$ac_ext
 1.13123 +LIBS=$ac_check_lib_save_LIBS
 1.13124 +fi
 1.13125 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 1.13126 +$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 1.13127 +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
 1.13128 +  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 1.13129 +fi
 1.13130 +
 1.13131 +  LDFLAGS=$ac_save_LDFLAGS
 1.13132 +
 1.13133 +fi
 1.13134 +
 1.13135 +
 1.13136 +if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
 1.13137 +    help_on_build_dependency x11
 1.13138 +    as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
 1.13139 +fi
 1.13140 +
 1.13141 +
 1.13142 +
 1.13143 +
 1.13144 +# Some of the old makefiles require a setting of OPENWIN_HOME
 1.13145 +# Since the X11R6 directory has disappeared on later Linuxes,
 1.13146 +# we need to probe for it.
 1.13147 +if test "x$HOST_OS" = xlinux; then
 1.13148 +    if test -d "$SYS_ROOT/usr/X11R6"; then
 1.13149 +        OPENWIN_HOME="$SYS_ROOT/usr/X11R6"
 1.13150 +    fi
 1.13151 +    if test -d "$SYS_ROOT/usr/include/X11"; then
 1.13152 +        OPENWIN_HOME="$SYS_ROOT/usr"
 1.13153 +    fi
 1.13154 +fi
 1.13155 +if test "x$HOST_OS" = xsolaris; then
 1.13156 +    OPENWIN_HOME="/usr/openwin"
 1.13157 +fi
 1.13158 +
 1.13159 +
 1.13160 +ac_ext=c
 1.13161 +ac_cpp='$CPP $CPPFLAGS'
 1.13162 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1.13163 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1.13164 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 1.13165 +
 1.13166 +OLD_CFLAGS="$CFLAGS"
 1.13167 +CFLAGS="$CFLAGS $X_CFLAGS"
 1.13168 +
 1.13169 +
 1.13170 +for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h
 1.13171 +do :
 1.13172 +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 1.13173 +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 1.13174 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 1.13175 +  cat >>confdefs.h <<_ACEOF
 1.13176 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 1.13177 +_ACEOF
 1.13178 + X11_A_OK=yes
 1.13179 +else
 1.13180 +  X11_A_OK=no
 1.13181 +fi
 1.13182 +
 1.13183 +done
 1.13184 +
 1.13185 +CFLAGS="$OLD_CFLAGS"
 1.13186 +ac_ext=cpp
 1.13187 +ac_cpp='$CXXCPP $CPPFLAGS'
 1.13188 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1.13189 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1.13190 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 1.13191 +
 1.13192 +
 1.13193 +if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
 1.13194 +    help_on_build_dependency x11
 1.13195 +    as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5
 1.13196 +fi
 1.13197 +
 1.13198 +###############################################################################
 1.13199 +#
 1.13200 +# The common unix printing system cups is used to print from java.
 1.13201 +#
 1.13202 +
 1.13203 +# Check whether --with-cups was given.
 1.13204 +if test "${with_cups+set}" = set; then :
 1.13205 +  withval=$with_cups;
 1.13206 +fi
 1.13207 +
 1.13208 +
 1.13209 +# Check whether --with-cups-include was given.
 1.13210 +if test "${with_cups_include+set}" = set; then :
 1.13211 +  withval=$with_cups_include;
 1.13212 +fi
 1.13213 +
 1.13214 +
 1.13215 +# Check whether --with-cups-lib was given.
 1.13216 +if test "${with_cups_lib+set}" = set; then :
 1.13217 +  withval=$with_cups_lib;
 1.13218 +fi
 1.13219 +
 1.13220 +
 1.13221 +if test "x$CUPS_NOT_NEEDED" = xyes; then
 1.13222 +	if test "x$with_cups" != x || test "x$with_cups-include" != x || test "x$with_cups-lib" != x; then
 1.13223 +		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5
 1.13224 +$as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;}
 1.13225 +	fi
 1.13226 +	CUPS_CFLAGS=
 1.13227 +	CUPS_LIBS=
 1.13228 +else
 1.13229 +	CUPS_FOUND=no
 1.13230 +
 1.13231 +	if test "x$with_cups" = xno || test "x$with_cups-include" = xno || test "x$with_cups-lib" = xno; then
 1.13232 +	    as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
 1.13233 +	fi
 1.13234 +
 1.13235 +	if test "x$with_cups" != x; then
 1.13236 +	    CUPS_LIBS="-L$with_cups/lib -lcups"
 1.13237 +	    CUPS_CFLAGS="-I$with_cups/include"
 1.13238 +	    CUPS_FOUND=yes
 1.13239 +	fi
 1.13240 +	if test "x$with_cups-include" != x; then
 1.13241 +	    CUPS_CFLAGS="-I$with_cups-include"
 1.13242 +	    CUPS_FOUND=yes
 1.13243 +	fi
 1.13244 +	if test "x$with_cups-lib" != x; then
 1.13245 +	    CUPS_LIBS="-L$with_cups-lib -lcups"
 1.13246 +	    CUPS_FOUND=yes
 1.13247 +	fi
 1.13248 +	if test "x$CUPS_FOUND" = xno; then
 1.13249 +
 1.13250 +
 1.13251 +    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
 1.13252 +        # Source the builddeps file again, to make sure it uses the latest variables!
 1.13253 +        . $builddepsfile
 1.13254 +        # Look for a host and build machine specific resource!
 1.13255 +        eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
 1.13256 +        if test "x$resource" = x; then
 1.13257 +            # Ok, lets instead look for a host specific resource
 1.13258 +            eval resource=\${builddep_cups_HOST_${rewritten_host_var}}
 1.13259 +        fi
 1.13260 +        if test "x$resource" = x; then
 1.13261 +            # Ok, lets instead look for a build specific resource
 1.13262 +            eval resource=\${builddep_cups_BUILD_${rewritten_build_var}}
 1.13263 +        fi
 1.13264 +        if test "x$resource" = x; then
 1.13265 +            # Ok, lets instead look for a generic resource
 1.13266 +            # (The cups comes from M4 and not the shell, thus no need for eval here.)
 1.13267 +            resource=${builddep_cups}
 1.13268 +        fi
 1.13269 +        if test "x$resource" != x; then
 1.13270 +            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5
 1.13271 +$as_echo "$as_me: Using builddeps $resource for cups" >&6;}
 1.13272 +	    # If the resource in the builddeps.conf file is an existing directory,
 1.13273 +	    # for example /java/linux/cups
 1.13274 +	    if test -d ${resource}; then
 1.13275 +	       depdir=${resource}
 1.13276 +	    else
 1.13277 +
 1.13278 +# cups is for example mymodule
 1.13279 +# $resource is for example libs/general/libmymod_1_2_3.zip
 1.13280 +# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
 1.13281 +# $with_builddeps_dir is for example /localhome/builddeps
 1.13282 +# depdir is the name of the variable into which we store the depdir, eg MYMOD
 1.13283 +# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
 1.13284 +# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
 1.13285 +    filename=`basename $resource`
 1.13286 +    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
 1.13287 +    filebase=${filename%%.*}
 1.13288 +    extension=${filename#*.}
 1.13289 +    installdir=$with_builddeps_dir/$filebase
 1.13290 +    if test ! -f $installdir/$filename.unpacked; then
 1.13291 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5
 1.13292 +$as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;}
 1.13293 +        if test ! -d $installdir; then
 1.13294 +            mkdir -p $installdir
 1.13295 +        fi
 1.13296 +        if test ! -d $installdir; then
 1.13297 +            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
 1.13298 +        fi
 1.13299 +        tmpfile=`mktemp $installdir/cups.XXXXXXXXX`
 1.13300 +        touch $tmpfile
 1.13301 +        if test ! -f $tmpfile; then
 1.13302 +            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
 1.13303 +        fi
 1.13304 +
 1.13305 +    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
 1.13306 +    # $tmpfile is the local file name for the downloaded file.
 1.13307 +    VALID_TOOL=no
 1.13308 +    if test "x$BDEPS_FTP" = xwget; then
 1.13309 +       VALID_TOOL=yes
 1.13310 +       wget -O $tmpfile $with_builddeps_server/$resource
 1.13311 +    fi
 1.13312 +    if test "x$BDEPS_FTP" = xlftp; then
 1.13313 +       VALID_TOOL=yes
 1.13314 +       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
 1.13315 +    fi
 1.13316 +    if test "x$BDEPS_FTP" = xftp; then
 1.13317 +        VALID_TOOL=yes
 1.13318 +        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
 1.13319 +        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
 1.13320 +        FTPUSERPWD=${FTPSERVER%%@*}
 1.13321 +        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
 1.13322 +            FTPUSER=${userpwd%%:*}
 1.13323 +            FTPPWD=${userpwd#*@}
 1.13324 +            FTPSERVER=${FTPSERVER#*@}
 1.13325 +        else
 1.13326 +            FTPUSER=ftp
 1.13327 +            FTPPWD=ftp
 1.13328 +        fi
 1.13329 +        # the "pass" command does not work on some
 1.13330 +        # ftp clients (read ftp.exe) but if it works,
 1.13331 +        # passive mode is better!
 1.13332 +        (\
 1.13333 +            echo "user $FTPUSER $FTPPWD"        ;\
 1.13334 +            echo "pass"                         ;\
 1.13335 +            echo "bin"                          ;\
 1.13336 +            echo "get $FTPPATH $tmpfile"              ;\
 1.13337 +        ) | ftp -in $FTPSERVER
 1.13338 +    fi
 1.13339 +    if test "x$VALID_TOOL" != xyes; then
 1.13340 +       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
 1.13341 +    fi
 1.13342 +
 1.13343 +        mv $tmpfile $installdir/$filename
 1.13344 +        if test ! -s $installdir/$filename; then
 1.13345 +            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
 1.13346 +        fi
 1.13347 +        case "$extension" in
 1.13348 +            zip)  echo "Unzipping $installdir/$filename..."
 1.13349 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
 1.13350 +            ;;
 1.13351 +            tar.gz) echo "Untaring $installdir/$filename..."
 1.13352 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.13353 +            ;;
 1.13354 +            tgz) echo "Untaring $installdir/$filename..."
 1.13355 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.13356 +            ;;
 1.13357 +            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
 1.13358 +            ;;
 1.13359 +        esac
 1.13360 +    fi
 1.13361 +    if test -f $installdir/$filename.unpacked; then
 1.13362 +        depdir=$installdir
 1.13363 +    fi
 1.13364 +
 1.13365 +	    fi
 1.13366 +            # Source the builddeps file again, because in the previous command, the depdir
 1.13367 +            # was updated to point at the current build dependency install directory.
 1.13368 +            . $builddepsfile
 1.13369 +            # Now extract variables from the builddeps.conf files.
 1.13370 +            theroot=${builddep_cups_ROOT}
 1.13371 +            thecflags=${builddep_cups_CFLAGS}
 1.13372 +            thelibs=${builddep_cups_LIBS}
 1.13373 +            if test "x$depdir" = x; then
 1.13374 +                as_fn_error $? "Could not download build dependency cups" "$LINENO" 5
 1.13375 +            fi
 1.13376 +            CUPS=$depdir
 1.13377 +            if test "x$theroot" != x; then
 1.13378 +               CUPS="$theroot"
 1.13379 +            fi
 1.13380 +            if test "x$thecflags" != x; then
 1.13381 +               CUPS_CFLAGS="$thecflags"
 1.13382 +            fi
 1.13383 +            if test "x$thelibs" != x; then
 1.13384 +               CUPS_LIBS="$thelibs"
 1.13385 +            fi
 1.13386 +            CUPS_FOUND=yes
 1.13387 +
 1.13388 +        fi
 1.13389 +
 1.13390 +    fi
 1.13391 +
 1.13392 +	fi
 1.13393 +	if test "x$CUPS_FOUND" = xno; then
 1.13394 +	    # Are the cups headers installed in the default /usr/include location?
 1.13395 +	    for ac_header in cups/cups.h cups/ppd.h
 1.13396 +do :
 1.13397 +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 1.13398 +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 1.13399 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 1.13400 +  cat >>confdefs.h <<_ACEOF
 1.13401 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 1.13402 +_ACEOF
 1.13403 + CUPS_FOUND=yes
 1.13404 +	                      CUPS_CFLAGS=
 1.13405 +	                      CUPS_LIBS="-lcups"
 1.13406 +	                      DEFAULT_CUPS=yes
 1.13407 +fi
 1.13408 +
 1.13409 +done
 1.13410 +
 1.13411 +	fi
 1.13412 +	if test "x$CUPS_FOUND" = xno; then
 1.13413 +	    # Getting nervous now? Lets poke around for standard Solaris third-party
 1.13414 +	    # package installation locations.
 1.13415 +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers and libs" >&5
 1.13416 +$as_echo_n "checking for cups headers and libs... " >&6; }
 1.13417 +	    if test -s /opt/sfw/cups/include/cups/cups.h; then
 1.13418 +	       # An SFW package seems to be installed!
 1.13419 +	       CUPS_FOUND=yes
 1.13420 +	       CUPS_CFLAGS="-I/opt/sfw/cups/include"
 1.13421 +	       CUPS_LIBS="-L/opt/sfw/cups/lib -lcups"
 1.13422 +	    elif test -s /opt/csw/include/cups/cups.h; then
 1.13423 +	       # A CSW package seems to be installed!
 1.13424 +	       CUPS_FOUND=yes
 1.13425 +	       CUPS_CFLAGS="-I/opt/csw/include"
 1.13426 +	       CUPS_LIBS="-L/opt/csw/lib -lcups"
 1.13427 +	    fi
 1.13428 +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
 1.13429 +$as_echo "$CUPS_FOUND" >&6; }
 1.13430 +	fi
 1.13431 +	if test "x$CUPS_FOUND" = xno; then
 1.13432 +	    help_on_build_dependency cups
 1.13433 +	    as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
 1.13434 +	fi
 1.13435 +fi
 1.13436 +
 1.13437 +
 1.13438 +
 1.13439 +
 1.13440 +###############################################################################
 1.13441 +#
 1.13442 +# The ubiquitous freetype2 library is used to render fonts.
 1.13443 +#
 1.13444 +
 1.13445 +# Check whether --with-freetype was given.
 1.13446 +if test "${with_freetype+set}" = set; then :
 1.13447 +  withval=$with_freetype;
 1.13448 +fi
 1.13449 +
 1.13450 +
 1.13451 +# If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
 1.13452 +USING_SYSTEM_FT_LIB=false
 1.13453 +
 1.13454 +if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
 1.13455 +	if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
 1.13456 +		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
 1.13457 +$as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
 1.13458 +	fi
 1.13459 +	FREETYPE2_CFLAGS=
 1.13460 +	FREETYPE2_LIBS=
 1.13461 +        FREETYPE2_LIB_PATH=
 1.13462 +else
 1.13463 +	FREETYPE2_FOUND=no
 1.13464 +
 1.13465 +	if test "x$with_freetype" != x; then
 1.13466 +
 1.13467 +    # Fail with message the path to freetype if var with_freetype contains a path with no spaces in it.
 1.13468 +    # Unless on Windows, where we can rewrite the path.
 1.13469 +    HAS_SPACE=`echo "$with_freetype" | grep " "`
 1.13470 +    if test "x$HAS_SPACE" != x; then
 1.13471 +        if test "x$BUILD_OS" = "xwindows"; then
 1.13472 +            with_freetype=`$CYGPATH -s -m -a "$with_freetype"`
 1.13473 +            with_freetype=`$CYGPATH -u "$with_freetype"`
 1.13474 +        else
 1.13475 +            as_fn_error $? "You cannot have spaces in the path to freetype! \"$with_freetype\"" "$LINENO" 5
 1.13476 +        fi
 1.13477 +    fi
 1.13478 +
 1.13479 +	    FREETYPE2_LIBS="-L$with_freetype/lib -lfreetype"
 1.13480 +            if test "x$HOST_OS" = xwindows; then
 1.13481 +                FREETYPE2_LIBS="$with_freetype/lib/freetype.lib"
 1.13482 +            fi
 1.13483 +            FREETYPE2_LIB_PATH="$with_freetype/lib"
 1.13484 +	    FREETYPE2_CFLAGS="-I$with_freetype/include"
 1.13485 +            if test -s $with_freetype/include/ft2build.h && test -d $with_freetype/include/freetype2/freetype; then
 1.13486 +                FREETYPE2_CFLAGS="-I$with_freetype/include/freetype2 -I$with_freetype/include"
 1.13487 +            fi
 1.13488 +	    FREETYPE2_FOUND=yes
 1.13489 +   	    if test "x$FREETYPE2_FOUND" = xyes; then
 1.13490 +	        # Verify that the directories exist
 1.13491 +                if ! test -d "$with_freetype/lib" || ! test -d "$with_freetype/include"; then
 1.13492 +		   as_fn_error $? "Could not find the expected directories $with_freetype/lib and $with_freetype/include" "$LINENO" 5
 1.13493 +		fi
 1.13494 +	        # List the contents of the lib.
 1.13495 +		FREETYPELIB=`ls $with_freetype/lib/libfreetype.so $with_freetype/lib/freetype.dll 2> /dev/null`
 1.13496 +                if test "x$FREETYPELIB" = x; then
 1.13497 +		   as_fn_error $? "Could not find libfreetype.se nor freetype.dll in $with_freetype/lib" "$LINENO" 5
 1.13498 +		fi
 1.13499 +	        # Check one h-file
 1.13500 +                if ! test -s "$with_freetype/include/ft2build.h"; then
 1.13501 +		   as_fn_error $? "Could not find $with_freetype/include/ft2build.h" "$LINENO" 5
 1.13502 +		fi
 1.13503 +            fi
 1.13504 +        fi
 1.13505 +	if test "x$FREETYPE2_FOUND" = xno; then
 1.13506 +
 1.13507 +
 1.13508 +    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
 1.13509 +        # Source the builddeps file again, to make sure it uses the latest variables!
 1.13510 +        . $builddepsfile
 1.13511 +        # Look for a host and build machine specific resource!
 1.13512 +        eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
 1.13513 +        if test "x$resource" = x; then
 1.13514 +            # Ok, lets instead look for a host specific resource
 1.13515 +            eval resource=\${builddep_freetype2_HOST_${rewritten_host_var}}
 1.13516 +        fi
 1.13517 +        if test "x$resource" = x; then
 1.13518 +            # Ok, lets instead look for a build specific resource
 1.13519 +            eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}}
 1.13520 +        fi
 1.13521 +        if test "x$resource" = x; then
 1.13522 +            # Ok, lets instead look for a generic resource
 1.13523 +            # (The freetype2 comes from M4 and not the shell, thus no need for eval here.)
 1.13524 +            resource=${builddep_freetype2}
 1.13525 +        fi
 1.13526 +        if test "x$resource" != x; then
 1.13527 +            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5
 1.13528 +$as_echo "$as_me: Using builddeps $resource for freetype2" >&6;}
 1.13529 +	    # If the resource in the builddeps.conf file is an existing directory,
 1.13530 +	    # for example /java/linux/cups
 1.13531 +	    if test -d ${resource}; then
 1.13532 +	       depdir=${resource}
 1.13533 +	    else
 1.13534 +
 1.13535 +# freetype2 is for example mymodule
 1.13536 +# $resource is for example libs/general/libmymod_1_2_3.zip
 1.13537 +# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
 1.13538 +# $with_builddeps_dir is for example /localhome/builddeps
 1.13539 +# depdir is the name of the variable into which we store the depdir, eg MYMOD
 1.13540 +# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
 1.13541 +# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
 1.13542 +    filename=`basename $resource`
 1.13543 +    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
 1.13544 +    filebase=${filename%%.*}
 1.13545 +    extension=${filename#*.}
 1.13546 +    installdir=$with_builddeps_dir/$filebase
 1.13547 +    if test ! -f $installdir/$filename.unpacked; then
 1.13548 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5
 1.13549 +$as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;}
 1.13550 +        if test ! -d $installdir; then
 1.13551 +            mkdir -p $installdir
 1.13552 +        fi
 1.13553 +        if test ! -d $installdir; then
 1.13554 +            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
 1.13555 +        fi
 1.13556 +        tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX`
 1.13557 +        touch $tmpfile
 1.13558 +        if test ! -f $tmpfile; then
 1.13559 +            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
 1.13560 +        fi
 1.13561 +
 1.13562 +    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
 1.13563 +    # $tmpfile is the local file name for the downloaded file.
 1.13564 +    VALID_TOOL=no
 1.13565 +    if test "x$BDEPS_FTP" = xwget; then
 1.13566 +       VALID_TOOL=yes
 1.13567 +       wget -O $tmpfile $with_builddeps_server/$resource
 1.13568 +    fi
 1.13569 +    if test "x$BDEPS_FTP" = xlftp; then
 1.13570 +       VALID_TOOL=yes
 1.13571 +       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
 1.13572 +    fi
 1.13573 +    if test "x$BDEPS_FTP" = xftp; then
 1.13574 +        VALID_TOOL=yes
 1.13575 +        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
 1.13576 +        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
 1.13577 +        FTPUSERPWD=${FTPSERVER%%@*}
 1.13578 +        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
 1.13579 +            FTPUSER=${userpwd%%:*}
 1.13580 +            FTPPWD=${userpwd#*@}
 1.13581 +            FTPSERVER=${FTPSERVER#*@}
 1.13582 +        else
 1.13583 +            FTPUSER=ftp
 1.13584 +            FTPPWD=ftp
 1.13585 +        fi
 1.13586 +        # the "pass" command does not work on some
 1.13587 +        # ftp clients (read ftp.exe) but if it works,
 1.13588 +        # passive mode is better!
 1.13589 +        (\
 1.13590 +            echo "user $FTPUSER $FTPPWD"        ;\
 1.13591 +            echo "pass"                         ;\
 1.13592 +            echo "bin"                          ;\
 1.13593 +            echo "get $FTPPATH $tmpfile"              ;\
 1.13594 +        ) | ftp -in $FTPSERVER
 1.13595 +    fi
 1.13596 +    if test "x$VALID_TOOL" != xyes; then
 1.13597 +       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
 1.13598 +    fi
 1.13599 +
 1.13600 +        mv $tmpfile $installdir/$filename
 1.13601 +        if test ! -s $installdir/$filename; then
 1.13602 +            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
 1.13603 +        fi
 1.13604 +        case "$extension" in
 1.13605 +            zip)  echo "Unzipping $installdir/$filename..."
 1.13606 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
 1.13607 +            ;;
 1.13608 +            tar.gz) echo "Untaring $installdir/$filename..."
 1.13609 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.13610 +            ;;
 1.13611 +            tgz) echo "Untaring $installdir/$filename..."
 1.13612 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.13613 +            ;;
 1.13614 +            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
 1.13615 +            ;;
 1.13616 +        esac
 1.13617 +    fi
 1.13618 +    if test -f $installdir/$filename.unpacked; then
 1.13619 +        depdir=$installdir
 1.13620 +    fi
 1.13621 +
 1.13622 +	    fi
 1.13623 +            # Source the builddeps file again, because in the previous command, the depdir
 1.13624 +            # was updated to point at the current build dependency install directory.
 1.13625 +            . $builddepsfile
 1.13626 +            # Now extract variables from the builddeps.conf files.
 1.13627 +            theroot=${builddep_freetype2_ROOT}
 1.13628 +            thecflags=${builddep_freetype2_CFLAGS}
 1.13629 +            thelibs=${builddep_freetype2_LIBS}
 1.13630 +            if test "x$depdir" = x; then
 1.13631 +                as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5
 1.13632 +            fi
 1.13633 +            FREETYPE2=$depdir
 1.13634 +            if test "x$theroot" != x; then
 1.13635 +               FREETYPE2="$theroot"
 1.13636 +            fi
 1.13637 +            if test "x$thecflags" != x; then
 1.13638 +               FREETYPE2_CFLAGS="$thecflags"
 1.13639 +            fi
 1.13640 +            if test "x$thelibs" != x; then
 1.13641 +               FREETYPE2_LIBS="$thelibs"
 1.13642 +            fi
 1.13643 +            FREETYPE2_FOUND=yes
 1.13644 +            else FREETYPE2_FOUND=no
 1.13645 +
 1.13646 +        fi
 1.13647 +        else FREETYPE2_FOUND=no
 1.13648 +
 1.13649 +    fi
 1.13650 +
 1.13651 +            USING_SYSTEM_FT_LIB=true
 1.13652 +	fi
 1.13653 +	if test "x$FREETYPE2_FOUND" = xno; then
 1.13654 +
 1.13655 +pkg_failed=no
 1.13656 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
 1.13657 +$as_echo_n "checking for FREETYPE2... " >&6; }
 1.13658 +
 1.13659 +if test -n "$FREETYPE2_CFLAGS"; then
 1.13660 +    pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
 1.13661 + elif test -n "$PKG_CONFIG"; then
 1.13662 +    if test -n "$PKG_CONFIG" && \
 1.13663 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
 1.13664 +  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
 1.13665 +  ac_status=$?
 1.13666 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1.13667 +  test $ac_status = 0; }; then
 1.13668 +  pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
 1.13669 +else
 1.13670 +  pkg_failed=yes
 1.13671 +fi
 1.13672 + else
 1.13673 +    pkg_failed=untried
 1.13674 +fi
 1.13675 +if test -n "$FREETYPE2_LIBS"; then
 1.13676 +    pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
 1.13677 + elif test -n "$PKG_CONFIG"; then
 1.13678 +    if test -n "$PKG_CONFIG" && \
 1.13679 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
 1.13680 +  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
 1.13681 +  ac_status=$?
 1.13682 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1.13683 +  test $ac_status = 0; }; then
 1.13684 +  pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
 1.13685 +else
 1.13686 +  pkg_failed=yes
 1.13687 +fi
 1.13688 + else
 1.13689 +    pkg_failed=untried
 1.13690 +fi
 1.13691 +
 1.13692 +
 1.13693 +
 1.13694 +if test $pkg_failed = yes; then
 1.13695 +
 1.13696 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 1.13697 +        _pkg_short_errors_supported=yes
 1.13698 +else
 1.13699 +        _pkg_short_errors_supported=no
 1.13700 +fi
 1.13701 +        if test $_pkg_short_errors_supported = yes; then
 1.13702 +	        FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
 1.13703 +        else
 1.13704 +	        FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
 1.13705 +        fi
 1.13706 +	# Put the nasty error message in config.log where it belongs
 1.13707 +	echo "$FREETYPE2_PKG_ERRORS" >&5
 1.13708 +
 1.13709 +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.13710 +$as_echo "no" >&6; }
 1.13711 +                FREETYPE2_FOUND=no
 1.13712 +elif test $pkg_failed = untried; then
 1.13713 +	FREETYPE2_FOUND=no
 1.13714 +else
 1.13715 +	FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
 1.13716 +	FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
 1.13717 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.13718 +$as_echo "yes" >&6; }
 1.13719 +	FREETYPE2_FOUND=yes
 1.13720 +fi
 1.13721 +            USING_SYSTEM_FT_LIB=true
 1.13722 +	fi
 1.13723 +	if test "x$FREETYPE2_FOUND" = xno; then
 1.13724 +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard locations" >&5
 1.13725 +$as_echo_n "checking for freetype in some standard locations... " >&6; }
 1.13726 +
 1.13727 +	    if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then
 1.13728 +	        DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include"
 1.13729 +	        DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype"
 1.13730 +	    fi
 1.13731 +	    if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then
 1.13732 +	        DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2"
 1.13733 +	        DEFAULT_FREETYPE_LIBS="-lfreetype"
 1.13734 +	    fi
 1.13735 +
 1.13736 +	    PREV_CXXCFLAGS="$CXXFLAGS"
 1.13737 +	    PREV_LDFLAGS="$LDFLAGS"
 1.13738 +	    CXXFLAGS="$CXXFLAGS $DEFAULT_FREETYPE_CFLAGS"
 1.13739 +	    LDFLAGS="$LDFLAGS $DEFAULT_FREETYPE_LIBS"
 1.13740 +	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.13741 +/* end confdefs.h.  */
 1.13742 +#include<ft2build.h>
 1.13743 +	                    #include FT_FREETYPE_H
 1.13744 +	                   int main() { return 0; }
 1.13745 +
 1.13746 +_ACEOF
 1.13747 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.13748 +
 1.13749 +	                      # Yes, the default cflags and libs did the trick.
 1.13750 +	                      FREETYPE2_FOUND=yes
 1.13751 +	                      FREETYPE2_CFLAGS="$DEFAULT_FREETYPE_CFLAGS"
 1.13752 +	                      FREETYPE2_LIBS="$DEFAULT_FREETYPE_LIBS"
 1.13753 +
 1.13754 +else
 1.13755 +
 1.13756 +	                      FREETYPE2_FOUND=no
 1.13757 +
 1.13758 +fi
 1.13759 +rm -f core conftest.err conftest.$ac_objext \
 1.13760 +    conftest$ac_exeext conftest.$ac_ext
 1.13761 +            CXXCFLAGS="$PREV_CXXFLAGS"
 1.13762 +	    LDFLAGS="$PREV_LDFLAGS"
 1.13763 +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5
 1.13764 +$as_echo "$FREETYPE2_FOUND" >&6; }
 1.13765 +            USING_SYSTEM_FT_LIB=true
 1.13766 +	fi
 1.13767 +	if test "x$FREETYPE2_FOUND" = xno; then
 1.13768 +		help_on_build_dependency freetype2
 1.13769 +		as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
 1.13770 +	fi
 1.13771 +fi
 1.13772 +
 1.13773 +
 1.13774 +
 1.13775 +
 1.13776 +
 1.13777 +
 1.13778 +###############################################################################
 1.13779 +#
 1.13780 +# Check for alsa headers and libraries. Used on Linux/GNU systems.
 1.13781 +#
 1.13782 +
 1.13783 +# Check whether --with-alsa was given.
 1.13784 +if test "${with_alsa+set}" = set; then :
 1.13785 +  withval=$with_alsa;
 1.13786 +fi
 1.13787 +
 1.13788 +
 1.13789 +# Check whether --with-alsa-include was given.
 1.13790 +if test "${with_alsa_include+set}" = set; then :
 1.13791 +  withval=$with_alsa_include;
 1.13792 +fi
 1.13793 +
 1.13794 +
 1.13795 +# Check whether --with-alsa-lib was given.
 1.13796 +if test "${with_alsa_lib+set}" = set; then :
 1.13797 +  withval=$with_alsa_lib;
 1.13798 +fi
 1.13799 +
 1.13800 +
 1.13801 +if test "x$ALSA_NOT_NEEDED" = xyes; then
 1.13802 +	if test "x$with_alsa" != x || test "x$with_alsa-include" != x || test "x$with_alsa-lib" != x; then
 1.13803 +		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5
 1.13804 +$as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;}
 1.13805 +	fi
 1.13806 +	ALSA_CFLAGS=
 1.13807 +	ALSA_LIBS=
 1.13808 +else
 1.13809 +	ALSA_FOUND=no
 1.13810 +
 1.13811 +	if test "x$with_alsa" = xno || test "x$with_alsa-include" = xno || test "x$with_alsa-lib" = xno; then
 1.13812 +	    as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5
 1.13813 +	fi
 1.13814 +
 1.13815 +	if test "x$with_alsa" != x; then
 1.13816 +	    ALSA_LIBS="-L$with_alsa/lib -lalsa"
 1.13817 +	    ALSA_CFLAGS="-I$with_alsa/include"
 1.13818 +	    ALSA_FOUND=yes
 1.13819 +	fi
 1.13820 +	if test "x$with_alsa-include" != x; then
 1.13821 +	    ALSA_CFLAGS="-I$with_alsa/include"
 1.13822 +	    ALSA_FOUND=yes
 1.13823 +	fi
 1.13824 +	if test "x$with_alsa-lib" != x; then
 1.13825 +	    ALSA_LIBS="-L$with_alsa/lib -lalsa"
 1.13826 +	    ALSA_FOUND=yes
 1.13827 +	fi
 1.13828 +	if test "x$ALSA_FOUND" = xno; then
 1.13829 +
 1.13830 +
 1.13831 +    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
 1.13832 +        # Source the builddeps file again, to make sure it uses the latest variables!
 1.13833 +        . $builddepsfile
 1.13834 +        # Look for a host and build machine specific resource!
 1.13835 +        eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
 1.13836 +        if test "x$resource" = x; then
 1.13837 +            # Ok, lets instead look for a host specific resource
 1.13838 +            eval resource=\${builddep_alsa_HOST_${rewritten_host_var}}
 1.13839 +        fi
 1.13840 +        if test "x$resource" = x; then
 1.13841 +            # Ok, lets instead look for a build specific resource
 1.13842 +            eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}}
 1.13843 +        fi
 1.13844 +        if test "x$resource" = x; then
 1.13845 +            # Ok, lets instead look for a generic resource
 1.13846 +            # (The alsa comes from M4 and not the shell, thus no need for eval here.)
 1.13847 +            resource=${builddep_alsa}
 1.13848 +        fi
 1.13849 +        if test "x$resource" != x; then
 1.13850 +            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5
 1.13851 +$as_echo "$as_me: Using builddeps $resource for alsa" >&6;}
 1.13852 +	    # If the resource in the builddeps.conf file is an existing directory,
 1.13853 +	    # for example /java/linux/cups
 1.13854 +	    if test -d ${resource}; then
 1.13855 +	       depdir=${resource}
 1.13856 +	    else
 1.13857 +
 1.13858 +# alsa is for example mymodule
 1.13859 +# $resource is for example libs/general/libmymod_1_2_3.zip
 1.13860 +# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
 1.13861 +# $with_builddeps_dir is for example /localhome/builddeps
 1.13862 +# depdir is the name of the variable into which we store the depdir, eg MYMOD
 1.13863 +# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
 1.13864 +# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
 1.13865 +    filename=`basename $resource`
 1.13866 +    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
 1.13867 +    filebase=${filename%%.*}
 1.13868 +    extension=${filename#*.}
 1.13869 +    installdir=$with_builddeps_dir/$filebase
 1.13870 +    if test ! -f $installdir/$filename.unpacked; then
 1.13871 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5
 1.13872 +$as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;}
 1.13873 +        if test ! -d $installdir; then
 1.13874 +            mkdir -p $installdir
 1.13875 +        fi
 1.13876 +        if test ! -d $installdir; then
 1.13877 +            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
 1.13878 +        fi
 1.13879 +        tmpfile=`mktemp $installdir/alsa.XXXXXXXXX`
 1.13880 +        touch $tmpfile
 1.13881 +        if test ! -f $tmpfile; then
 1.13882 +            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
 1.13883 +        fi
 1.13884 +
 1.13885 +    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
 1.13886 +    # $tmpfile is the local file name for the downloaded file.
 1.13887 +    VALID_TOOL=no
 1.13888 +    if test "x$BDEPS_FTP" = xwget; then
 1.13889 +       VALID_TOOL=yes
 1.13890 +       wget -O $tmpfile $with_builddeps_server/$resource
 1.13891 +    fi
 1.13892 +    if test "x$BDEPS_FTP" = xlftp; then
 1.13893 +       VALID_TOOL=yes
 1.13894 +       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
 1.13895 +    fi
 1.13896 +    if test "x$BDEPS_FTP" = xftp; then
 1.13897 +        VALID_TOOL=yes
 1.13898 +        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
 1.13899 +        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
 1.13900 +        FTPUSERPWD=${FTPSERVER%%@*}
 1.13901 +        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
 1.13902 +            FTPUSER=${userpwd%%:*}
 1.13903 +            FTPPWD=${userpwd#*@}
 1.13904 +            FTPSERVER=${FTPSERVER#*@}
 1.13905 +        else
 1.13906 +            FTPUSER=ftp
 1.13907 +            FTPPWD=ftp
 1.13908 +        fi
 1.13909 +        # the "pass" command does not work on some
 1.13910 +        # ftp clients (read ftp.exe) but if it works,
 1.13911 +        # passive mode is better!
 1.13912 +        (\
 1.13913 +            echo "user $FTPUSER $FTPPWD"        ;\
 1.13914 +            echo "pass"                         ;\
 1.13915 +            echo "bin"                          ;\
 1.13916 +            echo "get $FTPPATH $tmpfile"              ;\
 1.13917 +        ) | ftp -in $FTPSERVER
 1.13918 +    fi
 1.13919 +    if test "x$VALID_TOOL" != xyes; then
 1.13920 +       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
 1.13921 +    fi
 1.13922 +
 1.13923 +        mv $tmpfile $installdir/$filename
 1.13924 +        if test ! -s $installdir/$filename; then
 1.13925 +            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
 1.13926 +        fi
 1.13927 +        case "$extension" in
 1.13928 +            zip)  echo "Unzipping $installdir/$filename..."
 1.13929 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
 1.13930 +            ;;
 1.13931 +            tar.gz) echo "Untaring $installdir/$filename..."
 1.13932 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.13933 +            ;;
 1.13934 +            tgz) echo "Untaring $installdir/$filename..."
 1.13935 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.13936 +            ;;
 1.13937 +            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
 1.13938 +            ;;
 1.13939 +        esac
 1.13940 +    fi
 1.13941 +    if test -f $installdir/$filename.unpacked; then
 1.13942 +        depdir=$installdir
 1.13943 +    fi
 1.13944 +
 1.13945 +	    fi
 1.13946 +            # Source the builddeps file again, because in the previous command, the depdir
 1.13947 +            # was updated to point at the current build dependency install directory.
 1.13948 +            . $builddepsfile
 1.13949 +            # Now extract variables from the builddeps.conf files.
 1.13950 +            theroot=${builddep_alsa_ROOT}
 1.13951 +            thecflags=${builddep_alsa_CFLAGS}
 1.13952 +            thelibs=${builddep_alsa_LIBS}
 1.13953 +            if test "x$depdir" = x; then
 1.13954 +                as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5
 1.13955 +            fi
 1.13956 +            ALSA=$depdir
 1.13957 +            if test "x$theroot" != x; then
 1.13958 +               ALSA="$theroot"
 1.13959 +            fi
 1.13960 +            if test "x$thecflags" != x; then
 1.13961 +               ALSA_CFLAGS="$thecflags"
 1.13962 +            fi
 1.13963 +            if test "x$thelibs" != x; then
 1.13964 +               ALSA_LIBS="$thelibs"
 1.13965 +            fi
 1.13966 +            ALSA_FOUND=yes
 1.13967 +            else ALSA_FOUND=no
 1.13968 +
 1.13969 +        fi
 1.13970 +        else ALSA_FOUND=no
 1.13971 +
 1.13972 +    fi
 1.13973 +
 1.13974 +	fi
 1.13975 +	if test "x$ALSA_FOUND" = xno; then
 1.13976 +
 1.13977 +pkg_failed=no
 1.13978 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
 1.13979 +$as_echo_n "checking for ALSA... " >&6; }
 1.13980 +
 1.13981 +if test -n "$ALSA_CFLAGS"; then
 1.13982 +    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 1.13983 + elif test -n "$PKG_CONFIG"; then
 1.13984 +    if test -n "$PKG_CONFIG" && \
 1.13985 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
 1.13986 +  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 1.13987 +  ac_status=$?
 1.13988 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1.13989 +  test $ac_status = 0; }; then
 1.13990 +  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 1.13991 +else
 1.13992 +  pkg_failed=yes
 1.13993 +fi
 1.13994 + else
 1.13995 +    pkg_failed=untried
 1.13996 +fi
 1.13997 +if test -n "$ALSA_LIBS"; then
 1.13998 +    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 1.13999 + elif test -n "$PKG_CONFIG"; then
 1.14000 +    if test -n "$PKG_CONFIG" && \
 1.14001 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
 1.14002 +  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 1.14003 +  ac_status=$?
 1.14004 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1.14005 +  test $ac_status = 0; }; then
 1.14006 +  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 1.14007 +else
 1.14008 +  pkg_failed=yes
 1.14009 +fi
 1.14010 + else
 1.14011 +    pkg_failed=untried
 1.14012 +fi
 1.14013 +
 1.14014 +
 1.14015 +
 1.14016 +if test $pkg_failed = yes; then
 1.14017 +
 1.14018 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 1.14019 +        _pkg_short_errors_supported=yes
 1.14020 +else
 1.14021 +        _pkg_short_errors_supported=no
 1.14022 +fi
 1.14023 +        if test $_pkg_short_errors_supported = yes; then
 1.14024 +	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 1.14025 +        else
 1.14026 +	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 1.14027 +        fi
 1.14028 +	# Put the nasty error message in config.log where it belongs
 1.14029 +	echo "$ALSA_PKG_ERRORS" >&5
 1.14030 +
 1.14031 +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.14032 +$as_echo "no" >&6; }
 1.14033 +                ALSA_FOUND=no
 1.14034 +elif test $pkg_failed = untried; then
 1.14035 +	ALSA_FOUND=no
 1.14036 +else
 1.14037 +	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 1.14038 +	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 1.14039 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.14040 +$as_echo "yes" >&6; }
 1.14041 +	ALSA_FOUND=yes
 1.14042 +fi
 1.14043 +	fi
 1.14044 +	if test "x$ALSA_FOUND" = xno; then
 1.14045 +	    for ac_header in alsa/asoundlib.h
 1.14046 +do :
 1.14047 +  ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
 1.14048 +if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
 1.14049 +  cat >>confdefs.h <<_ACEOF
 1.14050 +#define HAVE_ALSA_ASOUNDLIB_H 1
 1.14051 +_ACEOF
 1.14052 + ALSA_FOUND=yes
 1.14053 +	                      ALSA_CFLAGS=-Iignoreme
 1.14054 +	                      ALSA_LIBS=-lasound
 1.14055 +	                      DEFAULT_ALSA=yes
 1.14056 +else
 1.14057 +  ALSA_FOUND=no
 1.14058 +fi
 1.14059 +
 1.14060 +done
 1.14061 +
 1.14062 +	fi
 1.14063 +	if test "x$ALSA_FOUND" = xno; then
 1.14064 +	    help_on_build_dependency alsa
 1.14065 +	    as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
 1.14066 +	fi
 1.14067 +fi
 1.14068 +
 1.14069 +
 1.14070 +
 1.14071 +
 1.14072 +###############################################################################
 1.14073 +#
 1.14074 +# Check for pulse audio headers and libraries.
 1.14075 +#
 1.14076 +PULSE_FOUND=no
 1.14077 +
 1.14078 +# Check whether --with-pulse was given.
 1.14079 +if test "${with_pulse+set}" = set; then :
 1.14080 +  withval=$with_pulse;
 1.14081 +fi
 1.14082 +
 1.14083 +
 1.14084 +# Check whether --with-pulse-include was given.
 1.14085 +if test "${with_pulse_include+set}" = set; then :
 1.14086 +  withval=$with_pulse_include;
 1.14087 +fi
 1.14088 +
 1.14089 +
 1.14090 +# Check whether --with-pulse-lib was given.
 1.14091 +if test "${with_pulse_lib+set}" = set; then :
 1.14092 +  withval=$with_pulse_lib;
 1.14093 +fi
 1.14094 +
 1.14095 +
 1.14096 +if test "x$with_pulse" != x; then
 1.14097 +    PULSE_LIBS="-L$with_pulse/lib -lfreetype"
 1.14098 +    PULSE_CFLAGS="-I$with_pulse/include"
 1.14099 +    PULSE_FOUND=yes
 1.14100 +fi
 1.14101 +if test "x$with_pulse-include" != x; then
 1.14102 +    PULSE_CFLAGS="-I$with_pulse/include"
 1.14103 +    PULSE_FOUND=yes
 1.14104 +fi
 1.14105 +if test "x$with_pulse-lib" != x; then
 1.14106 +    PULSE_LIBS="-L$with_pulse/lib -lfreetype"
 1.14107 +    PULSE_FOUND=yes
 1.14108 +fi
 1.14109 +if test "x$PULSE_FOUND" = xno; then
 1.14110 +
 1.14111 +
 1.14112 +    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
 1.14113 +        # Source the builddeps file again, to make sure it uses the latest variables!
 1.14114 +        . $builddepsfile
 1.14115 +        # Look for a host and build machine specific resource!
 1.14116 +        eval resource=\${builddep_pulse_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
 1.14117 +        if test "x$resource" = x; then
 1.14118 +            # Ok, lets instead look for a host specific resource
 1.14119 +            eval resource=\${builddep_pulse_HOST_${rewritten_host_var}}
 1.14120 +        fi
 1.14121 +        if test "x$resource" = x; then
 1.14122 +            # Ok, lets instead look for a build specific resource
 1.14123 +            eval resource=\${builddep_pulse_BUILD_${rewritten_build_var}}
 1.14124 +        fi
 1.14125 +        if test "x$resource" = x; then
 1.14126 +            # Ok, lets instead look for a generic resource
 1.14127 +            # (The pulse comes from M4 and not the shell, thus no need for eval here.)
 1.14128 +            resource=${builddep_pulse}
 1.14129 +        fi
 1.14130 +        if test "x$resource" != x; then
 1.14131 +            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for pulse" >&5
 1.14132 +$as_echo "$as_me: Using builddeps $resource for pulse" >&6;}
 1.14133 +	    # If the resource in the builddeps.conf file is an existing directory,
 1.14134 +	    # for example /java/linux/cups
 1.14135 +	    if test -d ${resource}; then
 1.14136 +	       depdir=${resource}
 1.14137 +	    else
 1.14138 +
 1.14139 +# pulse is for example mymodule
 1.14140 +# $resource is for example libs/general/libmymod_1_2_3.zip
 1.14141 +# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
 1.14142 +# $with_builddeps_dir is for example /localhome/builddeps
 1.14143 +# depdir is the name of the variable into which we store the depdir, eg MYMOD
 1.14144 +# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
 1.14145 +# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
 1.14146 +    filename=`basename $resource`
 1.14147 +    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
 1.14148 +    filebase=${filename%%.*}
 1.14149 +    extension=${filename#*.}
 1.14150 +    installdir=$with_builddeps_dir/$filebase
 1.14151 +    if test ! -f $installdir/$filename.unpacked; then
 1.14152 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency pulse from $with_builddeps_server/$resource and installing into $installdir" >&5
 1.14153 +$as_echo "$as_me: Downloading build dependency pulse from $with_builddeps_server/$resource and installing into $installdir" >&6;}
 1.14154 +        if test ! -d $installdir; then
 1.14155 +            mkdir -p $installdir
 1.14156 +        fi
 1.14157 +        if test ! -d $installdir; then
 1.14158 +            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
 1.14159 +        fi
 1.14160 +        tmpfile=`mktemp $installdir/pulse.XXXXXXXXX`
 1.14161 +        touch $tmpfile
 1.14162 +        if test ! -f $tmpfile; then
 1.14163 +            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
 1.14164 +        fi
 1.14165 +
 1.14166 +    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
 1.14167 +    # $tmpfile is the local file name for the downloaded file.
 1.14168 +    VALID_TOOL=no
 1.14169 +    if test "x$BDEPS_FTP" = xwget; then
 1.14170 +       VALID_TOOL=yes
 1.14171 +       wget -O $tmpfile $with_builddeps_server/$resource
 1.14172 +    fi
 1.14173 +    if test "x$BDEPS_FTP" = xlftp; then
 1.14174 +       VALID_TOOL=yes
 1.14175 +       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
 1.14176 +    fi
 1.14177 +    if test "x$BDEPS_FTP" = xftp; then
 1.14178 +        VALID_TOOL=yes
 1.14179 +        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
 1.14180 +        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
 1.14181 +        FTPUSERPWD=${FTPSERVER%%@*}
 1.14182 +        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
 1.14183 +            FTPUSER=${userpwd%%:*}
 1.14184 +            FTPPWD=${userpwd#*@}
 1.14185 +            FTPSERVER=${FTPSERVER#*@}
 1.14186 +        else
 1.14187 +            FTPUSER=ftp
 1.14188 +            FTPPWD=ftp
 1.14189 +        fi
 1.14190 +        # the "pass" command does not work on some
 1.14191 +        # ftp clients (read ftp.exe) but if it works,
 1.14192 +        # passive mode is better!
 1.14193 +        (\
 1.14194 +            echo "user $FTPUSER $FTPPWD"        ;\
 1.14195 +            echo "pass"                         ;\
 1.14196 +            echo "bin"                          ;\
 1.14197 +            echo "get $FTPPATH $tmpfile"              ;\
 1.14198 +        ) | ftp -in $FTPSERVER
 1.14199 +    fi
 1.14200 +    if test "x$VALID_TOOL" != xyes; then
 1.14201 +       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
 1.14202 +    fi
 1.14203 +
 1.14204 +        mv $tmpfile $installdir/$filename
 1.14205 +        if test ! -s $installdir/$filename; then
 1.14206 +            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
 1.14207 +        fi
 1.14208 +        case "$extension" in
 1.14209 +            zip)  echo "Unzipping $installdir/$filename..."
 1.14210 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
 1.14211 +            ;;
 1.14212 +            tar.gz) echo "Untaring $installdir/$filename..."
 1.14213 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.14214 +            ;;
 1.14215 +            tgz) echo "Untaring $installdir/$filename..."
 1.14216 +               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
 1.14217 +            ;;
 1.14218 +            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
 1.14219 +            ;;
 1.14220 +        esac
 1.14221 +    fi
 1.14222 +    if test -f $installdir/$filename.unpacked; then
 1.14223 +        depdir=$installdir
 1.14224 +    fi
 1.14225 +
 1.14226 +	    fi
 1.14227 +            # Source the builddeps file again, because in the previous command, the depdir
 1.14228 +            # was updated to point at the current build dependency install directory.
 1.14229 +            . $builddepsfile
 1.14230 +            # Now extract variables from the builddeps.conf files.
 1.14231 +            theroot=${builddep_pulse_ROOT}
 1.14232 +            thecflags=${builddep_pulse_CFLAGS}
 1.14233 +            thelibs=${builddep_pulse_LIBS}
 1.14234 +            if test "x$depdir" = x; then
 1.14235 +                as_fn_error $? "Could not download build dependency pulse" "$LINENO" 5
 1.14236 +            fi
 1.14237 +            PULSE=$depdir
 1.14238 +            if test "x$theroot" != x; then
 1.14239 +               PULSE="$theroot"
 1.14240 +            fi
 1.14241 +            if test "x$thecflags" != x; then
 1.14242 +               PULSE_CFLAGS="$thecflags"
 1.14243 +            fi
 1.14244 +            if test "x$thelibs" != x; then
 1.14245 +               PULSE_LIBS="$thelibs"
 1.14246 +            fi
 1.14247 +            PULSE_FOUND=yes
 1.14248 +            else PULSE_FOUND=no
 1.14249 +
 1.14250 +        fi
 1.14251 +        else PULSE_FOUND=no
 1.14252 +
 1.14253 +    fi
 1.14254 +
 1.14255 +fi
 1.14256 +if test "x$PULSE_FOUND" = xno; then
 1.14257 +
 1.14258 +pkg_failed=no
 1.14259 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPULSE" >&5
 1.14260 +$as_echo_n "checking for LIBPULSE... " >&6; }
 1.14261 +
 1.14262 +if test -n "$LIBPULSE_CFLAGS"; then
 1.14263 +    pkg_cv_LIBPULSE_CFLAGS="$LIBPULSE_CFLAGS"
 1.14264 + elif test -n "$PKG_CONFIG"; then
 1.14265 +    if test -n "$PKG_CONFIG" && \
 1.14266 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.11\""; } >&5
 1.14267 +  ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5
 1.14268 +  ac_status=$?
 1.14269 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1.14270 +  test $ac_status = 0; }; then
 1.14271 +  pkg_cv_LIBPULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.11" 2>/dev/null`
 1.14272 +else
 1.14273 +  pkg_failed=yes
 1.14274 +fi
 1.14275 + else
 1.14276 +    pkg_failed=untried
 1.14277 +fi
 1.14278 +if test -n "$LIBPULSE_LIBS"; then
 1.14279 +    pkg_cv_LIBPULSE_LIBS="$LIBPULSE_LIBS"
 1.14280 + elif test -n "$PKG_CONFIG"; then
 1.14281 +    if test -n "$PKG_CONFIG" && \
 1.14282 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.11\""; } >&5
 1.14283 +  ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5
 1.14284 +  ac_status=$?
 1.14285 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1.14286 +  test $ac_status = 0; }; then
 1.14287 +  pkg_cv_LIBPULSE_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.11" 2>/dev/null`
 1.14288 +else
 1.14289 +  pkg_failed=yes
 1.14290 +fi
 1.14291 + else
 1.14292 +    pkg_failed=untried
 1.14293 +fi
 1.14294 +
 1.14295 +
 1.14296 +
 1.14297 +if test $pkg_failed = yes; then
 1.14298 +
 1.14299 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 1.14300 +        _pkg_short_errors_supported=yes
 1.14301 +else
 1.14302 +        _pkg_short_errors_supported=no
 1.14303 +fi
 1.14304 +        if test $_pkg_short_errors_supported = yes; then
 1.14305 +	        LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse >= 0.9.11" 2>&1`
 1.14306 +        else
 1.14307 +	        LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse >= 0.9.11" 2>&1`
 1.14308 +        fi
 1.14309 +	# Put the nasty error message in config.log where it belongs
 1.14310 +	echo "$LIBPULSE_PKG_ERRORS" >&5
 1.14311 +
 1.14312 +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1.14313 +$as_echo "no" >&6; }
 1.14314 +                PULSE_FOUND=no
 1.14315 +elif test $pkg_failed = untried; then
 1.14316 +	PULSE_FOUND=no
 1.14317 +else
 1.14318 +	LIBPULSE_CFLAGS=$pkg_cv_LIBPULSE_CFLAGS
 1.14319 +	LIBPULSE_LIBS=$pkg_cv_LIBPULSE_LIBS
 1.14320 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1.14321 +$as_echo "yes" >&6; }
 1.14322 +	PULSE_FOUND=yes
 1.14323 +fi
 1.14324 +fi
 1.14325 +if test "x$PULSE_FOUND" = xno; then
 1.14326 +    for ac_header in pulse/pulseaudio.h
 1.14327 +do :
 1.14328 +  ac_fn_cxx_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default"
 1.14329 +if test "x$ac_cv_header_pulse_pulseaudio_h" = x""yes; then :
 1.14330 +  cat >>confdefs.h <<_ACEOF
 1.14331 +#define HAVE_PULSE_PULSEAUDIO_H 1
 1.14332 +_ACEOF
 1.14333 + PULSE_FOUND=yes
 1.14334 +                      PULSE_CFLAGS=-Iignoreme
 1.14335 +                      PULSE_LIBS=
 1.14336 +                      DEFAULT_PULSE=yes
 1.14337 +else
 1.14338 +  PULSE_FOUND=no
 1.14339 +fi
 1.14340 +
 1.14341 +done
 1.14342 +
 1.14343 +fi
 1.14344 +
 1.14345 +if test "x$PULSE_FOUND" = xno && test "x$PULSE_NOT_NEEDED" != xyes; then
 1.14346 +    help_on_build_dependency pulse
 1.14347 +    as_fn_error $? "Could not find pulse audio libraries. $HELP_MSG " "$LINENO" 5
 1.14348 +fi
 1.14349 +
 1.14350 +
 1.14351 +
 1.14352 +
 1.14353 +###############################################################################
 1.14354 +#
 1.14355 +# Check for the jpeg library
 1.14356 +#
 1.14357 +
 1.14358 +USE_EXTERNAL_LIBJPEG=true
 1.14359 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
 1.14360 +$as_echo_n "checking for main in -ljpeg... " >&6; }
 1.14361 +if test "${ac_cv_lib_jpeg_main+set}" = set; then :
 1.14362 +  $as_echo_n "(cached) " >&6
 1.14363 +else
 1.14364 +  ac_check_lib_save_LIBS=$LIBS
 1.14365 +LIBS="-ljpeg  $LIBS"
 1.14366 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.14367 +/* end confdefs.h.  */
 1.14368 +
 1.14369 +
 1.14370 +int
 1.14371 +main ()
 1.14372 +{
 1.14373 +return main ();
 1.14374 +  ;
 1.14375 +  return 0;
 1.14376 +}
 1.14377 +_ACEOF
 1.14378 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.14379 +  ac_cv_lib_jpeg_main=yes
 1.14380 +else
 1.14381 +  ac_cv_lib_jpeg_main=no
 1.14382 +fi
 1.14383 +rm -f core conftest.err conftest.$ac_objext \
 1.14384 +    conftest$ac_exeext conftest.$ac_ext
 1.14385 +LIBS=$ac_check_lib_save_LIBS
 1.14386 +fi
 1.14387 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
 1.14388 +$as_echo "$ac_cv_lib_jpeg_main" >&6; }
 1.14389 +if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
 1.14390 +  cat >>confdefs.h <<_ACEOF
 1.14391 +#define HAVE_LIBJPEG 1
 1.14392 +_ACEOF
 1.14393 +
 1.14394 +  LIBS="-ljpeg $LIBS"
 1.14395 +
 1.14396 +else
 1.14397 +   USE_EXTERNAL_LIBJPEG=false
 1.14398 +               { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
 1.14399 +$as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
 1.14400 +
 1.14401 +fi
 1.14402 +
 1.14403 +
 1.14404 +
 1.14405 +###############################################################################
 1.14406 +#
 1.14407 +# Check for the gif library
 1.14408 +#
 1.14409 +
 1.14410 +USE_EXTERNAL_LIBJPEG=true
 1.14411 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5
 1.14412 +$as_echo_n "checking for main in -lgif... " >&6; }
 1.14413 +if test "${ac_cv_lib_gif_main+set}" = set; then :
 1.14414 +  $as_echo_n "(cached) " >&6
 1.14415 +else
 1.14416 +  ac_check_lib_save_LIBS=$LIBS
 1.14417 +LIBS="-lgif  $LIBS"
 1.14418 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.14419 +/* end confdefs.h.  */
 1.14420 +
 1.14421 +
 1.14422 +int
 1.14423 +main ()
 1.14424 +{
 1.14425 +return main ();
 1.14426 +  ;
 1.14427 +  return 0;
 1.14428 +}
 1.14429 +_ACEOF
 1.14430 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.14431 +  ac_cv_lib_gif_main=yes
 1.14432 +else
 1.14433 +  ac_cv_lib_gif_main=no
 1.14434 +fi
 1.14435 +rm -f core conftest.err conftest.$ac_objext \
 1.14436 +    conftest$ac_exeext conftest.$ac_ext
 1.14437 +LIBS=$ac_check_lib_save_LIBS
 1.14438 +fi
 1.14439 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5
 1.14440 +$as_echo "$ac_cv_lib_gif_main" >&6; }
 1.14441 +if test "x$ac_cv_lib_gif_main" = x""yes; then :
 1.14442 +  cat >>confdefs.h <<_ACEOF
 1.14443 +#define HAVE_LIBGIF 1
 1.14444 +_ACEOF
 1.14445 +
 1.14446 +  LIBS="-lgif $LIBS"
 1.14447 +
 1.14448 +else
 1.14449 +   USE_EXTERNAL_LIBGIF=false
 1.14450 +               { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5
 1.14451 +$as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;}
 1.14452 +
 1.14453 +fi
 1.14454 +
 1.14455 +
 1.14456 +
 1.14457 +###############################################################################
 1.14458 +#
 1.14459 +# Check for the zlib library
 1.14460 +#
 1.14461 +
 1.14462 +USE_EXTERNAL_LIBZ=true
 1.14463 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
 1.14464 +$as_echo_n "checking for main in -lz... " >&6; }
 1.14465 +if test "${ac_cv_lib_z_main+set}" = set; then :
 1.14466 +  $as_echo_n "(cached) " >&6
 1.14467 +else
 1.14468 +  ac_check_lib_save_LIBS=$LIBS
 1.14469 +LIBS="-lz  $LIBS"
 1.14470 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.14471 +/* end confdefs.h.  */
 1.14472 +
 1.14473 +
 1.14474 +int
 1.14475 +main ()
 1.14476 +{
 1.14477 +return main ();
 1.14478 +  ;
 1.14479 +  return 0;
 1.14480 +}
 1.14481 +_ACEOF
 1.14482 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.14483 +  ac_cv_lib_z_main=yes
 1.14484 +else
 1.14485 +  ac_cv_lib_z_main=no
 1.14486 +fi
 1.14487 +rm -f core conftest.err conftest.$ac_objext \
 1.14488 +    conftest$ac_exeext conftest.$ac_ext
 1.14489 +LIBS=$ac_check_lib_save_LIBS
 1.14490 +fi
 1.14491 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
 1.14492 +$as_echo "$ac_cv_lib_z_main" >&6; }
 1.14493 +if test "x$ac_cv_lib_z_main" = x""yes; then :
 1.14494 +  cat >>confdefs.h <<_ACEOF
 1.14495 +#define HAVE_LIBZ 1
 1.14496 +_ACEOF
 1.14497 +
 1.14498 +  LIBS="-lz $LIBS"
 1.14499 +
 1.14500 +else
 1.14501 +   USE_EXTERNAL_LIBZ=false
 1.14502 +               { $as_echo "$as_me:${as_lineno-$LINENO}: Will use zlib bundled with the OpenJDK source" >&5
 1.14503 +$as_echo "$as_me: Will use zlib bundled with the OpenJDK source" >&6;}
 1.14504 +
 1.14505 +fi
 1.14506 +
 1.14507 +
 1.14508 +
 1.14509 +###############################################################################
 1.14510 +#
 1.14511 +# Check if altzone exists in time.h
 1.14512 +#
 1.14513 +
 1.14514 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.14515 +/* end confdefs.h.  */
 1.14516 +#include <time.h>
 1.14517 +int
 1.14518 +main ()
 1.14519 +{
 1.14520 +return (int)altzone;
 1.14521 +  ;
 1.14522 +  return 0;
 1.14523 +}
 1.14524 +_ACEOF
 1.14525 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.14526 +  has_altzone=yes
 1.14527 +else
 1.14528 +  has_altzone=no
 1.14529 +fi
 1.14530 +rm -f core conftest.err conftest.$ac_objext \
 1.14531 +    conftest$ac_exeext conftest.$ac_ext
 1.14532 +if test "x$has_altzone" = xyes; then
 1.14533 +
 1.14534 +$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
 1.14535 +
 1.14536 +fi
 1.14537 +
 1.14538 +###############################################################################
 1.14539 +#
 1.14540 +# Check the maths library
 1.14541 +#
 1.14542 +
 1.14543 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
 1.14544 +$as_echo_n "checking for main in -lm... " >&6; }
 1.14545 +if test "${ac_cv_lib_m_main+set}" = set; then :
 1.14546 +  $as_echo_n "(cached) " >&6
 1.14547 +else
 1.14548 +  ac_check_lib_save_LIBS=$LIBS
 1.14549 +LIBS="-lm  $LIBS"
 1.14550 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.14551 +/* end confdefs.h.  */
 1.14552 +
 1.14553 +
 1.14554 +int
 1.14555 +main ()
 1.14556 +{
 1.14557 +return main ();
 1.14558 +  ;
 1.14559 +  return 0;
 1.14560 +}
 1.14561 +_ACEOF
 1.14562 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.14563 +  ac_cv_lib_m_main=yes
 1.14564 +else
 1.14565 +  ac_cv_lib_m_main=no
 1.14566 +fi
 1.14567 +rm -f core conftest.err conftest.$ac_objext \
 1.14568 +    conftest$ac_exeext conftest.$ac_ext
 1.14569 +LIBS=$ac_check_lib_save_LIBS
 1.14570 +fi
 1.14571 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
 1.14572 +$as_echo "$ac_cv_lib_m_main" >&6; }
 1.14573 +if test "x$ac_cv_lib_m_main" = x""yes; then :
 1.14574 +  cat >>confdefs.h <<_ACEOF
 1.14575 +#define HAVE_LIBM 1
 1.14576 +_ACEOF
 1.14577 +
 1.14578 +  LIBS="-lm $LIBS"
 1.14579 +
 1.14580 +else
 1.14581 +
 1.14582 +                  { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
 1.14583 +$as_echo "$as_me: Maths library was not found" >&6;}
 1.14584 +
 1.14585 +fi
 1.14586 +
 1.14587 +
 1.14588 +
 1.14589 +###############################################################################
 1.14590 +#
 1.14591 +# Should we run the painfully slow javadoc tool?
 1.14592 +#
 1.14593 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
 1.14594 +$as_echo_n "checking whether to build documentation... " >&6; }
 1.14595 +# Check whether --enable-docs was given.
 1.14596 +if test "${enable_docs+set}" = set; then :
 1.14597 +  enableval=$enable_docs; ENABLE_DOCS="${enableval}"
 1.14598 +else
 1.14599 +  ENABLE_DOCS='no'
 1.14600 +fi
 1.14601 +
 1.14602 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DOCS" >&5
 1.14603 +$as_echo "$ENABLE_DOCS" >&6; }
 1.14604 +
 1.14605 +GENERATE_DOCS=false
 1.14606 +if test "x$ENABLE_DOCS" = xyes; then
 1.14607 +    GENERATE_DOCS=true
 1.14608 +fi
 1.14609 +
 1.14610 +
 1.14611 +###############################################################################
 1.14612 +#
 1.14613 +# Should we compile nimbus swing L&F? We can probably remove this option
 1.14614 +# since nimbus is officially part of javax now.
 1.14615 +#
 1.14616 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build nimbus L&F" >&5
 1.14617 +$as_echo_n "checking whether to build nimbus L&F... " >&6; }
 1.14618 +# Check whether --enable-nimbus was given.
 1.14619 +if test "${enable_nimbus+set}" = set; then :
 1.14620 +  enableval=$enable_nimbus; ENABLE_NIMBUS="${enableval}"
 1.14621 +else
 1.14622 +  ENABLE_NIMBUS='yes'
 1.14623 +fi
 1.14624 +
 1.14625 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_NIMBUS" >&5
 1.14626 +$as_echo "$ENABLE_NIMBUS" >&6; }
 1.14627 +DISABLE_NIMBUS=
 1.14628 +if test "x$ENABLE_NIMBUS" = xno; then
 1.14629 +    DISABLE_NIMBUS=true
 1.14630 +fi
 1.14631 +
 1.14632 +
 1.14633 +###############################################################################
 1.14634 +#
 1.14635 +# Setup the opt flags for different compilers
 1.14636 +# and different operating systems.
 1.14637 +#
 1.14638 +case $COMPILER_TYPE in
 1.14639 +  CC )
 1.14640 +    D_FLAG="-g"
 1.14641 +    case $COMPILER_NAME in
 1.14642 +      gcc )
 1.14643 +      	case $PLATFORM in
 1.14644 +	  macosx )
 1.14645 +	    # On MacOSX we optimize for size, something
 1.14646 +	    # we should do for all platforms?
 1.14647 +	    C_O_FLAG_HI="-O3"
 1.14648 +	    C_O_FLAG_NORM="-Os"
 1.14649 +	    C_O_FLAG_NONE="-O0"
 1.14650 +	    ;;
 1.14651 +	  *)
 1.14652 +	    C_O_FLAG_HI="-O3"
 1.14653 +	    C_O_FLAG_NORM="-O2"
 1.14654 +	    C_O_FLAG_NONE="-O0"
 1.14655 +	    ;;
 1.14656 +	esac
 1.14657 +        CXX_O_FLAG_HI="$C_O_FLAG_HI"
 1.14658 +        CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
 1.14659 +        CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
 1.14660 +        ;;
 1.14661 +      ossc )
 1.14662 +        case $LEGACY_HOST_CPU1 in
 1.14663 +          i586)
 1.14664 +            C_O_FLAG_HI="-xO4 -Wu,-O4~yz"
 1.14665 +            C_O_FLAG_NORM="-xO2 -Wu,-O2~yz"
 1.14666 +            C_O_FLAG_NONE=""
 1.14667 +            CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz"
 1.14668 +            CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz"
 1.14669 +            CXX_O_FLAG_NONE=""
 1.14670 +            ;;
 1.14671 +          sparc)
 1.14672 +            C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
 1.14673 +            C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
 1.14674 +            C_O_FLAG_NONE=""
 1.14675 +            CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
 1.14676 +            CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
 1.14677 +            CXX_O_FLAG_NONE=""
 1.14678 +            ;;
 1.14679 +        esac
 1.14680 +    esac
 1.14681 +    ;;
 1.14682 +  CL )
 1.14683 +    D_FLAG=
 1.14684 +    C_O_FLAG_HI="-O2"
 1.14685 +    C_O_FLAG_NORM="-O1"
 1.14686 +    C_O_FLAG_NONE="-Od"
 1.14687 +    CXX_O_FLAG_HI="$C_O_FLAG_HI"
 1.14688 +    CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
 1.14689 +    CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
 1.14690 +    ;;
 1.14691 +esac
 1.14692 +
 1.14693 +
 1.14694 +
 1.14695 +
 1.14696 +
 1.14697 +
 1.14698 +
 1.14699 +
 1.14700 +###############################################################################
 1.14701 +#
 1.14702 +# Setup legacy vars/targets and new vars to deal with different debug levels.
 1.14703 +#
 1.14704 +case $DEBUG_LEVEL in
 1.14705 +      release )
 1.14706 +              HOTSPOT_DEBUG_LEVEL="product"
 1.14707 +              HOTSPOT_EXPORT="product"
 1.14708 +              ;;
 1.14709 +      fastdebug )
 1.14710 +              HOTSPOT_DEBUG_LEVEL="fastdebug"
 1.14711 +              HOTSPOT_EXPORT="fastdebug"
 1.14712 +              CFLAGS="$CFLAGS $D_FLAG"
 1.14713 +              JAVAC_FLAGS="$JAVAC_FLAGS -g"
 1.14714 +              ;;
 1.14715 +      slowdebug )
 1.14716 +              HOTSPOT_DEBUG_LEVEL="jvmg"
 1.14717 +              HOTSPOT_EXPORT="debug"
 1.14718 +              CFLAGS="$CFLAGS $D_FLAG"
 1.14719 +	      C_O_FLAG_HI="$C_O_FLAG_NONE"
 1.14720 +	      C_O_FLAG_NORM="$C_O_FLAG_NONE"
 1.14721 +	      CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
 1.14722 +	      CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
 1.14723 +              JAVAC_FLAGS="$JAVAC_FLAGS -g"
 1.14724 +              ;;
 1.14725 +esac
 1.14726 +
 1.14727 +###############################################################################
 1.14728 +#
 1.14729 +# Generate the legacy makefile targets for hotspot.
 1.14730 +# The hotspot api for selecting the build artifacts, really, needs to be improved.
 1.14731 +#
 1.14732 +HOTSPOT_TARGET=""
 1.14733 +
 1.14734 +if test "x$JVM_VARIANT_SERVER" = xtrue; then
 1.14735 +    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
 1.14736 +fi
 1.14737 +
 1.14738 +if test "x$JVM_VARIANT_CLIENT" = xtrue; then
 1.14739 +    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
 1.14740 +fi
 1.14741 +
 1.14742 +if test "x$JVM_VARIANT_KERNEL" = xtrue; then
 1.14743 +    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
 1.14744 +fi
 1.14745 +
 1.14746 +if test "x$JVM_VARIANT_ZERO" = xtrue; then
 1.14747 +    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
 1.14748 +fi
 1.14749 +
 1.14750 +if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
 1.14751 +    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
 1.14752 +fi
 1.14753 +
 1.14754 +HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
 1.14755 +
 1.14756 +###############################################################################
 1.14757 +#
 1.14758 +# Setup all directories for the subrepoes and the arguments to the sub makes.
 1.14759 +#
 1.14760 +LANGTOOLS_OUTPUTDIR="$OUTPUT_ROOT/langtools"
 1.14761 +LANGTOOLS_DIST="$OUTPUT_ROOT/langtools/dist"
 1.14762 +LANGTOOLS_MAKE_ARGS=""
 1.14763 +
 1.14764 +
 1.14765 +
 1.14766 +
 1.14767 +CORBA_OUTPUTDIR="$OUTPUT_ROOT/corba"
 1.14768 +CORBA_DIST="$OUTPUT_ROOT/corba/dist"
 1.14769 +CORBA_MAKE_ARGS=""
 1.14770 +
 1.14771 +
 1.14772 +
 1.14773 +
 1.14774 +JAXP_OUTPUTDIR="$OUTPUT_ROOT/jaxp"
 1.14775 +JAXP_DIST="$OUTPUT_ROOT/jaxp/dist"
 1.14776 +JAXP_MAKE_ARGS=""
 1.14777 +
 1.14778 +
 1.14779 +
 1.14780 +
 1.14781 +JAXWS_OUTPUTDIR="$OUTPUT_ROOT/jaxws"
 1.14782 +JAXWS_DIST="$OUTPUT_ROOT/jaxws/dist"
 1.14783 +JAXWS_MAKE_ARGS=""
 1.14784 +
 1.14785 +
 1.14786 +
 1.14787 +
 1.14788 +HOTSPOT_OUTPUTDIR="$OUTPUT_ROOT/hotspot"
 1.14789 +HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
 1.14790 +HOTSPOT_MAKE_ARGS="ALT_OUTPUTDIR=$HOTSPOT_OUTPUTDIR ALT_EXPORT_PATH=$HOTSPOT_DIST $HOTSPOT_TARGET"
 1.14791 +
 1.14792 +
 1.14793 +
 1.14794 +
 1.14795 +JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
 1.14796 +JDK_MAKE_ARGS="ALT_OUTPUTDIR=\"$OUTPUT_ROOT/jdk\""
 1.14797 +
 1.14798 +
 1.14799 +
 1.14800 +IMAGES_OUTPUTDIR=$OUTPUT_ROOT/images
 1.14801 +IMAGES_MAKE_ARGS="ALT_OUTPUTDIR=$OUTPUT_ROOT/jdk \
 1.14802 +                  SHARE_SRC=$JDK_TOPDIR/src/share \
 1.14803 +                  PLATFORM_SRC=$JDK_TOPDIR/src/$LEGACY_HOST_OS_API \
 1.14804 +                  TEMPDIR=$IMAGES_OUTPUTDIR/tmp \
 1.14805 +                  ABS_TEMPDIR=$IMAGES_OUTPUTDIR/tmp "
 1.14806 +
 1.14807 +
 1.14808 +
 1.14809 +###############################################################################
 1.14810 +#
 1.14811 +# Now setup the CFLAGS and LDFLAGS for the JDK build.
 1.14812 +# Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
 1.14813 +#
 1.14814 +case $COMPILER_NAME in
 1.14815 +      gcc )
 1.14816 +      	  CCXXFLAGS_JDK="$CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer \
 1.14817 +                          -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
 1.14818 +          CFLAGS_JDK="$CFLAGS_JDK -fno-strict-aliasing"
 1.14819 +          ;;
 1.14820 +      ossc )
 1.14821 +      	  CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa REQUIRED -v -mt -norunpath -xnolib"
 1.14822 +      	  CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt REQUIRED -features=no%except -DCC_NOEX"
 1.14823 +          ;;
 1.14824 +      cl )
 1.14825 +          CCXXFLAGS_JDK="$CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
 1.14826 +               -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
 1.14827 +	       -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
 1.14828 +	       -DWIN32 -DIAL"
 1.14829 +          case $LEGACY_HOST_CPU1 in
 1.14830 +              i?86 )
 1.14831 +                  CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
 1.14832 +                  ;;
 1.14833 +              amd64 )
 1.14834 +                  CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
 1.14835 +                  ;;
 1.14836 +          esac
 1.14837 +          ;;
 1.14838 +esac
 1.14839 +
 1.14840 +CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
 1.14841 +
 1.14842 +# The package path is used only on macosx?
 1.14843 +PACKAGE_PATH=/opt/local
 1.14844 +
 1.14845 +
 1.14846 +# Sometimes we use a cpu dir (.../lib/amd64/server)
 1.14847 +# Sometimes not (.../lib/server)
 1.14848 +LIBARCHDIR="$LEGACY_HOST_CPU2/"
 1.14849 +if test "x$ENDIAN" = xlittle; then
 1.14850 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
 1.14851 +else
 1.14852 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
 1.14853 +fi
 1.14854 +if test "x$HOST_OS" = xlinux; then
 1.14855 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
 1.14856 +fi
 1.14857 +if test "x$HOST_OS" = xwindows; then
 1.14858 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
 1.14859 +fi
 1.14860 +if test "x$HOST_OS" = xsolaris; then
 1.14861 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
 1.14862 +fi
 1.14863 +if test "x$HOST_OS" = xmacosx; then
 1.14864 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
 1.14865 +    LIBARCHDIR=""
 1.14866 +fi
 1.14867 +if test "x$HOST_OS" = xbsd; then
 1.14868 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
 1.14869 +fi
 1.14870 +if test "x$DEBUG_LEVEL" = xrelease; then
 1.14871 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
 1.14872 +else
 1.14873 +    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG"
 1.14874 +fi
 1.14875 +
 1.14876 +CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$LEGACY_HOST_CPU1\"' -D$LEGACY_HOST_CPU1"
 1.14877 +CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"$RELEASE\"'"
 1.14878 +
 1.14879 +CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
 1.14880 +        -I${JDK_OUTPUTDIR}/include \
 1.14881 +        -I${JDK_OUTPUTDIR}/include/$PLATFORM \
 1.14882 +        -I${JDK_TOPDIR}/src/share/javavm/export \
 1.14883 +        -I${JDK_TOPDIR}/src/$LEGACY_HOST_OS_API/javavm/export \
 1.14884 +        -I${JDK_TOPDIR}/src/share/native/common \
 1.14885 +        -I${JDK_TOPDIR}/src/$LEGACY_HOST_OS_API/native/common"
 1.14886 +
 1.14887 +# The shared libraries are compiled using the picflag.
 1.14888 +CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
 1.14889 +CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG"
 1.14890 +
 1.14891 +# Executable flags
 1.14892 +CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK"
 1.14893 +CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK"
 1.14894 +
 1.14895 +# Now this is odd. The JDK native libraries have to link against libjvm.so
 1.14896 +# On 32-bit machines there is normally two distinct libjvm.so:s, client and server.
 1.14897 +# Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
 1.14898 +# is identical for client and server? Yes. Which is picked at runtime (client or server)?
 1.14899 +# Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
 1.14900 +# libraries will link to whatever is in memory. Yuck.
 1.14901 +#
 1.14902 +# Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
 1.14903 +if test "x$COMPILER_TYPE" = xCL; then
 1.14904 +    LDFLAGS_JDKLIB="$LDFLAGS -libpath:${JDK_OUTPUTDIR}/lib jvm.lib java.lib"
 1.14905 +    LDFLAGS_JDKLIB_SUFFIX=""
 1.14906 +    if test "x$HOST_CPU_BITS" = "x64"; then
 1.14907 +        LDFLAGS_JDKEXE="$CFLAGS ${JDK_OUTPUTDIR}/tmp/java/jli/obj64/jli.lib"
 1.14908 +    else
 1.14909 +        LDFLAGS_JDKEXE="$CFLAGS ${JDK_OUTPUTDIR}/tmp/java/jli/obj/jli.lib"
 1.14910 +    fi
 1.14911 +    LDFLAGS_JDKEXE_SUFFIX=""
 1.14912 +else
 1.14913 +    # If this is a --hash-style=gnu system, use --hash-style=both, why?
 1.14914 +    HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'`
 1.14915 +    if test -n "$HAS_GNU_HASH"; then
 1.14916 +        # And since we now know that the linker is gnu, then add -z defs, to forbid
 1.14917 +        # undefined symbols in object files.
 1.14918 +        LDFLAGS="$LDFLAGS -Xlinker --hash-style=both -Xlinker -z -Xlinker defs"
 1.14919 +        if test "x$DEBUG_LEVEL" == "xrelease"; then
 1.14920 +            # When building release libraries, tell the linker optimize them.
 1.14921 +            # Should this be supplied to the OSS linker as well?
 1.14922 +            LDFLAGS="$LDFLAGS -Xlinker -O1"
 1.14923 +        fi
 1.14924 +    fi
 1.14925 +
 1.14926 +    LDFLAGS_JDKLIB="$LDFLAGS $SHARED_LIBRARY_FLAGS -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}server \
 1.14927 +                    -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}client \
 1.14928 +  	            -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}"
 1.14929 +    LDFLAGS_JDKLIB_SUFFIX="-ljvm -ljava"
 1.14930 +    if test "x$COMPILER_NAME" = xossc; then
 1.14931 +        LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
 1.14932 +    fi
 1.14933 +
 1.14934 +    # Only the jli library is explicitly linked when the launchers are built.
 1.14935 +    # The libjvm is then dynamically loaded/linked by the launcher.
 1.14936 +    LDFLAGS_JDKEXE="$LDFLAGS -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}jli"
 1.14937 +    LDFLAGS_JDKEXE_SUFFIX="-ljli"
 1.14938 +fi
 1.14939 +
 1.14940 +
 1.14941 +
 1.14942 +
 1.14943 +
 1.14944 +
 1.14945 +
 1.14946 +
 1.14947 +
 1.14948 +
 1.14949 +
 1.14950 +
 1.14951 +
 1.14952 +
 1.14953 +###############################################################################
 1.14954 +#
 1.14955 +# statically link libstdc++ before C++ ABI is stablized on Linux unless
 1.14956 +# dynamic build is configured on command line.
 1.14957 +#
 1.14958 +# Check whether --enable-static-link-stdc++ was given.
 1.14959 +if test "${enable_static_link_stdc__+set}" = set; then :
 1.14960 +  enableval=$enable_static_link_stdc__;
 1.14961 +else
 1.14962 +
 1.14963 +		enable_static_link_stdc__=yes
 1.14964 +
 1.14965 +fi
 1.14966 +
 1.14967 +
 1.14968 +if test "x$HOST_OS" = xlinux; then
 1.14969 +    # Test if -lstdc++ works.
 1.14970 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
 1.14971 +$as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
 1.14972 +    ac_ext=cpp
 1.14973 +ac_cpp='$CXXCPP $CPPFLAGS'
 1.14974 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1.14975 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1.14976 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 1.14977 +
 1.14978 +    OLD_CXXFLAGS="$CXXFLAGS"
 1.14979 +    CXXFLAGS="$CXXFLAGS -lstdc++"
 1.14980 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.14981 +/* end confdefs.h.  */
 1.14982 +
 1.14983 +int
 1.14984 +main ()
 1.14985 +{
 1.14986 +return 0;
 1.14987 +  ;
 1.14988 +  return 0;
 1.14989 +}
 1.14990 +_ACEOF
 1.14991 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.14992 +  has_dynamic_libstdcxx=yes
 1.14993 +else
 1.14994 +  has_dynamic_libstdcxx=no
 1.14995 +fi
 1.14996 +rm -f core conftest.err conftest.$ac_objext \
 1.14997 +    conftest$ac_exeext conftest.$ac_ext
 1.14998 +    CXXFLAGS="$OLD_CXXFLAGS"
 1.14999 +    ac_ext=cpp
 1.15000 +ac_cpp='$CXXCPP $CPPFLAGS'
 1.15001 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1.15002 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1.15003 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 1.15004 +
 1.15005 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
 1.15006 +$as_echo "$has_dynamic_libstdcxx" >&6; }
 1.15007 +
 1.15008 +    # Test if stdc++ can be linked statically.
 1.15009 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
 1.15010 +$as_echo_n "checking if static link of stdc++ is possible... " >&6; }
 1.15011 +    STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
 1.15012 +    ac_ext=cpp
 1.15013 +ac_cpp='$CXXCPP $CPPFLAGS'
 1.15014 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1.15015 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1.15016 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 1.15017 +
 1.15018 +    OLD_LIBS="$LIBS"
 1.15019 +    OLD_CXX="$CXX"
 1.15020 +    LIBS="$STATIC_STDCXX_FLAGS"
 1.15021 +    CXX="$CC"
 1.15022 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1.15023 +/* end confdefs.h.  */
 1.15024 +
 1.15025 +int
 1.15026 +main ()
 1.15027 +{
 1.15028 +return 0;
 1.15029 +  ;
 1.15030 +  return 0;
 1.15031 +}
 1.15032 +_ACEOF
 1.15033 +if ac_fn_cxx_try_link "$LINENO"; then :
 1.15034 +  has_static_libstdcxx=yes
 1.15035 +else
 1.15036 +  has_static_libstdcxx=no
 1.15037 +fi
 1.15038 +rm -f core conftest.err conftest.$ac_objext \
 1.15039 +    conftest$ac_exeext conftest.$ac_ext
 1.15040 +    LIBS="$OLD_LIBS"
 1.15041 +    CXX="$OLD_CXX"
 1.15042 +    ac_ext=cpp
 1.15043 +ac_cpp='$CXXCPP $CPPFLAGS'
 1.15044 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1.15045 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1.15046 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 1.15047 +
 1.15048 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
 1.15049 +$as_echo "$has_static_libstdcxx" >&6; }
 1.15050 +
 1.15051 +    if test "x$has_static_libcxx" = xno && test "x$has_dynamic_libcxx" = xno; then
 1.15052 +        as_fn_error $? "I cannot link to stdc++! Neither dynamically nor statically." "$LINENO" 5
 1.15053 +    fi
 1.15054 +
 1.15055 +    if test "x$enable_static_link_stdc__" = xyes && test "x$has_static_libstdcxx" = xno; then
 1.15056 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Static linking of libstdc++ was not possible reverting to dynamic linking." >&5
 1.15057 +$as_echo "$as_me: Static linking of libstdc++ was not possible reverting to dynamic linking." >&6;}
 1.15058 +        enable_static_link_stdc__=no
 1.15059 +    fi
 1.15060 +
 1.15061 +    if test "x$enable_static_link_stdc__" = xno && test "x$has_dynamic_libstdcxx" = xno; then
 1.15062 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic linking of libstdc++ was not possible reverting to static linking." >&5
 1.15063 +$as_echo "$as_me: Dynamic linking of libstdc++ was not possible reverting to static linking." >&6;}
 1.15064 +        enable_static_link_stdc__=yes
 1.15065 +    fi
 1.15066 +
 1.15067 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
 1.15068 +$as_echo_n "checking how to link with libstdc++... " >&6; }
 1.15069 +    if test "x$enable_static_link_stdc__" = xyes; then
 1.15070 +        LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
 1.15071 +        LDCXX="$CC"
 1.15072 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
 1.15073 +$as_echo "static" >&6; }
 1.15074 +    else
 1.15075 +        LIBCXX="$LIBCXX -lstdc++"
 1.15076 +        LDCXX="$CXX"
 1.15077 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
 1.15078 +$as_echo "dynamic" >&6; }
 1.15079 +    fi
 1.15080 +fi
 1.15081 +
 1.15082 +###############################################################################
 1.15083 +#
 1.15084 +# Could someone enlighten this configure script with a comment about libCrun?
 1.15085 +# The LEGACY_HOST_CPU3 is the setting for ISA_DIR.
 1.15086 +#
 1.15087 +if test "x$HOST_OS" = xsolaris; then
 1.15088 +    LIBCXX="$LIBCXX /usr/lib${LEGACY_HOST_CPU3}/libCrun.so.1"
 1.15089 +fi
 1.15090 +
 1.15091 +
 1.15092 +
 1.15093 +###############################################################################
 1.15094 +#
 1.15095 +# Misc
 1.15096 +#
 1.15097 +
 1.15098 +# Control wether Hotspot runs Queens test after build.
 1.15099 +# Check whether --enable-hotspot-test-in-build was given.
 1.15100 +if test "${enable_hotspot_test_in_build+set}" = set; then :
 1.15101 +  enableval=$enable_hotspot_test_in_build;
 1.15102 +else
 1.15103 +  enable_hotspot_test_in_build=no
 1.15104 +fi
 1.15105 +
 1.15106 +if test "x$enable_hotspot_test_in_build" = "xyes"; then
 1.15107 +    TEST_IN_BUILD=true
 1.15108 +else
 1.15109 +    TEST_IN_BUILD=false
 1.15110 +fi
 1.15111 +
 1.15112 +
 1.15113 +###############################################################################
 1.15114 +#
 1.15115 +# A helpful message at the end of the configure run.
 1.15116 +#
 1.15117 +if test "x$CCACHE_FOUND" = x && test "x$GCC" = xyes; then
 1.15118 +    help_on_build_dependency ccache
 1.15119 +
 1.15120 +    printf "\nTip of the day:\nYou should really install ccache version 3.1.4 or newer.\n"
 1.15121 +    printf "It gives a tremendous speedup for C++ recompilations with precompiled headers!\n"
 1.15122 +fi
 1.15123 +
 1.15124 +if test "x$CCACHE_FOUND" != x && test "x$HAS_GOOD_CCACHE" = x; then
 1.15125 +    printf "You have a ccache installed, but it is a version prior to 3.1.4. Try upgrading.\n"
 1.15126 +fi
 1.15127 +
 1.15128 +cat >confcache <<\_ACEOF
 1.15129 +# This file is a shell script that caches the results of configure
 1.15130 +# tests run on this system so they can be shared between configure
 1.15131 +# scripts and configure runs, see configure's option --config-cache.
 1.15132 +# It is not useful on other systems.  If it contains results you don't
 1.15133 +# want to keep, you may remove or edit it.
 1.15134 +#
 1.15135 +# config.status only pays attention to the cache file if you give it
 1.15136 +# the --recheck option to rerun configure.
 1.15137 +#
 1.15138 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
 1.15139 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
 1.15140 +# following values.
 1.15141 +
 1.15142 +_ACEOF
 1.15143 +
 1.15144 +# The following way of writing the cache mishandles newlines in values,
 1.15145 +# but we know of no workaround that is simple, portable, and efficient.
 1.15146 +# So, we kill variables containing newlines.
 1.15147 +# Ultrix sh set writes to stderr and can't be redirected directly,
 1.15148 +# and sets the high bit in the cache file unless we assign to the vars.
 1.15149 +(
 1.15150 +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 1.15151 +    eval ac_val=\$$ac_var
 1.15152 +    case $ac_val in #(
 1.15153 +    *${as_nl}*)
 1.15154 +      case $ac_var in #(
 1.15155 +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 1.15156 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 1.15157 +      esac
 1.15158 +      case $ac_var in #(
 1.15159 +      _ | IFS | as_nl) ;; #(
 1.15160 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 1.15161 +      *) { eval $ac_var=; unset $ac_var;} ;;
 1.15162 +      esac ;;
 1.15163 +    esac
 1.15164 +  done
 1.15165 +
 1.15166 +  (set) 2>&1 |
 1.15167 +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 1.15168 +    *${as_nl}ac_space=\ *)
 1.15169 +      # `set' does not quote correctly, so add quotes: double-quote
 1.15170 +      # substitution turns \\\\ into \\, and sed turns \\ into \.
 1.15171 +      sed -n \
 1.15172 +	"s/'/'\\\\''/g;
 1.15173 +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 1.15174 +      ;; #(
 1.15175 +    *)
 1.15176 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
 1.15177 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 1.15178 +      ;;
 1.15179 +    esac |
 1.15180 +    sort
 1.15181 +) |
 1.15182 +  sed '
 1.15183 +     /^ac_cv_env_/b end
 1.15184 +     t clear
 1.15185 +     :clear
 1.15186 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 1.15187 +     t end
 1.15188 +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 1.15189 +     :end' >>confcache
 1.15190 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 1.15191 +  if test -w "$cache_file"; then
 1.15192 +    test "x$cache_file" != "x/dev/null" &&
 1.15193 +      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 1.15194 +$as_echo "$as_me: updating cache $cache_file" >&6;}
 1.15195 +    cat confcache >$cache_file
 1.15196 +  else
 1.15197 +    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 1.15198 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 1.15199 +  fi
 1.15200 +fi
 1.15201 +rm -f confcache
 1.15202 +
 1.15203 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
 1.15204 +# Let make expand exec_prefix.
 1.15205 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 1.15206 +
 1.15207 +DEFS=-DHAVE_CONFIG_H
 1.15208 +
 1.15209 +ac_libobjs=
 1.15210 +ac_ltlibobjs=
 1.15211 +U=
 1.15212 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 1.15213 +  # 1. Remove the extension, and $U if already installed.
 1.15214 +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 1.15215 +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 1.15216 +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 1.15217 +  #    will be set to the directory where LIBOBJS objects are built.
 1.15218 +  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 1.15219 +  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 1.15220 +done
 1.15221 +LIBOBJS=$ac_libobjs
 1.15222 +
 1.15223 +LTLIBOBJS=$ac_ltlibobjs
 1.15224 +
 1.15225 +
 1.15226 +
 1.15227 +: ${CONFIG_STATUS=./config.status}
 1.15228 +ac_write_fail=0
 1.15229 +ac_clean_files_save=$ac_clean_files
 1.15230 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 1.15231 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 1.15232 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 1.15233 +as_write_fail=0
 1.15234 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 1.15235 +#! $SHELL
 1.15236 +# Generated by $as_me.
 1.15237 +# Run this file to recreate the current configuration.
 1.15238 +# Compiler output produced by configure, useful for debugging
 1.15239 +# configure, is in config.log if it exists.
 1.15240 +
 1.15241 +debug=false
 1.15242 +ac_cs_recheck=false
 1.15243 +ac_cs_silent=false
 1.15244 +
 1.15245 +SHELL=\${CONFIG_SHELL-$SHELL}
 1.15246 +export SHELL
 1.15247 +_ASEOF
 1.15248 +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 1.15249 +## -------------------- ##
 1.15250 +## M4sh Initialization. ##
 1.15251 +## -------------------- ##
 1.15252 +
 1.15253 +# Be more Bourne compatible
 1.15254 +DUALCASE=1; export DUALCASE # for MKS sh
 1.15255 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 1.15256 +  emulate sh
 1.15257 +  NULLCMD=:
 1.15258 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 1.15259 +  # is contrary to our usage.  Disable this feature.
 1.15260 +  alias -g '${1+"$@"}'='"$@"'
 1.15261 +  setopt NO_GLOB_SUBST
 1.15262 +else
 1.15263 +  case `(set -o) 2>/dev/null` in #(
 1.15264 +  *posix*) :
 1.15265 +    set -o posix ;; #(
 1.15266 +  *) :
 1.15267 +     ;;
 1.15268 +esac
 1.15269 +fi
 1.15270 +
 1.15271 +
 1.15272 +as_nl='
 1.15273 +'
 1.15274 +export as_nl
 1.15275 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
 1.15276 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 1.15277 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 1.15278 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 1.15279 +# Prefer a ksh shell builtin over an external printf program on Solaris,
 1.15280 +# but without wasting forks for bash or zsh.
 1.15281 +if test -z "$BASH_VERSION$ZSH_VERSION" \
 1.15282 +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 1.15283 +  as_echo='print -r --'
 1.15284 +  as_echo_n='print -rn --'
 1.15285 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 1.15286 +  as_echo='printf %s\n'
 1.15287 +  as_echo_n='printf %s'
 1.15288 +else
 1.15289 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 1.15290 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 1.15291 +    as_echo_n='/usr/ucb/echo -n'
 1.15292 +  else
 1.15293 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 1.15294 +    as_echo_n_body='eval
 1.15295 +      arg=$1;
 1.15296 +      case $arg in #(
 1.15297 +      *"$as_nl"*)
 1.15298 +	expr "X$arg" : "X\\(.*\\)$as_nl";
 1.15299 +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 1.15300 +      esac;
 1.15301 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 1.15302 +    '
 1.15303 +    export as_echo_n_body
 1.15304 +    as_echo_n='sh -c $as_echo_n_body as_echo'
 1.15305 +  fi
 1.15306 +  export as_echo_body
 1.15307 +  as_echo='sh -c $as_echo_body as_echo'
 1.15308 +fi
 1.15309 +
 1.15310 +# The user is always right.
 1.15311 +if test "${PATH_SEPARATOR+set}" != set; then
 1.15312 +  PATH_SEPARATOR=:
 1.15313 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 1.15314 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 1.15315 +      PATH_SEPARATOR=';'
 1.15316 +  }
 1.15317 +fi
 1.15318 +
 1.15319 +
 1.15320 +# IFS
 1.15321 +# We need space, tab and new line, in precisely that order.  Quoting is
 1.15322 +# there to prevent editors from complaining about space-tab.
 1.15323 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 1.15324 +# splitting by setting IFS to empty value.)
 1.15325 +IFS=" ""	$as_nl"
 1.15326 +
 1.15327 +# Find who we are.  Look in the path if we contain no directory separator.
 1.15328 +case $0 in #((
 1.15329 +  *[\\/]* ) as_myself=$0 ;;
 1.15330 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1.15331 +for as_dir in $PATH
 1.15332 +do
 1.15333 +  IFS=$as_save_IFS
 1.15334 +  test -z "$as_dir" && as_dir=.
 1.15335 +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 1.15336 +  done
 1.15337 +IFS=$as_save_IFS
 1.15338 +
 1.15339 +     ;;
 1.15340 +esac
 1.15341 +# We did not find ourselves, most probably we were run as `sh COMMAND'
 1.15342 +# in which case we are not to be found in the path.
 1.15343 +if test "x$as_myself" = x; then
 1.15344 +  as_myself=$0
 1.15345 +fi
 1.15346 +if test ! -f "$as_myself"; then
 1.15347 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 1.15348 +  exit 1
 1.15349 +fi
 1.15350 +
 1.15351 +# Unset variables that we do not need and which cause bugs (e.g. in
 1.15352 +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 1.15353 +# suppresses any "Segmentation fault" message there.  '((' could
 1.15354 +# trigger a bug in pdksh 5.2.14.
 1.15355 +for as_var in BASH_ENV ENV MAIL MAILPATH
 1.15356 +do eval test x\${$as_var+set} = xset \
 1.15357 +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 1.15358 +done
 1.15359 +PS1='$ '
 1.15360 +PS2='> '
 1.15361 +PS4='+ '
 1.15362 +
 1.15363 +# NLS nuisances.
 1.15364 +LC_ALL=C
 1.15365 +export LC_ALL
 1.15366 +LANGUAGE=C
 1.15367 +export LANGUAGE
 1.15368 +
 1.15369 +# CDPATH.
 1.15370 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 1.15371 +
 1.15372 +
 1.15373 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
 1.15374 +# ----------------------------------------
 1.15375 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 1.15376 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 1.15377 +# script with STATUS, using 1 if that was 0.
 1.15378 +as_fn_error ()
 1.15379 +{
 1.15380 +  as_status=$1; test $as_status -eq 0 && as_status=1
 1.15381 +  if test "$4"; then
 1.15382 +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1.15383 +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 1.15384 +  fi
 1.15385 +  $as_echo "$as_me: error: $2" >&2
 1.15386 +  as_fn_exit $as_status
 1.15387 +} # as_fn_error
 1.15388 +
 1.15389 +
 1.15390 +# as_fn_set_status STATUS
 1.15391 +# -----------------------
 1.15392 +# Set $? to STATUS, without forking.
 1.15393 +as_fn_set_status ()
 1.15394 +{
 1.15395 +  return $1
 1.15396 +} # as_fn_set_status
 1.15397 +
 1.15398 +# as_fn_exit STATUS
 1.15399 +# -----------------
 1.15400 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 1.15401 +as_fn_exit ()
 1.15402 +{
 1.15403 +  set +e
 1.15404 +  as_fn_set_status $1
 1.15405 +  exit $1
 1.15406 +} # as_fn_exit
 1.15407 +
 1.15408 +# as_fn_unset VAR
 1.15409 +# ---------------
 1.15410 +# Portably unset VAR.
 1.15411 +as_fn_unset ()
 1.15412 +{
 1.15413 +  { eval $1=; unset $1;}
 1.15414 +}
 1.15415 +as_unset=as_fn_unset
 1.15416 +# as_fn_append VAR VALUE
 1.15417 +# ----------------------
 1.15418 +# Append the text in VALUE to the end of the definition contained in VAR. Take
 1.15419 +# advantage of any shell optimizations that allow amortized linear growth over
 1.15420 +# repeated appends, instead of the typical quadratic growth present in naive
 1.15421 +# implementations.
 1.15422 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 1.15423 +  eval 'as_fn_append ()
 1.15424 +  {
 1.15425 +    eval $1+=\$2
 1.15426 +  }'
 1.15427 +else
 1.15428 +  as_fn_append ()
 1.15429 +  {
 1.15430 +    eval $1=\$$1\$2
 1.15431 +  }
 1.15432 +fi # as_fn_append
 1.15433 +
 1.15434 +# as_fn_arith ARG...
 1.15435 +# ------------------
 1.15436 +# Perform arithmetic evaluation on the ARGs, and store the result in the
 1.15437 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
 1.15438 +# must be portable across $(()) and expr.
 1.15439 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 1.15440 +  eval 'as_fn_arith ()
 1.15441 +  {
 1.15442 +    as_val=$(( $* ))
 1.15443 +  }'
 1.15444 +else
 1.15445 +  as_fn_arith ()
 1.15446 +  {
 1.15447 +    as_val=`expr "$@" || test $? -eq 1`
 1.15448 +  }
 1.15449 +fi # as_fn_arith
 1.15450 +
 1.15451 +
 1.15452 +if expr a : '\(a\)' >/dev/null 2>&1 &&
 1.15453 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 1.15454 +  as_expr=expr
 1.15455 +else
 1.15456 +  as_expr=false
 1.15457 +fi
 1.15458 +
 1.15459 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 1.15460 +  as_basename=basename
 1.15461 +else
 1.15462 +  as_basename=false
 1.15463 +fi
 1.15464 +
 1.15465 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 1.15466 +  as_dirname=dirname
 1.15467 +else
 1.15468 +  as_dirname=false
 1.15469 +fi
 1.15470 +
 1.15471 +as_me=`$as_basename -- "$0" ||
 1.15472 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 1.15473 +	 X"$0" : 'X\(//\)$' \| \
 1.15474 +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 1.15475 +$as_echo X/"$0" |
 1.15476 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
 1.15477 +	    s//\1/
 1.15478 +	    q
 1.15479 +	  }
 1.15480 +	  /^X\/\(\/\/\)$/{
 1.15481 +	    s//\1/
 1.15482 +	    q
 1.15483 +	  }
 1.15484 +	  /^X\/\(\/\).*/{
 1.15485 +	    s//\1/
 1.15486 +	    q
 1.15487 +	  }
 1.15488 +	  s/.*/./; q'`
 1.15489 +
 1.15490 +# Avoid depending upon Character Ranges.
 1.15491 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 1.15492 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 1.15493 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 1.15494 +as_cr_digits='0123456789'
 1.15495 +as_cr_alnum=$as_cr_Letters$as_cr_digits
 1.15496 +
 1.15497 +ECHO_C= ECHO_N= ECHO_T=
 1.15498 +case `echo -n x` in #(((((
 1.15499 +-n*)
 1.15500 +  case `echo 'xy\c'` in
 1.15501 +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 1.15502 +  xy)  ECHO_C='\c';;
 1.15503 +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 1.15504 +       ECHO_T='	';;
 1.15505 +  esac;;
 1.15506 +*)
 1.15507 +  ECHO_N='-n';;
 1.15508 +esac
 1.15509 +
 1.15510 +rm -f conf$$ conf$$.exe conf$$.file
 1.15511 +if test -d conf$$.dir; then
 1.15512 +  rm -f conf$$.dir/conf$$.file
 1.15513 +else
 1.15514 +  rm -f conf$$.dir
 1.15515 +  mkdir conf$$.dir 2>/dev/null
 1.15516 +fi
 1.15517 +if (echo >conf$$.file) 2>/dev/null; then
 1.15518 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
 1.15519 +    as_ln_s='ln -s'
 1.15520 +    # ... but there are two gotchas:
 1.15521 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 1.15522 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 1.15523 +    # In both cases, we have to default to `cp -p'.
 1.15524 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 1.15525 +      as_ln_s='cp -p'
 1.15526 +  elif ln conf$$.file conf$$ 2>/dev/null; then
 1.15527 +    as_ln_s=ln
 1.15528 +  else
 1.15529 +    as_ln_s='cp -p'
 1.15530 +  fi
 1.15531 +else
 1.15532 +  as_ln_s='cp -p'
 1.15533 +fi
 1.15534 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 1.15535 +rmdir conf$$.dir 2>/dev/null
 1.15536 +
 1.15537 +
 1.15538 +# as_fn_mkdir_p
 1.15539 +# -------------
 1.15540 +# Create "$as_dir" as a directory, including parents if necessary.
 1.15541 +as_fn_mkdir_p ()
 1.15542 +{
 1.15543 +
 1.15544 +  case $as_dir in #(
 1.15545 +  -*) as_dir=./$as_dir;;
 1.15546 +  esac
 1.15547 +  test -d "$as_dir" || eval $as_mkdir_p || {
 1.15548 +    as_dirs=
 1.15549 +    while :; do
 1.15550 +      case $as_dir in #(
 1.15551 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 1.15552 +      *) as_qdir=$as_dir;;
 1.15553 +      esac
 1.15554 +      as_dirs="'$as_qdir' $as_dirs"
 1.15555 +      as_dir=`$as_dirname -- "$as_dir" ||
 1.15556 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1.15557 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
 1.15558 +	 X"$as_dir" : 'X\(//\)$' \| \
 1.15559 +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 1.15560 +$as_echo X"$as_dir" |
 1.15561 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1.15562 +	    s//\1/
 1.15563 +	    q
 1.15564 +	  }
 1.15565 +	  /^X\(\/\/\)[^/].*/{
 1.15566 +	    s//\1/
 1.15567 +	    q
 1.15568 +	  }
 1.15569 +	  /^X\(\/\/\)$/{
 1.15570 +	    s//\1/
 1.15571 +	    q
 1.15572 +	  }
 1.15573 +	  /^X\(\/\).*/{
 1.15574 +	    s//\1/
 1.15575 +	    q
 1.15576 +	  }
 1.15577 +	  s/.*/./; q'`
 1.15578 +      test -d "$as_dir" && break
 1.15579 +    done
 1.15580 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
 1.15581 +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 1.15582 +
 1.15583 +
 1.15584 +} # as_fn_mkdir_p
 1.15585 +if mkdir -p . 2>/dev/null; then
 1.15586 +  as_mkdir_p='mkdir -p "$as_dir"'
 1.15587 +else
 1.15588 +  test -d ./-p && rmdir ./-p
 1.15589 +  as_mkdir_p=false
 1.15590 +fi
 1.15591 +
 1.15592 +if test -x / >/dev/null 2>&1; then
 1.15593 +  as_test_x='test -x'
 1.15594 +else
 1.15595 +  if ls -dL / >/dev/null 2>&1; then
 1.15596 +    as_ls_L_option=L
 1.15597 +  else
 1.15598 +    as_ls_L_option=
 1.15599 +  fi
 1.15600 +  as_test_x='
 1.15601 +    eval sh -c '\''
 1.15602 +      if test -d "$1"; then
 1.15603 +	test -d "$1/.";
 1.15604 +      else
 1.15605 +	case $1 in #(
 1.15606 +	-*)set "./$1";;
 1.15607 +	esac;
 1.15608 +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 1.15609 +	???[sx]*):;;*)false;;esac;fi
 1.15610 +    '\'' sh
 1.15611 +  '
 1.15612 +fi
 1.15613 +as_executable_p=$as_test_x
 1.15614 +
 1.15615 +# Sed expression to map a string onto a valid CPP name.
 1.15616 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 1.15617 +
 1.15618 +# Sed expression to map a string onto a valid variable name.
 1.15619 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 1.15620 +
 1.15621 +
 1.15622 +exec 6>&1
 1.15623 +## ----------------------------------- ##
 1.15624 +## Main body of $CONFIG_STATUS script. ##
 1.15625 +## ----------------------------------- ##
 1.15626 +_ASEOF
 1.15627 +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 1.15628 +
 1.15629 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.15630 +# Save the log message, to keep $0 and so on meaningful, and to
 1.15631 +# report actual input values of CONFIG_FILES etc. instead of their
 1.15632 +# values after options handling.
 1.15633 +ac_log="
 1.15634 +This file was extended by openjdk $as_me version-0.1, which was
 1.15635 +generated by GNU Autoconf 2.67.  Invocation command line was
 1.15636 +
 1.15637 +  CONFIG_FILES    = $CONFIG_FILES
 1.15638 +  CONFIG_HEADERS  = $CONFIG_HEADERS
 1.15639 +  CONFIG_LINKS    = $CONFIG_LINKS
 1.15640 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
 1.15641 +  $ $0 $@
 1.15642 +
 1.15643 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
 1.15644 +"
 1.15645 +
 1.15646 +_ACEOF
 1.15647 +
 1.15648 +case $ac_config_files in *"
 1.15649 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
 1.15650 +esac
 1.15651 +
 1.15652 +case $ac_config_headers in *"
 1.15653 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 1.15654 +esac
 1.15655 +
 1.15656 +
 1.15657 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.15658 +# Files that config.status was made for.
 1.15659 +config_files="$ac_config_files"
 1.15660 +config_headers="$ac_config_headers"
 1.15661 +
 1.15662 +_ACEOF
 1.15663 +
 1.15664 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.15665 +ac_cs_usage="\
 1.15666 +\`$as_me' instantiates files and other configuration actions
 1.15667 +from templates according to the current configuration.  Unless the files
 1.15668 +and actions are specified as TAGs, all are instantiated by default.
 1.15669 +
 1.15670 +Usage: $0 [OPTION]... [TAG]...
 1.15671 +
 1.15672 +  -h, --help       print this help, then exit
 1.15673 +  -V, --version    print version number and configuration settings, then exit
 1.15674 +      --config     print configuration, then exit
 1.15675 +  -q, --quiet, --silent
 1.15676 +                   do not print progress messages
 1.15677 +  -d, --debug      don't remove temporary files
 1.15678 +      --recheck    update $as_me by reconfiguring in the same conditions
 1.15679 +      --file=FILE[:TEMPLATE]
 1.15680 +                   instantiate the configuration file FILE
 1.15681 +      --header=FILE[:TEMPLATE]
 1.15682 +                   instantiate the configuration header FILE
 1.15683 +
 1.15684 +Configuration files:
 1.15685 +$config_files
 1.15686 +
 1.15687 +Configuration headers:
 1.15688 +$config_headers
 1.15689 +
 1.15690 +Report bugs to <build-infra-dev@openjdk.java.net>."
 1.15691 +
 1.15692 +_ACEOF
 1.15693 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.15694 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 1.15695 +ac_cs_version="\\
 1.15696 +openjdk config.status version-0.1
 1.15697 +configured by $0, generated by GNU Autoconf 2.67,
 1.15698 +  with options \\"\$ac_cs_config\\"
 1.15699 +
 1.15700 +Copyright (C) 2010 Free Software Foundation, Inc.
 1.15701 +This config.status script is free software; the Free Software Foundation
 1.15702 +gives unlimited permission to copy, distribute and modify it."
 1.15703 +
 1.15704 +ac_pwd='$ac_pwd'
 1.15705 +srcdir='$srcdir'
 1.15706 +AWK='$AWK'
 1.15707 +test -n "\$AWK" || AWK=awk
 1.15708 +_ACEOF
 1.15709 +
 1.15710 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.15711 +# The default lists apply if the user does not specify any file.
 1.15712 +ac_need_defaults=:
 1.15713 +while test $# != 0
 1.15714 +do
 1.15715 +  case $1 in
 1.15716 +  --*=?*)
 1.15717 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 1.15718 +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 1.15719 +    ac_shift=:
 1.15720 +    ;;
 1.15721 +  --*=)
 1.15722 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 1.15723 +    ac_optarg=
 1.15724 +    ac_shift=:
 1.15725 +    ;;
 1.15726 +  *)
 1.15727 +    ac_option=$1
 1.15728 +    ac_optarg=$2
 1.15729 +    ac_shift=shift
 1.15730 +    ;;
 1.15731 +  esac
 1.15732 +
 1.15733 +  case $ac_option in
 1.15734 +  # Handling of the options.
 1.15735 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 1.15736 +    ac_cs_recheck=: ;;
 1.15737 +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 1.15738 +    $as_echo "$ac_cs_version"; exit ;;
 1.15739 +  --config | --confi | --conf | --con | --co | --c )
 1.15740 +    $as_echo "$ac_cs_config"; exit ;;
 1.15741 +  --debug | --debu | --deb | --de | --d | -d )
 1.15742 +    debug=: ;;
 1.15743 +  --file | --fil | --fi | --f )
 1.15744 +    $ac_shift
 1.15745 +    case $ac_optarg in
 1.15746 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1.15747 +    '') as_fn_error $? "missing file argument" ;;
 1.15748 +    esac
 1.15749 +    as_fn_append CONFIG_FILES " '$ac_optarg'"
 1.15750 +    ac_need_defaults=false;;
 1.15751 +  --header | --heade | --head | --hea )
 1.15752 +    $ac_shift
 1.15753 +    case $ac_optarg in
 1.15754 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1.15755 +    esac
 1.15756 +    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 1.15757 +    ac_need_defaults=false;;
 1.15758 +  --he | --h)
 1.15759 +    # Conflict between --help and --header
 1.15760 +    as_fn_error $? "ambiguous option: \`$1'
 1.15761 +Try \`$0 --help' for more information.";;
 1.15762 +  --help | --hel | -h )
 1.15763 +    $as_echo "$ac_cs_usage"; exit ;;
 1.15764 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1.15765 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 1.15766 +    ac_cs_silent=: ;;
 1.15767 +
 1.15768 +  # This is an error.
 1.15769 +  -*) as_fn_error $? "unrecognized option: \`$1'
 1.15770 +Try \`$0 --help' for more information." ;;
 1.15771 +
 1.15772 +  *) as_fn_append ac_config_targets " $1"
 1.15773 +     ac_need_defaults=false ;;
 1.15774 +
 1.15775 +  esac
 1.15776 +  shift
 1.15777 +done
 1.15778 +
 1.15779 +ac_configure_extra_args=
 1.15780 +
 1.15781 +if $ac_cs_silent; then
 1.15782 +  exec 6>/dev/null
 1.15783 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
 1.15784 +fi
 1.15785 +
 1.15786 +_ACEOF
 1.15787 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.15788 +if \$ac_cs_recheck; then
 1.15789 +  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 1.15790 +  shift
 1.15791 +  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 1.15792 +  CONFIG_SHELL='$SHELL'
 1.15793 +  export CONFIG_SHELL
 1.15794 +  exec "\$@"
 1.15795 +fi
 1.15796 +
 1.15797 +_ACEOF
 1.15798 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.15799 +exec 5>>config.log
 1.15800 +{
 1.15801 +  echo
 1.15802 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 1.15803 +## Running $as_me. ##
 1.15804 +_ASBOX
 1.15805 +  $as_echo "$ac_log"
 1.15806 +} >&5
 1.15807 +
 1.15808 +_ACEOF
 1.15809 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.15810 +_ACEOF
 1.15811 +
 1.15812 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.15813 +
 1.15814 +# Handling of arguments.
 1.15815 +for ac_config_target in $ac_config_targets
 1.15816 +do
 1.15817 +  case $ac_config_target in
 1.15818 +    "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
 1.15819 +    "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
 1.15820 +    "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
 1.15821 +
 1.15822 +  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 1.15823 +  esac
 1.15824 +done
 1.15825 +
 1.15826 +
 1.15827 +# If the user did not use the arguments to specify the items to instantiate,
 1.15828 +# then the envvar interface is used.  Set only those that are not.
 1.15829 +# We use the long form for the default assignment because of an extremely
 1.15830 +# bizarre bug on SunOS 4.1.3.
 1.15831 +if $ac_need_defaults; then
 1.15832 +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 1.15833 +  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 1.15834 +fi
 1.15835 +
 1.15836 +# Have a temporary directory for convenience.  Make it in the build tree
 1.15837 +# simply because there is no reason against having it here, and in addition,
 1.15838 +# creating and moving files from /tmp can sometimes cause problems.
 1.15839 +# Hook for its removal unless debugging.
 1.15840 +# Note that there is a small window in which the directory will not be cleaned:
 1.15841 +# after its creation but before its name has been assigned to `$tmp'.
 1.15842 +$debug ||
 1.15843 +{
 1.15844 +  tmp=
 1.15845 +  trap 'exit_status=$?
 1.15846 +  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 1.15847 +' 0
 1.15848 +  trap 'as_fn_exit 1' 1 2 13 15
 1.15849 +}
 1.15850 +# Create a (secure) tmp directory for tmp files.
 1.15851 +
 1.15852 +{
 1.15853 +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 1.15854 +  test -n "$tmp" && test -d "$tmp"
 1.15855 +}  ||
 1.15856 +{
 1.15857 +  tmp=./conf$$-$RANDOM
 1.15858 +  (umask 077 && mkdir "$tmp")
 1.15859 +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 1.15860 +
 1.15861 +# Set up the scripts for CONFIG_FILES section.
 1.15862 +# No need to generate them if there are no CONFIG_FILES.
 1.15863 +# This happens for instance with `./config.status config.h'.
 1.15864 +if test -n "$CONFIG_FILES"; then
 1.15865 +
 1.15866 +
 1.15867 +ac_cr=`echo X | tr X '\015'`
 1.15868 +# On cygwin, bash can eat \r inside `` if the user requested igncr.
 1.15869 +# But we know of no other shell where ac_cr would be empty at this
 1.15870 +# point, so we can use a bashism as a fallback.
 1.15871 +if test "x$ac_cr" = x; then
 1.15872 +  eval ac_cr=\$\'\\r\'
 1.15873 +fi
 1.15874 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 1.15875 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 1.15876 +  ac_cs_awk_cr='\\r'
 1.15877 +else
 1.15878 +  ac_cs_awk_cr=$ac_cr
 1.15879 +fi
 1.15880 +
 1.15881 +echo 'BEGIN {' >"$tmp/subs1.awk" &&
 1.15882 +_ACEOF
 1.15883 +
 1.15884 +
 1.15885 +{
 1.15886 +  echo "cat >conf$$subs.awk <<_ACEOF" &&
 1.15887 +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 1.15888 +  echo "_ACEOF"
 1.15889 +} >conf$$subs.sh ||
 1.15890 +  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 1.15891 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 1.15892 +ac_delim='%!_!# '
 1.15893 +for ac_last_try in false false false false false :; do
 1.15894 +  . ./conf$$subs.sh ||
 1.15895 +    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 1.15896 +
 1.15897 +  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 1.15898 +  if test $ac_delim_n = $ac_delim_num; then
 1.15899 +    break
 1.15900 +  elif $ac_last_try; then
 1.15901 +    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 1.15902 +  else
 1.15903 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 1.15904 +  fi
 1.15905 +done
 1.15906 +rm -f conf$$subs.sh
 1.15907 +
 1.15908 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.15909 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 1.15910 +_ACEOF
 1.15911 +sed -n '
 1.15912 +h
 1.15913 +s/^/S["/; s/!.*/"]=/
 1.15914 +p
 1.15915 +g
 1.15916 +s/^[^!]*!//
 1.15917 +:repl
 1.15918 +t repl
 1.15919 +s/'"$ac_delim"'$//
 1.15920 +t delim
 1.15921 +:nl
 1.15922 +h
 1.15923 +s/\(.\{148\}\)..*/\1/
 1.15924 +t more1
 1.15925 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 1.15926 +p
 1.15927 +n
 1.15928 +b repl
 1.15929 +:more1
 1.15930 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 1.15931 +p
 1.15932 +g
 1.15933 +s/.\{148\}//
 1.15934 +t nl
 1.15935 +:delim
 1.15936 +h
 1.15937 +s/\(.\{148\}\)..*/\1/
 1.15938 +t more2
 1.15939 +s/["\\]/\\&/g; s/^/"/; s/$/"/
 1.15940 +p
 1.15941 +b
 1.15942 +:more2
 1.15943 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 1.15944 +p
 1.15945 +g
 1.15946 +s/.\{148\}//
 1.15947 +t delim
 1.15948 +' <conf$$subs.awk | sed '
 1.15949 +/^[^""]/{
 1.15950 +  N
 1.15951 +  s/\n//
 1.15952 +}
 1.15953 +' >>$CONFIG_STATUS || ac_write_fail=1
 1.15954 +rm -f conf$$subs.awk
 1.15955 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.15956 +_ACAWK
 1.15957 +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 1.15958 +  for (key in S) S_is_set[key] = 1
 1.15959 +  FS = ""
 1.15960 +
 1.15961 +}
 1.15962 +{
 1.15963 +  line = $ 0
 1.15964 +  nfields = split(line, field, "@")
 1.15965 +  substed = 0
 1.15966 +  len = length(field[1])
 1.15967 +  for (i = 2; i < nfields; i++) {
 1.15968 +    key = field[i]
 1.15969 +    keylen = length(key)
 1.15970 +    if (S_is_set[key]) {
 1.15971 +      value = S[key]
 1.15972 +      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 1.15973 +      len += length(value) + length(field[++i])
 1.15974 +      substed = 1
 1.15975 +    } else
 1.15976 +      len += 1 + keylen
 1.15977 +  }
 1.15978 +
 1.15979 +  print line
 1.15980 +}
 1.15981 +
 1.15982 +_ACAWK
 1.15983 +_ACEOF
 1.15984 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.15985 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 1.15986 +  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 1.15987 +else
 1.15988 +  cat
 1.15989 +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 1.15990 +  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 1.15991 +_ACEOF
 1.15992 +
 1.15993 +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 1.15994 +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 1.15995 +# trailing colons and then remove the whole line if VPATH becomes empty
 1.15996 +# (actually we leave an empty line to preserve line numbers).
 1.15997 +if test "x$srcdir" = x.; then
 1.15998 +  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
 1.15999 +h
 1.16000 +s///
 1.16001 +s/^/:/
 1.16002 +s/[	 ]*$/:/
 1.16003 +s/:\$(srcdir):/:/g
 1.16004 +s/:\${srcdir}:/:/g
 1.16005 +s/:@srcdir@:/:/g
 1.16006 +s/^:*//
 1.16007 +s/:*$//
 1.16008 +x
 1.16009 +s/\(=[	 ]*\).*/\1/
 1.16010 +G
 1.16011 +s/\n//
 1.16012 +s/^[^=]*=[	 ]*$//
 1.16013 +}'
 1.16014 +fi
 1.16015 +
 1.16016 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.16017 +fi # test -n "$CONFIG_FILES"
 1.16018 +
 1.16019 +# Set up the scripts for CONFIG_HEADERS section.
 1.16020 +# No need to generate them if there are no CONFIG_HEADERS.
 1.16021 +# This happens for instance with `./config.status Makefile'.
 1.16022 +if test -n "$CONFIG_HEADERS"; then
 1.16023 +cat >"$tmp/defines.awk" <<\_ACAWK ||
 1.16024 +BEGIN {
 1.16025 +_ACEOF
 1.16026 +
 1.16027 +# Transform confdefs.h into an awk script `defines.awk', embedded as
 1.16028 +# here-document in config.status, that substitutes the proper values into
 1.16029 +# config.h.in to produce config.h.
 1.16030 +
 1.16031 +# Create a delimiter string that does not exist in confdefs.h, to ease
 1.16032 +# handling of long lines.
 1.16033 +ac_delim='%!_!# '
 1.16034 +for ac_last_try in false false :; do
 1.16035 +  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 1.16036 +  if test -z "$ac_t"; then
 1.16037 +    break
 1.16038 +  elif $ac_last_try; then
 1.16039 +    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 1.16040 +  else
 1.16041 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 1.16042 +  fi
 1.16043 +done
 1.16044 +
 1.16045 +# For the awk script, D is an array of macro values keyed by name,
 1.16046 +# likewise P contains macro parameters if any.  Preserve backslash
 1.16047 +# newline sequences.
 1.16048 +
 1.16049 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 1.16050 +sed -n '
 1.16051 +s/.\{148\}/&'"$ac_delim"'/g
 1.16052 +t rset
 1.16053 +:rset
 1.16054 +s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 1.16055 +t def
 1.16056 +d
 1.16057 +:def
 1.16058 +s/\\$//
 1.16059 +t bsnl
 1.16060 +s/["\\]/\\&/g
 1.16061 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 1.16062 +D["\1"]=" \3"/p
 1.16063 +s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 1.16064 +d
 1.16065 +:bsnl
 1.16066 +s/["\\]/\\&/g
 1.16067 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 1.16068 +D["\1"]=" \3\\\\\\n"\\/p
 1.16069 +t cont
 1.16070 +s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 1.16071 +t cont
 1.16072 +d
 1.16073 +:cont
 1.16074 +n
 1.16075 +s/.\{148\}/&'"$ac_delim"'/g
 1.16076 +t clear
 1.16077 +:clear
 1.16078 +s/\\$//
 1.16079 +t bsnlc
 1.16080 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
 1.16081 +d
 1.16082 +:bsnlc
 1.16083 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 1.16084 +b cont
 1.16085 +' <confdefs.h | sed '
 1.16086 +s/'"$ac_delim"'/"\\\
 1.16087 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
 1.16088 +
 1.16089 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.16090 +  for (key in D) D_is_set[key] = 1
 1.16091 +  FS = ""
 1.16092 +}
 1.16093 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 1.16094 +  line = \$ 0
 1.16095 +  split(line, arg, " ")
 1.16096 +  if (arg[1] == "#") {
 1.16097 +    defundef = arg[2]
 1.16098 +    mac1 = arg[3]
 1.16099 +  } else {
 1.16100 +    defundef = substr(arg[1], 2)
 1.16101 +    mac1 = arg[2]
 1.16102 +  }
 1.16103 +  split(mac1, mac2, "(") #)
 1.16104 +  macro = mac2[1]
 1.16105 +  prefix = substr(line, 1, index(line, defundef) - 1)
 1.16106 +  if (D_is_set[macro]) {
 1.16107 +    # Preserve the white space surrounding the "#".
 1.16108 +    print prefix "define", macro P[macro] D[macro]
 1.16109 +    next
 1.16110 +  } else {
 1.16111 +    # Replace #undef with comments.  This is necessary, for example,
 1.16112 +    # in the case of _POSIX_SOURCE, which is predefined and required
 1.16113 +    # on some systems where configure will not decide to define it.
 1.16114 +    if (defundef == "undef") {
 1.16115 +      print "/*", prefix defundef, macro, "*/"
 1.16116 +      next
 1.16117 +    }
 1.16118 +  }
 1.16119 +}
 1.16120 +{ print }
 1.16121 +_ACAWK
 1.16122 +_ACEOF
 1.16123 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.16124 +  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 1.16125 +fi # test -n "$CONFIG_HEADERS"
 1.16126 +
 1.16127 +
 1.16128 +eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 1.16129 +shift
 1.16130 +for ac_tag
 1.16131 +do
 1.16132 +  case $ac_tag in
 1.16133 +  :[FHLC]) ac_mode=$ac_tag; continue;;
 1.16134 +  esac
 1.16135 +  case $ac_mode$ac_tag in
 1.16136 +  :[FHL]*:*);;
 1.16137 +  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 1.16138 +  :[FH]-) ac_tag=-:-;;
 1.16139 +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 1.16140 +  esac
 1.16141 +  ac_save_IFS=$IFS
 1.16142 +  IFS=:
 1.16143 +  set x $ac_tag
 1.16144 +  IFS=$ac_save_IFS
 1.16145 +  shift
 1.16146 +  ac_file=$1
 1.16147 +  shift
 1.16148 +
 1.16149 +  case $ac_mode in
 1.16150 +  :L) ac_source=$1;;
 1.16151 +  :[FH])
 1.16152 +    ac_file_inputs=
 1.16153 +    for ac_f
 1.16154 +    do
 1.16155 +      case $ac_f in
 1.16156 +      -) ac_f="$tmp/stdin";;
 1.16157 +      *) # Look for the file first in the build tree, then in the source tree
 1.16158 +	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 1.16159 +	 # because $ac_f cannot contain `:'.
 1.16160 +	 test -f "$ac_f" ||
 1.16161 +	   case $ac_f in
 1.16162 +	   [\\/$]*) false;;
 1.16163 +	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 1.16164 +	   esac ||
 1.16165 +	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 1.16166 +      esac
 1.16167 +      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 1.16168 +      as_fn_append ac_file_inputs " '$ac_f'"
 1.16169 +    done
 1.16170 +
 1.16171 +    # Let's still pretend it is `configure' which instantiates (i.e., don't
 1.16172 +    # use $as_me), people would be surprised to read:
 1.16173 +    #    /* config.h.  Generated by config.status.  */
 1.16174 +    configure_input='Generated from '`
 1.16175 +	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 1.16176 +	`' by configure.'
 1.16177 +    if test x"$ac_file" != x-; then
 1.16178 +      configure_input="$ac_file.  $configure_input"
 1.16179 +      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 1.16180 +$as_echo "$as_me: creating $ac_file" >&6;}
 1.16181 +    fi
 1.16182 +    # Neutralize special characters interpreted by sed in replacement strings.
 1.16183 +    case $configure_input in #(
 1.16184 +    *\&* | *\|* | *\\* )
 1.16185 +       ac_sed_conf_input=`$as_echo "$configure_input" |
 1.16186 +       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 1.16187 +    *) ac_sed_conf_input=$configure_input;;
 1.16188 +    esac
 1.16189 +
 1.16190 +    case $ac_tag in
 1.16191 +    *:-:* | *:-) cat >"$tmp/stdin" \
 1.16192 +      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 1.16193 +    esac
 1.16194 +    ;;
 1.16195 +  esac
 1.16196 +
 1.16197 +  ac_dir=`$as_dirname -- "$ac_file" ||
 1.16198 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1.16199 +	 X"$ac_file" : 'X\(//\)[^/]' \| \
 1.16200 +	 X"$ac_file" : 'X\(//\)$' \| \
 1.16201 +	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 1.16202 +$as_echo X"$ac_file" |
 1.16203 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1.16204 +	    s//\1/
 1.16205 +	    q
 1.16206 +	  }
 1.16207 +	  /^X\(\/\/\)[^/].*/{
 1.16208 +	    s//\1/
 1.16209 +	    q
 1.16210 +	  }
 1.16211 +	  /^X\(\/\/\)$/{
 1.16212 +	    s//\1/
 1.16213 +	    q
 1.16214 +	  }
 1.16215 +	  /^X\(\/\).*/{
 1.16216 +	    s//\1/
 1.16217 +	    q
 1.16218 +	  }
 1.16219 +	  s/.*/./; q'`
 1.16220 +  as_dir="$ac_dir"; as_fn_mkdir_p
 1.16221 +  ac_builddir=.
 1.16222 +
 1.16223 +case "$ac_dir" in
 1.16224 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1.16225 +*)
 1.16226 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1.16227 +  # A ".." for each directory in $ac_dir_suffix.
 1.16228 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1.16229 +  case $ac_top_builddir_sub in
 1.16230 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1.16231 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1.16232 +  esac ;;
 1.16233 +esac
 1.16234 +ac_abs_top_builddir=$ac_pwd
 1.16235 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1.16236 +# for backward compatibility:
 1.16237 +ac_top_builddir=$ac_top_build_prefix
 1.16238 +
 1.16239 +case $srcdir in
 1.16240 +  .)  # We are building in place.
 1.16241 +    ac_srcdir=.
 1.16242 +    ac_top_srcdir=$ac_top_builddir_sub
 1.16243 +    ac_abs_top_srcdir=$ac_pwd ;;
 1.16244 +  [\\/]* | ?:[\\/]* )  # Absolute name.
 1.16245 +    ac_srcdir=$srcdir$ac_dir_suffix;
 1.16246 +    ac_top_srcdir=$srcdir
 1.16247 +    ac_abs_top_srcdir=$srcdir ;;
 1.16248 +  *) # Relative name.
 1.16249 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1.16250 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
 1.16251 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1.16252 +esac
 1.16253 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1.16254 +
 1.16255 +
 1.16256 +  case $ac_mode in
 1.16257 +  :F)
 1.16258 +  #
 1.16259 +  # CONFIG_FILE
 1.16260 +  #
 1.16261 +
 1.16262 +_ACEOF
 1.16263 +
 1.16264 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.16265 +# If the template does not know about datarootdir, expand it.
 1.16266 +# FIXME: This hack should be removed a few years after 2.60.
 1.16267 +ac_datarootdir_hack=; ac_datarootdir_seen=
 1.16268 +ac_sed_dataroot='
 1.16269 +/datarootdir/ {
 1.16270 +  p
 1.16271 +  q
 1.16272 +}
 1.16273 +/@datadir@/p
 1.16274 +/@docdir@/p
 1.16275 +/@infodir@/p
 1.16276 +/@localedir@/p
 1.16277 +/@mandir@/p'
 1.16278 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 1.16279 +*datarootdir*) ac_datarootdir_seen=yes;;
 1.16280 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 1.16281 +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 1.16282 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 1.16283 +_ACEOF
 1.16284 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.16285 +  ac_datarootdir_hack='
 1.16286 +  s&@datadir@&$datadir&g
 1.16287 +  s&@docdir@&$docdir&g
 1.16288 +  s&@infodir@&$infodir&g
 1.16289 +  s&@localedir@&$localedir&g
 1.16290 +  s&@mandir@&$mandir&g
 1.16291 +  s&\\\${datarootdir}&$datarootdir&g' ;;
 1.16292 +esac
 1.16293 +_ACEOF
 1.16294 +
 1.16295 +# Neutralize VPATH when `$srcdir' = `.'.
 1.16296 +# Shell code in configure.ac might set extrasub.
 1.16297 +# FIXME: do we really want to maintain this feature?
 1.16298 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 1.16299 +ac_sed_extra="$ac_vpsub
 1.16300 +$extrasub
 1.16301 +_ACEOF
 1.16302 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 1.16303 +:t
 1.16304 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 1.16305 +s|@configure_input@|$ac_sed_conf_input|;t t
 1.16306 +s&@top_builddir@&$ac_top_builddir_sub&;t t
 1.16307 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
 1.16308 +s&@srcdir@&$ac_srcdir&;t t
 1.16309 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
 1.16310 +s&@top_srcdir@&$ac_top_srcdir&;t t
 1.16311 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 1.16312 +s&@builddir@&$ac_builddir&;t t
 1.16313 +s&@abs_builddir@&$ac_abs_builddir&;t t
 1.16314 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 1.16315 +$ac_datarootdir_hack
 1.16316 +"
 1.16317 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 1.16318 +  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 1.16319 +
 1.16320 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 1.16321 +  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 1.16322 +  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 1.16323 +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 1.16324 +which seems to be undefined.  Please make sure it is defined" >&5
 1.16325 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 1.16326 +which seems to be undefined.  Please make sure it is defined" >&2;}
 1.16327 +
 1.16328 +  rm -f "$tmp/stdin"
 1.16329 +  case $ac_file in
 1.16330 +  -) cat "$tmp/out" && rm -f "$tmp/out";;
 1.16331 +  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 1.16332 +  esac \
 1.16333 +  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 1.16334 + ;;
 1.16335 +  :H)
 1.16336 +  #
 1.16337 +  # CONFIG_HEADER
 1.16338 +  #
 1.16339 +  if test x"$ac_file" != x-; then
 1.16340 +    {
 1.16341 +      $as_echo "/* $configure_input  */" \
 1.16342 +      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 1.16343 +    } >"$tmp/config.h" \
 1.16344 +      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 1.16345 +    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 1.16346 +      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 1.16347 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
 1.16348 +    else
 1.16349 +      rm -f "$ac_file"
 1.16350 +      mv "$tmp/config.h" "$ac_file" \
 1.16351 +	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
 1.16352 +    fi
 1.16353 +  else
 1.16354 +    $as_echo "/* $configure_input  */" \
 1.16355 +      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 1.16356 +      || as_fn_error $? "could not create -" "$LINENO" 5
 1.16357 +  fi
 1.16358 + ;;
 1.16359 +
 1.16360 +
 1.16361 +  esac
 1.16362 +
 1.16363 +done # for ac_tag
 1.16364 +
 1.16365 +
 1.16366 +as_fn_exit 0
 1.16367 +_ACEOF
 1.16368 +ac_clean_files=$ac_clean_files_save
 1.16369 +
 1.16370 +test $ac_write_fail = 0 ||
 1.16371 +  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 1.16372 +
 1.16373 +
 1.16374 +# configure is writing to config.log, and then calls config.status.
 1.16375 +# config.status does its own redirection, appending to config.log.
 1.16376 +# Unfortunately, on DOS this fails, as config.log is still kept open
 1.16377 +# by configure, so config.status won't be able to write to it; its
 1.16378 +# output is simply discarded.  So we exec the FD to /dev/null,
 1.16379 +# effectively closing config.log, so it can be properly (re)opened and
 1.16380 +# appended to by config.status.  When coming back to configure, we
 1.16381 +# need to make the FD available again.
 1.16382 +if test "$no_create" != yes; then
 1.16383 +  ac_cs_success=:
 1.16384 +  ac_config_status_args=
 1.16385 +  test "$silent" = yes &&
 1.16386 +    ac_config_status_args="$ac_config_status_args --quiet"
 1.16387 +  exec 5>/dev/null
 1.16388 +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 1.16389 +  exec 5>>config.log
 1.16390 +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 1.16391 +  # would make configure fail if this is the last instruction.
 1.16392 +  $ac_cs_success || as_fn_exit 1
 1.16393 +fi
 1.16394 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 1.16395 +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 1.16396 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 1.16397 +fi
 1.16398 +

mercurial