1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
   9 #
  10 #
  11 # This configure script is free software; the Free Software Foundation
  12 # gives unlimited permission to copy, distribute and modify it.
  13 ## -------------------- ##
  14 ## M4sh Initialization. ##
  15 ## -------------------- ##
  16 
  17 # Be more Bourne compatible
  18 DUALCASE=1; export DUALCASE # for MKS sh
  19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20   emulate sh
  21   NULLCMD=:
  22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23   # is contrary to our usage.  Disable this feature.
  24   alias -g '${1+"$@"}'='"$@"'
  25   setopt NO_GLOB_SUBST
  26 else
  27   case `(set -o) 2>/dev/null` in #(
  28   *posix*) :
  29     set -o posix ;; #(
  30   *) :
  31      ;;
  32 esac
  33 fi
  34 
  35 
  36 as_nl='
  37 '
  38 export as_nl
  39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43 # Prefer a ksh shell builtin over an external printf program on Solaris,
  44 # but without wasting forks for bash or zsh.
  45 if test -z "$BASH_VERSION$ZSH_VERSION" \
  46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47   as_echo='print -r --'
  48   as_echo_n='print -rn --'
  49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50   as_echo='printf %s\n'
  51   as_echo_n='printf %s'
  52 else
  53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55     as_echo_n='/usr/ucb/echo -n'
  56   else
  57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58     as_echo_n_body='eval
  59       arg=$1;
  60       case $arg in #(
  61       *"$as_nl"*)
  62         expr "X$arg" : "X\\(.*\\)$as_nl";
  63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64       esac;
  65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66     '
  67     export as_echo_n_body
  68     as_echo_n='sh -c $as_echo_n_body as_echo'
  69   fi
  70   export as_echo_body
  71   as_echo='sh -c $as_echo_body as_echo'
  72 fi
  73 
  74 # The user is always right.
  75 if test "${PATH_SEPARATOR+set}" != set; then
  76   PATH_SEPARATOR=:
  77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79       PATH_SEPARATOR=';'
  80   }
  81 fi
  82 
  83 
  84 # IFS
  85 # We need space, tab and new line, in precisely that order.  Quoting is
  86 # there to prevent editors from complaining about space-tab.
  87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88 # splitting by setting IFS to empty value.)
  89 IFS=" ""        $as_nl"
  90 
  91 # Find who we are.  Look in the path if we contain no directory separator.
  92 as_myself=
  93 case $0 in #((
  94   *[\\/]* ) as_myself=$0 ;;
  95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96 for as_dir in $PATH
  97 do
  98   IFS=$as_save_IFS
  99   test -z "$as_dir" && as_dir=.
 100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 101   done
 102 IFS=$as_save_IFS
 103 
 104      ;;
 105 esac
 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
 107 # in which case we are not to be found in the path.
 108 if test "x$as_myself" = x; then
 109   as_myself=$0
 110 fi
 111 if test ! -f "$as_myself"; then
 112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 113   exit 1
 114 fi
 115 
 116 # Unset variables that we do not need and which cause bugs (e.g. in
 117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 118 # suppresses any "Segmentation fault" message there.  '((' could
 119 # trigger a bug in pdksh 5.2.14.
 120 for as_var in BASH_ENV ENV MAIL MAILPATH
 121 do eval test x\${$as_var+set} = xset \
 122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 123 done
 124 PS1='$ '
 125 PS2='> '
 126 PS4='+ '
 127 
 128 # NLS nuisances.
 129 LC_ALL=C
 130 export LC_ALL
 131 LANGUAGE=C
 132 export LANGUAGE
 133 
 134 # CDPATH.
 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 136 
 137 # Use a proper internal environment variable to ensure we don't fall
 138   # into an infinite loop, continuously re-executing ourselves.
 139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 140     _as_can_reexec=no; export _as_can_reexec;
 141     # We cannot yet assume a decent shell, so we have to provide a
 142 # neutralization value for shells without unset; and this also
 143 # works around shells that cannot unset nonexistent variables.
 144 # Preserve -v and -x to the replacement shell.
 145 BASH_ENV=/dev/null
 146 ENV=/dev/null
 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 148 case $- in # ((((
 149   *v*x* | *x*v* ) as_opts=-vx ;;
 150   *v* ) as_opts=-v ;;
 151   *x* ) as_opts=-x ;;
 152   * ) as_opts= ;;
 153 esac
 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 155 # Admittedly, this is quite paranoid, since all the known shells bail
 156 # out after a failed `exec'.
 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 158 as_fn_exit 255
 159   fi
 160   # We don't want this to propagate to other subprocesses.
 161           { _as_can_reexec=; unset _as_can_reexec;}
 162 if test "x$CONFIG_SHELL" = x; then
 163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 164   emulate sh
 165   NULLCMD=:
 166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 167   # is contrary to our usage.  Disable this feature.
 168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 169   setopt NO_GLOB_SUBST
 170 else
 171   case \`(set -o) 2>/dev/null\` in #(
 172   *posix*) :
 173     set -o posix ;; #(
 174   *) :
 175      ;;
 176 esac
 177 fi
 178 "
 179   as_required="as_fn_return () { (exit \$1); }
 180 as_fn_success () { as_fn_return 0; }
 181 as_fn_failure () { as_fn_return 1; }
 182 as_fn_ret_success () { return 0; }
 183 as_fn_ret_failure () { return 1; }
 184 
 185 exitcode=0
 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 191 
 192 else
 193   exitcode=1; echo positional parameters were not saved.
 194 fi
 195 test x\$exitcode = x0 || exit 1
 196 test -x / || exit 1"
 197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 201 test \$(( 1 + 1 )) = 2 || exit 1"
 202   if (eval "$as_required") 2>/dev/null; then :
 203   as_have_required=yes
 204 else
 205   as_have_required=no
 206 fi
 207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 208 
 209 else
 210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 211 as_found=false
 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 213 do
 214   IFS=$as_save_IFS
 215   test -z "$as_dir" && as_dir=.
 216   as_found=:
 217   case $as_dir in #(
 218          /*)
 219            for as_base in sh bash ksh sh5; do
 220              # Try only shells that exist, to save several forks.
 221              as_shell=$as_dir/$as_base
 222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 224   CONFIG_SHELL=$as_shell as_have_required=yes
 225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 226   break 2
 227 fi
 228 fi
 229            done;;
 230        esac
 231   as_found=false
 232 done
 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 235   CONFIG_SHELL=$SHELL as_have_required=yes
 236 fi; }
 237 IFS=$as_save_IFS
 238 
 239 
 240       if test "x$CONFIG_SHELL" != x; then :
 241   export CONFIG_SHELL
 242              # We cannot yet assume a decent shell, so we have to provide a
 243 # neutralization value for shells without unset; and this also
 244 # works around shells that cannot unset nonexistent variables.
 245 # Preserve -v and -x to the replacement shell.
 246 BASH_ENV=/dev/null
 247 ENV=/dev/null
 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 249 case $- in # ((((
 250   *v*x* | *x*v* ) as_opts=-vx ;;
 251   *v* ) as_opts=-v ;;
 252   *x* ) as_opts=-x ;;
 253   * ) as_opts= ;;
 254 esac
 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 256 # Admittedly, this is quite paranoid, since all the known shells bail
 257 # out after a failed `exec'.
 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 259 exit 255
 260 fi
 261 
 262     if test x$as_have_required = xno; then :
 263   $as_echo "$0: This script requires a shell more modern than all"
 264   $as_echo "$0: the shells that I found on your system."
 265   if test x${ZSH_VERSION+set} = xset ; then
 266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 268   else
 269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 270 $0: build-dev@openjdk.java.net about your system, including
 271 $0: any error possibly output before this message. Then
 272 $0: install a modern shell, or manually run the script
 273 $0: under such a shell if you do have one."
 274   fi
 275   exit 1
 276 fi
 277 fi
 278 fi
 279 SHELL=${CONFIG_SHELL-/bin/sh}
 280 export SHELL
 281 # Unset more variables known to interfere with behavior of common tools.
 282 CLICOLOR_FORCE= GREP_OPTIONS=
 283 unset CLICOLOR_FORCE GREP_OPTIONS
 284 
 285 ## --------------------- ##
 286 ## M4sh Shell Functions. ##
 287 ## --------------------- ##
 288 # as_fn_unset VAR
 289 # ---------------
 290 # Portably unset VAR.
 291 as_fn_unset ()
 292 {
 293   { eval $1=; unset $1;}
 294 }
 295 as_unset=as_fn_unset
 296 
 297 # as_fn_set_status STATUS
 298 # -----------------------
 299 # Set $? to STATUS, without forking.
 300 as_fn_set_status ()
 301 {
 302   return $1
 303 } # as_fn_set_status
 304 
 305 # as_fn_exit STATUS
 306 # -----------------
 307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 308 as_fn_exit ()
 309 {
 310   set +e
 311   as_fn_set_status $1
 312   exit $1
 313 } # as_fn_exit
 314 
 315 # as_fn_mkdir_p
 316 # -------------
 317 # Create "$as_dir" as a directory, including parents if necessary.
 318 as_fn_mkdir_p ()
 319 {
 320 
 321   case $as_dir in #(
 322   -*) as_dir=./$as_dir;;
 323   esac
 324   test -d "$as_dir" || eval $as_mkdir_p || {
 325     as_dirs=
 326     while :; do
 327       case $as_dir in #(
 328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 329       *) as_qdir=$as_dir;;
 330       esac
 331       as_dirs="'$as_qdir' $as_dirs"
 332       as_dir=`$as_dirname -- "$as_dir" ||
 333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 334          X"$as_dir" : 'X\(//\)[^/]' \| \
 335          X"$as_dir" : 'X\(//\)$' \| \
 336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 337 $as_echo X"$as_dir" |
 338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 339             s//\1/
 340             q
 341           }
 342           /^X\(\/\/\)[^/].*/{
 343             s//\1/
 344             q
 345           }
 346           /^X\(\/\/\)$/{
 347             s//\1/
 348             q
 349           }
 350           /^X\(\/\).*/{
 351             s//\1/
 352             q
 353           }
 354           s/.*/./; q'`
 355       test -d "$as_dir" && break
 356     done
 357     test -z "$as_dirs" || eval "mkdir $as_dirs"
 358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 359 
 360 
 361 } # as_fn_mkdir_p
 362 
 363 # as_fn_executable_p FILE
 364 # -----------------------
 365 # Test if FILE is an executable regular file.
 366 as_fn_executable_p ()
 367 {
 368   test -f "$1" && test -x "$1"
 369 } # as_fn_executable_p
 370 # as_fn_append VAR VALUE
 371 # ----------------------
 372 # Append the text in VALUE to the end of the definition contained in VAR. Take
 373 # advantage of any shell optimizations that allow amortized linear growth over
 374 # repeated appends, instead of the typical quadratic growth present in naive
 375 # implementations.
 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 377   eval 'as_fn_append ()
 378   {
 379     eval $1+=\$2
 380   }'
 381 else
 382   as_fn_append ()
 383   {
 384     eval $1=\$$1\$2
 385   }
 386 fi # as_fn_append
 387 
 388 # as_fn_arith ARG...
 389 # ------------------
 390 # Perform arithmetic evaluation on the ARGs, and store the result in the
 391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 392 # must be portable across $(()) and expr.
 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 394   eval 'as_fn_arith ()
 395   {
 396     as_val=$(( $* ))
 397   }'
 398 else
 399   as_fn_arith ()
 400   {
 401     as_val=`expr "$@" || test $? -eq 1`
 402   }
 403 fi # as_fn_arith
 404 
 405 
 406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 407 # ----------------------------------------
 408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 410 # script with STATUS, using 1 if that was 0.
 411 as_fn_error ()
 412 {
 413   as_status=$1; test $as_status -eq 0 && as_status=1
 414   if test "$4"; then
 415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 417   fi
 418   $as_echo "$as_me: error: $2" >&2
 419   as_fn_exit $as_status
 420 } # as_fn_error
 421 
 422 if expr a : '\(a\)' >/dev/null 2>&1 &&
 423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 424   as_expr=expr
 425 else
 426   as_expr=false
 427 fi
 428 
 429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 430   as_basename=basename
 431 else
 432   as_basename=false
 433 fi
 434 
 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 436   as_dirname=dirname
 437 else
 438   as_dirname=false
 439 fi
 440 
 441 as_me=`$as_basename -- "$0" ||
 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 443          X"$0" : 'X\(//\)$' \| \
 444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 445 $as_echo X/"$0" |
 446     sed '/^.*\/\([^/][^/]*\)\/*$/{
 447             s//\1/
 448             q
 449           }
 450           /^X\/\(\/\/\)$/{
 451             s//\1/
 452             q
 453           }
 454           /^X\/\(\/\).*/{
 455             s//\1/
 456             q
 457           }
 458           s/.*/./; q'`
 459 
 460 # Avoid depending upon Character Ranges.
 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 464 as_cr_digits='0123456789'
 465 as_cr_alnum=$as_cr_Letters$as_cr_digits
 466 
 467 
 468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 473   sed -n '
 474     p
 475     /[$]LINENO/=
 476   ' <$as_myself |
 477     sed '
 478       s/[$]LINENO.*/&-/
 479       t lineno
 480       b
 481       :lineno
 482       N
 483       :loop
 484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 485       t loop
 486       s/-\n.*//
 487     ' >$as_me.lineno &&
 488   chmod +x "$as_me.lineno" ||
 489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 490 
 491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 492   # already done that, so ensure we don't try to do so again and fall
 493   # in an infinite loop.  This has already happened in practice.
 494   _as_can_reexec=no; export _as_can_reexec
 495   # Don't try to exec as it changes $[0], causing all sort of problems
 496   # (the dirname of $[0] is not the place where we might find the
 497   # original and so on.  Autoconf is especially sensitive to this).
 498   . "./$as_me.lineno"
 499   # Exit status is that of the last command.
 500   exit
 501 }
 502 
 503 ECHO_C= ECHO_N= ECHO_T=
 504 case `echo -n x` in #(((((
 505 -n*)
 506   case `echo 'xy\c'` in
 507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 508   xy)  ECHO_C='\c';;
 509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 510        ECHO_T=' ';;
 511   esac;;
 512 *)
 513   ECHO_N='-n';;
 514 esac
 515 
 516 rm -f conf$$ conf$$.exe conf$$.file
 517 if test -d conf$$.dir; then
 518   rm -f conf$$.dir/conf$$.file
 519 else
 520   rm -f conf$$.dir
 521   mkdir conf$$.dir 2>/dev/null
 522 fi
 523 if (echo >conf$$.file) 2>/dev/null; then
 524   if ln -s conf$$.file conf$$ 2>/dev/null; then
 525     as_ln_s='ln -s'
 526     # ... but there are two gotchas:
 527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 529     # In both cases, we have to default to `cp -pR'.
 530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 531       as_ln_s='cp -pR'
 532   elif ln conf$$.file conf$$ 2>/dev/null; then
 533     as_ln_s=ln
 534   else
 535     as_ln_s='cp -pR'
 536   fi
 537 else
 538   as_ln_s='cp -pR'
 539 fi
 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 541 rmdir conf$$.dir 2>/dev/null
 542 
 543 if mkdir -p . 2>/dev/null; then
 544   as_mkdir_p='mkdir -p "$as_dir"'
 545 else
 546   test -d ./-p && rmdir ./-p
 547   as_mkdir_p=false
 548 fi
 549 
 550 as_test_x='test -x'
 551 as_executable_p=as_fn_executable_p
 552 
 553 # Sed expression to map a string onto a valid CPP name.
 554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 555 
 556 # Sed expression to map a string onto a valid variable name.
 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 558 
 559 
 560 test -n "$DJDIR" || exec 7<&0 </dev/null
 561 exec 6>&1
 562 
 563 # Name of the host.
 564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 565 # so uname gets run too.
 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 567 
 568 #
 569 # Initializations.
 570 #
 571 ac_default_prefix=/usr/local
 572 ac_clean_files=
 573 ac_config_libobj_dir=.
 574 LIBOBJS=
 575 cross_compiling=no
 576 subdirs=
 577 MFLAGS=
 578 MAKEFLAGS=
 579 
 580 # Identity of this package.
 581 PACKAGE_NAME='OpenJDK'
 582 PACKAGE_TARNAME='openjdk'
 583 PACKAGE_VERSION='jdk8'
 584 PACKAGE_STRING='OpenJDK jdk8'
 585 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 586 PACKAGE_URL='http://openjdk.java.net'
 587 
 588 # Factoring default headers for most tests.
 589 ac_includes_default="\
 590 #include <stdio.h>
 591 #ifdef HAVE_SYS_TYPES_H
 592 # include <sys/types.h>
 593 #endif
 594 #ifdef HAVE_SYS_STAT_H
 595 # include <sys/stat.h>
 596 #endif
 597 #ifdef STDC_HEADERS
 598 # include <stdlib.h>
 599 # include <stddef.h>
 600 #else
 601 # ifdef HAVE_STDLIB_H
 602 #  include <stdlib.h>
 603 # endif
 604 #endif
 605 #ifdef HAVE_STRING_H
 606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 607 #  include <memory.h>
 608 # endif
 609 # include <string.h>
 610 #endif
 611 #ifdef HAVE_STRINGS_H
 612 # include <strings.h>
 613 #endif
 614 #ifdef HAVE_INTTYPES_H
 615 # include <inttypes.h>
 616 #endif
 617 #ifdef HAVE_STDINT_H
 618 # include <stdint.h>
 619 #endif
 620 #ifdef HAVE_UNISTD_H
 621 # include <unistd.h>
 622 #endif"
 623 
 624 ac_subst_vars='LTLIBOBJS
 625 LIBOBJS
 626 CCACHE
 627 USE_PRECOMPILED_HEADER
 628 SJAVAC_SERVER_DIR
 629 ENABLE_SJAVAC
 630 SJAVAC_SERVER_JAVA
 631 JOBS
 632 MEMORY_SIZE
 633 NUM_CORES
 634 ENABLE_INTREE_EC
 635 SALIB_NAME
 636 HOTSPOT_MAKE_ARGS
 637 LIBCXX
 638 LLVM_LIBS
 639 LLVM_LDFLAGS
 640 LLVM_CFLAGS
 641 LLVM_CONFIG
 642 LIBFFI_LIBS
 643 LIBFFI_CFLAGS
 644 STATIC_CXX_SETTING
 645 LIBDL
 646 LIBM
 647 LIBZIP_CAN_USE_MMAP
 648 USE_EXTERNAL_LIBZ
 649 USE_EXTERNAL_LIBPNG
 650 PNG_LIBS
 651 PNG_CFLAGS
 652 USE_EXTERNAL_LIBGIF
 653 USE_EXTERNAL_LIBJPEG
 654 ALSA_LIBS
 655 ALSA_CFLAGS
 656 FREETYPE_BUNDLE_LIB_PATH
 657 FREETYPE_LIBS
 658 FREETYPE_CFLAGS
 659 CUPS_CFLAGS
 660 OPENWIN_HOME
 661 X_EXTRA_LIBS
 662 X_LIBS
 663 X_PRE_LIBS
 664 X_CFLAGS
 665 XMKMF
 666 FIXPATH
 667 CXXFLAGS_DEBUG_SYMBOLS
 668 CFLAGS_DEBUG_SYMBOLS
 669 ZIP_DEBUGINFO_FILES
 670 ENABLE_DEBUG_SYMBOLS
 671 USING_BROKEN_SUSE_LD
 672 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 673 ZERO_ARCHFLAG
 674 LDFLAGS_CXX_JDK
 675 LDFLAGS_JDKEXE_SUFFIX
 676 LDFLAGS_JDKLIB_SUFFIX
 677 LDFLAGS_JDKEXE
 678 LDFLAGS_JDKLIB
 679 CXXFLAGS_JDKEXE
 680 CXXFLAGS_JDKLIB
 681 CFLAGS_JDKEXE
 682 CFLAGS_JDKLIB
 683 MACOSX_VERSION_MIN
 684 PACKAGE_PATH
 685 LEGACY_EXTRA_LDFLAGS
 686 LEGACY_EXTRA_CXXFLAGS
 687 LEGACY_EXTRA_CFLAGS
 688 CXX_FLAG_DEPS
 689 C_FLAG_DEPS
 690 CXX_O_FLAG_NONE
 691 CXX_O_FLAG_NORM
 692 CXX_O_FLAG_HI
 693 CXX_O_FLAG_HIGHEST
 694 C_O_FLAG_NONE
 695 C_O_FLAG_NORM
 696 C_O_FLAG_HI
 697 C_O_FLAG_HIGHEST
 698 POST_MCS_CMD
 699 POST_STRIP_CMD
 700 SET_EXECUTABLE_ORIGIN
 701 SET_SHARED_LIBRARY_ORIGIN
 702 CXX_FLAG_REORDER
 703 C_FLAG_REORDER
 704 SET_SHARED_LIBRARY_MAPFILE
 705 SET_SHARED_LIBRARY_NAME
 706 SHARED_LIBRARY_FLAGS
 707 EXE_SUFFIX
 708 STATIC_LIBRARY_SUFFIX
 709 SHARED_LIBRARY_SUFFIX
 710 LIBRARY_PREFIX
 711 STATIC_LIBRARY
 712 SHARED_LIBRARY
 713 OBJ_SUFFIX
 714 COMPILER_NAME
 715 JT_HOME
 716 JTREGEXE
 717 LIPO
 718 ac_ct_OBJDUMP
 719 OBJDUMP
 720 ac_ct_OBJCOPY
 721 OBJCOPY
 722 ac_ct_STRIP
 723 ac_ct_NM
 724 MCS
 725 STRIP
 726 GNM
 727 NM
 728 AS
 729 CXXCPP
 730 CPP
 731 COMPILER_TYPE
 732 RC_FLAGS
 733 DUMPBIN
 734 WINAR
 735 HOTSPOT_RC
 736 HOTSPOT_MT
 737 RC
 738 MT
 739 WINLD
 740 HOTSPOT_LD
 741 HOTSPOT_CXX
 742 ARFLAGS
 743 ac_ct_AR
 744 AR
 745 LDEXECXX
 746 LDCXX
 747 LDEXE
 748 LD
 749 ac_ct_OBJC
 750 OBJCFLAGS
 751 OBJC
 752 ac_ct_CXX
 753 CXXFLAGS
 754 CXX
 755 ac_ct_PROPER_COMPILER_CXX
 756 PROPER_COMPILER_CXX
 757 TOOLS_DIR_CXX
 758 POTENTIAL_CXX
 759 COMPILER_TARGET_BITS_FLAG
 760 OBJEXT
 761 EXEEXT
 762 ac_ct_CC
 763 CPPFLAGS
 764 LDFLAGS
 765 CFLAGS
 766 CC
 767 ac_ct_PROPER_COMPILER_CC
 768 PROPER_COMPILER_CC
 769 TOOLS_DIR_CC
 770 POTENTIAL_CC
 771 BUILD_LD
 772 BUILD_CXX
 773 BUILD_CC
 774 MSVCR_DLL
 775 VS_PATH
 776 VS_LIB
 777 VS_INCLUDE
 778 CYGWIN_LINK
 779 AR_OUT_OPTION
 780 LD_OUT_OPTION
 781 EXE_OUT_OPTION
 782 CC_OUT_OPTION
 783 BUILD_HOTSPOT
 784 HOTSPOT_DIST
 785 BUILD_OUTPUT
 786 OVERRIDE_SRC_ROOT
 787 ADD_SRC_ROOT
 788 JDK_TOPDIR
 789 NASHORN_TOPDIR
 790 HOTSPOT_TOPDIR
 791 JAXWS_TOPDIR
 792 JAXP_TOPDIR
 793 CORBA_TOPDIR
 794 LANGTOOLS_TOPDIR
 795 BOOT_JDK_JVMARGS
 796 JAVAC_FLAGS
 797 BOOT_JDK_SOURCETARGET
 798 JARSIGNER
 799 NATIVE2ASCII
 800 JAR
 801 JAVAH
 802 JAVAC
 803 JAVA
 804 BOOT_JDK
 805 BOOT_TOOLSJAR
 806 BOOT_RTJAR
 807 JAVA_CHECK
 808 JAVAC_CHECK
 809 COOKED_BUILD_NUMBER
 810 JDK_VERSION
 811 COPYRIGHT_YEAR
 812 MACOSX_BUNDLE_ID_BASE
 813 MACOSX_BUNDLE_NAME_BASE
 814 COMPANY_NAME
 815 JDK_RC_PLATFORM_NAME
 816 PRODUCT_SUFFIX
 817 PRODUCT_NAME
 818 LAUNCHER_NAME
 819 MILESTONE
 820 JDK_BUILD_NUMBER
 821 JDK_UPDATE_VERSION
 822 JDK_MICRO_VERSION
 823 JDK_MINOR_VERSION
 824 JDK_MAJOR_VERSION
 825 USER_RELEASE_SUFFIX
 826 COMPRESS_JARS
 827 UNLIMITED_CRYPTO
 828 CACERTS_FILE
 829 TEST_IN_BUILD
 830 BUILD_HEADLESS
 831 SUPPORT_HEADFUL
 832 SUPPORT_HEADLESS
 833 BDEPS_FTP
 834 BDEPS_UNZIP
 835 OS_VERSION_MICRO
 836 OS_VERSION_MINOR
 837 OS_VERSION_MAJOR
 838 PKG_CONFIG
 839 CODESIGN
 840 XATTR
 841 DSYMUTIL
 842 IS_GNU_TIME
 843 TIME
 844 STAT
 845 HG
 846 READELF
 847 OTOOL
 848 LDD
 849 ZIP
 850 UNZIP
 851 FIND_DELETE
 852 MAKE
 853 CHECK_TOOLSDIR_MAKE
 854 CHECK_TOOLSDIR_GMAKE
 855 CHECK_MAKE
 856 CHECK_GMAKE
 857 PKGHANDLER
 858 OUTPUT_ROOT
 859 CONF_NAME
 860 SPEC
 861 BUILD_VARIANT_RELEASE
 862 DEBUG_CLASSFILES
 863 FASTDEBUG
 864 VARIANT
 865 DEBUG_LEVEL
 866 MACOSX_UNIVERSAL
 867 INCLUDE_SA
 868 JVM_VARIANT_CORE
 869 JVM_VARIANT_ZEROSHARK
 870 JVM_VARIANT_ZERO
 871 JVM_VARIANT_KERNEL
 872 JVM_VARIANT_MINIMAL1
 873 JVM_VARIANT_CLIENT
 874 JVM_VARIANT_SERVER
 875 JVM_VARIANTS
 876 JVM_INTERPRETER
 877 JDK_VARIANT
 878 SET_OPENJDK
 879 BUILD_LOG_WRAPPER
 880 BUILD_LOG_PREVIOUS
 881 BUILD_LOG
 882 SYS_ROOT
 883 PATH_SEP
 884 SRC_ROOT
 885 ZERO_ARCHDEF
 886 DEFINE_CROSS_COMPILE_ARCH
 887 LP64
 888 OPENJDK_TARGET_OS_EXPORT_DIR
 889 OPENJDK_TARGET_OS_API_DIR
 890 OPENJDK_TARGET_CPU_JLI_CFLAGS
 891 OPENJDK_TARGET_CPU_OSARCH
 892 OPENJDK_TARGET_CPU_ISADIR
 893 OPENJDK_TARGET_CPU_LIBDIR
 894 OPENJDK_TARGET_CPU_LEGACY_LIB
 895 OPENJDK_TARGET_CPU_LEGACY
 896 REQUIRED_OS_VERSION
 897 REQUIRED_OS_NAME
 898 COMPILE_TYPE
 899 OPENJDK_TARGET_CPU_ENDIAN
 900 OPENJDK_TARGET_CPU_BITS
 901 OPENJDK_TARGET_CPU_ARCH
 902 OPENJDK_TARGET_CPU
 903 OPENJDK_TARGET_OS_API
 904 OPENJDK_TARGET_OS
 905 OPENJDK_BUILD_CPU_ENDIAN
 906 OPENJDK_BUILD_CPU_BITS
 907 OPENJDK_BUILD_CPU_ARCH
 908 OPENJDK_BUILD_CPU
 909 OPENJDK_BUILD_OS_API
 910 OPENJDK_BUILD_OS
 911 OPENJDK_BUILD_AUTOCONF_NAME
 912 OPENJDK_TARGET_AUTOCONF_NAME
 913 target_os
 914 target_vendor
 915 target_cpu
 916 target
 917 host_os
 918 host_vendor
 919 host_cpu
 920 host
 921 build_os
 922 build_vendor
 923 build_cpu
 924 build
 925 SETFILE
 926 DF
 927 READLINK
 928 CYGPATH
 929 SED
 930 FGREP
 931 EGREP
 932 GREP
 933 AWK
 934 XARGS
 935 WHICH
 936 WC
 937 UNIQ
 938 UNAME
 939 TR
 940 TOUCH
 941 TEE
 942 TAR
 943 TAIL
 944 SORT
 945 SH
 946 RM
 947 PRINTF
 948 NAWK
 949 MV
 950 MKTEMP
 951 MKDIR
 952 LS
 953 LN
 954 HEAD
 955 FIND
 956 FILE
 957 EXPR
 958 ECHO
 959 DIRNAME
 960 DIFF
 961 DATE
 962 CUT
 963 CPIO
 964 CP
 965 COMM
 966 CMP
 967 CHMOD
 968 CAT
 969 BASH
 970 BASENAME
 971 DATE_WHEN_CONFIGURED
 972 CONFIGURE_COMMAND_LINE
 973 CUSTOM_MAKE_DIR
 974 target_alias
 975 host_alias
 976 build_alias
 977 LIBS
 978 ECHO_T
 979 ECHO_N
 980 ECHO_C
 981 DEFS
 982 mandir
 983 localedir
 984 libdir
 985 psdir
 986 pdfdir
 987 dvidir
 988 htmldir
 989 infodir
 990 docdir
 991 oldincludedir
 992 includedir
 993 localstatedir
 994 sharedstatedir
 995 sysconfdir
 996 datadir
 997 datarootdir
 998 libexecdir
 999 sbindir
1000 bindir
1001 program_transform_name
1002 prefix
1003 exec_prefix
1004 PACKAGE_URL
1005 PACKAGE_BUGREPORT
1006 PACKAGE_STRING
1007 PACKAGE_VERSION
1008 PACKAGE_TARNAME
1009 PACKAGE_NAME
1010 PATH_SEPARATOR
1011 SHELL'
1012 ac_subst_files=''
1013 ac_user_opts='
1014 enable_option_checking
1015 with_custom_make_dir
1016 with_target_bits
1017 with_sys_root
1018 with_tools_dir
1019 with_devkit
1020 enable_openjdk_only
1021 with_jdk_variant
1022 with_jvm_interpreter
1023 with_jvm_variants
1024 enable_debug
1025 with_debug_level
1026 with_conf_name
1027 with_builddeps_conf
1028 with_builddeps_server
1029 with_builddeps_dir
1030 with_builddeps_group
1031 enable_headful
1032 enable_hotspot_test_in_build
1033 with_cacerts_file
1034 enable_unlimited_crypto
1035 with_milestone
1036 with_update_version
1037 with_user_release_suffix
1038 with_build_number
1039 with_boot_jdk
1040 with_boot_jdk_jvmargs
1041 with_add_source_root
1042 with_override_source_root
1043 with_adds_and_overrides
1044 with_override_langtools
1045 with_override_corba
1046 with_override_jaxp
1047 with_override_jaxws
1048 with_override_hotspot
1049 with_override_nashorn
1050 with_override_jdk
1051 with_import_hotspot
1052 with_msvcr_dll
1053 with_dxsdk
1054 with_dxsdk_lib
1055 with_dxsdk_include
1056 with_jtreg
1057 with_extra_cflags
1058 with_extra_cxxflags
1059 with_extra_ldflags
1060 enable_debug_symbols
1061 enable_zip_debug_info
1062 enable_macosx_runtime_support
1063 with_x
1064 with_cups
1065 with_cups_include
1066 with_freetype
1067 with_freetype_include
1068 with_freetype_lib
1069 enable_freetype_bundling
1070 with_alsa
1071 with_alsa_include
1072 with_alsa_lib
1073 with_giflib
1074 with_libpng
1075 with_zlib
1076 with_stdc__lib
1077 with_num_cores
1078 with_memory_size
1079 with_jobs
1080 with_sjavac_server_java
1081 enable_sjavac
1082 enable_precompiled_headers
1083 enable_ccache
1084 with_ccache_dir
1085 '
1086       ac_precious_vars='build_alias
1087 host_alias
1088 target_alias
1089 BASENAME
1090 BASH
1091 CAT
1092 CHMOD
1093 CMP
1094 COMM
1095 CP
1096 CPIO
1097 CUT
1098 DATE
1099 DIFF
1100 DIRNAME
1101 ECHO
1102 EXPR
1103 FILE
1104 FIND
1105 HEAD
1106 LN
1107 LS
1108 MKDIR
1109 MKTEMP
1110 MV
1111 NAWK
1112 PRINTF
1113 RM
1114 SH
1115 SORT
1116 TAIL
1117 TAR
1118 TEE
1119 TOUCH
1120 TR
1121 UNAME
1122 UNIQ
1123 WC
1124 WHICH
1125 XARGS
1126 AWK
1127 GREP
1128 EGREP
1129 FGREP
1130 SED
1131 CYGPATH
1132 READLINK
1133 DF
1134 SETFILE
1135 UNZIP
1136 ZIP
1137 LDD
1138 OTOOL
1139 READELF
1140 HG
1141 STAT
1142 TIME
1143 DSYMUTIL
1144 XATTR
1145 CODESIGN
1146 PKG_CONFIG
1147 JAVA
1148 JAVAC
1149 JAVAH
1150 JAR
1151 NATIVE2ASCII
1152 JARSIGNER
1153 BUILD_CC
1154 BUILD_CXX
1155 BUILD_LD
1156 CC
1157 CFLAGS
1158 LDFLAGS
1159 LIBS
1160 CPPFLAGS
1161 CXX
1162 CXXFLAGS
1163 CCC
1164 OBJC
1165 OBJCFLAGS
1166 AR
1167 CPP
1168 CXXCPP
1169 AS
1170 NM
1171 GNM
1172 STRIP
1173 MCS
1174 OBJCOPY
1175 OBJDUMP
1176 LIPO
1177 JTREGEXE
1178 XMKMF
1179 FREETYPE_CFLAGS
1180 FREETYPE_LIBS
1181 ALSA_CFLAGS
1182 ALSA_LIBS
1183 PNG_CFLAGS
1184 PNG_LIBS
1185 LIBFFI_CFLAGS
1186 LIBFFI_LIBS
1187 CCACHE'
1188 
1189 
1190 # Initialize some variables set by options.
1191 ac_init_help=
1192 ac_init_version=false
1193 ac_unrecognized_opts=
1194 ac_unrecognized_sep=
1195 # The variables have the same names as the options, with
1196 # dashes changed to underlines.
1197 cache_file=/dev/null
1198 exec_prefix=NONE
1199 no_create=
1200 no_recursion=
1201 prefix=NONE
1202 program_prefix=NONE
1203 program_suffix=NONE
1204 program_transform_name=s,x,x,
1205 silent=
1206 site=
1207 srcdir=
1208 verbose=
1209 x_includes=NONE
1210 x_libraries=NONE
1211 
1212 # Installation directory options.
1213 # These are left unexpanded so users can "make install exec_prefix=/foo"
1214 # and all the variables that are supposed to be based on exec_prefix
1215 # by default will actually change.
1216 # Use braces instead of parens because sh, perl, etc. also accept them.
1217 # (The list follows the same order as the GNU Coding Standards.)
1218 bindir='${exec_prefix}/bin'
1219 sbindir='${exec_prefix}/sbin'
1220 libexecdir='${exec_prefix}/libexec'
1221 datarootdir='${prefix}/share'
1222 datadir='${datarootdir}'
1223 sysconfdir='${prefix}/etc'
1224 sharedstatedir='${prefix}/com'
1225 localstatedir='${prefix}/var'
1226 includedir='${prefix}/include'
1227 oldincludedir='/usr/include'
1228 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1229 infodir='${datarootdir}/info'
1230 htmldir='${docdir}'
1231 dvidir='${docdir}'
1232 pdfdir='${docdir}'
1233 psdir='${docdir}'
1234 libdir='${exec_prefix}/lib'
1235 localedir='${datarootdir}/locale'
1236 mandir='${datarootdir}/man'
1237 
1238 ac_prev=
1239 ac_dashdash=
1240 for ac_option
1241 do
1242   # If the previous option needs an argument, assign it.
1243   if test -n "$ac_prev"; then
1244     eval $ac_prev=\$ac_option
1245     ac_prev=
1246     continue
1247   fi
1248 
1249   case $ac_option in
1250   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1251   *=)   ac_optarg= ;;
1252   *)    ac_optarg=yes ;;
1253   esac
1254 
1255   # Accept the important Cygnus configure options, so we can diagnose typos.
1256 
1257   case $ac_dashdash$ac_option in
1258   --)
1259     ac_dashdash=yes ;;
1260 
1261   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1262     ac_prev=bindir ;;
1263   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1264     bindir=$ac_optarg ;;
1265 
1266   -build | --build | --buil | --bui | --bu)
1267     ac_prev=build_alias ;;
1268   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1269     build_alias=$ac_optarg ;;
1270 
1271   -cache-file | --cache-file | --cache-fil | --cache-fi \
1272   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1273     ac_prev=cache_file ;;
1274   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1275   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1276     cache_file=$ac_optarg ;;
1277 
1278   --config-cache | -C)
1279     cache_file=config.cache ;;
1280 
1281   -datadir | --datadir | --datadi | --datad)
1282     ac_prev=datadir ;;
1283   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1284     datadir=$ac_optarg ;;
1285 
1286   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1287   | --dataroo | --dataro | --datar)
1288     ac_prev=datarootdir ;;
1289   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1290   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1291     datarootdir=$ac_optarg ;;
1292 
1293   -disable-* | --disable-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       as_fn_error $? "invalid feature name: $ac_useropt"
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "enable_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval enable_$ac_useropt=no ;;
1308 
1309   -docdir | --docdir | --docdi | --doc | --do)
1310     ac_prev=docdir ;;
1311   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312     docdir=$ac_optarg ;;
1313 
1314   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1315     ac_prev=dvidir ;;
1316   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317     dvidir=$ac_optarg ;;
1318 
1319   -enable-* | --enable-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       as_fn_error $? "invalid feature name: $ac_useropt"
1324     ac_useropt_orig=$ac_useropt
1325     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326     case $ac_user_opts in
1327       *"
1328 "enable_$ac_useropt"
1329 "*) ;;
1330       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1331          ac_unrecognized_sep=', ';;
1332     esac
1333     eval enable_$ac_useropt=\$ac_optarg ;;
1334 
1335   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1336   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1337   | --exec | --exe | --ex)
1338     ac_prev=exec_prefix ;;
1339   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1340   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1341   | --exec=* | --exe=* | --ex=*)
1342     exec_prefix=$ac_optarg ;;
1343 
1344   -gas | --gas | --ga | --g)
1345     # Obsolete; use --with-gas.
1346     with_gas=yes ;;
1347 
1348   -help | --help | --hel | --he | -h)
1349     ac_init_help=long ;;
1350   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1351     ac_init_help=recursive ;;
1352   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1353     ac_init_help=short ;;
1354 
1355   -host | --host | --hos | --ho)
1356     ac_prev=host_alias ;;
1357   -host=* | --host=* | --hos=* | --ho=*)
1358     host_alias=$ac_optarg ;;
1359 
1360   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1361     ac_prev=htmldir ;;
1362   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1363   | --ht=*)
1364     htmldir=$ac_optarg ;;
1365 
1366   -includedir | --includedir | --includedi | --included | --include \
1367   | --includ | --inclu | --incl | --inc)
1368     ac_prev=includedir ;;
1369   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1370   | --includ=* | --inclu=* | --incl=* | --inc=*)
1371     includedir=$ac_optarg ;;
1372 
1373   -infodir | --infodir | --infodi | --infod | --info | --inf)
1374     ac_prev=infodir ;;
1375   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1376     infodir=$ac_optarg ;;
1377 
1378   -libdir | --libdir | --libdi | --libd)
1379     ac_prev=libdir ;;
1380   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1381     libdir=$ac_optarg ;;
1382 
1383   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1384   | --libexe | --libex | --libe)
1385     ac_prev=libexecdir ;;
1386   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1387   | --libexe=* | --libex=* | --libe=*)
1388     libexecdir=$ac_optarg ;;
1389 
1390   -localedir | --localedir | --localedi | --localed | --locale)
1391     ac_prev=localedir ;;
1392   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1393     localedir=$ac_optarg ;;
1394 
1395   -localstatedir | --localstatedir | --localstatedi | --localstated \
1396   | --localstate | --localstat | --localsta | --localst | --locals)
1397     ac_prev=localstatedir ;;
1398   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1399   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1400     localstatedir=$ac_optarg ;;
1401 
1402   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1403     ac_prev=mandir ;;
1404   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1405     mandir=$ac_optarg ;;
1406 
1407   -nfp | --nfp | --nf)
1408     # Obsolete; use --without-fp.
1409     with_fp=no ;;
1410 
1411   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1412   | --no-cr | --no-c | -n)
1413     no_create=yes ;;
1414 
1415   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1416   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1417     no_recursion=yes ;;
1418 
1419   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1420   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1421   | --oldin | --oldi | --old | --ol | --o)
1422     ac_prev=oldincludedir ;;
1423   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1424   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1425   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1426     oldincludedir=$ac_optarg ;;
1427 
1428   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1429     ac_prev=prefix ;;
1430   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1431     prefix=$ac_optarg ;;
1432 
1433   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1434   | --program-pre | --program-pr | --program-p)
1435     ac_prev=program_prefix ;;
1436   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1437   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1438     program_prefix=$ac_optarg ;;
1439 
1440   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1441   | --program-suf | --program-su | --program-s)
1442     ac_prev=program_suffix ;;
1443   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1444   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1445     program_suffix=$ac_optarg ;;
1446 
1447   -program-transform-name | --program-transform-name \
1448   | --program-transform-nam | --program-transform-na \
1449   | --program-transform-n | --program-transform- \
1450   | --program-transform | --program-transfor \
1451   | --program-transfo | --program-transf \
1452   | --program-trans | --program-tran \
1453   | --progr-tra | --program-tr | --program-t)
1454     ac_prev=program_transform_name ;;
1455   -program-transform-name=* | --program-transform-name=* \
1456   | --program-transform-nam=* | --program-transform-na=* \
1457   | --program-transform-n=* | --program-transform-=* \
1458   | --program-transform=* | --program-transfor=* \
1459   | --program-transfo=* | --program-transf=* \
1460   | --program-trans=* | --program-tran=* \
1461   | --progr-tra=* | --program-tr=* | --program-t=*)
1462     program_transform_name=$ac_optarg ;;
1463 
1464   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1465     ac_prev=pdfdir ;;
1466   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1467     pdfdir=$ac_optarg ;;
1468 
1469   -psdir | --psdir | --psdi | --psd | --ps)
1470     ac_prev=psdir ;;
1471   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1472     psdir=$ac_optarg ;;
1473 
1474   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475   | -silent | --silent | --silen | --sile | --sil)
1476     silent=yes ;;
1477 
1478   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1479     ac_prev=sbindir ;;
1480   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1481   | --sbi=* | --sb=*)
1482     sbindir=$ac_optarg ;;
1483 
1484   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1485   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1486   | --sharedst | --shareds | --shared | --share | --shar \
1487   | --sha | --sh)
1488     ac_prev=sharedstatedir ;;
1489   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1490   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1491   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1492   | --sha=* | --sh=*)
1493     sharedstatedir=$ac_optarg ;;
1494 
1495   -site | --site | --sit)
1496     ac_prev=site ;;
1497   -site=* | --site=* | --sit=*)
1498     site=$ac_optarg ;;
1499 
1500   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1501     ac_prev=srcdir ;;
1502   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1503     srcdir=$ac_optarg ;;
1504 
1505   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1506   | --syscon | --sysco | --sysc | --sys | --sy)
1507     ac_prev=sysconfdir ;;
1508   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1509   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1510     sysconfdir=$ac_optarg ;;
1511 
1512   -target | --target | --targe | --targ | --tar | --ta | --t)
1513     ac_prev=target_alias ;;
1514   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1515     target_alias=$ac_optarg ;;
1516 
1517   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1518     verbose=yes ;;
1519 
1520   -version | --version | --versio | --versi | --vers | -V)
1521     ac_init_version=: ;;
1522 
1523   -with-* | --with-*)
1524     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1525     # Reject names that are not valid shell variable names.
1526     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1527       as_fn_error $? "invalid package name: $ac_useropt"
1528     ac_useropt_orig=$ac_useropt
1529     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530     case $ac_user_opts in
1531       *"
1532 "with_$ac_useropt"
1533 "*) ;;
1534       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1535          ac_unrecognized_sep=', ';;
1536     esac
1537     eval with_$ac_useropt=\$ac_optarg ;;
1538 
1539   -without-* | --without-*)
1540     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1541     # Reject names that are not valid shell variable names.
1542     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1543       as_fn_error $? "invalid package name: $ac_useropt"
1544     ac_useropt_orig=$ac_useropt
1545     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546     case $ac_user_opts in
1547       *"
1548 "with_$ac_useropt"
1549 "*) ;;
1550       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1551          ac_unrecognized_sep=', ';;
1552     esac
1553     eval with_$ac_useropt=no ;;
1554 
1555   --x)
1556     # Obsolete; use --with-x.
1557     with_x=yes ;;
1558 
1559   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1560   | --x-incl | --x-inc | --x-in | --x-i)
1561     ac_prev=x_includes ;;
1562   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1563   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1564     x_includes=$ac_optarg ;;
1565 
1566   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1567   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1568     ac_prev=x_libraries ;;
1569   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1570   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1571     x_libraries=$ac_optarg ;;
1572 
1573   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1574 Try \`$0 --help' for more information"
1575     ;;
1576 
1577   *=*)
1578     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1579     # Reject names that are not valid shell variable names.
1580     case $ac_envvar in #(
1581       '' | [0-9]* | *[!_$as_cr_alnum]* )
1582       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1583     esac
1584     eval $ac_envvar=\$ac_optarg
1585     export $ac_envvar ;;
1586 
1587   *)
1588     # FIXME: should be removed in autoconf 3.0.
1589     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1590     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1591       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1592     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1593     ;;
1594 
1595   esac
1596 done
1597 
1598 if test -n "$ac_prev"; then
1599   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1600   as_fn_error $? "missing argument to $ac_option"
1601 fi
1602 
1603 if test -n "$ac_unrecognized_opts"; then
1604   case $enable_option_checking in
1605     no) ;;
1606     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1607     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1608   esac
1609 fi
1610 
1611 # Check all directory arguments for consistency.
1612 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613                 datadir sysconfdir sharedstatedir localstatedir includedir \
1614                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615                 libdir localedir mandir
1616 do
1617   eval ac_val=\$$ac_var
1618   # Remove trailing slashes.
1619   case $ac_val in
1620     */ )
1621       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622       eval $ac_var=\$ac_val;;
1623   esac
1624   # Be sure to have absolute directory names.
1625   case $ac_val in
1626     [\\/$]* | ?:[\\/]* )  continue;;
1627     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1628   esac
1629   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1630 done
1631 
1632 # There might be people who depend on the old broken behavior: `$host'
1633 # used to hold the argument of --host etc.
1634 # FIXME: To remove some day.
1635 build=$build_alias
1636 host=$host_alias
1637 target=$target_alias
1638 
1639 # FIXME: To remove some day.
1640 if test "x$host_alias" != x; then
1641   if test "x$build_alias" = x; then
1642     cross_compiling=maybe
1643   elif test "x$build_alias" != "x$host_alias"; then
1644     cross_compiling=yes
1645   fi
1646 fi
1647 
1648 ac_tool_prefix=
1649 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1650 
1651 test "$silent" = yes && exec 6>/dev/null
1652 
1653 
1654 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1655 ac_ls_di=`ls -di .` &&
1656 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1657   as_fn_error $? "working directory cannot be determined"
1658 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1659   as_fn_error $? "pwd does not report name of working directory"
1660 
1661 
1662 # Find the source files, if location was not specified.
1663 if test -z "$srcdir"; then
1664   ac_srcdir_defaulted=yes
1665   # Try the directory containing this script, then the parent directory.
1666   ac_confdir=`$as_dirname -- "$as_myself" ||
1667 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1668          X"$as_myself" : 'X\(//\)[^/]' \| \
1669          X"$as_myself" : 'X\(//\)$' \| \
1670          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1671 $as_echo X"$as_myself" |
1672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1673             s//\1/
1674             q
1675           }
1676           /^X\(\/\/\)[^/].*/{
1677             s//\1/
1678             q
1679           }
1680           /^X\(\/\/\)$/{
1681             s//\1/
1682             q
1683           }
1684           /^X\(\/\).*/{
1685             s//\1/
1686             q
1687           }
1688           s/.*/./; q'`
1689   srcdir=$ac_confdir
1690   if test ! -r "$srcdir/$ac_unique_file"; then
1691     srcdir=..
1692   fi
1693 else
1694   ac_srcdir_defaulted=no
1695 fi
1696 if test ! -r "$srcdir/$ac_unique_file"; then
1697   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1698   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1699 fi
1700 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1701 ac_abs_confdir=`(
1702         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1703         pwd)`
1704 # When building in place, set srcdir=.
1705 if test "$ac_abs_confdir" = "$ac_pwd"; then
1706   srcdir=.
1707 fi
1708 # Remove unnecessary trailing slashes from srcdir.
1709 # Double slashes in file names in object file debugging info
1710 # mess up M-x gdb in Emacs.
1711 case $srcdir in
1712 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1713 esac
1714 for ac_var in $ac_precious_vars; do
1715   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1716   eval ac_env_${ac_var}_value=\$${ac_var}
1717   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1718   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1719 done
1720 
1721 #
1722 # Report the --help message.
1723 #
1724 if test "$ac_init_help" = "long"; then
1725   # Omit some internal or obsolete options to make the list less imposing.
1726   # This message is too long to be a string in the A/UX 3.1 sh.
1727   cat <<_ACEOF
1728 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1729 
1730 Usage: $0 [OPTION]... [VAR=VALUE]...
1731 
1732 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1733 VAR=VALUE.  See below for descriptions of some of the useful variables.
1734 
1735 Defaults for the options are specified in brackets.
1736 
1737 Configuration:
1738   -h, --help              display this help and exit
1739       --help=short        display options specific to this package
1740       --help=recursive    display the short help of all the included packages
1741   -V, --version           display version information and exit
1742   -q, --quiet, --silent   do not print \`checking ...' messages
1743       --cache-file=FILE   cache test results in FILE [disabled]
1744   -C, --config-cache      alias for \`--cache-file=config.cache'
1745   -n, --no-create         do not create output files
1746       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1747 
1748 Installation directories:
1749   --prefix=PREFIX         install architecture-independent files in PREFIX
1750                           [$ac_default_prefix]
1751   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1752                           [PREFIX]
1753 
1754 By default, \`make install' will install all the files in
1755 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1756 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1757 for instance \`--prefix=\$HOME'.
1758 
1759 For better control, use the options below.
1760 
1761 Fine tuning of the installation directories:
1762   --bindir=DIR            user executables [EPREFIX/bin]
1763   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1764   --libexecdir=DIR        program executables [EPREFIX/libexec]
1765   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1766   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1767   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1768   --libdir=DIR            object code libraries [EPREFIX/lib]
1769   --includedir=DIR        C header files [PREFIX/include]
1770   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1771   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1772   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1773   --infodir=DIR           info documentation [DATAROOTDIR/info]
1774   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1775   --mandir=DIR            man documentation [DATAROOTDIR/man]
1776   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1777   --htmldir=DIR           html documentation [DOCDIR]
1778   --dvidir=DIR            dvi documentation [DOCDIR]
1779   --pdfdir=DIR            pdf documentation [DOCDIR]
1780   --psdir=DIR             ps documentation [DOCDIR]
1781 _ACEOF
1782 
1783   cat <<\_ACEOF
1784 
1785 X features:
1786   --x-includes=DIR    X include files are in DIR
1787   --x-libraries=DIR   X library files are in DIR
1788 
1789 System types:
1790   --build=BUILD     configure for building on BUILD [guessed]
1791   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1792   --target=TARGET   configure for building compilers for TARGET [HOST]
1793 _ACEOF
1794 fi
1795 
1796 if test -n "$ac_init_help"; then
1797   case $ac_init_help in
1798      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1799    esac
1800   cat <<\_ACEOF
1801 
1802 Optional Features:
1803   --disable-option-checking  ignore unrecognized --enable/--with options
1804   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1805   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1806   --enable-openjdk-only   suppress building custom source even if present
1807                           [disabled]
1808   --enable-debug          set the debug level to fastdebug (shorthand for
1809                           --with-debug-level=fastdebug) [disabled]
1810   --disable-headful       disable building headful support (graphical UI
1811                           support) [enabled]
1812   --enable-hotspot-test-in-build
1813                           run the Queens test after Hotspot build [disabled]
1814   --enable-unlimited-crypto
1815                           Enable unlimited crypto policy [disabled]
1816   --disable-debug-symbols disable generation of debug symbols [enabled]
1817   --disable-zip-debug-info
1818                           disable zipping of debug-info files [enabled]
1819   --enable-macosx-runtime-support
1820                           Deprecated. Option is kept for backwards
1821                           compatibility and is ignored
1822   --disable-freetype-bundling
1823                           disable bundling of the freetype library with the
1824                           build result [enabled on Windows or when using
1825                           --with-freetype, disabled otherwise]
1826   --enable-sjavac         use sjavac to do fast incremental compiles
1827                           [disabled]
1828   --disable-precompiled-headers
1829                           disable using precompiled headers when compiling C++
1830                           [enabled]
1831   --enable-ccache         enable using ccache to speed up recompilations
1832                           [disabled]
1833 
1834 Optional Packages:
1835   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1836   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1837   --with-custom-make-dir  use this directory for custom build/make files
1838   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1839                           support it), e.g. --with-target-bits=32 [guessed]
1840   --with-sys-root         pass this sys-root to the compilers and tools (for
1841                           cross-compiling)
1842   --with-tools-dir        search this directory for compilers and tools (for
1843                           cross-compiling)
1844   --with-devkit           use this directory as base for tools-dir and
1845                           sys-root (for cross-compiling)
1846   --with-jdk-variant      JDK variant to build (normal) [normal]
1847   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1848   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1849                           client, minimal1, kernel, zero, zeroshark, core)
1850                           [server]
1851   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1852                           [release]
1853   --with-conf-name        use this as the name of the configuration [generated
1854                           from important configuration options]
1855   --with-builddeps-conf   use this configuration file for the builddeps
1856   --with-builddeps-server download and use build dependencies from this server
1857                           url
1858   --with-builddeps-dir    store downloaded build dependencies here
1859                           [/localhome/builddeps]
1860   --with-builddeps-group  chgrp the downloaded build dependencies to this
1861                           group
1862   --with-cacerts-file     specify alternative cacerts file
1863   --with-milestone        Set milestone value for build [internal]
1864   --with-update-version   Set update version value for build [b00]
1865   --with-user-release-suffix
1866                           Add a custom string to the version string if build
1867                           number isn't set.[username_builddateb00]
1868   --with-build-number     Set build number value for build [b00]
1869   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1870   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1871                           invocations of the Boot JDK, overriding the default
1872                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1873                           -enableassertions"
1874   --with-add-source-root  for each and every source directory, look in this
1875                           additional source root for the same directory; if it
1876                           exists and have files in it, include it in the build
1877   --with-override-source-root
1878                           for each and every source directory, look in this
1879                           override source root for the same directory; if it
1880                           exists, use that directory instead and ignore the
1881                           directory in the original source root
1882   --with-adds-and-overrides
1883                           use the subdirs 'adds' and 'overrides' in the
1884                           specified directory as add-source-root and
1885                           override-source-root
1886   --with-override-langtools
1887                           use this langtools dir for the build
1888   --with-override-corba   use this corba dir for the build
1889   --with-override-jaxp    use this jaxp dir for the build
1890   --with-override-jaxws   use this jaxws dir for the build
1891   --with-override-hotspot use this hotspot dir for the build
1892   --with-override-nashorn use this nashorn dir for the build
1893   --with-override-jdk     use this jdk dir for the build
1894   --with-import-hotspot   import hotspot binaries from this jdk image or
1895                           hotspot build dist dir instead of building from
1896                           source
1897   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1898                           only) [probed]
1899   --with-dxsdk            Deprecated. Option is kept for backwards
1900                           compatibility and is ignored
1901   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1902                           compatibility and is ignored
1903   --with-dxsdk-include    Deprecated. Option is kept for backwards
1904                           compatibility and is ignored
1905   --with-jtreg            Regression Test Harness [probed]
1906   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1907   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1908   --with-extra-ldflags    extra flags to be used when linking jdk
1909   --with-x                use the X Window System
1910   --with-cups             specify prefix directory for the cups package
1911                           (expecting the headers under PATH/include)
1912   --with-cups-include     specify directory for the cups include files
1913   --with-freetype         specify prefix directory for the freetype package
1914                           (expecting the libraries under PATH/lib and the
1915                           headers under PATH/include)
1916   --with-freetype-include specify directory for the freetype include files
1917   --with-freetype-lib     specify directory for the freetype library
1918   --with-alsa             specify prefix directory for the alsa package
1919                           (expecting the libraries under PATH/lib and the
1920                           headers under PATH/include)
1921   --with-alsa-include     specify directory for the alsa include files
1922   --with-alsa-lib         specify directory for the alsa library
1923   --with-giflib           use giflib from build system or OpenJDK source
1924                           (system, bundled) [bundled]
1925   --with-libpng           use libpng from build system or OpenJDK source
1926                           (system, bundled) [bundled]
1927   --with-zlib             use zlib from build system or OpenJDK source
1928                           (system, bundled) [bundled]
1929   --with-stdc++lib=<static>,<dynamic>,<default>
1930                           force linking of the C++ runtime on Linux to either
1931                           static or dynamic, default is static with dynamic as
1932                           fallback
1933   --with-num-cores        number of cores in the build system, e.g.
1934                           --with-num-cores=8 [probed]
1935   --with-memory-size      memory (in MB) available in the build system, e.g.
1936                           --with-memory-size=1024 [probed]
1937   --with-jobs             number of parallel jobs to let make run [calculated
1938                           based on cores and memory]
1939   --with-sjavac-server-java
1940                           use this java binary for running the sjavac
1941                           background server [Boot JDK java]
1942   --with-ccache-dir       where to store ccache files [~/.ccache]
1943 
1944 Some influential environment variables:
1945   BASENAME    Override default value for BASENAME
1946   BASH        Override default value for BASH
1947   CAT         Override default value for CAT
1948   CHMOD       Override default value for CHMOD
1949   CMP         Override default value for CMP
1950   COMM        Override default value for COMM
1951   CP          Override default value for CP
1952   CPIO        Override default value for CPIO
1953   CUT         Override default value for CUT
1954   DATE        Override default value for DATE
1955   DIFF        Override default value for DIFF
1956   DIRNAME     Override default value for DIRNAME
1957   ECHO        Override default value for ECHO
1958   EXPR        Override default value for EXPR
1959   FILE        Override default value for FILE
1960   FIND        Override default value for FIND
1961   HEAD        Override default value for HEAD
1962   LN          Override default value for LN
1963   LS          Override default value for LS
1964   MKDIR       Override default value for MKDIR
1965   MKTEMP      Override default value for MKTEMP
1966   MV          Override default value for MV
1967   NAWK        Override default value for NAWK
1968   PRINTF      Override default value for PRINTF
1969   RM          Override default value for RM
1970   SH          Override default value for SH
1971   SORT        Override default value for SORT
1972   TAIL        Override default value for TAIL
1973   TAR         Override default value for TAR
1974   TEE         Override default value for TEE
1975   TOUCH       Override default value for TOUCH
1976   TR          Override default value for TR
1977   UNAME       Override default value for UNAME
1978   UNIQ        Override default value for UNIQ
1979   WC          Override default value for WC
1980   WHICH       Override default value for WHICH
1981   XARGS       Override default value for XARGS
1982   AWK         Override default value for AWK
1983   GREP        Override default value for GREP
1984   EGREP       Override default value for EGREP
1985   FGREP       Override default value for FGREP
1986   SED         Override default value for SED
1987   CYGPATH     Override default value for CYGPATH
1988   READLINK    Override default value for READLINK
1989   DF          Override default value for DF
1990   SETFILE     Override default value for SETFILE
1991   UNZIP       Override default value for UNZIP
1992   ZIP         Override default value for ZIP
1993   LDD         Override default value for LDD
1994   OTOOL       Override default value for OTOOL
1995   READELF     Override default value for READELF
1996   HG          Override default value for HG
1997   STAT        Override default value for STAT
1998   TIME        Override default value for TIME
1999   DSYMUTIL    Override default value for DSYMUTIL
2000   XATTR       Override default value for XATTR
2001   CODESIGN    Override default value for CODESIGN
2002   PKG_CONFIG  path to pkg-config utility
2003   JAVA        Override default value for JAVA
2004   JAVAC       Override default value for JAVAC
2005   JAVAH       Override default value for JAVAH
2006   JAR         Override default value for JAR
2007   NATIVE2ASCII
2008               Override default value for NATIVE2ASCII
2009   JARSIGNER   Override default value for JARSIGNER
2010   BUILD_CC    Override default value for BUILD_CC
2011   BUILD_CXX   Override default value for BUILD_CXX
2012   BUILD_LD    Override default value for BUILD_LD
2013   CC          C compiler command
2014   CFLAGS      C compiler flags
2015   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2016               nonstandard directory <lib dir>
2017   LIBS        libraries to pass to the linker, e.g. -l<library>
2018   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2019               you have headers in a nonstandard directory <include dir>
2020   CXX         C++ compiler command
2021   CXXFLAGS    C++ compiler flags
2022   OBJC        Objective C compiler command
2023   OBJCFLAGS   Objective C compiler flags
2024   AR          Override default value for AR
2025   CPP         C preprocessor
2026   CXXCPP      C++ preprocessor
2027   AS          Override default value for AS
2028   NM          Override default value for NM
2029   GNM         Override default value for GNM
2030   STRIP       Override default value for STRIP
2031   MCS         Override default value for MCS
2032   OBJCOPY     Override default value for OBJCOPY
2033   OBJDUMP     Override default value for OBJDUMP
2034   LIPO        Override default value for LIPO
2035   JTREGEXE    Override default value for JTREGEXE
2036   XMKMF       Path to xmkmf, Makefile generator for X Window System
2037   FREETYPE_CFLAGS
2038               C compiler flags for FREETYPE, overriding pkg-config
2039   FREETYPE_LIBS
2040               linker flags for FREETYPE, overriding pkg-config
2041   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2042   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2043   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2044   PNG_LIBS    linker flags for PNG, overriding pkg-config
2045   LIBFFI_CFLAGS
2046               C compiler flags for LIBFFI, overriding pkg-config
2047   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2048   CCACHE      Override default value for CCACHE
2049 
2050 Use these variables to override the choices made by `configure' or to help
2051 it to find libraries and programs with nonstandard names/locations.
2052 
2053 Report bugs to <build-dev@openjdk.java.net>.
2054 OpenJDK home page: <http://openjdk.java.net>.
2055 _ACEOF
2056 ac_status=$?
2057 fi
2058 
2059 if test "$ac_init_help" = "recursive"; then
2060   # If there are subdirs, report their specific --help.
2061   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2062     test -d "$ac_dir" ||
2063       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2064       continue
2065     ac_builddir=.
2066 
2067 case "$ac_dir" in
2068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2069 *)
2070   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2071   # A ".." for each directory in $ac_dir_suffix.
2072   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2073   case $ac_top_builddir_sub in
2074   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2075   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2076   esac ;;
2077 esac
2078 ac_abs_top_builddir=$ac_pwd
2079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2080 # for backward compatibility:
2081 ac_top_builddir=$ac_top_build_prefix
2082 
2083 case $srcdir in
2084   .)  # We are building in place.
2085     ac_srcdir=.
2086     ac_top_srcdir=$ac_top_builddir_sub
2087     ac_abs_top_srcdir=$ac_pwd ;;
2088   [\\/]* | ?:[\\/]* )  # Absolute name.
2089     ac_srcdir=$srcdir$ac_dir_suffix;
2090     ac_top_srcdir=$srcdir
2091     ac_abs_top_srcdir=$srcdir ;;
2092   *) # Relative name.
2093     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2094     ac_top_srcdir=$ac_top_build_prefix$srcdir
2095     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2096 esac
2097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2098 
2099     cd "$ac_dir" || { ac_status=$?; continue; }
2100     # Check for guested configure.
2101     if test -f "$ac_srcdir/configure.gnu"; then
2102       echo &&
2103       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2104     elif test -f "$ac_srcdir/configure"; then
2105       echo &&
2106       $SHELL "$ac_srcdir/configure" --help=recursive
2107     else
2108       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2109     fi || ac_status=$?
2110     cd "$ac_pwd" || { ac_status=$?; break; }
2111   done
2112 fi
2113 
2114 test -n "$ac_init_help" && exit $ac_status
2115 if $ac_init_version; then
2116   cat <<\_ACEOF
2117 OpenJDK configure jdk8
2118 generated by GNU Autoconf 2.69
2119 
2120 Copyright (C) 2012 Free Software Foundation, Inc.
2121 This configure script is free software; the Free Software Foundation
2122 gives unlimited permission to copy, distribute and modify it.
2123 _ACEOF
2124   exit
2125 fi
2126 
2127 ## ------------------------ ##
2128 ## Autoconf initialization. ##
2129 ## ------------------------ ##
2130 
2131 # ac_fn_c_try_compile LINENO
2132 # --------------------------
2133 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_c_try_compile ()
2135 {
2136   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137   rm -f conftest.$ac_objext
2138   if { { ac_try="$ac_compile"
2139 case "(($ac_try" in
2140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141   *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145   (eval "$ac_compile") 2>conftest.err
2146   ac_status=$?
2147   if test -s conftest.err; then
2148     grep -v '^ *+' conftest.err >conftest.er1
2149     cat conftest.er1 >&5
2150     mv -f conftest.er1 conftest.err
2151   fi
2152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153   test $ac_status = 0; } && {
2154          test -z "$ac_c_werror_flag" ||
2155          test ! -s conftest.err
2156        } && test -s conftest.$ac_objext; then :
2157   ac_retval=0
2158 else
2159   $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161 
2162         ac_retval=1
2163 fi
2164   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165   as_fn_set_status $ac_retval
2166 
2167 } # ac_fn_c_try_compile
2168 
2169 # ac_fn_cxx_try_compile LINENO
2170 # ----------------------------
2171 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_compile ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   rm -f conftest.$ac_objext
2176   if { { ac_try="$ac_compile"
2177 case "(($ac_try" in
2178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179   *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183   (eval "$ac_compile") 2>conftest.err
2184   ac_status=$?
2185   if test -s conftest.err; then
2186     grep -v '^ *+' conftest.err >conftest.er1
2187     cat conftest.er1 >&5
2188     mv -f conftest.er1 conftest.err
2189   fi
2190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191   test $ac_status = 0; } && {
2192          test -z "$ac_cxx_werror_flag" ||
2193          test ! -s conftest.err
2194        } && test -s conftest.$ac_objext; then :
2195   ac_retval=0
2196 else
2197   $as_echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199 
2200         ac_retval=1
2201 fi
2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203   as_fn_set_status $ac_retval
2204 
2205 } # ac_fn_cxx_try_compile
2206 
2207 # ac_fn_objc_try_compile LINENO
2208 # -----------------------------
2209 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2210 ac_fn_objc_try_compile ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   rm -f conftest.$ac_objext
2214   if { { ac_try="$ac_compile"
2215 case "(($ac_try" in
2216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217   *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221   (eval "$ac_compile") 2>conftest.err
2222   ac_status=$?
2223   if test -s conftest.err; then
2224     grep -v '^ *+' conftest.err >conftest.er1
2225     cat conftest.er1 >&5
2226     mv -f conftest.er1 conftest.err
2227   fi
2228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229   test $ac_status = 0; } && {
2230          test -z "$ac_objc_werror_flag" ||
2231          test ! -s conftest.err
2232        } && test -s conftest.$ac_objext; then :
2233   ac_retval=0
2234 else
2235   $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237 
2238         ac_retval=1
2239 fi
2240   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241   as_fn_set_status $ac_retval
2242 
2243 } # ac_fn_objc_try_compile
2244 
2245 # ac_fn_c_try_cpp LINENO
2246 # ----------------------
2247 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2248 ac_fn_c_try_cpp ()
2249 {
2250   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251   if { { ac_try="$ac_cpp conftest.$ac_ext"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257 $as_echo "$ac_try_echo"; } >&5
2258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2259   ac_status=$?
2260   if test -s conftest.err; then
2261     grep -v '^ *+' conftest.err >conftest.er1
2262     cat conftest.er1 >&5
2263     mv -f conftest.er1 conftest.err
2264   fi
2265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266   test $ac_status = 0; } > conftest.i && {
2267          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2268          test ! -s conftest.err
2269        }; then :
2270   ac_retval=0
2271 else
2272   $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274 
2275     ac_retval=1
2276 fi
2277   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278   as_fn_set_status $ac_retval
2279 
2280 } # ac_fn_c_try_cpp
2281 
2282 # ac_fn_cxx_try_cpp LINENO
2283 # ------------------------
2284 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2285 ac_fn_cxx_try_cpp ()
2286 {
2287   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288   if { { ac_try="$ac_cpp conftest.$ac_ext"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2294 $as_echo "$ac_try_echo"; } >&5
2295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2296   ac_status=$?
2297   if test -s conftest.err; then
2298     grep -v '^ *+' conftest.err >conftest.er1
2299     cat conftest.er1 >&5
2300     mv -f conftest.er1 conftest.err
2301   fi
2302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303   test $ac_status = 0; } > conftest.i && {
2304          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2305          test ! -s conftest.err
2306        }; then :
2307   ac_retval=0
2308 else
2309   $as_echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311 
2312     ac_retval=1
2313 fi
2314   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315   as_fn_set_status $ac_retval
2316 
2317 } # ac_fn_cxx_try_cpp
2318 
2319 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2320 # ---------------------------------------------------------
2321 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2322 # the include files in INCLUDES and setting the cache variable VAR
2323 # accordingly.
2324 ac_fn_cxx_check_header_mongrel ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   if eval \${$3+:} false; then :
2328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2329 $as_echo_n "checking for $2... " >&6; }
2330 if eval \${$3+:} false; then :
2331   $as_echo_n "(cached) " >&6
2332 fi
2333 eval ac_res=\$$3
2334                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 else
2337   # Is the header compilable?
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2339 $as_echo_n "checking $2 usability... " >&6; }
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h.  */
2342 $4
2343 #include <$2>
2344 _ACEOF
2345 if ac_fn_cxx_try_compile "$LINENO"; then :
2346   ac_header_compiler=yes
2347 else
2348   ac_header_compiler=no
2349 fi
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2352 $as_echo "$ac_header_compiler" >&6; }
2353 
2354 # Is the header present?
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2356 $as_echo_n "checking $2 presence... " >&6; }
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h.  */
2359 #include <$2>
2360 _ACEOF
2361 if ac_fn_cxx_try_cpp "$LINENO"; then :
2362   ac_header_preproc=yes
2363 else
2364   ac_header_preproc=no
2365 fi
2366 rm -f conftest.err conftest.i conftest.$ac_ext
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2368 $as_echo "$ac_header_preproc" >&6; }
2369 
2370 # So?  What about this header?
2371 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2372   yes:no: )
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2374 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2376 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2377     ;;
2378   no:yes:* )
2379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2380 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2382 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2383     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2384 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2386 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2388 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2389 ( $as_echo "## ----------------------------------------- ##
2390 ## Report this to build-dev@openjdk.java.net ##
2391 ## ----------------------------------------- ##"
2392      ) | sed "s/^/$as_me: WARNING:     /" >&2
2393     ;;
2394 esac
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if eval \${$3+:} false; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   eval "$3=\$ac_header_compiler"
2401 fi
2402 eval ac_res=\$$3
2403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 fi
2406   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 
2408 } # ac_fn_cxx_check_header_mongrel
2409 
2410 # ac_fn_cxx_try_run LINENO
2411 # ------------------------
2412 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2413 # that executables *can* be run.
2414 ac_fn_cxx_try_run ()
2415 {
2416   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417   if { { ac_try="$ac_link"
2418 case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2423 $as_echo "$ac_try_echo"; } >&5
2424   (eval "$ac_link") 2>&5
2425   ac_status=$?
2426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2427   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2428   { { case "(($ac_try" in
2429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430   *) ac_try_echo=$ac_try;;
2431 esac
2432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2433 $as_echo "$ac_try_echo"; } >&5
2434   (eval "$ac_try") 2>&5
2435   ac_status=$?
2436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437   test $ac_status = 0; }; }; then :
2438   ac_retval=0
2439 else
2440   $as_echo "$as_me: program exited with status $ac_status" >&5
2441        $as_echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443 
2444        ac_retval=$ac_status
2445 fi
2446   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2447   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2448   as_fn_set_status $ac_retval
2449 
2450 } # ac_fn_cxx_try_run
2451 
2452 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2453 # ---------------------------------------------------------
2454 # Tests whether HEADER exists and can be compiled using the include files in
2455 # INCLUDES, setting the cache variable VAR accordingly.
2456 ac_fn_cxx_check_header_compile ()
2457 {
2458   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460 $as_echo_n "checking for $2... " >&6; }
2461 if eval \${$3+:} false; then :
2462   $as_echo_n "(cached) " >&6
2463 else
2464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h.  */
2466 $4
2467 #include <$2>
2468 _ACEOF
2469 if ac_fn_cxx_try_compile "$LINENO"; then :
2470   eval "$3=yes"
2471 else
2472   eval "$3=no"
2473 fi
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 fi
2476 eval ac_res=\$$3
2477                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480 
2481 } # ac_fn_cxx_check_header_compile
2482 
2483 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2484 # ----------------------------------------------
2485 # Tries to find the compile-time value of EXPR in a program that includes
2486 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2487 # computed
2488 ac_fn_cxx_compute_int ()
2489 {
2490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491   if test "$cross_compiling" = yes; then
2492     # Depending upon the size, compute the lo and hi bounds.
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h.  */
2495 $4
2496 int
2497 main ()
2498 {
2499 static int test_array [1 - 2 * !(($2) >= 0)];
2500 test_array [0] = 0;
2501 return test_array [0];
2502 
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_cxx_try_compile "$LINENO"; then :
2508   ac_lo=0 ac_mid=0
2509   while :; do
2510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h.  */
2512 $4
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2517 test_array [0] = 0;
2518 return test_array [0];
2519 
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_cxx_try_compile "$LINENO"; then :
2525   ac_hi=$ac_mid; break
2526 else
2527   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2528                         if test $ac_lo -le $ac_mid; then
2529                           ac_lo= ac_hi=
2530                           break
2531                         fi
2532                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535   done
2536 else
2537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h.  */
2539 $4
2540 int
2541 main ()
2542 {
2543 static int test_array [1 - 2 * !(($2) < 0)];
2544 test_array [0] = 0;
2545 return test_array [0];
2546 
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 if ac_fn_cxx_try_compile "$LINENO"; then :
2552   ac_hi=-1 ac_mid=-1
2553   while :; do
2554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 $4
2557 int
2558 main ()
2559 {
2560 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2561 test_array [0] = 0;
2562 return test_array [0];
2563 
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 if ac_fn_cxx_try_compile "$LINENO"; then :
2569   ac_lo=$ac_mid; break
2570 else
2571   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2572                         if test $ac_mid -le $ac_hi; then
2573                           ac_lo= ac_hi=
2574                           break
2575                         fi
2576                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2577 fi
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579   done
2580 else
2581   ac_lo= ac_hi=
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 # Binary search between lo and hi bounds.
2587 while test "x$ac_lo" != "x$ac_hi"; do
2588   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h.  */
2591 $4
2592 int
2593 main ()
2594 {
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2596 test_array [0] = 0;
2597 return test_array [0];
2598 
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 if ac_fn_cxx_try_compile "$LINENO"; then :
2604   ac_hi=$ac_mid
2605 else
2606   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2607 fi
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 done
2610 case $ac_lo in #((
2611 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2612 '') ac_retval=1 ;;
2613 esac
2614   else
2615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h.  */
2617 $4
2618 static long int longval () { return $2; }
2619 static unsigned long int ulongval () { return $2; }
2620 #include <stdio.h>
2621 #include <stdlib.h>
2622 int
2623 main ()
2624 {
2625 
2626   FILE *f = fopen ("conftest.val", "w");
2627   if (! f)
2628     return 1;
2629   if (($2) < 0)
2630     {
2631       long int i = longval ();
2632       if (i != ($2))
2633         return 1;
2634       fprintf (f, "%ld", i);
2635     }
2636   else
2637     {
2638       unsigned long int i = ulongval ();
2639       if (i != ($2))
2640         return 1;
2641       fprintf (f, "%lu", i);
2642     }
2643   /* Do not output a trailing newline, as this causes \r\n confusion
2644      on some platforms.  */
2645   return ferror (f) || fclose (f) != 0;
2646 
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_cxx_try_run "$LINENO"; then :
2652   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2653 else
2654   ac_retval=1
2655 fi
2656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2657   conftest.$ac_objext conftest.beam conftest.$ac_ext
2658 rm -f conftest.val
2659 
2660   fi
2661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2662   as_fn_set_status $ac_retval
2663 
2664 } # ac_fn_cxx_compute_int
2665 
2666 # ac_fn_cxx_try_link LINENO
2667 # -------------------------
2668 # Try to link conftest.$ac_ext, and return whether this succeeded.
2669 ac_fn_cxx_try_link ()
2670 {
2671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672   rm -f conftest.$ac_objext conftest$ac_exeext
2673   if { { ac_try="$ac_link"
2674 case "(($ac_try" in
2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676   *) ac_try_echo=$ac_try;;
2677 esac
2678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2679 $as_echo "$ac_try_echo"; } >&5
2680   (eval "$ac_link") 2>conftest.err
2681   ac_status=$?
2682   if test -s conftest.err; then
2683     grep -v '^ *+' conftest.err >conftest.er1
2684     cat conftest.er1 >&5
2685     mv -f conftest.er1 conftest.err
2686   fi
2687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2688   test $ac_status = 0; } && {
2689          test -z "$ac_cxx_werror_flag" ||
2690          test ! -s conftest.err
2691        } && test -s conftest$ac_exeext && {
2692          test "$cross_compiling" = yes ||
2693          test -x conftest$ac_exeext
2694        }; then :
2695   ac_retval=0
2696 else
2697   $as_echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699 
2700         ac_retval=1
2701 fi
2702   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2703   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2704   # interfere with the next link command; also delete a directory that is
2705   # left behind by Apple's compiler.  We do this before executing the actions.
2706   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708   as_fn_set_status $ac_retval
2709 
2710 } # ac_fn_cxx_try_link
2711 
2712 # ac_fn_cxx_check_func LINENO FUNC VAR
2713 # ------------------------------------
2714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2715 ac_fn_cxx_check_func ()
2716 {
2717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2719 $as_echo_n "checking for $2... " >&6; }
2720 if eval \${$3+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h.  */
2725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2727 #define $2 innocuous_$2
2728 
2729 /* System header to define __stub macros and hopefully few prototypes,
2730     which can conflict with char $2 (); below.
2731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2732     <limits.h> exists even on freestanding compilers.  */
2733 
2734 #ifdef __STDC__
2735 # include <limits.h>
2736 #else
2737 # include <assert.h>
2738 #endif
2739 
2740 #undef $2
2741 
2742 /* Override any GCC internal prototype to avoid an error.
2743    Use char because int might match the return type of a GCC
2744    builtin and then its argument prototype would still apply.  */
2745 #ifdef __cplusplus
2746 extern "C"
2747 #endif
2748 char $2 ();
2749 /* The GNU C library defines this for functions which it implements
2750     to always fail with ENOSYS.  Some functions are actually named
2751     something starting with __ and the normal name is an alias.  */
2752 #if defined __stub_$2 || defined __stub___$2
2753 choke me
2754 #endif
2755 
2756 int
2757 main ()
2758 {
2759 return $2 ();
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 if ac_fn_cxx_try_link "$LINENO"; then :
2765   eval "$3=yes"
2766 else
2767   eval "$3=no"
2768 fi
2769 rm -f core conftest.err conftest.$ac_objext \
2770     conftest$ac_exeext conftest.$ac_ext
2771 fi
2772 eval ac_res=\$$3
2773                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2774 $as_echo "$ac_res" >&6; }
2775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2776 
2777 } # ac_fn_cxx_check_func
2778 
2779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2780 # -------------------------------------------------------
2781 # Tests whether HEADER exists and can be compiled using the include files in
2782 # INCLUDES, setting the cache variable VAR accordingly.
2783 ac_fn_c_check_header_compile ()
2784 {
2785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2787 $as_echo_n "checking for $2... " >&6; }
2788 if eval \${$3+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h.  */
2793 $4
2794 #include <$2>
2795 _ACEOF
2796 if ac_fn_c_try_compile "$LINENO"; then :
2797   eval "$3=yes"
2798 else
2799   eval "$3=no"
2800 fi
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 fi
2803 eval ac_res=\$$3
2804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 $as_echo "$ac_res" >&6; }
2806   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807 
2808 } # ac_fn_c_check_header_compile
2809 cat >config.log <<_ACEOF
2810 This file contains any messages produced by compilers while
2811 running configure, to aid debugging if configure makes a mistake.
2812 
2813 It was created by OpenJDK $as_me jdk8, which was
2814 generated by GNU Autoconf 2.69.  Invocation command line was
2815 
2816   $ $0 $@
2817 
2818 _ACEOF
2819 exec 5>>config.log
2820 {
2821 cat <<_ASUNAME
2822 ## --------- ##
2823 ## Platform. ##
2824 ## --------- ##
2825 
2826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2831 
2832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2833 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2834 
2835 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2836 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2838 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2839 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2840 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2841 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2842 
2843 _ASUNAME
2844 
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850     $as_echo "PATH: $as_dir"
2851   done
2852 IFS=$as_save_IFS
2853 
2854 } >&5
2855 
2856 cat >&5 <<_ACEOF
2857 
2858 
2859 ## ----------- ##
2860 ## Core tests. ##
2861 ## ----------- ##
2862 
2863 _ACEOF
2864 
2865 
2866 # Keep a trace of the command line.
2867 # Strip out --no-create and --no-recursion so they do not pile up.
2868 # Strip out --silent because we don't want to record it for future runs.
2869 # Also quote any args containing shell meta-characters.
2870 # Make two passes to allow for proper duplicate-argument suppression.
2871 ac_configure_args=
2872 ac_configure_args0=
2873 ac_configure_args1=
2874 ac_must_keep_next=false
2875 for ac_pass in 1 2
2876 do
2877   for ac_arg
2878   do
2879     case $ac_arg in
2880     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2881     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2882     | -silent | --silent | --silen | --sile | --sil)
2883       continue ;;
2884     *\'*)
2885       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2886     esac
2887     case $ac_pass in
2888     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2889     2)
2890       as_fn_append ac_configure_args1 " '$ac_arg'"
2891       if test $ac_must_keep_next = true; then
2892         ac_must_keep_next=false # Got value, back to normal.
2893       else
2894         case $ac_arg in
2895           *=* | --config-cache | -C | -disable-* | --disable-* \
2896           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2897           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2898           | -with-* | --with-* | -without-* | --without-* | --x)
2899             case "$ac_configure_args0 " in
2900               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2901             esac
2902             ;;
2903           -* ) ac_must_keep_next=true ;;
2904         esac
2905       fi
2906       as_fn_append ac_configure_args " '$ac_arg'"
2907       ;;
2908     esac
2909   done
2910 done
2911 { ac_configure_args0=; unset ac_configure_args0;}
2912 { ac_configure_args1=; unset ac_configure_args1;}
2913 
2914 # When interrupted or exit'd, cleanup temporary files, and complete
2915 # config.log.  We remove comments because anyway the quotes in there
2916 # would cause problems or look ugly.
2917 # WARNING: Use '\'' to represent an apostrophe within the trap.
2918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2919 trap 'exit_status=$?
2920   # Save into config.log some information that might help in debugging.
2921   {
2922     echo
2923 
2924     $as_echo "## ---------------- ##
2925 ## Cache variables. ##
2926 ## ---------------- ##"
2927     echo
2928     # The following way of writing the cache mishandles newlines in values,
2929 (
2930   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2931     eval ac_val=\$$ac_var
2932     case $ac_val in #(
2933     *${as_nl}*)
2934       case $ac_var in #(
2935       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2937       esac
2938       case $ac_var in #(
2939       _ | IFS | as_nl) ;; #(
2940       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2941       *) { eval $ac_var=; unset $ac_var;} ;;
2942       esac ;;
2943     esac
2944   done
2945   (set) 2>&1 |
2946     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2947     *${as_nl}ac_space=\ *)
2948       sed -n \
2949         "s/'\''/'\''\\\\'\'''\''/g;
2950           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2951       ;; #(
2952     *)
2953       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2954       ;;
2955     esac |
2956     sort
2957 )
2958     echo
2959 
2960     $as_echo "## ----------------- ##
2961 ## Output variables. ##
2962 ## ----------------- ##"
2963     echo
2964     for ac_var in $ac_subst_vars
2965     do
2966       eval ac_val=\$$ac_var
2967       case $ac_val in
2968       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2969       esac
2970       $as_echo "$ac_var='\''$ac_val'\''"
2971     done | sort
2972     echo
2973 
2974     if test -n "$ac_subst_files"; then
2975       $as_echo "## ------------------- ##
2976 ## File substitutions. ##
2977 ## ------------------- ##"
2978       echo
2979       for ac_var in $ac_subst_files
2980       do
2981         eval ac_val=\$$ac_var
2982         case $ac_val in
2983         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2984         esac
2985         $as_echo "$ac_var='\''$ac_val'\''"
2986       done | sort
2987       echo
2988     fi
2989 
2990     if test -s confdefs.h; then
2991       $as_echo "## ----------- ##
2992 ## confdefs.h. ##
2993 ## ----------- ##"
2994       echo
2995       cat confdefs.h
2996       echo
2997     fi
2998     test "$ac_signal" != 0 &&
2999       $as_echo "$as_me: caught signal $ac_signal"
3000     $as_echo "$as_me: exit $exit_status"
3001   } >&5
3002   rm -f core *.core core.conftest.* &&
3003     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3004     exit $exit_status
3005 ' 0
3006 for ac_signal in 1 2 13 15; do
3007   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3008 done
3009 ac_signal=0
3010 
3011 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3012 rm -f -r conftest* confdefs.h
3013 
3014 $as_echo "/* confdefs.h */" > confdefs.h
3015 
3016 # Predefined preprocessor variables.
3017 
3018 cat >>confdefs.h <<_ACEOF
3019 #define PACKAGE_NAME "$PACKAGE_NAME"
3020 _ACEOF
3021 
3022 cat >>confdefs.h <<_ACEOF
3023 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3024 _ACEOF
3025 
3026 cat >>confdefs.h <<_ACEOF
3027 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3028 _ACEOF
3029 
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE_STRING "$PACKAGE_STRING"
3032 _ACEOF
3033 
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3036 _ACEOF
3037 
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_URL "$PACKAGE_URL"
3040 _ACEOF
3041 
3042 
3043 # Let the site file select an alternate cache file if it wants to.
3044 # Prefer an explicitly selected file to automatically selected ones.
3045 ac_site_file1=NONE
3046 ac_site_file2=NONE
3047 if test -n "$CONFIG_SITE"; then
3048   # We do not want a PATH search for config.site.
3049   case $CONFIG_SITE in #((
3050     -*)  ac_site_file1=./$CONFIG_SITE;;
3051     */*) ac_site_file1=$CONFIG_SITE;;
3052     *)   ac_site_file1=./$CONFIG_SITE;;
3053   esac
3054 elif test "x$prefix" != xNONE; then
3055   ac_site_file1=$prefix/share/config.site
3056   ac_site_file2=$prefix/etc/config.site
3057 else
3058   ac_site_file1=$ac_default_prefix/share/config.site
3059   ac_site_file2=$ac_default_prefix/etc/config.site
3060 fi
3061 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3062 do
3063   test "x$ac_site_file" = xNONE && continue
3064   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3065     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3066 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3067     sed 's/^/| /' "$ac_site_file" >&5
3068     . "$ac_site_file" \
3069       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "failed to load site script $ac_site_file
3072 See \`config.log' for more details" "$LINENO" 5; }
3073   fi
3074 done
3075 
3076 if test -r "$cache_file"; then
3077   # Some versions of bash will fail to source /dev/null (special files
3078   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3079   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3080     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3081 $as_echo "$as_me: loading cache $cache_file" >&6;}
3082     case $cache_file in
3083       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3084       *)                      . "./$cache_file";;
3085     esac
3086   fi
3087 else
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3089 $as_echo "$as_me: creating cache $cache_file" >&6;}
3090   >$cache_file
3091 fi
3092 
3093 # Check that the precious variables saved in the cache have kept the same
3094 # value.
3095 ac_cache_corrupted=false
3096 for ac_var in $ac_precious_vars; do
3097   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3098   eval ac_new_set=\$ac_env_${ac_var}_set
3099   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3100   eval ac_new_val=\$ac_env_${ac_var}_value
3101   case $ac_old_set,$ac_new_set in
3102     set,)
3103       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3104 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3105       ac_cache_corrupted=: ;;
3106     ,set)
3107       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3108 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3109       ac_cache_corrupted=: ;;
3110     ,);;
3111     *)
3112       if test "x$ac_old_val" != "x$ac_new_val"; then
3113         # differences in whitespace do not lead to failure.
3114         ac_old_val_w=`echo x $ac_old_val`
3115         ac_new_val_w=`echo x $ac_new_val`
3116         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3117           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3118 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3119           ac_cache_corrupted=:
3120         else
3121           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3122 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3123           eval $ac_var=\$ac_old_val
3124         fi
3125         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3126 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3127         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3128 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3129       fi;;
3130   esac
3131   # Pass precious variables to config.status.
3132   if test "$ac_new_set" = set; then
3133     case $ac_new_val in
3134     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3135     *) ac_arg=$ac_var=$ac_new_val ;;
3136     esac
3137     case " $ac_configure_args " in
3138       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3139       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3140     esac
3141   fi
3142 done
3143 if $ac_cache_corrupted; then
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3147 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3148   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3149 fi
3150 ## -------------------- ##
3151 ## Main body of script. ##
3152 ## -------------------- ##
3153 
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 
3160 
3161 
3162 ac_aux_dir=
3163 for ac_dir in build-aux "$srcdir"/build-aux; do
3164   if test -f "$ac_dir/install-sh"; then
3165     ac_aux_dir=$ac_dir
3166     ac_install_sh="$ac_aux_dir/install-sh -c"
3167     break
3168   elif test -f "$ac_dir/install.sh"; then
3169     ac_aux_dir=$ac_dir
3170     ac_install_sh="$ac_aux_dir/install.sh -c"
3171     break
3172   elif test -f "$ac_dir/shtool"; then
3173     ac_aux_dir=$ac_dir
3174     ac_install_sh="$ac_aux_dir/shtool install -c"
3175     break
3176   fi
3177 done
3178 if test -z "$ac_aux_dir"; then
3179   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3180 fi
3181 
3182 # These three variables are undocumented and unsupported,
3183 # and are intended to be withdrawn in a future Autoconf release.
3184 # They can cause serious problems if a builder's source tree is in a directory
3185 # whose full name contains unusual characters.
3186 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3187 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3188 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3189 
3190 
3191 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3192 
3193 #
3194 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3195 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3196 #
3197 # This code is free software; you can redistribute it and/or modify it
3198 # under the terms of the GNU General Public License version 2 only, as
3199 # published by the Free Software Foundation.  Oracle designates this
3200 # particular file as subject to the "Classpath" exception as provided
3201 # by Oracle in the LICENSE file that accompanied this code.
3202 #
3203 # This code is distributed in the hope that it will be useful, but WITHOUT
3204 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3205 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3206 # version 2 for more details (a copy is included in the LICENSE file that
3207 # accompanied this code).
3208 #
3209 # You should have received a copy of the GNU General Public License version
3210 # 2 along with this work; if not, write to the Free Software Foundation,
3211 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3212 #
3213 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3214 # or visit www.oracle.com if you need additional information or have any
3215 # questions.
3216 #
3217 
3218 #
3219 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3220 #
3221 # This program is free software; you can redistribute it and/or modify
3222 # it under the terms of the GNU General Public License as published by
3223 # the Free Software Foundation; either version 2 of the License, or
3224 # (at your option) any later version.
3225 #
3226 # This program is distributed in the hope that it will be useful, but
3227 # WITHOUT ANY WARRANTY; without even the implied warranty of
3228 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3229 # General Public License for more details.
3230 #
3231 # You should have received a copy of the GNU General Public License
3232 # along with this program; if not, write to the Free Software
3233 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3234 #
3235 # As a special exception to the GNU General Public License, if you
3236 # distribute this file as part of a program that contains a
3237 # configuration script generated by Autoconf, you may include it under
3238 # the same distribution terms that you use for the rest of that program.
3239 
3240 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3241 # ----------------------------------
3242 # PKG_PROG_PKG_CONFIG
3243 
3244 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3245 #
3246 # Check to see whether a particular set of modules exists.  Similar
3247 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3248 #
3249 #
3250 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3251 # this or PKG_CHECK_MODULES is called, or make sure to call
3252 # PKG_CHECK_EXISTS manually
3253 # --------------------------------------------------------------
3254 
3255 
3256 
3257 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3258 # ---------------------------------------------
3259 # _PKG_CONFIG
3260 
3261 # _PKG_SHORT_ERRORS_SUPPORTED
3262 # -----------------------------
3263 # _PKG_SHORT_ERRORS_SUPPORTED
3264 
3265 
3266 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3267 # [ACTION-IF-NOT-FOUND])
3268 #
3269 #
3270 # Note that if there is a possibility the first call to
3271 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3272 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3273 #
3274 #
3275 # --------------------------------------------------------------
3276 # PKG_CHECK_MODULES
3277 
3278 
3279 # Include these first...
3280 #
3281 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3282 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3283 #
3284 # This code is free software; you can redistribute it and/or modify it
3285 # under the terms of the GNU General Public License version 2 only, as
3286 # published by the Free Software Foundation.  Oracle designates this
3287 # particular file as subject to the "Classpath" exception as provided
3288 # by Oracle in the LICENSE file that accompanied this code.
3289 #
3290 # This code is distributed in the hope that it will be useful, but WITHOUT
3291 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3292 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3293 # version 2 for more details (a copy is included in the LICENSE file that
3294 # accompanied this code).
3295 #
3296 # You should have received a copy of the GNU General Public License version
3297 # 2 along with this work; if not, write to the Free Software Foundation,
3298 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3299 #
3300 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3301 # or visit www.oracle.com if you need additional information or have any
3302 # questions.
3303 #
3304 
3305 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3306 # If so, then append $1 to $2 \
3307 # Also set JVM_ARG_OK to true/false depending on outcome.
3308 
3309 
3310 # Appends a string to a path variable, only adding the : when needed.
3311 
3312 
3313 # This will make sure the given variable points to a full and proper
3314 # path. This means:
3315 # 1) There will be no spaces in the path. On posix platforms,
3316 #    spaces in the path will result in an error. On Windows,
3317 #    the path will be rewritten using short-style to be space-free.
3318 # 2) The path will be absolute, and it will be in unix-style (on
3319 #     cygwin).
3320 # $1: The name of the variable to fix
3321 
3322 
3323 # This will make sure the given variable points to a executable
3324 # with a full and proper path. This means:
3325 # 1) There will be no spaces in the path. On posix platforms,
3326 #    spaces in the path will result in an error. On Windows,
3327 #    the path will be rewritten using short-style to be space-free.
3328 # 2) The path will be absolute, and it will be in unix-style (on
3329 #     cygwin).
3330 # Any arguments given to the executable is preserved.
3331 # If the input variable does not have a directory specification, then
3332 # it need to be in the PATH.
3333 # $1: The name of the variable to fix
3334 
3335 
3336 
3337 
3338 # Register a --with argument but mark it as deprecated
3339 # $1: The name of the with argument to deprecate, not including --with-
3340 
3341 
3342 # Register a --enable argument but mark it as deprecated
3343 # $1: The name of the with argument to deprecate, not including --enable-
3344 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3345 
3346 
3347 
3348 
3349 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3350 # $1: variable to check
3351 
3352 
3353 # Check that there are no unprocessed overridden variables left.
3354 # If so, they are an incorrect argument and we will exit with an error.
3355 
3356 
3357 # Setup a tool for the given variable. If correctly specified by the user,
3358 # use that value, otherwise search for the tool using the supplied code snippet.
3359 # $1: variable to set
3360 # $2: code snippet to call to look for the tool
3361 
3362 
3363 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3364 # $1: variable to set
3365 # $2: executable name (or list of names) to look for
3366 
3367 
3368 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3369 # $1: variable to set
3370 # $2: executable name (or list of names) to look for
3371 
3372 
3373 # Like BASIC_PATH_PROGS but fails if no tool was found.
3374 # $1: variable to set
3375 # $2: executable name (or list of names) to look for
3376 
3377 
3378 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3379 # $1: variable to set
3380 # $2: autoconf macro to call to look for the special tool
3381 
3382 
3383 # Setup the most fundamental tools that relies on not much else to set up,
3384 # but is used by much of the early bootstrap code.
3385 
3386 
3387 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3388 
3389 
3390 
3391 
3392 
3393 
3394 
3395 #%%% Simple tools %%%
3396 
3397 # Check if we have found a usable version of make
3398 # $1: the path to a potential make binary (or empty)
3399 # $2: the description on how we found this
3400 
3401 
3402 # Goes looking for a usable version of GNU make.
3403 
3404 
3405 
3406 
3407 
3408 
3409 # Check if build directory is on local disk. If not possible to determine,
3410 # we prefer to claim it's local.
3411 # Argument 1: directory to test
3412 # Argument 2: what to do if it is on local disk
3413 # Argument 3: what to do otherwise (remote disk or failure)
3414 
3415 
3416 # Check that source files have basic read permissions set. This might
3417 # not be the case in cygwin in certain conditions.
3418 
3419 
3420 
3421 
3422 #
3423 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3424 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3425 #
3426 # This code is free software; you can redistribute it and/or modify it
3427 # under the terms of the GNU General Public License version 2 only, as
3428 # published by the Free Software Foundation.  Oracle designates this
3429 # particular file as subject to the "Classpath" exception as provided
3430 # by Oracle in the LICENSE file that accompanied this code.
3431 #
3432 # This code is distributed in the hope that it will be useful, but WITHOUT
3433 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3434 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3435 # version 2 for more details (a copy is included in the LICENSE file that
3436 # accompanied this code).
3437 #
3438 # You should have received a copy of the GNU General Public License version
3439 # 2 along with this work; if not, write to the Free Software Foundation,
3440 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3441 #
3442 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3443 # or visit www.oracle.com if you need additional information or have any
3444 # questions.
3445 #
3446 
3447 
3448 
3449 
3450 
3451 # Helper function which possibly converts a path using DOS-style short mode.
3452 # If so, the updated path is stored in $new_path.
3453 # $1: The path to check
3454 
3455 
3456 # Helper function which possibly converts a path using DOS-style short mode.
3457 # If so, the updated path is stored in $new_path.
3458 # $1: The path to check
3459 
3460 
3461 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3462 # and could probably be heavily simplified. However, all changes in this
3463 # area tend to need lot of testing in different scenarios, and in lack of
3464 # proper unit testing, cleaning this up has not been deemed worth the effort
3465 # at the moment.
3466 
3467 
3468 
3469 
3470 
3471 
3472 
3473 
3474 
3475 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3476 
3477 
3478 
3479 
3480 #
3481 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3482 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3483 #
3484 # This code is free software; you can redistribute it and/or modify it
3485 # under the terms of the GNU General Public License version 2 only, as
3486 # published by the Free Software Foundation.  Oracle designates this
3487 # particular file as subject to the "Classpath" exception as provided
3488 # by Oracle in the LICENSE file that accompanied this code.
3489 #
3490 # This code is distributed in the hope that it will be useful, but WITHOUT
3491 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3492 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3493 # version 2 for more details (a copy is included in the LICENSE file that
3494 # accompanied this code).
3495 #
3496 # You should have received a copy of the GNU General Public License version
3497 # 2 along with this work; if not, write to the Free Software Foundation,
3498 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3499 #
3500 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3501 # or visit www.oracle.com if you need additional information or have any
3502 # questions.
3503 #
3504 
3505 
3506 
3507 
3508 
3509 
3510 
3511 
3512 
3513 
3514 
3515 # ... then the rest
3516 #
3517 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3518 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3519 #
3520 # This code is free software; you can redistribute it and/or modify it
3521 # under the terms of the GNU General Public License version 2 only, as
3522 # published by the Free Software Foundation.  Oracle designates this
3523 # particular file as subject to the "Classpath" exception as provided
3524 # by Oracle in the LICENSE file that accompanied this code.
3525 #
3526 # This code is distributed in the hope that it will be useful, but WITHOUT
3527 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3528 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3529 # version 2 for more details (a copy is included in the LICENSE file that
3530 # accompanied this code).
3531 #
3532 # You should have received a copy of the GNU General Public License version
3533 # 2 along with this work; if not, write to the Free Software Foundation,
3534 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3535 #
3536 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3537 # or visit www.oracle.com if you need additional information or have any
3538 # questions.
3539 #
3540 
3541 ########################################################################
3542 # This file handles detection of the Boot JDK. The Boot JDK detection
3543 # process has been developed as a response to solve a complex real-world
3544 # problem. Initially, it was simple, but it has grown as platform after
3545 # platform, idiosyncracy after idiosyncracy has been supported.
3546 #
3547 # The basic idea is this:
3548 # 1) You need an acceptable *) JDK to use as a Boot JDK
3549 # 2) There are several ways to locate a JDK, that are mostly platform
3550 #    dependent **)
3551 # 3) You can have multiple JDKs installed
3552 # 4) If possible, configure should try to dig out an acceptable JDK
3553 #    automatically, without having to resort to command-line options
3554 #
3555 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3556 #     javac) and not a JRE, etc.
3557 #
3558 # **) On Windows we typically use a well-known path.
3559 #     On MacOSX we typically use the tool java_home.
3560 #     On Linux we typically find javac in the $PATH, and then follow a
3561 #     chain of symlinks that often ends up in a real JDK.
3562 #
3563 # This leads to the code where we check in different ways to locate a
3564 # JDK, and if one is found, check if it is acceptable. If not, we print
3565 # our reasons for rejecting it (useful when debugging non-working
3566 # configure situations) and continue checking the next one.
3567 ########################################################################
3568 
3569 # Execute the check given as argument, and verify the result
3570 # If the Boot JDK was previously found, do nothing
3571 # $1 A command line (typically autoconf macro) to execute
3572 
3573 
3574 # Test: Is bootjdk explicitely set by command line arguments?
3575 
3576 
3577 # Test: Is bootjdk available from builddeps?
3578 
3579 
3580 # Test: Is $JAVA_HOME set?
3581 
3582 
3583 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3584 
3585 
3586 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3587 # $1: Argument to the java_home binary (optional)
3588 
3589 
3590 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3591 
3592 
3593 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3594 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3595 # $1 = Path to directory containing jdk installations.
3596 # $2 = String to append to the found JDK directory to get the proper JDK home
3597 
3598 
3599 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3600 # environmental variable as base for where to look.
3601 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3602 
3603 
3604 # Test: Is there a JDK installed in default, well-known locations?
3605 
3606 
3607 # Check that a command-line tool in the Boot JDK is correct
3608 # $1 = name of variable to assign
3609 # $2 = name of binary
3610 
3611 
3612 ###############################################################################
3613 #
3614 # We need a Boot JDK to bootstrap the build.
3615 #
3616 
3617 
3618 
3619 
3620 
3621 #
3622 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3623 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3624 #
3625 # This code is free software; you can redistribute it and/or modify it
3626 # under the terms of the GNU General Public License version 2 only, as
3627 # published by the Free Software Foundation.  Oracle designates this
3628 # particular file as subject to the "Classpath" exception as provided
3629 # by Oracle in the LICENSE file that accompanied this code.
3630 #
3631 # This code is distributed in the hope that it will be useful, but WITHOUT
3632 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3633 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3634 # version 2 for more details (a copy is included in the LICENSE file that
3635 # accompanied this code).
3636 #
3637 # You should have received a copy of the GNU General Public License version
3638 # 2 along with this work; if not, write to the Free Software Foundation,
3639 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3640 #
3641 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3642 # or visit www.oracle.com if you need additional information or have any
3643 # questions.
3644 #
3645 
3646 
3647 
3648 
3649 
3650 
3651 
3652 
3653 
3654 
3655 
3656 
3657 
3658 
3659 
3660 
3661 
3662 
3663 
3664 
3665 #
3666 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3667 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3668 #
3669 # This code is free software; you can redistribute it and/or modify it
3670 # under the terms of the GNU General Public License version 2 only, as
3671 # published by the Free Software Foundation.  Oracle designates this
3672 # particular file as subject to the "Classpath" exception as provided
3673 # by Oracle in the LICENSE file that accompanied this code.
3674 #
3675 # This code is distributed in the hope that it will be useful, but WITHOUT
3676 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3677 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3678 # version 2 for more details (a copy is included in the LICENSE file that
3679 # accompanied this code).
3680 #
3681 # You should have received a copy of the GNU General Public License version
3682 # 2 along with this work; if not, write to the Free Software Foundation,
3683 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3684 #
3685 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3686 # or visit www.oracle.com if you need additional information or have any
3687 # questions.
3688 #
3689 
3690 
3691 
3692 
3693 
3694 cygwin_help() {
3695   case $1 in
3696     unzip)
3697       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3698       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3699       ;;
3700     zip)
3701       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3702       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3703       ;;
3704     make)
3705       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3706       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3707       ;;
3708     freetype)
3709       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3710         HELP_MSG="To install freetype, run:
3711 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3712 chmod +x /tmp/freetype-setup.exe
3713 /tmp/freetype-setup.exe
3714 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3715 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3716       else
3717         HELP_MSG="You need to build a 64-bit version of freetype.
3718 This is not readily available.
3719 You can find source code and build instructions on
3720 http://www.freetype.org/
3721 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3722       fi
3723       ;;
3724   esac
3725 }
3726 
3727 msys_help() {
3728   PKGHANDLER_COMMAND=""
3729 }
3730 
3731 apt_help() {
3732   case $1 in
3733     devkit)
3734       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3735     openjdk)
3736       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3737     alsa)
3738       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3739     cups)
3740       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3741     freetype)
3742       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3743     pulse)
3744       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3745     x11)
3746       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3747     ccache)
3748       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3749   esac
3750 }
3751 
3752 yum_help() {
3753   case $1 in
3754     devkit)
3755       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3756     openjdk)
3757       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3758     alsa)
3759       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3760     cups)
3761       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3762     freetype)
3763       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3764     pulse)
3765       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3766     x11)
3767       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3768     ccache)
3769       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3770   esac
3771 }
3772 
3773 port_help() {
3774   PKGHANDLER_COMMAND=""
3775 }
3776 
3777 pkgutil_help() {
3778   PKGHANDLER_COMMAND=""
3779 }
3780 
3781 pkgadd_help() {
3782   PKGHANDLER_COMMAND=""
3783 }
3784 
3785 
3786 
3787 #
3788 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3789 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3790 #
3791 # This code is free software; you can redistribute it and/or modify it
3792 # under the terms of the GNU General Public License version 2 only, as
3793 # published by the Free Software Foundation.  Oracle designates this
3794 # particular file as subject to the "Classpath" exception as provided
3795 # by Oracle in the LICENSE file that accompanied this code.
3796 #
3797 # This code is distributed in the hope that it will be useful, but WITHOUT
3798 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3799 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3800 # version 2 for more details (a copy is included in the LICENSE file that
3801 # accompanied this code).
3802 #
3803 # You should have received a copy of the GNU General Public License version
3804 # 2 along with this work; if not, write to the Free Software Foundation,
3805 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3806 #
3807 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3808 # or visit www.oracle.com if you need additional information or have any
3809 # questions.
3810 #
3811 
3812 
3813 
3814 
3815 
3816 
3817 
3818 
3819 
3820 
3821 ###############################################################################
3822 #
3823 # Should we build only OpenJDK even if closed sources are present?
3824 #
3825 
3826 
3827 
3828 
3829 ###############################################################################
3830 #
3831 # Setup version numbers
3832 #
3833 
3834 
3835 
3836 
3837 
3838 
3839 # Support for customization of the build process. Some build files
3840 # will include counterparts from this location, if they exist. This allows
3841 # for a degree of customization of the build targets and the rules/recipes
3842 # to create them
3843 
3844 # Check whether --with-custom-make-dir was given.
3845 if test "${with_custom_make_dir+set}" = set; then :
3846   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3847 fi
3848 
3849 
3850 
3851 #
3852 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3853 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3854 #
3855 # This code is free software; you can redistribute it and/or modify it
3856 # under the terms of the GNU General Public License version 2 only, as
3857 # published by the Free Software Foundation.  Oracle designates this
3858 # particular file as subject to the "Classpath" exception as provided
3859 # by Oracle in the LICENSE file that accompanied this code.
3860 #
3861 # This code is distributed in the hope that it will be useful, but WITHOUT
3862 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3863 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3864 # version 2 for more details (a copy is included in the LICENSE file that
3865 # accompanied this code).
3866 #
3867 # You should have received a copy of the GNU General Public License version
3868 # 2 along with this work; if not, write to the Free Software Foundation,
3869 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3870 #
3871 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3872 # or visit www.oracle.com if you need additional information or have any
3873 # questions.
3874 #
3875 
3876 
3877 
3878 
3879 
3880 
3881 
3882 
3883 
3884 
3885 
3886 
3887 
3888 
3889 
3890 
3891 
3892 #
3893 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3894 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3895 #
3896 # This code is free software; you can redistribute it and/or modify it
3897 # under the terms of the GNU General Public License version 2 only, as
3898 # published by the Free Software Foundation.  Oracle designates this
3899 # particular file as subject to the "Classpath" exception as provided
3900 # by Oracle in the LICENSE file that accompanied this code.
3901 #
3902 # This code is distributed in the hope that it will be useful, but WITHOUT
3903 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3904 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3905 # version 2 for more details (a copy is included in the LICENSE file that
3906 # accompanied this code).
3907 #
3908 # You should have received a copy of the GNU General Public License version
3909 # 2 along with this work; if not, write to the Free Software Foundation,
3910 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3911 #
3912 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3913 # or visit www.oracle.com if you need additional information or have any
3914 # questions.
3915 #
3916 
3917 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3918 # Converts autoconf style CPU name to OpenJDK style, into
3919 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
3920 
3921 
3922 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3923 # Converts autoconf style OS name to OpenJDK style, into
3924 # VAR_OS and VAR_OS_API.
3925 
3926 
3927 # Expects $host_os $host_cpu $build_os and $build_cpu
3928 # and $with_target_bits to have been setup!
3929 #
3930 # Translate the standard triplet(quadruplet) definition
3931 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
3932 # OPENJDK_BUILD_OS, etc.
3933 
3934 
3935 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
3936 # accordingly. Must be done after setting up build and target system, but before
3937 # doing anything else with these values.
3938 
3939 
3940 # Setup the legacy variables, for controlling the old makefiles.
3941 #
3942 
3943 
3944 
3945 
3946 #%%% Build and target systems %%%
3947 
3948 
3949 
3950 
3951 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
3952 # Add -mX to various FLAGS variables.
3953 
3954 
3955 
3956 
3957 
3958 
3959 #
3960 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3961 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3962 #
3963 # This code is free software; you can redistribute it and/or modify it
3964 # under the terms of the GNU General Public License version 2 only, as
3965 # published by the Free Software Foundation.  Oracle designates this
3966 # particular file as subject to the "Classpath" exception as provided
3967 # by Oracle in the LICENSE file that accompanied this code.
3968 #
3969 # This code is distributed in the hope that it will be useful, but WITHOUT
3970 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3971 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3972 # version 2 for more details (a copy is included in the LICENSE file that
3973 # accompanied this code).
3974 #
3975 # You should have received a copy of the GNU General Public License version
3976 # 2 along with this work; if not, write to the Free Software Foundation,
3977 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3978 #
3979 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3980 # or visit www.oracle.com if you need additional information or have any
3981 # questions.
3982 #
3983 
3984 
3985 
3986 
3987 
3988 
3989 
3990 
3991 #
3992 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3993 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3994 #
3995 # This code is free software; you can redistribute it and/or modify it
3996 # under the terms of the GNU General Public License version 2 only, as
3997 # published by the Free Software Foundation.  Oracle designates this
3998 # particular file as subject to the "Classpath" exception as provided
3999 # by Oracle in the LICENSE file that accompanied this code.
4000 #
4001 # This code is distributed in the hope that it will be useful, but WITHOUT
4002 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4003 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4004 # version 2 for more details (a copy is included in the LICENSE file that
4005 # accompanied this code).
4006 #
4007 # You should have received a copy of the GNU General Public License version
4008 # 2 along with this work; if not, write to the Free Software Foundation,
4009 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4010 #
4011 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4012 # or visit www.oracle.com if you need additional information or have any
4013 # questions.
4014 #
4015 
4016 # $1 = compiler to test (CC or CXX)
4017 # $2 = human readable name of compiler (C or C++)
4018 
4019 
4020 
4021 
4022 
4023 # $1 = compiler to test (CC or CXX)
4024 # $2 = human readable name of compiler (C or C++)
4025 # $3 = list of compiler names to search for
4026 
4027 
4028 
4029 
4030 
4031 
4032 
4033 
4034 
4035 
4036 
4037 
4038 
4039 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
4040 #                                   [RUN-IF-FALSE])
4041 # ------------------------------------------------------------
4042 # Check that the c and c++ compilers support an argument
4043 
4044 
4045 
4046 
4047 # Setup the JTREG paths
4048 
4049 
4050 #
4051 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4052 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4053 #
4054 # This code is free software; you can redistribute it and/or modify it
4055 # under the terms of the GNU General Public License version 2 only, as
4056 # published by the Free Software Foundation.  Oracle designates this
4057 # particular file as subject to the "Classpath" exception as provided
4058 # by Oracle in the LICENSE file that accompanied this code.
4059 #
4060 # This code is distributed in the hope that it will be useful, but WITHOUT
4061 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4062 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4063 # version 2 for more details (a copy is included in the LICENSE file that
4064 # accompanied this code).
4065 #
4066 # You should have received a copy of the GNU General Public License version
4067 # 2 along with this work; if not, write to the Free Software Foundation,
4068 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4069 #
4070 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4071 # or visit www.oracle.com if you need additional information or have any
4072 # questions.
4073 #
4074 
4075 
4076 
4077 
4078 
4079 
4080 
4081 # Check if the VS env variables were setup prior to running configure.
4082 # If not, then find vcvarsall.bat and run it automatically, and integrate
4083 # the set env variables into the spec file.
4084 
4085 
4086 
4087 
4088 
4089 
4090 
4091 
4092 
4093 
4094 # This line needs to be here, verbatim, after all includes and the dummy hook
4095 # definitions. It is replaced with custom functionality when building
4096 # custom sources.
4097 #CUSTOM_AUTOCONF_INCLUDE
4098 
4099 # Do not change or remove the following line, it is needed for consistency checks:
4100 DATE_WHEN_GENERATED=1392242826
4101 
4102 ###############################################################################
4103 #
4104 # Initialization / Boot-strapping
4105 #
4106 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4107 # thus it jumps back and forth, each time gaining something needed later on.
4108 #
4109 ###############################################################################
4110 
4111 # Basic initialization that must happen first of all
4112 
4113   # Save the original command line. This is passed to us by the wrapper configure script.
4114 
4115   DATE_WHEN_CONFIGURED=`LANG=C date`
4116 
4117   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4118 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4120 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4121 
4122 
4123   # Start with tools that do not need have cross compilation support
4124   # and can be expected to be found in the default PATH. These tools are
4125   # used by configure. Nor are these tools expected to be found in the
4126   # devkit from the builddeps server either, since they are
4127   # needed to download the devkit.
4128 
4129   # First are all the simple required tools.
4130 
4131 
4132 
4133   # Publish this variable in the help.
4134 
4135 
4136   if test "x$BASENAME" = x; then
4137     # The variable is not set by user, try to locate tool using the code snippet
4138     for ac_prog in basename
4139 do
4140   # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_path_BASENAME+:} false; then :
4145   $as_echo_n "(cached) " >&6
4146 else
4147   case $BASENAME in
4148   [\\/]* | ?:[\\/]*)
4149   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4150   ;;
4151   *)
4152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155   IFS=$as_save_IFS
4156   test -z "$as_dir" && as_dir=.
4157     for ac_exec_ext in '' $ac_executable_extensions; do
4158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161     break 2
4162   fi
4163 done
4164   done
4165 IFS=$as_save_IFS
4166 
4167   ;;
4168 esac
4169 fi
4170 BASENAME=$ac_cv_path_BASENAME
4171 if test -n "$BASENAME"; then
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4173 $as_echo "$BASENAME" >&6; }
4174 else
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 fi
4178 
4179 
4180   test -n "$BASENAME" && break
4181 done
4182 
4183   else
4184     # The variable is set, but is it from the command line or the environment?
4185 
4186     # Try to remove the string !BASENAME! from our list.
4187     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4188     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4189       # If it failed, the variable was not from the command line. Ignore it,
4190       # but warn the user (except for BASH, which is always set by the calling BASH).
4191       if test "xBASENAME" != xBASH; then
4192         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4193 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4194       fi
4195       # Try to locate tool using the code snippet
4196       for ac_prog in basename
4197 do
4198   # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if ${ac_cv_path_BASENAME+:} false; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205   case $BASENAME in
4206   [\\/]* | ?:[\\/]*)
4207   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4208   ;;
4209   *)
4210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222   done
4223 IFS=$as_save_IFS
4224 
4225   ;;
4226 esac
4227 fi
4228 BASENAME=$ac_cv_path_BASENAME
4229 if test -n "$BASENAME"; then
4230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4231 $as_echo "$BASENAME" >&6; }
4232 else
4233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4235 fi
4236 
4237 
4238   test -n "$BASENAME" && break
4239 done
4240 
4241     else
4242       # If it succeeded, then it was overridden by the user. We will use it
4243       # for the tool.
4244 
4245       # First remove it from the list of overridden variables, so we can test
4246       # for unknown variables in the end.
4247       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4248 
4249       # Check if the provided tool contains a complete path.
4250       tool_specified="$BASENAME"
4251       tool_basename="${tool_specified##*/}"
4252       if test "x$tool_basename" = "x$tool_specified"; then
4253         # A command without a complete path is provided, search $PATH.
4254         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4255 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4256         # Extract the first word of "$tool_basename", so it can be a program name with args.
4257 set dummy $tool_basename; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_path_BASENAME+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   case $BASENAME in
4264   [\\/]* | ?:[\\/]*)
4265   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4266   ;;
4267   *)
4268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273     for ac_exec_ext in '' $ac_executable_extensions; do
4274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280   done
4281 IFS=$as_save_IFS
4282 
4283   ;;
4284 esac
4285 fi
4286 BASENAME=$ac_cv_path_BASENAME
4287 if test -n "$BASENAME"; then
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4289 $as_echo "$BASENAME" >&6; }
4290 else
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294 
4295 
4296         if test "x$BASENAME" = x; then
4297           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4298         fi
4299       else
4300         # Otherwise we believe it is a complete path. Use it as it is.
4301         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4302 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4304 $as_echo_n "checking for BASENAME... " >&6; }
4305         if test ! -x "$tool_specified"; then
4306           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4307 $as_echo "not found" >&6; }
4308           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4309         fi
4310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4311 $as_echo "$tool_specified" >&6; }
4312       fi
4313     fi
4314   fi
4315 
4316 
4317 
4318   if test "x$BASENAME" = x; then
4319     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4320   fi
4321 
4322 
4323 
4324 
4325 
4326   # Publish this variable in the help.
4327 
4328 
4329   if test "x$BASH" = x; then
4330     # The variable is not set by user, try to locate tool using the code snippet
4331     for ac_prog in bash
4332 do
4333   # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_path_BASH+:} false; then :
4338   $as_echo_n "(cached) " >&6
4339 else
4340   case $BASH in
4341   [\\/]* | ?:[\\/]*)
4342   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4343   ;;
4344   *)
4345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350     for ac_exec_ext in '' $ac_executable_extensions; do
4351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354     break 2
4355   fi
4356 done
4357   done
4358 IFS=$as_save_IFS
4359 
4360   ;;
4361 esac
4362 fi
4363 BASH=$ac_cv_path_BASH
4364 if test -n "$BASH"; then
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4366 $as_echo "$BASH" >&6; }
4367 else
4368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4370 fi
4371 
4372 
4373   test -n "$BASH" && break
4374 done
4375 
4376   else
4377     # The variable is set, but is it from the command line or the environment?
4378 
4379     # Try to remove the string !BASH! from our list.
4380     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4381     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4382       # If it failed, the variable was not from the command line. Ignore it,
4383       # but warn the user (except for BASH, which is always set by the calling BASH).
4384       if test "xBASH" != xBASH; then
4385         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4386 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4387       fi
4388       # Try to locate tool using the code snippet
4389       for ac_prog in bash
4390 do
4391   # Extract the first word of "$ac_prog", so it can be a program name with args.
4392 set dummy $ac_prog; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if ${ac_cv_path_BASH+:} false; then :
4396   $as_echo_n "(cached) " >&6
4397 else
4398   case $BASH in
4399   [\\/]* | ?:[\\/]*)
4400   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4401   ;;
4402   *)
4403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408     for ac_exec_ext in '' $ac_executable_extensions; do
4409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415   done
4416 IFS=$as_save_IFS
4417 
4418   ;;
4419 esac
4420 fi
4421 BASH=$ac_cv_path_BASH
4422 if test -n "$BASH"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4424 $as_echo "$BASH" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429 
4430 
4431   test -n "$BASH" && break
4432 done
4433 
4434     else
4435       # If it succeeded, then it was overridden by the user. We will use it
4436       # for the tool.
4437 
4438       # First remove it from the list of overridden variables, so we can test
4439       # for unknown variables in the end.
4440       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4441 
4442       # Check if the provided tool contains a complete path.
4443       tool_specified="$BASH"
4444       tool_basename="${tool_specified##*/}"
4445       if test "x$tool_basename" = "x$tool_specified"; then
4446         # A command without a complete path is provided, search $PATH.
4447         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4448 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4449         # Extract the first word of "$tool_basename", so it can be a program name with args.
4450 set dummy $tool_basename; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_path_BASH+:} false; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456   case $BASH in
4457   [\\/]* | ?:[\\/]*)
4458   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4459   ;;
4460   *)
4461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473   done
4474 IFS=$as_save_IFS
4475 
4476   ;;
4477 esac
4478 fi
4479 BASH=$ac_cv_path_BASH
4480 if test -n "$BASH"; then
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4482 $as_echo "$BASH" >&6; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487 
4488 
4489         if test "x$BASH" = x; then
4490           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4491         fi
4492       else
4493         # Otherwise we believe it is a complete path. Use it as it is.
4494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4495 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4497 $as_echo_n "checking for BASH... " >&6; }
4498         if test ! -x "$tool_specified"; then
4499           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4500 $as_echo "not found" >&6; }
4501           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4502         fi
4503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4504 $as_echo "$tool_specified" >&6; }
4505       fi
4506     fi
4507   fi
4508 
4509 
4510 
4511   if test "x$BASH" = x; then
4512     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4513   fi
4514 
4515 
4516 
4517 
4518 
4519   # Publish this variable in the help.
4520 
4521 
4522   if test "x$CAT" = x; then
4523     # The variable is not set by user, try to locate tool using the code snippet
4524     for ac_prog in cat
4525 do
4526   # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_path_CAT+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   case $CAT in
4534   [\\/]* | ?:[\\/]*)
4535   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4536   ;;
4537   *)
4538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543     for ac_exec_ext in '' $ac_executable_extensions; do
4544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547     break 2
4548   fi
4549 done
4550   done
4551 IFS=$as_save_IFS
4552 
4553   ;;
4554 esac
4555 fi
4556 CAT=$ac_cv_path_CAT
4557 if test -n "$CAT"; then
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4559 $as_echo "$CAT" >&6; }
4560 else
4561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4563 fi
4564 
4565 
4566   test -n "$CAT" && break
4567 done
4568 
4569   else
4570     # The variable is set, but is it from the command line or the environment?
4571 
4572     # Try to remove the string !CAT! from our list.
4573     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4574     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4575       # If it failed, the variable was not from the command line. Ignore it,
4576       # but warn the user (except for BASH, which is always set by the calling BASH).
4577       if test "xCAT" != xBASH; then
4578         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4579 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4580       fi
4581       # Try to locate tool using the code snippet
4582       for ac_prog in cat
4583 do
4584   # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_path_CAT+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   case $CAT in
4592   [\\/]* | ?:[\\/]*)
4593   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4594   ;;
4595   *)
4596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599   IFS=$as_save_IFS
4600   test -z "$as_dir" && as_dir=.
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605     break 2
4606   fi
4607 done
4608   done
4609 IFS=$as_save_IFS
4610 
4611   ;;
4612 esac
4613 fi
4614 CAT=$ac_cv_path_CAT
4615 if test -n "$CAT"; then
4616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4617 $as_echo "$CAT" >&6; }
4618 else
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622 
4623 
4624   test -n "$CAT" && break
4625 done
4626 
4627     else
4628       # If it succeeded, then it was overridden by the user. We will use it
4629       # for the tool.
4630 
4631       # First remove it from the list of overridden variables, so we can test
4632       # for unknown variables in the end.
4633       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4634 
4635       # Check if the provided tool contains a complete path.
4636       tool_specified="$CAT"
4637       tool_basename="${tool_specified##*/}"
4638       if test "x$tool_basename" = "x$tool_specified"; then
4639         # A command without a complete path is provided, search $PATH.
4640         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4641 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4642         # Extract the first word of "$tool_basename", so it can be a program name with args.
4643 set dummy $tool_basename; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_path_CAT+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   case $CAT in
4650   [\\/]* | ?:[\\/]*)
4651   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4652   ;;
4653   *)
4654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_exec_ext in '' $ac_executable_extensions; do
4660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666   done
4667 IFS=$as_save_IFS
4668 
4669   ;;
4670 esac
4671 fi
4672 CAT=$ac_cv_path_CAT
4673 if test -n "$CAT"; then
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4675 $as_echo "$CAT" >&6; }
4676 else
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680 
4681 
4682         if test "x$CAT" = x; then
4683           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4684         fi
4685       else
4686         # Otherwise we believe it is a complete path. Use it as it is.
4687         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4688 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4689         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4690 $as_echo_n "checking for CAT... " >&6; }
4691         if test ! -x "$tool_specified"; then
4692           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4693 $as_echo "not found" >&6; }
4694           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4695         fi
4696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4697 $as_echo "$tool_specified" >&6; }
4698       fi
4699     fi
4700   fi
4701 
4702 
4703 
4704   if test "x$CAT" = x; then
4705     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4706   fi
4707 
4708 
4709 
4710 
4711 
4712   # Publish this variable in the help.
4713 
4714 
4715   if test "x$CHMOD" = x; then
4716     # The variable is not set by user, try to locate tool using the code snippet
4717     for ac_prog in chmod
4718 do
4719   # Extract the first word of "$ac_prog", so it can be a program name with args.
4720 set dummy $ac_prog; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if ${ac_cv_path_CHMOD+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   case $CHMOD in
4727   [\\/]* | ?:[\\/]*)
4728   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4729   ;;
4730   *)
4731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736     for ac_exec_ext in '' $ac_executable_extensions; do
4737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743   done
4744 IFS=$as_save_IFS
4745 
4746   ;;
4747 esac
4748 fi
4749 CHMOD=$ac_cv_path_CHMOD
4750 if test -n "$CHMOD"; then
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4752 $as_echo "$CHMOD" >&6; }
4753 else
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 fi
4757 
4758 
4759   test -n "$CHMOD" && break
4760 done
4761 
4762   else
4763     # The variable is set, but is it from the command line or the environment?
4764 
4765     # Try to remove the string !CHMOD! from our list.
4766     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4767     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4768       # If it failed, the variable was not from the command line. Ignore it,
4769       # but warn the user (except for BASH, which is always set by the calling BASH).
4770       if test "xCHMOD" != xBASH; then
4771         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4772 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4773       fi
4774       # Try to locate tool using the code snippet
4775       for ac_prog in chmod
4776 do
4777   # Extract the first word of "$ac_prog", so it can be a program name with args.
4778 set dummy $ac_prog; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_path_CHMOD+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   case $CHMOD in
4785   [\\/]* | ?:[\\/]*)
4786   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4787   ;;
4788   *)
4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794     for ac_exec_ext in '' $ac_executable_extensions; do
4795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801   done
4802 IFS=$as_save_IFS
4803 
4804   ;;
4805 esac
4806 fi
4807 CHMOD=$ac_cv_path_CHMOD
4808 if test -n "$CHMOD"; then
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4810 $as_echo "$CHMOD" >&6; }
4811 else
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815 
4816 
4817   test -n "$CHMOD" && break
4818 done
4819 
4820     else
4821       # If it succeeded, then it was overridden by the user. We will use it
4822       # for the tool.
4823 
4824       # First remove it from the list of overridden variables, so we can test
4825       # for unknown variables in the end.
4826       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4827 
4828       # Check if the provided tool contains a complete path.
4829       tool_specified="$CHMOD"
4830       tool_basename="${tool_specified##*/}"
4831       if test "x$tool_basename" = "x$tool_specified"; then
4832         # A command without a complete path is provided, search $PATH.
4833         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4834 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4835         # Extract the first word of "$tool_basename", so it can be a program name with args.
4836 set dummy $tool_basename; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_path_CHMOD+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   case $CHMOD in
4843   [\\/]* | ?:[\\/]*)
4844   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4845   ;;
4846   *)
4847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852     for ac_exec_ext in '' $ac_executable_extensions; do
4853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859   done
4860 IFS=$as_save_IFS
4861 
4862   ;;
4863 esac
4864 fi
4865 CHMOD=$ac_cv_path_CHMOD
4866 if test -n "$CHMOD"; then
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4868 $as_echo "$CHMOD" >&6; }
4869 else
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 fi
4873 
4874 
4875         if test "x$CHMOD" = x; then
4876           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4877         fi
4878       else
4879         # Otherwise we believe it is a complete path. Use it as it is.
4880         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
4881 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
4882         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
4883 $as_echo_n "checking for CHMOD... " >&6; }
4884         if test ! -x "$tool_specified"; then
4885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4886 $as_echo "not found" >&6; }
4887           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
4888         fi
4889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4890 $as_echo "$tool_specified" >&6; }
4891       fi
4892     fi
4893   fi
4894 
4895 
4896 
4897   if test "x$CHMOD" = x; then
4898     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
4899   fi
4900 
4901 
4902 
4903 
4904 
4905   # Publish this variable in the help.
4906 
4907 
4908   if test "x$CMP" = x; then
4909     # The variable is not set by user, try to locate tool using the code snippet
4910     for ac_prog in cmp
4911 do
4912   # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_path_CMP+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   case $CMP in
4920   [\\/]* | ?:[\\/]*)
4921   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4922   ;;
4923   *)
4924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927   IFS=$as_save_IFS
4928   test -z "$as_dir" && as_dir=.
4929     for ac_exec_ext in '' $ac_executable_extensions; do
4930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933     break 2
4934   fi
4935 done
4936   done
4937 IFS=$as_save_IFS
4938 
4939   ;;
4940 esac
4941 fi
4942 CMP=$ac_cv_path_CMP
4943 if test -n "$CMP"; then
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4945 $as_echo "$CMP" >&6; }
4946 else
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950 
4951 
4952   test -n "$CMP" && break
4953 done
4954 
4955   else
4956     # The variable is set, but is it from the command line or the environment?
4957 
4958     # Try to remove the string !CMP! from our list.
4959     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
4960     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4961       # If it failed, the variable was not from the command line. Ignore it,
4962       # but warn the user (except for BASH, which is always set by the calling BASH).
4963       if test "xCMP" != xBASH; then
4964         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
4965 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
4966       fi
4967       # Try to locate tool using the code snippet
4968       for ac_prog in cmp
4969 do
4970   # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_path_CMP+:} false; then :
4975   $as_echo_n "(cached) " >&6
4976 else
4977   case $CMP in
4978   [\\/]* | ?:[\\/]*)
4979   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4980   ;;
4981   *)
4982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987     for ac_exec_ext in '' $ac_executable_extensions; do
4988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994   done
4995 IFS=$as_save_IFS
4996 
4997   ;;
4998 esac
4999 fi
5000 CMP=$ac_cv_path_CMP
5001 if test -n "$CMP"; then
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5003 $as_echo "$CMP" >&6; }
5004 else
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008 
5009 
5010   test -n "$CMP" && break
5011 done
5012 
5013     else
5014       # If it succeeded, then it was overridden by the user. We will use it
5015       # for the tool.
5016 
5017       # First remove it from the list of overridden variables, so we can test
5018       # for unknown variables in the end.
5019       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5020 
5021       # Check if the provided tool contains a complete path.
5022       tool_specified="$CMP"
5023       tool_basename="${tool_specified##*/}"
5024       if test "x$tool_basename" = "x$tool_specified"; then
5025         # A command without a complete path is provided, search $PATH.
5026         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5027 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5028         # Extract the first word of "$tool_basename", so it can be a program name with args.
5029 set dummy $tool_basename; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_path_CMP+:} false; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035   case $CMP in
5036   [\\/]* | ?:[\\/]*)
5037   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5038   ;;
5039   *)
5040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045     for ac_exec_ext in '' $ac_executable_extensions; do
5046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052   done
5053 IFS=$as_save_IFS
5054 
5055   ;;
5056 esac
5057 fi
5058 CMP=$ac_cv_path_CMP
5059 if test -n "$CMP"; then
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5061 $as_echo "$CMP" >&6; }
5062 else
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066 
5067 
5068         if test "x$CMP" = x; then
5069           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5070         fi
5071       else
5072         # Otherwise we believe it is a complete path. Use it as it is.
5073         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5074 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5076 $as_echo_n "checking for CMP... " >&6; }
5077         if test ! -x "$tool_specified"; then
5078           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5079 $as_echo "not found" >&6; }
5080           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5081         fi
5082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5083 $as_echo "$tool_specified" >&6; }
5084       fi
5085     fi
5086   fi
5087 
5088 
5089 
5090   if test "x$CMP" = x; then
5091     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5092   fi
5093 
5094 
5095 
5096 
5097 
5098   # Publish this variable in the help.
5099 
5100 
5101   if test "x$COMM" = x; then
5102     # The variable is not set by user, try to locate tool using the code snippet
5103     for ac_prog in comm
5104 do
5105   # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_path_COMM+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   case $COMM in
5113   [\\/]* | ?:[\\/]*)
5114   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5115   ;;
5116   *)
5117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120   IFS=$as_save_IFS
5121   test -z "$as_dir" && as_dir=.
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126     break 2
5127   fi
5128 done
5129   done
5130 IFS=$as_save_IFS
5131 
5132   ;;
5133 esac
5134 fi
5135 COMM=$ac_cv_path_COMM
5136 if test -n "$COMM"; then
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5138 $as_echo "$COMM" >&6; }
5139 else
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142 fi
5143 
5144 
5145   test -n "$COMM" && break
5146 done
5147 
5148   else
5149     # The variable is set, but is it from the command line or the environment?
5150 
5151     # Try to remove the string !COMM! from our list.
5152     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5153     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5154       # If it failed, the variable was not from the command line. Ignore it,
5155       # but warn the user (except for BASH, which is always set by the calling BASH).
5156       if test "xCOMM" != xBASH; then
5157         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5158 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5159       fi
5160       # Try to locate tool using the code snippet
5161       for ac_prog in comm
5162 do
5163   # Extract the first word of "$ac_prog", so it can be a program name with args.
5164 set dummy $ac_prog; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_path_COMM+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   case $COMM in
5171   [\\/]* | ?:[\\/]*)
5172   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5173   ;;
5174   *)
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180     for ac_exec_ext in '' $ac_executable_extensions; do
5181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187   done
5188 IFS=$as_save_IFS
5189 
5190   ;;
5191 esac
5192 fi
5193 COMM=$ac_cv_path_COMM
5194 if test -n "$COMM"; then
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5196 $as_echo "$COMM" >&6; }
5197 else
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201 
5202 
5203   test -n "$COMM" && break
5204 done
5205 
5206     else
5207       # If it succeeded, then it was overridden by the user. We will use it
5208       # for the tool.
5209 
5210       # First remove it from the list of overridden variables, so we can test
5211       # for unknown variables in the end.
5212       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5213 
5214       # Check if the provided tool contains a complete path.
5215       tool_specified="$COMM"
5216       tool_basename="${tool_specified##*/}"
5217       if test "x$tool_basename" = "x$tool_specified"; then
5218         # A command without a complete path is provided, search $PATH.
5219         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5220 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5221         # Extract the first word of "$tool_basename", so it can be a program name with args.
5222 set dummy $tool_basename; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_path_COMM+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   case $COMM in
5229   [\\/]* | ?:[\\/]*)
5230   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5231   ;;
5232   *)
5233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238     for ac_exec_ext in '' $ac_executable_extensions; do
5239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245   done
5246 IFS=$as_save_IFS
5247 
5248   ;;
5249 esac
5250 fi
5251 COMM=$ac_cv_path_COMM
5252 if test -n "$COMM"; then
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5254 $as_echo "$COMM" >&6; }
5255 else
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259 
5260 
5261         if test "x$COMM" = x; then
5262           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5263         fi
5264       else
5265         # Otherwise we believe it is a complete path. Use it as it is.
5266         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5267 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5269 $as_echo_n "checking for COMM... " >&6; }
5270         if test ! -x "$tool_specified"; then
5271           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5272 $as_echo "not found" >&6; }
5273           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5274         fi
5275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5276 $as_echo "$tool_specified" >&6; }
5277       fi
5278     fi
5279   fi
5280 
5281 
5282 
5283   if test "x$COMM" = x; then
5284     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5285   fi
5286 
5287 
5288 
5289 
5290 
5291   # Publish this variable in the help.
5292 
5293 
5294   if test "x$CP" = x; then
5295     # The variable is not set by user, try to locate tool using the code snippet
5296     for ac_prog in cp
5297 do
5298   # Extract the first word of "$ac_prog", so it can be a program name with args.
5299 set dummy $ac_prog; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_path_CP+:} false; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   case $CP in
5306   [\\/]* | ?:[\\/]*)
5307   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5308   ;;
5309   *)
5310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315     for ac_exec_ext in '' $ac_executable_extensions; do
5316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322   done
5323 IFS=$as_save_IFS
5324 
5325   ;;
5326 esac
5327 fi
5328 CP=$ac_cv_path_CP
5329 if test -n "$CP"; then
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5331 $as_echo "$CP" >&6; }
5332 else
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 fi
5336 
5337 
5338   test -n "$CP" && break
5339 done
5340 
5341   else
5342     # The variable is set, but is it from the command line or the environment?
5343 
5344     # Try to remove the string !CP! from our list.
5345     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5346     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5347       # If it failed, the variable was not from the command line. Ignore it,
5348       # but warn the user (except for BASH, which is always set by the calling BASH).
5349       if test "xCP" != xBASH; then
5350         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5351 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5352       fi
5353       # Try to locate tool using the code snippet
5354       for ac_prog in cp
5355 do
5356   # Extract the first word of "$ac_prog", so it can be a program name with args.
5357 set dummy $ac_prog; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_path_CP+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   case $CP in
5364   [\\/]* | ?:[\\/]*)
5365   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5366   ;;
5367   *)
5368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373     for ac_exec_ext in '' $ac_executable_extensions; do
5374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380   done
5381 IFS=$as_save_IFS
5382 
5383   ;;
5384 esac
5385 fi
5386 CP=$ac_cv_path_CP
5387 if test -n "$CP"; then
5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5389 $as_echo "$CP" >&6; }
5390 else
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394 
5395 
5396   test -n "$CP" && break
5397 done
5398 
5399     else
5400       # If it succeeded, then it was overridden by the user. We will use it
5401       # for the tool.
5402 
5403       # First remove it from the list of overridden variables, so we can test
5404       # for unknown variables in the end.
5405       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5406 
5407       # Check if the provided tool contains a complete path.
5408       tool_specified="$CP"
5409       tool_basename="${tool_specified##*/}"
5410       if test "x$tool_basename" = "x$tool_specified"; then
5411         # A command without a complete path is provided, search $PATH.
5412         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5413 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5414         # Extract the first word of "$tool_basename", so it can be a program name with args.
5415 set dummy $tool_basename; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_path_CP+:} false; then :
5419   $as_echo_n "(cached) " >&6
5420 else
5421   case $CP in
5422   [\\/]* | ?:[\\/]*)
5423   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5424   ;;
5425   *)
5426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438   done
5439 IFS=$as_save_IFS
5440 
5441   ;;
5442 esac
5443 fi
5444 CP=$ac_cv_path_CP
5445 if test -n "$CP"; then
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5447 $as_echo "$CP" >&6; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452 
5453 
5454         if test "x$CP" = x; then
5455           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5456         fi
5457       else
5458         # Otherwise we believe it is a complete path. Use it as it is.
5459         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5460 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5462 $as_echo_n "checking for CP... " >&6; }
5463         if test ! -x "$tool_specified"; then
5464           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5465 $as_echo "not found" >&6; }
5466           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5467         fi
5468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5469 $as_echo "$tool_specified" >&6; }
5470       fi
5471     fi
5472   fi
5473 
5474 
5475 
5476   if test "x$CP" = x; then
5477     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5478   fi
5479 
5480 
5481 
5482 
5483 
5484   # Publish this variable in the help.
5485 
5486 
5487   if test "x$CPIO" = x; then
5488     # The variable is not set by user, try to locate tool using the code snippet
5489     for ac_prog in cpio
5490 do
5491   # Extract the first word of "$ac_prog", so it can be a program name with args.
5492 set dummy $ac_prog; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_path_CPIO+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   case $CPIO in
5499   [\\/]* | ?:[\\/]*)
5500   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5501   ;;
5502   *)
5503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517 
5518   ;;
5519 esac
5520 fi
5521 CPIO=$ac_cv_path_CPIO
5522 if test -n "$CPIO"; then
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5524 $as_echo "$CPIO" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529 
5530 
5531   test -n "$CPIO" && break
5532 done
5533 
5534   else
5535     # The variable is set, but is it from the command line or the environment?
5536 
5537     # Try to remove the string !CPIO! from our list.
5538     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5539     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5540       # If it failed, the variable was not from the command line. Ignore it,
5541       # but warn the user (except for BASH, which is always set by the calling BASH).
5542       if test "xCPIO" != xBASH; then
5543         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5544 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5545       fi
5546       # Try to locate tool using the code snippet
5547       for ac_prog in cpio
5548 do
5549   # Extract the first word of "$ac_prog", so it can be a program name with args.
5550 set dummy $ac_prog; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if ${ac_cv_path_CPIO+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   case $CPIO in
5557   [\\/]* | ?:[\\/]*)
5558   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5559   ;;
5560   *)
5561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564   IFS=$as_save_IFS
5565   test -z "$as_dir" && as_dir=.
5566     for ac_exec_ext in '' $ac_executable_extensions; do
5567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570     break 2
5571   fi
5572 done
5573   done
5574 IFS=$as_save_IFS
5575 
5576   ;;
5577 esac
5578 fi
5579 CPIO=$ac_cv_path_CPIO
5580 if test -n "$CPIO"; then
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5582 $as_echo "$CPIO" >&6; }
5583 else
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587 
5588 
5589   test -n "$CPIO" && break
5590 done
5591 
5592     else
5593       # If it succeeded, then it was overridden by the user. We will use it
5594       # for the tool.
5595 
5596       # First remove it from the list of overridden variables, so we can test
5597       # for unknown variables in the end.
5598       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5599 
5600       # Check if the provided tool contains a complete path.
5601       tool_specified="$CPIO"
5602       tool_basename="${tool_specified##*/}"
5603       if test "x$tool_basename" = "x$tool_specified"; then
5604         # A command without a complete path is provided, search $PATH.
5605         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5606 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5607         # Extract the first word of "$tool_basename", so it can be a program name with args.
5608 set dummy $tool_basename; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if ${ac_cv_path_CPIO+:} false; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614   case $CPIO in
5615   [\\/]* | ?:[\\/]*)
5616   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5617   ;;
5618   *)
5619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624     for ac_exec_ext in '' $ac_executable_extensions; do
5625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628     break 2
5629   fi
5630 done
5631   done
5632 IFS=$as_save_IFS
5633 
5634   ;;
5635 esac
5636 fi
5637 CPIO=$ac_cv_path_CPIO
5638 if test -n "$CPIO"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5640 $as_echo "$CPIO" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645 
5646 
5647         if test "x$CPIO" = x; then
5648           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5649         fi
5650       else
5651         # Otherwise we believe it is a complete path. Use it as it is.
5652         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5653 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5654         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5655 $as_echo_n "checking for CPIO... " >&6; }
5656         if test ! -x "$tool_specified"; then
5657           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5658 $as_echo "not found" >&6; }
5659           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5660         fi
5661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5662 $as_echo "$tool_specified" >&6; }
5663       fi
5664     fi
5665   fi
5666 
5667 
5668 
5669   if test "x$CPIO" = x; then
5670     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5671   fi
5672 
5673 
5674 
5675 
5676 
5677   # Publish this variable in the help.
5678 
5679 
5680   if test "x$CUT" = x; then
5681     # The variable is not set by user, try to locate tool using the code snippet
5682     for ac_prog in cut
5683 do
5684   # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_path_CUT+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   case $CUT in
5692   [\\/]* | ?:[\\/]*)
5693   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5694   ;;
5695   *)
5696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701     for ac_exec_ext in '' $ac_executable_extensions; do
5702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708   done
5709 IFS=$as_save_IFS
5710 
5711   ;;
5712 esac
5713 fi
5714 CUT=$ac_cv_path_CUT
5715 if test -n "$CUT"; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5717 $as_echo "$CUT" >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722 
5723 
5724   test -n "$CUT" && break
5725 done
5726 
5727   else
5728     # The variable is set, but is it from the command line or the environment?
5729 
5730     # Try to remove the string !CUT! from our list.
5731     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5732     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5733       # If it failed, the variable was not from the command line. Ignore it,
5734       # but warn the user (except for BASH, which is always set by the calling BASH).
5735       if test "xCUT" != xBASH; then
5736         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5737 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5738       fi
5739       # Try to locate tool using the code snippet
5740       for ac_prog in cut
5741 do
5742   # Extract the first word of "$ac_prog", so it can be a program name with args.
5743 set dummy $ac_prog; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_path_CUT+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   case $CUT in
5750   [\\/]* | ?:[\\/]*)
5751   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5752   ;;
5753   *)
5754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757   IFS=$as_save_IFS
5758   test -z "$as_dir" && as_dir=.
5759     for ac_exec_ext in '' $ac_executable_extensions; do
5760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763     break 2
5764   fi
5765 done
5766   done
5767 IFS=$as_save_IFS
5768 
5769   ;;
5770 esac
5771 fi
5772 CUT=$ac_cv_path_CUT
5773 if test -n "$CUT"; then
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5775 $as_echo "$CUT" >&6; }
5776 else
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780 
5781 
5782   test -n "$CUT" && break
5783 done
5784 
5785     else
5786       # If it succeeded, then it was overridden by the user. We will use it
5787       # for the tool.
5788 
5789       # First remove it from the list of overridden variables, so we can test
5790       # for unknown variables in the end.
5791       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5792 
5793       # Check if the provided tool contains a complete path.
5794       tool_specified="$CUT"
5795       tool_basename="${tool_specified##*/}"
5796       if test "x$tool_basename" = "x$tool_specified"; then
5797         # A command without a complete path is provided, search $PATH.
5798         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5799 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5800         # Extract the first word of "$tool_basename", so it can be a program name with args.
5801 set dummy $tool_basename; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_path_CUT+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   case $CUT in
5808   [\\/]* | ?:[\\/]*)
5809   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5810   ;;
5811   *)
5812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817     for ac_exec_ext in '' $ac_executable_extensions; do
5818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824   done
5825 IFS=$as_save_IFS
5826 
5827   ;;
5828 esac
5829 fi
5830 CUT=$ac_cv_path_CUT
5831 if test -n "$CUT"; then
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5833 $as_echo "$CUT" >&6; }
5834 else
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838 
5839 
5840         if test "x$CUT" = x; then
5841           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5842         fi
5843       else
5844         # Otherwise we believe it is a complete path. Use it as it is.
5845         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5846 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5847         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5848 $as_echo_n "checking for CUT... " >&6; }
5849         if test ! -x "$tool_specified"; then
5850           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5851 $as_echo "not found" >&6; }
5852           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5853         fi
5854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5855 $as_echo "$tool_specified" >&6; }
5856       fi
5857     fi
5858   fi
5859 
5860 
5861 
5862   if test "x$CUT" = x; then
5863     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5864   fi
5865 
5866 
5867 
5868 
5869 
5870   # Publish this variable in the help.
5871 
5872 
5873   if test "x$DATE" = x; then
5874     # The variable is not set by user, try to locate tool using the code snippet
5875     for ac_prog in date
5876 do
5877   # Extract the first word of "$ac_prog", so it can be a program name with args.
5878 set dummy $ac_prog; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_path_DATE+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   case $DATE in
5885   [\\/]* | ?:[\\/]*)
5886   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5887   ;;
5888   *)
5889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894     for ac_exec_ext in '' $ac_executable_extensions; do
5895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901   done
5902 IFS=$as_save_IFS
5903 
5904   ;;
5905 esac
5906 fi
5907 DATE=$ac_cv_path_DATE
5908 if test -n "$DATE"; then
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5910 $as_echo "$DATE" >&6; }
5911 else
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915 
5916 
5917   test -n "$DATE" && break
5918 done
5919 
5920   else
5921     # The variable is set, but is it from the command line or the environment?
5922 
5923     # Try to remove the string !DATE! from our list.
5924     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
5925     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5926       # If it failed, the variable was not from the command line. Ignore it,
5927       # but warn the user (except for BASH, which is always set by the calling BASH).
5928       if test "xDATE" != xBASH; then
5929         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
5930 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
5931       fi
5932       # Try to locate tool using the code snippet
5933       for ac_prog in date
5934 do
5935   # Extract the first word of "$ac_prog", so it can be a program name with args.
5936 set dummy $ac_prog; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_path_DATE+:} false; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   case $DATE in
5943   [\\/]* | ?:[\\/]*)
5944   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5945   ;;
5946   *)
5947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959   done
5960 IFS=$as_save_IFS
5961 
5962   ;;
5963 esac
5964 fi
5965 DATE=$ac_cv_path_DATE
5966 if test -n "$DATE"; then
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5968 $as_echo "$DATE" >&6; }
5969 else
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973 
5974 
5975   test -n "$DATE" && break
5976 done
5977 
5978     else
5979       # If it succeeded, then it was overridden by the user. We will use it
5980       # for the tool.
5981 
5982       # First remove it from the list of overridden variables, so we can test
5983       # for unknown variables in the end.
5984       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5985 
5986       # Check if the provided tool contains a complete path.
5987       tool_specified="$DATE"
5988       tool_basename="${tool_specified##*/}"
5989       if test "x$tool_basename" = "x$tool_specified"; then
5990         # A command without a complete path is provided, search $PATH.
5991         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
5992 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
5993         # Extract the first word of "$tool_basename", so it can be a program name with args.
5994 set dummy $tool_basename; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_path_DATE+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   case $DATE in
6001   [\\/]* | ?:[\\/]*)
6002   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6003   ;;
6004   *)
6005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017   done
6018 IFS=$as_save_IFS
6019 
6020   ;;
6021 esac
6022 fi
6023 DATE=$ac_cv_path_DATE
6024 if test -n "$DATE"; then
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6026 $as_echo "$DATE" >&6; }
6027 else
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031 
6032 
6033         if test "x$DATE" = x; then
6034           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6035         fi
6036       else
6037         # Otherwise we believe it is a complete path. Use it as it is.
6038         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6039 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6041 $as_echo_n "checking for DATE... " >&6; }
6042         if test ! -x "$tool_specified"; then
6043           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6044 $as_echo "not found" >&6; }
6045           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6046         fi
6047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6048 $as_echo "$tool_specified" >&6; }
6049       fi
6050     fi
6051   fi
6052 
6053 
6054 
6055   if test "x$DATE" = x; then
6056     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6057   fi
6058 
6059 
6060 
6061 
6062 
6063   # Publish this variable in the help.
6064 
6065 
6066   if test "x$DIFF" = x; then
6067     # The variable is not set by user, try to locate tool using the code snippet
6068     for ac_prog in gdiff diff
6069 do
6070   # Extract the first word of "$ac_prog", so it can be a program name with args.
6071 set dummy $ac_prog; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_path_DIFF+:} false; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077   case $DIFF in
6078   [\\/]* | ?:[\\/]*)
6079   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6080   ;;
6081   *)
6082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087     for ac_exec_ext in '' $ac_executable_extensions; do
6088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094   done
6095 IFS=$as_save_IFS
6096 
6097   ;;
6098 esac
6099 fi
6100 DIFF=$ac_cv_path_DIFF
6101 if test -n "$DIFF"; then
6102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6103 $as_echo "$DIFF" >&6; }
6104 else
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108 
6109 
6110   test -n "$DIFF" && break
6111 done
6112 
6113   else
6114     # The variable is set, but is it from the command line or the environment?
6115 
6116     # Try to remove the string !DIFF! from our list.
6117     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6118     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6119       # If it failed, the variable was not from the command line. Ignore it,
6120       # but warn the user (except for BASH, which is always set by the calling BASH).
6121       if test "xDIFF" != xBASH; then
6122         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6123 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6124       fi
6125       # Try to locate tool using the code snippet
6126       for ac_prog in gdiff diff
6127 do
6128   # Extract the first word of "$ac_prog", so it can be a program name with args.
6129 set dummy $ac_prog; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_path_DIFF+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   case $DIFF in
6136   [\\/]* | ?:[\\/]*)
6137   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6138   ;;
6139   *)
6140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145     for ac_exec_ext in '' $ac_executable_extensions; do
6146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152   done
6153 IFS=$as_save_IFS
6154 
6155   ;;
6156 esac
6157 fi
6158 DIFF=$ac_cv_path_DIFF
6159 if test -n "$DIFF"; then
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6161 $as_echo "$DIFF" >&6; }
6162 else
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166 
6167 
6168   test -n "$DIFF" && break
6169 done
6170 
6171     else
6172       # If it succeeded, then it was overridden by the user. We will use it
6173       # for the tool.
6174 
6175       # First remove it from the list of overridden variables, so we can test
6176       # for unknown variables in the end.
6177       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6178 
6179       # Check if the provided tool contains a complete path.
6180       tool_specified="$DIFF"
6181       tool_basename="${tool_specified##*/}"
6182       if test "x$tool_basename" = "x$tool_specified"; then
6183         # A command without a complete path is provided, search $PATH.
6184         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6185 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6186         # Extract the first word of "$tool_basename", so it can be a program name with args.
6187 set dummy $tool_basename; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_path_DIFF+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   case $DIFF in
6194   [\\/]* | ?:[\\/]*)
6195   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6196   ;;
6197   *)
6198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203     for ac_exec_ext in '' $ac_executable_extensions; do
6204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210   done
6211 IFS=$as_save_IFS
6212 
6213   ;;
6214 esac
6215 fi
6216 DIFF=$ac_cv_path_DIFF
6217 if test -n "$DIFF"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6219 $as_echo "$DIFF" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224 
6225 
6226         if test "x$DIFF" = x; then
6227           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6228         fi
6229       else
6230         # Otherwise we believe it is a complete path. Use it as it is.
6231         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6232 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6234 $as_echo_n "checking for DIFF... " >&6; }
6235         if test ! -x "$tool_specified"; then
6236           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6237 $as_echo "not found" >&6; }
6238           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6239         fi
6240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6241 $as_echo "$tool_specified" >&6; }
6242       fi
6243     fi
6244   fi
6245 
6246 
6247 
6248   if test "x$DIFF" = x; then
6249     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6250   fi
6251 
6252 
6253 
6254 
6255 
6256   # Publish this variable in the help.
6257 
6258 
6259   if test "x$DIRNAME" = x; then
6260     # The variable is not set by user, try to locate tool using the code snippet
6261     for ac_prog in dirname
6262 do
6263   # Extract the first word of "$ac_prog", so it can be a program name with args.
6264 set dummy $ac_prog; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_path_DIRNAME+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   case $DIRNAME in
6271   [\\/]* | ?:[\\/]*)
6272   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6273   ;;
6274   *)
6275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_exec_ext in '' $ac_executable_extensions; do
6281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287   done
6288 IFS=$as_save_IFS
6289 
6290   ;;
6291 esac
6292 fi
6293 DIRNAME=$ac_cv_path_DIRNAME
6294 if test -n "$DIRNAME"; then
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6296 $as_echo "$DIRNAME" >&6; }
6297 else
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300 fi
6301 
6302 
6303   test -n "$DIRNAME" && break
6304 done
6305 
6306   else
6307     # The variable is set, but is it from the command line or the environment?
6308 
6309     # Try to remove the string !DIRNAME! from our list.
6310     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6311     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6312       # If it failed, the variable was not from the command line. Ignore it,
6313       # but warn the user (except for BASH, which is always set by the calling BASH).
6314       if test "xDIRNAME" != xBASH; then
6315         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6316 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6317       fi
6318       # Try to locate tool using the code snippet
6319       for ac_prog in dirname
6320 do
6321   # Extract the first word of "$ac_prog", so it can be a program name with args.
6322 set dummy $ac_prog; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_path_DIRNAME+:} false; then :
6326   $as_echo_n "(cached) " >&6
6327 else
6328   case $DIRNAME in
6329   [\\/]* | ?:[\\/]*)
6330   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6331   ;;
6332   *)
6333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338     for ac_exec_ext in '' $ac_executable_extensions; do
6339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345   done
6346 IFS=$as_save_IFS
6347 
6348   ;;
6349 esac
6350 fi
6351 DIRNAME=$ac_cv_path_DIRNAME
6352 if test -n "$DIRNAME"; then
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6354 $as_echo "$DIRNAME" >&6; }
6355 else
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359 
6360 
6361   test -n "$DIRNAME" && break
6362 done
6363 
6364     else
6365       # If it succeeded, then it was overridden by the user. We will use it
6366       # for the tool.
6367 
6368       # First remove it from the list of overridden variables, so we can test
6369       # for unknown variables in the end.
6370       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6371 
6372       # Check if the provided tool contains a complete path.
6373       tool_specified="$DIRNAME"
6374       tool_basename="${tool_specified##*/}"
6375       if test "x$tool_basename" = "x$tool_specified"; then
6376         # A command without a complete path is provided, search $PATH.
6377         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6378 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6379         # Extract the first word of "$tool_basename", so it can be a program name with args.
6380 set dummy $tool_basename; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_path_DIRNAME+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   case $DIRNAME in
6387   [\\/]* | ?:[\\/]*)
6388   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6389   ;;
6390   *)
6391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396     for ac_exec_ext in '' $ac_executable_extensions; do
6397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403   done
6404 IFS=$as_save_IFS
6405 
6406   ;;
6407 esac
6408 fi
6409 DIRNAME=$ac_cv_path_DIRNAME
6410 if test -n "$DIRNAME"; then
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6412 $as_echo "$DIRNAME" >&6; }
6413 else
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417 
6418 
6419         if test "x$DIRNAME" = x; then
6420           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6421         fi
6422       else
6423         # Otherwise we believe it is a complete path. Use it as it is.
6424         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6425 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6427 $as_echo_n "checking for DIRNAME... " >&6; }
6428         if test ! -x "$tool_specified"; then
6429           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6430 $as_echo "not found" >&6; }
6431           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6432         fi
6433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6434 $as_echo "$tool_specified" >&6; }
6435       fi
6436     fi
6437   fi
6438 
6439 
6440 
6441   if test "x$DIRNAME" = x; then
6442     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6443   fi
6444 
6445 
6446 
6447 
6448 
6449   # Publish this variable in the help.
6450 
6451 
6452   if test "x$ECHO" = x; then
6453     # The variable is not set by user, try to locate tool using the code snippet
6454     for ac_prog in echo
6455 do
6456   # Extract the first word of "$ac_prog", so it can be a program name with args.
6457 set dummy $ac_prog; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_path_ECHO+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   case $ECHO in
6464   [\\/]* | ?:[\\/]*)
6465   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6466   ;;
6467   *)
6468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473     for ac_exec_ext in '' $ac_executable_extensions; do
6474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480   done
6481 IFS=$as_save_IFS
6482 
6483   ;;
6484 esac
6485 fi
6486 ECHO=$ac_cv_path_ECHO
6487 if test -n "$ECHO"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6489 $as_echo "$ECHO" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494 
6495 
6496   test -n "$ECHO" && break
6497 done
6498 
6499   else
6500     # The variable is set, but is it from the command line or the environment?
6501 
6502     # Try to remove the string !ECHO! from our list.
6503     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6504     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6505       # If it failed, the variable was not from the command line. Ignore it,
6506       # but warn the user (except for BASH, which is always set by the calling BASH).
6507       if test "xECHO" != xBASH; then
6508         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6509 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6510       fi
6511       # Try to locate tool using the code snippet
6512       for ac_prog in echo
6513 do
6514   # Extract the first word of "$ac_prog", so it can be a program name with args.
6515 set dummy $ac_prog; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_path_ECHO+:} false; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   case $ECHO in
6522   [\\/]* | ?:[\\/]*)
6523   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6524   ;;
6525   *)
6526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531     for ac_exec_ext in '' $ac_executable_extensions; do
6532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538   done
6539 IFS=$as_save_IFS
6540 
6541   ;;
6542 esac
6543 fi
6544 ECHO=$ac_cv_path_ECHO
6545 if test -n "$ECHO"; then
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6547 $as_echo "$ECHO" >&6; }
6548 else
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552 
6553 
6554   test -n "$ECHO" && break
6555 done
6556 
6557     else
6558       # If it succeeded, then it was overridden by the user. We will use it
6559       # for the tool.
6560 
6561       # First remove it from the list of overridden variables, so we can test
6562       # for unknown variables in the end.
6563       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6564 
6565       # Check if the provided tool contains a complete path.
6566       tool_specified="$ECHO"
6567       tool_basename="${tool_specified##*/}"
6568       if test "x$tool_basename" = "x$tool_specified"; then
6569         # A command without a complete path is provided, search $PATH.
6570         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6571 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6572         # Extract the first word of "$tool_basename", so it can be a program name with args.
6573 set dummy $tool_basename; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_path_ECHO+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   case $ECHO in
6580   [\\/]* | ?:[\\/]*)
6581   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6582   ;;
6583   *)
6584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598 
6599   ;;
6600 esac
6601 fi
6602 ECHO=$ac_cv_path_ECHO
6603 if test -n "$ECHO"; then
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6605 $as_echo "$ECHO" >&6; }
6606 else
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610 
6611 
6612         if test "x$ECHO" = x; then
6613           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6614         fi
6615       else
6616         # Otherwise we believe it is a complete path. Use it as it is.
6617         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6618 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6619         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6620 $as_echo_n "checking for ECHO... " >&6; }
6621         if test ! -x "$tool_specified"; then
6622           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6623 $as_echo "not found" >&6; }
6624           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6625         fi
6626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6627 $as_echo "$tool_specified" >&6; }
6628       fi
6629     fi
6630   fi
6631 
6632 
6633 
6634   if test "x$ECHO" = x; then
6635     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6636   fi
6637 
6638 
6639 
6640 
6641 
6642   # Publish this variable in the help.
6643 
6644 
6645   if test "x$EXPR" = x; then
6646     # The variable is not set by user, try to locate tool using the code snippet
6647     for ac_prog in expr
6648 do
6649   # Extract the first word of "$ac_prog", so it can be a program name with args.
6650 set dummy $ac_prog; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_path_EXPR+:} false; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   case $EXPR in
6657   [\\/]* | ?:[\\/]*)
6658   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6659   ;;
6660   *)
6661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   test -z "$as_dir" && as_dir=.
6666     for ac_exec_ext in '' $ac_executable_extensions; do
6667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670     break 2
6671   fi
6672 done
6673   done
6674 IFS=$as_save_IFS
6675 
6676   ;;
6677 esac
6678 fi
6679 EXPR=$ac_cv_path_EXPR
6680 if test -n "$EXPR"; then
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6682 $as_echo "$EXPR" >&6; }
6683 else
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687 
6688 
6689   test -n "$EXPR" && break
6690 done
6691 
6692   else
6693     # The variable is set, but is it from the command line or the environment?
6694 
6695     # Try to remove the string !EXPR! from our list.
6696     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6697     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6698       # If it failed, the variable was not from the command line. Ignore it,
6699       # but warn the user (except for BASH, which is always set by the calling BASH).
6700       if test "xEXPR" != xBASH; then
6701         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6702 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6703       fi
6704       # Try to locate tool using the code snippet
6705       for ac_prog in expr
6706 do
6707   # Extract the first word of "$ac_prog", so it can be a program name with args.
6708 set dummy $ac_prog; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_path_EXPR+:} false; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   case $EXPR in
6715   [\\/]* | ?:[\\/]*)
6716   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6717   ;;
6718   *)
6719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731   done
6732 IFS=$as_save_IFS
6733 
6734   ;;
6735 esac
6736 fi
6737 EXPR=$ac_cv_path_EXPR
6738 if test -n "$EXPR"; then
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6740 $as_echo "$EXPR" >&6; }
6741 else
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745 
6746 
6747   test -n "$EXPR" && break
6748 done
6749 
6750     else
6751       # If it succeeded, then it was overridden by the user. We will use it
6752       # for the tool.
6753 
6754       # First remove it from the list of overridden variables, so we can test
6755       # for unknown variables in the end.
6756       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6757 
6758       # Check if the provided tool contains a complete path.
6759       tool_specified="$EXPR"
6760       tool_basename="${tool_specified##*/}"
6761       if test "x$tool_basename" = "x$tool_specified"; then
6762         # A command without a complete path is provided, search $PATH.
6763         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6764 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6765         # Extract the first word of "$tool_basename", so it can be a program name with args.
6766 set dummy $tool_basename; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_path_EXPR+:} false; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772   case $EXPR in
6773   [\\/]* | ?:[\\/]*)
6774   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6775   ;;
6776   *)
6777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782     for ac_exec_ext in '' $ac_executable_extensions; do
6783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789   done
6790 IFS=$as_save_IFS
6791 
6792   ;;
6793 esac
6794 fi
6795 EXPR=$ac_cv_path_EXPR
6796 if test -n "$EXPR"; then
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6798 $as_echo "$EXPR" >&6; }
6799 else
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803 
6804 
6805         if test "x$EXPR" = x; then
6806           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6807         fi
6808       else
6809         # Otherwise we believe it is a complete path. Use it as it is.
6810         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6811 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6813 $as_echo_n "checking for EXPR... " >&6; }
6814         if test ! -x "$tool_specified"; then
6815           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6816 $as_echo "not found" >&6; }
6817           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6818         fi
6819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6820 $as_echo "$tool_specified" >&6; }
6821       fi
6822     fi
6823   fi
6824 
6825 
6826 
6827   if test "x$EXPR" = x; then
6828     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6829   fi
6830 
6831 
6832 
6833 
6834 
6835   # Publish this variable in the help.
6836 
6837 
6838   if test "x$FILE" = x; then
6839     # The variable is not set by user, try to locate tool using the code snippet
6840     for ac_prog in file
6841 do
6842   # Extract the first word of "$ac_prog", so it can be a program name with args.
6843 set dummy $ac_prog; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if ${ac_cv_path_FILE+:} false; then :
6847   $as_echo_n "(cached) " >&6
6848 else
6849   case $FILE in
6850   [\\/]* | ?:[\\/]*)
6851   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6852   ;;
6853   *)
6854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859     for ac_exec_ext in '' $ac_executable_extensions; do
6860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866   done
6867 IFS=$as_save_IFS
6868 
6869   ;;
6870 esac
6871 fi
6872 FILE=$ac_cv_path_FILE
6873 if test -n "$FILE"; then
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6875 $as_echo "$FILE" >&6; }
6876 else
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880 
6881 
6882   test -n "$FILE" && break
6883 done
6884 
6885   else
6886     # The variable is set, but is it from the command line or the environment?
6887 
6888     # Try to remove the string !FILE! from our list.
6889     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6890     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6891       # If it failed, the variable was not from the command line. Ignore it,
6892       # but warn the user (except for BASH, which is always set by the calling BASH).
6893       if test "xFILE" != xBASH; then
6894         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6895 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6896       fi
6897       # Try to locate tool using the code snippet
6898       for ac_prog in file
6899 do
6900   # Extract the first word of "$ac_prog", so it can be a program name with args.
6901 set dummy $ac_prog; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_path_FILE+:} false; then :
6905   $as_echo_n "(cached) " >&6
6906 else
6907   case $FILE in
6908   [\\/]* | ?:[\\/]*)
6909   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6910   ;;
6911   *)
6912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917     for ac_exec_ext in '' $ac_executable_extensions; do
6918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924   done
6925 IFS=$as_save_IFS
6926 
6927   ;;
6928 esac
6929 fi
6930 FILE=$ac_cv_path_FILE
6931 if test -n "$FILE"; then
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6933 $as_echo "$FILE" >&6; }
6934 else
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938 
6939 
6940   test -n "$FILE" && break
6941 done
6942 
6943     else
6944       # If it succeeded, then it was overridden by the user. We will use it
6945       # for the tool.
6946 
6947       # First remove it from the list of overridden variables, so we can test
6948       # for unknown variables in the end.
6949       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6950 
6951       # Check if the provided tool contains a complete path.
6952       tool_specified="$FILE"
6953       tool_basename="${tool_specified##*/}"
6954       if test "x$tool_basename" = "x$tool_specified"; then
6955         # A command without a complete path is provided, search $PATH.
6956         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
6957 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
6958         # Extract the first word of "$tool_basename", so it can be a program name with args.
6959 set dummy $tool_basename; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_path_FILE+:} false; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   case $FILE in
6966   [\\/]* | ?:[\\/]*)
6967   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6968   ;;
6969   *)
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_exec_ext in '' $ac_executable_extensions; do
6976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982   done
6983 IFS=$as_save_IFS
6984 
6985   ;;
6986 esac
6987 fi
6988 FILE=$ac_cv_path_FILE
6989 if test -n "$FILE"; then
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6991 $as_echo "$FILE" >&6; }
6992 else
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995 fi
6996 
6997 
6998         if test "x$FILE" = x; then
6999           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7000         fi
7001       else
7002         # Otherwise we believe it is a complete path. Use it as it is.
7003         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7004 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7006 $as_echo_n "checking for FILE... " >&6; }
7007         if test ! -x "$tool_specified"; then
7008           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7009 $as_echo "not found" >&6; }
7010           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7011         fi
7012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7013 $as_echo "$tool_specified" >&6; }
7014       fi
7015     fi
7016   fi
7017 
7018 
7019 
7020   if test "x$FILE" = x; then
7021     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7022   fi
7023 
7024 
7025 
7026 
7027 
7028   # Publish this variable in the help.
7029 
7030 
7031   if test "x$FIND" = x; then
7032     # The variable is not set by user, try to locate tool using the code snippet
7033     for ac_prog in find
7034 do
7035   # Extract the first word of "$ac_prog", so it can be a program name with args.
7036 set dummy $ac_prog; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_path_FIND+:} false; then :
7040   $as_echo_n "(cached) " >&6
7041 else
7042   case $FIND in
7043   [\\/]* | ?:[\\/]*)
7044   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7045   ;;
7046   *)
7047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050   IFS=$as_save_IFS
7051   test -z "$as_dir" && as_dir=.
7052     for ac_exec_ext in '' $ac_executable_extensions; do
7053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056     break 2
7057   fi
7058 done
7059   done
7060 IFS=$as_save_IFS
7061 
7062   ;;
7063 esac
7064 fi
7065 FIND=$ac_cv_path_FIND
7066 if test -n "$FIND"; then
7067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7068 $as_echo "$FIND" >&6; }
7069 else
7070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7072 fi
7073 
7074 
7075   test -n "$FIND" && break
7076 done
7077 
7078   else
7079     # The variable is set, but is it from the command line or the environment?
7080 
7081     # Try to remove the string !FIND! from our list.
7082     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7083     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7084       # If it failed, the variable was not from the command line. Ignore it,
7085       # but warn the user (except for BASH, which is always set by the calling BASH).
7086       if test "xFIND" != xBASH; then
7087         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7088 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7089       fi
7090       # Try to locate tool using the code snippet
7091       for ac_prog in find
7092 do
7093   # Extract the first word of "$ac_prog", so it can be a program name with args.
7094 set dummy $ac_prog; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_path_FIND+:} false; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   case $FIND in
7101   [\\/]* | ?:[\\/]*)
7102   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7103   ;;
7104   *)
7105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119 
7120   ;;
7121 esac
7122 fi
7123 FIND=$ac_cv_path_FIND
7124 if test -n "$FIND"; then
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7126 $as_echo "$FIND" >&6; }
7127 else
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131 
7132 
7133   test -n "$FIND" && break
7134 done
7135 
7136     else
7137       # If it succeeded, then it was overridden by the user. We will use it
7138       # for the tool.
7139 
7140       # First remove it from the list of overridden variables, so we can test
7141       # for unknown variables in the end.
7142       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7143 
7144       # Check if the provided tool contains a complete path.
7145       tool_specified="$FIND"
7146       tool_basename="${tool_specified##*/}"
7147       if test "x$tool_basename" = "x$tool_specified"; then
7148         # A command without a complete path is provided, search $PATH.
7149         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7150 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7151         # Extract the first word of "$tool_basename", so it can be a program name with args.
7152 set dummy $tool_basename; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_path_FIND+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   case $FIND in
7159   [\\/]* | ?:[\\/]*)
7160   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7161   ;;
7162   *)
7163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168     for ac_exec_ext in '' $ac_executable_extensions; do
7169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175   done
7176 IFS=$as_save_IFS
7177 
7178   ;;
7179 esac
7180 fi
7181 FIND=$ac_cv_path_FIND
7182 if test -n "$FIND"; then
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7184 $as_echo "$FIND" >&6; }
7185 else
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189 
7190 
7191         if test "x$FIND" = x; then
7192           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7193         fi
7194       else
7195         # Otherwise we believe it is a complete path. Use it as it is.
7196         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7197 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7199 $as_echo_n "checking for FIND... " >&6; }
7200         if test ! -x "$tool_specified"; then
7201           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7202 $as_echo "not found" >&6; }
7203           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7204         fi
7205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7206 $as_echo "$tool_specified" >&6; }
7207       fi
7208     fi
7209   fi
7210 
7211 
7212 
7213   if test "x$FIND" = x; then
7214     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7215   fi
7216 
7217 
7218 
7219 
7220 
7221   # Publish this variable in the help.
7222 
7223 
7224   if test "x$HEAD" = x; then
7225     # The variable is not set by user, try to locate tool using the code snippet
7226     for ac_prog in head
7227 do
7228   # Extract the first word of "$ac_prog", so it can be a program name with args.
7229 set dummy $ac_prog; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_path_HEAD+:} false; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   case $HEAD in
7236   [\\/]* | ?:[\\/]*)
7237   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7238   ;;
7239   *)
7240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245     for ac_exec_ext in '' $ac_executable_extensions; do
7246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252   done
7253 IFS=$as_save_IFS
7254 
7255   ;;
7256 esac
7257 fi
7258 HEAD=$ac_cv_path_HEAD
7259 if test -n "$HEAD"; then
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7261 $as_echo "$HEAD" >&6; }
7262 else
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266 
7267 
7268   test -n "$HEAD" && break
7269 done
7270 
7271   else
7272     # The variable is set, but is it from the command line or the environment?
7273 
7274     # Try to remove the string !HEAD! from our list.
7275     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7276     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7277       # If it failed, the variable was not from the command line. Ignore it,
7278       # but warn the user (except for BASH, which is always set by the calling BASH).
7279       if test "xHEAD" != xBASH; then
7280         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7281 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7282       fi
7283       # Try to locate tool using the code snippet
7284       for ac_prog in head
7285 do
7286   # Extract the first word of "$ac_prog", so it can be a program name with args.
7287 set dummy $ac_prog; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_path_HEAD+:} false; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   case $HEAD in
7294   [\\/]* | ?:[\\/]*)
7295   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7296   ;;
7297   *)
7298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312 
7313   ;;
7314 esac
7315 fi
7316 HEAD=$ac_cv_path_HEAD
7317 if test -n "$HEAD"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7319 $as_echo "$HEAD" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324 
7325 
7326   test -n "$HEAD" && break
7327 done
7328 
7329     else
7330       # If it succeeded, then it was overridden by the user. We will use it
7331       # for the tool.
7332 
7333       # First remove it from the list of overridden variables, so we can test
7334       # for unknown variables in the end.
7335       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7336 
7337       # Check if the provided tool contains a complete path.
7338       tool_specified="$HEAD"
7339       tool_basename="${tool_specified##*/}"
7340       if test "x$tool_basename" = "x$tool_specified"; then
7341         # A command without a complete path is provided, search $PATH.
7342         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7343 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7344         # Extract the first word of "$tool_basename", so it can be a program name with args.
7345 set dummy $tool_basename; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_path_HEAD+:} false; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   case $HEAD in
7352   [\\/]* | ?:[\\/]*)
7353   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7354   ;;
7355   *)
7356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361     for ac_exec_ext in '' $ac_executable_extensions; do
7362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368   done
7369 IFS=$as_save_IFS
7370 
7371   ;;
7372 esac
7373 fi
7374 HEAD=$ac_cv_path_HEAD
7375 if test -n "$HEAD"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7377 $as_echo "$HEAD" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382 
7383 
7384         if test "x$HEAD" = x; then
7385           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7386         fi
7387       else
7388         # Otherwise we believe it is a complete path. Use it as it is.
7389         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7390 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7392 $as_echo_n "checking for HEAD... " >&6; }
7393         if test ! -x "$tool_specified"; then
7394           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7395 $as_echo "not found" >&6; }
7396           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7397         fi
7398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7399 $as_echo "$tool_specified" >&6; }
7400       fi
7401     fi
7402   fi
7403 
7404 
7405 
7406   if test "x$HEAD" = x; then
7407     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7408   fi
7409 
7410 
7411 
7412 
7413 
7414   # Publish this variable in the help.
7415 
7416 
7417   if test "x$LN" = x; then
7418     # The variable is not set by user, try to locate tool using the code snippet
7419     for ac_prog in ln
7420 do
7421   # Extract the first word of "$ac_prog", so it can be a program name with args.
7422 set dummy $ac_prog; ac_word=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if ${ac_cv_path_LN+:} false; then :
7426   $as_echo_n "(cached) " >&6
7427 else
7428   case $LN in
7429   [\\/]* | ?:[\\/]*)
7430   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7431   ;;
7432   *)
7433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438     for ac_exec_ext in '' $ac_executable_extensions; do
7439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445   done
7446 IFS=$as_save_IFS
7447 
7448   ;;
7449 esac
7450 fi
7451 LN=$ac_cv_path_LN
7452 if test -n "$LN"; then
7453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7454 $as_echo "$LN" >&6; }
7455 else
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459 
7460 
7461   test -n "$LN" && break
7462 done
7463 
7464   else
7465     # The variable is set, but is it from the command line or the environment?
7466 
7467     # Try to remove the string !LN! from our list.
7468     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7469     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7470       # If it failed, the variable was not from the command line. Ignore it,
7471       # but warn the user (except for BASH, which is always set by the calling BASH).
7472       if test "xLN" != xBASH; then
7473         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7474 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7475       fi
7476       # Try to locate tool using the code snippet
7477       for ac_prog in ln
7478 do
7479   # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy $ac_prog; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if ${ac_cv_path_LN+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   case $LN in
7487   [\\/]* | ?:[\\/]*)
7488   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7489   ;;
7490   *)
7491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496     for ac_exec_ext in '' $ac_executable_extensions; do
7497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503   done
7504 IFS=$as_save_IFS
7505 
7506   ;;
7507 esac
7508 fi
7509 LN=$ac_cv_path_LN
7510 if test -n "$LN"; then
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7512 $as_echo "$LN" >&6; }
7513 else
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517 
7518 
7519   test -n "$LN" && break
7520 done
7521 
7522     else
7523       # If it succeeded, then it was overridden by the user. We will use it
7524       # for the tool.
7525 
7526       # First remove it from the list of overridden variables, so we can test
7527       # for unknown variables in the end.
7528       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7529 
7530       # Check if the provided tool contains a complete path.
7531       tool_specified="$LN"
7532       tool_basename="${tool_specified##*/}"
7533       if test "x$tool_basename" = "x$tool_specified"; then
7534         # A command without a complete path is provided, search $PATH.
7535         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7536 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7537         # Extract the first word of "$tool_basename", so it can be a program name with args.
7538 set dummy $tool_basename; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_path_LN+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   case $LN in
7545   [\\/]* | ?:[\\/]*)
7546   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7547   ;;
7548   *)
7549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561   done
7562 IFS=$as_save_IFS
7563 
7564   ;;
7565 esac
7566 fi
7567 LN=$ac_cv_path_LN
7568 if test -n "$LN"; then
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7570 $as_echo "$LN" >&6; }
7571 else
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575 
7576 
7577         if test "x$LN" = x; then
7578           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7579         fi
7580       else
7581         # Otherwise we believe it is a complete path. Use it as it is.
7582         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7583 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7585 $as_echo_n "checking for LN... " >&6; }
7586         if test ! -x "$tool_specified"; then
7587           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7588 $as_echo "not found" >&6; }
7589           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7590         fi
7591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7592 $as_echo "$tool_specified" >&6; }
7593       fi
7594     fi
7595   fi
7596 
7597 
7598 
7599   if test "x$LN" = x; then
7600     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7601   fi
7602 
7603 
7604 
7605 
7606 
7607   # Publish this variable in the help.
7608 
7609 
7610   if test "x$LS" = x; then
7611     # The variable is not set by user, try to locate tool using the code snippet
7612     for ac_prog in ls
7613 do
7614   # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_path_LS+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   case $LS in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7640 
7641   ;;
7642 esac
7643 fi
7644 LS=$ac_cv_path_LS
7645 if test -n "$LS"; then
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7647 $as_echo "$LS" >&6; }
7648 else
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652 
7653 
7654   test -n "$LS" && break
7655 done
7656 
7657   else
7658     # The variable is set, but is it from the command line or the environment?
7659 
7660     # Try to remove the string !LS! from our list.
7661     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7662     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7663       # If it failed, the variable was not from the command line. Ignore it,
7664       # but warn the user (except for BASH, which is always set by the calling BASH).
7665       if test "xLS" != xBASH; then
7666         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7667 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7668       fi
7669       # Try to locate tool using the code snippet
7670       for ac_prog in ls
7671 do
7672   # Extract the first word of "$ac_prog", so it can be a program name with args.
7673 set dummy $ac_prog; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if ${ac_cv_path_LS+:} false; then :
7677   $as_echo_n "(cached) " >&6
7678 else
7679   case $LS in
7680   [\\/]* | ?:[\\/]*)
7681   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7682   ;;
7683   *)
7684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687   IFS=$as_save_IFS
7688   test -z "$as_dir" && as_dir=.
7689     for ac_exec_ext in '' $ac_executable_extensions; do
7690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696   done
7697 IFS=$as_save_IFS
7698 
7699   ;;
7700 esac
7701 fi
7702 LS=$ac_cv_path_LS
7703 if test -n "$LS"; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7705 $as_echo "$LS" >&6; }
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710 
7711 
7712   test -n "$LS" && break
7713 done
7714 
7715     else
7716       # If it succeeded, then it was overridden by the user. We will use it
7717       # for the tool.
7718 
7719       # First remove it from the list of overridden variables, so we can test
7720       # for unknown variables in the end.
7721       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7722 
7723       # Check if the provided tool contains a complete path.
7724       tool_specified="$LS"
7725       tool_basename="${tool_specified##*/}"
7726       if test "x$tool_basename" = "x$tool_specified"; then
7727         # A command without a complete path is provided, search $PATH.
7728         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7729 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7730         # Extract the first word of "$tool_basename", so it can be a program name with args.
7731 set dummy $tool_basename; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_path_LS+:} false; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   case $LS in
7738   [\\/]* | ?:[\\/]*)
7739   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7740   ;;
7741   *)
7742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747     for ac_exec_ext in '' $ac_executable_extensions; do
7748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754   done
7755 IFS=$as_save_IFS
7756 
7757   ;;
7758 esac
7759 fi
7760 LS=$ac_cv_path_LS
7761 if test -n "$LS"; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7763 $as_echo "$LS" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768 
7769 
7770         if test "x$LS" = x; then
7771           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7772         fi
7773       else
7774         # Otherwise we believe it is a complete path. Use it as it is.
7775         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7776 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7778 $as_echo_n "checking for LS... " >&6; }
7779         if test ! -x "$tool_specified"; then
7780           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7781 $as_echo "not found" >&6; }
7782           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7783         fi
7784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7785 $as_echo "$tool_specified" >&6; }
7786       fi
7787     fi
7788   fi
7789 
7790 
7791 
7792   if test "x$LS" = x; then
7793     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7794   fi
7795 
7796 
7797 
7798 
7799 
7800   # Publish this variable in the help.
7801 
7802 
7803   if test "x$MKDIR" = x; then
7804     # The variable is not set by user, try to locate tool using the code snippet
7805     for ac_prog in mkdir
7806 do
7807   # Extract the first word of "$ac_prog", so it can be a program name with args.
7808 set dummy $ac_prog; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if ${ac_cv_path_MKDIR+:} false; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   case $MKDIR in
7815   [\\/]* | ?:[\\/]*)
7816   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7817   ;;
7818   *)
7819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824     for ac_exec_ext in '' $ac_executable_extensions; do
7825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831   done
7832 IFS=$as_save_IFS
7833 
7834   ;;
7835 esac
7836 fi
7837 MKDIR=$ac_cv_path_MKDIR
7838 if test -n "$MKDIR"; then
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7840 $as_echo "$MKDIR" >&6; }
7841 else
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845 
7846 
7847   test -n "$MKDIR" && break
7848 done
7849 
7850   else
7851     # The variable is set, but is it from the command line or the environment?
7852 
7853     # Try to remove the string !MKDIR! from our list.
7854     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7855     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7856       # If it failed, the variable was not from the command line. Ignore it,
7857       # but warn the user (except for BASH, which is always set by the calling BASH).
7858       if test "xMKDIR" != xBASH; then
7859         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7860 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7861       fi
7862       # Try to locate tool using the code snippet
7863       for ac_prog in mkdir
7864 do
7865   # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy $ac_prog; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if ${ac_cv_path_MKDIR+:} false; then :
7870   $as_echo_n "(cached) " >&6
7871 else
7872   case $MKDIR in
7873   [\\/]* | ?:[\\/]*)
7874   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7875   ;;
7876   *)
7877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880   IFS=$as_save_IFS
7881   test -z "$as_dir" && as_dir=.
7882     for ac_exec_ext in '' $ac_executable_extensions; do
7883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886     break 2
7887   fi
7888 done
7889   done
7890 IFS=$as_save_IFS
7891 
7892   ;;
7893 esac
7894 fi
7895 MKDIR=$ac_cv_path_MKDIR
7896 if test -n "$MKDIR"; then
7897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7898 $as_echo "$MKDIR" >&6; }
7899 else
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7902 fi
7903 
7904 
7905   test -n "$MKDIR" && break
7906 done
7907 
7908     else
7909       # If it succeeded, then it was overridden by the user. We will use it
7910       # for the tool.
7911 
7912       # First remove it from the list of overridden variables, so we can test
7913       # for unknown variables in the end.
7914       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7915 
7916       # Check if the provided tool contains a complete path.
7917       tool_specified="$MKDIR"
7918       tool_basename="${tool_specified##*/}"
7919       if test "x$tool_basename" = "x$tool_specified"; then
7920         # A command without a complete path is provided, search $PATH.
7921         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
7922 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
7923         # Extract the first word of "$tool_basename", so it can be a program name with args.
7924 set dummy $tool_basename; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_path_MKDIR+:} false; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   case $MKDIR in
7931   [\\/]* | ?:[\\/]*)
7932   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7933   ;;
7934   *)
7935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938   IFS=$as_save_IFS
7939   test -z "$as_dir" && as_dir=.
7940     for ac_exec_ext in '' $ac_executable_extensions; do
7941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944     break 2
7945   fi
7946 done
7947   done
7948 IFS=$as_save_IFS
7949 
7950   ;;
7951 esac
7952 fi
7953 MKDIR=$ac_cv_path_MKDIR
7954 if test -n "$MKDIR"; then
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7956 $as_echo "$MKDIR" >&6; }
7957 else
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961 
7962 
7963         if test "x$MKDIR" = x; then
7964           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7965         fi
7966       else
7967         # Otherwise we believe it is a complete path. Use it as it is.
7968         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
7969 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
7970         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
7971 $as_echo_n "checking for MKDIR... " >&6; }
7972         if test ! -x "$tool_specified"; then
7973           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7974 $as_echo "not found" >&6; }
7975           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
7976         fi
7977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7978 $as_echo "$tool_specified" >&6; }
7979       fi
7980     fi
7981   fi
7982 
7983 
7984 
7985   if test "x$MKDIR" = x; then
7986     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
7987   fi
7988 
7989 
7990 
7991 
7992 
7993   # Publish this variable in the help.
7994 
7995 
7996   if test "x$MKTEMP" = x; then
7997     # The variable is not set by user, try to locate tool using the code snippet
7998     for ac_prog in mktemp
7999 do
8000   # Extract the first word of "$ac_prog", so it can be a program name with args.
8001 set dummy $ac_prog; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if ${ac_cv_path_MKTEMP+:} false; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   case $MKTEMP in
8008   [\\/]* | ?:[\\/]*)
8009   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8010   ;;
8011   *)
8012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015   IFS=$as_save_IFS
8016   test -z "$as_dir" && as_dir=.
8017     for ac_exec_ext in '' $ac_executable_extensions; do
8018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021     break 2
8022   fi
8023 done
8024   done
8025 IFS=$as_save_IFS
8026 
8027   ;;
8028 esac
8029 fi
8030 MKTEMP=$ac_cv_path_MKTEMP
8031 if test -n "$MKTEMP"; then
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8033 $as_echo "$MKTEMP" >&6; }
8034 else
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038 
8039 
8040   test -n "$MKTEMP" && break
8041 done
8042 
8043   else
8044     # The variable is set, but is it from the command line or the environment?
8045 
8046     # Try to remove the string !MKTEMP! from our list.
8047     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8048     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8049       # If it failed, the variable was not from the command line. Ignore it,
8050       # but warn the user (except for BASH, which is always set by the calling BASH).
8051       if test "xMKTEMP" != xBASH; then
8052         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8053 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8054       fi
8055       # Try to locate tool using the code snippet
8056       for ac_prog in mktemp
8057 do
8058   # Extract the first word of "$ac_prog", so it can be a program name with args.
8059 set dummy $ac_prog; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if ${ac_cv_path_MKTEMP+:} false; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   case $MKTEMP in
8066   [\\/]* | ?:[\\/]*)
8067   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8068   ;;
8069   *)
8070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073   IFS=$as_save_IFS
8074   test -z "$as_dir" && as_dir=.
8075     for ac_exec_ext in '' $ac_executable_extensions; do
8076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079     break 2
8080   fi
8081 done
8082   done
8083 IFS=$as_save_IFS
8084 
8085   ;;
8086 esac
8087 fi
8088 MKTEMP=$ac_cv_path_MKTEMP
8089 if test -n "$MKTEMP"; then
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8091 $as_echo "$MKTEMP" >&6; }
8092 else
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096 
8097 
8098   test -n "$MKTEMP" && break
8099 done
8100 
8101     else
8102       # If it succeeded, then it was overridden by the user. We will use it
8103       # for the tool.
8104 
8105       # First remove it from the list of overridden variables, so we can test
8106       # for unknown variables in the end.
8107       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8108 
8109       # Check if the provided tool contains a complete path.
8110       tool_specified="$MKTEMP"
8111       tool_basename="${tool_specified##*/}"
8112       if test "x$tool_basename" = "x$tool_specified"; then
8113         # A command without a complete path is provided, search $PATH.
8114         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8115 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8116         # Extract the first word of "$tool_basename", so it can be a program name with args.
8117 set dummy $tool_basename; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if ${ac_cv_path_MKTEMP+:} false; then :
8121   $as_echo_n "(cached) " >&6
8122 else
8123   case $MKTEMP in
8124   [\\/]* | ?:[\\/]*)
8125   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8126   ;;
8127   *)
8128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131   IFS=$as_save_IFS
8132   test -z "$as_dir" && as_dir=.
8133     for ac_exec_ext in '' $ac_executable_extensions; do
8134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137     break 2
8138   fi
8139 done
8140   done
8141 IFS=$as_save_IFS
8142 
8143   ;;
8144 esac
8145 fi
8146 MKTEMP=$ac_cv_path_MKTEMP
8147 if test -n "$MKTEMP"; then
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8149 $as_echo "$MKTEMP" >&6; }
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154 
8155 
8156         if test "x$MKTEMP" = x; then
8157           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8158         fi
8159       else
8160         # Otherwise we believe it is a complete path. Use it as it is.
8161         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8162 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8164 $as_echo_n "checking for MKTEMP... " >&6; }
8165         if test ! -x "$tool_specified"; then
8166           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8167 $as_echo "not found" >&6; }
8168           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8169         fi
8170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8171 $as_echo "$tool_specified" >&6; }
8172       fi
8173     fi
8174   fi
8175 
8176 
8177 
8178   if test "x$MKTEMP" = x; then
8179     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8180   fi
8181 
8182 
8183 
8184 
8185 
8186   # Publish this variable in the help.
8187 
8188 
8189   if test "x$MV" = x; then
8190     # The variable is not set by user, try to locate tool using the code snippet
8191     for ac_prog in mv
8192 do
8193   # Extract the first word of "$ac_prog", so it can be a program name with args.
8194 set dummy $ac_prog; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_path_MV+:} false; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   case $MV in
8201   [\\/]* | ?:[\\/]*)
8202   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8203   ;;
8204   *)
8205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208   IFS=$as_save_IFS
8209   test -z "$as_dir" && as_dir=.
8210     for ac_exec_ext in '' $ac_executable_extensions; do
8211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214     break 2
8215   fi
8216 done
8217   done
8218 IFS=$as_save_IFS
8219 
8220   ;;
8221 esac
8222 fi
8223 MV=$ac_cv_path_MV
8224 if test -n "$MV"; then
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8226 $as_echo "$MV" >&6; }
8227 else
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8230 fi
8231 
8232 
8233   test -n "$MV" && break
8234 done
8235 
8236   else
8237     # The variable is set, but is it from the command line or the environment?
8238 
8239     # Try to remove the string !MV! from our list.
8240     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8241     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8242       # If it failed, the variable was not from the command line. Ignore it,
8243       # but warn the user (except for BASH, which is always set by the calling BASH).
8244       if test "xMV" != xBASH; then
8245         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8246 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8247       fi
8248       # Try to locate tool using the code snippet
8249       for ac_prog in mv
8250 do
8251   # Extract the first word of "$ac_prog", so it can be a program name with args.
8252 set dummy $ac_prog; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if ${ac_cv_path_MV+:} false; then :
8256   $as_echo_n "(cached) " >&6
8257 else
8258   case $MV in
8259   [\\/]* | ?:[\\/]*)
8260   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8261   ;;
8262   *)
8263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266   IFS=$as_save_IFS
8267   test -z "$as_dir" && as_dir=.
8268     for ac_exec_ext in '' $ac_executable_extensions; do
8269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272     break 2
8273   fi
8274 done
8275   done
8276 IFS=$as_save_IFS
8277 
8278   ;;
8279 esac
8280 fi
8281 MV=$ac_cv_path_MV
8282 if test -n "$MV"; then
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8284 $as_echo "$MV" >&6; }
8285 else
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289 
8290 
8291   test -n "$MV" && break
8292 done
8293 
8294     else
8295       # If it succeeded, then it was overridden by the user. We will use it
8296       # for the tool.
8297 
8298       # First remove it from the list of overridden variables, so we can test
8299       # for unknown variables in the end.
8300       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8301 
8302       # Check if the provided tool contains a complete path.
8303       tool_specified="$MV"
8304       tool_basename="${tool_specified##*/}"
8305       if test "x$tool_basename" = "x$tool_specified"; then
8306         # A command without a complete path is provided, search $PATH.
8307         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8308 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8309         # Extract the first word of "$tool_basename", so it can be a program name with args.
8310 set dummy $tool_basename; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if ${ac_cv_path_MV+:} false; then :
8314   $as_echo_n "(cached) " >&6
8315 else
8316   case $MV in
8317   [\\/]* | ?:[\\/]*)
8318   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8319   ;;
8320   *)
8321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324   IFS=$as_save_IFS
8325   test -z "$as_dir" && as_dir=.
8326     for ac_exec_ext in '' $ac_executable_extensions; do
8327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330     break 2
8331   fi
8332 done
8333   done
8334 IFS=$as_save_IFS
8335 
8336   ;;
8337 esac
8338 fi
8339 MV=$ac_cv_path_MV
8340 if test -n "$MV"; then
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8342 $as_echo "$MV" >&6; }
8343 else
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346 fi
8347 
8348 
8349         if test "x$MV" = x; then
8350           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8351         fi
8352       else
8353         # Otherwise we believe it is a complete path. Use it as it is.
8354         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8355 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8357 $as_echo_n "checking for MV... " >&6; }
8358         if test ! -x "$tool_specified"; then
8359           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8360 $as_echo "not found" >&6; }
8361           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8362         fi
8363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8364 $as_echo "$tool_specified" >&6; }
8365       fi
8366     fi
8367   fi
8368 
8369 
8370 
8371   if test "x$MV" = x; then
8372     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8373   fi
8374 
8375 
8376 
8377 
8378 
8379   # Publish this variable in the help.
8380 
8381 
8382   if test "x$NAWK" = x; then
8383     # The variable is not set by user, try to locate tool using the code snippet
8384     for ac_prog in nawk gawk awk
8385 do
8386   # Extract the first word of "$ac_prog", so it can be a program name with args.
8387 set dummy $ac_prog; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if ${ac_cv_path_NAWK+:} false; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   case $NAWK in
8394   [\\/]* | ?:[\\/]*)
8395   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8396   ;;
8397   *)
8398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8400 do
8401   IFS=$as_save_IFS
8402   test -z "$as_dir" && as_dir=.
8403     for ac_exec_ext in '' $ac_executable_extensions; do
8404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8405     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407     break 2
8408   fi
8409 done
8410   done
8411 IFS=$as_save_IFS
8412 
8413   ;;
8414 esac
8415 fi
8416 NAWK=$ac_cv_path_NAWK
8417 if test -n "$NAWK"; then
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8419 $as_echo "$NAWK" >&6; }
8420 else
8421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8424 
8425 
8426   test -n "$NAWK" && break
8427 done
8428 
8429   else
8430     # The variable is set, but is it from the command line or the environment?
8431 
8432     # Try to remove the string !NAWK! from our list.
8433     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8434     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8435       # If it failed, the variable was not from the command line. Ignore it,
8436       # but warn the user (except for BASH, which is always set by the calling BASH).
8437       if test "xNAWK" != xBASH; then
8438         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8439 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8440       fi
8441       # Try to locate tool using the code snippet
8442       for ac_prog in nawk gawk awk
8443 do
8444   # Extract the first word of "$ac_prog", so it can be a program name with args.
8445 set dummy $ac_prog; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if ${ac_cv_path_NAWK+:} false; then :
8449   $as_echo_n "(cached) " >&6
8450 else
8451   case $NAWK in
8452   [\\/]* | ?:[\\/]*)
8453   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8454   ;;
8455   *)
8456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459   IFS=$as_save_IFS
8460   test -z "$as_dir" && as_dir=.
8461     for ac_exec_ext in '' $ac_executable_extensions; do
8462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8463     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465     break 2
8466   fi
8467 done
8468   done
8469 IFS=$as_save_IFS
8470 
8471   ;;
8472 esac
8473 fi
8474 NAWK=$ac_cv_path_NAWK
8475 if test -n "$NAWK"; then
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8477 $as_echo "$NAWK" >&6; }
8478 else
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482 
8483 
8484   test -n "$NAWK" && break
8485 done
8486 
8487     else
8488       # If it succeeded, then it was overridden by the user. We will use it
8489       # for the tool.
8490 
8491       # First remove it from the list of overridden variables, so we can test
8492       # for unknown variables in the end.
8493       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8494 
8495       # Check if the provided tool contains a complete path.
8496       tool_specified="$NAWK"
8497       tool_basename="${tool_specified##*/}"
8498       if test "x$tool_basename" = "x$tool_specified"; then
8499         # A command without a complete path is provided, search $PATH.
8500         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8501 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8502         # Extract the first word of "$tool_basename", so it can be a program name with args.
8503 set dummy $tool_basename; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_path_NAWK+:} false; then :
8507   $as_echo_n "(cached) " >&6
8508 else
8509   case $NAWK in
8510   [\\/]* | ?:[\\/]*)
8511   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8512   ;;
8513   *)
8514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517   IFS=$as_save_IFS
8518   test -z "$as_dir" && as_dir=.
8519     for ac_exec_ext in '' $ac_executable_extensions; do
8520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523     break 2
8524   fi
8525 done
8526   done
8527 IFS=$as_save_IFS
8528 
8529   ;;
8530 esac
8531 fi
8532 NAWK=$ac_cv_path_NAWK
8533 if test -n "$NAWK"; then
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8535 $as_echo "$NAWK" >&6; }
8536 else
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539 fi
8540 
8541 
8542         if test "x$NAWK" = x; then
8543           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8544         fi
8545       else
8546         # Otherwise we believe it is a complete path. Use it as it is.
8547         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8548 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8549         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8550 $as_echo_n "checking for NAWK... " >&6; }
8551         if test ! -x "$tool_specified"; then
8552           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8553 $as_echo "not found" >&6; }
8554           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8555         fi
8556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8557 $as_echo "$tool_specified" >&6; }
8558       fi
8559     fi
8560   fi
8561 
8562 
8563 
8564   if test "x$NAWK" = x; then
8565     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8566   fi
8567 
8568 
8569 
8570 
8571 
8572   # Publish this variable in the help.
8573 
8574 
8575   if test "x$PRINTF" = x; then
8576     # The variable is not set by user, try to locate tool using the code snippet
8577     for ac_prog in printf
8578 do
8579   # Extract the first word of "$ac_prog", so it can be a program name with args.
8580 set dummy $ac_prog; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_path_PRINTF+:} false; then :
8584   $as_echo_n "(cached) " >&6
8585 else
8586   case $PRINTF in
8587   [\\/]* | ?:[\\/]*)
8588   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8589   ;;
8590   *)
8591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594   IFS=$as_save_IFS
8595   test -z "$as_dir" && as_dir=.
8596     for ac_exec_ext in '' $ac_executable_extensions; do
8597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600     break 2
8601   fi
8602 done
8603   done
8604 IFS=$as_save_IFS
8605 
8606   ;;
8607 esac
8608 fi
8609 PRINTF=$ac_cv_path_PRINTF
8610 if test -n "$PRINTF"; then
8611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8612 $as_echo "$PRINTF" >&6; }
8613 else
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 fi
8617 
8618 
8619   test -n "$PRINTF" && break
8620 done
8621 
8622   else
8623     # The variable is set, but is it from the command line or the environment?
8624 
8625     # Try to remove the string !PRINTF! from our list.
8626     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8627     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8628       # If it failed, the variable was not from the command line. Ignore it,
8629       # but warn the user (except for BASH, which is always set by the calling BASH).
8630       if test "xPRINTF" != xBASH; then
8631         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8632 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8633       fi
8634       # Try to locate tool using the code snippet
8635       for ac_prog in printf
8636 do
8637   # Extract the first word of "$ac_prog", so it can be a program name with args.
8638 set dummy $ac_prog; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_path_PRINTF+:} false; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   case $PRINTF in
8645   [\\/]* | ?:[\\/]*)
8646   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8647   ;;
8648   *)
8649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 for as_dir in $PATH
8651 do
8652   IFS=$as_save_IFS
8653   test -z "$as_dir" && as_dir=.
8654     for ac_exec_ext in '' $ac_executable_extensions; do
8655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8656     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658     break 2
8659   fi
8660 done
8661   done
8662 IFS=$as_save_IFS
8663 
8664   ;;
8665 esac
8666 fi
8667 PRINTF=$ac_cv_path_PRINTF
8668 if test -n "$PRINTF"; then
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8670 $as_echo "$PRINTF" >&6; }
8671 else
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8674 fi
8675 
8676 
8677   test -n "$PRINTF" && break
8678 done
8679 
8680     else
8681       # If it succeeded, then it was overridden by the user. We will use it
8682       # for the tool.
8683 
8684       # First remove it from the list of overridden variables, so we can test
8685       # for unknown variables in the end.
8686       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8687 
8688       # Check if the provided tool contains a complete path.
8689       tool_specified="$PRINTF"
8690       tool_basename="${tool_specified##*/}"
8691       if test "x$tool_basename" = "x$tool_specified"; then
8692         # A command without a complete path is provided, search $PATH.
8693         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8694 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8695         # Extract the first word of "$tool_basename", so it can be a program name with args.
8696 set dummy $tool_basename; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if ${ac_cv_path_PRINTF+:} false; then :
8700   $as_echo_n "(cached) " >&6
8701 else
8702   case $PRINTF in
8703   [\\/]* | ?:[\\/]*)
8704   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8705   ;;
8706   *)
8707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710   IFS=$as_save_IFS
8711   test -z "$as_dir" && as_dir=.
8712     for ac_exec_ext in '' $ac_executable_extensions; do
8713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716     break 2
8717   fi
8718 done
8719   done
8720 IFS=$as_save_IFS
8721 
8722   ;;
8723 esac
8724 fi
8725 PRINTF=$ac_cv_path_PRINTF
8726 if test -n "$PRINTF"; then
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8728 $as_echo "$PRINTF" >&6; }
8729 else
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733 
8734 
8735         if test "x$PRINTF" = x; then
8736           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8737         fi
8738       else
8739         # Otherwise we believe it is a complete path. Use it as it is.
8740         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8741 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8742         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8743 $as_echo_n "checking for PRINTF... " >&6; }
8744         if test ! -x "$tool_specified"; then
8745           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8746 $as_echo "not found" >&6; }
8747           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8748         fi
8749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8750 $as_echo "$tool_specified" >&6; }
8751       fi
8752     fi
8753   fi
8754 
8755 
8756 
8757   if test "x$PRINTF" = x; then
8758     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8759   fi
8760 
8761 
8762 
8763 
8764 
8765   # Publish this variable in the help.
8766 
8767 
8768   if test "x$RM" = x; then
8769     # The variable is not set by user, try to locate tool using the code snippet
8770     for ac_prog in rm
8771 do
8772   # Extract the first word of "$ac_prog", so it can be a program name with args.
8773 set dummy $ac_prog; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_path_RM+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   case $RM in
8780   [\\/]* | ?:[\\/]*)
8781   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8782   ;;
8783   *)
8784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8786 do
8787   IFS=$as_save_IFS
8788   test -z "$as_dir" && as_dir=.
8789     for ac_exec_ext in '' $ac_executable_extensions; do
8790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8791     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793     break 2
8794   fi
8795 done
8796   done
8797 IFS=$as_save_IFS
8798 
8799   ;;
8800 esac
8801 fi
8802 RM=$ac_cv_path_RM
8803 if test -n "$RM"; then
8804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8805 $as_echo "$RM" >&6; }
8806 else
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8809 fi
8810 
8811 
8812   test -n "$RM" && break
8813 done
8814 
8815   else
8816     # The variable is set, but is it from the command line or the environment?
8817 
8818     # Try to remove the string !RM! from our list.
8819     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8820     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8821       # If it failed, the variable was not from the command line. Ignore it,
8822       # but warn the user (except for BASH, which is always set by the calling BASH).
8823       if test "xRM" != xBASH; then
8824         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8825 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8826       fi
8827       # Try to locate tool using the code snippet
8828       for ac_prog in rm
8829 do
8830   # Extract the first word of "$ac_prog", so it can be a program name with args.
8831 set dummy $ac_prog; ac_word=$2
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 $as_echo_n "checking for $ac_word... " >&6; }
8834 if ${ac_cv_path_RM+:} false; then :
8835   $as_echo_n "(cached) " >&6
8836 else
8837   case $RM in
8838   [\\/]* | ?:[\\/]*)
8839   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8840   ;;
8841   *)
8842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845   IFS=$as_save_IFS
8846   test -z "$as_dir" && as_dir=.
8847     for ac_exec_ext in '' $ac_executable_extensions; do
8848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851     break 2
8852   fi
8853 done
8854   done
8855 IFS=$as_save_IFS
8856 
8857   ;;
8858 esac
8859 fi
8860 RM=$ac_cv_path_RM
8861 if test -n "$RM"; then
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8863 $as_echo "$RM" >&6; }
8864 else
8865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8867 fi
8868 
8869 
8870   test -n "$RM" && break
8871 done
8872 
8873     else
8874       # If it succeeded, then it was overridden by the user. We will use it
8875       # for the tool.
8876 
8877       # First remove it from the list of overridden variables, so we can test
8878       # for unknown variables in the end.
8879       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8880 
8881       # Check if the provided tool contains a complete path.
8882       tool_specified="$RM"
8883       tool_basename="${tool_specified##*/}"
8884       if test "x$tool_basename" = "x$tool_specified"; then
8885         # A command without a complete path is provided, search $PATH.
8886         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8887 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8888         # Extract the first word of "$tool_basename", so it can be a program name with args.
8889 set dummy $tool_basename; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if ${ac_cv_path_RM+:} false; then :
8893   $as_echo_n "(cached) " >&6
8894 else
8895   case $RM in
8896   [\\/]* | ?:[\\/]*)
8897   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8898   ;;
8899   *)
8900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in $PATH
8902 do
8903   IFS=$as_save_IFS
8904   test -z "$as_dir" && as_dir=.
8905     for ac_exec_ext in '' $ac_executable_extensions; do
8906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909     break 2
8910   fi
8911 done
8912   done
8913 IFS=$as_save_IFS
8914 
8915   ;;
8916 esac
8917 fi
8918 RM=$ac_cv_path_RM
8919 if test -n "$RM"; then
8920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8921 $as_echo "$RM" >&6; }
8922 else
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 $as_echo "no" >&6; }
8925 fi
8926 
8927 
8928         if test "x$RM" = x; then
8929           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8930         fi
8931       else
8932         # Otherwise we believe it is a complete path. Use it as it is.
8933         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
8934 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
8935         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
8936 $as_echo_n "checking for RM... " >&6; }
8937         if test ! -x "$tool_specified"; then
8938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8939 $as_echo "not found" >&6; }
8940           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
8941         fi
8942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8943 $as_echo "$tool_specified" >&6; }
8944       fi
8945     fi
8946   fi
8947 
8948 
8949 
8950   if test "x$RM" = x; then
8951     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
8952   fi
8953 
8954 
8955 
8956 
8957 
8958   # Publish this variable in the help.
8959 
8960 
8961   if test "x$SH" = x; then
8962     # The variable is not set by user, try to locate tool using the code snippet
8963     for ac_prog in sh
8964 do
8965   # Extract the first word of "$ac_prog", so it can be a program name with args.
8966 set dummy $ac_prog; ac_word=$2
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 $as_echo_n "checking for $ac_word... " >&6; }
8969 if ${ac_cv_path_SH+:} false; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   case $SH in
8973   [\\/]* | ?:[\\/]*)
8974   ac_cv_path_SH="$SH" # Let the user override the test with a path.
8975   ;;
8976   *)
8977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 for as_dir in $PATH
8979 do
8980   IFS=$as_save_IFS
8981   test -z "$as_dir" && as_dir=.
8982     for ac_exec_ext in '' $ac_executable_extensions; do
8983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8984     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
8985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986     break 2
8987   fi
8988 done
8989   done
8990 IFS=$as_save_IFS
8991 
8992   ;;
8993 esac
8994 fi
8995 SH=$ac_cv_path_SH
8996 if test -n "$SH"; then
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
8998 $as_echo "$SH" >&6; }
8999 else
9000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003 
9004 
9005   test -n "$SH" && break
9006 done
9007 
9008   else
9009     # The variable is set, but is it from the command line or the environment?
9010 
9011     # Try to remove the string !SH! from our list.
9012     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9013     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9014       # If it failed, the variable was not from the command line. Ignore it,
9015       # but warn the user (except for BASH, which is always set by the calling BASH).
9016       if test "xSH" != xBASH; then
9017         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9018 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9019       fi
9020       # Try to locate tool using the code snippet
9021       for ac_prog in sh
9022 do
9023   # Extract the first word of "$ac_prog", so it can be a program name with args.
9024 set dummy $ac_prog; ac_word=$2
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 $as_echo_n "checking for $ac_word... " >&6; }
9027 if ${ac_cv_path_SH+:} false; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   case $SH in
9031   [\\/]* | ?:[\\/]*)
9032   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9033   ;;
9034   *)
9035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9037 do
9038   IFS=$as_save_IFS
9039   test -z "$as_dir" && as_dir=.
9040     for ac_exec_ext in '' $ac_executable_extensions; do
9041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9042     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044     break 2
9045   fi
9046 done
9047   done
9048 IFS=$as_save_IFS
9049 
9050   ;;
9051 esac
9052 fi
9053 SH=$ac_cv_path_SH
9054 if test -n "$SH"; then
9055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9056 $as_echo "$SH" >&6; }
9057 else
9058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9060 fi
9061 
9062 
9063   test -n "$SH" && break
9064 done
9065 
9066     else
9067       # If it succeeded, then it was overridden by the user. We will use it
9068       # for the tool.
9069 
9070       # First remove it from the list of overridden variables, so we can test
9071       # for unknown variables in the end.
9072       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9073 
9074       # Check if the provided tool contains a complete path.
9075       tool_specified="$SH"
9076       tool_basename="${tool_specified##*/}"
9077       if test "x$tool_basename" = "x$tool_specified"; then
9078         # A command without a complete path is provided, search $PATH.
9079         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9080 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9081         # Extract the first word of "$tool_basename", so it can be a program name with args.
9082 set dummy $tool_basename; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if ${ac_cv_path_SH+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   case $SH in
9089   [\\/]* | ?:[\\/]*)
9090   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9091   ;;
9092   *)
9093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9095 do
9096   IFS=$as_save_IFS
9097   test -z "$as_dir" && as_dir=.
9098     for ac_exec_ext in '' $ac_executable_extensions; do
9099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102     break 2
9103   fi
9104 done
9105   done
9106 IFS=$as_save_IFS
9107 
9108   ;;
9109 esac
9110 fi
9111 SH=$ac_cv_path_SH
9112 if test -n "$SH"; then
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9114 $as_echo "$SH" >&6; }
9115 else
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119 
9120 
9121         if test "x$SH" = x; then
9122           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9123         fi
9124       else
9125         # Otherwise we believe it is a complete path. Use it as it is.
9126         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9127 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9129 $as_echo_n "checking for SH... " >&6; }
9130         if test ! -x "$tool_specified"; then
9131           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9132 $as_echo "not found" >&6; }
9133           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9134         fi
9135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9136 $as_echo "$tool_specified" >&6; }
9137       fi
9138     fi
9139   fi
9140 
9141 
9142 
9143   if test "x$SH" = x; then
9144     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9145   fi
9146 
9147 
9148 
9149 
9150 
9151   # Publish this variable in the help.
9152 
9153 
9154   if test "x$SORT" = x; then
9155     # The variable is not set by user, try to locate tool using the code snippet
9156     for ac_prog in sort
9157 do
9158   # Extract the first word of "$ac_prog", so it can be a program name with args.
9159 set dummy $ac_prog; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if ${ac_cv_path_SORT+:} false; then :
9163   $as_echo_n "(cached) " >&6
9164 else
9165   case $SORT in
9166   [\\/]* | ?:[\\/]*)
9167   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9168   ;;
9169   *)
9170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $PATH
9172 do
9173   IFS=$as_save_IFS
9174   test -z "$as_dir" && as_dir=.
9175     for ac_exec_ext in '' $ac_executable_extensions; do
9176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9177     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179     break 2
9180   fi
9181 done
9182   done
9183 IFS=$as_save_IFS
9184 
9185   ;;
9186 esac
9187 fi
9188 SORT=$ac_cv_path_SORT
9189 if test -n "$SORT"; then
9190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9191 $as_echo "$SORT" >&6; }
9192 else
9193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9195 fi
9196 
9197 
9198   test -n "$SORT" && break
9199 done
9200 
9201   else
9202     # The variable is set, but is it from the command line or the environment?
9203 
9204     # Try to remove the string !SORT! from our list.
9205     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9206     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9207       # If it failed, the variable was not from the command line. Ignore it,
9208       # but warn the user (except for BASH, which is always set by the calling BASH).
9209       if test "xSORT" != xBASH; then
9210         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9211 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9212       fi
9213       # Try to locate tool using the code snippet
9214       for ac_prog in sort
9215 do
9216   # Extract the first word of "$ac_prog", so it can be a program name with args.
9217 set dummy $ac_prog; ac_word=$2
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 $as_echo_n "checking for $ac_word... " >&6; }
9220 if ${ac_cv_path_SORT+:} false; then :
9221   $as_echo_n "(cached) " >&6
9222 else
9223   case $SORT in
9224   [\\/]* | ?:[\\/]*)
9225   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9226   ;;
9227   *)
9228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231   IFS=$as_save_IFS
9232   test -z "$as_dir" && as_dir=.
9233     for ac_exec_ext in '' $ac_executable_extensions; do
9234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237     break 2
9238   fi
9239 done
9240   done
9241 IFS=$as_save_IFS
9242 
9243   ;;
9244 esac
9245 fi
9246 SORT=$ac_cv_path_SORT
9247 if test -n "$SORT"; then
9248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9249 $as_echo "$SORT" >&6; }
9250 else
9251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9253 fi
9254 
9255 
9256   test -n "$SORT" && break
9257 done
9258 
9259     else
9260       # If it succeeded, then it was overridden by the user. We will use it
9261       # for the tool.
9262 
9263       # First remove it from the list of overridden variables, so we can test
9264       # for unknown variables in the end.
9265       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9266 
9267       # Check if the provided tool contains a complete path.
9268       tool_specified="$SORT"
9269       tool_basename="${tool_specified##*/}"
9270       if test "x$tool_basename" = "x$tool_specified"; then
9271         # A command without a complete path is provided, search $PATH.
9272         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9273 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9274         # Extract the first word of "$tool_basename", so it can be a program name with args.
9275 set dummy $tool_basename; ac_word=$2
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9277 $as_echo_n "checking for $ac_word... " >&6; }
9278 if ${ac_cv_path_SORT+:} false; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   case $SORT in
9282   [\\/]* | ?:[\\/]*)
9283   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9284   ;;
9285   *)
9286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9288 do
9289   IFS=$as_save_IFS
9290   test -z "$as_dir" && as_dir=.
9291     for ac_exec_ext in '' $ac_executable_extensions; do
9292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295     break 2
9296   fi
9297 done
9298   done
9299 IFS=$as_save_IFS
9300 
9301   ;;
9302 esac
9303 fi
9304 SORT=$ac_cv_path_SORT
9305 if test -n "$SORT"; then
9306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9307 $as_echo "$SORT" >&6; }
9308 else
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9311 fi
9312 
9313 
9314         if test "x$SORT" = x; then
9315           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9316         fi
9317       else
9318         # Otherwise we believe it is a complete path. Use it as it is.
9319         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9320 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9322 $as_echo_n "checking for SORT... " >&6; }
9323         if test ! -x "$tool_specified"; then
9324           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9325 $as_echo "not found" >&6; }
9326           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9327         fi
9328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9329 $as_echo "$tool_specified" >&6; }
9330       fi
9331     fi
9332   fi
9333 
9334 
9335 
9336   if test "x$SORT" = x; then
9337     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9338   fi
9339 
9340 
9341 
9342 
9343 
9344   # Publish this variable in the help.
9345 
9346 
9347   if test "x$TAIL" = x; then
9348     # The variable is not set by user, try to locate tool using the code snippet
9349     for ac_prog in tail
9350 do
9351   # Extract the first word of "$ac_prog", so it can be a program name with args.
9352 set dummy $ac_prog; ac_word=$2
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354 $as_echo_n "checking for $ac_word... " >&6; }
9355 if ${ac_cv_path_TAIL+:} false; then :
9356   $as_echo_n "(cached) " >&6
9357 else
9358   case $TAIL in
9359   [\\/]* | ?:[\\/]*)
9360   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9361   ;;
9362   *)
9363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364 for as_dir in $PATH
9365 do
9366   IFS=$as_save_IFS
9367   test -z "$as_dir" && as_dir=.
9368     for ac_exec_ext in '' $ac_executable_extensions; do
9369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9370     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372     break 2
9373   fi
9374 done
9375   done
9376 IFS=$as_save_IFS
9377 
9378   ;;
9379 esac
9380 fi
9381 TAIL=$ac_cv_path_TAIL
9382 if test -n "$TAIL"; then
9383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9384 $as_echo "$TAIL" >&6; }
9385 else
9386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9388 fi
9389 
9390 
9391   test -n "$TAIL" && break
9392 done
9393 
9394   else
9395     # The variable is set, but is it from the command line or the environment?
9396 
9397     # Try to remove the string !TAIL! from our list.
9398     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9399     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9400       # If it failed, the variable was not from the command line. Ignore it,
9401       # but warn the user (except for BASH, which is always set by the calling BASH).
9402       if test "xTAIL" != xBASH; then
9403         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9404 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9405       fi
9406       # Try to locate tool using the code snippet
9407       for ac_prog in tail
9408 do
9409   # Extract the first word of "$ac_prog", so it can be a program name with args.
9410 set dummy $ac_prog; ac_word=$2
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 $as_echo_n "checking for $ac_word... " >&6; }
9413 if ${ac_cv_path_TAIL+:} false; then :
9414   $as_echo_n "(cached) " >&6
9415 else
9416   case $TAIL in
9417   [\\/]* | ?:[\\/]*)
9418   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9419   ;;
9420   *)
9421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422 for as_dir in $PATH
9423 do
9424   IFS=$as_save_IFS
9425   test -z "$as_dir" && as_dir=.
9426     for ac_exec_ext in '' $ac_executable_extensions; do
9427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9428     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430     break 2
9431   fi
9432 done
9433   done
9434 IFS=$as_save_IFS
9435 
9436   ;;
9437 esac
9438 fi
9439 TAIL=$ac_cv_path_TAIL
9440 if test -n "$TAIL"; then
9441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9442 $as_echo "$TAIL" >&6; }
9443 else
9444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445 $as_echo "no" >&6; }
9446 fi
9447 
9448 
9449   test -n "$TAIL" && break
9450 done
9451 
9452     else
9453       # If it succeeded, then it was overridden by the user. We will use it
9454       # for the tool.
9455 
9456       # First remove it from the list of overridden variables, so we can test
9457       # for unknown variables in the end.
9458       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9459 
9460       # Check if the provided tool contains a complete path.
9461       tool_specified="$TAIL"
9462       tool_basename="${tool_specified##*/}"
9463       if test "x$tool_basename" = "x$tool_specified"; then
9464         # A command without a complete path is provided, search $PATH.
9465         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9466 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9467         # Extract the first word of "$tool_basename", so it can be a program name with args.
9468 set dummy $tool_basename; ac_word=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if ${ac_cv_path_TAIL+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   case $TAIL in
9475   [\\/]* | ?:[\\/]*)
9476   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9477   ;;
9478   *)
9479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in $PATH
9481 do
9482   IFS=$as_save_IFS
9483   test -z "$as_dir" && as_dir=.
9484     for ac_exec_ext in '' $ac_executable_extensions; do
9485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9486     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9488     break 2
9489   fi
9490 done
9491   done
9492 IFS=$as_save_IFS
9493 
9494   ;;
9495 esac
9496 fi
9497 TAIL=$ac_cv_path_TAIL
9498 if test -n "$TAIL"; then
9499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9500 $as_echo "$TAIL" >&6; }
9501 else
9502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9504 fi
9505 
9506 
9507         if test "x$TAIL" = x; then
9508           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9509         fi
9510       else
9511         # Otherwise we believe it is a complete path. Use it as it is.
9512         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9513 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9514         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9515 $as_echo_n "checking for TAIL... " >&6; }
9516         if test ! -x "$tool_specified"; then
9517           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9518 $as_echo "not found" >&6; }
9519           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9520         fi
9521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9522 $as_echo "$tool_specified" >&6; }
9523       fi
9524     fi
9525   fi
9526 
9527 
9528 
9529   if test "x$TAIL" = x; then
9530     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9531   fi
9532 
9533 
9534 
9535 
9536 
9537   # Publish this variable in the help.
9538 
9539 
9540   if test "x$TAR" = x; then
9541     # The variable is not set by user, try to locate tool using the code snippet
9542     for ac_prog in tar
9543 do
9544   # Extract the first word of "$ac_prog", so it can be a program name with args.
9545 set dummy $ac_prog; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if ${ac_cv_path_TAR+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   case $TAR in
9552   [\\/]* | ?:[\\/]*)
9553   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9554   ;;
9555   *)
9556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9558 do
9559   IFS=$as_save_IFS
9560   test -z "$as_dir" && as_dir=.
9561     for ac_exec_ext in '' $ac_executable_extensions; do
9562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565     break 2
9566   fi
9567 done
9568   done
9569 IFS=$as_save_IFS
9570 
9571   ;;
9572 esac
9573 fi
9574 TAR=$ac_cv_path_TAR
9575 if test -n "$TAR"; then
9576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9577 $as_echo "$TAR" >&6; }
9578 else
9579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9581 fi
9582 
9583 
9584   test -n "$TAR" && break
9585 done
9586 
9587   else
9588     # The variable is set, but is it from the command line or the environment?
9589 
9590     # Try to remove the string !TAR! from our list.
9591     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9592     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9593       # If it failed, the variable was not from the command line. Ignore it,
9594       # but warn the user (except for BASH, which is always set by the calling BASH).
9595       if test "xTAR" != xBASH; then
9596         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9597 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9598       fi
9599       # Try to locate tool using the code snippet
9600       for ac_prog in tar
9601 do
9602   # Extract the first word of "$ac_prog", so it can be a program name with args.
9603 set dummy $ac_prog; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if ${ac_cv_path_TAR+:} false; then :
9607   $as_echo_n "(cached) " >&6
9608 else
9609   case $TAR in
9610   [\\/]* | ?:[\\/]*)
9611   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9612   ;;
9613   *)
9614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $PATH
9616 do
9617   IFS=$as_save_IFS
9618   test -z "$as_dir" && as_dir=.
9619     for ac_exec_ext in '' $ac_executable_extensions; do
9620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623     break 2
9624   fi
9625 done
9626   done
9627 IFS=$as_save_IFS
9628 
9629   ;;
9630 esac
9631 fi
9632 TAR=$ac_cv_path_TAR
9633 if test -n "$TAR"; then
9634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9635 $as_echo "$TAR" >&6; }
9636 else
9637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9639 fi
9640 
9641 
9642   test -n "$TAR" && break
9643 done
9644 
9645     else
9646       # If it succeeded, then it was overridden by the user. We will use it
9647       # for the tool.
9648 
9649       # First remove it from the list of overridden variables, so we can test
9650       # for unknown variables in the end.
9651       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9652 
9653       # Check if the provided tool contains a complete path.
9654       tool_specified="$TAR"
9655       tool_basename="${tool_specified##*/}"
9656       if test "x$tool_basename" = "x$tool_specified"; then
9657         # A command without a complete path is provided, search $PATH.
9658         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9659 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9660         # Extract the first word of "$tool_basename", so it can be a program name with args.
9661 set dummy $tool_basename; ac_word=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if ${ac_cv_path_TAR+:} false; then :
9665   $as_echo_n "(cached) " >&6
9666 else
9667   case $TAR in
9668   [\\/]* | ?:[\\/]*)
9669   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9670   ;;
9671   *)
9672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 for as_dir in $PATH
9674 do
9675   IFS=$as_save_IFS
9676   test -z "$as_dir" && as_dir=.
9677     for ac_exec_ext in '' $ac_executable_extensions; do
9678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9679     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681     break 2
9682   fi
9683 done
9684   done
9685 IFS=$as_save_IFS
9686 
9687   ;;
9688 esac
9689 fi
9690 TAR=$ac_cv_path_TAR
9691 if test -n "$TAR"; then
9692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9693 $as_echo "$TAR" >&6; }
9694 else
9695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9697 fi
9698 
9699 
9700         if test "x$TAR" = x; then
9701           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9702         fi
9703       else
9704         # Otherwise we believe it is a complete path. Use it as it is.
9705         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9706 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9708 $as_echo_n "checking for TAR... " >&6; }
9709         if test ! -x "$tool_specified"; then
9710           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9711 $as_echo "not found" >&6; }
9712           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9713         fi
9714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9715 $as_echo "$tool_specified" >&6; }
9716       fi
9717     fi
9718   fi
9719 
9720 
9721 
9722   if test "x$TAR" = x; then
9723     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9724   fi
9725 
9726 
9727 
9728 
9729 
9730   # Publish this variable in the help.
9731 
9732 
9733   if test "x$TEE" = x; then
9734     # The variable is not set by user, try to locate tool using the code snippet
9735     for ac_prog in tee
9736 do
9737   # Extract the first word of "$ac_prog", so it can be a program name with args.
9738 set dummy $ac_prog; ac_word=$2
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9740 $as_echo_n "checking for $ac_word... " >&6; }
9741 if ${ac_cv_path_TEE+:} false; then :
9742   $as_echo_n "(cached) " >&6
9743 else
9744   case $TEE in
9745   [\\/]* | ?:[\\/]*)
9746   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9747   ;;
9748   *)
9749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750 for as_dir in $PATH
9751 do
9752   IFS=$as_save_IFS
9753   test -z "$as_dir" && as_dir=.
9754     for ac_exec_ext in '' $ac_executable_extensions; do
9755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9756     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758     break 2
9759   fi
9760 done
9761   done
9762 IFS=$as_save_IFS
9763 
9764   ;;
9765 esac
9766 fi
9767 TEE=$ac_cv_path_TEE
9768 if test -n "$TEE"; then
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9770 $as_echo "$TEE" >&6; }
9771 else
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9774 fi
9775 
9776 
9777   test -n "$TEE" && break
9778 done
9779 
9780   else
9781     # The variable is set, but is it from the command line or the environment?
9782 
9783     # Try to remove the string !TEE! from our list.
9784     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9785     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9786       # If it failed, the variable was not from the command line. Ignore it,
9787       # but warn the user (except for BASH, which is always set by the calling BASH).
9788       if test "xTEE" != xBASH; then
9789         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9790 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9791       fi
9792       # Try to locate tool using the code snippet
9793       for ac_prog in tee
9794 do
9795   # Extract the first word of "$ac_prog", so it can be a program name with args.
9796 set dummy $ac_prog; ac_word=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if ${ac_cv_path_TEE+:} false; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   case $TEE in
9803   [\\/]* | ?:[\\/]*)
9804   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9805   ;;
9806   *)
9807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9809 do
9810   IFS=$as_save_IFS
9811   test -z "$as_dir" && as_dir=.
9812     for ac_exec_ext in '' $ac_executable_extensions; do
9813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9814     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9816     break 2
9817   fi
9818 done
9819   done
9820 IFS=$as_save_IFS
9821 
9822   ;;
9823 esac
9824 fi
9825 TEE=$ac_cv_path_TEE
9826 if test -n "$TEE"; then
9827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9828 $as_echo "$TEE" >&6; }
9829 else
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 $as_echo "no" >&6; }
9832 fi
9833 
9834 
9835   test -n "$TEE" && break
9836 done
9837 
9838     else
9839       # If it succeeded, then it was overridden by the user. We will use it
9840       # for the tool.
9841 
9842       # First remove it from the list of overridden variables, so we can test
9843       # for unknown variables in the end.
9844       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9845 
9846       # Check if the provided tool contains a complete path.
9847       tool_specified="$TEE"
9848       tool_basename="${tool_specified##*/}"
9849       if test "x$tool_basename" = "x$tool_specified"; then
9850         # A command without a complete path is provided, search $PATH.
9851         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9852 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9853         # Extract the first word of "$tool_basename", so it can be a program name with args.
9854 set dummy $tool_basename; ac_word=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if ${ac_cv_path_TEE+:} false; then :
9858   $as_echo_n "(cached) " >&6
9859 else
9860   case $TEE in
9861   [\\/]* | ?:[\\/]*)
9862   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9863   ;;
9864   *)
9865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868   IFS=$as_save_IFS
9869   test -z "$as_dir" && as_dir=.
9870     for ac_exec_ext in '' $ac_executable_extensions; do
9871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9872     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874     break 2
9875   fi
9876 done
9877   done
9878 IFS=$as_save_IFS
9879 
9880   ;;
9881 esac
9882 fi
9883 TEE=$ac_cv_path_TEE
9884 if test -n "$TEE"; then
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9886 $as_echo "$TEE" >&6; }
9887 else
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889 $as_echo "no" >&6; }
9890 fi
9891 
9892 
9893         if test "x$TEE" = x; then
9894           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9895         fi
9896       else
9897         # Otherwise we believe it is a complete path. Use it as it is.
9898         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9899 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9901 $as_echo_n "checking for TEE... " >&6; }
9902         if test ! -x "$tool_specified"; then
9903           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9904 $as_echo "not found" >&6; }
9905           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9906         fi
9907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9908 $as_echo "$tool_specified" >&6; }
9909       fi
9910     fi
9911   fi
9912 
9913 
9914 
9915   if test "x$TEE" = x; then
9916     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
9917   fi
9918 
9919 
9920 
9921 
9922 
9923   # Publish this variable in the help.
9924 
9925 
9926   if test "x$TOUCH" = x; then
9927     # The variable is not set by user, try to locate tool using the code snippet
9928     for ac_prog in touch
9929 do
9930   # Extract the first word of "$ac_prog", so it can be a program name with args.
9931 set dummy $ac_prog; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if ${ac_cv_path_TOUCH+:} false; then :
9935   $as_echo_n "(cached) " >&6
9936 else
9937   case $TOUCH in
9938   [\\/]* | ?:[\\/]*)
9939   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9940   ;;
9941   *)
9942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in $PATH
9944 do
9945   IFS=$as_save_IFS
9946   test -z "$as_dir" && as_dir=.
9947     for ac_exec_ext in '' $ac_executable_extensions; do
9948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9949     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951     break 2
9952   fi
9953 done
9954   done
9955 IFS=$as_save_IFS
9956 
9957   ;;
9958 esac
9959 fi
9960 TOUCH=$ac_cv_path_TOUCH
9961 if test -n "$TOUCH"; then
9962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
9963 $as_echo "$TOUCH" >&6; }
9964 else
9965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9967 fi
9968 
9969 
9970   test -n "$TOUCH" && break
9971 done
9972 
9973   else
9974     # The variable is set, but is it from the command line or the environment?
9975 
9976     # Try to remove the string !TOUCH! from our list.
9977     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
9978     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9979       # If it failed, the variable was not from the command line. Ignore it,
9980       # but warn the user (except for BASH, which is always set by the calling BASH).
9981       if test "xTOUCH" != xBASH; then
9982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
9983 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
9984       fi
9985       # Try to locate tool using the code snippet
9986       for ac_prog in touch
9987 do
9988   # Extract the first word of "$ac_prog", so it can be a program name with args.
9989 set dummy $ac_prog; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_path_TOUCH+:} false; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   case $TOUCH in
9996   [\\/]* | ?:[\\/]*)
9997   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9998   ;;
9999   *)
10000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10002 do
10003   IFS=$as_save_IFS
10004   test -z "$as_dir" && as_dir=.
10005     for ac_exec_ext in '' $ac_executable_extensions; do
10006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10007     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009     break 2
10010   fi
10011 done
10012   done
10013 IFS=$as_save_IFS
10014 
10015   ;;
10016 esac
10017 fi
10018 TOUCH=$ac_cv_path_TOUCH
10019 if test -n "$TOUCH"; then
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10021 $as_echo "$TOUCH" >&6; }
10022 else
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10025 fi
10026 
10027 
10028   test -n "$TOUCH" && break
10029 done
10030 
10031     else
10032       # If it succeeded, then it was overridden by the user. We will use it
10033       # for the tool.
10034 
10035       # First remove it from the list of overridden variables, so we can test
10036       # for unknown variables in the end.
10037       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10038 
10039       # Check if the provided tool contains a complete path.
10040       tool_specified="$TOUCH"
10041       tool_basename="${tool_specified##*/}"
10042       if test "x$tool_basename" = "x$tool_specified"; then
10043         # A command without a complete path is provided, search $PATH.
10044         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10045 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10046         # Extract the first word of "$tool_basename", so it can be a program name with args.
10047 set dummy $tool_basename; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_path_TOUCH+:} false; then :
10051   $as_echo_n "(cached) " >&6
10052 else
10053   case $TOUCH in
10054   [\\/]* | ?:[\\/]*)
10055   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10056   ;;
10057   *)
10058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061   IFS=$as_save_IFS
10062   test -z "$as_dir" && as_dir=.
10063     for ac_exec_ext in '' $ac_executable_extensions; do
10064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067     break 2
10068   fi
10069 done
10070   done
10071 IFS=$as_save_IFS
10072 
10073   ;;
10074 esac
10075 fi
10076 TOUCH=$ac_cv_path_TOUCH
10077 if test -n "$TOUCH"; then
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10079 $as_echo "$TOUCH" >&6; }
10080 else
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084 
10085 
10086         if test "x$TOUCH" = x; then
10087           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10088         fi
10089       else
10090         # Otherwise we believe it is a complete path. Use it as it is.
10091         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10092 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10094 $as_echo_n "checking for TOUCH... " >&6; }
10095         if test ! -x "$tool_specified"; then
10096           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10097 $as_echo "not found" >&6; }
10098           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10099         fi
10100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10101 $as_echo "$tool_specified" >&6; }
10102       fi
10103     fi
10104   fi
10105 
10106 
10107 
10108   if test "x$TOUCH" = x; then
10109     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10110   fi
10111 
10112 
10113 
10114 
10115 
10116   # Publish this variable in the help.
10117 
10118 
10119   if test "x$TR" = x; then
10120     # The variable is not set by user, try to locate tool using the code snippet
10121     for ac_prog in tr
10122 do
10123   # Extract the first word of "$ac_prog", so it can be a program name with args.
10124 set dummy $ac_prog; ac_word=$2
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 $as_echo_n "checking for $ac_word... " >&6; }
10127 if ${ac_cv_path_TR+:} false; then :
10128   $as_echo_n "(cached) " >&6
10129 else
10130   case $TR in
10131   [\\/]* | ?:[\\/]*)
10132   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10133   ;;
10134   *)
10135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10137 do
10138   IFS=$as_save_IFS
10139   test -z "$as_dir" && as_dir=.
10140     for ac_exec_ext in '' $ac_executable_extensions; do
10141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144     break 2
10145   fi
10146 done
10147   done
10148 IFS=$as_save_IFS
10149 
10150   ;;
10151 esac
10152 fi
10153 TR=$ac_cv_path_TR
10154 if test -n "$TR"; then
10155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10156 $as_echo "$TR" >&6; }
10157 else
10158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10160 fi
10161 
10162 
10163   test -n "$TR" && break
10164 done
10165 
10166   else
10167     # The variable is set, but is it from the command line or the environment?
10168 
10169     # Try to remove the string !TR! from our list.
10170     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10171     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10172       # If it failed, the variable was not from the command line. Ignore it,
10173       # but warn the user (except for BASH, which is always set by the calling BASH).
10174       if test "xTR" != xBASH; then
10175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10176 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10177       fi
10178       # Try to locate tool using the code snippet
10179       for ac_prog in tr
10180 do
10181   # Extract the first word of "$ac_prog", so it can be a program name with args.
10182 set dummy $ac_prog; ac_word=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if ${ac_cv_path_TR+:} false; then :
10186   $as_echo_n "(cached) " >&6
10187 else
10188   case $TR in
10189   [\\/]* | ?:[\\/]*)
10190   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10191   ;;
10192   *)
10193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196   IFS=$as_save_IFS
10197   test -z "$as_dir" && as_dir=.
10198     for ac_exec_ext in '' $ac_executable_extensions; do
10199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202     break 2
10203   fi
10204 done
10205   done
10206 IFS=$as_save_IFS
10207 
10208   ;;
10209 esac
10210 fi
10211 TR=$ac_cv_path_TR
10212 if test -n "$TR"; then
10213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10214 $as_echo "$TR" >&6; }
10215 else
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219 
10220 
10221   test -n "$TR" && break
10222 done
10223 
10224     else
10225       # If it succeeded, then it was overridden by the user. We will use it
10226       # for the tool.
10227 
10228       # First remove it from the list of overridden variables, so we can test
10229       # for unknown variables in the end.
10230       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10231 
10232       # Check if the provided tool contains a complete path.
10233       tool_specified="$TR"
10234       tool_basename="${tool_specified##*/}"
10235       if test "x$tool_basename" = "x$tool_specified"; then
10236         # A command without a complete path is provided, search $PATH.
10237         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10238 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10239         # Extract the first word of "$tool_basename", so it can be a program name with args.
10240 set dummy $tool_basename; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if ${ac_cv_path_TR+:} false; then :
10244   $as_echo_n "(cached) " >&6
10245 else
10246   case $TR in
10247   [\\/]* | ?:[\\/]*)
10248   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10249   ;;
10250   *)
10251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254   IFS=$as_save_IFS
10255   test -z "$as_dir" && as_dir=.
10256     for ac_exec_ext in '' $ac_executable_extensions; do
10257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10258     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260     break 2
10261   fi
10262 done
10263   done
10264 IFS=$as_save_IFS
10265 
10266   ;;
10267 esac
10268 fi
10269 TR=$ac_cv_path_TR
10270 if test -n "$TR"; then
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10272 $as_echo "$TR" >&6; }
10273 else
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277 
10278 
10279         if test "x$TR" = x; then
10280           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10281         fi
10282       else
10283         # Otherwise we believe it is a complete path. Use it as it is.
10284         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10285 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10287 $as_echo_n "checking for TR... " >&6; }
10288         if test ! -x "$tool_specified"; then
10289           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10290 $as_echo "not found" >&6; }
10291           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10292         fi
10293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10294 $as_echo "$tool_specified" >&6; }
10295       fi
10296     fi
10297   fi
10298 
10299 
10300 
10301   if test "x$TR" = x; then
10302     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10303   fi
10304 
10305 
10306 
10307 
10308 
10309   # Publish this variable in the help.
10310 
10311 
10312   if test "x$UNAME" = x; then
10313     # The variable is not set by user, try to locate tool using the code snippet
10314     for ac_prog in uname
10315 do
10316   # Extract the first word of "$ac_prog", so it can be a program name with args.
10317 set dummy $ac_prog; ac_word=$2
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319 $as_echo_n "checking for $ac_word... " >&6; }
10320 if ${ac_cv_path_UNAME+:} false; then :
10321   $as_echo_n "(cached) " >&6
10322 else
10323   case $UNAME in
10324   [\\/]* | ?:[\\/]*)
10325   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10326   ;;
10327   *)
10328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10330 do
10331   IFS=$as_save_IFS
10332   test -z "$as_dir" && as_dir=.
10333     for ac_exec_ext in '' $ac_executable_extensions; do
10334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10335     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337     break 2
10338   fi
10339 done
10340   done
10341 IFS=$as_save_IFS
10342 
10343   ;;
10344 esac
10345 fi
10346 UNAME=$ac_cv_path_UNAME
10347 if test -n "$UNAME"; then
10348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10349 $as_echo "$UNAME" >&6; }
10350 else
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10353 fi
10354 
10355 
10356   test -n "$UNAME" && break
10357 done
10358 
10359   else
10360     # The variable is set, but is it from the command line or the environment?
10361 
10362     # Try to remove the string !UNAME! from our list.
10363     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10364     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10365       # If it failed, the variable was not from the command line. Ignore it,
10366       # but warn the user (except for BASH, which is always set by the calling BASH).
10367       if test "xUNAME" != xBASH; then
10368         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10369 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10370       fi
10371       # Try to locate tool using the code snippet
10372       for ac_prog in uname
10373 do
10374   # Extract the first word of "$ac_prog", so it can be a program name with args.
10375 set dummy $ac_prog; ac_word=$2
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 $as_echo_n "checking for $ac_word... " >&6; }
10378 if ${ac_cv_path_UNAME+:} false; then :
10379   $as_echo_n "(cached) " >&6
10380 else
10381   case $UNAME in
10382   [\\/]* | ?:[\\/]*)
10383   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10384   ;;
10385   *)
10386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10388 do
10389   IFS=$as_save_IFS
10390   test -z "$as_dir" && as_dir=.
10391     for ac_exec_ext in '' $ac_executable_extensions; do
10392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10393     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10395     break 2
10396   fi
10397 done
10398   done
10399 IFS=$as_save_IFS
10400 
10401   ;;
10402 esac
10403 fi
10404 UNAME=$ac_cv_path_UNAME
10405 if test -n "$UNAME"; then
10406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10407 $as_echo "$UNAME" >&6; }
10408 else
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10411 fi
10412 
10413 
10414   test -n "$UNAME" && break
10415 done
10416 
10417     else
10418       # If it succeeded, then it was overridden by the user. We will use it
10419       # for the tool.
10420 
10421       # First remove it from the list of overridden variables, so we can test
10422       # for unknown variables in the end.
10423       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10424 
10425       # Check if the provided tool contains a complete path.
10426       tool_specified="$UNAME"
10427       tool_basename="${tool_specified##*/}"
10428       if test "x$tool_basename" = "x$tool_specified"; then
10429         # A command without a complete path is provided, search $PATH.
10430         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10431 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10432         # Extract the first word of "$tool_basename", so it can be a program name with args.
10433 set dummy $tool_basename; ac_word=$2
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435 $as_echo_n "checking for $ac_word... " >&6; }
10436 if ${ac_cv_path_UNAME+:} false; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   case $UNAME in
10440   [\\/]* | ?:[\\/]*)
10441   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10442   ;;
10443   *)
10444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445 for as_dir in $PATH
10446 do
10447   IFS=$as_save_IFS
10448   test -z "$as_dir" && as_dir=.
10449     for ac_exec_ext in '' $ac_executable_extensions; do
10450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10451     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453     break 2
10454   fi
10455 done
10456   done
10457 IFS=$as_save_IFS
10458 
10459   ;;
10460 esac
10461 fi
10462 UNAME=$ac_cv_path_UNAME
10463 if test -n "$UNAME"; then
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10465 $as_echo "$UNAME" >&6; }
10466 else
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10469 fi
10470 
10471 
10472         if test "x$UNAME" = x; then
10473           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10474         fi
10475       else
10476         # Otherwise we believe it is a complete path. Use it as it is.
10477         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10478 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10479         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10480 $as_echo_n "checking for UNAME... " >&6; }
10481         if test ! -x "$tool_specified"; then
10482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10483 $as_echo "not found" >&6; }
10484           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10485         fi
10486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10487 $as_echo "$tool_specified" >&6; }
10488       fi
10489     fi
10490   fi
10491 
10492 
10493 
10494   if test "x$UNAME" = x; then
10495     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10496   fi
10497 
10498 
10499 
10500 
10501 
10502   # Publish this variable in the help.
10503 
10504 
10505   if test "x$UNIQ" = x; then
10506     # The variable is not set by user, try to locate tool using the code snippet
10507     for ac_prog in uniq
10508 do
10509   # Extract the first word of "$ac_prog", so it can be a program name with args.
10510 set dummy $ac_prog; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512 $as_echo_n "checking for $ac_word... " >&6; }
10513 if ${ac_cv_path_UNIQ+:} false; then :
10514   $as_echo_n "(cached) " >&6
10515 else
10516   case $UNIQ in
10517   [\\/]* | ?:[\\/]*)
10518   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10519   ;;
10520   *)
10521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522 for as_dir in $PATH
10523 do
10524   IFS=$as_save_IFS
10525   test -z "$as_dir" && as_dir=.
10526     for ac_exec_ext in '' $ac_executable_extensions; do
10527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10528     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10530     break 2
10531   fi
10532 done
10533   done
10534 IFS=$as_save_IFS
10535 
10536   ;;
10537 esac
10538 fi
10539 UNIQ=$ac_cv_path_UNIQ
10540 if test -n "$UNIQ"; then
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10542 $as_echo "$UNIQ" >&6; }
10543 else
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547 
10548 
10549   test -n "$UNIQ" && break
10550 done
10551 
10552   else
10553     # The variable is set, but is it from the command line or the environment?
10554 
10555     # Try to remove the string !UNIQ! from our list.
10556     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10557     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10558       # If it failed, the variable was not from the command line. Ignore it,
10559       # but warn the user (except for BASH, which is always set by the calling BASH).
10560       if test "xUNIQ" != xBASH; then
10561         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10562 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10563       fi
10564       # Try to locate tool using the code snippet
10565       for ac_prog in uniq
10566 do
10567   # Extract the first word of "$ac_prog", so it can be a program name with args.
10568 set dummy $ac_prog; ac_word=$2
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10570 $as_echo_n "checking for $ac_word... " >&6; }
10571 if ${ac_cv_path_UNIQ+:} false; then :
10572   $as_echo_n "(cached) " >&6
10573 else
10574   case $UNIQ in
10575   [\\/]* | ?:[\\/]*)
10576   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10577   ;;
10578   *)
10579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10581 do
10582   IFS=$as_save_IFS
10583   test -z "$as_dir" && as_dir=.
10584     for ac_exec_ext in '' $ac_executable_extensions; do
10585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588     break 2
10589   fi
10590 done
10591   done
10592 IFS=$as_save_IFS
10593 
10594   ;;
10595 esac
10596 fi
10597 UNIQ=$ac_cv_path_UNIQ
10598 if test -n "$UNIQ"; then
10599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10600 $as_echo "$UNIQ" >&6; }
10601 else
10602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10604 fi
10605 
10606 
10607   test -n "$UNIQ" && break
10608 done
10609 
10610     else
10611       # If it succeeded, then it was overridden by the user. We will use it
10612       # for the tool.
10613 
10614       # First remove it from the list of overridden variables, so we can test
10615       # for unknown variables in the end.
10616       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10617 
10618       # Check if the provided tool contains a complete path.
10619       tool_specified="$UNIQ"
10620       tool_basename="${tool_specified##*/}"
10621       if test "x$tool_basename" = "x$tool_specified"; then
10622         # A command without a complete path is provided, search $PATH.
10623         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10624 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10625         # Extract the first word of "$tool_basename", so it can be a program name with args.
10626 set dummy $tool_basename; ac_word=$2
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10628 $as_echo_n "checking for $ac_word... " >&6; }
10629 if ${ac_cv_path_UNIQ+:} false; then :
10630   $as_echo_n "(cached) " >&6
10631 else
10632   case $UNIQ in
10633   [\\/]* | ?:[\\/]*)
10634   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10635   ;;
10636   *)
10637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10639 do
10640   IFS=$as_save_IFS
10641   test -z "$as_dir" && as_dir=.
10642     for ac_exec_ext in '' $ac_executable_extensions; do
10643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10644     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646     break 2
10647   fi
10648 done
10649   done
10650 IFS=$as_save_IFS
10651 
10652   ;;
10653 esac
10654 fi
10655 UNIQ=$ac_cv_path_UNIQ
10656 if test -n "$UNIQ"; then
10657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10658 $as_echo "$UNIQ" >&6; }
10659 else
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10662 fi
10663 
10664 
10665         if test "x$UNIQ" = x; then
10666           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10667         fi
10668       else
10669         # Otherwise we believe it is a complete path. Use it as it is.
10670         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10671 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10673 $as_echo_n "checking for UNIQ... " >&6; }
10674         if test ! -x "$tool_specified"; then
10675           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10676 $as_echo "not found" >&6; }
10677           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10678         fi
10679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10680 $as_echo "$tool_specified" >&6; }
10681       fi
10682     fi
10683   fi
10684 
10685 
10686 
10687   if test "x$UNIQ" = x; then
10688     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10689   fi
10690 
10691 
10692 
10693 
10694 
10695   # Publish this variable in the help.
10696 
10697 
10698   if test "x$WC" = x; then
10699     # The variable is not set by user, try to locate tool using the code snippet
10700     for ac_prog in wc
10701 do
10702   # Extract the first word of "$ac_prog", so it can be a program name with args.
10703 set dummy $ac_prog; ac_word=$2
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705 $as_echo_n "checking for $ac_word... " >&6; }
10706 if ${ac_cv_path_WC+:} false; then :
10707   $as_echo_n "(cached) " >&6
10708 else
10709   case $WC in
10710   [\\/]* | ?:[\\/]*)
10711   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10712   ;;
10713   *)
10714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10716 do
10717   IFS=$as_save_IFS
10718   test -z "$as_dir" && as_dir=.
10719     for ac_exec_ext in '' $ac_executable_extensions; do
10720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10723     break 2
10724   fi
10725 done
10726   done
10727 IFS=$as_save_IFS
10728 
10729   ;;
10730 esac
10731 fi
10732 WC=$ac_cv_path_WC
10733 if test -n "$WC"; then
10734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10735 $as_echo "$WC" >&6; }
10736 else
10737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 $as_echo "no" >&6; }
10739 fi
10740 
10741 
10742   test -n "$WC" && break
10743 done
10744 
10745   else
10746     # The variable is set, but is it from the command line or the environment?
10747 
10748     # Try to remove the string !WC! from our list.
10749     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10750     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10751       # If it failed, the variable was not from the command line. Ignore it,
10752       # but warn the user (except for BASH, which is always set by the calling BASH).
10753       if test "xWC" != xBASH; then
10754         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10755 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10756       fi
10757       # Try to locate tool using the code snippet
10758       for ac_prog in wc
10759 do
10760   # Extract the first word of "$ac_prog", so it can be a program name with args.
10761 set dummy $ac_prog; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if ${ac_cv_path_WC+:} false; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   case $WC in
10768   [\\/]* | ?:[\\/]*)
10769   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10770   ;;
10771   *)
10772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10774 do
10775   IFS=$as_save_IFS
10776   test -z "$as_dir" && as_dir=.
10777     for ac_exec_ext in '' $ac_executable_extensions; do
10778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10779     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781     break 2
10782   fi
10783 done
10784   done
10785 IFS=$as_save_IFS
10786 
10787   ;;
10788 esac
10789 fi
10790 WC=$ac_cv_path_WC
10791 if test -n "$WC"; then
10792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10793 $as_echo "$WC" >&6; }
10794 else
10795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10797 fi
10798 
10799 
10800   test -n "$WC" && break
10801 done
10802 
10803     else
10804       # If it succeeded, then it was overridden by the user. We will use it
10805       # for the tool.
10806 
10807       # First remove it from the list of overridden variables, so we can test
10808       # for unknown variables in the end.
10809       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10810 
10811       # Check if the provided tool contains a complete path.
10812       tool_specified="$WC"
10813       tool_basename="${tool_specified##*/}"
10814       if test "x$tool_basename" = "x$tool_specified"; then
10815         # A command without a complete path is provided, search $PATH.
10816         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10817 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10818         # Extract the first word of "$tool_basename", so it can be a program name with args.
10819 set dummy $tool_basename; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_path_WC+:} false; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   case $WC in
10826   [\\/]* | ?:[\\/]*)
10827   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10828   ;;
10829   *)
10830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10832 do
10833   IFS=$as_save_IFS
10834   test -z "$as_dir" && as_dir=.
10835     for ac_exec_ext in '' $ac_executable_extensions; do
10836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10837     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839     break 2
10840   fi
10841 done
10842   done
10843 IFS=$as_save_IFS
10844 
10845   ;;
10846 esac
10847 fi
10848 WC=$ac_cv_path_WC
10849 if test -n "$WC"; then
10850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10851 $as_echo "$WC" >&6; }
10852 else
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10855 fi
10856 
10857 
10858         if test "x$WC" = x; then
10859           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10860         fi
10861       else
10862         # Otherwise we believe it is a complete path. Use it as it is.
10863         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10864 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10866 $as_echo_n "checking for WC... " >&6; }
10867         if test ! -x "$tool_specified"; then
10868           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10869 $as_echo "not found" >&6; }
10870           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10871         fi
10872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10873 $as_echo "$tool_specified" >&6; }
10874       fi
10875     fi
10876   fi
10877 
10878 
10879 
10880   if test "x$WC" = x; then
10881     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10882   fi
10883 
10884 
10885 
10886 
10887 
10888   # Publish this variable in the help.
10889 
10890 
10891   if test "x$WHICH" = x; then
10892     # The variable is not set by user, try to locate tool using the code snippet
10893     for ac_prog in which
10894 do
10895   # Extract the first word of "$ac_prog", so it can be a program name with args.
10896 set dummy $ac_prog; ac_word=$2
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10898 $as_echo_n "checking for $ac_word... " >&6; }
10899 if ${ac_cv_path_WHICH+:} false; then :
10900   $as_echo_n "(cached) " >&6
10901 else
10902   case $WHICH in
10903   [\\/]* | ?:[\\/]*)
10904   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10905   ;;
10906   *)
10907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10909 do
10910   IFS=$as_save_IFS
10911   test -z "$as_dir" && as_dir=.
10912     for ac_exec_ext in '' $ac_executable_extensions; do
10913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10914     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10916     break 2
10917   fi
10918 done
10919   done
10920 IFS=$as_save_IFS
10921 
10922   ;;
10923 esac
10924 fi
10925 WHICH=$ac_cv_path_WHICH
10926 if test -n "$WHICH"; then
10927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10928 $as_echo "$WHICH" >&6; }
10929 else
10930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10932 fi
10933 
10934 
10935   test -n "$WHICH" && break
10936 done
10937 
10938   else
10939     # The variable is set, but is it from the command line or the environment?
10940 
10941     # Try to remove the string !WHICH! from our list.
10942     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
10943     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10944       # If it failed, the variable was not from the command line. Ignore it,
10945       # but warn the user (except for BASH, which is always set by the calling BASH).
10946       if test "xWHICH" != xBASH; then
10947         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
10948 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
10949       fi
10950       # Try to locate tool using the code snippet
10951       for ac_prog in which
10952 do
10953   # Extract the first word of "$ac_prog", so it can be a program name with args.
10954 set dummy $ac_prog; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if ${ac_cv_path_WHICH+:} false; then :
10958   $as_echo_n "(cached) " >&6
10959 else
10960   case $WHICH in
10961   [\\/]* | ?:[\\/]*)
10962   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10963   ;;
10964   *)
10965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in $PATH
10967 do
10968   IFS=$as_save_IFS
10969   test -z "$as_dir" && as_dir=.
10970     for ac_exec_ext in '' $ac_executable_extensions; do
10971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10972     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974     break 2
10975   fi
10976 done
10977   done
10978 IFS=$as_save_IFS
10979 
10980   ;;
10981 esac
10982 fi
10983 WHICH=$ac_cv_path_WHICH
10984 if test -n "$WHICH"; then
10985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10986 $as_echo "$WHICH" >&6; }
10987 else
10988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10990 fi
10991 
10992 
10993   test -n "$WHICH" && break
10994 done
10995 
10996     else
10997       # If it succeeded, then it was overridden by the user. We will use it
10998       # for the tool.
10999 
11000       # First remove it from the list of overridden variables, so we can test
11001       # for unknown variables in the end.
11002       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11003 
11004       # Check if the provided tool contains a complete path.
11005       tool_specified="$WHICH"
11006       tool_basename="${tool_specified##*/}"
11007       if test "x$tool_basename" = "x$tool_specified"; then
11008         # A command without a complete path is provided, search $PATH.
11009         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11010 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11011         # Extract the first word of "$tool_basename", so it can be a program name with args.
11012 set dummy $tool_basename; ac_word=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if ${ac_cv_path_WHICH+:} false; then :
11016   $as_echo_n "(cached) " >&6
11017 else
11018   case $WHICH in
11019   [\\/]* | ?:[\\/]*)
11020   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11021   ;;
11022   *)
11023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11025 do
11026   IFS=$as_save_IFS
11027   test -z "$as_dir" && as_dir=.
11028     for ac_exec_ext in '' $ac_executable_extensions; do
11029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032     break 2
11033   fi
11034 done
11035   done
11036 IFS=$as_save_IFS
11037 
11038   ;;
11039 esac
11040 fi
11041 WHICH=$ac_cv_path_WHICH
11042 if test -n "$WHICH"; then
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11044 $as_echo "$WHICH" >&6; }
11045 else
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049 
11050 
11051         if test "x$WHICH" = x; then
11052           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11053         fi
11054       else
11055         # Otherwise we believe it is a complete path. Use it as it is.
11056         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11057 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11058         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11059 $as_echo_n "checking for WHICH... " >&6; }
11060         if test ! -x "$tool_specified"; then
11061           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11062 $as_echo "not found" >&6; }
11063           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11064         fi
11065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11066 $as_echo "$tool_specified" >&6; }
11067       fi
11068     fi
11069   fi
11070 
11071 
11072 
11073   if test "x$WHICH" = x; then
11074     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11075   fi
11076 
11077 
11078 
11079 
11080 
11081   # Publish this variable in the help.
11082 
11083 
11084   if test "x$XARGS" = x; then
11085     # The variable is not set by user, try to locate tool using the code snippet
11086     for ac_prog in xargs
11087 do
11088   # Extract the first word of "$ac_prog", so it can be a program name with args.
11089 set dummy $ac_prog; ac_word=$2
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11091 $as_echo_n "checking for $ac_word... " >&6; }
11092 if ${ac_cv_path_XARGS+:} false; then :
11093   $as_echo_n "(cached) " >&6
11094 else
11095   case $XARGS in
11096   [\\/]* | ?:[\\/]*)
11097   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11098   ;;
11099   *)
11100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11102 do
11103   IFS=$as_save_IFS
11104   test -z "$as_dir" && as_dir=.
11105     for ac_exec_ext in '' $ac_executable_extensions; do
11106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11107     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109     break 2
11110   fi
11111 done
11112   done
11113 IFS=$as_save_IFS
11114 
11115   ;;
11116 esac
11117 fi
11118 XARGS=$ac_cv_path_XARGS
11119 if test -n "$XARGS"; then
11120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11121 $as_echo "$XARGS" >&6; }
11122 else
11123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11125 fi
11126 
11127 
11128   test -n "$XARGS" && break
11129 done
11130 
11131   else
11132     # The variable is set, but is it from the command line or the environment?
11133 
11134     # Try to remove the string !XARGS! from our list.
11135     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11136     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11137       # If it failed, the variable was not from the command line. Ignore it,
11138       # but warn the user (except for BASH, which is always set by the calling BASH).
11139       if test "xXARGS" != xBASH; then
11140         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11141 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11142       fi
11143       # Try to locate tool using the code snippet
11144       for ac_prog in xargs
11145 do
11146   # Extract the first word of "$ac_prog", so it can be a program name with args.
11147 set dummy $ac_prog; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_path_XARGS+:} false; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   case $XARGS in
11154   [\\/]* | ?:[\\/]*)
11155   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11156   ;;
11157   *)
11158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161   IFS=$as_save_IFS
11162   test -z "$as_dir" && as_dir=.
11163     for ac_exec_ext in '' $ac_executable_extensions; do
11164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167     break 2
11168   fi
11169 done
11170   done
11171 IFS=$as_save_IFS
11172 
11173   ;;
11174 esac
11175 fi
11176 XARGS=$ac_cv_path_XARGS
11177 if test -n "$XARGS"; then
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11179 $as_echo "$XARGS" >&6; }
11180 else
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11183 fi
11184 
11185 
11186   test -n "$XARGS" && break
11187 done
11188 
11189     else
11190       # If it succeeded, then it was overridden by the user. We will use it
11191       # for the tool.
11192 
11193       # First remove it from the list of overridden variables, so we can test
11194       # for unknown variables in the end.
11195       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11196 
11197       # Check if the provided tool contains a complete path.
11198       tool_specified="$XARGS"
11199       tool_basename="${tool_specified##*/}"
11200       if test "x$tool_basename" = "x$tool_specified"; then
11201         # A command without a complete path is provided, search $PATH.
11202         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11203 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11204         # Extract the first word of "$tool_basename", so it can be a program name with args.
11205 set dummy $tool_basename; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_path_XARGS+:} false; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   case $XARGS in
11212   [\\/]* | ?:[\\/]*)
11213   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11214   ;;
11215   *)
11216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219   IFS=$as_save_IFS
11220   test -z "$as_dir" && as_dir=.
11221     for ac_exec_ext in '' $ac_executable_extensions; do
11222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225     break 2
11226   fi
11227 done
11228   done
11229 IFS=$as_save_IFS
11230 
11231   ;;
11232 esac
11233 fi
11234 XARGS=$ac_cv_path_XARGS
11235 if test -n "$XARGS"; then
11236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11237 $as_echo "$XARGS" >&6; }
11238 else
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11241 fi
11242 
11243 
11244         if test "x$XARGS" = x; then
11245           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11246         fi
11247       else
11248         # Otherwise we believe it is a complete path. Use it as it is.
11249         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11250 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11252 $as_echo_n "checking for XARGS... " >&6; }
11253         if test ! -x "$tool_specified"; then
11254           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11255 $as_echo "not found" >&6; }
11256           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11257         fi
11258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11259 $as_echo "$tool_specified" >&6; }
11260       fi
11261     fi
11262   fi
11263 
11264 
11265 
11266   if test "x$XARGS" = x; then
11267     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11268   fi
11269 
11270 
11271 
11272   # Then required tools that require some special treatment.
11273 
11274 
11275   # Publish this variable in the help.
11276 
11277 
11278   if test "x$AWK" = x; then
11279     # The variable is not set by user, try to locate tool using the code snippet
11280     for ac_prog in gawk mawk nawk awk
11281 do
11282   # Extract the first word of "$ac_prog", so it can be a program name with args.
11283 set dummy $ac_prog; ac_word=$2
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if ${ac_cv_prog_AWK+:} false; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   if test -n "$AWK"; then
11290   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11291 else
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11294 do
11295   IFS=$as_save_IFS
11296   test -z "$as_dir" && as_dir=.
11297     for ac_exec_ext in '' $ac_executable_extensions; do
11298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11299     ac_cv_prog_AWK="$ac_prog"
11300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301     break 2
11302   fi
11303 done
11304   done
11305 IFS=$as_save_IFS
11306 
11307 fi
11308 fi
11309 AWK=$ac_cv_prog_AWK
11310 if test -n "$AWK"; then
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11312 $as_echo "$AWK" >&6; }
11313 else
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11316 fi
11317 
11318 
11319   test -n "$AWK" && break
11320 done
11321 
11322   else
11323     # The variable is set, but is it from the command line or the environment?
11324 
11325     # Try to remove the string !AWK! from our list.
11326     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11327     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11328       # If it failed, the variable was not from the command line. Ignore it,
11329       # but warn the user (except for BASH, which is always set by the calling BASH).
11330       if test "xAWK" != xBASH; then
11331         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11332 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11333       fi
11334       # Try to locate tool using the code snippet
11335       for ac_prog in gawk mawk nawk awk
11336 do
11337   # Extract the first word of "$ac_prog", so it can be a program name with args.
11338 set dummy $ac_prog; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if ${ac_cv_prog_AWK+:} false; then :
11342   $as_echo_n "(cached) " >&6
11343 else
11344   if test -n "$AWK"; then
11345   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11346 else
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11349 do
11350   IFS=$as_save_IFS
11351   test -z "$as_dir" && as_dir=.
11352     for ac_exec_ext in '' $ac_executable_extensions; do
11353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354     ac_cv_prog_AWK="$ac_prog"
11355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356     break 2
11357   fi
11358 done
11359   done
11360 IFS=$as_save_IFS
11361 
11362 fi
11363 fi
11364 AWK=$ac_cv_prog_AWK
11365 if test -n "$AWK"; then
11366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11367 $as_echo "$AWK" >&6; }
11368 else
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 fi
11372 
11373 
11374   test -n "$AWK" && break
11375 done
11376 
11377     else
11378       # If it succeeded, then it was overridden by the user. We will use it
11379       # for the tool.
11380 
11381       # First remove it from the list of overridden variables, so we can test
11382       # for unknown variables in the end.
11383       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11384 
11385       # Check if the provided tool contains a complete path.
11386       tool_specified="$AWK"
11387       tool_basename="${tool_specified##*/}"
11388       if test "x$tool_basename" = "x$tool_specified"; then
11389         # A command without a complete path is provided, search $PATH.
11390         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11391 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11392         # Extract the first word of "$tool_basename", so it can be a program name with args.
11393 set dummy $tool_basename; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if ${ac_cv_path_AWK+:} false; then :
11397   $as_echo_n "(cached) " >&6
11398 else
11399   case $AWK in
11400   [\\/]* | ?:[\\/]*)
11401   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11402   ;;
11403   *)
11404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407   IFS=$as_save_IFS
11408   test -z "$as_dir" && as_dir=.
11409     for ac_exec_ext in '' $ac_executable_extensions; do
11410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413     break 2
11414   fi
11415 done
11416   done
11417 IFS=$as_save_IFS
11418 
11419   ;;
11420 esac
11421 fi
11422 AWK=$ac_cv_path_AWK
11423 if test -n "$AWK"; then
11424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11425 $as_echo "$AWK" >&6; }
11426 else
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11429 fi
11430 
11431 
11432         if test "x$AWK" = x; then
11433           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11434         fi
11435       else
11436         # Otherwise we believe it is a complete path. Use it as it is.
11437         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11438 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11440 $as_echo_n "checking for AWK... " >&6; }
11441         if test ! -x "$tool_specified"; then
11442           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11443 $as_echo "not found" >&6; }
11444           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11445         fi
11446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11447 $as_echo "$tool_specified" >&6; }
11448       fi
11449     fi
11450   fi
11451 
11452 
11453   if test "x$AWK" = x; then
11454     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11455   fi
11456 
11457 
11458 
11459 
11460   # Publish this variable in the help.
11461 
11462 
11463   if test "x$GREP" = x; then
11464     # The variable is not set by user, try to locate tool using the code snippet
11465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11467 if ${ac_cv_path_GREP+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   if test -z "$GREP"; then
11471   ac_path_GREP_found=false
11472   # Loop through the user's path and test for each of PROGNAME-LIST
11473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11475 do
11476   IFS=$as_save_IFS
11477   test -z "$as_dir" && as_dir=.
11478     for ac_prog in grep ggrep; do
11479     for ac_exec_ext in '' $ac_executable_extensions; do
11480       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11481       as_fn_executable_p "$ac_path_GREP" || continue
11482 # Check for GNU ac_path_GREP and select it if it is found.
11483   # Check for GNU $ac_path_GREP
11484 case `"$ac_path_GREP" --version 2>&1` in
11485 *GNU*)
11486   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11487 *)
11488   ac_count=0
11489   $as_echo_n 0123456789 >"conftest.in"
11490   while :
11491   do
11492     cat "conftest.in" "conftest.in" >"conftest.tmp"
11493     mv "conftest.tmp" "conftest.in"
11494     cp "conftest.in" "conftest.nl"
11495     $as_echo 'GREP' >> "conftest.nl"
11496     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11497     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11498     as_fn_arith $ac_count + 1 && ac_count=$as_val
11499     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11500       # Best one so far, save it but keep looking for a better one
11501       ac_cv_path_GREP="$ac_path_GREP"
11502       ac_path_GREP_max=$ac_count
11503     fi
11504     # 10*(2^10) chars as input seems more than enough
11505     test $ac_count -gt 10 && break
11506   done
11507   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11508 esac
11509 
11510       $ac_path_GREP_found && break 3
11511     done
11512   done
11513   done
11514 IFS=$as_save_IFS
11515   if test -z "$ac_cv_path_GREP"; then
11516     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11517   fi
11518 else
11519   ac_cv_path_GREP=$GREP
11520 fi
11521 
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11524 $as_echo "$ac_cv_path_GREP" >&6; }
11525  GREP="$ac_cv_path_GREP"
11526 
11527 
11528   else
11529     # The variable is set, but is it from the command line or the environment?
11530 
11531     # Try to remove the string !GREP! from our list.
11532     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11533     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11534       # If it failed, the variable was not from the command line. Ignore it,
11535       # but warn the user (except for BASH, which is always set by the calling BASH).
11536       if test "xGREP" != xBASH; then
11537         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11538 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11539       fi
11540       # Try to locate tool using the code snippet
11541       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11542 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11543 if ${ac_cv_path_GREP+:} false; then :
11544   $as_echo_n "(cached) " >&6
11545 else
11546   if test -z "$GREP"; then
11547   ac_path_GREP_found=false
11548   # Loop through the user's path and test for each of PROGNAME-LIST
11549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11551 do
11552   IFS=$as_save_IFS
11553   test -z "$as_dir" && as_dir=.
11554     for ac_prog in grep ggrep; do
11555     for ac_exec_ext in '' $ac_executable_extensions; do
11556       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11557       as_fn_executable_p "$ac_path_GREP" || continue
11558 # Check for GNU ac_path_GREP and select it if it is found.
11559   # Check for GNU $ac_path_GREP
11560 case `"$ac_path_GREP" --version 2>&1` in
11561 *GNU*)
11562   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11563 *)
11564   ac_count=0
11565   $as_echo_n 0123456789 >"conftest.in"
11566   while :
11567   do
11568     cat "conftest.in" "conftest.in" >"conftest.tmp"
11569     mv "conftest.tmp" "conftest.in"
11570     cp "conftest.in" "conftest.nl"
11571     $as_echo 'GREP' >> "conftest.nl"
11572     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11573     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11574     as_fn_arith $ac_count + 1 && ac_count=$as_val
11575     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11576       # Best one so far, save it but keep looking for a better one
11577       ac_cv_path_GREP="$ac_path_GREP"
11578       ac_path_GREP_max=$ac_count
11579     fi
11580     # 10*(2^10) chars as input seems more than enough
11581     test $ac_count -gt 10 && break
11582   done
11583   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11584 esac
11585 
11586       $ac_path_GREP_found && break 3
11587     done
11588   done
11589   done
11590 IFS=$as_save_IFS
11591   if test -z "$ac_cv_path_GREP"; then
11592     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11593   fi
11594 else
11595   ac_cv_path_GREP=$GREP
11596 fi
11597 
11598 fi
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11600 $as_echo "$ac_cv_path_GREP" >&6; }
11601  GREP="$ac_cv_path_GREP"
11602 
11603 
11604     else
11605       # If it succeeded, then it was overridden by the user. We will use it
11606       # for the tool.
11607 
11608       # First remove it from the list of overridden variables, so we can test
11609       # for unknown variables in the end.
11610       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11611 
11612       # Check if the provided tool contains a complete path.
11613       tool_specified="$GREP"
11614       tool_basename="${tool_specified##*/}"
11615       if test "x$tool_basename" = "x$tool_specified"; then
11616         # A command without a complete path is provided, search $PATH.
11617         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11618 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11619         # Extract the first word of "$tool_basename", so it can be a program name with args.
11620 set dummy $tool_basename; ac_word=$2
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622 $as_echo_n "checking for $ac_word... " >&6; }
11623 if ${ac_cv_path_GREP+:} false; then :
11624   $as_echo_n "(cached) " >&6
11625 else
11626   case $GREP in
11627   [\\/]* | ?:[\\/]*)
11628   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11629   ;;
11630   *)
11631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11633 do
11634   IFS=$as_save_IFS
11635   test -z "$as_dir" && as_dir=.
11636     for ac_exec_ext in '' $ac_executable_extensions; do
11637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640     break 2
11641   fi
11642 done
11643   done
11644 IFS=$as_save_IFS
11645 
11646   ;;
11647 esac
11648 fi
11649 GREP=$ac_cv_path_GREP
11650 if test -n "$GREP"; then
11651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11652 $as_echo "$GREP" >&6; }
11653 else
11654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 fi
11657 
11658 
11659         if test "x$GREP" = x; then
11660           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11661         fi
11662       else
11663         # Otherwise we believe it is a complete path. Use it as it is.
11664         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11665 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11667 $as_echo_n "checking for GREP... " >&6; }
11668         if test ! -x "$tool_specified"; then
11669           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11670 $as_echo "not found" >&6; }
11671           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11672         fi
11673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11674 $as_echo "$tool_specified" >&6; }
11675       fi
11676     fi
11677   fi
11678 
11679 
11680   if test "x$GREP" = x; then
11681     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11682   fi
11683 
11684 
11685 
11686 
11687   # Publish this variable in the help.
11688 
11689 
11690   if test "x$EGREP" = x; then
11691     # The variable is not set by user, try to locate tool using the code snippet
11692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11693 $as_echo_n "checking for egrep... " >&6; }
11694 if ${ac_cv_path_EGREP+:} false; then :
11695   $as_echo_n "(cached) " >&6
11696 else
11697   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11698    then ac_cv_path_EGREP="$GREP -E"
11699    else
11700      if test -z "$EGREP"; then
11701   ac_path_EGREP_found=false
11702   # Loop through the user's path and test for each of PROGNAME-LIST
11703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11705 do
11706   IFS=$as_save_IFS
11707   test -z "$as_dir" && as_dir=.
11708     for ac_prog in egrep; do
11709     for ac_exec_ext in '' $ac_executable_extensions; do
11710       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11711       as_fn_executable_p "$ac_path_EGREP" || continue
11712 # Check for GNU ac_path_EGREP and select it if it is found.
11713   # Check for GNU $ac_path_EGREP
11714 case `"$ac_path_EGREP" --version 2>&1` in
11715 *GNU*)
11716   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11717 *)
11718   ac_count=0
11719   $as_echo_n 0123456789 >"conftest.in"
11720   while :
11721   do
11722     cat "conftest.in" "conftest.in" >"conftest.tmp"
11723     mv "conftest.tmp" "conftest.in"
11724     cp "conftest.in" "conftest.nl"
11725     $as_echo 'EGREP' >> "conftest.nl"
11726     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11727     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11728     as_fn_arith $ac_count + 1 && ac_count=$as_val
11729     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11730       # Best one so far, save it but keep looking for a better one
11731       ac_cv_path_EGREP="$ac_path_EGREP"
11732       ac_path_EGREP_max=$ac_count
11733     fi
11734     # 10*(2^10) chars as input seems more than enough
11735     test $ac_count -gt 10 && break
11736   done
11737   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11738 esac
11739 
11740       $ac_path_EGREP_found && break 3
11741     done
11742   done
11743   done
11744 IFS=$as_save_IFS
11745   if test -z "$ac_cv_path_EGREP"; then
11746     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11747   fi
11748 else
11749   ac_cv_path_EGREP=$EGREP
11750 fi
11751 
11752    fi
11753 fi
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11755 $as_echo "$ac_cv_path_EGREP" >&6; }
11756  EGREP="$ac_cv_path_EGREP"
11757 
11758 
11759   else
11760     # The variable is set, but is it from the command line or the environment?
11761 
11762     # Try to remove the string !EGREP! from our list.
11763     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11764     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11765       # If it failed, the variable was not from the command line. Ignore it,
11766       # but warn the user (except for BASH, which is always set by the calling BASH).
11767       if test "xEGREP" != xBASH; then
11768         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11769 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11770       fi
11771       # Try to locate tool using the code snippet
11772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11773 $as_echo_n "checking for egrep... " >&6; }
11774 if ${ac_cv_path_EGREP+:} false; then :
11775   $as_echo_n "(cached) " >&6
11776 else
11777   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11778    then ac_cv_path_EGREP="$GREP -E"
11779    else
11780      if test -z "$EGREP"; then
11781   ac_path_EGREP_found=false
11782   # Loop through the user's path and test for each of PROGNAME-LIST
11783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11785 do
11786   IFS=$as_save_IFS
11787   test -z "$as_dir" && as_dir=.
11788     for ac_prog in egrep; do
11789     for ac_exec_ext in '' $ac_executable_extensions; do
11790       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11791       as_fn_executable_p "$ac_path_EGREP" || continue
11792 # Check for GNU ac_path_EGREP and select it if it is found.
11793   # Check for GNU $ac_path_EGREP
11794 case `"$ac_path_EGREP" --version 2>&1` in
11795 *GNU*)
11796   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11797 *)
11798   ac_count=0
11799   $as_echo_n 0123456789 >"conftest.in"
11800   while :
11801   do
11802     cat "conftest.in" "conftest.in" >"conftest.tmp"
11803     mv "conftest.tmp" "conftest.in"
11804     cp "conftest.in" "conftest.nl"
11805     $as_echo 'EGREP' >> "conftest.nl"
11806     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11807     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11808     as_fn_arith $ac_count + 1 && ac_count=$as_val
11809     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11810       # Best one so far, save it but keep looking for a better one
11811       ac_cv_path_EGREP="$ac_path_EGREP"
11812       ac_path_EGREP_max=$ac_count
11813     fi
11814     # 10*(2^10) chars as input seems more than enough
11815     test $ac_count -gt 10 && break
11816   done
11817   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11818 esac
11819 
11820       $ac_path_EGREP_found && break 3
11821     done
11822   done
11823   done
11824 IFS=$as_save_IFS
11825   if test -z "$ac_cv_path_EGREP"; then
11826     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11827   fi
11828 else
11829   ac_cv_path_EGREP=$EGREP
11830 fi
11831 
11832    fi
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11835 $as_echo "$ac_cv_path_EGREP" >&6; }
11836  EGREP="$ac_cv_path_EGREP"
11837 
11838 
11839     else
11840       # If it succeeded, then it was overridden by the user. We will use it
11841       # for the tool.
11842 
11843       # First remove it from the list of overridden variables, so we can test
11844       # for unknown variables in the end.
11845       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11846 
11847       # Check if the provided tool contains a complete path.
11848       tool_specified="$EGREP"
11849       tool_basename="${tool_specified##*/}"
11850       if test "x$tool_basename" = "x$tool_specified"; then
11851         # A command without a complete path is provided, search $PATH.
11852         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11853 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11854         # Extract the first word of "$tool_basename", so it can be a program name with args.
11855 set dummy $tool_basename; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_path_EGREP+:} false; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861   case $EGREP in
11862   [\\/]* | ?:[\\/]*)
11863   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11864   ;;
11865   *)
11866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11868 do
11869   IFS=$as_save_IFS
11870   test -z "$as_dir" && as_dir=.
11871     for ac_exec_ext in '' $ac_executable_extensions; do
11872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875     break 2
11876   fi
11877 done
11878   done
11879 IFS=$as_save_IFS
11880 
11881   ;;
11882 esac
11883 fi
11884 EGREP=$ac_cv_path_EGREP
11885 if test -n "$EGREP"; then
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11887 $as_echo "$EGREP" >&6; }
11888 else
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11891 fi
11892 
11893 
11894         if test "x$EGREP" = x; then
11895           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11896         fi
11897       else
11898         # Otherwise we believe it is a complete path. Use it as it is.
11899         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11900 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11902 $as_echo_n "checking for EGREP... " >&6; }
11903         if test ! -x "$tool_specified"; then
11904           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11905 $as_echo "not found" >&6; }
11906           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11907         fi
11908         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11909 $as_echo "$tool_specified" >&6; }
11910       fi
11911     fi
11912   fi
11913 
11914 
11915   if test "x$EGREP" = x; then
11916     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
11917   fi
11918 
11919 
11920 
11921 
11922   # Publish this variable in the help.
11923 
11924 
11925   if test "x$FGREP" = x; then
11926     # The variable is not set by user, try to locate tool using the code snippet
11927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11928 $as_echo_n "checking for fgrep... " >&6; }
11929 if ${ac_cv_path_FGREP+:} false; then :
11930   $as_echo_n "(cached) " >&6
11931 else
11932   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11933    then ac_cv_path_FGREP="$GREP -F"
11934    else
11935      if test -z "$FGREP"; then
11936   ac_path_FGREP_found=false
11937   # Loop through the user's path and test for each of PROGNAME-LIST
11938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11940 do
11941   IFS=$as_save_IFS
11942   test -z "$as_dir" && as_dir=.
11943     for ac_prog in fgrep; do
11944     for ac_exec_ext in '' $ac_executable_extensions; do
11945       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11946       as_fn_executable_p "$ac_path_FGREP" || continue
11947 # Check for GNU ac_path_FGREP and select it if it is found.
11948   # Check for GNU $ac_path_FGREP
11949 case `"$ac_path_FGREP" --version 2>&1` in
11950 *GNU*)
11951   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11952 *)
11953   ac_count=0
11954   $as_echo_n 0123456789 >"conftest.in"
11955   while :
11956   do
11957     cat "conftest.in" "conftest.in" >"conftest.tmp"
11958     mv "conftest.tmp" "conftest.in"
11959     cp "conftest.in" "conftest.nl"
11960     $as_echo 'FGREP' >> "conftest.nl"
11961     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11962     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11963     as_fn_arith $ac_count + 1 && ac_count=$as_val
11964     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11965       # Best one so far, save it but keep looking for a better one
11966       ac_cv_path_FGREP="$ac_path_FGREP"
11967       ac_path_FGREP_max=$ac_count
11968     fi
11969     # 10*(2^10) chars as input seems more than enough
11970     test $ac_count -gt 10 && break
11971   done
11972   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11973 esac
11974 
11975       $ac_path_FGREP_found && break 3
11976     done
11977   done
11978   done
11979 IFS=$as_save_IFS
11980   if test -z "$ac_cv_path_FGREP"; then
11981     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11982   fi
11983 else
11984   ac_cv_path_FGREP=$FGREP
11985 fi
11986 
11987    fi
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11990 $as_echo "$ac_cv_path_FGREP" >&6; }
11991  FGREP="$ac_cv_path_FGREP"
11992 
11993 
11994   else
11995     # The variable is set, but is it from the command line or the environment?
11996 
11997     # Try to remove the string !FGREP! from our list.
11998     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
11999     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12000       # If it failed, the variable was not from the command line. Ignore it,
12001       # but warn the user (except for BASH, which is always set by the calling BASH).
12002       if test "xFGREP" != xBASH; then
12003         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12004 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12005       fi
12006       # Try to locate tool using the code snippet
12007       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12008 $as_echo_n "checking for fgrep... " >&6; }
12009 if ${ac_cv_path_FGREP+:} false; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12013    then ac_cv_path_FGREP="$GREP -F"
12014    else
12015      if test -z "$FGREP"; then
12016   ac_path_FGREP_found=false
12017   # Loop through the user's path and test for each of PROGNAME-LIST
12018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12020 do
12021   IFS=$as_save_IFS
12022   test -z "$as_dir" && as_dir=.
12023     for ac_prog in fgrep; do
12024     for ac_exec_ext in '' $ac_executable_extensions; do
12025       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12026       as_fn_executable_p "$ac_path_FGREP" || continue
12027 # Check for GNU ac_path_FGREP and select it if it is found.
12028   # Check for GNU $ac_path_FGREP
12029 case `"$ac_path_FGREP" --version 2>&1` in
12030 *GNU*)
12031   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12032 *)
12033   ac_count=0
12034   $as_echo_n 0123456789 >"conftest.in"
12035   while :
12036   do
12037     cat "conftest.in" "conftest.in" >"conftest.tmp"
12038     mv "conftest.tmp" "conftest.in"
12039     cp "conftest.in" "conftest.nl"
12040     $as_echo 'FGREP' >> "conftest.nl"
12041     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12043     as_fn_arith $ac_count + 1 && ac_count=$as_val
12044     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12045       # Best one so far, save it but keep looking for a better one
12046       ac_cv_path_FGREP="$ac_path_FGREP"
12047       ac_path_FGREP_max=$ac_count
12048     fi
12049     # 10*(2^10) chars as input seems more than enough
12050     test $ac_count -gt 10 && break
12051   done
12052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12053 esac
12054 
12055       $ac_path_FGREP_found && break 3
12056     done
12057   done
12058   done
12059 IFS=$as_save_IFS
12060   if test -z "$ac_cv_path_FGREP"; then
12061     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12062   fi
12063 else
12064   ac_cv_path_FGREP=$FGREP
12065 fi
12066 
12067    fi
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12070 $as_echo "$ac_cv_path_FGREP" >&6; }
12071  FGREP="$ac_cv_path_FGREP"
12072 
12073 
12074     else
12075       # If it succeeded, then it was overridden by the user. We will use it
12076       # for the tool.
12077 
12078       # First remove it from the list of overridden variables, so we can test
12079       # for unknown variables in the end.
12080       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12081 
12082       # Check if the provided tool contains a complete path.
12083       tool_specified="$FGREP"
12084       tool_basename="${tool_specified##*/}"
12085       if test "x$tool_basename" = "x$tool_specified"; then
12086         # A command without a complete path is provided, search $PATH.
12087         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12088 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12089         # Extract the first word of "$tool_basename", so it can be a program name with args.
12090 set dummy $tool_basename; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if ${ac_cv_path_FGREP+:} false; then :
12094   $as_echo_n "(cached) " >&6
12095 else
12096   case $FGREP in
12097   [\\/]* | ?:[\\/]*)
12098   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12099   ;;
12100   *)
12101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12103 do
12104   IFS=$as_save_IFS
12105   test -z "$as_dir" && as_dir=.
12106     for ac_exec_ext in '' $ac_executable_extensions; do
12107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110     break 2
12111   fi
12112 done
12113   done
12114 IFS=$as_save_IFS
12115 
12116   ;;
12117 esac
12118 fi
12119 FGREP=$ac_cv_path_FGREP
12120 if test -n "$FGREP"; then
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12122 $as_echo "$FGREP" >&6; }
12123 else
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126 fi
12127 
12128 
12129         if test "x$FGREP" = x; then
12130           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12131         fi
12132       else
12133         # Otherwise we believe it is a complete path. Use it as it is.
12134         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12135 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12137 $as_echo_n "checking for FGREP... " >&6; }
12138         if test ! -x "$tool_specified"; then
12139           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12140 $as_echo "not found" >&6; }
12141           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12142         fi
12143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12144 $as_echo "$tool_specified" >&6; }
12145       fi
12146     fi
12147   fi
12148 
12149 
12150   if test "x$FGREP" = x; then
12151     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12152   fi
12153 
12154 
12155 
12156 
12157   # Publish this variable in the help.
12158 
12159 
12160   if test "x$SED" = x; then
12161     # The variable is not set by user, try to locate tool using the code snippet
12162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12163 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12164 if ${ac_cv_path_SED+:} false; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12168      for ac_i in 1 2 3 4 5 6 7; do
12169        ac_script="$ac_script$as_nl$ac_script"
12170      done
12171      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12172      { ac_script=; unset ac_script;}
12173      if test -z "$SED"; then
12174   ac_path_SED_found=false
12175   # Loop through the user's path and test for each of PROGNAME-LIST
12176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH
12178 do
12179   IFS=$as_save_IFS
12180   test -z "$as_dir" && as_dir=.
12181     for ac_prog in sed gsed; do
12182     for ac_exec_ext in '' $ac_executable_extensions; do
12183       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12184       as_fn_executable_p "$ac_path_SED" || continue
12185 # Check for GNU ac_path_SED and select it if it is found.
12186   # Check for GNU $ac_path_SED
12187 case `"$ac_path_SED" --version 2>&1` in
12188 *GNU*)
12189   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12190 *)
12191   ac_count=0
12192   $as_echo_n 0123456789 >"conftest.in"
12193   while :
12194   do
12195     cat "conftest.in" "conftest.in" >"conftest.tmp"
12196     mv "conftest.tmp" "conftest.in"
12197     cp "conftest.in" "conftest.nl"
12198     $as_echo '' >> "conftest.nl"
12199     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12200     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12201     as_fn_arith $ac_count + 1 && ac_count=$as_val
12202     if test $ac_count -gt ${ac_path_SED_max-0}; then
12203       # Best one so far, save it but keep looking for a better one
12204       ac_cv_path_SED="$ac_path_SED"
12205       ac_path_SED_max=$ac_count
12206     fi
12207     # 10*(2^10) chars as input seems more than enough
12208     test $ac_count -gt 10 && break
12209   done
12210   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12211 esac
12212 
12213       $ac_path_SED_found && break 3
12214     done
12215   done
12216   done
12217 IFS=$as_save_IFS
12218   if test -z "$ac_cv_path_SED"; then
12219     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12220   fi
12221 else
12222   ac_cv_path_SED=$SED
12223 fi
12224 
12225 fi
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12227 $as_echo "$ac_cv_path_SED" >&6; }
12228  SED="$ac_cv_path_SED"
12229   rm -f conftest.sed
12230 
12231   else
12232     # The variable is set, but is it from the command line or the environment?
12233 
12234     # Try to remove the string !SED! from our list.
12235     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12236     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12237       # If it failed, the variable was not from the command line. Ignore it,
12238       # but warn the user (except for BASH, which is always set by the calling BASH).
12239       if test "xSED" != xBASH; then
12240         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12241 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12242       fi
12243       # Try to locate tool using the code snippet
12244       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12245 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12246 if ${ac_cv_path_SED+:} false; then :
12247   $as_echo_n "(cached) " >&6
12248 else
12249             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12250      for ac_i in 1 2 3 4 5 6 7; do
12251        ac_script="$ac_script$as_nl$ac_script"
12252      done
12253      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12254      { ac_script=; unset ac_script;}
12255      if test -z "$SED"; then
12256   ac_path_SED_found=false
12257   # Loop through the user's path and test for each of PROGNAME-LIST
12258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12260 do
12261   IFS=$as_save_IFS
12262   test -z "$as_dir" && as_dir=.
12263     for ac_prog in sed gsed; do
12264     for ac_exec_ext in '' $ac_executable_extensions; do
12265       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12266       as_fn_executable_p "$ac_path_SED" || continue
12267 # Check for GNU ac_path_SED and select it if it is found.
12268   # Check for GNU $ac_path_SED
12269 case `"$ac_path_SED" --version 2>&1` in
12270 *GNU*)
12271   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12272 *)
12273   ac_count=0
12274   $as_echo_n 0123456789 >"conftest.in"
12275   while :
12276   do
12277     cat "conftest.in" "conftest.in" >"conftest.tmp"
12278     mv "conftest.tmp" "conftest.in"
12279     cp "conftest.in" "conftest.nl"
12280     $as_echo '' >> "conftest.nl"
12281     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12282     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12283     as_fn_arith $ac_count + 1 && ac_count=$as_val
12284     if test $ac_count -gt ${ac_path_SED_max-0}; then
12285       # Best one so far, save it but keep looking for a better one
12286       ac_cv_path_SED="$ac_path_SED"
12287       ac_path_SED_max=$ac_count
12288     fi
12289     # 10*(2^10) chars as input seems more than enough
12290     test $ac_count -gt 10 && break
12291   done
12292   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12293 esac
12294 
12295       $ac_path_SED_found && break 3
12296     done
12297   done
12298   done
12299 IFS=$as_save_IFS
12300   if test -z "$ac_cv_path_SED"; then
12301     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12302   fi
12303 else
12304   ac_cv_path_SED=$SED
12305 fi
12306 
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12309 $as_echo "$ac_cv_path_SED" >&6; }
12310  SED="$ac_cv_path_SED"
12311   rm -f conftest.sed
12312 
12313     else
12314       # If it succeeded, then it was overridden by the user. We will use it
12315       # for the tool.
12316 
12317       # First remove it from the list of overridden variables, so we can test
12318       # for unknown variables in the end.
12319       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12320 
12321       # Check if the provided tool contains a complete path.
12322       tool_specified="$SED"
12323       tool_basename="${tool_specified##*/}"
12324       if test "x$tool_basename" = "x$tool_specified"; then
12325         # A command without a complete path is provided, search $PATH.
12326         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12327 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12328         # Extract the first word of "$tool_basename", so it can be a program name with args.
12329 set dummy $tool_basename; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if ${ac_cv_path_SED+:} false; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335   case $SED in
12336   [\\/]* | ?:[\\/]*)
12337   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12338   ;;
12339   *)
12340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12342 do
12343   IFS=$as_save_IFS
12344   test -z "$as_dir" && as_dir=.
12345     for ac_exec_ext in '' $ac_executable_extensions; do
12346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349     break 2
12350   fi
12351 done
12352   done
12353 IFS=$as_save_IFS
12354 
12355   ;;
12356 esac
12357 fi
12358 SED=$ac_cv_path_SED
12359 if test -n "$SED"; then
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12361 $as_echo "$SED" >&6; }
12362 else
12363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12365 fi
12366 
12367 
12368         if test "x$SED" = x; then
12369           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12370         fi
12371       else
12372         # Otherwise we believe it is a complete path. Use it as it is.
12373         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12374 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12375         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12376 $as_echo_n "checking for SED... " >&6; }
12377         if test ! -x "$tool_specified"; then
12378           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12379 $as_echo "not found" >&6; }
12380           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12381         fi
12382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12383 $as_echo "$tool_specified" >&6; }
12384       fi
12385     fi
12386   fi
12387 
12388 
12389   if test "x$SED" = x; then
12390     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12391   fi
12392 
12393 
12394 
12395   # Always force rm.
12396   RM="$RM -f"
12397 
12398   # pwd behaves differently on various platforms and some don't support the -L flag.
12399   # Always use the bash builtin pwd to get uniform behavior.
12400   THEPWDCMD=pwd
12401 
12402   # These are not required on all platforms
12403 
12404 
12405   # Publish this variable in the help.
12406 
12407 
12408   if test "x$CYGPATH" = x; then
12409     # The variable is not set by user, try to locate tool using the code snippet
12410     for ac_prog in cygpath
12411 do
12412   # Extract the first word of "$ac_prog", so it can be a program name with args.
12413 set dummy $ac_prog; ac_word=$2
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415 $as_echo_n "checking for $ac_word... " >&6; }
12416 if ${ac_cv_path_CYGPATH+:} false; then :
12417   $as_echo_n "(cached) " >&6
12418 else
12419   case $CYGPATH in
12420   [\\/]* | ?:[\\/]*)
12421   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12422   ;;
12423   *)
12424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425 for as_dir in $PATH
12426 do
12427   IFS=$as_save_IFS
12428   test -z "$as_dir" && as_dir=.
12429     for ac_exec_ext in '' $ac_executable_extensions; do
12430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12431     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433     break 2
12434   fi
12435 done
12436   done
12437 IFS=$as_save_IFS
12438 
12439   ;;
12440 esac
12441 fi
12442 CYGPATH=$ac_cv_path_CYGPATH
12443 if test -n "$CYGPATH"; then
12444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12445 $as_echo "$CYGPATH" >&6; }
12446 else
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449 fi
12450 
12451 
12452   test -n "$CYGPATH" && break
12453 done
12454 
12455   else
12456     # The variable is set, but is it from the command line or the environment?
12457 
12458     # Try to remove the string !CYGPATH! from our list.
12459     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12460     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12461       # If it failed, the variable was not from the command line. Ignore it,
12462       # but warn the user (except for BASH, which is always set by the calling BASH).
12463       if test "xCYGPATH" != xBASH; then
12464         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12465 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12466       fi
12467       # Try to locate tool using the code snippet
12468       for ac_prog in cygpath
12469 do
12470   # Extract the first word of "$ac_prog", so it can be a program name with args.
12471 set dummy $ac_prog; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_path_CYGPATH+:} false; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   case $CYGPATH in
12478   [\\/]* | ?:[\\/]*)
12479   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12480   ;;
12481   *)
12482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12484 do
12485   IFS=$as_save_IFS
12486   test -z "$as_dir" && as_dir=.
12487     for ac_exec_ext in '' $ac_executable_extensions; do
12488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491     break 2
12492   fi
12493 done
12494   done
12495 IFS=$as_save_IFS
12496 
12497   ;;
12498 esac
12499 fi
12500 CYGPATH=$ac_cv_path_CYGPATH
12501 if test -n "$CYGPATH"; then
12502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12503 $as_echo "$CYGPATH" >&6; }
12504 else
12505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508 
12509 
12510   test -n "$CYGPATH" && break
12511 done
12512 
12513     else
12514       # If it succeeded, then it was overridden by the user. We will use it
12515       # for the tool.
12516 
12517       # First remove it from the list of overridden variables, so we can test
12518       # for unknown variables in the end.
12519       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12520 
12521       # Check if the provided tool contains a complete path.
12522       tool_specified="$CYGPATH"
12523       tool_basename="${tool_specified##*/}"
12524       if test "x$tool_basename" = "x$tool_specified"; then
12525         # A command without a complete path is provided, search $PATH.
12526         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12527 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12528         # Extract the first word of "$tool_basename", so it can be a program name with args.
12529 set dummy $tool_basename; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_path_CYGPATH+:} false; then :
12533   $as_echo_n "(cached) " >&6
12534 else
12535   case $CYGPATH in
12536   [\\/]* | ?:[\\/]*)
12537   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12538   ;;
12539   *)
12540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12542 do
12543   IFS=$as_save_IFS
12544   test -z "$as_dir" && as_dir=.
12545     for ac_exec_ext in '' $ac_executable_extensions; do
12546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549     break 2
12550   fi
12551 done
12552   done
12553 IFS=$as_save_IFS
12554 
12555   ;;
12556 esac
12557 fi
12558 CYGPATH=$ac_cv_path_CYGPATH
12559 if test -n "$CYGPATH"; then
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12561 $as_echo "$CYGPATH" >&6; }
12562 else
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12565 fi
12566 
12567 
12568         if test "x$CYGPATH" = x; then
12569           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12570         fi
12571       else
12572         # Otherwise we believe it is a complete path. Use it as it is.
12573         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12574 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12576 $as_echo_n "checking for CYGPATH... " >&6; }
12577         if test ! -x "$tool_specified"; then
12578           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12579 $as_echo "not found" >&6; }
12580           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12581         fi
12582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12583 $as_echo "$tool_specified" >&6; }
12584       fi
12585     fi
12586   fi
12587 
12588 
12589 
12590 
12591   # Publish this variable in the help.
12592 
12593 
12594   if test "x$READLINK" = x; then
12595     # The variable is not set by user, try to locate tool using the code snippet
12596     for ac_prog in greadlink readlink
12597 do
12598   # Extract the first word of "$ac_prog", so it can be a program name with args.
12599 set dummy $ac_prog; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if ${ac_cv_path_READLINK+:} false; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605   case $READLINK in
12606   [\\/]* | ?:[\\/]*)
12607   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12608   ;;
12609   *)
12610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12612 do
12613   IFS=$as_save_IFS
12614   test -z "$as_dir" && as_dir=.
12615     for ac_exec_ext in '' $ac_executable_extensions; do
12616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12617     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619     break 2
12620   fi
12621 done
12622   done
12623 IFS=$as_save_IFS
12624 
12625   ;;
12626 esac
12627 fi
12628 READLINK=$ac_cv_path_READLINK
12629 if test -n "$READLINK"; then
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12631 $as_echo "$READLINK" >&6; }
12632 else
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 fi
12636 
12637 
12638   test -n "$READLINK" && break
12639 done
12640 
12641   else
12642     # The variable is set, but is it from the command line or the environment?
12643 
12644     # Try to remove the string !READLINK! from our list.
12645     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12646     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12647       # If it failed, the variable was not from the command line. Ignore it,
12648       # but warn the user (except for BASH, which is always set by the calling BASH).
12649       if test "xREADLINK" != xBASH; then
12650         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12651 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12652       fi
12653       # Try to locate tool using the code snippet
12654       for ac_prog in greadlink readlink
12655 do
12656   # Extract the first word of "$ac_prog", so it can be a program name with args.
12657 set dummy $ac_prog; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if ${ac_cv_path_READLINK+:} false; then :
12661   $as_echo_n "(cached) " >&6
12662 else
12663   case $READLINK in
12664   [\\/]* | ?:[\\/]*)
12665   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12666   ;;
12667   *)
12668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12670 do
12671   IFS=$as_save_IFS
12672   test -z "$as_dir" && as_dir=.
12673     for ac_exec_ext in '' $ac_executable_extensions; do
12674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12675     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677     break 2
12678   fi
12679 done
12680   done
12681 IFS=$as_save_IFS
12682 
12683   ;;
12684 esac
12685 fi
12686 READLINK=$ac_cv_path_READLINK
12687 if test -n "$READLINK"; then
12688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12689 $as_echo "$READLINK" >&6; }
12690 else
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12693 fi
12694 
12695 
12696   test -n "$READLINK" && break
12697 done
12698 
12699     else
12700       # If it succeeded, then it was overridden by the user. We will use it
12701       # for the tool.
12702 
12703       # First remove it from the list of overridden variables, so we can test
12704       # for unknown variables in the end.
12705       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12706 
12707       # Check if the provided tool contains a complete path.
12708       tool_specified="$READLINK"
12709       tool_basename="${tool_specified##*/}"
12710       if test "x$tool_basename" = "x$tool_specified"; then
12711         # A command without a complete path is provided, search $PATH.
12712         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12713 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12714         # Extract the first word of "$tool_basename", so it can be a program name with args.
12715 set dummy $tool_basename; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717 $as_echo_n "checking for $ac_word... " >&6; }
12718 if ${ac_cv_path_READLINK+:} false; then :
12719   $as_echo_n "(cached) " >&6
12720 else
12721   case $READLINK in
12722   [\\/]* | ?:[\\/]*)
12723   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12724   ;;
12725   *)
12726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729   IFS=$as_save_IFS
12730   test -z "$as_dir" && as_dir=.
12731     for ac_exec_ext in '' $ac_executable_extensions; do
12732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735     break 2
12736   fi
12737 done
12738   done
12739 IFS=$as_save_IFS
12740 
12741   ;;
12742 esac
12743 fi
12744 READLINK=$ac_cv_path_READLINK
12745 if test -n "$READLINK"; then
12746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12747 $as_echo "$READLINK" >&6; }
12748 else
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752 
12753 
12754         if test "x$READLINK" = x; then
12755           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12756         fi
12757       else
12758         # Otherwise we believe it is a complete path. Use it as it is.
12759         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12760 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12761         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12762 $as_echo_n "checking for READLINK... " >&6; }
12763         if test ! -x "$tool_specified"; then
12764           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12765 $as_echo "not found" >&6; }
12766           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12767         fi
12768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12769 $as_echo "$tool_specified" >&6; }
12770       fi
12771     fi
12772   fi
12773 
12774 
12775 
12776 
12777   # Publish this variable in the help.
12778 
12779 
12780   if test "x$DF" = x; then
12781     # The variable is not set by user, try to locate tool using the code snippet
12782     for ac_prog in df
12783 do
12784   # Extract the first word of "$ac_prog", so it can be a program name with args.
12785 set dummy $ac_prog; ac_word=$2
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787 $as_echo_n "checking for $ac_word... " >&6; }
12788 if ${ac_cv_path_DF+:} false; then :
12789   $as_echo_n "(cached) " >&6
12790 else
12791   case $DF in
12792   [\\/]* | ?:[\\/]*)
12793   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12794   ;;
12795   *)
12796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12798 do
12799   IFS=$as_save_IFS
12800   test -z "$as_dir" && as_dir=.
12801     for ac_exec_ext in '' $ac_executable_extensions; do
12802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12803     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12805     break 2
12806   fi
12807 done
12808   done
12809 IFS=$as_save_IFS
12810 
12811   ;;
12812 esac
12813 fi
12814 DF=$ac_cv_path_DF
12815 if test -n "$DF"; then
12816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12817 $as_echo "$DF" >&6; }
12818 else
12819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12821 fi
12822 
12823 
12824   test -n "$DF" && break
12825 done
12826 
12827   else
12828     # The variable is set, but is it from the command line or the environment?
12829 
12830     # Try to remove the string !DF! from our list.
12831     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12832     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12833       # If it failed, the variable was not from the command line. Ignore it,
12834       # but warn the user (except for BASH, which is always set by the calling BASH).
12835       if test "xDF" != xBASH; then
12836         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12837 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12838       fi
12839       # Try to locate tool using the code snippet
12840       for ac_prog in df
12841 do
12842   # Extract the first word of "$ac_prog", so it can be a program name with args.
12843 set dummy $ac_prog; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if ${ac_cv_path_DF+:} false; then :
12847   $as_echo_n "(cached) " >&6
12848 else
12849   case $DF in
12850   [\\/]* | ?:[\\/]*)
12851   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12852   ;;
12853   *)
12854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12856 do
12857   IFS=$as_save_IFS
12858   test -z "$as_dir" && as_dir=.
12859     for ac_exec_ext in '' $ac_executable_extensions; do
12860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863     break 2
12864   fi
12865 done
12866   done
12867 IFS=$as_save_IFS
12868 
12869   ;;
12870 esac
12871 fi
12872 DF=$ac_cv_path_DF
12873 if test -n "$DF"; then
12874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12875 $as_echo "$DF" >&6; }
12876 else
12877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12879 fi
12880 
12881 
12882   test -n "$DF" && break
12883 done
12884 
12885     else
12886       # If it succeeded, then it was overridden by the user. We will use it
12887       # for the tool.
12888 
12889       # First remove it from the list of overridden variables, so we can test
12890       # for unknown variables in the end.
12891       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12892 
12893       # Check if the provided tool contains a complete path.
12894       tool_specified="$DF"
12895       tool_basename="${tool_specified##*/}"
12896       if test "x$tool_basename" = "x$tool_specified"; then
12897         # A command without a complete path is provided, search $PATH.
12898         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12899 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12900         # Extract the first word of "$tool_basename", so it can be a program name with args.
12901 set dummy $tool_basename; ac_word=$2
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12903 $as_echo_n "checking for $ac_word... " >&6; }
12904 if ${ac_cv_path_DF+:} false; then :
12905   $as_echo_n "(cached) " >&6
12906 else
12907   case $DF in
12908   [\\/]* | ?:[\\/]*)
12909   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12910   ;;
12911   *)
12912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 for as_dir in $PATH
12914 do
12915   IFS=$as_save_IFS
12916   test -z "$as_dir" && as_dir=.
12917     for ac_exec_ext in '' $ac_executable_extensions; do
12918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12919     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921     break 2
12922   fi
12923 done
12924   done
12925 IFS=$as_save_IFS
12926 
12927   ;;
12928 esac
12929 fi
12930 DF=$ac_cv_path_DF
12931 if test -n "$DF"; then
12932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12933 $as_echo "$DF" >&6; }
12934 else
12935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937 fi
12938 
12939 
12940         if test "x$DF" = x; then
12941           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12942         fi
12943       else
12944         # Otherwise we believe it is a complete path. Use it as it is.
12945         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
12946 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
12947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
12948 $as_echo_n "checking for DF... " >&6; }
12949         if test ! -x "$tool_specified"; then
12950           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12951 $as_echo "not found" >&6; }
12952           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
12953         fi
12954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12955 $as_echo "$tool_specified" >&6; }
12956       fi
12957     fi
12958   fi
12959 
12960 
12961 
12962 
12963   # Publish this variable in the help.
12964 
12965 
12966   if test "x$SETFILE" = x; then
12967     # The variable is not set by user, try to locate tool using the code snippet
12968     for ac_prog in SetFile
12969 do
12970   # Extract the first word of "$ac_prog", so it can be a program name with args.
12971 set dummy $ac_prog; ac_word=$2
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12973 $as_echo_n "checking for $ac_word... " >&6; }
12974 if ${ac_cv_path_SETFILE+:} false; then :
12975   $as_echo_n "(cached) " >&6
12976 else
12977   case $SETFILE in
12978   [\\/]* | ?:[\\/]*)
12979   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
12980   ;;
12981   *)
12982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12984 do
12985   IFS=$as_save_IFS
12986   test -z "$as_dir" && as_dir=.
12987     for ac_exec_ext in '' $ac_executable_extensions; do
12988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12989     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
12990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12991     break 2
12992   fi
12993 done
12994   done
12995 IFS=$as_save_IFS
12996 
12997   ;;
12998 esac
12999 fi
13000 SETFILE=$ac_cv_path_SETFILE
13001 if test -n "$SETFILE"; then
13002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13003 $as_echo "$SETFILE" >&6; }
13004 else
13005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13007 fi
13008 
13009 
13010   test -n "$SETFILE" && break
13011 done
13012 
13013   else
13014     # The variable is set, but is it from the command line or the environment?
13015 
13016     # Try to remove the string !SETFILE! from our list.
13017     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13018     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13019       # If it failed, the variable was not from the command line. Ignore it,
13020       # but warn the user (except for BASH, which is always set by the calling BASH).
13021       if test "xSETFILE" != xBASH; then
13022         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13023 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13024       fi
13025       # Try to locate tool using the code snippet
13026       for ac_prog in SetFile
13027 do
13028   # Extract the first word of "$ac_prog", so it can be a program name with args.
13029 set dummy $ac_prog; ac_word=$2
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13031 $as_echo_n "checking for $ac_word... " >&6; }
13032 if ${ac_cv_path_SETFILE+:} false; then :
13033   $as_echo_n "(cached) " >&6
13034 else
13035   case $SETFILE in
13036   [\\/]* | ?:[\\/]*)
13037   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13038   ;;
13039   *)
13040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041 for as_dir in $PATH
13042 do
13043   IFS=$as_save_IFS
13044   test -z "$as_dir" && as_dir=.
13045     for ac_exec_ext in '' $ac_executable_extensions; do
13046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13047     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13049     break 2
13050   fi
13051 done
13052   done
13053 IFS=$as_save_IFS
13054 
13055   ;;
13056 esac
13057 fi
13058 SETFILE=$ac_cv_path_SETFILE
13059 if test -n "$SETFILE"; then
13060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13061 $as_echo "$SETFILE" >&6; }
13062 else
13063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13065 fi
13066 
13067 
13068   test -n "$SETFILE" && break
13069 done
13070 
13071     else
13072       # If it succeeded, then it was overridden by the user. We will use it
13073       # for the tool.
13074 
13075       # First remove it from the list of overridden variables, so we can test
13076       # for unknown variables in the end.
13077       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13078 
13079       # Check if the provided tool contains a complete path.
13080       tool_specified="$SETFILE"
13081       tool_basename="${tool_specified##*/}"
13082       if test "x$tool_basename" = "x$tool_specified"; then
13083         # A command without a complete path is provided, search $PATH.
13084         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13085 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13086         # Extract the first word of "$tool_basename", so it can be a program name with args.
13087 set dummy $tool_basename; ac_word=$2
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089 $as_echo_n "checking for $ac_word... " >&6; }
13090 if ${ac_cv_path_SETFILE+:} false; then :
13091   $as_echo_n "(cached) " >&6
13092 else
13093   case $SETFILE in
13094   [\\/]* | ?:[\\/]*)
13095   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13096   ;;
13097   *)
13098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13100 do
13101   IFS=$as_save_IFS
13102   test -z "$as_dir" && as_dir=.
13103     for ac_exec_ext in '' $ac_executable_extensions; do
13104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107     break 2
13108   fi
13109 done
13110   done
13111 IFS=$as_save_IFS
13112 
13113   ;;
13114 esac
13115 fi
13116 SETFILE=$ac_cv_path_SETFILE
13117 if test -n "$SETFILE"; then
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13119 $as_echo "$SETFILE" >&6; }
13120 else
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13123 fi
13124 
13125 
13126         if test "x$SETFILE" = x; then
13127           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13128         fi
13129       else
13130         # Otherwise we believe it is a complete path. Use it as it is.
13131         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13132 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13134 $as_echo_n "checking for SETFILE... " >&6; }
13135         if test ! -x "$tool_specified"; then
13136           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13137 $as_echo "not found" >&6; }
13138           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13139         fi
13140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13141 $as_echo "$tool_specified" >&6; }
13142       fi
13143     fi
13144   fi
13145 
13146 
13147 
13148 
13149 # Now we can determine OpenJDK build and target platforms. This is required to
13150 # have early on.
13151 # Make sure we can run config.sub.
13152 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13153   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13154 
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13156 $as_echo_n "checking build system type... " >&6; }
13157 if ${ac_cv_build+:} false; then :
13158   $as_echo_n "(cached) " >&6
13159 else
13160   ac_build_alias=$build_alias
13161 test "x$ac_build_alias" = x &&
13162   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13163 test "x$ac_build_alias" = x &&
13164   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13166   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13167 
13168 fi
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13170 $as_echo "$ac_cv_build" >&6; }
13171 case $ac_cv_build in
13172 *-*-*) ;;
13173 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13174 esac
13175 build=$ac_cv_build
13176 ac_save_IFS=$IFS; IFS='-'
13177 set x $ac_cv_build
13178 shift
13179 build_cpu=$1
13180 build_vendor=$2
13181 shift; shift
13182 # Remember, the first character of IFS is used to create $*,
13183 # except with old shells:
13184 build_os=$*
13185 IFS=$ac_save_IFS
13186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13187 
13188 
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13190 $as_echo_n "checking host system type... " >&6; }
13191 if ${ac_cv_host+:} false; then :
13192   $as_echo_n "(cached) " >&6
13193 else
13194   if test "x$host_alias" = x; then
13195   ac_cv_host=$ac_cv_build
13196 else
13197   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13198     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13199 fi
13200 
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13203 $as_echo "$ac_cv_host" >&6; }
13204 case $ac_cv_host in
13205 *-*-*) ;;
13206 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13207 esac
13208 host=$ac_cv_host
13209 ac_save_IFS=$IFS; IFS='-'
13210 set x $ac_cv_host
13211 shift
13212 host_cpu=$1
13213 host_vendor=$2
13214 shift; shift
13215 # Remember, the first character of IFS is used to create $*,
13216 # except with old shells:
13217 host_os=$*
13218 IFS=$ac_save_IFS
13219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13220 
13221 
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13223 $as_echo_n "checking target system type... " >&6; }
13224 if ${ac_cv_target+:} false; then :
13225   $as_echo_n "(cached) " >&6
13226 else
13227   if test "x$target_alias" = x; then
13228   ac_cv_target=$ac_cv_host
13229 else
13230   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13231     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13232 fi
13233 
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13236 $as_echo "$ac_cv_target" >&6; }
13237 case $ac_cv_target in
13238 *-*-*) ;;
13239 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13240 esac
13241 target=$ac_cv_target
13242 ac_save_IFS=$IFS; IFS='-'
13243 set x $ac_cv_target
13244 shift
13245 target_cpu=$1
13246 target_vendor=$2
13247 shift; shift
13248 # Remember, the first character of IFS is used to create $*,
13249 # except with old shells:
13250 target_os=$*
13251 IFS=$ac_save_IFS
13252 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13253 
13254 
13255 # The aliases save the names the user supplied, while $host etc.
13256 # will get canonicalized.
13257 test -n "$target_alias" &&
13258   test "$program_prefix$program_suffix$program_transform_name" = \
13259     NONENONEs,x,x, &&
13260   program_prefix=${target_alias}-
13261 
13262   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13263   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13264   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13265   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13266   # to use the configure naming style.
13267 
13268 
13269 
13270 
13271 
13272   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13273   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13274   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13275   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13276   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13277   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13278 
13279 
13280 
13281   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13282 
13283   case "$build_os" in
13284     *linux*)
13285       VAR_OS=linux
13286       VAR_OS_API=posix
13287       VAR_OS_ENV=linux
13288       ;;
13289     *solaris*)
13290       VAR_OS=solaris
13291       VAR_OS_API=posix
13292       VAR_OS_ENV=solaris
13293       ;;
13294     *darwin*)
13295       VAR_OS=macosx
13296       VAR_OS_API=posix
13297       VAR_OS_ENV=macosx
13298       ;;
13299     *bsd*)
13300       VAR_OS=bsd
13301       VAR_OS_API=posix
13302       VAR_OS_ENV=bsd
13303       ;;
13304     *cygwin*)
13305       VAR_OS=windows
13306       VAR_OS_API=winapi
13307       VAR_OS_ENV=windows.cygwin
13308       ;;
13309     *mingw*)
13310       VAR_OS=windows
13311       VAR_OS_API=winapi
13312       VAR_OS_ENV=windows.msys
13313       ;;
13314     *aix*)
13315       VAR_OS=aix
13316       VAR_OS_API=posix
13317       VAR_OS_ENV=aix
13318       ;;
13319     *)
13320       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13321       ;;
13322   esac
13323 
13324 
13325   # First argument is the cpu name from the trip/quad
13326   case "$build_cpu" in
13327     x86_64)
13328       VAR_CPU=x86_64
13329       VAR_CPU_ARCH=x86
13330       VAR_CPU_BITS=64
13331       VAR_CPU_ENDIAN=little
13332       ;;
13333     i?86)
13334       VAR_CPU=x86
13335       VAR_CPU_ARCH=x86
13336       VAR_CPU_BITS=32
13337       VAR_CPU_ENDIAN=little
13338       ;;
13339     arm*)
13340       VAR_CPU=arm
13341       VAR_CPU_ARCH=arm
13342       VAR_CPU_BITS=32
13343       VAR_CPU_ENDIAN=little
13344       ;;
13345     powerpc)
13346       VAR_CPU=ppc
13347       VAR_CPU_ARCH=ppc
13348       VAR_CPU_BITS=32
13349       VAR_CPU_ENDIAN=big
13350       ;;
13351     powerpc64)
13352       VAR_CPU=ppc64
13353       VAR_CPU_ARCH=ppc
13354       VAR_CPU_BITS=64
13355       VAR_CPU_ENDIAN=big
13356       ;;
13357     s390)
13358       VAR_CPU=s390
13359       VAR_CPU_ARCH=s390
13360       VAR_CPU_BITS=32
13361       VAR_CPU_ENDIAN=big
13362       ;;
13363     s390x)
13364       VAR_CPU=s390x
13365       VAR_CPU_ARCH=s390
13366       VAR_CPU_BITS=64
13367       VAR_CPU_ENDIAN=big
13368       ;;
13369     sparc)
13370       VAR_CPU=sparc
13371       VAR_CPU_ARCH=sparc
13372       VAR_CPU_BITS=32
13373       VAR_CPU_ENDIAN=big
13374       ;;
13375     sparcv9)
13376       VAR_CPU=sparcv9
13377       VAR_CPU_ARCH=sparc
13378       VAR_CPU_BITS=64
13379       VAR_CPU_ENDIAN=big
13380       ;;
13381     *)
13382       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13383       ;;
13384   esac
13385 
13386   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13387   OPENJDK_BUILD_OS="$VAR_OS"
13388   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13389   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13390   OPENJDK_BUILD_CPU="$VAR_CPU"
13391   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13392   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13393   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13394 
13395 
13396 
13397 
13398 
13399 
13400 
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13402 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13404 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13405 
13406   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13407 
13408   case "$host_os" in
13409     *linux*)
13410       VAR_OS=linux
13411       VAR_OS_API=posix
13412       VAR_OS_ENV=linux
13413       ;;
13414     *solaris*)
13415       VAR_OS=solaris
13416       VAR_OS_API=posix
13417       VAR_OS_ENV=solaris
13418       ;;
13419     *darwin*)
13420       VAR_OS=macosx
13421       VAR_OS_API=posix
13422       VAR_OS_ENV=macosx
13423       ;;
13424     *bsd*)
13425       VAR_OS=bsd
13426       VAR_OS_API=posix
13427       VAR_OS_ENV=bsd
13428       ;;
13429     *cygwin*)
13430       VAR_OS=windows
13431       VAR_OS_API=winapi
13432       VAR_OS_ENV=windows.cygwin
13433       ;;
13434     *mingw*)
13435       VAR_OS=windows
13436       VAR_OS_API=winapi
13437       VAR_OS_ENV=windows.msys
13438       ;;
13439     *aix*)
13440       VAR_OS=aix
13441       VAR_OS_API=posix
13442       VAR_OS_ENV=aix
13443       ;;
13444     *)
13445       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13446       ;;
13447   esac
13448 
13449 
13450   # First argument is the cpu name from the trip/quad
13451   case "$host_cpu" in
13452     x86_64)
13453       VAR_CPU=x86_64
13454       VAR_CPU_ARCH=x86
13455       VAR_CPU_BITS=64
13456       VAR_CPU_ENDIAN=little
13457       ;;
13458     i?86)
13459       VAR_CPU=x86
13460       VAR_CPU_ARCH=x86
13461       VAR_CPU_BITS=32
13462       VAR_CPU_ENDIAN=little
13463       ;;
13464     arm*)
13465       VAR_CPU=arm
13466       VAR_CPU_ARCH=arm
13467       VAR_CPU_BITS=32
13468       VAR_CPU_ENDIAN=little
13469       ;;
13470     powerpc)
13471       VAR_CPU=ppc
13472       VAR_CPU_ARCH=ppc
13473       VAR_CPU_BITS=32
13474       VAR_CPU_ENDIAN=big
13475       ;;
13476     powerpc64)
13477       VAR_CPU=ppc64
13478       VAR_CPU_ARCH=ppc
13479       VAR_CPU_BITS=64
13480       VAR_CPU_ENDIAN=big
13481       ;;
13482     s390)
13483       VAR_CPU=s390
13484       VAR_CPU_ARCH=s390
13485       VAR_CPU_BITS=32
13486       VAR_CPU_ENDIAN=big
13487       ;;
13488     s390x)
13489       VAR_CPU=s390x
13490       VAR_CPU_ARCH=s390
13491       VAR_CPU_BITS=64
13492       VAR_CPU_ENDIAN=big
13493       ;;
13494     sparc)
13495       VAR_CPU=sparc
13496       VAR_CPU_ARCH=sparc
13497       VAR_CPU_BITS=32
13498       VAR_CPU_ENDIAN=big
13499       ;;
13500     sparcv9)
13501       VAR_CPU=sparcv9
13502       VAR_CPU_ARCH=sparc
13503       VAR_CPU_BITS=64
13504       VAR_CPU_ENDIAN=big
13505       ;;
13506     *)
13507       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13508       ;;
13509   esac
13510 
13511   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13512   OPENJDK_TARGET_OS="$VAR_OS"
13513   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13514   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13515   OPENJDK_TARGET_CPU="$VAR_CPU"
13516   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13517   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13518   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13519 
13520 
13521 
13522 
13523 
13524 
13525 
13526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13527 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13529 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13530 
13531 
13532 
13533 # Check whether --with-target-bits was given.
13534 if test "${with_target_bits+set}" = set; then :
13535   withval=$with_target_bits;
13536 fi
13537 
13538 
13539   # We have three types of compiles:
13540   # native  == normal compilation, target system == build system
13541   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13542   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13543   #
13544   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13545     # We're doing a proper cross-compilation
13546     COMPILE_TYPE="cross"
13547   else
13548     COMPILE_TYPE="native"
13549   fi
13550 
13551   if test "x$with_target_bits" != x; then
13552     if test "x$COMPILE_TYPE" = "xcross"; then
13553       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13554     fi
13555 
13556     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13557       # A reduced build is requested
13558       COMPILE_TYPE="reduced"
13559       OPENJDK_TARGET_CPU_BITS=32
13560       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13561         OPENJDK_TARGET_CPU=x86
13562       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13563         OPENJDK_TARGET_CPU=sparc
13564       else
13565         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13566       fi
13567     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13568       as_fn_error $? "It is not possible to use --with-target-bits=64 on a 32 bit system. Use proper cross-compilation instead." "$LINENO" 5
13569     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13570       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13571 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13572     else
13573       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13574     fi
13575   fi
13576 
13577 
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13579 $as_echo_n "checking compilation type... " >&6; }
13580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13581 $as_echo "$COMPILE_TYPE" >&6; }
13582 
13583 
13584   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13585     REQUIRED_OS_NAME=SunOS
13586     REQUIRED_OS_VERSION=5.10
13587   fi
13588   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13589     REQUIRED_OS_NAME=Linux
13590     REQUIRED_OS_VERSION=2.6
13591   fi
13592   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13593     REQUIRED_OS_NAME=Windows
13594     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13595       REQUIRED_OS_VERSION=5.2
13596     else
13597       REQUIRED_OS_VERSION=5.1
13598     fi
13599   fi
13600   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13601     REQUIRED_OS_NAME=Darwin
13602     REQUIRED_OS_VERSION=11.2
13603   fi
13604 
13605 
13606 
13607 
13608 
13609   # Also store the legacy naming of the cpu.
13610   # Ie i586 and amd64 instead of x86 and x86_64
13611   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13612   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13613     OPENJDK_TARGET_CPU_LEGACY="i586"
13614   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13615     # On all platforms except MacOSX replace x86_64 with amd64.
13616     OPENJDK_TARGET_CPU_LEGACY="amd64"
13617   fi
13618 
13619 
13620   # And the second legacy naming of the cpu.
13621   # Ie i386 and amd64 instead of x86 and x86_64.
13622   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13623   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13624     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13625   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13626     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13627   fi
13628 
13629 
13630   # This is the name of the cpu (but using i386 and amd64 instead of
13631   # x86 and x86_64, respectively), preceeded by a /, to be used when
13632   # locating libraries. On macosx, it's empty, though.
13633   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13634   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13635     OPENJDK_TARGET_CPU_LIBDIR=""
13636   fi
13637 
13638 
13639   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13640   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13641   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13642   OPENJDK_TARGET_CPU_ISADIR=""
13643   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13644     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13645       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13646     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13647       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13648     fi
13649   fi
13650 
13651 
13652   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13653   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13654   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13655     # On linux only, we replace x86 with i386.
13656     OPENJDK_TARGET_CPU_OSARCH="i386"
13657   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13658     # On all platforms except macosx, we replace x86_64 with amd64.
13659     OPENJDK_TARGET_CPU_OSARCH="amd64"
13660   fi
13661 
13662 
13663   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13664   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13665     OPENJDK_TARGET_CPU_JLI="i386"
13666   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13667     # On all platforms except macosx, we replace x86_64 with amd64.
13668     OPENJDK_TARGET_CPU_JLI="amd64"
13669   fi
13670   # Now setup the -D flags for building libjli.
13671   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13672   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13673     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13674       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13675     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13676       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13677     fi
13678   fi
13679 
13680 
13681   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13682   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13683     OPENJDK_TARGET_OS_API_DIR="solaris"
13684   fi
13685   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13686     OPENJDK_TARGET_OS_API_DIR="windows"
13687   fi
13688 
13689 
13690   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13691       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13692   else
13693       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13694   fi
13695 
13696 
13697   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13698     A_LP64="LP64:="
13699     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13700     # unpack200.exe
13701     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13702       ADD_LP64="-D_LP64=1"
13703     fi
13704   fi
13705   LP64=$A_LP64
13706 
13707 
13708   if test "x$COMPILE_TYPE" = "xcross"; then
13709     # FIXME: ... or should this include reduced builds..?
13710     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13711   else
13712     DEFINE_CROSS_COMPILE_ARCH=""
13713   fi
13714 
13715 
13716   # ZERO_ARCHDEF is used to enable architecture-specific code
13717   case "${OPENJDK_TARGET_CPU}" in
13718     ppc*)    ZERO_ARCHDEF=PPC   ;;
13719     s390*)   ZERO_ARCHDEF=S390  ;;
13720     sparc*)  ZERO_ARCHDEF=SPARC ;;
13721     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13722     x86)     ZERO_ARCHDEF=IA32  ;;
13723     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13724   esac
13725 
13726 
13727 
13728 
13729 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13730 
13731   # Locate the directory of this script.
13732   SCRIPT="$0"
13733   AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L`
13734 
13735   # Where is the source? It is located two levels above the configure script.
13736   CURDIR="$PWD"
13737   cd "$AUTOCONF_DIR/../.."
13738   SRC_ROOT="`$THEPWDCMD -L`"
13739 
13740   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13741     PATH_SEP=";"
13742 
13743   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13744   if test $SRC_ROOT_LENGTH -gt 100; then
13745     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13746   fi
13747 
13748   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13750 $as_echo_n "checking cygwin release... " >&6; }
13751     CYGWIN_VERSION=`$UNAME -r`
13752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13753 $as_echo "$CYGWIN_VERSION" >&6; }
13754     WINDOWS_ENV_VENDOR='cygwin'
13755     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13756 
13757     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13758     if test "x$CYGWIN_VERSION_OK" = x; then
13759       { $as_echo "$as_me:${as_lineno-$LINENO}: Your cygwin is too old. You are running $CYGWIN_VERSION, but at least cygwin 1.7 is required. Please upgrade." >&5
13760 $as_echo "$as_me: Your cygwin is too old. You are running $CYGWIN_VERSION, but at least cygwin 1.7 is required. Please upgrade." >&6;}
13761       as_fn_error $? "Cannot continue" "$LINENO" 5
13762     fi
13763     if test "x$CYGPATH" = x; then
13764       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13765     fi
13766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13767 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13768     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13769     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13770     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13771     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13773 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13774     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13775     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13776     if test "x$test_cygdrive_prefix" = x; then
13777       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13778     fi
13779   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13781 $as_echo_n "checking msys release... " >&6; }
13782     MSYS_VERSION=`$UNAME -r`
13783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13784 $as_echo "$MSYS_VERSION" >&6; }
13785 
13786     WINDOWS_ENV_VENDOR='msys'
13787     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13788 
13789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13790 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13791     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13792     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13793 
13794   windows_path="$MSYS_ROOT_PATH"
13795   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13796     unix_path=`$CYGPATH -u "$windows_path"`
13797     MSYS_ROOT_PATH="$unix_path"
13798   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13799     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13800     MSYS_ROOT_PATH="$unix_path"
13801   fi
13802 
13803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13804 $as_echo "$MSYS_ROOT_PATH" >&6; }
13805     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13806   else
13807     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13808   fi
13809 
13810   # Test if windows or unix (cygwin/msys) find is first in path.
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13812 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13813   FIND_BINARY_OUTPUT=`find --version 2>&1`
13814   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13816 $as_echo "unix style" >&6; }
13817   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13819 $as_echo "Windows" >&6; }
13820     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13821 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13822     { $as_echo "$as_me:${as_lineno-$LINENO}: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&5
13823 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13824     as_fn_error $? "Cannot continue" "$LINENO" 5
13825   else
13826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13827 $as_echo "unknown" >&6; }
13828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13829 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13830   fi
13831 
13832   else
13833     PATH_SEP=":"
13834   fi
13835 
13836 
13837 
13838   cd "$CURDIR"
13839 
13840 
13841   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13842 
13843   # Input might be given as Windows format, start by converting to
13844   # unix format.
13845   path="$SRC_ROOT"
13846   new_path=`$CYGPATH -u "$path"`
13847 
13848   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13849   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13850   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13851   # "foo.exe" is OK but "foo" is an error.
13852   #
13853   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13854   # It is also a way to make sure we got the proper file name for the real test later on.
13855   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13856   if test "x$test_shortpath" = x; then
13857     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13858 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13859     as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5
13860   fi
13861 
13862   # Call helper function which possibly converts this using DOS-style short mode.
13863   # If so, the updated path is stored in $new_path.
13864 
13865   input_path="$new_path"
13866   # Check if we need to convert this using DOS-style short mode. If the path
13867   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13868   # take no chances and rewrite it.
13869   # Note: m4 eats our [], so we need to use [ and ] instead.
13870   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13871   if test "x$has_forbidden_chars" != x; then
13872     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13873     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13874     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13875     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13876       # Going to short mode and back again did indeed matter. Since short mode is
13877       # case insensitive, let's make it lowercase to improve readability.
13878       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13879       # Now convert it back to Unix-stile (cygpath)
13880       input_path=`$CYGPATH -u "$shortmode_path"`
13881       new_path="$input_path"
13882     fi
13883   fi
13884 
13885   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
13886   if test "x$test_cygdrive_prefix" = x; then
13887     # As a simple fix, exclude /usr/bin since it's not a real path.
13888     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
13889       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
13890       # a path prefixed by /cygdrive for fixpath to work.
13891       new_path="$CYGWIN_ROOT_PATH$input_path"
13892     fi
13893   fi
13894 
13895 
13896   if test "x$path" != "x$new_path"; then
13897     SRC_ROOT="$new_path"
13898     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13899 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13900   fi
13901 
13902   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13903 
13904   path="$SRC_ROOT"
13905   has_colon=`$ECHO $path | $GREP ^.:`
13906   new_path="$path"
13907   if test "x$has_colon" = x; then
13908     # Not in mixed or Windows style, start by that.
13909     new_path=`cmd //c echo $path`
13910   fi
13911 
13912 
13913   input_path="$new_path"
13914   # Check if we need to convert this using DOS-style short mode. If the path
13915   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13916   # take no chances and rewrite it.
13917   # Note: m4 eats our [], so we need to use [ and ] instead.
13918   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
13919   if test "x$has_forbidden_chars" != x; then
13920     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13921     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13922   fi
13923 
13924 
13925   windows_path="$new_path"
13926   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13927     unix_path=`$CYGPATH -u "$windows_path"`
13928     new_path="$unix_path"
13929   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13930     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13931     new_path="$unix_path"
13932   fi
13933 
13934   if test "x$path" != "x$new_path"; then
13935     SRC_ROOT="$new_path"
13936     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13937 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13938   fi
13939 
13940   # Save the first 10 bytes of this path to the storage, so fixpath can work.
13941   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
13942 
13943   else
13944     # We're on a posix platform. Hooray! :)
13945     path="$SRC_ROOT"
13946     has_space=`$ECHO "$path" | $GREP " "`
13947     if test "x$has_space" != x; then
13948       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13949 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13950       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
13951     fi
13952 
13953     # Use eval to expand a potential ~
13954     eval path="$path"
13955     if test ! -f "$path" && test ! -d "$path"; then
13956       as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
13957     fi
13958 
13959     SRC_ROOT="`cd "$path"; $THEPWDCMD -L`"
13960   fi
13961 
13962 
13963   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13964 
13965   # Input might be given as Windows format, start by converting to
13966   # unix format.
13967   path="$CURDIR"
13968   new_path=`$CYGPATH -u "$path"`
13969 
13970   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13971   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13972   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13973   # "foo.exe" is OK but "foo" is an error.
13974   #
13975   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13976   # It is also a way to make sure we got the proper file name for the real test later on.
13977   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13978   if test "x$test_shortpath" = x; then
13979     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
13980 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
13981     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
13982   fi
13983 
13984   # Call helper function which possibly converts this using DOS-style short mode.
13985   # If so, the updated path is stored in $new_path.
13986 
13987   input_path="$new_path"
13988   # Check if we need to convert this using DOS-style short mode. If the path
13989   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13990   # take no chances and rewrite it.
13991   # Note: m4 eats our [], so we need to use [ and ] instead.
13992   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13993   if test "x$has_forbidden_chars" != x; then
13994     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13995     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13996     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13997     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13998       # Going to short mode and back again did indeed matter. Since short mode is
13999       # case insensitive, let's make it lowercase to improve readability.
14000       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14001       # Now convert it back to Unix-stile (cygpath)
14002       input_path=`$CYGPATH -u "$shortmode_path"`
14003       new_path="$input_path"
14004     fi
14005   fi
14006 
14007   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14008   if test "x$test_cygdrive_prefix" = x; then
14009     # As a simple fix, exclude /usr/bin since it's not a real path.
14010     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14011       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14012       # a path prefixed by /cygdrive for fixpath to work.
14013       new_path="$CYGWIN_ROOT_PATH$input_path"
14014     fi
14015   fi
14016 
14017 
14018   if test "x$path" != "x$new_path"; then
14019     CURDIR="$new_path"
14020     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14021 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14022   fi
14023 
14024   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14025 
14026   path="$CURDIR"
14027   has_colon=`$ECHO $path | $GREP ^.:`
14028   new_path="$path"
14029   if test "x$has_colon" = x; then
14030     # Not in mixed or Windows style, start by that.
14031     new_path=`cmd //c echo $path`
14032   fi
14033 
14034 
14035   input_path="$new_path"
14036   # Check if we need to convert this using DOS-style short mode. If the path
14037   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14038   # take no chances and rewrite it.
14039   # Note: m4 eats our [], so we need to use [ and ] instead.
14040   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14041   if test "x$has_forbidden_chars" != x; then
14042     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14043     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14044   fi
14045 
14046 
14047   windows_path="$new_path"
14048   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14049     unix_path=`$CYGPATH -u "$windows_path"`
14050     new_path="$unix_path"
14051   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14052     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14053     new_path="$unix_path"
14054   fi
14055 
14056   if test "x$path" != "x$new_path"; then
14057     CURDIR="$new_path"
14058     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14059 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14060   fi
14061 
14062   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14063   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14064 
14065   else
14066     # We're on a posix platform. Hooray! :)
14067     path="$CURDIR"
14068     has_space=`$ECHO "$path" | $GREP " "`
14069     if test "x$has_space" != x; then
14070       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14071 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14072       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14073     fi
14074 
14075     # Use eval to expand a potential ~
14076     eval path="$path"
14077     if test ! -f "$path" && test ! -d "$path"; then
14078       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14079     fi
14080 
14081     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14082   fi
14083 
14084 
14085   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14086     # Add extra search paths on solaris for utilities like ar and as etc...
14087     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14088   fi
14089 
14090   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14091   # is not correct.
14092 
14093 # Check whether --with-sys-root was given.
14094 if test "${with_sys_root+set}" = set; then :
14095   withval=$with_sys_root;
14096 fi
14097 
14098 
14099   if test "x$with_sys_root" != x; then
14100     SYS_ROOT=$with_sys_root
14101   else
14102     SYS_ROOT=/
14103   fi
14104 
14105 
14106 
14107 # Check whether --with-tools-dir was given.
14108 if test "${with_tools_dir+set}" = set; then :
14109   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14110 
14111 fi
14112 
14113 
14114 
14115 # Check whether --with-devkit was given.
14116 if test "${with_devkit+set}" = set; then :
14117   withval=$with_devkit;
14118         if test "x$with_sys_root" != x; then
14119           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14120         fi
14121 
14122   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14123 
14124   # Input might be given as Windows format, start by converting to
14125   # unix format.
14126   path="$with_devkit"
14127   new_path=`$CYGPATH -u "$path"`
14128 
14129   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14130   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14131   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14132   # "foo.exe" is OK but "foo" is an error.
14133   #
14134   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14135   # It is also a way to make sure we got the proper file name for the real test later on.
14136   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14137   if test "x$test_shortpath" = x; then
14138     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14139 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14140     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14141   fi
14142 
14143   # Call helper function which possibly converts this using DOS-style short mode.
14144   # If so, the updated path is stored in $new_path.
14145 
14146   input_path="$new_path"
14147   # Check if we need to convert this using DOS-style short mode. If the path
14148   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14149   # take no chances and rewrite it.
14150   # Note: m4 eats our [], so we need to use [ and ] instead.
14151   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14152   if test "x$has_forbidden_chars" != x; then
14153     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14154     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14155     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14156     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14157       # Going to short mode and back again did indeed matter. Since short mode is
14158       # case insensitive, let's make it lowercase to improve readability.
14159       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14160       # Now convert it back to Unix-stile (cygpath)
14161       input_path=`$CYGPATH -u "$shortmode_path"`
14162       new_path="$input_path"
14163     fi
14164   fi
14165 
14166   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14167   if test "x$test_cygdrive_prefix" = x; then
14168     # As a simple fix, exclude /usr/bin since it's not a real path.
14169     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14170       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14171       # a path prefixed by /cygdrive for fixpath to work.
14172       new_path="$CYGWIN_ROOT_PATH$input_path"
14173     fi
14174   fi
14175 
14176 
14177   if test "x$path" != "x$new_path"; then
14178     with_devkit="$new_path"
14179     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14180 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14181   fi
14182 
14183   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14184 
14185   path="$with_devkit"
14186   has_colon=`$ECHO $path | $GREP ^.:`
14187   new_path="$path"
14188   if test "x$has_colon" = x; then
14189     # Not in mixed or Windows style, start by that.
14190     new_path=`cmd //c echo $path`
14191   fi
14192 
14193 
14194   input_path="$new_path"
14195   # Check if we need to convert this using DOS-style short mode. If the path
14196   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14197   # take no chances and rewrite it.
14198   # Note: m4 eats our [], so we need to use [ and ] instead.
14199   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14200   if test "x$has_forbidden_chars" != x; then
14201     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14202     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14203   fi
14204 
14205 
14206   windows_path="$new_path"
14207   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14208     unix_path=`$CYGPATH -u "$windows_path"`
14209     new_path="$unix_path"
14210   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14211     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14212     new_path="$unix_path"
14213   fi
14214 
14215   if test "x$path" != "x$new_path"; then
14216     with_devkit="$new_path"
14217     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14218 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14219   fi
14220 
14221   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14222   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14223 
14224   else
14225     # We're on a posix platform. Hooray! :)
14226     path="$with_devkit"
14227     has_space=`$ECHO "$path" | $GREP " "`
14228     if test "x$has_space" != x; then
14229       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14230 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14231       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14232     fi
14233 
14234     # Use eval to expand a potential ~
14235     eval path="$path"
14236     if test ! -f "$path" && test ! -d "$path"; then
14237       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14238     fi
14239 
14240     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14241   fi
14242 
14243 
14244   if test "x$TOOLS_DIR" = x; then
14245     TOOLS_DIR="$with_devkit/bin"
14246   else
14247     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14248   fi
14249 
14250         if test -d "$with_devkit/$host_alias/libc"; then
14251           SYS_ROOT=$with_devkit/$host_alias/libc
14252         elif test -d "$with_devkit/$host/sys-root"; then
14253           SYS_ROOT=$with_devkit/$host/sys-root
14254         fi
14255 
14256 fi
14257 
14258 
14259 
14260   # Setup default logging of stdout and stderr to build.log in the output root.
14261   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14262   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14263   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14264 
14265 
14266 
14267 
14268 
14269 # Check if it's a pure open build or if custom sources are to be used.
14270 
14271   # Check whether --enable-openjdk-only was given.
14272 if test "${enable_openjdk_only+set}" = set; then :
14273   enableval=$enable_openjdk_only;
14274 else
14275   enable_openjdk_only="no"
14276 fi
14277 
14278 
14279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14280 $as_echo_n "checking for presence of closed sources... " >&6; }
14281   if test -d "$SRC_ROOT/jdk/src/closed"; then
14282     CLOSED_SOURCE_PRESENT=yes
14283   else
14284     CLOSED_SOURCE_PRESENT=no
14285   fi
14286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14287 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14288 
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14290 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14291   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14293 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14294 
14295   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14296     OPENJDK=true
14297     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14298       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14299 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14300     fi
14301   else
14302     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14303       OPENJDK=true
14304     else
14305       OPENJDK=false
14306     fi
14307   fi
14308 
14309   if test "x$OPENJDK" = "xtrue"; then
14310     SET_OPENJDK="OPENJDK=true"
14311   fi
14312 
14313 
14314 
14315 
14316 # These are needed to be able to create a configuration name (and thus the output directory)
14317 
14318   ###############################################################################
14319   #
14320   # Check which variant of the JDK that we want to build.
14321   # Currently we have:
14322   #    normal:   standard edition
14323   # but the custom make system may add other variants
14324   #
14325   # Effectively the JDK variant gives a name to a specific set of
14326   # modules to compile into the JDK. In the future, these modules
14327   # might even be Jigsaw modules.
14328   #
14329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14330 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14331 
14332 # Check whether --with-jdk-variant was given.
14333 if test "${with_jdk_variant+set}" = set; then :
14334   withval=$with_jdk_variant;
14335 fi
14336 
14337 
14338   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14339     JDK_VARIANT="normal"
14340   else
14341     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14342   fi
14343 
14344 
14345 
14346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14347 $as_echo "$JDK_VARIANT" >&6; }
14348 
14349 
14350 ###############################################################################
14351 #
14352 # Check which interpreter of the JVM we want to build.
14353 # Currently we have:
14354 #    template: Template interpreter (the default)
14355 #    cpp     : C++ interpreter
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14357 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14358 
14359 # Check whether --with-jvm-interpreter was given.
14360 if test "${with_jvm_interpreter+set}" = set; then :
14361   withval=$with_jvm_interpreter;
14362 fi
14363 
14364 
14365 if test "x$with_jvm_interpreter" = x; then
14366      with_jvm_interpreter="template"
14367 fi
14368 
14369 JVM_INTERPRETER="$with_jvm_interpreter"
14370 
14371 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14372    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14373 fi
14374 
14375 
14376 
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14378 $as_echo "$with_jvm_interpreter" >&6; }
14379 
14380 
14381 
14382   ###############################################################################
14383   #
14384   # Check which variants of the JVM that we want to build.
14385   # Currently we have:
14386   #    server: normal interpreter and a tiered C1/C2 compiler
14387   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14388   #    minimal1: reduced form of client with optional VM services and features stripped out
14389   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14390   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14391   #    zero: no machine code interpreter, no compiler
14392   #    zeroshark: zero interpreter and shark/llvm compiler backend
14393 #    core: interpreter only, no compiler (only works on some platforms)
14394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14395 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14396 
14397 # Check whether --with-jvm-variants was given.
14398 if test "${with_jvm_variants+set}" = set; then :
14399   withval=$with_jvm_variants;
14400 fi
14401 
14402 
14403   if test "x$with_jvm_variants" = x; then
14404     with_jvm_variants="server"
14405   fi
14406 
14407   JVM_VARIANTS=",$with_jvm_variants,"
14408   TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//'  -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'`
14409 
14410   if test "x$TEST_VARIANTS" != "x,"; then
14411      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14412   fi
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14414 $as_echo "$with_jvm_variants" >&6; }
14415 
14416   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14417   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14418   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14419   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14420   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14421   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14422   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14423 
14424   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14425     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14426       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14427     fi
14428   fi
14429   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14430     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14431       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14432     fi
14433   fi
14434   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14435     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14436       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14437     fi
14438   fi
14439 
14440   # Replace the commas with AND for use in the build directory name.
14441   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14442   COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'`
14443   if test "x$COUNT_VARIANTS" != "x,1"; then
14444     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14445   else
14446     BUILDING_MULTIPLE_JVM_VARIANTS=no
14447   fi
14448 
14449 
14450 
14451 
14452 
14453 
14454 
14455 
14456 
14457 
14458   INCLUDE_SA=true
14459   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14460     INCLUDE_SA=false
14461   fi
14462   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14463     INCLUDE_SA=false
14464   fi
14465   if test "x$VAR_CPU" = xppc64 ; then
14466     INCLUDE_SA=false
14467   fi
14468 
14469 
14470   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14471     MACOSX_UNIVERSAL="true"
14472   fi
14473 
14474 
14475 
14476 
14477   ###############################################################################
14478   #
14479   # Set the debug level
14480   #    release: no debug information, all optimizations, no asserts.
14481   #    fastdebug: debug information (-g), all optimizations, all asserts
14482   #    slowdebug: debug information (-g), no optimizations, all asserts
14483   #
14484   DEBUG_LEVEL="release"
14485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14486 $as_echo_n "checking which debug level to use... " >&6; }
14487   # Check whether --enable-debug was given.
14488 if test "${enable_debug+set}" = set; then :
14489   enableval=$enable_debug;
14490         ENABLE_DEBUG="${enableval}"
14491         DEBUG_LEVEL="fastdebug"
14492 
14493 else
14494   ENABLE_DEBUG="no"
14495 fi
14496 
14497 
14498 
14499 # Check whether --with-debug-level was given.
14500 if test "${with_debug_level+set}" = set; then :
14501   withval=$with_debug_level;
14502         DEBUG_LEVEL="${withval}"
14503         if test "x$ENABLE_DEBUG" = xyes; then
14504           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14505         fi
14506 
14507 fi
14508 
14509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14510 $as_echo "$DEBUG_LEVEL" >&6; }
14511 
14512   if test "x$DEBUG_LEVEL" != xrelease && \
14513       test "x$DEBUG_LEVEL" != xfastdebug && \
14514       test "x$DEBUG_LEVEL" != xslowdebug; then
14515     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14516   fi
14517 
14518 
14519   ###############################################################################
14520   #
14521   # Setup legacy vars/targets and new vars to deal with different debug levels.
14522   #
14523 
14524   case $DEBUG_LEVEL in
14525     release )
14526       VARIANT="OPT"
14527       FASTDEBUG="false"
14528       DEBUG_CLASSFILES="false"
14529       BUILD_VARIANT_RELEASE=""
14530       HOTSPOT_DEBUG_LEVEL="product"
14531       HOTSPOT_EXPORT="product"
14532       ;;
14533     fastdebug )
14534       VARIANT="DBG"
14535       FASTDEBUG="true"
14536       DEBUG_CLASSFILES="true"
14537       BUILD_VARIANT_RELEASE="-fastdebug"
14538       HOTSPOT_DEBUG_LEVEL="fastdebug"
14539       HOTSPOT_EXPORT="fastdebug"
14540       ;;
14541     slowdebug )
14542       VARIANT="DBG"
14543       FASTDEBUG="false"
14544       DEBUG_CLASSFILES="true"
14545       BUILD_VARIANT_RELEASE="-debug"
14546       HOTSPOT_DEBUG_LEVEL="jvmg"
14547       HOTSPOT_EXPORT="debug"
14548       ;;
14549   esac
14550 
14551   #####
14552   # Generate the legacy makefile targets for hotspot.
14553   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14554   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14555   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14556   # But until then ...
14557   HOTSPOT_TARGET=""
14558 
14559   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14560     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14561   fi
14562 
14563   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14564     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14565   fi
14566 
14567   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14568     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14569   fi
14570 
14571   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14572     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14573   fi
14574 
14575   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14576     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14577   fi
14578 
14579   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14580     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14581   fi
14582 
14583   if test "x$JVM_VARIANT_CORE" = xtrue; then
14584     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14585   fi
14586 
14587   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14588 
14589   # On Macosx universal binaries are produced, but they only contain
14590   # 64 bit intel. This invalidates control of which jvms are built
14591   # from configure, but only server is valid anyway. Fix this
14592   # when hotspot makefiles are rewritten.
14593   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14594     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14595   fi
14596 
14597   #####
14598 
14599 
14600 
14601 
14602 
14603 
14604 
14605 
14606 # With basic setup done, call the custom early hook.
14607 
14608 
14609 # To properly create a configuration name, we need to have the OpenJDK target
14610 # and options (variants and debug level) parsed.
14611 
14612 
14613 
14614 # Check whether --with-conf-name was given.
14615 if test "${with_conf_name+set}" = set; then :
14616   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14617 fi
14618 
14619 
14620   # Test from where we are running configure, in or outside of src root.
14621   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14622       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14623       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14624     # We are running configure from the src root.
14625     # Create a default ./build/target-variant-debuglevel output root.
14626     if test "x${CONF_NAME}" = x; then
14627       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14628     fi
14629     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14630     $MKDIR -p "$OUTPUT_ROOT"
14631     if test ! -d "$OUTPUT_ROOT"; then
14632       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14633     fi
14634   else
14635     # We are running configure from outside of the src dir.
14636     # Then use the current directory as output dir!
14637     # If configuration is situated in normal build directory, just use the build
14638     # directory name as configuration name, otherwise use the complete path.
14639     if test "x${CONF_NAME}" = x; then
14640       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14641     fi
14642     OUTPUT_ROOT="$CURDIR"
14643 
14644     # WARNING: This might be a bad thing to do. You need to be sure you want to
14645     # have a configuration in this directory. Do some sanity checks!
14646 
14647     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14648       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14649       # other files
14650       files_present=`$LS $OUTPUT_ROOT`
14651       # Configure has already touched config.log and confdefs.h in the current dir when this check
14652       # is performed.
14653       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14654       | $TR -d '\n'`
14655       if test "x$filtered_files" != x; then
14656         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14657 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14658         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14659 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14660         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14661 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14662         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14663 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14664         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14665 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14666         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14667 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14668         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14669 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14670         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14671       fi
14672     fi
14673   fi
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14675 $as_echo_n "checking what configuration name to use... " >&6; }
14676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14677 $as_echo "$CONF_NAME" >&6; }
14678 
14679 
14680   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14681 
14682   # Input might be given as Windows format, start by converting to
14683   # unix format.
14684   path="$OUTPUT_ROOT"
14685   new_path=`$CYGPATH -u "$path"`
14686 
14687   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14688   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14689   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14690   # "foo.exe" is OK but "foo" is an error.
14691   #
14692   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14693   # It is also a way to make sure we got the proper file name for the real test later on.
14694   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14695   if test "x$test_shortpath" = x; then
14696     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14697 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14698     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14699   fi
14700 
14701   # Call helper function which possibly converts this using DOS-style short mode.
14702   # If so, the updated path is stored in $new_path.
14703 
14704   input_path="$new_path"
14705   # Check if we need to convert this using DOS-style short mode. If the path
14706   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14707   # take no chances and rewrite it.
14708   # Note: m4 eats our [], so we need to use [ and ] instead.
14709   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14710   if test "x$has_forbidden_chars" != x; then
14711     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14712     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14713     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14714     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14715       # Going to short mode and back again did indeed matter. Since short mode is
14716       # case insensitive, let's make it lowercase to improve readability.
14717       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14718       # Now convert it back to Unix-stile (cygpath)
14719       input_path=`$CYGPATH -u "$shortmode_path"`
14720       new_path="$input_path"
14721     fi
14722   fi
14723 
14724   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14725   if test "x$test_cygdrive_prefix" = x; then
14726     # As a simple fix, exclude /usr/bin since it's not a real path.
14727     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14728       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14729       # a path prefixed by /cygdrive for fixpath to work.
14730       new_path="$CYGWIN_ROOT_PATH$input_path"
14731     fi
14732   fi
14733 
14734 
14735   if test "x$path" != "x$new_path"; then
14736     OUTPUT_ROOT="$new_path"
14737     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14738 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14739   fi
14740 
14741   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14742 
14743   path="$OUTPUT_ROOT"
14744   has_colon=`$ECHO $path | $GREP ^.:`
14745   new_path="$path"
14746   if test "x$has_colon" = x; then
14747     # Not in mixed or Windows style, start by that.
14748     new_path=`cmd //c echo $path`
14749   fi
14750 
14751 
14752   input_path="$new_path"
14753   # Check if we need to convert this using DOS-style short mode. If the path
14754   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14755   # take no chances and rewrite it.
14756   # Note: m4 eats our [], so we need to use [ and ] instead.
14757   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14758   if test "x$has_forbidden_chars" != x; then
14759     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14760     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14761   fi
14762 
14763 
14764   windows_path="$new_path"
14765   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14766     unix_path=`$CYGPATH -u "$windows_path"`
14767     new_path="$unix_path"
14768   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14769     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14770     new_path="$unix_path"
14771   fi
14772 
14773   if test "x$path" != "x$new_path"; then
14774     OUTPUT_ROOT="$new_path"
14775     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14776 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14777   fi
14778 
14779   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14780   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14781 
14782   else
14783     # We're on a posix platform. Hooray! :)
14784     path="$OUTPUT_ROOT"
14785     has_space=`$ECHO "$path" | $GREP " "`
14786     if test "x$has_space" != x; then
14787       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14788 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14789       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14790     fi
14791 
14792     # Use eval to expand a potential ~
14793     eval path="$path"
14794     if test ! -f "$path" && test ! -d "$path"; then
14795       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14796     fi
14797 
14798     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14799   fi
14800 
14801 
14802   SPEC=$OUTPUT_ROOT/spec.gmk
14803 
14804   CONF_NAME=$CONF_NAME
14805 
14806   OUTPUT_ROOT=$OUTPUT_ROOT
14807 
14808 
14809   # Most of the probed defines are put into config.h
14810   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14811 
14812   # The spec.gmk file contains all variables for the make system.
14813   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14814 
14815   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14816   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14817 
14818   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14819   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14820 
14821   # The compare.sh is used to compare the build output to other builds.
14822   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
14823 
14824   # Spec.sh is currently used by compare-objects.sh
14825   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
14826 
14827   # The generated Makefile knows where the spec.gmk is and where the source is.
14828   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
14829   # which will look for generated configurations
14830   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
14831 
14832 
14833   # Save the arguments given to us
14834   echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
14835 
14836 
14837 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
14838 
14839   for ac_prog in apt-get yum port pkgutil pkgadd
14840 do
14841   # Extract the first word of "$ac_prog", so it can be a program name with args.
14842 set dummy $ac_prog; ac_word=$2
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14844 $as_echo_n "checking for $ac_word... " >&6; }
14845 if ${ac_cv_prog_PKGHANDLER+:} false; then :
14846   $as_echo_n "(cached) " >&6
14847 else
14848   if test -n "$PKGHANDLER"; then
14849   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
14850 else
14851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14852 for as_dir in $PATH
14853 do
14854   IFS=$as_save_IFS
14855   test -z "$as_dir" && as_dir=.
14856     for ac_exec_ext in '' $ac_executable_extensions; do
14857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14858     ac_cv_prog_PKGHANDLER="$ac_prog"
14859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14860     break 2
14861   fi
14862 done
14863   done
14864 IFS=$as_save_IFS
14865 
14866 fi
14867 fi
14868 PKGHANDLER=$ac_cv_prog_PKGHANDLER
14869 if test -n "$PKGHANDLER"; then
14870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
14871 $as_echo "$PKGHANDLER" >&6; }
14872 else
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14874 $as_echo "no" >&6; }
14875 fi
14876 
14877 
14878   test -n "$PKGHANDLER" && break
14879 done
14880 
14881 
14882 
14883 # Setup tools that requires more complex handling, or that is not needed by the configure script.
14884 
14885 
14886   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
14887   if test "x$MAKE" != x; then
14888     # User has supplied a make, test it.
14889     if test ! -f "$MAKE"; then
14890       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
14891     fi
14892 
14893   MAKE_CANDIDATE=""$MAKE""
14894   DESCRIPTION="user supplied MAKE=$MAKE"
14895   if test "x$MAKE_CANDIDATE" != x; then
14896     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
14897 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
14898     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
14899     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
14900     if test "x$IS_GNU_MAKE" = x; then
14901       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
14902 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
14903     else
14904       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
14905       if test "x$IS_MODERN_MAKE" = x; then
14906         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
14907 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
14908       else
14909         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
14910           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14911             MAKE_EXPECTED_ENV='cygwin'
14912           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14913             MAKE_EXPECTED_ENV='msys'
14914           else
14915             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
14916           fi
14917           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
14918           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
14919         else
14920           # Not relevant for non-Windows
14921           IS_MAKE_CORRECT_ENV=true
14922         fi
14923         if test "x$IS_MAKE_CORRECT_ENV" = x; then
14924           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
14925 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
14926         else
14927           FOUND_MAKE=$MAKE_CANDIDATE
14928 
14929   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14930 
14931   # First separate the path from the arguments. This will split at the first
14932   # space.
14933   complete="$FOUND_MAKE"
14934   path="${complete%% *}"
14935   tmp="$complete EOL"
14936   arguments="${tmp#* }"
14937 
14938   # Input might be given as Windows format, start by converting to
14939   # unix format.
14940   new_path=`$CYGPATH -u "$path"`
14941 
14942   # Now try to locate executable using which
14943   new_path=`$WHICH "$new_path" 2> /dev/null`
14944   # bat and cmd files are not always considered executable in cygwin causing which
14945   # to not find them
14946   if test "x$new_path" = x \
14947       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14948       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14949     new_path=`$CYGPATH -u "$path"`
14950   fi
14951   if test "x$new_path" = x; then
14952     # Oops. Which didn't find the executable.
14953     # The splitting of arguments from the executable at a space might have been incorrect,
14954     # since paths with space are more likely in Windows. Give it another try with the whole
14955     # argument.
14956     path="$complete"
14957     arguments="EOL"
14958     new_path=`$CYGPATH -u "$path"`
14959     new_path=`$WHICH "$new_path" 2> /dev/null`
14960     # bat and cmd files are not always considered executable in cygwin causing which
14961     # to not find them
14962     if test "x$new_path" = x \
14963         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14964         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14965       new_path=`$CYGPATH -u "$path"`
14966     fi
14967     if test "x$new_path" = x; then
14968       # It's still not found. Now this is an unrecoverable error.
14969       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
14970 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
14971       has_space=`$ECHO "$complete" | $GREP " "`
14972       if test "x$has_space" != x; then
14973         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
14974 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
14975       fi
14976       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
14977     fi
14978   fi
14979 
14980   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14981   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14982   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14983   # "foo.exe" is OK but "foo" is an error.
14984   #
14985   # This test is therefore slightly more accurate than "test -f" to check for file presence.
14986   # It is also a way to make sure we got the proper file name for the real test later on.
14987   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14988   if test "x$test_shortpath" = x; then
14989     # Short path failed, file does not exist as specified.
14990     # Try adding .exe or .cmd
14991     if test -f "${new_path}.exe"; then
14992       input_to_shortpath="${new_path}.exe"
14993     elif test -f "${new_path}.cmd"; then
14994       input_to_shortpath="${new_path}.cmd"
14995     else
14996       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
14997 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
14998       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
14999 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15000       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15001     fi
15002   else
15003     input_to_shortpath="$new_path"
15004   fi
15005 
15006   # Call helper function which possibly converts this using DOS-style short mode.
15007   # If so, the updated path is stored in $new_path.
15008   new_path="$input_to_shortpath"
15009 
15010   input_path="$input_to_shortpath"
15011   # Check if we need to convert this using DOS-style short mode. If the path
15012   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15013   # take no chances and rewrite it.
15014   # Note: m4 eats our [], so we need to use [ and ] instead.
15015   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15016   if test "x$has_forbidden_chars" != x; then
15017     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15018     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15019     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15020     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15021       # Going to short mode and back again did indeed matter. Since short mode is
15022       # case insensitive, let's make it lowercase to improve readability.
15023       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15024       # Now convert it back to Unix-stile (cygpath)
15025       input_path=`$CYGPATH -u "$shortmode_path"`
15026       new_path="$input_path"
15027     fi
15028   fi
15029 
15030   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15031   if test "x$test_cygdrive_prefix" = x; then
15032     # As a simple fix, exclude /usr/bin since it's not a real path.
15033     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15034       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15035       # a path prefixed by /cygdrive for fixpath to work.
15036       new_path="$CYGWIN_ROOT_PATH$input_path"
15037     fi
15038   fi
15039 
15040   # remove trailing .exe if any
15041   new_path="${new_path/%.exe/}"
15042 
15043   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15044 
15045   # First separate the path from the arguments. This will split at the first
15046   # space.
15047   complete="$FOUND_MAKE"
15048   path="${complete%% *}"
15049   tmp="$complete EOL"
15050   arguments="${tmp#* }"
15051 
15052   # Input might be given as Windows format, start by converting to
15053   # unix format.
15054   new_path="$path"
15055 
15056   windows_path="$new_path"
15057   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15058     unix_path=`$CYGPATH -u "$windows_path"`
15059     new_path="$unix_path"
15060   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15061     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15062     new_path="$unix_path"
15063   fi
15064 
15065 
15066   # Now try to locate executable using which
15067   new_path=`$WHICH "$new_path" 2> /dev/null`
15068 
15069   if test "x$new_path" = x; then
15070     # Oops. Which didn't find the executable.
15071     # The splitting of arguments from the executable at a space might have been incorrect,
15072     # since paths with space are more likely in Windows. Give it another try with the whole
15073     # argument.
15074     path="$complete"
15075     arguments="EOL"
15076     new_path="$path"
15077 
15078   windows_path="$new_path"
15079   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15080     unix_path=`$CYGPATH -u "$windows_path"`
15081     new_path="$unix_path"
15082   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15083     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15084     new_path="$unix_path"
15085   fi
15086 
15087 
15088     new_path=`$WHICH "$new_path" 2> /dev/null`
15089 
15090     if test "x$new_path" = x; then
15091       # It's still not found. Now this is an unrecoverable error.
15092       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15093 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15094       has_space=`$ECHO "$complete" | $GREP " "`
15095       if test "x$has_space" != x; then
15096         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15097 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15098       fi
15099       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15100     fi
15101   fi
15102 
15103   # Now new_path has a complete unix path to the binary
15104   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15105     # Keep paths in /bin as-is, but remove trailing .exe if any
15106     new_path="${new_path/%.exe/}"
15107     # Do not save /bin paths to all_fixpath_prefixes!
15108   else
15109     # Not in mixed or Windows style, start by that.
15110     new_path=`cmd //c echo $new_path`
15111 
15112   input_path="$new_path"
15113   # Check if we need to convert this using DOS-style short mode. If the path
15114   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15115   # take no chances and rewrite it.
15116   # Note: m4 eats our [], so we need to use [ and ] instead.
15117   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15118   if test "x$has_forbidden_chars" != x; then
15119     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15120     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15121   fi
15122 
15123     # Output is in $new_path
15124 
15125   windows_path="$new_path"
15126   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15127     unix_path=`$CYGPATH -u "$windows_path"`
15128     new_path="$unix_path"
15129   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15130     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15131     new_path="$unix_path"
15132   fi
15133 
15134     # remove trailing .exe if any
15135     new_path="${new_path/%.exe/}"
15136 
15137     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15138     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15139   fi
15140 
15141   else
15142     # We're on a posix platform. Hooray! :)
15143     # First separate the path from the arguments. This will split at the first
15144     # space.
15145     complete="$FOUND_MAKE"
15146     path="${complete%% *}"
15147     tmp="$complete EOL"
15148     arguments="${tmp#* }"
15149 
15150     # Cannot rely on the command "which" here since it doesn't always work.
15151     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15152     if test -z "$is_absolute_path"; then
15153       # Path to executable is not absolute. Find it.
15154       IFS_save="$IFS"
15155       IFS=:
15156       for p in $PATH; do
15157         if test -f "$p/$path" && test -x "$p/$path"; then
15158           new_path="$p/$path"
15159           break
15160         fi
15161       done
15162       IFS="$IFS_save"
15163     else
15164       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15165 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15166       new_path="$path"
15167     fi
15168 
15169     if test "x$new_path" = x; then
15170       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15171 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15172       has_space=`$ECHO "$complete" | $GREP " "`
15173       if test "x$has_space" != x; then
15174         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15175 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15176       fi
15177       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15178     fi
15179   fi
15180 
15181   # Now join together the path and the arguments once again
15182   if test "x$arguments" != xEOL; then
15183     new_complete="$new_path ${arguments% *}"
15184   else
15185     new_complete="$new_path"
15186   fi
15187 
15188   if test "x$complete" != "x$new_complete"; then
15189     FOUND_MAKE="$new_complete"
15190     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15191 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15192   fi
15193 
15194         fi
15195       fi
15196     fi
15197   fi
15198 
15199     if test "x$FOUND_MAKE" = x; then
15200       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15201     fi
15202   else
15203     # Try our hardest to locate a correct version of GNU make
15204     for ac_prog in gmake
15205 do
15206   # Extract the first word of "$ac_prog", so it can be a program name with args.
15207 set dummy $ac_prog; ac_word=$2
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15209 $as_echo_n "checking for $ac_word... " >&6; }
15210 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15211   $as_echo_n "(cached) " >&6
15212 else
15213   case $CHECK_GMAKE in
15214   [\\/]* | ?:[\\/]*)
15215   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15216   ;;
15217   *)
15218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15219 for as_dir in $PATH
15220 do
15221   IFS=$as_save_IFS
15222   test -z "$as_dir" && as_dir=.
15223     for ac_exec_ext in '' $ac_executable_extensions; do
15224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15225     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15227     break 2
15228   fi
15229 done
15230   done
15231 IFS=$as_save_IFS
15232 
15233   ;;
15234 esac
15235 fi
15236 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15237 if test -n "$CHECK_GMAKE"; then
15238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15239 $as_echo "$CHECK_GMAKE" >&6; }
15240 else
15241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15243 fi
15244 
15245 
15246   test -n "$CHECK_GMAKE" && break
15247 done
15248 
15249 
15250   MAKE_CANDIDATE=""$CHECK_GMAKE""
15251   DESCRIPTION="gmake in PATH"
15252   if test "x$MAKE_CANDIDATE" != x; then
15253     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15254 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15255     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15256     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15257     if test "x$IS_GNU_MAKE" = x; then
15258       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15259 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15260     else
15261       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15262       if test "x$IS_MODERN_MAKE" = x; then
15263         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15264 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15265       else
15266         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15267           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15268             MAKE_EXPECTED_ENV='cygwin'
15269           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15270             MAKE_EXPECTED_ENV='msys'
15271           else
15272             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15273           fi
15274           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15275           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15276         else
15277           # Not relevant for non-Windows
15278           IS_MAKE_CORRECT_ENV=true
15279         fi
15280         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15281           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15282 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15283         else
15284           FOUND_MAKE=$MAKE_CANDIDATE
15285 
15286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15287 
15288   # First separate the path from the arguments. This will split at the first
15289   # space.
15290   complete="$FOUND_MAKE"
15291   path="${complete%% *}"
15292   tmp="$complete EOL"
15293   arguments="${tmp#* }"
15294 
15295   # Input might be given as Windows format, start by converting to
15296   # unix format.
15297   new_path=`$CYGPATH -u "$path"`
15298 
15299   # Now try to locate executable using which
15300   new_path=`$WHICH "$new_path" 2> /dev/null`
15301   # bat and cmd files are not always considered executable in cygwin causing which
15302   # to not find them
15303   if test "x$new_path" = x \
15304       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15305       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15306     new_path=`$CYGPATH -u "$path"`
15307   fi
15308   if test "x$new_path" = x; then
15309     # Oops. Which didn't find the executable.
15310     # The splitting of arguments from the executable at a space might have been incorrect,
15311     # since paths with space are more likely in Windows. Give it another try with the whole
15312     # argument.
15313     path="$complete"
15314     arguments="EOL"
15315     new_path=`$CYGPATH -u "$path"`
15316     new_path=`$WHICH "$new_path" 2> /dev/null`
15317     # bat and cmd files are not always considered executable in cygwin causing which
15318     # to not find them
15319     if test "x$new_path" = x \
15320         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15321         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15322       new_path=`$CYGPATH -u "$path"`
15323     fi
15324     if test "x$new_path" = x; then
15325       # It's still not found. Now this is an unrecoverable error.
15326       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15327 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15328       has_space=`$ECHO "$complete" | $GREP " "`
15329       if test "x$has_space" != x; then
15330         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15331 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15332       fi
15333       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15334     fi
15335   fi
15336 
15337   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15338   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15339   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15340   # "foo.exe" is OK but "foo" is an error.
15341   #
15342   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15343   # It is also a way to make sure we got the proper file name for the real test later on.
15344   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15345   if test "x$test_shortpath" = x; then
15346     # Short path failed, file does not exist as specified.
15347     # Try adding .exe or .cmd
15348     if test -f "${new_path}.exe"; then
15349       input_to_shortpath="${new_path}.exe"
15350     elif test -f "${new_path}.cmd"; then
15351       input_to_shortpath="${new_path}.cmd"
15352     else
15353       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15354 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15355       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15356 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15357       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15358     fi
15359   else
15360     input_to_shortpath="$new_path"
15361   fi
15362 
15363   # Call helper function which possibly converts this using DOS-style short mode.
15364   # If so, the updated path is stored in $new_path.
15365   new_path="$input_to_shortpath"
15366 
15367   input_path="$input_to_shortpath"
15368   # Check if we need to convert this using DOS-style short mode. If the path
15369   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15370   # take no chances and rewrite it.
15371   # Note: m4 eats our [], so we need to use [ and ] instead.
15372   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15373   if test "x$has_forbidden_chars" != x; then
15374     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15375     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15376     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15377     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15378       # Going to short mode and back again did indeed matter. Since short mode is
15379       # case insensitive, let's make it lowercase to improve readability.
15380       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15381       # Now convert it back to Unix-stile (cygpath)
15382       input_path=`$CYGPATH -u "$shortmode_path"`
15383       new_path="$input_path"
15384     fi
15385   fi
15386 
15387   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15388   if test "x$test_cygdrive_prefix" = x; then
15389     # As a simple fix, exclude /usr/bin since it's not a real path.
15390     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15391       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15392       # a path prefixed by /cygdrive for fixpath to work.
15393       new_path="$CYGWIN_ROOT_PATH$input_path"
15394     fi
15395   fi
15396 
15397   # remove trailing .exe if any
15398   new_path="${new_path/%.exe/}"
15399 
15400   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15401 
15402   # First separate the path from the arguments. This will split at the first
15403   # space.
15404   complete="$FOUND_MAKE"
15405   path="${complete%% *}"
15406   tmp="$complete EOL"
15407   arguments="${tmp#* }"
15408 
15409   # Input might be given as Windows format, start by converting to
15410   # unix format.
15411   new_path="$path"
15412 
15413   windows_path="$new_path"
15414   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15415     unix_path=`$CYGPATH -u "$windows_path"`
15416     new_path="$unix_path"
15417   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15418     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15419     new_path="$unix_path"
15420   fi
15421 
15422 
15423   # Now try to locate executable using which
15424   new_path=`$WHICH "$new_path" 2> /dev/null`
15425 
15426   if test "x$new_path" = x; then
15427     # Oops. Which didn't find the executable.
15428     # The splitting of arguments from the executable at a space might have been incorrect,
15429     # since paths with space are more likely in Windows. Give it another try with the whole
15430     # argument.
15431     path="$complete"
15432     arguments="EOL"
15433     new_path="$path"
15434 
15435   windows_path="$new_path"
15436   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15437     unix_path=`$CYGPATH -u "$windows_path"`
15438     new_path="$unix_path"
15439   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15440     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15441     new_path="$unix_path"
15442   fi
15443 
15444 
15445     new_path=`$WHICH "$new_path" 2> /dev/null`
15446 
15447     if test "x$new_path" = x; then
15448       # It's still not found. Now this is an unrecoverable error.
15449       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15450 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15451       has_space=`$ECHO "$complete" | $GREP " "`
15452       if test "x$has_space" != x; then
15453         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15454 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15455       fi
15456       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15457     fi
15458   fi
15459 
15460   # Now new_path has a complete unix path to the binary
15461   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15462     # Keep paths in /bin as-is, but remove trailing .exe if any
15463     new_path="${new_path/%.exe/}"
15464     # Do not save /bin paths to all_fixpath_prefixes!
15465   else
15466     # Not in mixed or Windows style, start by that.
15467     new_path=`cmd //c echo $new_path`
15468 
15469   input_path="$new_path"
15470   # Check if we need to convert this using DOS-style short mode. If the path
15471   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15472   # take no chances and rewrite it.
15473   # Note: m4 eats our [], so we need to use [ and ] instead.
15474   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15475   if test "x$has_forbidden_chars" != x; then
15476     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15477     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15478   fi
15479 
15480     # Output is in $new_path
15481 
15482   windows_path="$new_path"
15483   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15484     unix_path=`$CYGPATH -u "$windows_path"`
15485     new_path="$unix_path"
15486   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15487     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15488     new_path="$unix_path"
15489   fi
15490 
15491     # remove trailing .exe if any
15492     new_path="${new_path/%.exe/}"
15493 
15494     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15495     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15496   fi
15497 
15498   else
15499     # We're on a posix platform. Hooray! :)
15500     # First separate the path from the arguments. This will split at the first
15501     # space.
15502     complete="$FOUND_MAKE"
15503     path="${complete%% *}"
15504     tmp="$complete EOL"
15505     arguments="${tmp#* }"
15506 
15507     # Cannot rely on the command "which" here since it doesn't always work.
15508     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15509     if test -z "$is_absolute_path"; then
15510       # Path to executable is not absolute. Find it.
15511       IFS_save="$IFS"
15512       IFS=:
15513       for p in $PATH; do
15514         if test -f "$p/$path" && test -x "$p/$path"; then
15515           new_path="$p/$path"
15516           break
15517         fi
15518       done
15519       IFS="$IFS_save"
15520     else
15521       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15522 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15523       new_path="$path"
15524     fi
15525 
15526     if test "x$new_path" = x; then
15527       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15528 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15529       has_space=`$ECHO "$complete" | $GREP " "`
15530       if test "x$has_space" != x; then
15531         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15532 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15533       fi
15534       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15535     fi
15536   fi
15537 
15538   # Now join together the path and the arguments once again
15539   if test "x$arguments" != xEOL; then
15540     new_complete="$new_path ${arguments% *}"
15541   else
15542     new_complete="$new_path"
15543   fi
15544 
15545   if test "x$complete" != "x$new_complete"; then
15546     FOUND_MAKE="$new_complete"
15547     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15548 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15549   fi
15550 
15551         fi
15552       fi
15553     fi
15554   fi
15555 
15556 
15557     if test "x$FOUND_MAKE" = x; then
15558       for ac_prog in make
15559 do
15560   # Extract the first word of "$ac_prog", so it can be a program name with args.
15561 set dummy $ac_prog; ac_word=$2
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15563 $as_echo_n "checking for $ac_word... " >&6; }
15564 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15565   $as_echo_n "(cached) " >&6
15566 else
15567   case $CHECK_MAKE in
15568   [\\/]* | ?:[\\/]*)
15569   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15570   ;;
15571   *)
15572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15573 for as_dir in $PATH
15574 do
15575   IFS=$as_save_IFS
15576   test -z "$as_dir" && as_dir=.
15577     for ac_exec_ext in '' $ac_executable_extensions; do
15578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15579     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15581     break 2
15582   fi
15583 done
15584   done
15585 IFS=$as_save_IFS
15586 
15587   ;;
15588 esac
15589 fi
15590 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15591 if test -n "$CHECK_MAKE"; then
15592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15593 $as_echo "$CHECK_MAKE" >&6; }
15594 else
15595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15597 fi
15598 
15599 
15600   test -n "$CHECK_MAKE" && break
15601 done
15602 
15603 
15604   MAKE_CANDIDATE=""$CHECK_MAKE""
15605   DESCRIPTION="make in PATH"
15606   if test "x$MAKE_CANDIDATE" != x; then
15607     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15608 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15609     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15610     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15611     if test "x$IS_GNU_MAKE" = x; then
15612       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15613 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15614     else
15615       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15616       if test "x$IS_MODERN_MAKE" = x; then
15617         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15618 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15619       else
15620         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15621           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15622             MAKE_EXPECTED_ENV='cygwin'
15623           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15624             MAKE_EXPECTED_ENV='msys'
15625           else
15626             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15627           fi
15628           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15629           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15630         else
15631           # Not relevant for non-Windows
15632           IS_MAKE_CORRECT_ENV=true
15633         fi
15634         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15635           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15636 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15637         else
15638           FOUND_MAKE=$MAKE_CANDIDATE
15639 
15640   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15641 
15642   # First separate the path from the arguments. This will split at the first
15643   # space.
15644   complete="$FOUND_MAKE"
15645   path="${complete%% *}"
15646   tmp="$complete EOL"
15647   arguments="${tmp#* }"
15648 
15649   # Input might be given as Windows format, start by converting to
15650   # unix format.
15651   new_path=`$CYGPATH -u "$path"`
15652 
15653   # Now try to locate executable using which
15654   new_path=`$WHICH "$new_path" 2> /dev/null`
15655   # bat and cmd files are not always considered executable in cygwin causing which
15656   # to not find them
15657   if test "x$new_path" = x \
15658       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15659       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15660     new_path=`$CYGPATH -u "$path"`
15661   fi
15662   if test "x$new_path" = x; then
15663     # Oops. Which didn't find the executable.
15664     # The splitting of arguments from the executable at a space might have been incorrect,
15665     # since paths with space are more likely in Windows. Give it another try with the whole
15666     # argument.
15667     path="$complete"
15668     arguments="EOL"
15669     new_path=`$CYGPATH -u "$path"`
15670     new_path=`$WHICH "$new_path" 2> /dev/null`
15671     # bat and cmd files are not always considered executable in cygwin causing which
15672     # to not find them
15673     if test "x$new_path" = x \
15674         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15675         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15676       new_path=`$CYGPATH -u "$path"`
15677     fi
15678     if test "x$new_path" = x; then
15679       # It's still not found. Now this is an unrecoverable error.
15680       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15681 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15682       has_space=`$ECHO "$complete" | $GREP " "`
15683       if test "x$has_space" != x; then
15684         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15685 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15686       fi
15687       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15688     fi
15689   fi
15690 
15691   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15692   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15693   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15694   # "foo.exe" is OK but "foo" is an error.
15695   #
15696   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15697   # It is also a way to make sure we got the proper file name for the real test later on.
15698   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15699   if test "x$test_shortpath" = x; then
15700     # Short path failed, file does not exist as specified.
15701     # Try adding .exe or .cmd
15702     if test -f "${new_path}.exe"; then
15703       input_to_shortpath="${new_path}.exe"
15704     elif test -f "${new_path}.cmd"; then
15705       input_to_shortpath="${new_path}.cmd"
15706     else
15707       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15708 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15709       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15710 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15711       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15712     fi
15713   else
15714     input_to_shortpath="$new_path"
15715   fi
15716 
15717   # Call helper function which possibly converts this using DOS-style short mode.
15718   # If so, the updated path is stored in $new_path.
15719   new_path="$input_to_shortpath"
15720 
15721   input_path="$input_to_shortpath"
15722   # Check if we need to convert this using DOS-style short mode. If the path
15723   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15724   # take no chances and rewrite it.
15725   # Note: m4 eats our [], so we need to use [ and ] instead.
15726   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15727   if test "x$has_forbidden_chars" != x; then
15728     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15729     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15730     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15731     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15732       # Going to short mode and back again did indeed matter. Since short mode is
15733       # case insensitive, let's make it lowercase to improve readability.
15734       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15735       # Now convert it back to Unix-stile (cygpath)
15736       input_path=`$CYGPATH -u "$shortmode_path"`
15737       new_path="$input_path"
15738     fi
15739   fi
15740 
15741   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15742   if test "x$test_cygdrive_prefix" = x; then
15743     # As a simple fix, exclude /usr/bin since it's not a real path.
15744     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15745       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15746       # a path prefixed by /cygdrive for fixpath to work.
15747       new_path="$CYGWIN_ROOT_PATH$input_path"
15748     fi
15749   fi
15750 
15751   # remove trailing .exe if any
15752   new_path="${new_path/%.exe/}"
15753 
15754   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15755 
15756   # First separate the path from the arguments. This will split at the first
15757   # space.
15758   complete="$FOUND_MAKE"
15759   path="${complete%% *}"
15760   tmp="$complete EOL"
15761   arguments="${tmp#* }"
15762 
15763   # Input might be given as Windows format, start by converting to
15764   # unix format.
15765   new_path="$path"
15766 
15767   windows_path="$new_path"
15768   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15769     unix_path=`$CYGPATH -u "$windows_path"`
15770     new_path="$unix_path"
15771   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15772     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15773     new_path="$unix_path"
15774   fi
15775 
15776 
15777   # Now try to locate executable using which
15778   new_path=`$WHICH "$new_path" 2> /dev/null`
15779 
15780   if test "x$new_path" = x; then
15781     # Oops. Which didn't find the executable.
15782     # The splitting of arguments from the executable at a space might have been incorrect,
15783     # since paths with space are more likely in Windows. Give it another try with the whole
15784     # argument.
15785     path="$complete"
15786     arguments="EOL"
15787     new_path="$path"
15788 
15789   windows_path="$new_path"
15790   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15791     unix_path=`$CYGPATH -u "$windows_path"`
15792     new_path="$unix_path"
15793   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15794     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15795     new_path="$unix_path"
15796   fi
15797 
15798 
15799     new_path=`$WHICH "$new_path" 2> /dev/null`
15800 
15801     if test "x$new_path" = x; then
15802       # It's still not found. Now this is an unrecoverable error.
15803       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15804 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15805       has_space=`$ECHO "$complete" | $GREP " "`
15806       if test "x$has_space" != x; then
15807         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15808 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15809       fi
15810       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15811     fi
15812   fi
15813 
15814   # Now new_path has a complete unix path to the binary
15815   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15816     # Keep paths in /bin as-is, but remove trailing .exe if any
15817     new_path="${new_path/%.exe/}"
15818     # Do not save /bin paths to all_fixpath_prefixes!
15819   else
15820     # Not in mixed or Windows style, start by that.
15821     new_path=`cmd //c echo $new_path`
15822 
15823   input_path="$new_path"
15824   # Check if we need to convert this using DOS-style short mode. If the path
15825   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15826   # take no chances and rewrite it.
15827   # Note: m4 eats our [], so we need to use [ and ] instead.
15828   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15829   if test "x$has_forbidden_chars" != x; then
15830     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15831     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15832   fi
15833 
15834     # Output is in $new_path
15835 
15836   windows_path="$new_path"
15837   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15838     unix_path=`$CYGPATH -u "$windows_path"`
15839     new_path="$unix_path"
15840   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15841     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15842     new_path="$unix_path"
15843   fi
15844 
15845     # remove trailing .exe if any
15846     new_path="${new_path/%.exe/}"
15847 
15848     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15849     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15850   fi
15851 
15852   else
15853     # We're on a posix platform. Hooray! :)
15854     # First separate the path from the arguments. This will split at the first
15855     # space.
15856     complete="$FOUND_MAKE"
15857     path="${complete%% *}"
15858     tmp="$complete EOL"
15859     arguments="${tmp#* }"
15860 
15861     # Cannot rely on the command "which" here since it doesn't always work.
15862     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15863     if test -z "$is_absolute_path"; then
15864       # Path to executable is not absolute. Find it.
15865       IFS_save="$IFS"
15866       IFS=:
15867       for p in $PATH; do
15868         if test -f "$p/$path" && test -x "$p/$path"; then
15869           new_path="$p/$path"
15870           break
15871         fi
15872       done
15873       IFS="$IFS_save"
15874     else
15875       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15876 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15877       new_path="$path"
15878     fi
15879 
15880     if test "x$new_path" = x; then
15881       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15882 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15883       has_space=`$ECHO "$complete" | $GREP " "`
15884       if test "x$has_space" != x; then
15885         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15886 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15887       fi
15888       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15889     fi
15890   fi
15891 
15892   # Now join together the path and the arguments once again
15893   if test "x$arguments" != xEOL; then
15894     new_complete="$new_path ${arguments% *}"
15895   else
15896     new_complete="$new_path"
15897   fi
15898 
15899   if test "x$complete" != "x$new_complete"; then
15900     FOUND_MAKE="$new_complete"
15901     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15902 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15903   fi
15904 
15905         fi
15906       fi
15907     fi
15908   fi
15909 
15910     fi
15911 
15912     if test "x$FOUND_MAKE" = x; then
15913       if test "x$TOOLS_DIR" != x; then
15914         # We have a tools-dir, check that as well before giving up.
15915         OLD_PATH=$PATH
15916         PATH=$TOOLS_DIR:$PATH
15917         for ac_prog in gmake
15918 do
15919   # Extract the first word of "$ac_prog", so it can be a program name with args.
15920 set dummy $ac_prog; ac_word=$2
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15922 $as_echo_n "checking for $ac_word... " >&6; }
15923 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
15924   $as_echo_n "(cached) " >&6
15925 else
15926   case $CHECK_TOOLSDIR_GMAKE in
15927   [\\/]* | ?:[\\/]*)
15928   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
15929   ;;
15930   *)
15931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932 for as_dir in $PATH
15933 do
15934   IFS=$as_save_IFS
15935   test -z "$as_dir" && as_dir=.
15936     for ac_exec_ext in '' $ac_executable_extensions; do
15937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15938     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15940     break 2
15941   fi
15942 done
15943   done
15944 IFS=$as_save_IFS
15945 
15946   ;;
15947 esac
15948 fi
15949 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
15950 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
15951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
15952 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
15953 else
15954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15955 $as_echo "no" >&6; }
15956 fi
15957 
15958 
15959   test -n "$CHECK_TOOLSDIR_GMAKE" && break
15960 done
15961 
15962 
15963   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
15964   DESCRIPTION="gmake in tools-dir"
15965   if test "x$MAKE_CANDIDATE" != x; then
15966     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15967 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15968     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15969     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15970     if test "x$IS_GNU_MAKE" = x; then
15971       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15972 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15973     else
15974       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15975       if test "x$IS_MODERN_MAKE" = x; then
15976         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15977 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15978       else
15979         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15980           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15981             MAKE_EXPECTED_ENV='cygwin'
15982           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15983             MAKE_EXPECTED_ENV='msys'
15984           else
15985             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15986           fi
15987           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15988           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15989         else
15990           # Not relevant for non-Windows
15991           IS_MAKE_CORRECT_ENV=true
15992         fi
15993         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15994           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15995 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15996         else
15997           FOUND_MAKE=$MAKE_CANDIDATE
15998 
15999   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16000 
16001   # First separate the path from the arguments. This will split at the first
16002   # space.
16003   complete="$FOUND_MAKE"
16004   path="${complete%% *}"
16005   tmp="$complete EOL"
16006   arguments="${tmp#* }"
16007 
16008   # Input might be given as Windows format, start by converting to
16009   # unix format.
16010   new_path=`$CYGPATH -u "$path"`
16011 
16012   # Now try to locate executable using which
16013   new_path=`$WHICH "$new_path" 2> /dev/null`
16014   # bat and cmd files are not always considered executable in cygwin causing which
16015   # to not find them
16016   if test "x$new_path" = x \
16017       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16018       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16019     new_path=`$CYGPATH -u "$path"`
16020   fi
16021   if test "x$new_path" = x; then
16022     # Oops. Which didn't find the executable.
16023     # The splitting of arguments from the executable at a space might have been incorrect,
16024     # since paths with space are more likely in Windows. Give it another try with the whole
16025     # argument.
16026     path="$complete"
16027     arguments="EOL"
16028     new_path=`$CYGPATH -u "$path"`
16029     new_path=`$WHICH "$new_path" 2> /dev/null`
16030     # bat and cmd files are not always considered executable in cygwin causing which
16031     # to not find them
16032     if test "x$new_path" = x \
16033         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16034         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16035       new_path=`$CYGPATH -u "$path"`
16036     fi
16037     if test "x$new_path" = x; then
16038       # It's still not found. Now this is an unrecoverable error.
16039       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16040 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16041       has_space=`$ECHO "$complete" | $GREP " "`
16042       if test "x$has_space" != x; then
16043         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16044 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16045       fi
16046       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16047     fi
16048   fi
16049 
16050   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16051   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16052   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16053   # "foo.exe" is OK but "foo" is an error.
16054   #
16055   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16056   # It is also a way to make sure we got the proper file name for the real test later on.
16057   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16058   if test "x$test_shortpath" = x; then
16059     # Short path failed, file does not exist as specified.
16060     # Try adding .exe or .cmd
16061     if test -f "${new_path}.exe"; then
16062       input_to_shortpath="${new_path}.exe"
16063     elif test -f "${new_path}.cmd"; then
16064       input_to_shortpath="${new_path}.cmd"
16065     else
16066       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16067 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16068       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16069 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16070       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16071     fi
16072   else
16073     input_to_shortpath="$new_path"
16074   fi
16075 
16076   # Call helper function which possibly converts this using DOS-style short mode.
16077   # If so, the updated path is stored in $new_path.
16078   new_path="$input_to_shortpath"
16079 
16080   input_path="$input_to_shortpath"
16081   # Check if we need to convert this using DOS-style short mode. If the path
16082   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16083   # take no chances and rewrite it.
16084   # Note: m4 eats our [], so we need to use [ and ] instead.
16085   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16086   if test "x$has_forbidden_chars" != x; then
16087     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16088     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16089     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16090     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16091       # Going to short mode and back again did indeed matter. Since short mode is
16092       # case insensitive, let's make it lowercase to improve readability.
16093       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16094       # Now convert it back to Unix-stile (cygpath)
16095       input_path=`$CYGPATH -u "$shortmode_path"`
16096       new_path="$input_path"
16097     fi
16098   fi
16099 
16100   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16101   if test "x$test_cygdrive_prefix" = x; then
16102     # As a simple fix, exclude /usr/bin since it's not a real path.
16103     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16104       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16105       # a path prefixed by /cygdrive for fixpath to work.
16106       new_path="$CYGWIN_ROOT_PATH$input_path"
16107     fi
16108   fi
16109 
16110   # remove trailing .exe if any
16111   new_path="${new_path/%.exe/}"
16112 
16113   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16114 
16115   # First separate the path from the arguments. This will split at the first
16116   # space.
16117   complete="$FOUND_MAKE"
16118   path="${complete%% *}"
16119   tmp="$complete EOL"
16120   arguments="${tmp#* }"
16121 
16122   # Input might be given as Windows format, start by converting to
16123   # unix format.
16124   new_path="$path"
16125 
16126   windows_path="$new_path"
16127   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16128     unix_path=`$CYGPATH -u "$windows_path"`
16129     new_path="$unix_path"
16130   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16131     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16132     new_path="$unix_path"
16133   fi
16134 
16135 
16136   # Now try to locate executable using which
16137   new_path=`$WHICH "$new_path" 2> /dev/null`
16138 
16139   if test "x$new_path" = x; then
16140     # Oops. Which didn't find the executable.
16141     # The splitting of arguments from the executable at a space might have been incorrect,
16142     # since paths with space are more likely in Windows. Give it another try with the whole
16143     # argument.
16144     path="$complete"
16145     arguments="EOL"
16146     new_path="$path"
16147 
16148   windows_path="$new_path"
16149   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16150     unix_path=`$CYGPATH -u "$windows_path"`
16151     new_path="$unix_path"
16152   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16153     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16154     new_path="$unix_path"
16155   fi
16156 
16157 
16158     new_path=`$WHICH "$new_path" 2> /dev/null`
16159 
16160     if test "x$new_path" = x; then
16161       # It's still not found. Now this is an unrecoverable error.
16162       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16163 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16164       has_space=`$ECHO "$complete" | $GREP " "`
16165       if test "x$has_space" != x; then
16166         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16167 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16168       fi
16169       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16170     fi
16171   fi
16172 
16173   # Now new_path has a complete unix path to the binary
16174   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16175     # Keep paths in /bin as-is, but remove trailing .exe if any
16176     new_path="${new_path/%.exe/}"
16177     # Do not save /bin paths to all_fixpath_prefixes!
16178   else
16179     # Not in mixed or Windows style, start by that.
16180     new_path=`cmd //c echo $new_path`
16181 
16182   input_path="$new_path"
16183   # Check if we need to convert this using DOS-style short mode. If the path
16184   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16185   # take no chances and rewrite it.
16186   # Note: m4 eats our [], so we need to use [ and ] instead.
16187   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16188   if test "x$has_forbidden_chars" != x; then
16189     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16190     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16191   fi
16192 
16193     # Output is in $new_path
16194 
16195   windows_path="$new_path"
16196   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16197     unix_path=`$CYGPATH -u "$windows_path"`
16198     new_path="$unix_path"
16199   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16200     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16201     new_path="$unix_path"
16202   fi
16203 
16204     # remove trailing .exe if any
16205     new_path="${new_path/%.exe/}"
16206 
16207     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16208     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16209   fi
16210 
16211   else
16212     # We're on a posix platform. Hooray! :)
16213     # First separate the path from the arguments. This will split at the first
16214     # space.
16215     complete="$FOUND_MAKE"
16216     path="${complete%% *}"
16217     tmp="$complete EOL"
16218     arguments="${tmp#* }"
16219 
16220     # Cannot rely on the command "which" here since it doesn't always work.
16221     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16222     if test -z "$is_absolute_path"; then
16223       # Path to executable is not absolute. Find it.
16224       IFS_save="$IFS"
16225       IFS=:
16226       for p in $PATH; do
16227         if test -f "$p/$path" && test -x "$p/$path"; then
16228           new_path="$p/$path"
16229           break
16230         fi
16231       done
16232       IFS="$IFS_save"
16233     else
16234       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16235 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16236       new_path="$path"
16237     fi
16238 
16239     if test "x$new_path" = x; then
16240       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16241 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16242       has_space=`$ECHO "$complete" | $GREP " "`
16243       if test "x$has_space" != x; then
16244         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16245 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16246       fi
16247       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16248     fi
16249   fi
16250 
16251   # Now join together the path and the arguments once again
16252   if test "x$arguments" != xEOL; then
16253     new_complete="$new_path ${arguments% *}"
16254   else
16255     new_complete="$new_path"
16256   fi
16257 
16258   if test "x$complete" != "x$new_complete"; then
16259     FOUND_MAKE="$new_complete"
16260     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16261 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16262   fi
16263 
16264         fi
16265       fi
16266     fi
16267   fi
16268 
16269         if test "x$FOUND_MAKE" = x; then
16270           for ac_prog in make
16271 do
16272   # Extract the first word of "$ac_prog", so it can be a program name with args.
16273 set dummy $ac_prog; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16277   $as_echo_n "(cached) " >&6
16278 else
16279   case $CHECK_TOOLSDIR_MAKE in
16280   [\\/]* | ?:[\\/]*)
16281   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16282   ;;
16283   *)
16284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16285 for as_dir in $PATH
16286 do
16287   IFS=$as_save_IFS
16288   test -z "$as_dir" && as_dir=.
16289     for ac_exec_ext in '' $ac_executable_extensions; do
16290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16291     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16293     break 2
16294   fi
16295 done
16296   done
16297 IFS=$as_save_IFS
16298 
16299   ;;
16300 esac
16301 fi
16302 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16303 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16305 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16306 else
16307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308 $as_echo "no" >&6; }
16309 fi
16310 
16311 
16312   test -n "$CHECK_TOOLSDIR_MAKE" && break
16313 done
16314 
16315 
16316   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16317   DESCRIPTION="make in tools-dir"
16318   if test "x$MAKE_CANDIDATE" != x; then
16319     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16320 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16321     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16322     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16323     if test "x$IS_GNU_MAKE" = x; then
16324       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16325 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16326     else
16327       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16328       if test "x$IS_MODERN_MAKE" = x; then
16329         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16330 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16331       else
16332         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16333           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16334             MAKE_EXPECTED_ENV='cygwin'
16335           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16336             MAKE_EXPECTED_ENV='msys'
16337           else
16338             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16339           fi
16340           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16341           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16342         else
16343           # Not relevant for non-Windows
16344           IS_MAKE_CORRECT_ENV=true
16345         fi
16346         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16347           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
16348 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
16349         else
16350           FOUND_MAKE=$MAKE_CANDIDATE
16351 
16352   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16353 
16354   # First separate the path from the arguments. This will split at the first
16355   # space.
16356   complete="$FOUND_MAKE"
16357   path="${complete%% *}"
16358   tmp="$complete EOL"
16359   arguments="${tmp#* }"
16360 
16361   # Input might be given as Windows format, start by converting to
16362   # unix format.
16363   new_path=`$CYGPATH -u "$path"`
16364 
16365   # Now try to locate executable using which
16366   new_path=`$WHICH "$new_path" 2> /dev/null`
16367   # bat and cmd files are not always considered executable in cygwin causing which
16368   # to not find them
16369   if test "x$new_path" = x \
16370       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16371       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16372     new_path=`$CYGPATH -u "$path"`
16373   fi
16374   if test "x$new_path" = x; then
16375     # Oops. Which didn't find the executable.
16376     # The splitting of arguments from the executable at a space might have been incorrect,
16377     # since paths with space are more likely in Windows. Give it another try with the whole
16378     # argument.
16379     path="$complete"
16380     arguments="EOL"
16381     new_path=`$CYGPATH -u "$path"`
16382     new_path=`$WHICH "$new_path" 2> /dev/null`
16383     # bat and cmd files are not always considered executable in cygwin causing which
16384     # to not find them
16385     if test "x$new_path" = x \
16386         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16387         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16388       new_path=`$CYGPATH -u "$path"`
16389     fi
16390     if test "x$new_path" = x; then
16391       # It's still not found. Now this is an unrecoverable error.
16392       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16393 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16394       has_space=`$ECHO "$complete" | $GREP " "`
16395       if test "x$has_space" != x; then
16396         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16397 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16398       fi
16399       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16400     fi
16401   fi
16402 
16403   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16404   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16405   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16406   # "foo.exe" is OK but "foo" is an error.
16407   #
16408   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16409   # It is also a way to make sure we got the proper file name for the real test later on.
16410   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16411   if test "x$test_shortpath" = x; then
16412     # Short path failed, file does not exist as specified.
16413     # Try adding .exe or .cmd
16414     if test -f "${new_path}.exe"; then
16415       input_to_shortpath="${new_path}.exe"
16416     elif test -f "${new_path}.cmd"; then
16417       input_to_shortpath="${new_path}.cmd"
16418     else
16419       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16420 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16421       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16422 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16423       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16424     fi
16425   else
16426     input_to_shortpath="$new_path"
16427   fi
16428 
16429   # Call helper function which possibly converts this using DOS-style short mode.
16430   # If so, the updated path is stored in $new_path.
16431   new_path="$input_to_shortpath"
16432 
16433   input_path="$input_to_shortpath"
16434   # Check if we need to convert this using DOS-style short mode. If the path
16435   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16436   # take no chances and rewrite it.
16437   # Note: m4 eats our [], so we need to use [ and ] instead.
16438   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16439   if test "x$has_forbidden_chars" != x; then
16440     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16441     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16442     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16443     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16444       # Going to short mode and back again did indeed matter. Since short mode is
16445       # case insensitive, let's make it lowercase to improve readability.
16446       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16447       # Now convert it back to Unix-stile (cygpath)
16448       input_path=`$CYGPATH -u "$shortmode_path"`
16449       new_path="$input_path"
16450     fi
16451   fi
16452 
16453   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16454   if test "x$test_cygdrive_prefix" = x; then
16455     # As a simple fix, exclude /usr/bin since it's not a real path.
16456     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16457       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16458       # a path prefixed by /cygdrive for fixpath to work.
16459       new_path="$CYGWIN_ROOT_PATH$input_path"
16460     fi
16461   fi
16462 
16463   # remove trailing .exe if any
16464   new_path="${new_path/%.exe/}"
16465 
16466   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16467 
16468   # First separate the path from the arguments. This will split at the first
16469   # space.
16470   complete="$FOUND_MAKE"
16471   path="${complete%% *}"
16472   tmp="$complete EOL"
16473   arguments="${tmp#* }"
16474 
16475   # Input might be given as Windows format, start by converting to
16476   # unix format.
16477   new_path="$path"
16478 
16479   windows_path="$new_path"
16480   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16481     unix_path=`$CYGPATH -u "$windows_path"`
16482     new_path="$unix_path"
16483   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16484     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16485     new_path="$unix_path"
16486   fi
16487 
16488 
16489   # Now try to locate executable using which
16490   new_path=`$WHICH "$new_path" 2> /dev/null`
16491 
16492   if test "x$new_path" = x; then
16493     # Oops. Which didn't find the executable.
16494     # The splitting of arguments from the executable at a space might have been incorrect,
16495     # since paths with space are more likely in Windows. Give it another try with the whole
16496     # argument.
16497     path="$complete"
16498     arguments="EOL"
16499     new_path="$path"
16500 
16501   windows_path="$new_path"
16502   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16503     unix_path=`$CYGPATH -u "$windows_path"`
16504     new_path="$unix_path"
16505   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16506     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16507     new_path="$unix_path"
16508   fi
16509 
16510 
16511     new_path=`$WHICH "$new_path" 2> /dev/null`
16512 
16513     if test "x$new_path" = x; then
16514       # It's still not found. Now this is an unrecoverable error.
16515       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16516 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16517       has_space=`$ECHO "$complete" | $GREP " "`
16518       if test "x$has_space" != x; then
16519         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16520 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16521       fi
16522       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16523     fi
16524   fi
16525 
16526   # Now new_path has a complete unix path to the binary
16527   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16528     # Keep paths in /bin as-is, but remove trailing .exe if any
16529     new_path="${new_path/%.exe/}"
16530     # Do not save /bin paths to all_fixpath_prefixes!
16531   else
16532     # Not in mixed or Windows style, start by that.
16533     new_path=`cmd //c echo $new_path`
16534 
16535   input_path="$new_path"
16536   # Check if we need to convert this using DOS-style short mode. If the path
16537   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16538   # take no chances and rewrite it.
16539   # Note: m4 eats our [], so we need to use [ and ] instead.
16540   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16541   if test "x$has_forbidden_chars" != x; then
16542     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16543     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16544   fi
16545 
16546     # Output is in $new_path
16547 
16548   windows_path="$new_path"
16549   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16550     unix_path=`$CYGPATH -u "$windows_path"`
16551     new_path="$unix_path"
16552   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16553     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16554     new_path="$unix_path"
16555   fi
16556 
16557     # remove trailing .exe if any
16558     new_path="${new_path/%.exe/}"
16559 
16560     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16561     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16562   fi
16563 
16564   else
16565     # We're on a posix platform. Hooray! :)
16566     # First separate the path from the arguments. This will split at the first
16567     # space.
16568     complete="$FOUND_MAKE"
16569     path="${complete%% *}"
16570     tmp="$complete EOL"
16571     arguments="${tmp#* }"
16572 
16573     # Cannot rely on the command "which" here since it doesn't always work.
16574     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16575     if test -z "$is_absolute_path"; then
16576       # Path to executable is not absolute. Find it.
16577       IFS_save="$IFS"
16578       IFS=:
16579       for p in $PATH; do
16580         if test -f "$p/$path" && test -x "$p/$path"; then
16581           new_path="$p/$path"
16582           break
16583         fi
16584       done
16585       IFS="$IFS_save"
16586     else
16587       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16588 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16589       new_path="$path"
16590     fi
16591 
16592     if test "x$new_path" = x; then
16593       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16594 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16595       has_space=`$ECHO "$complete" | $GREP " "`
16596       if test "x$has_space" != x; then
16597         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16598 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16599       fi
16600       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16601     fi
16602   fi
16603 
16604   # Now join together the path and the arguments once again
16605   if test "x$arguments" != xEOL; then
16606     new_complete="$new_path ${arguments% *}"
16607   else
16608     new_complete="$new_path"
16609   fi
16610 
16611   if test "x$complete" != "x$new_complete"; then
16612     FOUND_MAKE="$new_complete"
16613     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16614 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16615   fi
16616 
16617         fi
16618       fi
16619     fi
16620   fi
16621 
16622         fi
16623         PATH=$OLD_PATH
16624       fi
16625     fi
16626 
16627     if test "x$FOUND_MAKE" = x; then
16628       as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
16629     fi
16630   fi
16631 
16632   MAKE=$FOUND_MAKE
16633 
16634   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16635 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16636 
16637 
16638 
16639   # Test if find supports -delete
16640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16641 $as_echo_n "checking if find supports -delete... " >&6; }
16642   FIND_DELETE="-delete"
16643 
16644   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16645 
16646   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16647 
16648   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16649   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16650     # No, it does not.
16651     rm $DELETEDIR/TestIfFindSupportsDelete
16652     FIND_DELETE="-exec rm \{\} \+"
16653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654 $as_echo "no" >&6; }
16655   else
16656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16657 $as_echo "yes" >&6; }
16658   fi
16659   rmdir $DELETEDIR
16660 
16661 
16662 
16663   # These tools might not be installed by default,
16664   # need hint on how to install them.
16665 
16666 
16667 
16668   # Publish this variable in the help.
16669 
16670 
16671   if test "x$UNZIP" = x; then
16672     # The variable is not set by user, try to locate tool using the code snippet
16673     for ac_prog in unzip
16674 do
16675   # Extract the first word of "$ac_prog", so it can be a program name with args.
16676 set dummy $ac_prog; ac_word=$2
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16678 $as_echo_n "checking for $ac_word... " >&6; }
16679 if ${ac_cv_path_UNZIP+:} false; then :
16680   $as_echo_n "(cached) " >&6
16681 else
16682   case $UNZIP in
16683   [\\/]* | ?:[\\/]*)
16684   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16685   ;;
16686   *)
16687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16688 for as_dir in $PATH
16689 do
16690   IFS=$as_save_IFS
16691   test -z "$as_dir" && as_dir=.
16692     for ac_exec_ext in '' $ac_executable_extensions; do
16693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16694     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16696     break 2
16697   fi
16698 done
16699   done
16700 IFS=$as_save_IFS
16701 
16702   ;;
16703 esac
16704 fi
16705 UNZIP=$ac_cv_path_UNZIP
16706 if test -n "$UNZIP"; then
16707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16708 $as_echo "$UNZIP" >&6; }
16709 else
16710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16712 fi
16713 
16714 
16715   test -n "$UNZIP" && break
16716 done
16717 
16718   else
16719     # The variable is set, but is it from the command line or the environment?
16720 
16721     # Try to remove the string !UNZIP! from our list.
16722     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16723     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16724       # If it failed, the variable was not from the command line. Ignore it,
16725       # but warn the user (except for BASH, which is always set by the calling BASH).
16726       if test "xUNZIP" != xBASH; then
16727         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16728 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16729       fi
16730       # Try to locate tool using the code snippet
16731       for ac_prog in unzip
16732 do
16733   # Extract the first word of "$ac_prog", so it can be a program name with args.
16734 set dummy $ac_prog; ac_word=$2
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16736 $as_echo_n "checking for $ac_word... " >&6; }
16737 if ${ac_cv_path_UNZIP+:} false; then :
16738   $as_echo_n "(cached) " >&6
16739 else
16740   case $UNZIP in
16741   [\\/]* | ?:[\\/]*)
16742   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16743   ;;
16744   *)
16745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746 for as_dir in $PATH
16747 do
16748   IFS=$as_save_IFS
16749   test -z "$as_dir" && as_dir=.
16750     for ac_exec_ext in '' $ac_executable_extensions; do
16751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16752     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16754     break 2
16755   fi
16756 done
16757   done
16758 IFS=$as_save_IFS
16759 
16760   ;;
16761 esac
16762 fi
16763 UNZIP=$ac_cv_path_UNZIP
16764 if test -n "$UNZIP"; then
16765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16766 $as_echo "$UNZIP" >&6; }
16767 else
16768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16769 $as_echo "no" >&6; }
16770 fi
16771 
16772 
16773   test -n "$UNZIP" && break
16774 done
16775 
16776     else
16777       # If it succeeded, then it was overridden by the user. We will use it
16778       # for the tool.
16779 
16780       # First remove it from the list of overridden variables, so we can test
16781       # for unknown variables in the end.
16782       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16783 
16784       # Check if the provided tool contains a complete path.
16785       tool_specified="$UNZIP"
16786       tool_basename="${tool_specified##*/}"
16787       if test "x$tool_basename" = "x$tool_specified"; then
16788         # A command without a complete path is provided, search $PATH.
16789         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16790 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16791         # Extract the first word of "$tool_basename", so it can be a program name with args.
16792 set dummy $tool_basename; ac_word=$2
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16794 $as_echo_n "checking for $ac_word... " >&6; }
16795 if ${ac_cv_path_UNZIP+:} false; then :
16796   $as_echo_n "(cached) " >&6
16797 else
16798   case $UNZIP in
16799   [\\/]* | ?:[\\/]*)
16800   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16801   ;;
16802   *)
16803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16804 for as_dir in $PATH
16805 do
16806   IFS=$as_save_IFS
16807   test -z "$as_dir" && as_dir=.
16808     for ac_exec_ext in '' $ac_executable_extensions; do
16809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16810     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16812     break 2
16813   fi
16814 done
16815   done
16816 IFS=$as_save_IFS
16817 
16818   ;;
16819 esac
16820 fi
16821 UNZIP=$ac_cv_path_UNZIP
16822 if test -n "$UNZIP"; then
16823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16824 $as_echo "$UNZIP" >&6; }
16825 else
16826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827 $as_echo "no" >&6; }
16828 fi
16829 
16830 
16831         if test "x$UNZIP" = x; then
16832           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
16833         fi
16834       else
16835         # Otherwise we believe it is a complete path. Use it as it is.
16836         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
16837 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
16838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
16839 $as_echo_n "checking for UNZIP... " >&6; }
16840         if test ! -x "$tool_specified"; then
16841           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16842 $as_echo "not found" >&6; }
16843           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
16844         fi
16845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
16846 $as_echo "$tool_specified" >&6; }
16847       fi
16848     fi
16849   fi
16850 
16851 
16852 
16853   if test "x$UNZIP" = x; then
16854     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
16855   fi
16856 
16857 
16858 
16859 
16860 
16861   # Publish this variable in the help.
16862 
16863 
16864   if test "x$ZIP" = x; then
16865     # The variable is not set by user, try to locate tool using the code snippet
16866     for ac_prog in zip
16867 do
16868   # Extract the first word of "$ac_prog", so it can be a program name with args.
16869 set dummy $ac_prog; ac_word=$2
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16871 $as_echo_n "checking for $ac_word... " >&6; }
16872 if ${ac_cv_path_ZIP+:} false; then :
16873   $as_echo_n "(cached) " >&6
16874 else
16875   case $ZIP in
16876   [\\/]* | ?:[\\/]*)
16877   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16878   ;;
16879   *)
16880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16881 for as_dir in $PATH
16882 do
16883   IFS=$as_save_IFS
16884   test -z "$as_dir" && as_dir=.
16885     for ac_exec_ext in '' $ac_executable_extensions; do
16886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16887     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16889     break 2
16890   fi
16891 done
16892   done
16893 IFS=$as_save_IFS
16894 
16895   ;;
16896 esac
16897 fi
16898 ZIP=$ac_cv_path_ZIP
16899 if test -n "$ZIP"; then
16900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16901 $as_echo "$ZIP" >&6; }
16902 else
16903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904 $as_echo "no" >&6; }
16905 fi
16906 
16907 
16908   test -n "$ZIP" && break
16909 done
16910 
16911   else
16912     # The variable is set, but is it from the command line or the environment?
16913 
16914     # Try to remove the string !ZIP! from our list.
16915     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
16916     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16917       # If it failed, the variable was not from the command line. Ignore it,
16918       # but warn the user (except for BASH, which is always set by the calling BASH).
16919       if test "xZIP" != xBASH; then
16920         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
16921 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
16922       fi
16923       # Try to locate tool using the code snippet
16924       for ac_prog in zip
16925 do
16926   # Extract the first word of "$ac_prog", so it can be a program name with args.
16927 set dummy $ac_prog; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929 $as_echo_n "checking for $ac_word... " >&6; }
16930 if ${ac_cv_path_ZIP+:} false; then :
16931   $as_echo_n "(cached) " >&6
16932 else
16933   case $ZIP in
16934   [\\/]* | ?:[\\/]*)
16935   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16936   ;;
16937   *)
16938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16939 for as_dir in $PATH
16940 do
16941   IFS=$as_save_IFS
16942   test -z "$as_dir" && as_dir=.
16943     for ac_exec_ext in '' $ac_executable_extensions; do
16944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16945     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16947     break 2
16948   fi
16949 done
16950   done
16951 IFS=$as_save_IFS
16952 
16953   ;;
16954 esac
16955 fi
16956 ZIP=$ac_cv_path_ZIP
16957 if test -n "$ZIP"; then
16958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16959 $as_echo "$ZIP" >&6; }
16960 else
16961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16962 $as_echo "no" >&6; }
16963 fi
16964 
16965 
16966   test -n "$ZIP" && break
16967 done
16968 
16969     else
16970       # If it succeeded, then it was overridden by the user. We will use it
16971       # for the tool.
16972 
16973       # First remove it from the list of overridden variables, so we can test
16974       # for unknown variables in the end.
16975       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16976 
16977       # Check if the provided tool contains a complete path.
16978       tool_specified="$ZIP"
16979       tool_basename="${tool_specified##*/}"
16980       if test "x$tool_basename" = "x$tool_specified"; then
16981         # A command without a complete path is provided, search $PATH.
16982         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
16983 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
16984         # Extract the first word of "$tool_basename", so it can be a program name with args.
16985 set dummy $tool_basename; ac_word=$2
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16987 $as_echo_n "checking for $ac_word... " >&6; }
16988 if ${ac_cv_path_ZIP+:} false; then :
16989   $as_echo_n "(cached) " >&6
16990 else
16991   case $ZIP in
16992   [\\/]* | ?:[\\/]*)
16993   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16994   ;;
16995   *)
16996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16997 for as_dir in $PATH
16998 do
16999   IFS=$as_save_IFS
17000   test -z "$as_dir" && as_dir=.
17001     for ac_exec_ext in '' $ac_executable_extensions; do
17002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17003     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17005     break 2
17006   fi
17007 done
17008   done
17009 IFS=$as_save_IFS
17010 
17011   ;;
17012 esac
17013 fi
17014 ZIP=$ac_cv_path_ZIP
17015 if test -n "$ZIP"; then
17016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17017 $as_echo "$ZIP" >&6; }
17018 else
17019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17020 $as_echo "no" >&6; }
17021 fi
17022 
17023 
17024         if test "x$ZIP" = x; then
17025           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17026         fi
17027       else
17028         # Otherwise we believe it is a complete path. Use it as it is.
17029         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17030 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17032 $as_echo_n "checking for ZIP... " >&6; }
17033         if test ! -x "$tool_specified"; then
17034           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17035 $as_echo "not found" >&6; }
17036           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17037         fi
17038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17039 $as_echo "$tool_specified" >&6; }
17040       fi
17041     fi
17042   fi
17043 
17044 
17045 
17046   if test "x$ZIP" = x; then
17047     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17048   fi
17049 
17050 
17051 
17052   # Non-required basic tools
17053 
17054 
17055 
17056   # Publish this variable in the help.
17057 
17058 
17059   if test "x$LDD" = x; then
17060     # The variable is not set by user, try to locate tool using the code snippet
17061     for ac_prog in ldd
17062 do
17063   # Extract the first word of "$ac_prog", so it can be a program name with args.
17064 set dummy $ac_prog; ac_word=$2
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17066 $as_echo_n "checking for $ac_word... " >&6; }
17067 if ${ac_cv_path_LDD+:} false; then :
17068   $as_echo_n "(cached) " >&6
17069 else
17070   case $LDD in
17071   [\\/]* | ?:[\\/]*)
17072   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17073   ;;
17074   *)
17075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17076 for as_dir in $PATH
17077 do
17078   IFS=$as_save_IFS
17079   test -z "$as_dir" && as_dir=.
17080     for ac_exec_ext in '' $ac_executable_extensions; do
17081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17082     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17084     break 2
17085   fi
17086 done
17087   done
17088 IFS=$as_save_IFS
17089 
17090   ;;
17091 esac
17092 fi
17093 LDD=$ac_cv_path_LDD
17094 if test -n "$LDD"; then
17095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17096 $as_echo "$LDD" >&6; }
17097 else
17098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 $as_echo "no" >&6; }
17100 fi
17101 
17102 
17103   test -n "$LDD" && break
17104 done
17105 
17106   else
17107     # The variable is set, but is it from the command line or the environment?
17108 
17109     # Try to remove the string !LDD! from our list.
17110     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17111     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17112       # If it failed, the variable was not from the command line. Ignore it,
17113       # but warn the user (except for BASH, which is always set by the calling BASH).
17114       if test "xLDD" != xBASH; then
17115         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17116 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17117       fi
17118       # Try to locate tool using the code snippet
17119       for ac_prog in ldd
17120 do
17121   # Extract the first word of "$ac_prog", so it can be a program name with args.
17122 set dummy $ac_prog; ac_word=$2
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17124 $as_echo_n "checking for $ac_word... " >&6; }
17125 if ${ac_cv_path_LDD+:} false; then :
17126   $as_echo_n "(cached) " >&6
17127 else
17128   case $LDD in
17129   [\\/]* | ?:[\\/]*)
17130   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17131   ;;
17132   *)
17133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17134 for as_dir in $PATH
17135 do
17136   IFS=$as_save_IFS
17137   test -z "$as_dir" && as_dir=.
17138     for ac_exec_ext in '' $ac_executable_extensions; do
17139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17140     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17142     break 2
17143   fi
17144 done
17145   done
17146 IFS=$as_save_IFS
17147 
17148   ;;
17149 esac
17150 fi
17151 LDD=$ac_cv_path_LDD
17152 if test -n "$LDD"; then
17153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17154 $as_echo "$LDD" >&6; }
17155 else
17156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17157 $as_echo "no" >&6; }
17158 fi
17159 
17160 
17161   test -n "$LDD" && break
17162 done
17163 
17164     else
17165       # If it succeeded, then it was overridden by the user. We will use it
17166       # for the tool.
17167 
17168       # First remove it from the list of overridden variables, so we can test
17169       # for unknown variables in the end.
17170       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17171 
17172       # Check if the provided tool contains a complete path.
17173       tool_specified="$LDD"
17174       tool_basename="${tool_specified##*/}"
17175       if test "x$tool_basename" = "x$tool_specified"; then
17176         # A command without a complete path is provided, search $PATH.
17177         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17178 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17179         # Extract the first word of "$tool_basename", so it can be a program name with args.
17180 set dummy $tool_basename; ac_word=$2
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17182 $as_echo_n "checking for $ac_word... " >&6; }
17183 if ${ac_cv_path_LDD+:} false; then :
17184   $as_echo_n "(cached) " >&6
17185 else
17186   case $LDD in
17187   [\\/]* | ?:[\\/]*)
17188   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17189   ;;
17190   *)
17191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17192 for as_dir in $PATH
17193 do
17194   IFS=$as_save_IFS
17195   test -z "$as_dir" && as_dir=.
17196     for ac_exec_ext in '' $ac_executable_extensions; do
17197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17198     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17200     break 2
17201   fi
17202 done
17203   done
17204 IFS=$as_save_IFS
17205 
17206   ;;
17207 esac
17208 fi
17209 LDD=$ac_cv_path_LDD
17210 if test -n "$LDD"; then
17211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17212 $as_echo "$LDD" >&6; }
17213 else
17214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17215 $as_echo "no" >&6; }
17216 fi
17217 
17218 
17219         if test "x$LDD" = x; then
17220           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17221         fi
17222       else
17223         # Otherwise we believe it is a complete path. Use it as it is.
17224         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17225 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17226         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17227 $as_echo_n "checking for LDD... " >&6; }
17228         if test ! -x "$tool_specified"; then
17229           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17230 $as_echo "not found" >&6; }
17231           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17232         fi
17233         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17234 $as_echo "$tool_specified" >&6; }
17235       fi
17236     fi
17237   fi
17238 
17239 
17240   if test "x$LDD" = "x"; then
17241     # List shared lib dependencies is used for
17242     # debug output and checking for forbidden dependencies.
17243     # We can build without it.
17244     LDD="true"
17245   fi
17246 
17247 
17248   # Publish this variable in the help.
17249 
17250 
17251   if test "x$OTOOL" = x; then
17252     # The variable is not set by user, try to locate tool using the code snippet
17253     for ac_prog in otool
17254 do
17255   # Extract the first word of "$ac_prog", so it can be a program name with args.
17256 set dummy $ac_prog; ac_word=$2
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17258 $as_echo_n "checking for $ac_word... " >&6; }
17259 if ${ac_cv_path_OTOOL+:} false; then :
17260   $as_echo_n "(cached) " >&6
17261 else
17262   case $OTOOL in
17263   [\\/]* | ?:[\\/]*)
17264   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17265   ;;
17266   *)
17267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17268 for as_dir in $PATH
17269 do
17270   IFS=$as_save_IFS
17271   test -z "$as_dir" && as_dir=.
17272     for ac_exec_ext in '' $ac_executable_extensions; do
17273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17274     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17276     break 2
17277   fi
17278 done
17279   done
17280 IFS=$as_save_IFS
17281 
17282   ;;
17283 esac
17284 fi
17285 OTOOL=$ac_cv_path_OTOOL
17286 if test -n "$OTOOL"; then
17287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17288 $as_echo "$OTOOL" >&6; }
17289 else
17290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291 $as_echo "no" >&6; }
17292 fi
17293 
17294 
17295   test -n "$OTOOL" && break
17296 done
17297 
17298   else
17299     # The variable is set, but is it from the command line or the environment?
17300 
17301     # Try to remove the string !OTOOL! from our list.
17302     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17303     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17304       # If it failed, the variable was not from the command line. Ignore it,
17305       # but warn the user (except for BASH, which is always set by the calling BASH).
17306       if test "xOTOOL" != xBASH; then
17307         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17308 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17309       fi
17310       # Try to locate tool using the code snippet
17311       for ac_prog in otool
17312 do
17313   # Extract the first word of "$ac_prog", so it can be a program name with args.
17314 set dummy $ac_prog; ac_word=$2
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17316 $as_echo_n "checking for $ac_word... " >&6; }
17317 if ${ac_cv_path_OTOOL+:} false; then :
17318   $as_echo_n "(cached) " >&6
17319 else
17320   case $OTOOL in
17321   [\\/]* | ?:[\\/]*)
17322   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17323   ;;
17324   *)
17325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326 for as_dir in $PATH
17327 do
17328   IFS=$as_save_IFS
17329   test -z "$as_dir" && as_dir=.
17330     for ac_exec_ext in '' $ac_executable_extensions; do
17331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17332     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17334     break 2
17335   fi
17336 done
17337   done
17338 IFS=$as_save_IFS
17339 
17340   ;;
17341 esac
17342 fi
17343 OTOOL=$ac_cv_path_OTOOL
17344 if test -n "$OTOOL"; then
17345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17346 $as_echo "$OTOOL" >&6; }
17347 else
17348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349 $as_echo "no" >&6; }
17350 fi
17351 
17352 
17353   test -n "$OTOOL" && break
17354 done
17355 
17356     else
17357       # If it succeeded, then it was overridden by the user. We will use it
17358       # for the tool.
17359 
17360       # First remove it from the list of overridden variables, so we can test
17361       # for unknown variables in the end.
17362       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17363 
17364       # Check if the provided tool contains a complete path.
17365       tool_specified="$OTOOL"
17366       tool_basename="${tool_specified##*/}"
17367       if test "x$tool_basename" = "x$tool_specified"; then
17368         # A command without a complete path is provided, search $PATH.
17369         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17370 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17371         # Extract the first word of "$tool_basename", so it can be a program name with args.
17372 set dummy $tool_basename; ac_word=$2
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17374 $as_echo_n "checking for $ac_word... " >&6; }
17375 if ${ac_cv_path_OTOOL+:} false; then :
17376   $as_echo_n "(cached) " >&6
17377 else
17378   case $OTOOL in
17379   [\\/]* | ?:[\\/]*)
17380   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17381   ;;
17382   *)
17383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17384 for as_dir in $PATH
17385 do
17386   IFS=$as_save_IFS
17387   test -z "$as_dir" && as_dir=.
17388     for ac_exec_ext in '' $ac_executable_extensions; do
17389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17390     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17392     break 2
17393   fi
17394 done
17395   done
17396 IFS=$as_save_IFS
17397 
17398   ;;
17399 esac
17400 fi
17401 OTOOL=$ac_cv_path_OTOOL
17402 if test -n "$OTOOL"; then
17403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17404 $as_echo "$OTOOL" >&6; }
17405 else
17406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17407 $as_echo "no" >&6; }
17408 fi
17409 
17410 
17411         if test "x$OTOOL" = x; then
17412           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17413         fi
17414       else
17415         # Otherwise we believe it is a complete path. Use it as it is.
17416         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17417 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17419 $as_echo_n "checking for OTOOL... " >&6; }
17420         if test ! -x "$tool_specified"; then
17421           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17422 $as_echo "not found" >&6; }
17423           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17424         fi
17425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17426 $as_echo "$tool_specified" >&6; }
17427       fi
17428     fi
17429   fi
17430 
17431 
17432   if test "x$OTOOL" = "x"; then
17433     OTOOL="true"
17434   fi
17435 
17436 
17437   # Publish this variable in the help.
17438 
17439 
17440   if test "x$READELF" = x; then
17441     # The variable is not set by user, try to locate tool using the code snippet
17442     for ac_prog in greadelf readelf
17443 do
17444   # Extract the first word of "$ac_prog", so it can be a program name with args.
17445 set dummy $ac_prog; ac_word=$2
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17447 $as_echo_n "checking for $ac_word... " >&6; }
17448 if ${ac_cv_path_READELF+:} false; then :
17449   $as_echo_n "(cached) " >&6
17450 else
17451   case $READELF in
17452   [\\/]* | ?:[\\/]*)
17453   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17454   ;;
17455   *)
17456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17457 for as_dir in $PATH
17458 do
17459   IFS=$as_save_IFS
17460   test -z "$as_dir" && as_dir=.
17461     for ac_exec_ext in '' $ac_executable_extensions; do
17462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17463     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17465     break 2
17466   fi
17467 done
17468   done
17469 IFS=$as_save_IFS
17470 
17471   ;;
17472 esac
17473 fi
17474 READELF=$ac_cv_path_READELF
17475 if test -n "$READELF"; then
17476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17477 $as_echo "$READELF" >&6; }
17478 else
17479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17480 $as_echo "no" >&6; }
17481 fi
17482 
17483 
17484   test -n "$READELF" && break
17485 done
17486 
17487   else
17488     # The variable is set, but is it from the command line or the environment?
17489 
17490     # Try to remove the string !READELF! from our list.
17491     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17492     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17493       # If it failed, the variable was not from the command line. Ignore it,
17494       # but warn the user (except for BASH, which is always set by the calling BASH).
17495       if test "xREADELF" != xBASH; then
17496         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17497 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17498       fi
17499       # Try to locate tool using the code snippet
17500       for ac_prog in greadelf readelf
17501 do
17502   # Extract the first word of "$ac_prog", so it can be a program name with args.
17503 set dummy $ac_prog; ac_word=$2
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17505 $as_echo_n "checking for $ac_word... " >&6; }
17506 if ${ac_cv_path_READELF+:} false; then :
17507   $as_echo_n "(cached) " >&6
17508 else
17509   case $READELF in
17510   [\\/]* | ?:[\\/]*)
17511   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17512   ;;
17513   *)
17514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17515 for as_dir in $PATH
17516 do
17517   IFS=$as_save_IFS
17518   test -z "$as_dir" && as_dir=.
17519     for ac_exec_ext in '' $ac_executable_extensions; do
17520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17521     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17523     break 2
17524   fi
17525 done
17526   done
17527 IFS=$as_save_IFS
17528 
17529   ;;
17530 esac
17531 fi
17532 READELF=$ac_cv_path_READELF
17533 if test -n "$READELF"; then
17534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17535 $as_echo "$READELF" >&6; }
17536 else
17537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538 $as_echo "no" >&6; }
17539 fi
17540 
17541 
17542   test -n "$READELF" && break
17543 done
17544 
17545     else
17546       # If it succeeded, then it was overridden by the user. We will use it
17547       # for the tool.
17548 
17549       # First remove it from the list of overridden variables, so we can test
17550       # for unknown variables in the end.
17551       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17552 
17553       # Check if the provided tool contains a complete path.
17554       tool_specified="$READELF"
17555       tool_basename="${tool_specified##*/}"
17556       if test "x$tool_basename" = "x$tool_specified"; then
17557         # A command without a complete path is provided, search $PATH.
17558         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17559 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17560         # Extract the first word of "$tool_basename", so it can be a program name with args.
17561 set dummy $tool_basename; ac_word=$2
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17563 $as_echo_n "checking for $ac_word... " >&6; }
17564 if ${ac_cv_path_READELF+:} false; then :
17565   $as_echo_n "(cached) " >&6
17566 else
17567   case $READELF in
17568   [\\/]* | ?:[\\/]*)
17569   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17570   ;;
17571   *)
17572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17573 for as_dir in $PATH
17574 do
17575   IFS=$as_save_IFS
17576   test -z "$as_dir" && as_dir=.
17577     for ac_exec_ext in '' $ac_executable_extensions; do
17578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17579     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17581     break 2
17582   fi
17583 done
17584   done
17585 IFS=$as_save_IFS
17586 
17587   ;;
17588 esac
17589 fi
17590 READELF=$ac_cv_path_READELF
17591 if test -n "$READELF"; then
17592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17593 $as_echo "$READELF" >&6; }
17594 else
17595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17596 $as_echo "no" >&6; }
17597 fi
17598 
17599 
17600         if test "x$READELF" = x; then
17601           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17602         fi
17603       else
17604         # Otherwise we believe it is a complete path. Use it as it is.
17605         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17606 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17607         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17608 $as_echo_n "checking for READELF... " >&6; }
17609         if test ! -x "$tool_specified"; then
17610           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17611 $as_echo "not found" >&6; }
17612           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17613         fi
17614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17615 $as_echo "$tool_specified" >&6; }
17616       fi
17617     fi
17618   fi
17619 
17620 
17621 
17622 
17623   # Publish this variable in the help.
17624 
17625 
17626   if test "x$HG" = x; then
17627     # The variable is not set by user, try to locate tool using the code snippet
17628     for ac_prog in hg
17629 do
17630   # Extract the first word of "$ac_prog", so it can be a program name with args.
17631 set dummy $ac_prog; ac_word=$2
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17633 $as_echo_n "checking for $ac_word... " >&6; }
17634 if ${ac_cv_path_HG+:} false; then :
17635   $as_echo_n "(cached) " >&6
17636 else
17637   case $HG in
17638   [\\/]* | ?:[\\/]*)
17639   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17640   ;;
17641   *)
17642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17643 for as_dir in $PATH
17644 do
17645   IFS=$as_save_IFS
17646   test -z "$as_dir" && as_dir=.
17647     for ac_exec_ext in '' $ac_executable_extensions; do
17648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17649     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17651     break 2
17652   fi
17653 done
17654   done
17655 IFS=$as_save_IFS
17656 
17657   ;;
17658 esac
17659 fi
17660 HG=$ac_cv_path_HG
17661 if test -n "$HG"; then
17662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17663 $as_echo "$HG" >&6; }
17664 else
17665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666 $as_echo "no" >&6; }
17667 fi
17668 
17669 
17670   test -n "$HG" && break
17671 done
17672 
17673   else
17674     # The variable is set, but is it from the command line or the environment?
17675 
17676     # Try to remove the string !HG! from our list.
17677     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17678     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17679       # If it failed, the variable was not from the command line. Ignore it,
17680       # but warn the user (except for BASH, which is always set by the calling BASH).
17681       if test "xHG" != xBASH; then
17682         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17683 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17684       fi
17685       # Try to locate tool using the code snippet
17686       for ac_prog in hg
17687 do
17688   # Extract the first word of "$ac_prog", so it can be a program name with args.
17689 set dummy $ac_prog; ac_word=$2
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17691 $as_echo_n "checking for $ac_word... " >&6; }
17692 if ${ac_cv_path_HG+:} false; then :
17693   $as_echo_n "(cached) " >&6
17694 else
17695   case $HG in
17696   [\\/]* | ?:[\\/]*)
17697   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17698   ;;
17699   *)
17700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17701 for as_dir in $PATH
17702 do
17703   IFS=$as_save_IFS
17704   test -z "$as_dir" && as_dir=.
17705     for ac_exec_ext in '' $ac_executable_extensions; do
17706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17707     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17709     break 2
17710   fi
17711 done
17712   done
17713 IFS=$as_save_IFS
17714 
17715   ;;
17716 esac
17717 fi
17718 HG=$ac_cv_path_HG
17719 if test -n "$HG"; then
17720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17721 $as_echo "$HG" >&6; }
17722 else
17723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17724 $as_echo "no" >&6; }
17725 fi
17726 
17727 
17728   test -n "$HG" && break
17729 done
17730 
17731     else
17732       # If it succeeded, then it was overridden by the user. We will use it
17733       # for the tool.
17734 
17735       # First remove it from the list of overridden variables, so we can test
17736       # for unknown variables in the end.
17737       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17738 
17739       # Check if the provided tool contains a complete path.
17740       tool_specified="$HG"
17741       tool_basename="${tool_specified##*/}"
17742       if test "x$tool_basename" = "x$tool_specified"; then
17743         # A command without a complete path is provided, search $PATH.
17744         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17745 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17746         # Extract the first word of "$tool_basename", so it can be a program name with args.
17747 set dummy $tool_basename; ac_word=$2
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17749 $as_echo_n "checking for $ac_word... " >&6; }
17750 if ${ac_cv_path_HG+:} false; then :
17751   $as_echo_n "(cached) " >&6
17752 else
17753   case $HG in
17754   [\\/]* | ?:[\\/]*)
17755   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17756   ;;
17757   *)
17758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17759 for as_dir in $PATH
17760 do
17761   IFS=$as_save_IFS
17762   test -z "$as_dir" && as_dir=.
17763     for ac_exec_ext in '' $ac_executable_extensions; do
17764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17765     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17767     break 2
17768   fi
17769 done
17770   done
17771 IFS=$as_save_IFS
17772 
17773   ;;
17774 esac
17775 fi
17776 HG=$ac_cv_path_HG
17777 if test -n "$HG"; then
17778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17779 $as_echo "$HG" >&6; }
17780 else
17781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17782 $as_echo "no" >&6; }
17783 fi
17784 
17785 
17786         if test "x$HG" = x; then
17787           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17788         fi
17789       else
17790         # Otherwise we believe it is a complete path. Use it as it is.
17791         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17792 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17794 $as_echo_n "checking for HG... " >&6; }
17795         if test ! -x "$tool_specified"; then
17796           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17797 $as_echo "not found" >&6; }
17798           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17799         fi
17800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17801 $as_echo "$tool_specified" >&6; }
17802       fi
17803     fi
17804   fi
17805 
17806 
17807 
17808 
17809   # Publish this variable in the help.
17810 
17811 
17812   if test "x$STAT" = x; then
17813     # The variable is not set by user, try to locate tool using the code snippet
17814     for ac_prog in stat
17815 do
17816   # Extract the first word of "$ac_prog", so it can be a program name with args.
17817 set dummy $ac_prog; ac_word=$2
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17819 $as_echo_n "checking for $ac_word... " >&6; }
17820 if ${ac_cv_path_STAT+:} false; then :
17821   $as_echo_n "(cached) " >&6
17822 else
17823   case $STAT in
17824   [\\/]* | ?:[\\/]*)
17825   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17826   ;;
17827   *)
17828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17829 for as_dir in $PATH
17830 do
17831   IFS=$as_save_IFS
17832   test -z "$as_dir" && as_dir=.
17833     for ac_exec_ext in '' $ac_executable_extensions; do
17834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17835     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17837     break 2
17838   fi
17839 done
17840   done
17841 IFS=$as_save_IFS
17842 
17843   ;;
17844 esac
17845 fi
17846 STAT=$ac_cv_path_STAT
17847 if test -n "$STAT"; then
17848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17849 $as_echo "$STAT" >&6; }
17850 else
17851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17853 fi
17854 
17855 
17856   test -n "$STAT" && break
17857 done
17858 
17859   else
17860     # The variable is set, but is it from the command line or the environment?
17861 
17862     # Try to remove the string !STAT! from our list.
17863     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
17864     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17865       # If it failed, the variable was not from the command line. Ignore it,
17866       # but warn the user (except for BASH, which is always set by the calling BASH).
17867       if test "xSTAT" != xBASH; then
17868         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
17869 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
17870       fi
17871       # Try to locate tool using the code snippet
17872       for ac_prog in stat
17873 do
17874   # Extract the first word of "$ac_prog", so it can be a program name with args.
17875 set dummy $ac_prog; ac_word=$2
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17877 $as_echo_n "checking for $ac_word... " >&6; }
17878 if ${ac_cv_path_STAT+:} false; then :
17879   $as_echo_n "(cached) " >&6
17880 else
17881   case $STAT in
17882   [\\/]* | ?:[\\/]*)
17883   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17884   ;;
17885   *)
17886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17887 for as_dir in $PATH
17888 do
17889   IFS=$as_save_IFS
17890   test -z "$as_dir" && as_dir=.
17891     for ac_exec_ext in '' $ac_executable_extensions; do
17892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17893     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17895     break 2
17896   fi
17897 done
17898   done
17899 IFS=$as_save_IFS
17900 
17901   ;;
17902 esac
17903 fi
17904 STAT=$ac_cv_path_STAT
17905 if test -n "$STAT"; then
17906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17907 $as_echo "$STAT" >&6; }
17908 else
17909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17910 $as_echo "no" >&6; }
17911 fi
17912 
17913 
17914   test -n "$STAT" && break
17915 done
17916 
17917     else
17918       # If it succeeded, then it was overridden by the user. We will use it
17919       # for the tool.
17920 
17921       # First remove it from the list of overridden variables, so we can test
17922       # for unknown variables in the end.
17923       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17924 
17925       # Check if the provided tool contains a complete path.
17926       tool_specified="$STAT"
17927       tool_basename="${tool_specified##*/}"
17928       if test "x$tool_basename" = "x$tool_specified"; then
17929         # A command without a complete path is provided, search $PATH.
17930         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
17931 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
17932         # Extract the first word of "$tool_basename", so it can be a program name with args.
17933 set dummy $tool_basename; ac_word=$2
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17935 $as_echo_n "checking for $ac_word... " >&6; }
17936 if ${ac_cv_path_STAT+:} false; then :
17937   $as_echo_n "(cached) " >&6
17938 else
17939   case $STAT in
17940   [\\/]* | ?:[\\/]*)
17941   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17942   ;;
17943   *)
17944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17945 for as_dir in $PATH
17946 do
17947   IFS=$as_save_IFS
17948   test -z "$as_dir" && as_dir=.
17949     for ac_exec_ext in '' $ac_executable_extensions; do
17950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17951     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17953     break 2
17954   fi
17955 done
17956   done
17957 IFS=$as_save_IFS
17958 
17959   ;;
17960 esac
17961 fi
17962 STAT=$ac_cv_path_STAT
17963 if test -n "$STAT"; then
17964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17965 $as_echo "$STAT" >&6; }
17966 else
17967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 $as_echo "no" >&6; }
17969 fi
17970 
17971 
17972         if test "x$STAT" = x; then
17973           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17974         fi
17975       else
17976         # Otherwise we believe it is a complete path. Use it as it is.
17977         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
17978 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
17979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
17980 $as_echo_n "checking for STAT... " >&6; }
17981         if test ! -x "$tool_specified"; then
17982           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17983 $as_echo "not found" >&6; }
17984           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
17985         fi
17986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17987 $as_echo "$tool_specified" >&6; }
17988       fi
17989     fi
17990   fi
17991 
17992 
17993 
17994 
17995   # Publish this variable in the help.
17996 
17997 
17998   if test "x$TIME" = x; then
17999     # The variable is not set by user, try to locate tool using the code snippet
18000     for ac_prog in time
18001 do
18002   # Extract the first word of "$ac_prog", so it can be a program name with args.
18003 set dummy $ac_prog; ac_word=$2
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18005 $as_echo_n "checking for $ac_word... " >&6; }
18006 if ${ac_cv_path_TIME+:} false; then :
18007   $as_echo_n "(cached) " >&6
18008 else
18009   case $TIME in
18010   [\\/]* | ?:[\\/]*)
18011   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18012   ;;
18013   *)
18014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18015 for as_dir in $PATH
18016 do
18017   IFS=$as_save_IFS
18018   test -z "$as_dir" && as_dir=.
18019     for ac_exec_ext in '' $ac_executable_extensions; do
18020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18021     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18023     break 2
18024   fi
18025 done
18026   done
18027 IFS=$as_save_IFS
18028 
18029   ;;
18030 esac
18031 fi
18032 TIME=$ac_cv_path_TIME
18033 if test -n "$TIME"; then
18034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18035 $as_echo "$TIME" >&6; }
18036 else
18037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18038 $as_echo "no" >&6; }
18039 fi
18040 
18041 
18042   test -n "$TIME" && break
18043 done
18044 
18045   else
18046     # The variable is set, but is it from the command line or the environment?
18047 
18048     # Try to remove the string !TIME! from our list.
18049     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18050     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18051       # If it failed, the variable was not from the command line. Ignore it,
18052       # but warn the user (except for BASH, which is always set by the calling BASH).
18053       if test "xTIME" != xBASH; then
18054         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18055 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18056       fi
18057       # Try to locate tool using the code snippet
18058       for ac_prog in time
18059 do
18060   # Extract the first word of "$ac_prog", so it can be a program name with args.
18061 set dummy $ac_prog; ac_word=$2
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18063 $as_echo_n "checking for $ac_word... " >&6; }
18064 if ${ac_cv_path_TIME+:} false; then :
18065   $as_echo_n "(cached) " >&6
18066 else
18067   case $TIME in
18068   [\\/]* | ?:[\\/]*)
18069   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18070   ;;
18071   *)
18072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18073 for as_dir in $PATH
18074 do
18075   IFS=$as_save_IFS
18076   test -z "$as_dir" && as_dir=.
18077     for ac_exec_ext in '' $ac_executable_extensions; do
18078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18079     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18081     break 2
18082   fi
18083 done
18084   done
18085 IFS=$as_save_IFS
18086 
18087   ;;
18088 esac
18089 fi
18090 TIME=$ac_cv_path_TIME
18091 if test -n "$TIME"; then
18092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18093 $as_echo "$TIME" >&6; }
18094 else
18095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18096 $as_echo "no" >&6; }
18097 fi
18098 
18099 
18100   test -n "$TIME" && break
18101 done
18102 
18103     else
18104       # If it succeeded, then it was overridden by the user. We will use it
18105       # for the tool.
18106 
18107       # First remove it from the list of overridden variables, so we can test
18108       # for unknown variables in the end.
18109       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18110 
18111       # Check if the provided tool contains a complete path.
18112       tool_specified="$TIME"
18113       tool_basename="${tool_specified##*/}"
18114       if test "x$tool_basename" = "x$tool_specified"; then
18115         # A command without a complete path is provided, search $PATH.
18116         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18117 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18118         # Extract the first word of "$tool_basename", so it can be a program name with args.
18119 set dummy $tool_basename; ac_word=$2
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18121 $as_echo_n "checking for $ac_word... " >&6; }
18122 if ${ac_cv_path_TIME+:} false; then :
18123   $as_echo_n "(cached) " >&6
18124 else
18125   case $TIME in
18126   [\\/]* | ?:[\\/]*)
18127   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18128   ;;
18129   *)
18130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18131 for as_dir in $PATH
18132 do
18133   IFS=$as_save_IFS
18134   test -z "$as_dir" && as_dir=.
18135     for ac_exec_ext in '' $ac_executable_extensions; do
18136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18137     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18139     break 2
18140   fi
18141 done
18142   done
18143 IFS=$as_save_IFS
18144 
18145   ;;
18146 esac
18147 fi
18148 TIME=$ac_cv_path_TIME
18149 if test -n "$TIME"; then
18150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18151 $as_echo "$TIME" >&6; }
18152 else
18153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154 $as_echo "no" >&6; }
18155 fi
18156 
18157 
18158         if test "x$TIME" = x; then
18159           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18160         fi
18161       else
18162         # Otherwise we believe it is a complete path. Use it as it is.
18163         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18164 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18165         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18166 $as_echo_n "checking for TIME... " >&6; }
18167         if test ! -x "$tool_specified"; then
18168           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18169 $as_echo "not found" >&6; }
18170           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18171         fi
18172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18173 $as_echo "$tool_specified" >&6; }
18174       fi
18175     fi
18176   fi
18177 
18178 
18179   # Check if it's GNU time
18180   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18181   if test "x$IS_GNU_TIME" != x; then
18182     IS_GNU_TIME=yes
18183   else
18184     IS_GNU_TIME=no
18185   fi
18186 
18187 
18188   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18189 
18190 
18191 
18192   # Publish this variable in the help.
18193 
18194 
18195   if test "x$COMM" = x; then
18196     # The variable is not set by user, try to locate tool using the code snippet
18197     for ac_prog in comm
18198 do
18199   # Extract the first word of "$ac_prog", so it can be a program name with args.
18200 set dummy $ac_prog; ac_word=$2
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18202 $as_echo_n "checking for $ac_word... " >&6; }
18203 if ${ac_cv_path_COMM+:} false; then :
18204   $as_echo_n "(cached) " >&6
18205 else
18206   case $COMM in
18207   [\\/]* | ?:[\\/]*)
18208   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18209   ;;
18210   *)
18211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18212 for as_dir in $PATH
18213 do
18214   IFS=$as_save_IFS
18215   test -z "$as_dir" && as_dir=.
18216     for ac_exec_ext in '' $ac_executable_extensions; do
18217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18218     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18220     break 2
18221   fi
18222 done
18223   done
18224 IFS=$as_save_IFS
18225 
18226   ;;
18227 esac
18228 fi
18229 COMM=$ac_cv_path_COMM
18230 if test -n "$COMM"; then
18231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18232 $as_echo "$COMM" >&6; }
18233 else
18234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18235 $as_echo "no" >&6; }
18236 fi
18237 
18238 
18239   test -n "$COMM" && break
18240 done
18241 
18242   else
18243     # The variable is set, but is it from the command line or the environment?
18244 
18245     # Try to remove the string !COMM! from our list.
18246     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18247     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18248       # If it failed, the variable was not from the command line. Ignore it,
18249       # but warn the user (except for BASH, which is always set by the calling BASH).
18250       if test "xCOMM" != xBASH; then
18251         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18252 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18253       fi
18254       # Try to locate tool using the code snippet
18255       for ac_prog in comm
18256 do
18257   # Extract the first word of "$ac_prog", so it can be a program name with args.
18258 set dummy $ac_prog; ac_word=$2
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18260 $as_echo_n "checking for $ac_word... " >&6; }
18261 if ${ac_cv_path_COMM+:} false; then :
18262   $as_echo_n "(cached) " >&6
18263 else
18264   case $COMM in
18265   [\\/]* | ?:[\\/]*)
18266   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18267   ;;
18268   *)
18269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18270 for as_dir in $PATH
18271 do
18272   IFS=$as_save_IFS
18273   test -z "$as_dir" && as_dir=.
18274     for ac_exec_ext in '' $ac_executable_extensions; do
18275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18276     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18278     break 2
18279   fi
18280 done
18281   done
18282 IFS=$as_save_IFS
18283 
18284   ;;
18285 esac
18286 fi
18287 COMM=$ac_cv_path_COMM
18288 if test -n "$COMM"; then
18289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18290 $as_echo "$COMM" >&6; }
18291 else
18292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18293 $as_echo "no" >&6; }
18294 fi
18295 
18296 
18297   test -n "$COMM" && break
18298 done
18299 
18300     else
18301       # If it succeeded, then it was overridden by the user. We will use it
18302       # for the tool.
18303 
18304       # First remove it from the list of overridden variables, so we can test
18305       # for unknown variables in the end.
18306       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18307 
18308       # Check if the provided tool contains a complete path.
18309       tool_specified="$COMM"
18310       tool_basename="${tool_specified##*/}"
18311       if test "x$tool_basename" = "x$tool_specified"; then
18312         # A command without a complete path is provided, search $PATH.
18313         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18314 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18315         # Extract the first word of "$tool_basename", so it can be a program name with args.
18316 set dummy $tool_basename; ac_word=$2
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18318 $as_echo_n "checking for $ac_word... " >&6; }
18319 if ${ac_cv_path_COMM+:} false; then :
18320   $as_echo_n "(cached) " >&6
18321 else
18322   case $COMM in
18323   [\\/]* | ?:[\\/]*)
18324   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18325   ;;
18326   *)
18327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18328 for as_dir in $PATH
18329 do
18330   IFS=$as_save_IFS
18331   test -z "$as_dir" && as_dir=.
18332     for ac_exec_ext in '' $ac_executable_extensions; do
18333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18334     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18336     break 2
18337   fi
18338 done
18339   done
18340 IFS=$as_save_IFS
18341 
18342   ;;
18343 esac
18344 fi
18345 COMM=$ac_cv_path_COMM
18346 if test -n "$COMM"; then
18347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18348 $as_echo "$COMM" >&6; }
18349 else
18350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351 $as_echo "no" >&6; }
18352 fi
18353 
18354 
18355         if test "x$COMM" = x; then
18356           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18357         fi
18358       else
18359         # Otherwise we believe it is a complete path. Use it as it is.
18360         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18361 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18363 $as_echo_n "checking for COMM... " >&6; }
18364         if test ! -x "$tool_specified"; then
18365           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18366 $as_echo "not found" >&6; }
18367           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18368         fi
18369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18370 $as_echo "$tool_specified" >&6; }
18371       fi
18372     fi
18373   fi
18374 
18375 
18376 
18377   if test "x$COMM" = x; then
18378     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18379   fi
18380 
18381 
18382   fi
18383 
18384   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18385 
18386 
18387 
18388   # Publish this variable in the help.
18389 
18390 
18391   if test "x$DSYMUTIL" = x; then
18392     # The variable is not set by user, try to locate tool using the code snippet
18393     for ac_prog in dsymutil
18394 do
18395   # Extract the first word of "$ac_prog", so it can be a program name with args.
18396 set dummy $ac_prog; ac_word=$2
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18398 $as_echo_n "checking for $ac_word... " >&6; }
18399 if ${ac_cv_path_DSYMUTIL+:} false; then :
18400   $as_echo_n "(cached) " >&6
18401 else
18402   case $DSYMUTIL in
18403   [\\/]* | ?:[\\/]*)
18404   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18405   ;;
18406   *)
18407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18408 for as_dir in $PATH
18409 do
18410   IFS=$as_save_IFS
18411   test -z "$as_dir" && as_dir=.
18412     for ac_exec_ext in '' $ac_executable_extensions; do
18413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18414     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18416     break 2
18417   fi
18418 done
18419   done
18420 IFS=$as_save_IFS
18421 
18422   ;;
18423 esac
18424 fi
18425 DSYMUTIL=$ac_cv_path_DSYMUTIL
18426 if test -n "$DSYMUTIL"; then
18427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18428 $as_echo "$DSYMUTIL" >&6; }
18429 else
18430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18431 $as_echo "no" >&6; }
18432 fi
18433 
18434 
18435   test -n "$DSYMUTIL" && break
18436 done
18437 
18438   else
18439     # The variable is set, but is it from the command line or the environment?
18440 
18441     # Try to remove the string !DSYMUTIL! from our list.
18442     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18443     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18444       # If it failed, the variable was not from the command line. Ignore it,
18445       # but warn the user (except for BASH, which is always set by the calling BASH).
18446       if test "xDSYMUTIL" != xBASH; then
18447         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18448 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18449       fi
18450       # Try to locate tool using the code snippet
18451       for ac_prog in dsymutil
18452 do
18453   # Extract the first word of "$ac_prog", so it can be a program name with args.
18454 set dummy $ac_prog; ac_word=$2
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18456 $as_echo_n "checking for $ac_word... " >&6; }
18457 if ${ac_cv_path_DSYMUTIL+:} false; then :
18458   $as_echo_n "(cached) " >&6
18459 else
18460   case $DSYMUTIL in
18461   [\\/]* | ?:[\\/]*)
18462   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18463   ;;
18464   *)
18465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18466 for as_dir in $PATH
18467 do
18468   IFS=$as_save_IFS
18469   test -z "$as_dir" && as_dir=.
18470     for ac_exec_ext in '' $ac_executable_extensions; do
18471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18472     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18474     break 2
18475   fi
18476 done
18477   done
18478 IFS=$as_save_IFS
18479 
18480   ;;
18481 esac
18482 fi
18483 DSYMUTIL=$ac_cv_path_DSYMUTIL
18484 if test -n "$DSYMUTIL"; then
18485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18486 $as_echo "$DSYMUTIL" >&6; }
18487 else
18488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18489 $as_echo "no" >&6; }
18490 fi
18491 
18492 
18493   test -n "$DSYMUTIL" && break
18494 done
18495 
18496     else
18497       # If it succeeded, then it was overridden by the user. We will use it
18498       # for the tool.
18499 
18500       # First remove it from the list of overridden variables, so we can test
18501       # for unknown variables in the end.
18502       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18503 
18504       # Check if the provided tool contains a complete path.
18505       tool_specified="$DSYMUTIL"
18506       tool_basename="${tool_specified##*/}"
18507       if test "x$tool_basename" = "x$tool_specified"; then
18508         # A command without a complete path is provided, search $PATH.
18509         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18510 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18511         # Extract the first word of "$tool_basename", so it can be a program name with args.
18512 set dummy $tool_basename; ac_word=$2
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18514 $as_echo_n "checking for $ac_word... " >&6; }
18515 if ${ac_cv_path_DSYMUTIL+:} false; then :
18516   $as_echo_n "(cached) " >&6
18517 else
18518   case $DSYMUTIL in
18519   [\\/]* | ?:[\\/]*)
18520   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18521   ;;
18522   *)
18523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18524 for as_dir in $PATH
18525 do
18526   IFS=$as_save_IFS
18527   test -z "$as_dir" && as_dir=.
18528     for ac_exec_ext in '' $ac_executable_extensions; do
18529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18530     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18532     break 2
18533   fi
18534 done
18535   done
18536 IFS=$as_save_IFS
18537 
18538   ;;
18539 esac
18540 fi
18541 DSYMUTIL=$ac_cv_path_DSYMUTIL
18542 if test -n "$DSYMUTIL"; then
18543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18544 $as_echo "$DSYMUTIL" >&6; }
18545 else
18546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18547 $as_echo "no" >&6; }
18548 fi
18549 
18550 
18551         if test "x$DSYMUTIL" = x; then
18552           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18553         fi
18554       else
18555         # Otherwise we believe it is a complete path. Use it as it is.
18556         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18557 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18559 $as_echo_n "checking for DSYMUTIL... " >&6; }
18560         if test ! -x "$tool_specified"; then
18561           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18562 $as_echo "not found" >&6; }
18563           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18564         fi
18565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18566 $as_echo "$tool_specified" >&6; }
18567       fi
18568     fi
18569   fi
18570 
18571 
18572 
18573   if test "x$DSYMUTIL" = x; then
18574     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18575   fi
18576 
18577 
18578 
18579 
18580 
18581   # Publish this variable in the help.
18582 
18583 
18584   if test "x$XATTR" = x; then
18585     # The variable is not set by user, try to locate tool using the code snippet
18586     for ac_prog in xattr
18587 do
18588   # Extract the first word of "$ac_prog", so it can be a program name with args.
18589 set dummy $ac_prog; ac_word=$2
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18591 $as_echo_n "checking for $ac_word... " >&6; }
18592 if ${ac_cv_path_XATTR+:} false; then :
18593   $as_echo_n "(cached) " >&6
18594 else
18595   case $XATTR in
18596   [\\/]* | ?:[\\/]*)
18597   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18598   ;;
18599   *)
18600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18601 for as_dir in $PATH
18602 do
18603   IFS=$as_save_IFS
18604   test -z "$as_dir" && as_dir=.
18605     for ac_exec_ext in '' $ac_executable_extensions; do
18606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18607     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18609     break 2
18610   fi
18611 done
18612   done
18613 IFS=$as_save_IFS
18614 
18615   ;;
18616 esac
18617 fi
18618 XATTR=$ac_cv_path_XATTR
18619 if test -n "$XATTR"; then
18620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18621 $as_echo "$XATTR" >&6; }
18622 else
18623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624 $as_echo "no" >&6; }
18625 fi
18626 
18627 
18628   test -n "$XATTR" && break
18629 done
18630 
18631   else
18632     # The variable is set, but is it from the command line or the environment?
18633 
18634     # Try to remove the string !XATTR! from our list.
18635     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18636     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18637       # If it failed, the variable was not from the command line. Ignore it,
18638       # but warn the user (except for BASH, which is always set by the calling BASH).
18639       if test "xXATTR" != xBASH; then
18640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18641 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18642       fi
18643       # Try to locate tool using the code snippet
18644       for ac_prog in xattr
18645 do
18646   # Extract the first word of "$ac_prog", so it can be a program name with args.
18647 set dummy $ac_prog; ac_word=$2
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18649 $as_echo_n "checking for $ac_word... " >&6; }
18650 if ${ac_cv_path_XATTR+:} false; then :
18651   $as_echo_n "(cached) " >&6
18652 else
18653   case $XATTR in
18654   [\\/]* | ?:[\\/]*)
18655   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18656   ;;
18657   *)
18658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18659 for as_dir in $PATH
18660 do
18661   IFS=$as_save_IFS
18662   test -z "$as_dir" && as_dir=.
18663     for ac_exec_ext in '' $ac_executable_extensions; do
18664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18665     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18667     break 2
18668   fi
18669 done
18670   done
18671 IFS=$as_save_IFS
18672 
18673   ;;
18674 esac
18675 fi
18676 XATTR=$ac_cv_path_XATTR
18677 if test -n "$XATTR"; then
18678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18679 $as_echo "$XATTR" >&6; }
18680 else
18681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18682 $as_echo "no" >&6; }
18683 fi
18684 
18685 
18686   test -n "$XATTR" && break
18687 done
18688 
18689     else
18690       # If it succeeded, then it was overridden by the user. We will use it
18691       # for the tool.
18692 
18693       # First remove it from the list of overridden variables, so we can test
18694       # for unknown variables in the end.
18695       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18696 
18697       # Check if the provided tool contains a complete path.
18698       tool_specified="$XATTR"
18699       tool_basename="${tool_specified##*/}"
18700       if test "x$tool_basename" = "x$tool_specified"; then
18701         # A command without a complete path is provided, search $PATH.
18702         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18703 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18704         # Extract the first word of "$tool_basename", so it can be a program name with args.
18705 set dummy $tool_basename; ac_word=$2
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18707 $as_echo_n "checking for $ac_word... " >&6; }
18708 if ${ac_cv_path_XATTR+:} false; then :
18709   $as_echo_n "(cached) " >&6
18710 else
18711   case $XATTR in
18712   [\\/]* | ?:[\\/]*)
18713   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18714   ;;
18715   *)
18716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18717 for as_dir in $PATH
18718 do
18719   IFS=$as_save_IFS
18720   test -z "$as_dir" && as_dir=.
18721     for ac_exec_ext in '' $ac_executable_extensions; do
18722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18723     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18725     break 2
18726   fi
18727 done
18728   done
18729 IFS=$as_save_IFS
18730 
18731   ;;
18732 esac
18733 fi
18734 XATTR=$ac_cv_path_XATTR
18735 if test -n "$XATTR"; then
18736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18737 $as_echo "$XATTR" >&6; }
18738 else
18739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740 $as_echo "no" >&6; }
18741 fi
18742 
18743 
18744         if test "x$XATTR" = x; then
18745           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18746         fi
18747       else
18748         # Otherwise we believe it is a complete path. Use it as it is.
18749         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18750 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18751         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18752 $as_echo_n "checking for XATTR... " >&6; }
18753         if test ! -x "$tool_specified"; then
18754           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18755 $as_echo "not found" >&6; }
18756           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18757         fi
18758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18759 $as_echo "$tool_specified" >&6; }
18760       fi
18761     fi
18762   fi
18763 
18764 
18765 
18766   if test "x$XATTR" = x; then
18767     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18768   fi
18769 
18770 
18771 
18772 
18773   # Publish this variable in the help.
18774 
18775 
18776   if test "x$CODESIGN" = x; then
18777     # The variable is not set by user, try to locate tool using the code snippet
18778     for ac_prog in codesign
18779 do
18780   # Extract the first word of "$ac_prog", so it can be a program name with args.
18781 set dummy $ac_prog; ac_word=$2
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18783 $as_echo_n "checking for $ac_word... " >&6; }
18784 if ${ac_cv_path_CODESIGN+:} false; then :
18785   $as_echo_n "(cached) " >&6
18786 else
18787   case $CODESIGN in
18788   [\\/]* | ?:[\\/]*)
18789   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18790   ;;
18791   *)
18792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18793 for as_dir in $PATH
18794 do
18795   IFS=$as_save_IFS
18796   test -z "$as_dir" && as_dir=.
18797     for ac_exec_ext in '' $ac_executable_extensions; do
18798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18799     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18801     break 2
18802   fi
18803 done
18804   done
18805 IFS=$as_save_IFS
18806 
18807   ;;
18808 esac
18809 fi
18810 CODESIGN=$ac_cv_path_CODESIGN
18811 if test -n "$CODESIGN"; then
18812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18813 $as_echo "$CODESIGN" >&6; }
18814 else
18815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 $as_echo "no" >&6; }
18817 fi
18818 
18819 
18820   test -n "$CODESIGN" && break
18821 done
18822 
18823   else
18824     # The variable is set, but is it from the command line or the environment?
18825 
18826     # Try to remove the string !CODESIGN! from our list.
18827     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18828     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18829       # If it failed, the variable was not from the command line. Ignore it,
18830       # but warn the user (except for BASH, which is always set by the calling BASH).
18831       if test "xCODESIGN" != xBASH; then
18832         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
18833 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
18834       fi
18835       # Try to locate tool using the code snippet
18836       for ac_prog in codesign
18837 do
18838   # Extract the first word of "$ac_prog", so it can be a program name with args.
18839 set dummy $ac_prog; ac_word=$2
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18841 $as_echo_n "checking for $ac_word... " >&6; }
18842 if ${ac_cv_path_CODESIGN+:} false; then :
18843   $as_echo_n "(cached) " >&6
18844 else
18845   case $CODESIGN in
18846   [\\/]* | ?:[\\/]*)
18847   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18848   ;;
18849   *)
18850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18851 for as_dir in $PATH
18852 do
18853   IFS=$as_save_IFS
18854   test -z "$as_dir" && as_dir=.
18855     for ac_exec_ext in '' $ac_executable_extensions; do
18856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18857     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18859     break 2
18860   fi
18861 done
18862   done
18863 IFS=$as_save_IFS
18864 
18865   ;;
18866 esac
18867 fi
18868 CODESIGN=$ac_cv_path_CODESIGN
18869 if test -n "$CODESIGN"; then
18870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18871 $as_echo "$CODESIGN" >&6; }
18872 else
18873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18874 $as_echo "no" >&6; }
18875 fi
18876 
18877 
18878   test -n "$CODESIGN" && break
18879 done
18880 
18881     else
18882       # If it succeeded, then it was overridden by the user. We will use it
18883       # for the tool.
18884 
18885       # First remove it from the list of overridden variables, so we can test
18886       # for unknown variables in the end.
18887       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18888 
18889       # Check if the provided tool contains a complete path.
18890       tool_specified="$CODESIGN"
18891       tool_basename="${tool_specified##*/}"
18892       if test "x$tool_basename" = "x$tool_specified"; then
18893         # A command without a complete path is provided, search $PATH.
18894         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
18895 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
18896         # Extract the first word of "$tool_basename", so it can be a program name with args.
18897 set dummy $tool_basename; ac_word=$2
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18899 $as_echo_n "checking for $ac_word... " >&6; }
18900 if ${ac_cv_path_CODESIGN+:} false; then :
18901   $as_echo_n "(cached) " >&6
18902 else
18903   case $CODESIGN in
18904   [\\/]* | ?:[\\/]*)
18905   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18906   ;;
18907   *)
18908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18909 for as_dir in $PATH
18910 do
18911   IFS=$as_save_IFS
18912   test -z "$as_dir" && as_dir=.
18913     for ac_exec_ext in '' $ac_executable_extensions; do
18914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18915     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18917     break 2
18918   fi
18919 done
18920   done
18921 IFS=$as_save_IFS
18922 
18923   ;;
18924 esac
18925 fi
18926 CODESIGN=$ac_cv_path_CODESIGN
18927 if test -n "$CODESIGN"; then
18928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18929 $as_echo "$CODESIGN" >&6; }
18930 else
18931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932 $as_echo "no" >&6; }
18933 fi
18934 
18935 
18936         if test "x$CODESIGN" = x; then
18937           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18938         fi
18939       else
18940         # Otherwise we believe it is a complete path. Use it as it is.
18941         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
18942 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
18943         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
18944 $as_echo_n "checking for CODESIGN... " >&6; }
18945         if test ! -x "$tool_specified"; then
18946           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18947 $as_echo "not found" >&6; }
18948           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
18949         fi
18950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18951 $as_echo "$tool_specified" >&6; }
18952       fi
18953     fi
18954   fi
18955 
18956 
18957     if test "x$CODESIGN" != "x"; then
18958       # Verify that the openjdk_codesign certificate is present
18959       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
18960 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
18961       rm -f codesign-testfile
18962       touch codesign-testfile
18963       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
18964       rm -f codesign-testfile
18965       if test "x$CODESIGN" = x; then
18966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18967 $as_echo "no" >&6; }
18968       else
18969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18970 $as_echo "yes" >&6; }
18971       fi
18972     fi
18973   fi
18974 
18975 
18976 # Check if pkg-config is available.
18977 
18978 
18979 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18980         if test -n "$ac_tool_prefix"; then
18981   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18982 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18984 $as_echo_n "checking for $ac_word... " >&6; }
18985 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18986   $as_echo_n "(cached) " >&6
18987 else
18988   case $PKG_CONFIG in
18989   [\\/]* | ?:[\\/]*)
18990   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18991   ;;
18992   *)
18993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18994 for as_dir in $PATH
18995 do
18996   IFS=$as_save_IFS
18997   test -z "$as_dir" && as_dir=.
18998     for ac_exec_ext in '' $ac_executable_extensions; do
18999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19000     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19002     break 2
19003   fi
19004 done
19005   done
19006 IFS=$as_save_IFS
19007 
19008   ;;
19009 esac
19010 fi
19011 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19012 if test -n "$PKG_CONFIG"; then
19013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19014 $as_echo "$PKG_CONFIG" >&6; }
19015 else
19016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19017 $as_echo "no" >&6; }
19018 fi
19019 
19020 
19021 fi
19022 if test -z "$ac_cv_path_PKG_CONFIG"; then
19023   ac_pt_PKG_CONFIG=$PKG_CONFIG
19024   # Extract the first word of "pkg-config", so it can be a program name with args.
19025 set dummy pkg-config; ac_word=$2
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19027 $as_echo_n "checking for $ac_word... " >&6; }
19028 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19029   $as_echo_n "(cached) " >&6
19030 else
19031   case $ac_pt_PKG_CONFIG in
19032   [\\/]* | ?:[\\/]*)
19033   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19034   ;;
19035   *)
19036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19037 for as_dir in $PATH
19038 do
19039   IFS=$as_save_IFS
19040   test -z "$as_dir" && as_dir=.
19041     for ac_exec_ext in '' $ac_executable_extensions; do
19042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19043     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19045     break 2
19046   fi
19047 done
19048   done
19049 IFS=$as_save_IFS
19050 
19051   ;;
19052 esac
19053 fi
19054 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19055 if test -n "$ac_pt_PKG_CONFIG"; then
19056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19057 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19058 else
19059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060 $as_echo "no" >&6; }
19061 fi
19062 
19063   if test "x$ac_pt_PKG_CONFIG" = x; then
19064     PKG_CONFIG=""
19065   else
19066     case $cross_compiling:$ac_tool_warned in
19067 yes:)
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19070 ac_tool_warned=yes ;;
19071 esac
19072     PKG_CONFIG=$ac_pt_PKG_CONFIG
19073   fi
19074 else
19075   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19076 fi
19077 
19078 fi
19079 if test -n "$PKG_CONFIG"; then
19080         _pkg_min_version=0.9.0
19081         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19082 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19083         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19084                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19085 $as_echo "yes" >&6; }
19086         else
19087                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19088 $as_echo "no" >&6; }
19089                 PKG_CONFIG=""
19090         fi
19091 
19092 fi
19093 
19094 # After basic tools have been setup, we can check build os specific details.
19095 
19096   ###############################################################################
19097 
19098   # Note that this is the build platform OS version!
19099 
19100   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19101   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19102   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19103   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19104 
19105 
19106 
19107 
19108 
19109 # Setup builddeps, for automatic downloading of tools we need.
19110 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19111 # boot-jdk setup, but we need to have basic tools setup first.
19112 
19113 
19114 # Check whether --with-builddeps-conf was given.
19115 if test "${with_builddeps_conf+set}" = set; then :
19116   withval=$with_builddeps_conf;
19117 fi
19118 
19119 
19120 
19121 # Check whether --with-builddeps-server was given.
19122 if test "${with_builddeps_server+set}" = set; then :
19123   withval=$with_builddeps_server;
19124 fi
19125 
19126 
19127 
19128 # Check whether --with-builddeps-dir was given.
19129 if test "${with_builddeps_dir+set}" = set; then :
19130   withval=$with_builddeps_dir;
19131 else
19132   with_builddeps_dir=/localhome/builddeps
19133 fi
19134 
19135 
19136 
19137 # Check whether --with-builddeps-group was given.
19138 if test "${with_builddeps_group+set}" = set; then :
19139   withval=$with_builddeps_group;
19140 fi
19141 
19142 
19143 
19144 
19145   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19146     if test "x$with_builddeps_conf" != x; then
19147       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19148 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19149       builddepsfile=$with_builddeps_conf
19150       if test -s $builddepsfile; then
19151         . $builddepsfile
19152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19153 $as_echo "loaded!" >&6; }
19154       else
19155         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19156       fi
19157     else
19158       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19159 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19160       builddepsfile=`mktemp`
19161       touch $builddepsfile
19162       # Put all found confs into a single file.
19163       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19164       # Source the file to acquire the variables
19165       if test -s $builddepsfile; then
19166         . $builddepsfile
19167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19168 $as_echo "found at least one!" >&6; }
19169       else
19170         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19171       fi
19172     fi
19173     # Create build and target names that use _ instead of "-" and ".".
19174     # This is necessary to use them in variable names.
19175     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19176     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19177     # Extract rewrite information for build and target
19178     eval rewritten_build=\${REWRITE_${build_var}}
19179     if test "x$rewritten_build" = x; then
19180       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19181       echo Build stays the same $rewritten_build
19182     else
19183       echo Rewriting build for builddeps into $rewritten_build
19184     fi
19185     eval rewritten_target=\${REWRITE_${target_var}}
19186     if test "x$rewritten_target" = x; then
19187       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19188       echo Target stays the same $rewritten_target
19189     else
19190       echo Rewriting target for builddeps into $rewritten_target
19191     fi
19192     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19193     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19194   fi
19195   for ac_prog in 7z unzip
19196 do
19197   # Extract the first word of "$ac_prog", so it can be a program name with args.
19198 set dummy $ac_prog; ac_word=$2
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19200 $as_echo_n "checking for $ac_word... " >&6; }
19201 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19202   $as_echo_n "(cached) " >&6
19203 else
19204   if test -n "$BDEPS_UNZIP"; then
19205   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19206 else
19207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19208 for as_dir in $PATH
19209 do
19210   IFS=$as_save_IFS
19211   test -z "$as_dir" && as_dir=.
19212     for ac_exec_ext in '' $ac_executable_extensions; do
19213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19214     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19216     break 2
19217   fi
19218 done
19219   done
19220 IFS=$as_save_IFS
19221 
19222 fi
19223 fi
19224 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19225 if test -n "$BDEPS_UNZIP"; then
19226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19227 $as_echo "$BDEPS_UNZIP" >&6; }
19228 else
19229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19231 fi
19232 
19233 
19234   test -n "$BDEPS_UNZIP" && break
19235 done
19236 
19237   if test "x$BDEPS_UNZIP" = x7z; then
19238     BDEPS_UNZIP="7z x"
19239   fi
19240 
19241   for ac_prog in wget lftp ftp
19242 do
19243   # Extract the first word of "$ac_prog", so it can be a program name with args.
19244 set dummy $ac_prog; ac_word=$2
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19246 $as_echo_n "checking for $ac_word... " >&6; }
19247 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19248   $as_echo_n "(cached) " >&6
19249 else
19250   if test -n "$BDEPS_FTP"; then
19251   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19252 else
19253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19254 for as_dir in $PATH
19255 do
19256   IFS=$as_save_IFS
19257   test -z "$as_dir" && as_dir=.
19258     for ac_exec_ext in '' $ac_executable_extensions; do
19259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19260     ac_cv_prog_BDEPS_FTP="$ac_prog"
19261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19262     break 2
19263   fi
19264 done
19265   done
19266 IFS=$as_save_IFS
19267 
19268 fi
19269 fi
19270 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19271 if test -n "$BDEPS_FTP"; then
19272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19273 $as_echo "$BDEPS_FTP" >&6; }
19274 else
19275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19276 $as_echo "no" >&6; }
19277 fi
19278 
19279 
19280   test -n "$BDEPS_FTP" && break
19281 done
19282 
19283 
19284 
19285 ###############################################################################
19286 #
19287 # Determine OpenJDK variants, options and version numbers.
19288 #
19289 ###############################################################################
19290 
19291 # We need build & target for this.
19292 
19293 
19294   ###############################################################################
19295   #
19296   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19297   # We always build headless support.
19298   #
19299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19300 $as_echo_n "checking headful support... " >&6; }
19301   # Check whether --enable-headful was given.
19302 if test "${enable_headful+set}" = set; then :
19303   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19304 else
19305   SUPPORT_HEADFUL=yes
19306 fi
19307 
19308 
19309   SUPPORT_HEADLESS=yes
19310   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19311 
19312   if test "x$SUPPORT_HEADFUL" = xyes; then
19313     # We are building both headful and headless.
19314     headful_msg="include support for both headful and headless"
19315   fi
19316 
19317   if test "x$SUPPORT_HEADFUL" = xno; then
19318     # Thus we are building headless only.
19319     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19320     headful_msg="headless only"
19321   fi
19322 
19323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19324 $as_echo "$headful_msg" >&6; }
19325 
19326 
19327 
19328 
19329 
19330   # Control wether Hotspot runs Queens test after build.
19331   # Check whether --enable-hotspot-test-in-build was given.
19332 if test "${enable_hotspot_test_in_build+set}" = set; then :
19333   enableval=$enable_hotspot_test_in_build;
19334 else
19335   enable_hotspot_test_in_build=no
19336 fi
19337 
19338   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19339     TEST_IN_BUILD=true
19340   else
19341     TEST_IN_BUILD=false
19342   fi
19343 
19344 
19345   ###############################################################################
19346   #
19347   # Choose cacerts source file
19348   #
19349 
19350 # Check whether --with-cacerts-file was given.
19351 if test "${with_cacerts_file+set}" = set; then :
19352   withval=$with_cacerts_file;
19353 fi
19354 
19355   if test "x$with_cacerts_file" != x; then
19356     CACERTS_FILE=$with_cacerts_file
19357   else
19358     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19359   fi
19360 
19361 
19362   ###############################################################################
19363   #
19364   # Enable or disable unlimited crypto
19365   #
19366   # Check whether --enable-unlimited-crypto was given.
19367 if test "${enable_unlimited_crypto+set}" = set; then :
19368   enableval=$enable_unlimited_crypto;
19369 else
19370   enable_unlimited_crypto=no
19371 fi
19372 
19373   if test "x$enable_unlimited_crypto" = "xyes"; then
19374     UNLIMITED_CRYPTO=true
19375   else
19376     UNLIMITED_CRYPTO=false
19377   fi
19378 
19379 
19380   ###############################################################################
19381   #
19382   # Enable or disable the elliptic curve crypto implementation
19383   #
19384 
19385 
19386   ###############################################################################
19387   #
19388   # Compress jars
19389   #
19390   COMPRESS_JARS=false
19391 
19392 
19393 
19394 
19395   # Source the version numbers
19396   . $AUTOCONF_DIR/version-numbers
19397 
19398   # Get the settings from parameters
19399 
19400 # Check whether --with-milestone was given.
19401 if test "${with_milestone+set}" = set; then :
19402   withval=$with_milestone;
19403 fi
19404 
19405   if test "x$with_milestone" = xyes; then
19406     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19407   elif test "x$with_milestone" != x; then
19408     MILESTONE="$with_milestone"
19409   fi
19410   if test "x$MILESTONE" = x; then
19411     MILESTONE=internal
19412   fi
19413 
19414 
19415 # Check whether --with-update-version was given.
19416 if test "${with_update_version+set}" = set; then :
19417   withval=$with_update_version;
19418 fi
19419 
19420   if test "x$with_update_version" = xyes; then
19421     as_fn_error $? "Update version must have a value" "$LINENO" 5
19422   elif test "x$with_update_version" != x; then
19423     JDK_UPDATE_VERSION="$with_update_version"
19424     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19425     # to a bug in expr (which reduces it to just X). To work around this, we
19426     # always add a 0 to one digit update versions.
19427     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19428       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19429     fi
19430   fi
19431 
19432 
19433 # Check whether --with-user-release-suffix was given.
19434 if test "${with_user_release_suffix+set}" = set; then :
19435   withval=$with_user_release_suffix;
19436 fi
19437 
19438   if test "x$with_user_release_suffix" = xyes; then
19439     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19440   elif test "x$with_user_release_suffix" != x; then
19441     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19442   fi
19443 
19444 
19445 # Check whether --with-build-number was given.
19446 if test "${with_build_number+set}" = set; then :
19447   withval=$with_build_number;
19448 fi
19449 
19450   if test "x$with_build_number" = xyes; then
19451     as_fn_error $? "Build number must have a value" "$LINENO" 5
19452   elif test "x$with_build_number" != x; then
19453     JDK_BUILD_NUMBER="$with_build_number"
19454   fi
19455   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19456   if test "x$JDK_BUILD_NUMBER" = x; then
19457     JDK_BUILD_NUMBER=b00
19458     if test "x$USER_RELEASE_SUFFIX" = x; then
19459       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19460       # Avoid [:alnum:] since it depends on the locale.
19461       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19462       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19463     fi
19464   fi
19465 
19466   # Now set the JDK version, milestone, build number etc.
19467 
19468 
19469 
19470 
19471 
19472 
19473 
19474 
19475 
19476 
19477 
19478 
19479 
19480 
19481 
19482   COPYRIGHT_YEAR=`date +'%Y'`
19483 
19484 
19485   if test "x$JDK_UPDATE_VERSION" != x; then
19486     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19487   else
19488     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19489   fi
19490 
19491 
19492   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19493 
19494 
19495 
19496 ###############################################################################
19497 #
19498 # Setup BootJDK, used to bootstrap the build.
19499 #
19500 ###############################################################################
19501 
19502 
19503   BOOT_JDK_FOUND=no
19504 
19505 # Check whether --with-boot-jdk was given.
19506 if test "${with_boot_jdk+set}" = set; then :
19507   withval=$with_boot_jdk;
19508 fi
19509 
19510 
19511   # We look for the Boot JDK through various means, going from more certain to
19512   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19513   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19514   # must check if this is indeed valid; otherwise we'll continue looking.
19515 
19516   # Test: Is bootjdk explicitely set by command line arguments?
19517 
19518   if test "x$BOOT_JDK_FOUND" = xno; then
19519     # Now execute the test
19520 
19521   if test "x$with_boot_jdk" != x; then
19522     BOOT_JDK=$with_boot_jdk
19523     BOOT_JDK_FOUND=maybe
19524     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19525 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19526   fi
19527 
19528 
19529     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19530     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19531       # Do we have a bin/java?
19532       if test ! -x "$BOOT_JDK/bin/java"; then
19533         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19534 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19535         BOOT_JDK_FOUND=no
19536       else
19537         # Do we have a bin/javac?
19538         if test ! -x "$BOOT_JDK/bin/javac"; then
19539           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19540 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19541           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19542 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19543           BOOT_JDK_FOUND=no
19544         else
19545           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19546           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19547             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19548 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19549             BOOT_JDK_FOUND=no
19550           else
19551             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19552             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19553 
19554             # Extra M4 quote needed to protect [] in grep expression.
19555             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19556             if test "x$FOUND_CORRECT_VERSION" = x; then
19557               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19558 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19559               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19560 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19561               BOOT_JDK_FOUND=no
19562             else
19563               # We're done! :-)
19564               BOOT_JDK_FOUND=yes
19565 
19566   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19567 
19568   # Input might be given as Windows format, start by converting to
19569   # unix format.
19570   path="$BOOT_JDK"
19571   new_path=`$CYGPATH -u "$path"`
19572 
19573   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19574   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19575   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19576   # "foo.exe" is OK but "foo" is an error.
19577   #
19578   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19579   # It is also a way to make sure we got the proper file name for the real test later on.
19580   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19581   if test "x$test_shortpath" = x; then
19582     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19583 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19584     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19585   fi
19586 
19587   # Call helper function which possibly converts this using DOS-style short mode.
19588   # If so, the updated path is stored in $new_path.
19589 
19590   input_path="$new_path"
19591   # Check if we need to convert this using DOS-style short mode. If the path
19592   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19593   # take no chances and rewrite it.
19594   # Note: m4 eats our [], so we need to use [ and ] instead.
19595   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19596   if test "x$has_forbidden_chars" != x; then
19597     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19598     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19599     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19600     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19601       # Going to short mode and back again did indeed matter. Since short mode is
19602       # case insensitive, let's make it lowercase to improve readability.
19603       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19604       # Now convert it back to Unix-stile (cygpath)
19605       input_path=`$CYGPATH -u "$shortmode_path"`
19606       new_path="$input_path"
19607     fi
19608   fi
19609 
19610   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19611   if test "x$test_cygdrive_prefix" = x; then
19612     # As a simple fix, exclude /usr/bin since it's not a real path.
19613     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19614       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19615       # a path prefixed by /cygdrive for fixpath to work.
19616       new_path="$CYGWIN_ROOT_PATH$input_path"
19617     fi
19618   fi
19619 
19620 
19621   if test "x$path" != "x$new_path"; then
19622     BOOT_JDK="$new_path"
19623     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19624 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19625   fi
19626 
19627   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19628 
19629   path="$BOOT_JDK"
19630   has_colon=`$ECHO $path | $GREP ^.:`
19631   new_path="$path"
19632   if test "x$has_colon" = x; then
19633     # Not in mixed or Windows style, start by that.
19634     new_path=`cmd //c echo $path`
19635   fi
19636 
19637 
19638   input_path="$new_path"
19639   # Check if we need to convert this using DOS-style short mode. If the path
19640   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19641   # take no chances and rewrite it.
19642   # Note: m4 eats our [], so we need to use [ and ] instead.
19643   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19644   if test "x$has_forbidden_chars" != x; then
19645     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19646     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19647   fi
19648 
19649 
19650   windows_path="$new_path"
19651   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19652     unix_path=`$CYGPATH -u "$windows_path"`
19653     new_path="$unix_path"
19654   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19655     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19656     new_path="$unix_path"
19657   fi
19658 
19659   if test "x$path" != "x$new_path"; then
19660     BOOT_JDK="$new_path"
19661     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19662 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19663   fi
19664 
19665   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19666   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19667 
19668   else
19669     # We're on a posix platform. Hooray! :)
19670     path="$BOOT_JDK"
19671     has_space=`$ECHO "$path" | $GREP " "`
19672     if test "x$has_space" != x; then
19673       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19674 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19675       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19676     fi
19677 
19678     # Use eval to expand a potential ~
19679     eval path="$path"
19680     if test ! -f "$path" && test ! -d "$path"; then
19681       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19682     fi
19683 
19684     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19685   fi
19686 
19687               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19688 $as_echo_n "checking for Boot JDK... " >&6; }
19689               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19690 $as_echo "$BOOT_JDK" >&6; }
19691               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19692 $as_echo_n "checking Boot JDK version... " >&6; }
19693               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19694               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19695 $as_echo "$BOOT_JDK_VERSION" >&6; }
19696             fi # end check jdk version
19697           fi # end check rt.jar
19698         fi # end check javac
19699       fi # end check java
19700     fi # end check boot jdk found
19701   fi
19702 
19703   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19704     # Having specified an argument which is incorrect will produce an instant failure;
19705     # we should not go on looking
19706     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19707   fi
19708 
19709   # Test: Is bootjdk available from builddeps?
19710 
19711   if test "x$BOOT_JDK_FOUND" = xno; then
19712     # Now execute the test
19713 
19714 
19715 
19716   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19717     # Source the builddeps file again, to make sure it uses the latest variables!
19718     . $builddepsfile
19719     # Look for a target and build machine specific resource!
19720     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19721     if test "x$resource" = x; then
19722       # Ok, lets instead look for a target specific resource
19723       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19724     fi
19725     if test "x$resource" = x; then
19726       # Ok, lets instead look for a build specific resource
19727       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19728     fi
19729     if test "x$resource" = x; then
19730       # Ok, lets instead look for a generic resource
19731       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19732       resource=${builddep_bootjdk}
19733     fi
19734     if test "x$resource" != x; then
19735       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19736 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19737       # If the resource in the builddeps.conf file is an existing directory,
19738       # for example /java/linux/cups
19739       if test -d ${resource}; then
19740         depdir=${resource}
19741       else
19742 
19743   # bootjdk is for example mymodule
19744   # $resource is for example libs/general/libmymod_1_2_3.zip
19745   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19746   # $with_builddeps_dir is for example /localhome/builddeps
19747   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19748   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19749   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19750   filename=`basename $resource`
19751   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19752   filebase=${filename%%.*}
19753   extension=${filename#*.}
19754   installdir=$with_builddeps_dir/$filebase
19755   if test ! -f $installdir/$filename.unpacked; then
19756     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19757 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19758     if test ! -d $installdir; then
19759       mkdir -p $installdir
19760     fi
19761     if test ! -d $installdir; then
19762       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19763     fi
19764     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19765     touch $tmpfile
19766     if test ! -f $tmpfile; then
19767       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19768     fi
19769 
19770   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19771   # $tmpfile is the local file name for the downloaded file.
19772   VALID_TOOL=no
19773   if test "x$BDEPS_FTP" = xwget; then
19774     VALID_TOOL=yes
19775     wget -O $tmpfile $with_builddeps_server/$resource
19776   fi
19777   if test "x$BDEPS_FTP" = xlftp; then
19778     VALID_TOOL=yes
19779     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19780   fi
19781   if test "x$BDEPS_FTP" = xftp; then
19782     VALID_TOOL=yes
19783     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19784     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19785     FTPUSERPWD=${FTPSERVER%%@*}
19786     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19787       FTPUSER=${userpwd%%:*}
19788       FTPPWD=${userpwd#*@}
19789       FTPSERVER=${FTPSERVER#*@}
19790     else
19791       FTPUSER=ftp
19792       FTPPWD=ftp
19793     fi
19794     # the "pass" command does not work on some
19795     # ftp clients (read ftp.exe) but if it works,
19796     # passive mode is better!
19797     ( \
19798         echo "user $FTPUSER $FTPPWD"        ; \
19799         echo "pass"                         ; \
19800         echo "bin"                          ; \
19801         echo "get $FTPPATH $tmpfile"              ; \
19802     ) | ftp -in $FTPSERVER
19803   fi
19804   if test "x$VALID_TOOL" != xyes; then
19805     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19806   fi
19807 
19808     mv $tmpfile $installdir/$filename
19809     if test ! -s $installdir/$filename; then
19810       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19811     fi
19812     case "$extension" in
19813       zip)  echo "Unzipping $installdir/$filename..."
19814         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
19815         ;;
19816       tar.gz) echo "Untaring $installdir/$filename..."
19817         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19818         ;;
19819       tgz) echo "Untaring $installdir/$filename..."
19820         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19821         ;;
19822       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
19823         ;;
19824     esac
19825   fi
19826   if test -f $installdir/$filename.unpacked; then
19827     depdir=$installdir
19828   fi
19829 
19830       fi
19831       # Source the builddeps file again, because in the previous command, the depdir
19832       # was updated to point at the current build dependency install directory.
19833       . $builddepsfile
19834       # Now extract variables from the builddeps.conf files.
19835       theroot=${builddep_bootjdk_ROOT}
19836       thecflags=${builddep_bootjdk_CFLAGS}
19837       thelibs=${builddep_bootjdk_LIBS}
19838       if test "x$depdir" = x; then
19839         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
19840       fi
19841       BOOT_JDK=$depdir
19842       if test "x$theroot" != x; then
19843         BOOT_JDK="$theroot"
19844       fi
19845       if test "x$thecflags" != x; then
19846         BOOT_JDK_CFLAGS="$thecflags"
19847       fi
19848       if test "x$thelibs" != x; then
19849         BOOT_JDK_LIBS="$thelibs"
19850       fi
19851       BOOT_JDK_FOUND=maybe
19852       else BOOT_JDK_FOUND=no
19853 
19854     fi
19855     else BOOT_JDK_FOUND=no
19856 
19857   fi
19858 
19859 
19860 
19861     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19862     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19863       # Do we have a bin/java?
19864       if test ! -x "$BOOT_JDK/bin/java"; then
19865         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19867         BOOT_JDK_FOUND=no
19868       else
19869         # Do we have a bin/javac?
19870         if test ! -x "$BOOT_JDK/bin/javac"; then
19871           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19873           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19874 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19875           BOOT_JDK_FOUND=no
19876         else
19877           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19878           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19879             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19881             BOOT_JDK_FOUND=no
19882           else
19883             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19884             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19885 
19886             # Extra M4 quote needed to protect [] in grep expression.
19887             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19888             if test "x$FOUND_CORRECT_VERSION" = x; then
19889               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19890 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19891               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19892 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19893               BOOT_JDK_FOUND=no
19894             else
19895               # We're done! :-)
19896               BOOT_JDK_FOUND=yes
19897 
19898   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19899 
19900   # Input might be given as Windows format, start by converting to
19901   # unix format.
19902   path="$BOOT_JDK"
19903   new_path=`$CYGPATH -u "$path"`
19904 
19905   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19906   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19907   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19908   # "foo.exe" is OK but "foo" is an error.
19909   #
19910   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19911   # It is also a way to make sure we got the proper file name for the real test later on.
19912   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19913   if test "x$test_shortpath" = x; then
19914     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19916     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19917   fi
19918 
19919   # Call helper function which possibly converts this using DOS-style short mode.
19920   # If so, the updated path is stored in $new_path.
19921 
19922   input_path="$new_path"
19923   # Check if we need to convert this using DOS-style short mode. If the path
19924   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19925   # take no chances and rewrite it.
19926   # Note: m4 eats our [], so we need to use [ and ] instead.
19927   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19928   if test "x$has_forbidden_chars" != x; then
19929     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19930     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19931     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19932     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19933       # Going to short mode and back again did indeed matter. Since short mode is
19934       # case insensitive, let's make it lowercase to improve readability.
19935       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19936       # Now convert it back to Unix-stile (cygpath)
19937       input_path=`$CYGPATH -u "$shortmode_path"`
19938       new_path="$input_path"
19939     fi
19940   fi
19941 
19942   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19943   if test "x$test_cygdrive_prefix" = x; then
19944     # As a simple fix, exclude /usr/bin since it's not a real path.
19945     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19946       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19947       # a path prefixed by /cygdrive for fixpath to work.
19948       new_path="$CYGWIN_ROOT_PATH$input_path"
19949     fi
19950   fi
19951 
19952 
19953   if test "x$path" != "x$new_path"; then
19954     BOOT_JDK="$new_path"
19955     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19956 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19957   fi
19958 
19959   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19960 
19961   path="$BOOT_JDK"
19962   has_colon=`$ECHO $path | $GREP ^.:`
19963   new_path="$path"
19964   if test "x$has_colon" = x; then
19965     # Not in mixed or Windows style, start by that.
19966     new_path=`cmd //c echo $path`
19967   fi
19968 
19969 
19970   input_path="$new_path"
19971   # Check if we need to convert this using DOS-style short mode. If the path
19972   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19973   # take no chances and rewrite it.
19974   # Note: m4 eats our [], so we need to use [ and ] instead.
19975   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19976   if test "x$has_forbidden_chars" != x; then
19977     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19978     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19979   fi
19980 
19981 
19982   windows_path="$new_path"
19983   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19984     unix_path=`$CYGPATH -u "$windows_path"`
19985     new_path="$unix_path"
19986   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19987     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19988     new_path="$unix_path"
19989   fi
19990 
19991   if test "x$path" != "x$new_path"; then
19992     BOOT_JDK="$new_path"
19993     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19994 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19995   fi
19996 
19997   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19998   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19999 
20000   else
20001     # We're on a posix platform. Hooray! :)
20002     path="$BOOT_JDK"
20003     has_space=`$ECHO "$path" | $GREP " "`
20004     if test "x$has_space" != x; then
20005       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20006 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20007       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20008     fi
20009 
20010     # Use eval to expand a potential ~
20011     eval path="$path"
20012     if test ! -f "$path" && test ! -d "$path"; then
20013       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20014     fi
20015 
20016     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20017   fi
20018 
20019               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20020 $as_echo_n "checking for Boot JDK... " >&6; }
20021               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20022 $as_echo "$BOOT_JDK" >&6; }
20023               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20024 $as_echo_n "checking Boot JDK version... " >&6; }
20025               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20026               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20027 $as_echo "$BOOT_JDK_VERSION" >&6; }
20028             fi # end check jdk version
20029           fi # end check rt.jar
20030         fi # end check javac
20031       fi # end check java
20032     fi # end check boot jdk found
20033   fi
20034 
20035 
20036   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20037 
20038   if test "x$BOOT_JDK_FOUND" = xno; then
20039     # Now execute the test
20040 
20041   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20042     # First check at user selected default
20043 
20044   if test "x$BOOT_JDK_FOUND" = xno; then
20045     # Now execute the test
20046 
20047   if test -x /usr/libexec/java_home; then
20048     BOOT_JDK=`/usr/libexec/java_home `
20049     BOOT_JDK_FOUND=maybe
20050     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20051 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20052   fi
20053 
20054 
20055     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20056     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20057       # Do we have a bin/java?
20058       if test ! -x "$BOOT_JDK/bin/java"; then
20059         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20060 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20061         BOOT_JDK_FOUND=no
20062       else
20063         # Do we have a bin/javac?
20064         if test ! -x "$BOOT_JDK/bin/javac"; then
20065           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20066 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20067           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20068 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20069           BOOT_JDK_FOUND=no
20070         else
20071           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20072           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20073             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20074 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20075             BOOT_JDK_FOUND=no
20076           else
20077             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20078             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20079 
20080             # Extra M4 quote needed to protect [] in grep expression.
20081             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20082             if test "x$FOUND_CORRECT_VERSION" = x; then
20083               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20084 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20085               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20086 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20087               BOOT_JDK_FOUND=no
20088             else
20089               # We're done! :-)
20090               BOOT_JDK_FOUND=yes
20091 
20092   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20093 
20094   # Input might be given as Windows format, start by converting to
20095   # unix format.
20096   path="$BOOT_JDK"
20097   new_path=`$CYGPATH -u "$path"`
20098 
20099   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20100   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20101   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20102   # "foo.exe" is OK but "foo" is an error.
20103   #
20104   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20105   # It is also a way to make sure we got the proper file name for the real test later on.
20106   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20107   if test "x$test_shortpath" = x; then
20108     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20109 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20110     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20111   fi
20112 
20113   # Call helper function which possibly converts this using DOS-style short mode.
20114   # If so, the updated path is stored in $new_path.
20115 
20116   input_path="$new_path"
20117   # Check if we need to convert this using DOS-style short mode. If the path
20118   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20119   # take no chances and rewrite it.
20120   # Note: m4 eats our [], so we need to use [ and ] instead.
20121   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20122   if test "x$has_forbidden_chars" != x; then
20123     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20124     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20125     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20126     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20127       # Going to short mode and back again did indeed matter. Since short mode is
20128       # case insensitive, let's make it lowercase to improve readability.
20129       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20130       # Now convert it back to Unix-stile (cygpath)
20131       input_path=`$CYGPATH -u "$shortmode_path"`
20132       new_path="$input_path"
20133     fi
20134   fi
20135 
20136   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20137   if test "x$test_cygdrive_prefix" = x; then
20138     # As a simple fix, exclude /usr/bin since it's not a real path.
20139     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20140       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20141       # a path prefixed by /cygdrive for fixpath to work.
20142       new_path="$CYGWIN_ROOT_PATH$input_path"
20143     fi
20144   fi
20145 
20146 
20147   if test "x$path" != "x$new_path"; then
20148     BOOT_JDK="$new_path"
20149     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20150 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20151   fi
20152 
20153   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20154 
20155   path="$BOOT_JDK"
20156   has_colon=`$ECHO $path | $GREP ^.:`
20157   new_path="$path"
20158   if test "x$has_colon" = x; then
20159     # Not in mixed or Windows style, start by that.
20160     new_path=`cmd //c echo $path`
20161   fi
20162 
20163 
20164   input_path="$new_path"
20165   # Check if we need to convert this using DOS-style short mode. If the path
20166   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20167   # take no chances and rewrite it.
20168   # Note: m4 eats our [], so we need to use [ and ] instead.
20169   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20170   if test "x$has_forbidden_chars" != x; then
20171     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20172     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20173   fi
20174 
20175 
20176   windows_path="$new_path"
20177   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20178     unix_path=`$CYGPATH -u "$windows_path"`
20179     new_path="$unix_path"
20180   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20181     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20182     new_path="$unix_path"
20183   fi
20184 
20185   if test "x$path" != "x$new_path"; then
20186     BOOT_JDK="$new_path"
20187     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20188 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20189   fi
20190 
20191   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20192   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20193 
20194   else
20195     # We're on a posix platform. Hooray! :)
20196     path="$BOOT_JDK"
20197     has_space=`$ECHO "$path" | $GREP " "`
20198     if test "x$has_space" != x; then
20199       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20200 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20201       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20202     fi
20203 
20204     # Use eval to expand a potential ~
20205     eval path="$path"
20206     if test ! -f "$path" && test ! -d "$path"; then
20207       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20208     fi
20209 
20210     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20211   fi
20212 
20213               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20214 $as_echo_n "checking for Boot JDK... " >&6; }
20215               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20216 $as_echo "$BOOT_JDK" >&6; }
20217               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20218 $as_echo_n "checking Boot JDK version... " >&6; }
20219               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20220               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20221 $as_echo "$BOOT_JDK_VERSION" >&6; }
20222             fi # end check jdk version
20223           fi # end check rt.jar
20224         fi # end check javac
20225       fi # end check java
20226     fi # end check boot jdk found
20227   fi
20228 
20229     # If that did not work out (e.g. too old), try explicit versions instead
20230 
20231   if test "x$BOOT_JDK_FOUND" = xno; then
20232     # Now execute the test
20233 
20234   if test -x /usr/libexec/java_home; then
20235     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20236     BOOT_JDK_FOUND=maybe
20237     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20238 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20239   fi
20240 
20241 
20242     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20243     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20244       # Do we have a bin/java?
20245       if test ! -x "$BOOT_JDK/bin/java"; then
20246         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20248         BOOT_JDK_FOUND=no
20249       else
20250         # Do we have a bin/javac?
20251         if test ! -x "$BOOT_JDK/bin/javac"; then
20252           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20254           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20255 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20256           BOOT_JDK_FOUND=no
20257         else
20258           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20259           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20260             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20262             BOOT_JDK_FOUND=no
20263           else
20264             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20265             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20266 
20267             # Extra M4 quote needed to protect [] in grep expression.
20268             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20269             if test "x$FOUND_CORRECT_VERSION" = x; then
20270               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20272               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20273 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20274               BOOT_JDK_FOUND=no
20275             else
20276               # We're done! :-)
20277               BOOT_JDK_FOUND=yes
20278 
20279   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20280 
20281   # Input might be given as Windows format, start by converting to
20282   # unix format.
20283   path="$BOOT_JDK"
20284   new_path=`$CYGPATH -u "$path"`
20285 
20286   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20287   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20288   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20289   # "foo.exe" is OK but "foo" is an error.
20290   #
20291   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20292   # It is also a way to make sure we got the proper file name for the real test later on.
20293   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20294   if test "x$test_shortpath" = x; then
20295     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20296 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20297     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20298   fi
20299 
20300   # Call helper function which possibly converts this using DOS-style short mode.
20301   # If so, the updated path is stored in $new_path.
20302 
20303   input_path="$new_path"
20304   # Check if we need to convert this using DOS-style short mode. If the path
20305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20306   # take no chances and rewrite it.
20307   # Note: m4 eats our [], so we need to use [ and ] instead.
20308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20309   if test "x$has_forbidden_chars" != x; then
20310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20311     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20312     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20313     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20314       # Going to short mode and back again did indeed matter. Since short mode is
20315       # case insensitive, let's make it lowercase to improve readability.
20316       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20317       # Now convert it back to Unix-stile (cygpath)
20318       input_path=`$CYGPATH -u "$shortmode_path"`
20319       new_path="$input_path"
20320     fi
20321   fi
20322 
20323   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20324   if test "x$test_cygdrive_prefix" = x; then
20325     # As a simple fix, exclude /usr/bin since it's not a real path.
20326     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20327       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20328       # a path prefixed by /cygdrive for fixpath to work.
20329       new_path="$CYGWIN_ROOT_PATH$input_path"
20330     fi
20331   fi
20332 
20333 
20334   if test "x$path" != "x$new_path"; then
20335     BOOT_JDK="$new_path"
20336     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20337 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20338   fi
20339 
20340   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20341 
20342   path="$BOOT_JDK"
20343   has_colon=`$ECHO $path | $GREP ^.:`
20344   new_path="$path"
20345   if test "x$has_colon" = x; then
20346     # Not in mixed or Windows style, start by that.
20347     new_path=`cmd //c echo $path`
20348   fi
20349 
20350 
20351   input_path="$new_path"
20352   # Check if we need to convert this using DOS-style short mode. If the path
20353   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20354   # take no chances and rewrite it.
20355   # Note: m4 eats our [], so we need to use [ and ] instead.
20356   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20357   if test "x$has_forbidden_chars" != x; then
20358     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20359     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20360   fi
20361 
20362 
20363   windows_path="$new_path"
20364   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20365     unix_path=`$CYGPATH -u "$windows_path"`
20366     new_path="$unix_path"
20367   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20368     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20369     new_path="$unix_path"
20370   fi
20371 
20372   if test "x$path" != "x$new_path"; then
20373     BOOT_JDK="$new_path"
20374     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20375 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20376   fi
20377 
20378   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20379   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20380 
20381   else
20382     # We're on a posix platform. Hooray! :)
20383     path="$BOOT_JDK"
20384     has_space=`$ECHO "$path" | $GREP " "`
20385     if test "x$has_space" != x; then
20386       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20388       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20389     fi
20390 
20391     # Use eval to expand a potential ~
20392     eval path="$path"
20393     if test ! -f "$path" && test ! -d "$path"; then
20394       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20395     fi
20396 
20397     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20398   fi
20399 
20400               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20401 $as_echo_n "checking for Boot JDK... " >&6; }
20402               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20403 $as_echo "$BOOT_JDK" >&6; }
20404               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20405 $as_echo_n "checking Boot JDK version... " >&6; }
20406               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20407               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20408 $as_echo "$BOOT_JDK_VERSION" >&6; }
20409             fi # end check jdk version
20410           fi # end check rt.jar
20411         fi # end check javac
20412       fi # end check java
20413     fi # end check boot jdk found
20414   fi
20415 
20416 
20417   if test "x$BOOT_JDK_FOUND" = xno; then
20418     # Now execute the test
20419 
20420   if test -x /usr/libexec/java_home; then
20421     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20422     BOOT_JDK_FOUND=maybe
20423     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20424 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20425   fi
20426 
20427 
20428     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20429     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20430       # Do we have a bin/java?
20431       if test ! -x "$BOOT_JDK/bin/java"; then
20432         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20434         BOOT_JDK_FOUND=no
20435       else
20436         # Do we have a bin/javac?
20437         if test ! -x "$BOOT_JDK/bin/javac"; then
20438           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20439 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20440           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20441 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20442           BOOT_JDK_FOUND=no
20443         else
20444           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20445           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20446             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20448             BOOT_JDK_FOUND=no
20449           else
20450             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20451             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20452 
20453             # Extra M4 quote needed to protect [] in grep expression.
20454             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20455             if test "x$FOUND_CORRECT_VERSION" = x; then
20456               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20458               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20459 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20460               BOOT_JDK_FOUND=no
20461             else
20462               # We're done! :-)
20463               BOOT_JDK_FOUND=yes
20464 
20465   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20466 
20467   # Input might be given as Windows format, start by converting to
20468   # unix format.
20469   path="$BOOT_JDK"
20470   new_path=`$CYGPATH -u "$path"`
20471 
20472   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20473   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20474   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20475   # "foo.exe" is OK but "foo" is an error.
20476   #
20477   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20478   # It is also a way to make sure we got the proper file name for the real test later on.
20479   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20480   if test "x$test_shortpath" = x; then
20481     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20482 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20483     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20484   fi
20485 
20486   # Call helper function which possibly converts this using DOS-style short mode.
20487   # If so, the updated path is stored in $new_path.
20488 
20489   input_path="$new_path"
20490   # Check if we need to convert this using DOS-style short mode. If the path
20491   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20492   # take no chances and rewrite it.
20493   # Note: m4 eats our [], so we need to use [ and ] instead.
20494   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20495   if test "x$has_forbidden_chars" != x; then
20496     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20497     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20498     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20499     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20500       # Going to short mode and back again did indeed matter. Since short mode is
20501       # case insensitive, let's make it lowercase to improve readability.
20502       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20503       # Now convert it back to Unix-stile (cygpath)
20504       input_path=`$CYGPATH -u "$shortmode_path"`
20505       new_path="$input_path"
20506     fi
20507   fi
20508 
20509   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20510   if test "x$test_cygdrive_prefix" = x; then
20511     # As a simple fix, exclude /usr/bin since it's not a real path.
20512     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20513       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20514       # a path prefixed by /cygdrive for fixpath to work.
20515       new_path="$CYGWIN_ROOT_PATH$input_path"
20516     fi
20517   fi
20518 
20519 
20520   if test "x$path" != "x$new_path"; then
20521     BOOT_JDK="$new_path"
20522     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20523 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20524   fi
20525 
20526   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20527 
20528   path="$BOOT_JDK"
20529   has_colon=`$ECHO $path | $GREP ^.:`
20530   new_path="$path"
20531   if test "x$has_colon" = x; then
20532     # Not in mixed or Windows style, start by that.
20533     new_path=`cmd //c echo $path`
20534   fi
20535 
20536 
20537   input_path="$new_path"
20538   # Check if we need to convert this using DOS-style short mode. If the path
20539   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20540   # take no chances and rewrite it.
20541   # Note: m4 eats our [], so we need to use [ and ] instead.
20542   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20543   if test "x$has_forbidden_chars" != x; then
20544     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20545     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20546   fi
20547 
20548 
20549   windows_path="$new_path"
20550   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20551     unix_path=`$CYGPATH -u "$windows_path"`
20552     new_path="$unix_path"
20553   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20554     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20555     new_path="$unix_path"
20556   fi
20557 
20558   if test "x$path" != "x$new_path"; then
20559     BOOT_JDK="$new_path"
20560     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20562   fi
20563 
20564   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20565   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20566 
20567   else
20568     # We're on a posix platform. Hooray! :)
20569     path="$BOOT_JDK"
20570     has_space=`$ECHO "$path" | $GREP " "`
20571     if test "x$has_space" != x; then
20572       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20573 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20574       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20575     fi
20576 
20577     # Use eval to expand a potential ~
20578     eval path="$path"
20579     if test ! -f "$path" && test ! -d "$path"; then
20580       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20581     fi
20582 
20583     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20584   fi
20585 
20586               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20587 $as_echo_n "checking for Boot JDK... " >&6; }
20588               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20589 $as_echo "$BOOT_JDK" >&6; }
20590               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20591 $as_echo_n "checking Boot JDK version... " >&6; }
20592               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20593               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20594 $as_echo "$BOOT_JDK_VERSION" >&6; }
20595             fi # end check jdk version
20596           fi # end check rt.jar
20597         fi # end check javac
20598       fi # end check java
20599     fi # end check boot jdk found
20600   fi
20601 
20602 
20603   if test "x$BOOT_JDK_FOUND" = xno; then
20604     # Now execute the test
20605 
20606   if test -x /usr/libexec/java_home; then
20607     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20608     BOOT_JDK_FOUND=maybe
20609     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20610 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20611   fi
20612 
20613 
20614     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20615     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20616       # Do we have a bin/java?
20617       if test ! -x "$BOOT_JDK/bin/java"; then
20618         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20620         BOOT_JDK_FOUND=no
20621       else
20622         # Do we have a bin/javac?
20623         if test ! -x "$BOOT_JDK/bin/javac"; then
20624           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20626           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20627 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20628           BOOT_JDK_FOUND=no
20629         else
20630           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20631           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20632             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20633 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20634             BOOT_JDK_FOUND=no
20635           else
20636             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20637             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20638 
20639             # Extra M4 quote needed to protect [] in grep expression.
20640             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20641             if test "x$FOUND_CORRECT_VERSION" = x; then
20642               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20644               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20645 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20646               BOOT_JDK_FOUND=no
20647             else
20648               # We're done! :-)
20649               BOOT_JDK_FOUND=yes
20650 
20651   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20652 
20653   # Input might be given as Windows format, start by converting to
20654   # unix format.
20655   path="$BOOT_JDK"
20656   new_path=`$CYGPATH -u "$path"`
20657 
20658   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20659   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20660   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20661   # "foo.exe" is OK but "foo" is an error.
20662   #
20663   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20664   # It is also a way to make sure we got the proper file name for the real test later on.
20665   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20666   if test "x$test_shortpath" = x; then
20667     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20668 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20669     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20670   fi
20671 
20672   # Call helper function which possibly converts this using DOS-style short mode.
20673   # If so, the updated path is stored in $new_path.
20674 
20675   input_path="$new_path"
20676   # Check if we need to convert this using DOS-style short mode. If the path
20677   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20678   # take no chances and rewrite it.
20679   # Note: m4 eats our [], so we need to use [ and ] instead.
20680   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20681   if test "x$has_forbidden_chars" != x; then
20682     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20683     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20684     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20685     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20686       # Going to short mode and back again did indeed matter. Since short mode is
20687       # case insensitive, let's make it lowercase to improve readability.
20688       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20689       # Now convert it back to Unix-stile (cygpath)
20690       input_path=`$CYGPATH -u "$shortmode_path"`
20691       new_path="$input_path"
20692     fi
20693   fi
20694 
20695   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20696   if test "x$test_cygdrive_prefix" = x; then
20697     # As a simple fix, exclude /usr/bin since it's not a real path.
20698     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20699       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20700       # a path prefixed by /cygdrive for fixpath to work.
20701       new_path="$CYGWIN_ROOT_PATH$input_path"
20702     fi
20703   fi
20704 
20705 
20706   if test "x$path" != "x$new_path"; then
20707     BOOT_JDK="$new_path"
20708     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20709 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20710   fi
20711 
20712   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20713 
20714   path="$BOOT_JDK"
20715   has_colon=`$ECHO $path | $GREP ^.:`
20716   new_path="$path"
20717   if test "x$has_colon" = x; then
20718     # Not in mixed or Windows style, start by that.
20719     new_path=`cmd //c echo $path`
20720   fi
20721 
20722 
20723   input_path="$new_path"
20724   # Check if we need to convert this using DOS-style short mode. If the path
20725   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20726   # take no chances and rewrite it.
20727   # Note: m4 eats our [], so we need to use [ and ] instead.
20728   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20729   if test "x$has_forbidden_chars" != x; then
20730     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20731     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20732   fi
20733 
20734 
20735   windows_path="$new_path"
20736   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20737     unix_path=`$CYGPATH -u "$windows_path"`
20738     new_path="$unix_path"
20739   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20740     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20741     new_path="$unix_path"
20742   fi
20743 
20744   if test "x$path" != "x$new_path"; then
20745     BOOT_JDK="$new_path"
20746     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20747 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20748   fi
20749 
20750   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20751   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20752 
20753   else
20754     # We're on a posix platform. Hooray! :)
20755     path="$BOOT_JDK"
20756     has_space=`$ECHO "$path" | $GREP " "`
20757     if test "x$has_space" != x; then
20758       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20759 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20760       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20761     fi
20762 
20763     # Use eval to expand a potential ~
20764     eval path="$path"
20765     if test ! -f "$path" && test ! -d "$path"; then
20766       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20767     fi
20768 
20769     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20770   fi
20771 
20772               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20773 $as_echo_n "checking for Boot JDK... " >&6; }
20774               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20775 $as_echo "$BOOT_JDK" >&6; }
20776               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20777 $as_echo_n "checking Boot JDK version... " >&6; }
20778               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20779               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20780 $as_echo "$BOOT_JDK_VERSION" >&6; }
20781             fi # end check jdk version
20782           fi # end check rt.jar
20783         fi # end check javac
20784       fi # end check java
20785     fi # end check boot jdk found
20786   fi
20787 
20788   fi
20789 
20790 
20791     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20792     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20793       # Do we have a bin/java?
20794       if test ! -x "$BOOT_JDK/bin/java"; then
20795         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20797         BOOT_JDK_FOUND=no
20798       else
20799         # Do we have a bin/javac?
20800         if test ! -x "$BOOT_JDK/bin/javac"; then
20801           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20803           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20804 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20805           BOOT_JDK_FOUND=no
20806         else
20807           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20808           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20809             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20811             BOOT_JDK_FOUND=no
20812           else
20813             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20814             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20815 
20816             # Extra M4 quote needed to protect [] in grep expression.
20817             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20818             if test "x$FOUND_CORRECT_VERSION" = x; then
20819               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20821               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20822 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20823               BOOT_JDK_FOUND=no
20824             else
20825               # We're done! :-)
20826               BOOT_JDK_FOUND=yes
20827 
20828   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20829 
20830   # Input might be given as Windows format, start by converting to
20831   # unix format.
20832   path="$BOOT_JDK"
20833   new_path=`$CYGPATH -u "$path"`
20834 
20835   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20836   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20837   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20838   # "foo.exe" is OK but "foo" is an error.
20839   #
20840   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20841   # It is also a way to make sure we got the proper file name for the real test later on.
20842   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20843   if test "x$test_shortpath" = x; then
20844     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20845 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20846     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20847   fi
20848 
20849   # Call helper function which possibly converts this using DOS-style short mode.
20850   # If so, the updated path is stored in $new_path.
20851 
20852   input_path="$new_path"
20853   # Check if we need to convert this using DOS-style short mode. If the path
20854   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20855   # take no chances and rewrite it.
20856   # Note: m4 eats our [], so we need to use [ and ] instead.
20857   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20858   if test "x$has_forbidden_chars" != x; then
20859     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20860     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20861     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20862     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20863       # Going to short mode and back again did indeed matter. Since short mode is
20864       # case insensitive, let's make it lowercase to improve readability.
20865       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20866       # Now convert it back to Unix-stile (cygpath)
20867       input_path=`$CYGPATH -u "$shortmode_path"`
20868       new_path="$input_path"
20869     fi
20870   fi
20871 
20872   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20873   if test "x$test_cygdrive_prefix" = x; then
20874     # As a simple fix, exclude /usr/bin since it's not a real path.
20875     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20876       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20877       # a path prefixed by /cygdrive for fixpath to work.
20878       new_path="$CYGWIN_ROOT_PATH$input_path"
20879     fi
20880   fi
20881 
20882 
20883   if test "x$path" != "x$new_path"; then
20884     BOOT_JDK="$new_path"
20885     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20886 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20887   fi
20888 
20889   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20890 
20891   path="$BOOT_JDK"
20892   has_colon=`$ECHO $path | $GREP ^.:`
20893   new_path="$path"
20894   if test "x$has_colon" = x; then
20895     # Not in mixed or Windows style, start by that.
20896     new_path=`cmd //c echo $path`
20897   fi
20898 
20899 
20900   input_path="$new_path"
20901   # Check if we need to convert this using DOS-style short mode. If the path
20902   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20903   # take no chances and rewrite it.
20904   # Note: m4 eats our [], so we need to use [ and ] instead.
20905   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20906   if test "x$has_forbidden_chars" != x; then
20907     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20908     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20909   fi
20910 
20911 
20912   windows_path="$new_path"
20913   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20914     unix_path=`$CYGPATH -u "$windows_path"`
20915     new_path="$unix_path"
20916   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20917     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20918     new_path="$unix_path"
20919   fi
20920 
20921   if test "x$path" != "x$new_path"; then
20922     BOOT_JDK="$new_path"
20923     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20924 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20925   fi
20926 
20927   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20928   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20929 
20930   else
20931     # We're on a posix platform. Hooray! :)
20932     path="$BOOT_JDK"
20933     has_space=`$ECHO "$path" | $GREP " "`
20934     if test "x$has_space" != x; then
20935       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20936 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20937       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20938     fi
20939 
20940     # Use eval to expand a potential ~
20941     eval path="$path"
20942     if test ! -f "$path" && test ! -d "$path"; then
20943       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20944     fi
20945 
20946     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20947   fi
20948 
20949               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20950 $as_echo_n "checking for Boot JDK... " >&6; }
20951               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20952 $as_echo "$BOOT_JDK" >&6; }
20953               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20954 $as_echo_n "checking Boot JDK version... " >&6; }
20955               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20956               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20957 $as_echo "$BOOT_JDK_VERSION" >&6; }
20958             fi # end check jdk version
20959           fi # end check rt.jar
20960         fi # end check javac
20961       fi # end check java
20962     fi # end check boot jdk found
20963   fi
20964 
20965 
20966   # Test: Is $JAVA_HOME set?
20967 
20968   if test "x$BOOT_JDK_FOUND" = xno; then
20969     # Now execute the test
20970 
20971   if test "x$JAVA_HOME" != x; then
20972     JAVA_HOME_PROCESSED="$JAVA_HOME"
20973 
20974   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20975 
20976   # Input might be given as Windows format, start by converting to
20977   # unix format.
20978   path="$JAVA_HOME_PROCESSED"
20979   new_path=`$CYGPATH -u "$path"`
20980 
20981   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20982   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20983   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20984   # "foo.exe" is OK but "foo" is an error.
20985   #
20986   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20987   # It is also a way to make sure we got the proper file name for the real test later on.
20988   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20989   if test "x$test_shortpath" = x; then
20990     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20991 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20992     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20993   fi
20994 
20995   # Call helper function which possibly converts this using DOS-style short mode.
20996   # If so, the updated path is stored in $new_path.
20997 
20998   input_path="$new_path"
20999   # Check if we need to convert this using DOS-style short mode. If the path
21000   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21001   # take no chances and rewrite it.
21002   # Note: m4 eats our [], so we need to use [ and ] instead.
21003   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21004   if test "x$has_forbidden_chars" != x; then
21005     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21006     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21007     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21008     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21009       # Going to short mode and back again did indeed matter. Since short mode is
21010       # case insensitive, let's make it lowercase to improve readability.
21011       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21012       # Now convert it back to Unix-stile (cygpath)
21013       input_path=`$CYGPATH -u "$shortmode_path"`
21014       new_path="$input_path"
21015     fi
21016   fi
21017 
21018   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21019   if test "x$test_cygdrive_prefix" = x; then
21020     # As a simple fix, exclude /usr/bin since it's not a real path.
21021     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21022       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21023       # a path prefixed by /cygdrive for fixpath to work.
21024       new_path="$CYGWIN_ROOT_PATH$input_path"
21025     fi
21026   fi
21027 
21028 
21029   if test "x$path" != "x$new_path"; then
21030     JAVA_HOME_PROCESSED="$new_path"
21031     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21032 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21033   fi
21034 
21035   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21036 
21037   path="$JAVA_HOME_PROCESSED"
21038   has_colon=`$ECHO $path | $GREP ^.:`
21039   new_path="$path"
21040   if test "x$has_colon" = x; then
21041     # Not in mixed or Windows style, start by that.
21042     new_path=`cmd //c echo $path`
21043   fi
21044 
21045 
21046   input_path="$new_path"
21047   # Check if we need to convert this using DOS-style short mode. If the path
21048   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21049   # take no chances and rewrite it.
21050   # Note: m4 eats our [], so we need to use [ and ] instead.
21051   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21052   if test "x$has_forbidden_chars" != x; then
21053     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21054     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21055   fi
21056 
21057 
21058   windows_path="$new_path"
21059   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21060     unix_path=`$CYGPATH -u "$windows_path"`
21061     new_path="$unix_path"
21062   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21063     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21064     new_path="$unix_path"
21065   fi
21066 
21067   if test "x$path" != "x$new_path"; then
21068     JAVA_HOME_PROCESSED="$new_path"
21069     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21070 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21071   fi
21072 
21073   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21074   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21075 
21076   else
21077     # We're on a posix platform. Hooray! :)
21078     path="$JAVA_HOME_PROCESSED"
21079     has_space=`$ECHO "$path" | $GREP " "`
21080     if test "x$has_space" != x; then
21081       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21082 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21083       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21084     fi
21085 
21086     # Use eval to expand a potential ~
21087     eval path="$path"
21088     if test ! -f "$path" && test ! -d "$path"; then
21089       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21090     fi
21091 
21092     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21093   fi
21094 
21095     if test ! -d "$JAVA_HOME_PROCESSED"; then
21096       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21097 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21098     else
21099       # Aha, the user has set a JAVA_HOME
21100       # let us use that as the Boot JDK.
21101       BOOT_JDK="$JAVA_HOME_PROCESSED"
21102       BOOT_JDK_FOUND=maybe
21103       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21104 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21105     fi
21106   fi
21107 
21108 
21109     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21110     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21111       # Do we have a bin/java?
21112       if test ! -x "$BOOT_JDK/bin/java"; then
21113         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21114 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21115         BOOT_JDK_FOUND=no
21116       else
21117         # Do we have a bin/javac?
21118         if test ! -x "$BOOT_JDK/bin/javac"; then
21119           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21120 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21121           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21122 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21123           BOOT_JDK_FOUND=no
21124         else
21125           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21126           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21127             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21129             BOOT_JDK_FOUND=no
21130           else
21131             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21132             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21133 
21134             # Extra M4 quote needed to protect [] in grep expression.
21135             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21136             if test "x$FOUND_CORRECT_VERSION" = x; then
21137               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21138 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21139               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21140 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21141               BOOT_JDK_FOUND=no
21142             else
21143               # We're done! :-)
21144               BOOT_JDK_FOUND=yes
21145 
21146   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21147 
21148   # Input might be given as Windows format, start by converting to
21149   # unix format.
21150   path="$BOOT_JDK"
21151   new_path=`$CYGPATH -u "$path"`
21152 
21153   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21154   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21155   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21156   # "foo.exe" is OK but "foo" is an error.
21157   #
21158   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21159   # It is also a way to make sure we got the proper file name for the real test later on.
21160   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21161   if test "x$test_shortpath" = x; then
21162     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21163 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21164     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21165   fi
21166 
21167   # Call helper function which possibly converts this using DOS-style short mode.
21168   # If so, the updated path is stored in $new_path.
21169 
21170   input_path="$new_path"
21171   # Check if we need to convert this using DOS-style short mode. If the path
21172   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21173   # take no chances and rewrite it.
21174   # Note: m4 eats our [], so we need to use [ and ] instead.
21175   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21176   if test "x$has_forbidden_chars" != x; then
21177     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21178     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21179     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21180     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21181       # Going to short mode and back again did indeed matter. Since short mode is
21182       # case insensitive, let's make it lowercase to improve readability.
21183       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21184       # Now convert it back to Unix-stile (cygpath)
21185       input_path=`$CYGPATH -u "$shortmode_path"`
21186       new_path="$input_path"
21187     fi
21188   fi
21189 
21190   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21191   if test "x$test_cygdrive_prefix" = x; then
21192     # As a simple fix, exclude /usr/bin since it's not a real path.
21193     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21194       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21195       # a path prefixed by /cygdrive for fixpath to work.
21196       new_path="$CYGWIN_ROOT_PATH$input_path"
21197     fi
21198   fi
21199 
21200 
21201   if test "x$path" != "x$new_path"; then
21202     BOOT_JDK="$new_path"
21203     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21204 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21205   fi
21206 
21207   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21208 
21209   path="$BOOT_JDK"
21210   has_colon=`$ECHO $path | $GREP ^.:`
21211   new_path="$path"
21212   if test "x$has_colon" = x; then
21213     # Not in mixed or Windows style, start by that.
21214     new_path=`cmd //c echo $path`
21215   fi
21216 
21217 
21218   input_path="$new_path"
21219   # Check if we need to convert this using DOS-style short mode. If the path
21220   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21221   # take no chances and rewrite it.
21222   # Note: m4 eats our [], so we need to use [ and ] instead.
21223   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21224   if test "x$has_forbidden_chars" != x; then
21225     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21226     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21227   fi
21228 
21229 
21230   windows_path="$new_path"
21231   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21232     unix_path=`$CYGPATH -u "$windows_path"`
21233     new_path="$unix_path"
21234   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21235     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21236     new_path="$unix_path"
21237   fi
21238 
21239   if test "x$path" != "x$new_path"; then
21240     BOOT_JDK="$new_path"
21241     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21242 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21243   fi
21244 
21245   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21246   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21247 
21248   else
21249     # We're on a posix platform. Hooray! :)
21250     path="$BOOT_JDK"
21251     has_space=`$ECHO "$path" | $GREP " "`
21252     if test "x$has_space" != x; then
21253       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21254 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21255       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21256     fi
21257 
21258     # Use eval to expand a potential ~
21259     eval path="$path"
21260     if test ! -f "$path" && test ! -d "$path"; then
21261       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21262     fi
21263 
21264     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21265   fi
21266 
21267               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21268 $as_echo_n "checking for Boot JDK... " >&6; }
21269               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21270 $as_echo "$BOOT_JDK" >&6; }
21271               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21272 $as_echo_n "checking Boot JDK version... " >&6; }
21273               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21274               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21275 $as_echo "$BOOT_JDK_VERSION" >&6; }
21276             fi # end check jdk version
21277           fi # end check rt.jar
21278         fi # end check javac
21279       fi # end check java
21280     fi # end check boot jdk found
21281   fi
21282 
21283 
21284   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21285 
21286   if test "x$BOOT_JDK_FOUND" = xno; then
21287     # Now execute the test
21288 
21289   # Extract the first word of "javac", so it can be a program name with args.
21290 set dummy javac; ac_word=$2
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21292 $as_echo_n "checking for $ac_word... " >&6; }
21293 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21294   $as_echo_n "(cached) " >&6
21295 else
21296   case $JAVAC_CHECK in
21297   [\\/]* | ?:[\\/]*)
21298   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21299   ;;
21300   *)
21301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21302 for as_dir in $PATH
21303 do
21304   IFS=$as_save_IFS
21305   test -z "$as_dir" && as_dir=.
21306     for ac_exec_ext in '' $ac_executable_extensions; do
21307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21308     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21310     break 2
21311   fi
21312 done
21313   done
21314 IFS=$as_save_IFS
21315 
21316   ;;
21317 esac
21318 fi
21319 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21320 if test -n "$JAVAC_CHECK"; then
21321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21322 $as_echo "$JAVAC_CHECK" >&6; }
21323 else
21324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21325 $as_echo "no" >&6; }
21326 fi
21327 
21328 
21329   # Extract the first word of "java", so it can be a program name with args.
21330 set dummy java; ac_word=$2
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21332 $as_echo_n "checking for $ac_word... " >&6; }
21333 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21334   $as_echo_n "(cached) " >&6
21335 else
21336   case $JAVA_CHECK in
21337   [\\/]* | ?:[\\/]*)
21338   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21339   ;;
21340   *)
21341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21342 for as_dir in $PATH
21343 do
21344   IFS=$as_save_IFS
21345   test -z "$as_dir" && as_dir=.
21346     for ac_exec_ext in '' $ac_executable_extensions; do
21347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21348     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21350     break 2
21351   fi
21352 done
21353   done
21354 IFS=$as_save_IFS
21355 
21356   ;;
21357 esac
21358 fi
21359 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21360 if test -n "$JAVA_CHECK"; then
21361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21362 $as_echo "$JAVA_CHECK" >&6; }
21363 else
21364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21365 $as_echo "no" >&6; }
21366 fi
21367 
21368 
21369   BINARY="$JAVAC_CHECK"
21370   if test "x$JAVAC_CHECK" = x; then
21371     BINARY="$JAVA_CHECK"
21372   fi
21373   if test "x$BINARY" != x; then
21374     # So there is a java(c) binary, it might be part of a JDK.
21375     # Lets find the JDK/JRE directory by following symbolic links.
21376     # Linux/GNU systems often have links from /usr/bin/java to
21377     # /etc/alternatives/java to the real JDK binary.
21378 
21379   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21380     # Follow a chain of symbolic links. Use readlink
21381     # where it exists, else fall back to horribly
21382     # complicated shell code.
21383     if test "x$READLINK_TESTED" != yes; then
21384       # On MacOSX there is a readlink tool with a different
21385       # purpose than the GNU readlink tool. Check the found readlink.
21386       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21387       if test "x$ISGNU" = x; then
21388         # A readlink that we do not know how to use.
21389         # Are there other non-GNU readlinks out there?
21390         READLINK_TESTED=yes
21391         READLINK=
21392       fi
21393     fi
21394 
21395     if test "x$READLINK" != x; then
21396       BINARY=`$READLINK -f $BINARY`
21397     else
21398       # Save the current directory for restoring afterwards
21399       STARTDIR=$PWD
21400       COUNTER=0
21401       sym_link_dir=`$DIRNAME $BINARY`
21402       sym_link_file=`$BASENAME $BINARY`
21403       cd $sym_link_dir
21404       # Use -P flag to resolve symlinks in directories.
21405       cd `$THEPWDCMD -P`
21406       sym_link_dir=`$THEPWDCMD -P`
21407       # Resolve file symlinks
21408       while test $COUNTER -lt 20; do
21409         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21410         if test "x$ISLINK" == x; then
21411           # This is not a symbolic link! We are done!
21412           break
21413         fi
21414         # Again resolve directory symlinks since the target of the just found
21415         # link could be in a different directory
21416         cd `$DIRNAME $ISLINK`
21417         sym_link_dir=`$THEPWDCMD -P`
21418         sym_link_file=`$BASENAME $ISLINK`
21419         let COUNTER=COUNTER+1
21420       done
21421       cd $STARTDIR
21422       BINARY=$sym_link_dir/$sym_link_file
21423     fi
21424   fi
21425 
21426     BOOT_JDK=`dirname "$BINARY"`
21427     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21428     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21429       # Looks like we found ourselves an JDK
21430       BOOT_JDK_FOUND=maybe
21431       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21432 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21433     fi
21434   fi
21435 
21436 
21437     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21438     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21439       # Do we have a bin/java?
21440       if test ! -x "$BOOT_JDK/bin/java"; then
21441         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21442 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21443         BOOT_JDK_FOUND=no
21444       else
21445         # Do we have a bin/javac?
21446         if test ! -x "$BOOT_JDK/bin/javac"; then
21447           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21449           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21450 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21451           BOOT_JDK_FOUND=no
21452         else
21453           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21454           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21455             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21456 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21457             BOOT_JDK_FOUND=no
21458           else
21459             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21460             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21461 
21462             # Extra M4 quote needed to protect [] in grep expression.
21463             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21464             if test "x$FOUND_CORRECT_VERSION" = x; then
21465               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21466 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21467               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21468 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21469               BOOT_JDK_FOUND=no
21470             else
21471               # We're done! :-)
21472               BOOT_JDK_FOUND=yes
21473 
21474   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21475 
21476   # Input might be given as Windows format, start by converting to
21477   # unix format.
21478   path="$BOOT_JDK"
21479   new_path=`$CYGPATH -u "$path"`
21480 
21481   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21482   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21483   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21484   # "foo.exe" is OK but "foo" is an error.
21485   #
21486   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21487   # It is also a way to make sure we got the proper file name for the real test later on.
21488   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21489   if test "x$test_shortpath" = x; then
21490     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21491 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21492     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21493   fi
21494 
21495   # Call helper function which possibly converts this using DOS-style short mode.
21496   # If so, the updated path is stored in $new_path.
21497 
21498   input_path="$new_path"
21499   # Check if we need to convert this using DOS-style short mode. If the path
21500   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21501   # take no chances and rewrite it.
21502   # Note: m4 eats our [], so we need to use [ and ] instead.
21503   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21504   if test "x$has_forbidden_chars" != x; then
21505     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21506     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21507     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21508     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21509       # Going to short mode and back again did indeed matter. Since short mode is
21510       # case insensitive, let's make it lowercase to improve readability.
21511       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21512       # Now convert it back to Unix-stile (cygpath)
21513       input_path=`$CYGPATH -u "$shortmode_path"`
21514       new_path="$input_path"
21515     fi
21516   fi
21517 
21518   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21519   if test "x$test_cygdrive_prefix" = x; then
21520     # As a simple fix, exclude /usr/bin since it's not a real path.
21521     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21522       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21523       # a path prefixed by /cygdrive for fixpath to work.
21524       new_path="$CYGWIN_ROOT_PATH$input_path"
21525     fi
21526   fi
21527 
21528 
21529   if test "x$path" != "x$new_path"; then
21530     BOOT_JDK="$new_path"
21531     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21532 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21533   fi
21534 
21535   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21536 
21537   path="$BOOT_JDK"
21538   has_colon=`$ECHO $path | $GREP ^.:`
21539   new_path="$path"
21540   if test "x$has_colon" = x; then
21541     # Not in mixed or Windows style, start by that.
21542     new_path=`cmd //c echo $path`
21543   fi
21544 
21545 
21546   input_path="$new_path"
21547   # Check if we need to convert this using DOS-style short mode. If the path
21548   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21549   # take no chances and rewrite it.
21550   # Note: m4 eats our [], so we need to use [ and ] instead.
21551   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21552   if test "x$has_forbidden_chars" != x; then
21553     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21554     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21555   fi
21556 
21557 
21558   windows_path="$new_path"
21559   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21560     unix_path=`$CYGPATH -u "$windows_path"`
21561     new_path="$unix_path"
21562   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21563     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21564     new_path="$unix_path"
21565   fi
21566 
21567   if test "x$path" != "x$new_path"; then
21568     BOOT_JDK="$new_path"
21569     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21570 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21571   fi
21572 
21573   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21574   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21575 
21576   else
21577     # We're on a posix platform. Hooray! :)
21578     path="$BOOT_JDK"
21579     has_space=`$ECHO "$path" | $GREP " "`
21580     if test "x$has_space" != x; then
21581       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21582 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21583       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21584     fi
21585 
21586     # Use eval to expand a potential ~
21587     eval path="$path"
21588     if test ! -f "$path" && test ! -d "$path"; then
21589       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21590     fi
21591 
21592     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21593   fi
21594 
21595               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21596 $as_echo_n "checking for Boot JDK... " >&6; }
21597               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21598 $as_echo "$BOOT_JDK" >&6; }
21599               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21600 $as_echo_n "checking Boot JDK version... " >&6; }
21601               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21602               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21603 $as_echo "$BOOT_JDK_VERSION" >&6; }
21604             fi # end check jdk version
21605           fi # end check rt.jar
21606         fi # end check javac
21607       fi # end check java
21608     fi # end check boot jdk found
21609   fi
21610 
21611 
21612   # Test: Is there a JDK installed in default, well-known locations?
21613 
21614   if test "x$BOOT_JDK_FOUND" = xno; then
21615     # Now execute the test
21616 
21617   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21618 
21619   if test "x$BOOT_JDK_FOUND" = xno; then
21620     # Now execute the test
21621 
21622   if test "x$ProgramW6432" != x; then
21623     VIRTUAL_DIR="$ProgramW6432/Java"
21624 
21625   windows_path="$VIRTUAL_DIR"
21626   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21627     unix_path=`$CYGPATH -u "$windows_path"`
21628     VIRTUAL_DIR="$unix_path"
21629   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21630     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21631     VIRTUAL_DIR="$unix_path"
21632   fi
21633 
21634 
21635   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21636   BOOT_JDK_SUFFIX=""
21637   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21638   if test "x$ALL_JDKS_FOUND" != x; then
21639     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21640 
21641   if test "x$BOOT_JDK_FOUND" = xno; then
21642     # Now execute the test
21643 
21644         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21645         if test -d "$BOOT_JDK"; then
21646           BOOT_JDK_FOUND=maybe
21647           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21648 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21649         fi
21650 
21651 
21652     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21653     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21654       # Do we have a bin/java?
21655       if test ! -x "$BOOT_JDK/bin/java"; then
21656         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21657 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21658         BOOT_JDK_FOUND=no
21659       else
21660         # Do we have a bin/javac?
21661         if test ! -x "$BOOT_JDK/bin/javac"; then
21662           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21664           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21665 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21666           BOOT_JDK_FOUND=no
21667         else
21668           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21669           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21670             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21671 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21672             BOOT_JDK_FOUND=no
21673           else
21674             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21675             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21676 
21677             # Extra M4 quote needed to protect [] in grep expression.
21678             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21679             if test "x$FOUND_CORRECT_VERSION" = x; then
21680               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21681 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21682               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21683 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21684               BOOT_JDK_FOUND=no
21685             else
21686               # We're done! :-)
21687               BOOT_JDK_FOUND=yes
21688 
21689   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21690 
21691   # Input might be given as Windows format, start by converting to
21692   # unix format.
21693   path="$BOOT_JDK"
21694   new_path=`$CYGPATH -u "$path"`
21695 
21696   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21697   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21698   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21699   # "foo.exe" is OK but "foo" is an error.
21700   #
21701   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21702   # It is also a way to make sure we got the proper file name for the real test later on.
21703   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21704   if test "x$test_shortpath" = x; then
21705     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21706 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21707     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21708   fi
21709 
21710   # Call helper function which possibly converts this using DOS-style short mode.
21711   # If so, the updated path is stored in $new_path.
21712 
21713   input_path="$new_path"
21714   # Check if we need to convert this using DOS-style short mode. If the path
21715   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21716   # take no chances and rewrite it.
21717   # Note: m4 eats our [], so we need to use [ and ] instead.
21718   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21719   if test "x$has_forbidden_chars" != x; then
21720     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21721     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21722     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21723     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21724       # Going to short mode and back again did indeed matter. Since short mode is
21725       # case insensitive, let's make it lowercase to improve readability.
21726       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21727       # Now convert it back to Unix-stile (cygpath)
21728       input_path=`$CYGPATH -u "$shortmode_path"`
21729       new_path="$input_path"
21730     fi
21731   fi
21732 
21733   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21734   if test "x$test_cygdrive_prefix" = x; then
21735     # As a simple fix, exclude /usr/bin since it's not a real path.
21736     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21737       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21738       # a path prefixed by /cygdrive for fixpath to work.
21739       new_path="$CYGWIN_ROOT_PATH$input_path"
21740     fi
21741   fi
21742 
21743 
21744   if test "x$path" != "x$new_path"; then
21745     BOOT_JDK="$new_path"
21746     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21747 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21748   fi
21749 
21750   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21751 
21752   path="$BOOT_JDK"
21753   has_colon=`$ECHO $path | $GREP ^.:`
21754   new_path="$path"
21755   if test "x$has_colon" = x; then
21756     # Not in mixed or Windows style, start by that.
21757     new_path=`cmd //c echo $path`
21758   fi
21759 
21760 
21761   input_path="$new_path"
21762   # Check if we need to convert this using DOS-style short mode. If the path
21763   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21764   # take no chances and rewrite it.
21765   # Note: m4 eats our [], so we need to use [ and ] instead.
21766   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21767   if test "x$has_forbidden_chars" != x; then
21768     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21769     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21770   fi
21771 
21772 
21773   windows_path="$new_path"
21774   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21775     unix_path=`$CYGPATH -u "$windows_path"`
21776     new_path="$unix_path"
21777   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21778     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21779     new_path="$unix_path"
21780   fi
21781 
21782   if test "x$path" != "x$new_path"; then
21783     BOOT_JDK="$new_path"
21784     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21785 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21786   fi
21787 
21788   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21789   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21790 
21791   else
21792     # We're on a posix platform. Hooray! :)
21793     path="$BOOT_JDK"
21794     has_space=`$ECHO "$path" | $GREP " "`
21795     if test "x$has_space" != x; then
21796       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21797 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21798       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21799     fi
21800 
21801     # Use eval to expand a potential ~
21802     eval path="$path"
21803     if test ! -f "$path" && test ! -d "$path"; then
21804       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21805     fi
21806 
21807     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21808   fi
21809 
21810               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21811 $as_echo_n "checking for Boot JDK... " >&6; }
21812               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21813 $as_echo "$BOOT_JDK" >&6; }
21814               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21815 $as_echo_n "checking Boot JDK version... " >&6; }
21816               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21817               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21818 $as_echo "$BOOT_JDK_VERSION" >&6; }
21819             fi # end check jdk version
21820           fi # end check rt.jar
21821         fi # end check javac
21822       fi # end check java
21823     fi # end check boot jdk found
21824   fi
21825 
21826     done
21827   fi
21828 
21829   fi
21830 
21831 
21832     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21833     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21834       # Do we have a bin/java?
21835       if test ! -x "$BOOT_JDK/bin/java"; then
21836         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21837 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21838         BOOT_JDK_FOUND=no
21839       else
21840         # Do we have a bin/javac?
21841         if test ! -x "$BOOT_JDK/bin/javac"; then
21842           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21843 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21844           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21845 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21846           BOOT_JDK_FOUND=no
21847         else
21848           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21849           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21850             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21851 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21852             BOOT_JDK_FOUND=no
21853           else
21854             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21855             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21856 
21857             # Extra M4 quote needed to protect [] in grep expression.
21858             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21859             if test "x$FOUND_CORRECT_VERSION" = x; then
21860               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21861 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21862               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21863 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21864               BOOT_JDK_FOUND=no
21865             else
21866               # We're done! :-)
21867               BOOT_JDK_FOUND=yes
21868 
21869   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21870 
21871   # Input might be given as Windows format, start by converting to
21872   # unix format.
21873   path="$BOOT_JDK"
21874   new_path=`$CYGPATH -u "$path"`
21875 
21876   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21877   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21878   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21879   # "foo.exe" is OK but "foo" is an error.
21880   #
21881   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21882   # It is also a way to make sure we got the proper file name for the real test later on.
21883   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21884   if test "x$test_shortpath" = x; then
21885     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21886 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21887     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21888   fi
21889 
21890   # Call helper function which possibly converts this using DOS-style short mode.
21891   # If so, the updated path is stored in $new_path.
21892 
21893   input_path="$new_path"
21894   # Check if we need to convert this using DOS-style short mode. If the path
21895   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21896   # take no chances and rewrite it.
21897   # Note: m4 eats our [], so we need to use [ and ] instead.
21898   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21899   if test "x$has_forbidden_chars" != x; then
21900     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21901     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21902     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21903     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21904       # Going to short mode and back again did indeed matter. Since short mode is
21905       # case insensitive, let's make it lowercase to improve readability.
21906       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21907       # Now convert it back to Unix-stile (cygpath)
21908       input_path=`$CYGPATH -u "$shortmode_path"`
21909       new_path="$input_path"
21910     fi
21911   fi
21912 
21913   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21914   if test "x$test_cygdrive_prefix" = x; then
21915     # As a simple fix, exclude /usr/bin since it's not a real path.
21916     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21917       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21918       # a path prefixed by /cygdrive for fixpath to work.
21919       new_path="$CYGWIN_ROOT_PATH$input_path"
21920     fi
21921   fi
21922 
21923 
21924   if test "x$path" != "x$new_path"; then
21925     BOOT_JDK="$new_path"
21926     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21927 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21928   fi
21929 
21930   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21931 
21932   path="$BOOT_JDK"
21933   has_colon=`$ECHO $path | $GREP ^.:`
21934   new_path="$path"
21935   if test "x$has_colon" = x; then
21936     # Not in mixed or Windows style, start by that.
21937     new_path=`cmd //c echo $path`
21938   fi
21939 
21940 
21941   input_path="$new_path"
21942   # Check if we need to convert this using DOS-style short mode. If the path
21943   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21944   # take no chances and rewrite it.
21945   # Note: m4 eats our [], so we need to use [ and ] instead.
21946   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21947   if test "x$has_forbidden_chars" != x; then
21948     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21949     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21950   fi
21951 
21952 
21953   windows_path="$new_path"
21954   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21955     unix_path=`$CYGPATH -u "$windows_path"`
21956     new_path="$unix_path"
21957   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21958     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21959     new_path="$unix_path"
21960   fi
21961 
21962   if test "x$path" != "x$new_path"; then
21963     BOOT_JDK="$new_path"
21964     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21965 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21966   fi
21967 
21968   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21969   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21970 
21971   else
21972     # We're on a posix platform. Hooray! :)
21973     path="$BOOT_JDK"
21974     has_space=`$ECHO "$path" | $GREP " "`
21975     if test "x$has_space" != x; then
21976       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21977 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21978       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21979     fi
21980 
21981     # Use eval to expand a potential ~
21982     eval path="$path"
21983     if test ! -f "$path" && test ! -d "$path"; then
21984       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21985     fi
21986 
21987     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21988   fi
21989 
21990               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21991 $as_echo_n "checking for Boot JDK... " >&6; }
21992               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21993 $as_echo "$BOOT_JDK" >&6; }
21994               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21995 $as_echo_n "checking Boot JDK version... " >&6; }
21996               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21998 $as_echo "$BOOT_JDK_VERSION" >&6; }
21999             fi # end check jdk version
22000           fi # end check rt.jar
22001         fi # end check javac
22002       fi # end check java
22003     fi # end check boot jdk found
22004   fi
22005 
22006 
22007   if test "x$BOOT_JDK_FOUND" = xno; then
22008     # Now execute the test
22009 
22010   if test "x$PROGRAMW6432" != x; then
22011     VIRTUAL_DIR="$PROGRAMW6432/Java"
22012 
22013   windows_path="$VIRTUAL_DIR"
22014   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22015     unix_path=`$CYGPATH -u "$windows_path"`
22016     VIRTUAL_DIR="$unix_path"
22017   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22018     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22019     VIRTUAL_DIR="$unix_path"
22020   fi
22021 
22022 
22023   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22024   BOOT_JDK_SUFFIX=""
22025   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22026   if test "x$ALL_JDKS_FOUND" != x; then
22027     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22028 
22029   if test "x$BOOT_JDK_FOUND" = xno; then
22030     # Now execute the test
22031 
22032         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22033         if test -d "$BOOT_JDK"; then
22034           BOOT_JDK_FOUND=maybe
22035           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22036 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22037         fi
22038 
22039 
22040     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22041     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22042       # Do we have a bin/java?
22043       if test ! -x "$BOOT_JDK/bin/java"; then
22044         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22045 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22046         BOOT_JDK_FOUND=no
22047       else
22048         # Do we have a bin/javac?
22049         if test ! -x "$BOOT_JDK/bin/javac"; then
22050           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22051 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22052           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22053 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22054           BOOT_JDK_FOUND=no
22055         else
22056           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22057           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22058             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22060             BOOT_JDK_FOUND=no
22061           else
22062             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22063             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22064 
22065             # Extra M4 quote needed to protect [] in grep expression.
22066             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22067             if test "x$FOUND_CORRECT_VERSION" = x; then
22068               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22069 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22070               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22071 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22072               BOOT_JDK_FOUND=no
22073             else
22074               # We're done! :-)
22075               BOOT_JDK_FOUND=yes
22076 
22077   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22078 
22079   # Input might be given as Windows format, start by converting to
22080   # unix format.
22081   path="$BOOT_JDK"
22082   new_path=`$CYGPATH -u "$path"`
22083 
22084   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22085   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22086   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22087   # "foo.exe" is OK but "foo" is an error.
22088   #
22089   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22090   # It is also a way to make sure we got the proper file name for the real test later on.
22091   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22092   if test "x$test_shortpath" = x; then
22093     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22094 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22095     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22096   fi
22097 
22098   # Call helper function which possibly converts this using DOS-style short mode.
22099   # If so, the updated path is stored in $new_path.
22100 
22101   input_path="$new_path"
22102   # Check if we need to convert this using DOS-style short mode. If the path
22103   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22104   # take no chances and rewrite it.
22105   # Note: m4 eats our [], so we need to use [ and ] instead.
22106   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22107   if test "x$has_forbidden_chars" != x; then
22108     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22109     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22110     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22111     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22112       # Going to short mode and back again did indeed matter. Since short mode is
22113       # case insensitive, let's make it lowercase to improve readability.
22114       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22115       # Now convert it back to Unix-stile (cygpath)
22116       input_path=`$CYGPATH -u "$shortmode_path"`
22117       new_path="$input_path"
22118     fi
22119   fi
22120 
22121   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22122   if test "x$test_cygdrive_prefix" = x; then
22123     # As a simple fix, exclude /usr/bin since it's not a real path.
22124     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22125       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22126       # a path prefixed by /cygdrive for fixpath to work.
22127       new_path="$CYGWIN_ROOT_PATH$input_path"
22128     fi
22129   fi
22130 
22131 
22132   if test "x$path" != "x$new_path"; then
22133     BOOT_JDK="$new_path"
22134     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22135 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22136   fi
22137 
22138   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22139 
22140   path="$BOOT_JDK"
22141   has_colon=`$ECHO $path | $GREP ^.:`
22142   new_path="$path"
22143   if test "x$has_colon" = x; then
22144     # Not in mixed or Windows style, start by that.
22145     new_path=`cmd //c echo $path`
22146   fi
22147 
22148 
22149   input_path="$new_path"
22150   # Check if we need to convert this using DOS-style short mode. If the path
22151   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22152   # take no chances and rewrite it.
22153   # Note: m4 eats our [], so we need to use [ and ] instead.
22154   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22155   if test "x$has_forbidden_chars" != x; then
22156     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22157     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22158   fi
22159 
22160 
22161   windows_path="$new_path"
22162   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22163     unix_path=`$CYGPATH -u "$windows_path"`
22164     new_path="$unix_path"
22165   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22166     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22167     new_path="$unix_path"
22168   fi
22169 
22170   if test "x$path" != "x$new_path"; then
22171     BOOT_JDK="$new_path"
22172     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22173 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22174   fi
22175 
22176   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22177   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22178 
22179   else
22180     # We're on a posix platform. Hooray! :)
22181     path="$BOOT_JDK"
22182     has_space=`$ECHO "$path" | $GREP " "`
22183     if test "x$has_space" != x; then
22184       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22185 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22186       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22187     fi
22188 
22189     # Use eval to expand a potential ~
22190     eval path="$path"
22191     if test ! -f "$path" && test ! -d "$path"; then
22192       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22193     fi
22194 
22195     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22196   fi
22197 
22198               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22199 $as_echo_n "checking for Boot JDK... " >&6; }
22200               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22201 $as_echo "$BOOT_JDK" >&6; }
22202               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22203 $as_echo_n "checking Boot JDK version... " >&6; }
22204               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22205               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22206 $as_echo "$BOOT_JDK_VERSION" >&6; }
22207             fi # end check jdk version
22208           fi # end check rt.jar
22209         fi # end check javac
22210       fi # end check java
22211     fi # end check boot jdk found
22212   fi
22213 
22214     done
22215   fi
22216 
22217   fi
22218 
22219 
22220     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22221     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22222       # Do we have a bin/java?
22223       if test ! -x "$BOOT_JDK/bin/java"; then
22224         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22225 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22226         BOOT_JDK_FOUND=no
22227       else
22228         # Do we have a bin/javac?
22229         if test ! -x "$BOOT_JDK/bin/javac"; then
22230           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22232           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22233 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22234           BOOT_JDK_FOUND=no
22235         else
22236           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22237           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22238             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22240             BOOT_JDK_FOUND=no
22241           else
22242             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22243             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22244 
22245             # Extra M4 quote needed to protect [] in grep expression.
22246             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22247             if test "x$FOUND_CORRECT_VERSION" = x; then
22248               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22249 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22250               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22251 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22252               BOOT_JDK_FOUND=no
22253             else
22254               # We're done! :-)
22255               BOOT_JDK_FOUND=yes
22256 
22257   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22258 
22259   # Input might be given as Windows format, start by converting to
22260   # unix format.
22261   path="$BOOT_JDK"
22262   new_path=`$CYGPATH -u "$path"`
22263 
22264   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22265   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22266   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22267   # "foo.exe" is OK but "foo" is an error.
22268   #
22269   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22270   # It is also a way to make sure we got the proper file name for the real test later on.
22271   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22272   if test "x$test_shortpath" = x; then
22273     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22274 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22275     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22276   fi
22277 
22278   # Call helper function which possibly converts this using DOS-style short mode.
22279   # If so, the updated path is stored in $new_path.
22280 
22281   input_path="$new_path"
22282   # Check if we need to convert this using DOS-style short mode. If the path
22283   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22284   # take no chances and rewrite it.
22285   # Note: m4 eats our [], so we need to use [ and ] instead.
22286   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22287   if test "x$has_forbidden_chars" != x; then
22288     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22289     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22290     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22291     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22292       # Going to short mode and back again did indeed matter. Since short mode is
22293       # case insensitive, let's make it lowercase to improve readability.
22294       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22295       # Now convert it back to Unix-stile (cygpath)
22296       input_path=`$CYGPATH -u "$shortmode_path"`
22297       new_path="$input_path"
22298     fi
22299   fi
22300 
22301   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22302   if test "x$test_cygdrive_prefix" = x; then
22303     # As a simple fix, exclude /usr/bin since it's not a real path.
22304     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22305       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22306       # a path prefixed by /cygdrive for fixpath to work.
22307       new_path="$CYGWIN_ROOT_PATH$input_path"
22308     fi
22309   fi
22310 
22311 
22312   if test "x$path" != "x$new_path"; then
22313     BOOT_JDK="$new_path"
22314     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22315 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22316   fi
22317 
22318   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22319 
22320   path="$BOOT_JDK"
22321   has_colon=`$ECHO $path | $GREP ^.:`
22322   new_path="$path"
22323   if test "x$has_colon" = x; then
22324     # Not in mixed or Windows style, start by that.
22325     new_path=`cmd //c echo $path`
22326   fi
22327 
22328 
22329   input_path="$new_path"
22330   # Check if we need to convert this using DOS-style short mode. If the path
22331   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22332   # take no chances and rewrite it.
22333   # Note: m4 eats our [], so we need to use [ and ] instead.
22334   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22335   if test "x$has_forbidden_chars" != x; then
22336     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22337     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22338   fi
22339 
22340 
22341   windows_path="$new_path"
22342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22343     unix_path=`$CYGPATH -u "$windows_path"`
22344     new_path="$unix_path"
22345   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22346     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22347     new_path="$unix_path"
22348   fi
22349 
22350   if test "x$path" != "x$new_path"; then
22351     BOOT_JDK="$new_path"
22352     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22353 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22354   fi
22355 
22356   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22357   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22358 
22359   else
22360     # We're on a posix platform. Hooray! :)
22361     path="$BOOT_JDK"
22362     has_space=`$ECHO "$path" | $GREP " "`
22363     if test "x$has_space" != x; then
22364       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22365 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22366       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22367     fi
22368 
22369     # Use eval to expand a potential ~
22370     eval path="$path"
22371     if test ! -f "$path" && test ! -d "$path"; then
22372       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22373     fi
22374 
22375     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22376   fi
22377 
22378               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22379 $as_echo_n "checking for Boot JDK... " >&6; }
22380               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22381 $as_echo "$BOOT_JDK" >&6; }
22382               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22383 $as_echo_n "checking Boot JDK version... " >&6; }
22384               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22385               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22386 $as_echo "$BOOT_JDK_VERSION" >&6; }
22387             fi # end check jdk version
22388           fi # end check rt.jar
22389         fi # end check javac
22390       fi # end check java
22391     fi # end check boot jdk found
22392   fi
22393 
22394 
22395   if test "x$BOOT_JDK_FOUND" = xno; then
22396     # Now execute the test
22397 
22398   if test "x$PROGRAMFILES" != x; then
22399     VIRTUAL_DIR="$PROGRAMFILES/Java"
22400 
22401   windows_path="$VIRTUAL_DIR"
22402   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22403     unix_path=`$CYGPATH -u "$windows_path"`
22404     VIRTUAL_DIR="$unix_path"
22405   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22406     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22407     VIRTUAL_DIR="$unix_path"
22408   fi
22409 
22410 
22411   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22412   BOOT_JDK_SUFFIX=""
22413   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22414   if test "x$ALL_JDKS_FOUND" != x; then
22415     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22416 
22417   if test "x$BOOT_JDK_FOUND" = xno; then
22418     # Now execute the test
22419 
22420         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22421         if test -d "$BOOT_JDK"; then
22422           BOOT_JDK_FOUND=maybe
22423           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22424 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22425         fi
22426 
22427 
22428     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22429     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22430       # Do we have a bin/java?
22431       if test ! -x "$BOOT_JDK/bin/java"; then
22432         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22434         BOOT_JDK_FOUND=no
22435       else
22436         # Do we have a bin/javac?
22437         if test ! -x "$BOOT_JDK/bin/javac"; then
22438           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22439 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22440           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22441 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22442           BOOT_JDK_FOUND=no
22443         else
22444           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22445           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22446             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22448             BOOT_JDK_FOUND=no
22449           else
22450             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22451             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22452 
22453             # Extra M4 quote needed to protect [] in grep expression.
22454             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22455             if test "x$FOUND_CORRECT_VERSION" = x; then
22456               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22458               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22459 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22460               BOOT_JDK_FOUND=no
22461             else
22462               # We're done! :-)
22463               BOOT_JDK_FOUND=yes
22464 
22465   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22466 
22467   # Input might be given as Windows format, start by converting to
22468   # unix format.
22469   path="$BOOT_JDK"
22470   new_path=`$CYGPATH -u "$path"`
22471 
22472   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22473   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22474   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22475   # "foo.exe" is OK but "foo" is an error.
22476   #
22477   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22478   # It is also a way to make sure we got the proper file name for the real test later on.
22479   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22480   if test "x$test_shortpath" = x; then
22481     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22482 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22483     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22484   fi
22485 
22486   # Call helper function which possibly converts this using DOS-style short mode.
22487   # If so, the updated path is stored in $new_path.
22488 
22489   input_path="$new_path"
22490   # Check if we need to convert this using DOS-style short mode. If the path
22491   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22492   # take no chances and rewrite it.
22493   # Note: m4 eats our [], so we need to use [ and ] instead.
22494   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22495   if test "x$has_forbidden_chars" != x; then
22496     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22497     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22498     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22499     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22500       # Going to short mode and back again did indeed matter. Since short mode is
22501       # case insensitive, let's make it lowercase to improve readability.
22502       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22503       # Now convert it back to Unix-stile (cygpath)
22504       input_path=`$CYGPATH -u "$shortmode_path"`
22505       new_path="$input_path"
22506     fi
22507   fi
22508 
22509   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22510   if test "x$test_cygdrive_prefix" = x; then
22511     # As a simple fix, exclude /usr/bin since it's not a real path.
22512     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22513       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22514       # a path prefixed by /cygdrive for fixpath to work.
22515       new_path="$CYGWIN_ROOT_PATH$input_path"
22516     fi
22517   fi
22518 
22519 
22520   if test "x$path" != "x$new_path"; then
22521     BOOT_JDK="$new_path"
22522     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22523 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22524   fi
22525 
22526   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22527 
22528   path="$BOOT_JDK"
22529   has_colon=`$ECHO $path | $GREP ^.:`
22530   new_path="$path"
22531   if test "x$has_colon" = x; then
22532     # Not in mixed or Windows style, start by that.
22533     new_path=`cmd //c echo $path`
22534   fi
22535 
22536 
22537   input_path="$new_path"
22538   # Check if we need to convert this using DOS-style short mode. If the path
22539   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22540   # take no chances and rewrite it.
22541   # Note: m4 eats our [], so we need to use [ and ] instead.
22542   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22543   if test "x$has_forbidden_chars" != x; then
22544     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22545     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22546   fi
22547 
22548 
22549   windows_path="$new_path"
22550   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22551     unix_path=`$CYGPATH -u "$windows_path"`
22552     new_path="$unix_path"
22553   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22554     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22555     new_path="$unix_path"
22556   fi
22557 
22558   if test "x$path" != "x$new_path"; then
22559     BOOT_JDK="$new_path"
22560     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22562   fi
22563 
22564   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22565   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22566 
22567   else
22568     # We're on a posix platform. Hooray! :)
22569     path="$BOOT_JDK"
22570     has_space=`$ECHO "$path" | $GREP " "`
22571     if test "x$has_space" != x; then
22572       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22573 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22574       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22575     fi
22576 
22577     # Use eval to expand a potential ~
22578     eval path="$path"
22579     if test ! -f "$path" && test ! -d "$path"; then
22580       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22581     fi
22582 
22583     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22584   fi
22585 
22586               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22587 $as_echo_n "checking for Boot JDK... " >&6; }
22588               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22589 $as_echo "$BOOT_JDK" >&6; }
22590               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22591 $as_echo_n "checking Boot JDK version... " >&6; }
22592               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22593               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22594 $as_echo "$BOOT_JDK_VERSION" >&6; }
22595             fi # end check jdk version
22596           fi # end check rt.jar
22597         fi # end check javac
22598       fi # end check java
22599     fi # end check boot jdk found
22600   fi
22601 
22602     done
22603   fi
22604 
22605   fi
22606 
22607 
22608     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22609     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22610       # Do we have a bin/java?
22611       if test ! -x "$BOOT_JDK/bin/java"; then
22612         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22613 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22614         BOOT_JDK_FOUND=no
22615       else
22616         # Do we have a bin/javac?
22617         if test ! -x "$BOOT_JDK/bin/javac"; then
22618           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22620           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22621 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22622           BOOT_JDK_FOUND=no
22623         else
22624           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22625           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22626             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22627 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22628             BOOT_JDK_FOUND=no
22629           else
22630             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22631             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22632 
22633             # Extra M4 quote needed to protect [] in grep expression.
22634             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22635             if test "x$FOUND_CORRECT_VERSION" = x; then
22636               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22638               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22639 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22640               BOOT_JDK_FOUND=no
22641             else
22642               # We're done! :-)
22643               BOOT_JDK_FOUND=yes
22644 
22645   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22646 
22647   # Input might be given as Windows format, start by converting to
22648   # unix format.
22649   path="$BOOT_JDK"
22650   new_path=`$CYGPATH -u "$path"`
22651 
22652   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22653   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22654   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22655   # "foo.exe" is OK but "foo" is an error.
22656   #
22657   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22658   # It is also a way to make sure we got the proper file name for the real test later on.
22659   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22660   if test "x$test_shortpath" = x; then
22661     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22662 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22663     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22664   fi
22665 
22666   # Call helper function which possibly converts this using DOS-style short mode.
22667   # If so, the updated path is stored in $new_path.
22668 
22669   input_path="$new_path"
22670   # Check if we need to convert this using DOS-style short mode. If the path
22671   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22672   # take no chances and rewrite it.
22673   # Note: m4 eats our [], so we need to use [ and ] instead.
22674   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22675   if test "x$has_forbidden_chars" != x; then
22676     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22677     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22678     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22679     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22680       # Going to short mode and back again did indeed matter. Since short mode is
22681       # case insensitive, let's make it lowercase to improve readability.
22682       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22683       # Now convert it back to Unix-stile (cygpath)
22684       input_path=`$CYGPATH -u "$shortmode_path"`
22685       new_path="$input_path"
22686     fi
22687   fi
22688 
22689   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22690   if test "x$test_cygdrive_prefix" = x; then
22691     # As a simple fix, exclude /usr/bin since it's not a real path.
22692     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22693       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22694       # a path prefixed by /cygdrive for fixpath to work.
22695       new_path="$CYGWIN_ROOT_PATH$input_path"
22696     fi
22697   fi
22698 
22699 
22700   if test "x$path" != "x$new_path"; then
22701     BOOT_JDK="$new_path"
22702     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22703 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22704   fi
22705 
22706   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22707 
22708   path="$BOOT_JDK"
22709   has_colon=`$ECHO $path | $GREP ^.:`
22710   new_path="$path"
22711   if test "x$has_colon" = x; then
22712     # Not in mixed or Windows style, start by that.
22713     new_path=`cmd //c echo $path`
22714   fi
22715 
22716 
22717   input_path="$new_path"
22718   # Check if we need to convert this using DOS-style short mode. If the path
22719   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22720   # take no chances and rewrite it.
22721   # Note: m4 eats our [], so we need to use [ and ] instead.
22722   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22723   if test "x$has_forbidden_chars" != x; then
22724     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22725     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22726   fi
22727 
22728 
22729   windows_path="$new_path"
22730   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22731     unix_path=`$CYGPATH -u "$windows_path"`
22732     new_path="$unix_path"
22733   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22734     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22735     new_path="$unix_path"
22736   fi
22737 
22738   if test "x$path" != "x$new_path"; then
22739     BOOT_JDK="$new_path"
22740     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22741 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22742   fi
22743 
22744   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22745   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22746 
22747   else
22748     # We're on a posix platform. Hooray! :)
22749     path="$BOOT_JDK"
22750     has_space=`$ECHO "$path" | $GREP " "`
22751     if test "x$has_space" != x; then
22752       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22753 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22754       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22755     fi
22756 
22757     # Use eval to expand a potential ~
22758     eval path="$path"
22759     if test ! -f "$path" && test ! -d "$path"; then
22760       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22761     fi
22762 
22763     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22764   fi
22765 
22766               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22767 $as_echo_n "checking for Boot JDK... " >&6; }
22768               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22769 $as_echo "$BOOT_JDK" >&6; }
22770               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22771 $as_echo_n "checking Boot JDK version... " >&6; }
22772               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22773               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22774 $as_echo "$BOOT_JDK_VERSION" >&6; }
22775             fi # end check jdk version
22776           fi # end check rt.jar
22777         fi # end check javac
22778       fi # end check java
22779     fi # end check boot jdk found
22780   fi
22781 
22782 
22783   if test "x$BOOT_JDK_FOUND" = xno; then
22784     # Now execute the test
22785 
22786   if test "x$ProgramFiles" != x; then
22787     VIRTUAL_DIR="$ProgramFiles/Java"
22788 
22789   windows_path="$VIRTUAL_DIR"
22790   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22791     unix_path=`$CYGPATH -u "$windows_path"`
22792     VIRTUAL_DIR="$unix_path"
22793   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22794     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22795     VIRTUAL_DIR="$unix_path"
22796   fi
22797 
22798 
22799   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22800   BOOT_JDK_SUFFIX=""
22801   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22802   if test "x$ALL_JDKS_FOUND" != x; then
22803     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22804 
22805   if test "x$BOOT_JDK_FOUND" = xno; then
22806     # Now execute the test
22807 
22808         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22809         if test -d "$BOOT_JDK"; then
22810           BOOT_JDK_FOUND=maybe
22811           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22812 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22813         fi
22814 
22815 
22816     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22817     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22818       # Do we have a bin/java?
22819       if test ! -x "$BOOT_JDK/bin/java"; then
22820         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22822         BOOT_JDK_FOUND=no
22823       else
22824         # Do we have a bin/javac?
22825         if test ! -x "$BOOT_JDK/bin/javac"; then
22826           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22827 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22828           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22829 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22830           BOOT_JDK_FOUND=no
22831         else
22832           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22833           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22834             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22836             BOOT_JDK_FOUND=no
22837           else
22838             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22839             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22840 
22841             # Extra M4 quote needed to protect [] in grep expression.
22842             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22843             if test "x$FOUND_CORRECT_VERSION" = x; then
22844               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22845 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22846               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22847 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22848               BOOT_JDK_FOUND=no
22849             else
22850               # We're done! :-)
22851               BOOT_JDK_FOUND=yes
22852 
22853   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22854 
22855   # Input might be given as Windows format, start by converting to
22856   # unix format.
22857   path="$BOOT_JDK"
22858   new_path=`$CYGPATH -u "$path"`
22859 
22860   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22861   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22862   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22863   # "foo.exe" is OK but "foo" is an error.
22864   #
22865   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22866   # It is also a way to make sure we got the proper file name for the real test later on.
22867   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22868   if test "x$test_shortpath" = x; then
22869     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22870 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22871     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22872   fi
22873 
22874   # Call helper function which possibly converts this using DOS-style short mode.
22875   # If so, the updated path is stored in $new_path.
22876 
22877   input_path="$new_path"
22878   # Check if we need to convert this using DOS-style short mode. If the path
22879   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22880   # take no chances and rewrite it.
22881   # Note: m4 eats our [], so we need to use [ and ] instead.
22882   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22883   if test "x$has_forbidden_chars" != x; then
22884     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22885     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22886     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22887     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22888       # Going to short mode and back again did indeed matter. Since short mode is
22889       # case insensitive, let's make it lowercase to improve readability.
22890       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22891       # Now convert it back to Unix-stile (cygpath)
22892       input_path=`$CYGPATH -u "$shortmode_path"`
22893       new_path="$input_path"
22894     fi
22895   fi
22896 
22897   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22898   if test "x$test_cygdrive_prefix" = x; then
22899     # As a simple fix, exclude /usr/bin since it's not a real path.
22900     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22901       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22902       # a path prefixed by /cygdrive for fixpath to work.
22903       new_path="$CYGWIN_ROOT_PATH$input_path"
22904     fi
22905   fi
22906 
22907 
22908   if test "x$path" != "x$new_path"; then
22909     BOOT_JDK="$new_path"
22910     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22911 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22912   fi
22913 
22914   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22915 
22916   path="$BOOT_JDK"
22917   has_colon=`$ECHO $path | $GREP ^.:`
22918   new_path="$path"
22919   if test "x$has_colon" = x; then
22920     # Not in mixed or Windows style, start by that.
22921     new_path=`cmd //c echo $path`
22922   fi
22923 
22924 
22925   input_path="$new_path"
22926   # Check if we need to convert this using DOS-style short mode. If the path
22927   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22928   # take no chances and rewrite it.
22929   # Note: m4 eats our [], so we need to use [ and ] instead.
22930   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22931   if test "x$has_forbidden_chars" != x; then
22932     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22933     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22934   fi
22935 
22936 
22937   windows_path="$new_path"
22938   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22939     unix_path=`$CYGPATH -u "$windows_path"`
22940     new_path="$unix_path"
22941   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22942     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22943     new_path="$unix_path"
22944   fi
22945 
22946   if test "x$path" != "x$new_path"; then
22947     BOOT_JDK="$new_path"
22948     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22949 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22950   fi
22951 
22952   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22953   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22954 
22955   else
22956     # We're on a posix platform. Hooray! :)
22957     path="$BOOT_JDK"
22958     has_space=`$ECHO "$path" | $GREP " "`
22959     if test "x$has_space" != x; then
22960       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22961 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22962       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22963     fi
22964 
22965     # Use eval to expand a potential ~
22966     eval path="$path"
22967     if test ! -f "$path" && test ! -d "$path"; then
22968       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22969     fi
22970 
22971     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22972   fi
22973 
22974               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22975 $as_echo_n "checking for Boot JDK... " >&6; }
22976               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22977 $as_echo "$BOOT_JDK" >&6; }
22978               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22979 $as_echo_n "checking Boot JDK version... " >&6; }
22980               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22981               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22982 $as_echo "$BOOT_JDK_VERSION" >&6; }
22983             fi # end check jdk version
22984           fi # end check rt.jar
22985         fi # end check javac
22986       fi # end check java
22987     fi # end check boot jdk found
22988   fi
22989 
22990     done
22991   fi
22992 
22993   fi
22994 
22995 
22996     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22997     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22998       # Do we have a bin/java?
22999       if test ! -x "$BOOT_JDK/bin/java"; then
23000         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23001 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23002         BOOT_JDK_FOUND=no
23003       else
23004         # Do we have a bin/javac?
23005         if test ! -x "$BOOT_JDK/bin/javac"; then
23006           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23008           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23009 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23010           BOOT_JDK_FOUND=no
23011         else
23012           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23013           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23014             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23015 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23016             BOOT_JDK_FOUND=no
23017           else
23018             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23019             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23020 
23021             # Extra M4 quote needed to protect [] in grep expression.
23022             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23023             if test "x$FOUND_CORRECT_VERSION" = x; then
23024               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23025 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23026               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23027 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23028               BOOT_JDK_FOUND=no
23029             else
23030               # We're done! :-)
23031               BOOT_JDK_FOUND=yes
23032 
23033   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23034 
23035   # Input might be given as Windows format, start by converting to
23036   # unix format.
23037   path="$BOOT_JDK"
23038   new_path=`$CYGPATH -u "$path"`
23039 
23040   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23041   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23042   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23043   # "foo.exe" is OK but "foo" is an error.
23044   #
23045   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23046   # It is also a way to make sure we got the proper file name for the real test later on.
23047   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23048   if test "x$test_shortpath" = x; then
23049     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23050 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23051     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23052   fi
23053 
23054   # Call helper function which possibly converts this using DOS-style short mode.
23055   # If so, the updated path is stored in $new_path.
23056 
23057   input_path="$new_path"
23058   # Check if we need to convert this using DOS-style short mode. If the path
23059   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23060   # take no chances and rewrite it.
23061   # Note: m4 eats our [], so we need to use [ and ] instead.
23062   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23063   if test "x$has_forbidden_chars" != x; then
23064     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23065     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23066     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23067     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23068       # Going to short mode and back again did indeed matter. Since short mode is
23069       # case insensitive, let's make it lowercase to improve readability.
23070       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23071       # Now convert it back to Unix-stile (cygpath)
23072       input_path=`$CYGPATH -u "$shortmode_path"`
23073       new_path="$input_path"
23074     fi
23075   fi
23076 
23077   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23078   if test "x$test_cygdrive_prefix" = x; then
23079     # As a simple fix, exclude /usr/bin since it's not a real path.
23080     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23081       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23082       # a path prefixed by /cygdrive for fixpath to work.
23083       new_path="$CYGWIN_ROOT_PATH$input_path"
23084     fi
23085   fi
23086 
23087 
23088   if test "x$path" != "x$new_path"; then
23089     BOOT_JDK="$new_path"
23090     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23091 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23092   fi
23093 
23094   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23095 
23096   path="$BOOT_JDK"
23097   has_colon=`$ECHO $path | $GREP ^.:`
23098   new_path="$path"
23099   if test "x$has_colon" = x; then
23100     # Not in mixed or Windows style, start by that.
23101     new_path=`cmd //c echo $path`
23102   fi
23103 
23104 
23105   input_path="$new_path"
23106   # Check if we need to convert this using DOS-style short mode. If the path
23107   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23108   # take no chances and rewrite it.
23109   # Note: m4 eats our [], so we need to use [ and ] instead.
23110   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23111   if test "x$has_forbidden_chars" != x; then
23112     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23113     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23114   fi
23115 
23116 
23117   windows_path="$new_path"
23118   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23119     unix_path=`$CYGPATH -u "$windows_path"`
23120     new_path="$unix_path"
23121   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23122     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23123     new_path="$unix_path"
23124   fi
23125 
23126   if test "x$path" != "x$new_path"; then
23127     BOOT_JDK="$new_path"
23128     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23129 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23130   fi
23131 
23132   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23133   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23134 
23135   else
23136     # We're on a posix platform. Hooray! :)
23137     path="$BOOT_JDK"
23138     has_space=`$ECHO "$path" | $GREP " "`
23139     if test "x$has_space" != x; then
23140       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23141 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23142       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23143     fi
23144 
23145     # Use eval to expand a potential ~
23146     eval path="$path"
23147     if test ! -f "$path" && test ! -d "$path"; then
23148       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23149     fi
23150 
23151     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23152   fi
23153 
23154               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23155 $as_echo_n "checking for Boot JDK... " >&6; }
23156               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23157 $as_echo "$BOOT_JDK" >&6; }
23158               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23159 $as_echo_n "checking Boot JDK version... " >&6; }
23160               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23161               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23162 $as_echo "$BOOT_JDK_VERSION" >&6; }
23163             fi # end check jdk version
23164           fi # end check rt.jar
23165         fi # end check javac
23166       fi # end check java
23167     fi # end check boot jdk found
23168   fi
23169 
23170 
23171   if test "x$BOOT_JDK_FOUND" = xno; then
23172     # Now execute the test
23173 
23174   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23175   BOOT_JDK_SUFFIX=""
23176   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23177   if test "x$ALL_JDKS_FOUND" != x; then
23178     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23179 
23180   if test "x$BOOT_JDK_FOUND" = xno; then
23181     # Now execute the test
23182 
23183         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23184         if test -d "$BOOT_JDK"; then
23185           BOOT_JDK_FOUND=maybe
23186           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23187 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23188         fi
23189 
23190 
23191     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23192     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23193       # Do we have a bin/java?
23194       if test ! -x "$BOOT_JDK/bin/java"; then
23195         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23196 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23197         BOOT_JDK_FOUND=no
23198       else
23199         # Do we have a bin/javac?
23200         if test ! -x "$BOOT_JDK/bin/javac"; then
23201           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23202 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23203           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23204 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23205           BOOT_JDK_FOUND=no
23206         else
23207           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23208           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23209             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23210 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23211             BOOT_JDK_FOUND=no
23212           else
23213             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23214             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23215 
23216             # Extra M4 quote needed to protect [] in grep expression.
23217             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23218             if test "x$FOUND_CORRECT_VERSION" = x; then
23219               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23220 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23221               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23222 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23223               BOOT_JDK_FOUND=no
23224             else
23225               # We're done! :-)
23226               BOOT_JDK_FOUND=yes
23227 
23228   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23229 
23230   # Input might be given as Windows format, start by converting to
23231   # unix format.
23232   path="$BOOT_JDK"
23233   new_path=`$CYGPATH -u "$path"`
23234 
23235   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23236   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23237   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23238   # "foo.exe" is OK but "foo" is an error.
23239   #
23240   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23241   # It is also a way to make sure we got the proper file name for the real test later on.
23242   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23243   if test "x$test_shortpath" = x; then
23244     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23245 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23246     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23247   fi
23248 
23249   # Call helper function which possibly converts this using DOS-style short mode.
23250   # If so, the updated path is stored in $new_path.
23251 
23252   input_path="$new_path"
23253   # Check if we need to convert this using DOS-style short mode. If the path
23254   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23255   # take no chances and rewrite it.
23256   # Note: m4 eats our [], so we need to use [ and ] instead.
23257   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23258   if test "x$has_forbidden_chars" != x; then
23259     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23260     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23261     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23262     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23263       # Going to short mode and back again did indeed matter. Since short mode is
23264       # case insensitive, let's make it lowercase to improve readability.
23265       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23266       # Now convert it back to Unix-stile (cygpath)
23267       input_path=`$CYGPATH -u "$shortmode_path"`
23268       new_path="$input_path"
23269     fi
23270   fi
23271 
23272   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23273   if test "x$test_cygdrive_prefix" = x; then
23274     # As a simple fix, exclude /usr/bin since it's not a real path.
23275     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23276       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23277       # a path prefixed by /cygdrive for fixpath to work.
23278       new_path="$CYGWIN_ROOT_PATH$input_path"
23279     fi
23280   fi
23281 
23282 
23283   if test "x$path" != "x$new_path"; then
23284     BOOT_JDK="$new_path"
23285     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23286 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23287   fi
23288 
23289   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23290 
23291   path="$BOOT_JDK"
23292   has_colon=`$ECHO $path | $GREP ^.:`
23293   new_path="$path"
23294   if test "x$has_colon" = x; then
23295     # Not in mixed or Windows style, start by that.
23296     new_path=`cmd //c echo $path`
23297   fi
23298 
23299 
23300   input_path="$new_path"
23301   # Check if we need to convert this using DOS-style short mode. If the path
23302   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23303   # take no chances and rewrite it.
23304   # Note: m4 eats our [], so we need to use [ and ] instead.
23305   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23306   if test "x$has_forbidden_chars" != x; then
23307     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23308     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23309   fi
23310 
23311 
23312   windows_path="$new_path"
23313   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23314     unix_path=`$CYGPATH -u "$windows_path"`
23315     new_path="$unix_path"
23316   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23317     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23318     new_path="$unix_path"
23319   fi
23320 
23321   if test "x$path" != "x$new_path"; then
23322     BOOT_JDK="$new_path"
23323     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23324 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23325   fi
23326 
23327   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23328   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23329 
23330   else
23331     # We're on a posix platform. Hooray! :)
23332     path="$BOOT_JDK"
23333     has_space=`$ECHO "$path" | $GREP " "`
23334     if test "x$has_space" != x; then
23335       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23336 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23337       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23338     fi
23339 
23340     # Use eval to expand a potential ~
23341     eval path="$path"
23342     if test ! -f "$path" && test ! -d "$path"; then
23343       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23344     fi
23345 
23346     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23347   fi
23348 
23349               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23350 $as_echo_n "checking for Boot JDK... " >&6; }
23351               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23352 $as_echo "$BOOT_JDK" >&6; }
23353               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23354 $as_echo_n "checking Boot JDK version... " >&6; }
23355               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23356               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23357 $as_echo "$BOOT_JDK_VERSION" >&6; }
23358             fi # end check jdk version
23359           fi # end check rt.jar
23360         fi # end check javac
23361       fi # end check java
23362     fi # end check boot jdk found
23363   fi
23364 
23365     done
23366   fi
23367 
23368 
23369     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23370     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23371       # Do we have a bin/java?
23372       if test ! -x "$BOOT_JDK/bin/java"; then
23373         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23374 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23375         BOOT_JDK_FOUND=no
23376       else
23377         # Do we have a bin/javac?
23378         if test ! -x "$BOOT_JDK/bin/javac"; then
23379           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23380 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23381           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23382 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23383           BOOT_JDK_FOUND=no
23384         else
23385           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23386           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23387             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23389             BOOT_JDK_FOUND=no
23390           else
23391             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23392             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23393 
23394             # Extra M4 quote needed to protect [] in grep expression.
23395             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23396             if test "x$FOUND_CORRECT_VERSION" = x; then
23397               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23399               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23400 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23401               BOOT_JDK_FOUND=no
23402             else
23403               # We're done! :-)
23404               BOOT_JDK_FOUND=yes
23405 
23406   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23407 
23408   # Input might be given as Windows format, start by converting to
23409   # unix format.
23410   path="$BOOT_JDK"
23411   new_path=`$CYGPATH -u "$path"`
23412 
23413   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23414   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23415   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23416   # "foo.exe" is OK but "foo" is an error.
23417   #
23418   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23419   # It is also a way to make sure we got the proper file name for the real test later on.
23420   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23421   if test "x$test_shortpath" = x; then
23422     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23423 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23424     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23425   fi
23426 
23427   # Call helper function which possibly converts this using DOS-style short mode.
23428   # If so, the updated path is stored in $new_path.
23429 
23430   input_path="$new_path"
23431   # Check if we need to convert this using DOS-style short mode. If the path
23432   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23433   # take no chances and rewrite it.
23434   # Note: m4 eats our [], so we need to use [ and ] instead.
23435   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23436   if test "x$has_forbidden_chars" != x; then
23437     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23438     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23439     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23440     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23441       # Going to short mode and back again did indeed matter. Since short mode is
23442       # case insensitive, let's make it lowercase to improve readability.
23443       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23444       # Now convert it back to Unix-stile (cygpath)
23445       input_path=`$CYGPATH -u "$shortmode_path"`
23446       new_path="$input_path"
23447     fi
23448   fi
23449 
23450   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23451   if test "x$test_cygdrive_prefix" = x; then
23452     # As a simple fix, exclude /usr/bin since it's not a real path.
23453     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23454       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23455       # a path prefixed by /cygdrive for fixpath to work.
23456       new_path="$CYGWIN_ROOT_PATH$input_path"
23457     fi
23458   fi
23459 
23460 
23461   if test "x$path" != "x$new_path"; then
23462     BOOT_JDK="$new_path"
23463     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23464 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23465   fi
23466 
23467   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23468 
23469   path="$BOOT_JDK"
23470   has_colon=`$ECHO $path | $GREP ^.:`
23471   new_path="$path"
23472   if test "x$has_colon" = x; then
23473     # Not in mixed or Windows style, start by that.
23474     new_path=`cmd //c echo $path`
23475   fi
23476 
23477 
23478   input_path="$new_path"
23479   # Check if we need to convert this using DOS-style short mode. If the path
23480   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23481   # take no chances and rewrite it.
23482   # Note: m4 eats our [], so we need to use [ and ] instead.
23483   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23484   if test "x$has_forbidden_chars" != x; then
23485     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23486     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23487   fi
23488 
23489 
23490   windows_path="$new_path"
23491   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23492     unix_path=`$CYGPATH -u "$windows_path"`
23493     new_path="$unix_path"
23494   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23495     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23496     new_path="$unix_path"
23497   fi
23498 
23499   if test "x$path" != "x$new_path"; then
23500     BOOT_JDK="$new_path"
23501     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23502 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23503   fi
23504 
23505   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23506   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23507 
23508   else
23509     # We're on a posix platform. Hooray! :)
23510     path="$BOOT_JDK"
23511     has_space=`$ECHO "$path" | $GREP " "`
23512     if test "x$has_space" != x; then
23513       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23514 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23515       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23516     fi
23517 
23518     # Use eval to expand a potential ~
23519     eval path="$path"
23520     if test ! -f "$path" && test ! -d "$path"; then
23521       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23522     fi
23523 
23524     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23525   fi
23526 
23527               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23528 $as_echo_n "checking for Boot JDK... " >&6; }
23529               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23530 $as_echo "$BOOT_JDK" >&6; }
23531               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23532 $as_echo_n "checking Boot JDK version... " >&6; }
23533               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23534               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23535 $as_echo "$BOOT_JDK_VERSION" >&6; }
23536             fi # end check jdk version
23537           fi # end check rt.jar
23538         fi # end check javac
23539       fi # end check java
23540     fi # end check boot jdk found
23541   fi
23542 
23543   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23544 
23545   if test "x$BOOT_JDK_FOUND" = xno; then
23546     # Now execute the test
23547 
23548   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23549   BOOT_JDK_SUFFIX="/Contents/Home"
23550   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23551   if test "x$ALL_JDKS_FOUND" != x; then
23552     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23553 
23554   if test "x$BOOT_JDK_FOUND" = xno; then
23555     # Now execute the test
23556 
23557         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23558         if test -d "$BOOT_JDK"; then
23559           BOOT_JDK_FOUND=maybe
23560           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23561 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23562         fi
23563 
23564 
23565     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23566     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23567       # Do we have a bin/java?
23568       if test ! -x "$BOOT_JDK/bin/java"; then
23569         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23570 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23571         BOOT_JDK_FOUND=no
23572       else
23573         # Do we have a bin/javac?
23574         if test ! -x "$BOOT_JDK/bin/javac"; then
23575           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23576 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23577           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23578 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23579           BOOT_JDK_FOUND=no
23580         else
23581           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23582           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23583             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23584 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23585             BOOT_JDK_FOUND=no
23586           else
23587             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23588             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23589 
23590             # Extra M4 quote needed to protect [] in grep expression.
23591             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23592             if test "x$FOUND_CORRECT_VERSION" = x; then
23593               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23594 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23595               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23596 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23597               BOOT_JDK_FOUND=no
23598             else
23599               # We're done! :-)
23600               BOOT_JDK_FOUND=yes
23601 
23602   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23603 
23604   # Input might be given as Windows format, start by converting to
23605   # unix format.
23606   path="$BOOT_JDK"
23607   new_path=`$CYGPATH -u "$path"`
23608 
23609   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23610   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23611   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23612   # "foo.exe" is OK but "foo" is an error.
23613   #
23614   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23615   # It is also a way to make sure we got the proper file name for the real test later on.
23616   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23617   if test "x$test_shortpath" = x; then
23618     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23619 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23620     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23621   fi
23622 
23623   # Call helper function which possibly converts this using DOS-style short mode.
23624   # If so, the updated path is stored in $new_path.
23625 
23626   input_path="$new_path"
23627   # Check if we need to convert this using DOS-style short mode. If the path
23628   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23629   # take no chances and rewrite it.
23630   # Note: m4 eats our [], so we need to use [ and ] instead.
23631   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23632   if test "x$has_forbidden_chars" != x; then
23633     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23634     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23635     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23636     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23637       # Going to short mode and back again did indeed matter. Since short mode is
23638       # case insensitive, let's make it lowercase to improve readability.
23639       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23640       # Now convert it back to Unix-stile (cygpath)
23641       input_path=`$CYGPATH -u "$shortmode_path"`
23642       new_path="$input_path"
23643     fi
23644   fi
23645 
23646   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23647   if test "x$test_cygdrive_prefix" = x; then
23648     # As a simple fix, exclude /usr/bin since it's not a real path.
23649     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23650       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23651       # a path prefixed by /cygdrive for fixpath to work.
23652       new_path="$CYGWIN_ROOT_PATH$input_path"
23653     fi
23654   fi
23655 
23656 
23657   if test "x$path" != "x$new_path"; then
23658     BOOT_JDK="$new_path"
23659     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23660 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23661   fi
23662 
23663   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23664 
23665   path="$BOOT_JDK"
23666   has_colon=`$ECHO $path | $GREP ^.:`
23667   new_path="$path"
23668   if test "x$has_colon" = x; then
23669     # Not in mixed or Windows style, start by that.
23670     new_path=`cmd //c echo $path`
23671   fi
23672 
23673 
23674   input_path="$new_path"
23675   # Check if we need to convert this using DOS-style short mode. If the path
23676   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23677   # take no chances and rewrite it.
23678   # Note: m4 eats our [], so we need to use [ and ] instead.
23679   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23680   if test "x$has_forbidden_chars" != x; then
23681     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23682     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23683   fi
23684 
23685 
23686   windows_path="$new_path"
23687   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23688     unix_path=`$CYGPATH -u "$windows_path"`
23689     new_path="$unix_path"
23690   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23691     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23692     new_path="$unix_path"
23693   fi
23694 
23695   if test "x$path" != "x$new_path"; then
23696     BOOT_JDK="$new_path"
23697     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23698 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23699   fi
23700 
23701   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23702   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23703 
23704   else
23705     # We're on a posix platform. Hooray! :)
23706     path="$BOOT_JDK"
23707     has_space=`$ECHO "$path" | $GREP " "`
23708     if test "x$has_space" != x; then
23709       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23710 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23711       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23712     fi
23713 
23714     # Use eval to expand a potential ~
23715     eval path="$path"
23716     if test ! -f "$path" && test ! -d "$path"; then
23717       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23718     fi
23719 
23720     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23721   fi
23722 
23723               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23724 $as_echo_n "checking for Boot JDK... " >&6; }
23725               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23726 $as_echo "$BOOT_JDK" >&6; }
23727               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23728 $as_echo_n "checking Boot JDK version... " >&6; }
23729               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23730               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23731 $as_echo "$BOOT_JDK_VERSION" >&6; }
23732             fi # end check jdk version
23733           fi # end check rt.jar
23734         fi # end check javac
23735       fi # end check java
23736     fi # end check boot jdk found
23737   fi
23738 
23739     done
23740   fi
23741 
23742 
23743     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23744     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23745       # Do we have a bin/java?
23746       if test ! -x "$BOOT_JDK/bin/java"; then
23747         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23749         BOOT_JDK_FOUND=no
23750       else
23751         # Do we have a bin/javac?
23752         if test ! -x "$BOOT_JDK/bin/javac"; then
23753           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23754 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23755           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23756 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23757           BOOT_JDK_FOUND=no
23758         else
23759           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23760           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23761             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23762 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23763             BOOT_JDK_FOUND=no
23764           else
23765             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23766             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23767 
23768             # Extra M4 quote needed to protect [] in grep expression.
23769             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23770             if test "x$FOUND_CORRECT_VERSION" = x; then
23771               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23772 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23773               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23774 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23775               BOOT_JDK_FOUND=no
23776             else
23777               # We're done! :-)
23778               BOOT_JDK_FOUND=yes
23779 
23780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23781 
23782   # Input might be given as Windows format, start by converting to
23783   # unix format.
23784   path="$BOOT_JDK"
23785   new_path=`$CYGPATH -u "$path"`
23786 
23787   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23788   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23789   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23790   # "foo.exe" is OK but "foo" is an error.
23791   #
23792   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23793   # It is also a way to make sure we got the proper file name for the real test later on.
23794   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23795   if test "x$test_shortpath" = x; then
23796     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23797 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23798     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23799   fi
23800 
23801   # Call helper function which possibly converts this using DOS-style short mode.
23802   # If so, the updated path is stored in $new_path.
23803 
23804   input_path="$new_path"
23805   # Check if we need to convert this using DOS-style short mode. If the path
23806   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23807   # take no chances and rewrite it.
23808   # Note: m4 eats our [], so we need to use [ and ] instead.
23809   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23810   if test "x$has_forbidden_chars" != x; then
23811     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23812     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23813     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23814     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23815       # Going to short mode and back again did indeed matter. Since short mode is
23816       # case insensitive, let's make it lowercase to improve readability.
23817       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23818       # Now convert it back to Unix-stile (cygpath)
23819       input_path=`$CYGPATH -u "$shortmode_path"`
23820       new_path="$input_path"
23821     fi
23822   fi
23823 
23824   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23825   if test "x$test_cygdrive_prefix" = x; then
23826     # As a simple fix, exclude /usr/bin since it's not a real path.
23827     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23828       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23829       # a path prefixed by /cygdrive for fixpath to work.
23830       new_path="$CYGWIN_ROOT_PATH$input_path"
23831     fi
23832   fi
23833 
23834 
23835   if test "x$path" != "x$new_path"; then
23836     BOOT_JDK="$new_path"
23837     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23838 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23839   fi
23840 
23841   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23842 
23843   path="$BOOT_JDK"
23844   has_colon=`$ECHO $path | $GREP ^.:`
23845   new_path="$path"
23846   if test "x$has_colon" = x; then
23847     # Not in mixed or Windows style, start by that.
23848     new_path=`cmd //c echo $path`
23849   fi
23850 
23851 
23852   input_path="$new_path"
23853   # Check if we need to convert this using DOS-style short mode. If the path
23854   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23855   # take no chances and rewrite it.
23856   # Note: m4 eats our [], so we need to use [ and ] instead.
23857   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23858   if test "x$has_forbidden_chars" != x; then
23859     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23860     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23861   fi
23862 
23863 
23864   windows_path="$new_path"
23865   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23866     unix_path=`$CYGPATH -u "$windows_path"`
23867     new_path="$unix_path"
23868   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23869     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23870     new_path="$unix_path"
23871   fi
23872 
23873   if test "x$path" != "x$new_path"; then
23874     BOOT_JDK="$new_path"
23875     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23877   fi
23878 
23879   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23880   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23881 
23882   else
23883     # We're on a posix platform. Hooray! :)
23884     path="$BOOT_JDK"
23885     has_space=`$ECHO "$path" | $GREP " "`
23886     if test "x$has_space" != x; then
23887       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23888 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23889       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23890     fi
23891 
23892     # Use eval to expand a potential ~
23893     eval path="$path"
23894     if test ! -f "$path" && test ! -d "$path"; then
23895       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23896     fi
23897 
23898     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23899   fi
23900 
23901               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23902 $as_echo_n "checking for Boot JDK... " >&6; }
23903               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23904 $as_echo "$BOOT_JDK" >&6; }
23905               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23906 $as_echo_n "checking Boot JDK version... " >&6; }
23907               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23908               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23909 $as_echo "$BOOT_JDK_VERSION" >&6; }
23910             fi # end check jdk version
23911           fi # end check rt.jar
23912         fi # end check javac
23913       fi # end check java
23914     fi # end check boot jdk found
23915   fi
23916 
23917 
23918   if test "x$BOOT_JDK_FOUND" = xno; then
23919     # Now execute the test
23920 
23921   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23922   BOOT_JDK_SUFFIX="/Contents/Home"
23923   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23924   if test "x$ALL_JDKS_FOUND" != x; then
23925     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23926 
23927   if test "x$BOOT_JDK_FOUND" = xno; then
23928     # Now execute the test
23929 
23930         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23931         if test -d "$BOOT_JDK"; then
23932           BOOT_JDK_FOUND=maybe
23933           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23934 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23935         fi
23936 
23937 
23938     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23939     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23940       # Do we have a bin/java?
23941       if test ! -x "$BOOT_JDK/bin/java"; then
23942         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23944         BOOT_JDK_FOUND=no
23945       else
23946         # Do we have a bin/javac?
23947         if test ! -x "$BOOT_JDK/bin/javac"; then
23948           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23949 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23950           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23951 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23952           BOOT_JDK_FOUND=no
23953         else
23954           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23955           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23956             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23957 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23958             BOOT_JDK_FOUND=no
23959           else
23960             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23961             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23962 
23963             # Extra M4 quote needed to protect [] in grep expression.
23964             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23965             if test "x$FOUND_CORRECT_VERSION" = x; then
23966               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23967 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23968               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23969 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23970               BOOT_JDK_FOUND=no
23971             else
23972               # We're done! :-)
23973               BOOT_JDK_FOUND=yes
23974 
23975   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23976 
23977   # Input might be given as Windows format, start by converting to
23978   # unix format.
23979   path="$BOOT_JDK"
23980   new_path=`$CYGPATH -u "$path"`
23981 
23982   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23983   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23984   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23985   # "foo.exe" is OK but "foo" is an error.
23986   #
23987   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23988   # It is also a way to make sure we got the proper file name for the real test later on.
23989   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23990   if test "x$test_shortpath" = x; then
23991     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23992 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23993     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23994   fi
23995 
23996   # Call helper function which possibly converts this using DOS-style short mode.
23997   # If so, the updated path is stored in $new_path.
23998 
23999   input_path="$new_path"
24000   # Check if we need to convert this using DOS-style short mode. If the path
24001   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24002   # take no chances and rewrite it.
24003   # Note: m4 eats our [], so we need to use [ and ] instead.
24004   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24005   if test "x$has_forbidden_chars" != x; then
24006     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24007     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24008     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24009     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24010       # Going to short mode and back again did indeed matter. Since short mode is
24011       # case insensitive, let's make it lowercase to improve readability.
24012       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24013       # Now convert it back to Unix-stile (cygpath)
24014       input_path=`$CYGPATH -u "$shortmode_path"`
24015       new_path="$input_path"
24016     fi
24017   fi
24018 
24019   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24020   if test "x$test_cygdrive_prefix" = x; then
24021     # As a simple fix, exclude /usr/bin since it's not a real path.
24022     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24023       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24024       # a path prefixed by /cygdrive for fixpath to work.
24025       new_path="$CYGWIN_ROOT_PATH$input_path"
24026     fi
24027   fi
24028 
24029 
24030   if test "x$path" != "x$new_path"; then
24031     BOOT_JDK="$new_path"
24032     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24033 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24034   fi
24035 
24036   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24037 
24038   path="$BOOT_JDK"
24039   has_colon=`$ECHO $path | $GREP ^.:`
24040   new_path="$path"
24041   if test "x$has_colon" = x; then
24042     # Not in mixed or Windows style, start by that.
24043     new_path=`cmd //c echo $path`
24044   fi
24045 
24046 
24047   input_path="$new_path"
24048   # Check if we need to convert this using DOS-style short mode. If the path
24049   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24050   # take no chances and rewrite it.
24051   # Note: m4 eats our [], so we need to use [ and ] instead.
24052   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24053   if test "x$has_forbidden_chars" != x; then
24054     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24055     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24056   fi
24057 
24058 
24059   windows_path="$new_path"
24060   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24061     unix_path=`$CYGPATH -u "$windows_path"`
24062     new_path="$unix_path"
24063   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24064     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24065     new_path="$unix_path"
24066   fi
24067 
24068   if test "x$path" != "x$new_path"; then
24069     BOOT_JDK="$new_path"
24070     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24071 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24072   fi
24073 
24074   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24075   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24076 
24077   else
24078     # We're on a posix platform. Hooray! :)
24079     path="$BOOT_JDK"
24080     has_space=`$ECHO "$path" | $GREP " "`
24081     if test "x$has_space" != x; then
24082       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24083 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24084       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24085     fi
24086 
24087     # Use eval to expand a potential ~
24088     eval path="$path"
24089     if test ! -f "$path" && test ! -d "$path"; then
24090       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24091     fi
24092 
24093     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24094   fi
24095 
24096               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24097 $as_echo_n "checking for Boot JDK... " >&6; }
24098               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24099 $as_echo "$BOOT_JDK" >&6; }
24100               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24101 $as_echo_n "checking Boot JDK version... " >&6; }
24102               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24103               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24104 $as_echo "$BOOT_JDK_VERSION" >&6; }
24105             fi # end check jdk version
24106           fi # end check rt.jar
24107         fi # end check javac
24108       fi # end check java
24109     fi # end check boot jdk found
24110   fi
24111 
24112     done
24113   fi
24114 
24115 
24116     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24117     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24118       # Do we have a bin/java?
24119       if test ! -x "$BOOT_JDK/bin/java"; then
24120         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24121 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24122         BOOT_JDK_FOUND=no
24123       else
24124         # Do we have a bin/javac?
24125         if test ! -x "$BOOT_JDK/bin/javac"; then
24126           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24127 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24128           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24129 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24130           BOOT_JDK_FOUND=no
24131         else
24132           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24133           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24134             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24136             BOOT_JDK_FOUND=no
24137           else
24138             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24139             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24140 
24141             # Extra M4 quote needed to protect [] in grep expression.
24142             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24143             if test "x$FOUND_CORRECT_VERSION" = x; then
24144               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24145 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24146               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24147 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24148               BOOT_JDK_FOUND=no
24149             else
24150               # We're done! :-)
24151               BOOT_JDK_FOUND=yes
24152 
24153   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24154 
24155   # Input might be given as Windows format, start by converting to
24156   # unix format.
24157   path="$BOOT_JDK"
24158   new_path=`$CYGPATH -u "$path"`
24159 
24160   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24161   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24162   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24163   # "foo.exe" is OK but "foo" is an error.
24164   #
24165   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24166   # It is also a way to make sure we got the proper file name for the real test later on.
24167   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24168   if test "x$test_shortpath" = x; then
24169     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24170 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24171     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24172   fi
24173 
24174   # Call helper function which possibly converts this using DOS-style short mode.
24175   # If so, the updated path is stored in $new_path.
24176 
24177   input_path="$new_path"
24178   # Check if we need to convert this using DOS-style short mode. If the path
24179   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24180   # take no chances and rewrite it.
24181   # Note: m4 eats our [], so we need to use [ and ] instead.
24182   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24183   if test "x$has_forbidden_chars" != x; then
24184     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24185     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24186     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24187     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24188       # Going to short mode and back again did indeed matter. Since short mode is
24189       # case insensitive, let's make it lowercase to improve readability.
24190       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24191       # Now convert it back to Unix-stile (cygpath)
24192       input_path=`$CYGPATH -u "$shortmode_path"`
24193       new_path="$input_path"
24194     fi
24195   fi
24196 
24197   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24198   if test "x$test_cygdrive_prefix" = x; then
24199     # As a simple fix, exclude /usr/bin since it's not a real path.
24200     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24201       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24202       # a path prefixed by /cygdrive for fixpath to work.
24203       new_path="$CYGWIN_ROOT_PATH$input_path"
24204     fi
24205   fi
24206 
24207 
24208   if test "x$path" != "x$new_path"; then
24209     BOOT_JDK="$new_path"
24210     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24211 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24212   fi
24213 
24214   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24215 
24216   path="$BOOT_JDK"
24217   has_colon=`$ECHO $path | $GREP ^.:`
24218   new_path="$path"
24219   if test "x$has_colon" = x; then
24220     # Not in mixed or Windows style, start by that.
24221     new_path=`cmd //c echo $path`
24222   fi
24223 
24224 
24225   input_path="$new_path"
24226   # Check if we need to convert this using DOS-style short mode. If the path
24227   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24228   # take no chances and rewrite it.
24229   # Note: m4 eats our [], so we need to use [ and ] instead.
24230   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24231   if test "x$has_forbidden_chars" != x; then
24232     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24233     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24234   fi
24235 
24236 
24237   windows_path="$new_path"
24238   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24239     unix_path=`$CYGPATH -u "$windows_path"`
24240     new_path="$unix_path"
24241   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24242     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24243     new_path="$unix_path"
24244   fi
24245 
24246   if test "x$path" != "x$new_path"; then
24247     BOOT_JDK="$new_path"
24248     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24249 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24250   fi
24251 
24252   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24253   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24254 
24255   else
24256     # We're on a posix platform. Hooray! :)
24257     path="$BOOT_JDK"
24258     has_space=`$ECHO "$path" | $GREP " "`
24259     if test "x$has_space" != x; then
24260       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24261 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24262       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24263     fi
24264 
24265     # Use eval to expand a potential ~
24266     eval path="$path"
24267     if test ! -f "$path" && test ! -d "$path"; then
24268       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24269     fi
24270 
24271     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24272   fi
24273 
24274               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24275 $as_echo_n "checking for Boot JDK... " >&6; }
24276               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24277 $as_echo "$BOOT_JDK" >&6; }
24278               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24279 $as_echo_n "checking Boot JDK version... " >&6; }
24280               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24281               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24282 $as_echo "$BOOT_JDK_VERSION" >&6; }
24283             fi # end check jdk version
24284           fi # end check rt.jar
24285         fi # end check javac
24286       fi # end check java
24287     fi # end check boot jdk found
24288   fi
24289 
24290   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24291 
24292   if test "x$BOOT_JDK_FOUND" = xno; then
24293     # Now execute the test
24294 
24295   BOOT_JDK_PREFIX="/usr/lib/jvm"
24296   BOOT_JDK_SUFFIX=""
24297   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24298   if test "x$ALL_JDKS_FOUND" != x; then
24299     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24300 
24301   if test "x$BOOT_JDK_FOUND" = xno; then
24302     # Now execute the test
24303 
24304         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24305         if test -d "$BOOT_JDK"; then
24306           BOOT_JDK_FOUND=maybe
24307           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24308 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24309         fi
24310 
24311 
24312     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24313     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24314       # Do we have a bin/java?
24315       if test ! -x "$BOOT_JDK/bin/java"; then
24316         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24317 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24318         BOOT_JDK_FOUND=no
24319       else
24320         # Do we have a bin/javac?
24321         if test ! -x "$BOOT_JDK/bin/javac"; then
24322           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24324           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24325 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24326           BOOT_JDK_FOUND=no
24327         else
24328           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24329           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24330             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24331 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24332             BOOT_JDK_FOUND=no
24333           else
24334             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24335             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24336 
24337             # Extra M4 quote needed to protect [] in grep expression.
24338             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24339             if test "x$FOUND_CORRECT_VERSION" = x; then
24340               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24341 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24342               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24343 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24344               BOOT_JDK_FOUND=no
24345             else
24346               # We're done! :-)
24347               BOOT_JDK_FOUND=yes
24348 
24349   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24350 
24351   # Input might be given as Windows format, start by converting to
24352   # unix format.
24353   path="$BOOT_JDK"
24354   new_path=`$CYGPATH -u "$path"`
24355 
24356   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24357   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24358   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24359   # "foo.exe" is OK but "foo" is an error.
24360   #
24361   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24362   # It is also a way to make sure we got the proper file name for the real test later on.
24363   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24364   if test "x$test_shortpath" = x; then
24365     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24366 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24367     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24368   fi
24369 
24370   # Call helper function which possibly converts this using DOS-style short mode.
24371   # If so, the updated path is stored in $new_path.
24372 
24373   input_path="$new_path"
24374   # Check if we need to convert this using DOS-style short mode. If the path
24375   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24376   # take no chances and rewrite it.
24377   # Note: m4 eats our [], so we need to use [ and ] instead.
24378   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24379   if test "x$has_forbidden_chars" != x; then
24380     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24381     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24382     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24383     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24384       # Going to short mode and back again did indeed matter. Since short mode is
24385       # case insensitive, let's make it lowercase to improve readability.
24386       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24387       # Now convert it back to Unix-stile (cygpath)
24388       input_path=`$CYGPATH -u "$shortmode_path"`
24389       new_path="$input_path"
24390     fi
24391   fi
24392 
24393   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24394   if test "x$test_cygdrive_prefix" = x; then
24395     # As a simple fix, exclude /usr/bin since it's not a real path.
24396     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24397       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24398       # a path prefixed by /cygdrive for fixpath to work.
24399       new_path="$CYGWIN_ROOT_PATH$input_path"
24400     fi
24401   fi
24402 
24403 
24404   if test "x$path" != "x$new_path"; then
24405     BOOT_JDK="$new_path"
24406     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24407 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24408   fi
24409 
24410   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24411 
24412   path="$BOOT_JDK"
24413   has_colon=`$ECHO $path | $GREP ^.:`
24414   new_path="$path"
24415   if test "x$has_colon" = x; then
24416     # Not in mixed or Windows style, start by that.
24417     new_path=`cmd //c echo $path`
24418   fi
24419 
24420 
24421   input_path="$new_path"
24422   # Check if we need to convert this using DOS-style short mode. If the path
24423   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24424   # take no chances and rewrite it.
24425   # Note: m4 eats our [], so we need to use [ and ] instead.
24426   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24427   if test "x$has_forbidden_chars" != x; then
24428     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24429     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24430   fi
24431 
24432 
24433   windows_path="$new_path"
24434   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24435     unix_path=`$CYGPATH -u "$windows_path"`
24436     new_path="$unix_path"
24437   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24438     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24439     new_path="$unix_path"
24440   fi
24441 
24442   if test "x$path" != "x$new_path"; then
24443     BOOT_JDK="$new_path"
24444     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24445 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24446   fi
24447 
24448   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24449   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24450 
24451   else
24452     # We're on a posix platform. Hooray! :)
24453     path="$BOOT_JDK"
24454     has_space=`$ECHO "$path" | $GREP " "`
24455     if test "x$has_space" != x; then
24456       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24458       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24459     fi
24460 
24461     # Use eval to expand a potential ~
24462     eval path="$path"
24463     if test ! -f "$path" && test ! -d "$path"; then
24464       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24465     fi
24466 
24467     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24468   fi
24469 
24470               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24471 $as_echo_n "checking for Boot JDK... " >&6; }
24472               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24473 $as_echo "$BOOT_JDK" >&6; }
24474               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24475 $as_echo_n "checking Boot JDK version... " >&6; }
24476               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24477               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24478 $as_echo "$BOOT_JDK_VERSION" >&6; }
24479             fi # end check jdk version
24480           fi # end check rt.jar
24481         fi # end check javac
24482       fi # end check java
24483     fi # end check boot jdk found
24484   fi
24485 
24486     done
24487   fi
24488 
24489 
24490     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24491     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24492       # Do we have a bin/java?
24493       if test ! -x "$BOOT_JDK/bin/java"; then
24494         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24495 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24496         BOOT_JDK_FOUND=no
24497       else
24498         # Do we have a bin/javac?
24499         if test ! -x "$BOOT_JDK/bin/javac"; then
24500           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24501 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24502           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24503 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24504           BOOT_JDK_FOUND=no
24505         else
24506           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24507           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24508             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24509 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24510             BOOT_JDK_FOUND=no
24511           else
24512             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24513             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24514 
24515             # Extra M4 quote needed to protect [] in grep expression.
24516             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24517             if test "x$FOUND_CORRECT_VERSION" = x; then
24518               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24519 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24520               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24521 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24522               BOOT_JDK_FOUND=no
24523             else
24524               # We're done! :-)
24525               BOOT_JDK_FOUND=yes
24526 
24527   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24528 
24529   # Input might be given as Windows format, start by converting to
24530   # unix format.
24531   path="$BOOT_JDK"
24532   new_path=`$CYGPATH -u "$path"`
24533 
24534   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24535   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24536   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24537   # "foo.exe" is OK but "foo" is an error.
24538   #
24539   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24540   # It is also a way to make sure we got the proper file name for the real test later on.
24541   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24542   if test "x$test_shortpath" = x; then
24543     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24544 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24545     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24546   fi
24547 
24548   # Call helper function which possibly converts this using DOS-style short mode.
24549   # If so, the updated path is stored in $new_path.
24550 
24551   input_path="$new_path"
24552   # Check if we need to convert this using DOS-style short mode. If the path
24553   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24554   # take no chances and rewrite it.
24555   # Note: m4 eats our [], so we need to use [ and ] instead.
24556   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24557   if test "x$has_forbidden_chars" != x; then
24558     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24559     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24560     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24561     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24562       # Going to short mode and back again did indeed matter. Since short mode is
24563       # case insensitive, let's make it lowercase to improve readability.
24564       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24565       # Now convert it back to Unix-stile (cygpath)
24566       input_path=`$CYGPATH -u "$shortmode_path"`
24567       new_path="$input_path"
24568     fi
24569   fi
24570 
24571   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24572   if test "x$test_cygdrive_prefix" = x; then
24573     # As a simple fix, exclude /usr/bin since it's not a real path.
24574     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24575       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24576       # a path prefixed by /cygdrive for fixpath to work.
24577       new_path="$CYGWIN_ROOT_PATH$input_path"
24578     fi
24579   fi
24580 
24581 
24582   if test "x$path" != "x$new_path"; then
24583     BOOT_JDK="$new_path"
24584     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24585 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24586   fi
24587 
24588   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24589 
24590   path="$BOOT_JDK"
24591   has_colon=`$ECHO $path | $GREP ^.:`
24592   new_path="$path"
24593   if test "x$has_colon" = x; then
24594     # Not in mixed or Windows style, start by that.
24595     new_path=`cmd //c echo $path`
24596   fi
24597 
24598 
24599   input_path="$new_path"
24600   # Check if we need to convert this using DOS-style short mode. If the path
24601   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24602   # take no chances and rewrite it.
24603   # Note: m4 eats our [], so we need to use [ and ] instead.
24604   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24605   if test "x$has_forbidden_chars" != x; then
24606     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24607     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24608   fi
24609 
24610 
24611   windows_path="$new_path"
24612   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24613     unix_path=`$CYGPATH -u "$windows_path"`
24614     new_path="$unix_path"
24615   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24616     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24617     new_path="$unix_path"
24618   fi
24619 
24620   if test "x$path" != "x$new_path"; then
24621     BOOT_JDK="$new_path"
24622     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24623 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24624   fi
24625 
24626   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24627   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24628 
24629   else
24630     # We're on a posix platform. Hooray! :)
24631     path="$BOOT_JDK"
24632     has_space=`$ECHO "$path" | $GREP " "`
24633     if test "x$has_space" != x; then
24634       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24635 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24636       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24637     fi
24638 
24639     # Use eval to expand a potential ~
24640     eval path="$path"
24641     if test ! -f "$path" && test ! -d "$path"; then
24642       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24643     fi
24644 
24645     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24646   fi
24647 
24648               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24649 $as_echo_n "checking for Boot JDK... " >&6; }
24650               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24651 $as_echo "$BOOT_JDK" >&6; }
24652               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24653 $as_echo_n "checking Boot JDK version... " >&6; }
24654               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24655               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24656 $as_echo "$BOOT_JDK_VERSION" >&6; }
24657             fi # end check jdk version
24658           fi # end check rt.jar
24659         fi # end check javac
24660       fi # end check java
24661     fi # end check boot jdk found
24662   fi
24663 
24664   fi
24665 
24666 
24667     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24668     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24669       # Do we have a bin/java?
24670       if test ! -x "$BOOT_JDK/bin/java"; then
24671         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24672 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24673         BOOT_JDK_FOUND=no
24674       else
24675         # Do we have a bin/javac?
24676         if test ! -x "$BOOT_JDK/bin/javac"; then
24677           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24678 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; igno