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_LCMS
 653 LCMS_LIBS
 654 LCMS_CFLAGS
 655 USE_EXTERNAL_LIBGIF
 656 USE_EXTERNAL_LIBJPEG
 657 ALSA_LIBS
 658 ALSA_CFLAGS
 659 FREETYPE_BUNDLE_LIB_PATH
 660 FREETYPE_LIBS
 661 FREETYPE_CFLAGS
 662 CUPS_CFLAGS
 663 OPENWIN_HOME
 664 X_EXTRA_LIBS
 665 X_LIBS
 666 X_PRE_LIBS
 667 X_CFLAGS
 668 XMKMF
 669 FIXPATH
 670 CXXFLAGS_DEBUG_SYMBOLS
 671 CFLAGS_DEBUG_SYMBOLS
 672 ZIP_DEBUGINFO_FILES
 673 ENABLE_DEBUG_SYMBOLS
 674 USING_BROKEN_SUSE_LD
 675 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 676 ZERO_ARCHFLAG
 677 LDFLAGS_CXX_JDK
 678 LDFLAGS_JDKEXE_SUFFIX
 679 LDFLAGS_JDKLIB_SUFFIX
 680 LDFLAGS_JDKEXE
 681 LDFLAGS_JDKLIB
 682 CXXFLAGS_JDKEXE
 683 CXXFLAGS_JDKLIB
 684 CFLAGS_JDKEXE
 685 CFLAGS_JDKLIB
 686 MACOSX_VERSION_MIN
 687 PACKAGE_PATH
 688 LEGACY_EXTRA_LDFLAGS
 689 LEGACY_EXTRA_CXXFLAGS
 690 LEGACY_EXTRA_CFLAGS
 691 CXX_FLAG_DEPS
 692 C_FLAG_DEPS
 693 CXX_O_FLAG_NONE
 694 CXX_O_FLAG_NORM
 695 CXX_O_FLAG_HI
 696 CXX_O_FLAG_HIGHEST
 697 C_O_FLAG_NONE
 698 C_O_FLAG_NORM
 699 C_O_FLAG_HI
 700 C_O_FLAG_HIGHEST
 701 POST_MCS_CMD
 702 POST_STRIP_CMD
 703 SET_EXECUTABLE_ORIGIN
 704 SET_SHARED_LIBRARY_ORIGIN
 705 CXX_FLAG_REORDER
 706 C_FLAG_REORDER
 707 SET_SHARED_LIBRARY_MAPFILE
 708 SET_SHARED_LIBRARY_NAME
 709 SHARED_LIBRARY_FLAGS
 710 EXE_SUFFIX
 711 STATIC_LIBRARY_SUFFIX
 712 SHARED_LIBRARY_SUFFIX
 713 LIBRARY_PREFIX
 714 STATIC_LIBRARY
 715 SHARED_LIBRARY
 716 OBJ_SUFFIX
 717 COMPILER_NAME
 718 JT_HOME
 719 JTREGEXE
 720 LIPO
 721 ac_ct_OBJDUMP
 722 OBJDUMP
 723 ac_ct_OBJCOPY
 724 OBJCOPY
 725 ac_ct_STRIP
 726 ac_ct_NM
 727 MCS
 728 STRIP
 729 GNM
 730 NM
 731 AS
 732 CXXCPP
 733 CPP
 734 COMPILER_TYPE
 735 RC_FLAGS
 736 DUMPBIN
 737 WINAR
 738 HOTSPOT_RC
 739 HOTSPOT_MT
 740 RC
 741 MT
 742 WINLD
 743 HOTSPOT_LD
 744 HOTSPOT_CXX
 745 ARFLAGS
 746 ac_ct_AR
 747 AR
 748 LDEXECXX
 749 LDCXX
 750 LDEXE
 751 LD
 752 ac_ct_OBJC
 753 OBJCFLAGS
 754 OBJC
 755 ac_ct_CXX
 756 CXXFLAGS
 757 CXX
 758 ac_ct_PROPER_COMPILER_CXX
 759 PROPER_COMPILER_CXX
 760 TOOLS_DIR_CXX
 761 POTENTIAL_CXX
 762 COMPILER_TARGET_BITS_FLAG
 763 OBJEXT
 764 EXEEXT
 765 ac_ct_CC
 766 CPPFLAGS
 767 LDFLAGS
 768 CFLAGS
 769 CC
 770 ac_ct_PROPER_COMPILER_CC
 771 PROPER_COMPILER_CC
 772 TOOLS_DIR_CC
 773 POTENTIAL_CC
 774 BUILD_LD
 775 BUILD_CXX
 776 BUILD_CC
 777 MSVCR_DLL
 778 VS_PATH
 779 VS_LIB
 780 VS_INCLUDE
 781 CYGWIN_LINK
 782 AR_OUT_OPTION
 783 LD_OUT_OPTION
 784 EXE_OUT_OPTION
 785 CC_OUT_OPTION
 786 BUILD_HOTSPOT
 787 HOTSPOT_DIST
 788 BUILD_OUTPUT
 789 OVERRIDE_SRC_ROOT
 790 ADD_SRC_ROOT
 791 JDK_TOPDIR
 792 NASHORN_TOPDIR
 793 HOTSPOT_TOPDIR
 794 JAXWS_TOPDIR
 795 JAXP_TOPDIR
 796 CORBA_TOPDIR
 797 LANGTOOLS_TOPDIR
 798 BOOT_JDK_JVMARGS
 799 JAVAC_FLAGS
 800 BOOT_JDK_SOURCETARGET
 801 JARSIGNER
 802 NATIVE2ASCII
 803 JAR
 804 JAVAH
 805 JAVAC
 806 JAVA
 807 BOOT_JDK
 808 BOOT_TOOLSJAR
 809 BOOT_RTJAR
 810 JAVA_CHECK
 811 JAVAC_CHECK
 812 COOKED_BUILD_NUMBER
 813 JDK_VERSION
 814 COPYRIGHT_YEAR
 815 MACOSX_BUNDLE_ID_BASE
 816 MACOSX_BUNDLE_NAME_BASE
 817 COMPANY_NAME
 818 JDK_RC_PLATFORM_NAME
 819 PRODUCT_SUFFIX
 820 PRODUCT_NAME
 821 LAUNCHER_NAME
 822 MILESTONE
 823 JDK_BUILD_NUMBER
 824 JDK_UPDATE_VERSION
 825 JDK_MICRO_VERSION
 826 JDK_MINOR_VERSION
 827 JDK_MAJOR_VERSION
 828 USER_RELEASE_SUFFIX
 829 COMPRESS_JARS
 830 RMICONNECTOR_IIOP
 831 UNLIMITED_CRYPTO
 832 CACERTS_FILE
 833 TEST_IN_BUILD
 834 BUILD_HEADLESS
 835 SUPPORT_HEADFUL
 836 SUPPORT_HEADLESS
 837 BDEPS_FTP
 838 BDEPS_UNZIP
 839 OS_VERSION_MICRO
 840 OS_VERSION_MINOR
 841 OS_VERSION_MAJOR
 842 PKG_CONFIG
 843 CODESIGN
 844 XATTR
 845 DSYMUTIL
 846 IS_GNU_TIME
 847 TIME
 848 STAT
 849 HG
 850 READELF
 851 OTOOL
 852 LDD
 853 ZIP
 854 UNZIP
 855 FIND_DELETE
 856 MAKE
 857 CHECK_TOOLSDIR_MAKE
 858 CHECK_TOOLSDIR_GMAKE
 859 CHECK_MAKE
 860 CHECK_GMAKE
 861 PKGHANDLER
 862 OUTPUT_ROOT
 863 CONF_NAME
 864 SPEC
 865 BUILD_VARIANT_RELEASE
 866 DEBUG_CLASSFILES
 867 FASTDEBUG
 868 VARIANT
 869 DEBUG_LEVEL
 870 MACOSX_UNIVERSAL
 871 INCLUDE_SA
 872 JVM_VARIANT_CORE
 873 JVM_VARIANT_ZEROSHARK
 874 JVM_VARIANT_ZERO
 875 JVM_VARIANT_KERNEL
 876 JVM_VARIANT_MINIMAL1
 877 JVM_VARIANT_CLIENT
 878 JVM_VARIANT_SERVER
 879 JVM_VARIANTS
 880 JVM_INTERPRETER
 881 JDK_VARIANT
 882 SET_OPENJDK
 883 BUILD_LOG_WRAPPER
 884 BUILD_LOG_PREVIOUS
 885 BUILD_LOG
 886 SYS_ROOT
 887 PATH_SEP
 888 SRC_ROOT
 889 ZERO_ARCHDEF
 890 DEFINE_CROSS_COMPILE_ARCH
 891 LP64
 892 OPENJDK_TARGET_OS_EXPORT_DIR
 893 OPENJDK_TARGET_OS_API_DIR
 894 OPENJDK_TARGET_CPU_JLI_CFLAGS
 895 OPENJDK_TARGET_CPU_OSARCH
 896 OPENJDK_TARGET_CPU_ISADIR
 897 OPENJDK_TARGET_CPU_LIBDIR
 898 OPENJDK_TARGET_CPU_LEGACY_LIB
 899 OPENJDK_TARGET_CPU_LEGACY
 900 REQUIRED_OS_VERSION
 901 REQUIRED_OS_NAME
 902 COMPILE_TYPE
 903 OPENJDK_TARGET_CPU_ENDIAN
 904 OPENJDK_TARGET_CPU_BITS
 905 OPENJDK_TARGET_CPU_ARCH
 906 OPENJDK_TARGET_CPU
 907 OPENJDK_TARGET_OS_API
 908 OPENJDK_TARGET_OS
 909 OPENJDK_BUILD_CPU_ENDIAN
 910 OPENJDK_BUILD_CPU_BITS
 911 OPENJDK_BUILD_CPU_ARCH
 912 OPENJDK_BUILD_CPU
 913 OPENJDK_BUILD_OS_API
 914 OPENJDK_BUILD_OS
 915 OPENJDK_BUILD_AUTOCONF_NAME
 916 OPENJDK_TARGET_AUTOCONF_NAME
 917 target_os
 918 target_vendor
 919 target_cpu
 920 target
 921 host_os
 922 host_vendor
 923 host_cpu
 924 host
 925 build_os
 926 build_vendor
 927 build_cpu
 928 build
 929 SETFILE
 930 DF
 931 READLINK
 932 CYGPATH
 933 SED
 934 FGREP
 935 EGREP
 936 GREP
 937 AWK
 938 XARGS
 939 WHICH
 940 WC
 941 UNIQ
 942 UNAME
 943 TR
 944 TOUCH
 945 TEE
 946 TAR
 947 TAIL
 948 SORT
 949 SH
 950 RM
 951 PRINTF
 952 NAWK
 953 MV
 954 MKTEMP
 955 MKDIR
 956 LS
 957 LN
 958 HEAD
 959 FIND
 960 FILE
 961 EXPR
 962 ECHO
 963 DIRNAME
 964 DIFF
 965 DATE
 966 CUT
 967 CPIO
 968 CP
 969 COMM
 970 CMP
 971 CHMOD
 972 CAT
 973 BASH
 974 BASENAME
 975 DATE_WHEN_CONFIGURED
 976 CONFIGURE_COMMAND_LINE
 977 CUSTOM_MAKE_DIR
 978 target_alias
 979 host_alias
 980 build_alias
 981 LIBS
 982 ECHO_T
 983 ECHO_N
 984 ECHO_C
 985 DEFS
 986 mandir
 987 localedir
 988 libdir
 989 psdir
 990 pdfdir
 991 dvidir
 992 htmldir
 993 infodir
 994 docdir
 995 oldincludedir
 996 includedir
 997 localstatedir
 998 sharedstatedir
 999 sysconfdir
1000 datadir
1001 datarootdir
1002 libexecdir
1003 sbindir
1004 bindir
1005 program_transform_name
1006 prefix
1007 exec_prefix
1008 PACKAGE_URL
1009 PACKAGE_BUGREPORT
1010 PACKAGE_STRING
1011 PACKAGE_VERSION
1012 PACKAGE_TARNAME
1013 PACKAGE_NAME
1014 PATH_SEPARATOR
1015 SHELL'
1016 ac_subst_files=''
1017 ac_user_opts='
1018 enable_option_checking
1019 with_custom_make_dir
1020 with_target_bits
1021 with_sys_root
1022 with_tools_dir
1023 with_devkit
1024 enable_openjdk_only
1025 with_jdk_variant
1026 with_jvm_interpreter
1027 with_jvm_variants
1028 enable_debug
1029 with_debug_level
1030 with_conf_name
1031 with_builddeps_conf
1032 with_builddeps_server
1033 with_builddeps_dir
1034 with_builddeps_group
1035 enable_headful
1036 enable_hotspot_test_in_build
1037 with_cacerts_file
1038 enable_unlimited_crypto
1039 enable_rmiconnector_iiop
1040 with_milestone
1041 with_update_version
1042 with_user_release_suffix
1043 with_build_number
1044 with_boot_jdk
1045 with_boot_jdk_jvmargs
1046 with_add_source_root
1047 with_override_source_root
1048 with_adds_and_overrides
1049 with_override_langtools
1050 with_override_corba
1051 with_override_jaxp
1052 with_override_jaxws
1053 with_override_hotspot
1054 with_override_nashorn
1055 with_override_jdk
1056 with_import_hotspot
1057 with_msvcr_dll
1058 with_dxsdk
1059 with_dxsdk_lib
1060 with_dxsdk_include
1061 with_jtreg
1062 with_extra_cflags
1063 with_extra_cxxflags
1064 with_extra_ldflags
1065 enable_debug_symbols
1066 enable_zip_debug_info
1067 enable_macosx_runtime_support
1068 with_x
1069 with_cups
1070 with_cups_include
1071 with_freetype
1072 with_freetype_include
1073 with_freetype_lib
1074 enable_freetype_bundling
1075 with_alsa
1076 with_alsa_include
1077 with_alsa_lib
1078 with_giflib
1079 with_lcms
1080 with_libpng
1081 with_zlib
1082 with_stdc__lib
1083 with_num_cores
1084 with_memory_size
1085 with_jobs
1086 with_sjavac_server_java
1087 enable_sjavac
1088 enable_precompiled_headers
1089 enable_ccache
1090 with_ccache_dir
1091 '
1092       ac_precious_vars='build_alias
1093 host_alias
1094 target_alias
1095 BASENAME
1096 BASH
1097 CAT
1098 CHMOD
1099 CMP
1100 COMM
1101 CP
1102 CPIO
1103 CUT
1104 DATE
1105 DIFF
1106 DIRNAME
1107 ECHO
1108 EXPR
1109 FILE
1110 FIND
1111 HEAD
1112 LN
1113 LS
1114 MKDIR
1115 MKTEMP
1116 MV
1117 NAWK
1118 PRINTF
1119 RM
1120 SH
1121 SORT
1122 TAIL
1123 TAR
1124 TEE
1125 TOUCH
1126 TR
1127 UNAME
1128 UNIQ
1129 WC
1130 WHICH
1131 XARGS
1132 AWK
1133 GREP
1134 EGREP
1135 FGREP
1136 SED
1137 CYGPATH
1138 READLINK
1139 DF
1140 SETFILE
1141 UNZIP
1142 ZIP
1143 LDD
1144 OTOOL
1145 READELF
1146 HG
1147 STAT
1148 TIME
1149 DSYMUTIL
1150 XATTR
1151 CODESIGN
1152 PKG_CONFIG
1153 JAVA
1154 JAVAC
1155 JAVAH
1156 JAR
1157 NATIVE2ASCII
1158 JARSIGNER
1159 BUILD_CC
1160 BUILD_CXX
1161 BUILD_LD
1162 CC
1163 CFLAGS
1164 LDFLAGS
1165 LIBS
1166 CPPFLAGS
1167 CXX
1168 CXXFLAGS
1169 CCC
1170 OBJC
1171 OBJCFLAGS
1172 AR
1173 CPP
1174 CXXCPP
1175 AS
1176 NM
1177 GNM
1178 STRIP
1179 MCS
1180 OBJCOPY
1181 OBJDUMP
1182 LIPO
1183 JTREGEXE
1184 XMKMF
1185 FREETYPE_CFLAGS
1186 FREETYPE_LIBS
1187 ALSA_CFLAGS
1188 ALSA_LIBS
1189 LCMS_CFLAGS
1190 LCMS_LIBS
1191 PNG_CFLAGS
1192 PNG_LIBS
1193 LIBFFI_CFLAGS
1194 LIBFFI_LIBS
1195 CCACHE'
1196 
1197 
1198 # Initialize some variables set by options.
1199 ac_init_help=
1200 ac_init_version=false
1201 ac_unrecognized_opts=
1202 ac_unrecognized_sep=
1203 # The variables have the same names as the options, with
1204 # dashes changed to underlines.
1205 cache_file=/dev/null
1206 exec_prefix=NONE
1207 no_create=
1208 no_recursion=
1209 prefix=NONE
1210 program_prefix=NONE
1211 program_suffix=NONE
1212 program_transform_name=s,x,x,
1213 silent=
1214 site=
1215 srcdir=
1216 verbose=
1217 x_includes=NONE
1218 x_libraries=NONE
1219 
1220 # Installation directory options.
1221 # These are left unexpanded so users can "make install exec_prefix=/foo"
1222 # and all the variables that are supposed to be based on exec_prefix
1223 # by default will actually change.
1224 # Use braces instead of parens because sh, perl, etc. also accept them.
1225 # (The list follows the same order as the GNU Coding Standards.)
1226 bindir='${exec_prefix}/bin'
1227 sbindir='${exec_prefix}/sbin'
1228 libexecdir='${exec_prefix}/libexec'
1229 datarootdir='${prefix}/share'
1230 datadir='${datarootdir}'
1231 sysconfdir='${prefix}/etc'
1232 sharedstatedir='${prefix}/com'
1233 localstatedir='${prefix}/var'
1234 includedir='${prefix}/include'
1235 oldincludedir='/usr/include'
1236 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237 infodir='${datarootdir}/info'
1238 htmldir='${docdir}'
1239 dvidir='${docdir}'
1240 pdfdir='${docdir}'
1241 psdir='${docdir}'
1242 libdir='${exec_prefix}/lib'
1243 localedir='${datarootdir}/locale'
1244 mandir='${datarootdir}/man'
1245 
1246 ac_prev=
1247 ac_dashdash=
1248 for ac_option
1249 do
1250   # If the previous option needs an argument, assign it.
1251   if test -n "$ac_prev"; then
1252     eval $ac_prev=\$ac_option
1253     ac_prev=
1254     continue
1255   fi
1256 
1257   case $ac_option in
1258   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1259   *=)   ac_optarg= ;;
1260   *)    ac_optarg=yes ;;
1261   esac
1262 
1263   # Accept the important Cygnus configure options, so we can diagnose typos.
1264 
1265   case $ac_dashdash$ac_option in
1266   --)
1267     ac_dashdash=yes ;;
1268 
1269   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270     ac_prev=bindir ;;
1271   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272     bindir=$ac_optarg ;;
1273 
1274   -build | --build | --buil | --bui | --bu)
1275     ac_prev=build_alias ;;
1276   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277     build_alias=$ac_optarg ;;
1278 
1279   -cache-file | --cache-file | --cache-fil | --cache-fi \
1280   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281     ac_prev=cache_file ;;
1282   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284     cache_file=$ac_optarg ;;
1285 
1286   --config-cache | -C)
1287     cache_file=config.cache ;;
1288 
1289   -datadir | --datadir | --datadi | --datad)
1290     ac_prev=datadir ;;
1291   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292     datadir=$ac_optarg ;;
1293 
1294   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295   | --dataroo | --dataro | --datar)
1296     ac_prev=datarootdir ;;
1297   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299     datarootdir=$ac_optarg ;;
1300 
1301   -disable-* | --disable-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid feature name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "enable_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval enable_$ac_useropt=no ;;
1316 
1317   -docdir | --docdir | --docdi | --doc | --do)
1318     ac_prev=docdir ;;
1319   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320     docdir=$ac_optarg ;;
1321 
1322   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323     ac_prev=dvidir ;;
1324   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325     dvidir=$ac_optarg ;;
1326 
1327   -enable-* | --enable-*)
1328     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329     # Reject names that are not valid shell variable names.
1330     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331       as_fn_error $? "invalid feature name: $ac_useropt"
1332     ac_useropt_orig=$ac_useropt
1333     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334     case $ac_user_opts in
1335       *"
1336 "enable_$ac_useropt"
1337 "*) ;;
1338       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339          ac_unrecognized_sep=', ';;
1340     esac
1341     eval enable_$ac_useropt=\$ac_optarg ;;
1342 
1343   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345   | --exec | --exe | --ex)
1346     ac_prev=exec_prefix ;;
1347   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349   | --exec=* | --exe=* | --ex=*)
1350     exec_prefix=$ac_optarg ;;
1351 
1352   -gas | --gas | --ga | --g)
1353     # Obsolete; use --with-gas.
1354     with_gas=yes ;;
1355 
1356   -help | --help | --hel | --he | -h)
1357     ac_init_help=long ;;
1358   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359     ac_init_help=recursive ;;
1360   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361     ac_init_help=short ;;
1362 
1363   -host | --host | --hos | --ho)
1364     ac_prev=host_alias ;;
1365   -host=* | --host=* | --hos=* | --ho=*)
1366     host_alias=$ac_optarg ;;
1367 
1368   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369     ac_prev=htmldir ;;
1370   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371   | --ht=*)
1372     htmldir=$ac_optarg ;;
1373 
1374   -includedir | --includedir | --includedi | --included | --include \
1375   | --includ | --inclu | --incl | --inc)
1376     ac_prev=includedir ;;
1377   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378   | --includ=* | --inclu=* | --incl=* | --inc=*)
1379     includedir=$ac_optarg ;;
1380 
1381   -infodir | --infodir | --infodi | --infod | --info | --inf)
1382     ac_prev=infodir ;;
1383   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384     infodir=$ac_optarg ;;
1385 
1386   -libdir | --libdir | --libdi | --libd)
1387     ac_prev=libdir ;;
1388   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389     libdir=$ac_optarg ;;
1390 
1391   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392   | --libexe | --libex | --libe)
1393     ac_prev=libexecdir ;;
1394   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395   | --libexe=* | --libex=* | --libe=*)
1396     libexecdir=$ac_optarg ;;
1397 
1398   -localedir | --localedir | --localedi | --localed | --locale)
1399     ac_prev=localedir ;;
1400   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401     localedir=$ac_optarg ;;
1402 
1403   -localstatedir | --localstatedir | --localstatedi | --localstated \
1404   | --localstate | --localstat | --localsta | --localst | --locals)
1405     ac_prev=localstatedir ;;
1406   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408     localstatedir=$ac_optarg ;;
1409 
1410   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411     ac_prev=mandir ;;
1412   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413     mandir=$ac_optarg ;;
1414 
1415   -nfp | --nfp | --nf)
1416     # Obsolete; use --without-fp.
1417     with_fp=no ;;
1418 
1419   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420   | --no-cr | --no-c | -n)
1421     no_create=yes ;;
1422 
1423   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1425     no_recursion=yes ;;
1426 
1427   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429   | --oldin | --oldi | --old | --ol | --o)
1430     ac_prev=oldincludedir ;;
1431   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434     oldincludedir=$ac_optarg ;;
1435 
1436   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437     ac_prev=prefix ;;
1438   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439     prefix=$ac_optarg ;;
1440 
1441   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442   | --program-pre | --program-pr | --program-p)
1443     ac_prev=program_prefix ;;
1444   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446     program_prefix=$ac_optarg ;;
1447 
1448   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449   | --program-suf | --program-su | --program-s)
1450     ac_prev=program_suffix ;;
1451   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453     program_suffix=$ac_optarg ;;
1454 
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     ac_prev=program_transform_name ;;
1463   -program-transform-name=* | --program-transform-name=* \
1464   | --program-transform-nam=* | --program-transform-na=* \
1465   | --program-transform-n=* | --program-transform-=* \
1466   | --program-transform=* | --program-transfor=* \
1467   | --program-transfo=* | --program-transf=* \
1468   | --program-trans=* | --program-tran=* \
1469   | --progr-tra=* | --program-tr=* | --program-t=*)
1470     program_transform_name=$ac_optarg ;;
1471 
1472   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473     ac_prev=pdfdir ;;
1474   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475     pdfdir=$ac_optarg ;;
1476 
1477   -psdir | --psdir | --psdi | --psd | --ps)
1478     ac_prev=psdir ;;
1479   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1480     psdir=$ac_optarg ;;
1481 
1482   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483   | -silent | --silent | --silen | --sile | --sil)
1484     silent=yes ;;
1485 
1486   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1487     ac_prev=sbindir ;;
1488   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1489   | --sbi=* | --sb=*)
1490     sbindir=$ac_optarg ;;
1491 
1492   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1493   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1494   | --sharedst | --shareds | --shared | --share | --shar \
1495   | --sha | --sh)
1496     ac_prev=sharedstatedir ;;
1497   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1498   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1499   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1500   | --sha=* | --sh=*)
1501     sharedstatedir=$ac_optarg ;;
1502 
1503   -site | --site | --sit)
1504     ac_prev=site ;;
1505   -site=* | --site=* | --sit=*)
1506     site=$ac_optarg ;;
1507 
1508   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1509     ac_prev=srcdir ;;
1510   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1511     srcdir=$ac_optarg ;;
1512 
1513   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1514   | --syscon | --sysco | --sysc | --sys | --sy)
1515     ac_prev=sysconfdir ;;
1516   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1517   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1518     sysconfdir=$ac_optarg ;;
1519 
1520   -target | --target | --targe | --targ | --tar | --ta | --t)
1521     ac_prev=target_alias ;;
1522   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1523     target_alias=$ac_optarg ;;
1524 
1525   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1526     verbose=yes ;;
1527 
1528   -version | --version | --versio | --versi | --vers | -V)
1529     ac_init_version=: ;;
1530 
1531   -with-* | --with-*)
1532     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1533     # Reject names that are not valid shell variable names.
1534     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1535       as_fn_error $? "invalid package name: $ac_useropt"
1536     ac_useropt_orig=$ac_useropt
1537     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538     case $ac_user_opts in
1539       *"
1540 "with_$ac_useropt"
1541 "*) ;;
1542       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1543          ac_unrecognized_sep=', ';;
1544     esac
1545     eval with_$ac_useropt=\$ac_optarg ;;
1546 
1547   -without-* | --without-*)
1548     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1549     # Reject names that are not valid shell variable names.
1550     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1551       as_fn_error $? "invalid package name: $ac_useropt"
1552     ac_useropt_orig=$ac_useropt
1553     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554     case $ac_user_opts in
1555       *"
1556 "with_$ac_useropt"
1557 "*) ;;
1558       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1559          ac_unrecognized_sep=', ';;
1560     esac
1561     eval with_$ac_useropt=no ;;
1562 
1563   --x)
1564     # Obsolete; use --with-x.
1565     with_x=yes ;;
1566 
1567   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1568   | --x-incl | --x-inc | --x-in | --x-i)
1569     ac_prev=x_includes ;;
1570   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1571   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1572     x_includes=$ac_optarg ;;
1573 
1574   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1575   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1576     ac_prev=x_libraries ;;
1577   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1578   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1579     x_libraries=$ac_optarg ;;
1580 
1581   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1582 Try \`$0 --help' for more information"
1583     ;;
1584 
1585   *=*)
1586     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1587     # Reject names that are not valid shell variable names.
1588     case $ac_envvar in #(
1589       '' | [0-9]* | *[!_$as_cr_alnum]* )
1590       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1591     esac
1592     eval $ac_envvar=\$ac_optarg
1593     export $ac_envvar ;;
1594 
1595   *)
1596     # FIXME: should be removed in autoconf 3.0.
1597     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1598     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1599       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1600     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1601     ;;
1602 
1603   esac
1604 done
1605 
1606 if test -n "$ac_prev"; then
1607   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1608   as_fn_error $? "missing argument to $ac_option"
1609 fi
1610 
1611 if test -n "$ac_unrecognized_opts"; then
1612   case $enable_option_checking in
1613     no) ;;
1614     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1615     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1616   esac
1617 fi
1618 
1619 # Check all directory arguments for consistency.
1620 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1621                 datadir sysconfdir sharedstatedir localstatedir includedir \
1622                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1623                 libdir localedir mandir
1624 do
1625   eval ac_val=\$$ac_var
1626   # Remove trailing slashes.
1627   case $ac_val in
1628     */ )
1629       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1630       eval $ac_var=\$ac_val;;
1631   esac
1632   # Be sure to have absolute directory names.
1633   case $ac_val in
1634     [\\/$]* | ?:[\\/]* )  continue;;
1635     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1636   esac
1637   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1638 done
1639 
1640 # There might be people who depend on the old broken behavior: `$host'
1641 # used to hold the argument of --host etc.
1642 # FIXME: To remove some day.
1643 build=$build_alias
1644 host=$host_alias
1645 target=$target_alias
1646 
1647 # FIXME: To remove some day.
1648 if test "x$host_alias" != x; then
1649   if test "x$build_alias" = x; then
1650     cross_compiling=maybe
1651   elif test "x$build_alias" != "x$host_alias"; then
1652     cross_compiling=yes
1653   fi
1654 fi
1655 
1656 ac_tool_prefix=
1657 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1658 
1659 test "$silent" = yes && exec 6>/dev/null
1660 
1661 
1662 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1663 ac_ls_di=`ls -di .` &&
1664 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1665   as_fn_error $? "working directory cannot be determined"
1666 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1667   as_fn_error $? "pwd does not report name of working directory"
1668 
1669 
1670 # Find the source files, if location was not specified.
1671 if test -z "$srcdir"; then
1672   ac_srcdir_defaulted=yes
1673   # Try the directory containing this script, then the parent directory.
1674   ac_confdir=`$as_dirname -- "$as_myself" ||
1675 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1676          X"$as_myself" : 'X\(//\)[^/]' \| \
1677          X"$as_myself" : 'X\(//\)$' \| \
1678          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1679 $as_echo X"$as_myself" |
1680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1681             s//\1/
1682             q
1683           }
1684           /^X\(\/\/\)[^/].*/{
1685             s//\1/
1686             q
1687           }
1688           /^X\(\/\/\)$/{
1689             s//\1/
1690             q
1691           }
1692           /^X\(\/\).*/{
1693             s//\1/
1694             q
1695           }
1696           s/.*/./; q'`
1697   srcdir=$ac_confdir
1698   if test ! -r "$srcdir/$ac_unique_file"; then
1699     srcdir=..
1700   fi
1701 else
1702   ac_srcdir_defaulted=no
1703 fi
1704 if test ! -r "$srcdir/$ac_unique_file"; then
1705   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1706   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1707 fi
1708 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1709 ac_abs_confdir=`(
1710         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1711         pwd)`
1712 # When building in place, set srcdir=.
1713 if test "$ac_abs_confdir" = "$ac_pwd"; then
1714   srcdir=.
1715 fi
1716 # Remove unnecessary trailing slashes from srcdir.
1717 # Double slashes in file names in object file debugging info
1718 # mess up M-x gdb in Emacs.
1719 case $srcdir in
1720 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1721 esac
1722 for ac_var in $ac_precious_vars; do
1723   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1724   eval ac_env_${ac_var}_value=\$${ac_var}
1725   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1726   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1727 done
1728 
1729 #
1730 # Report the --help message.
1731 #
1732 if test "$ac_init_help" = "long"; then
1733   # Omit some internal or obsolete options to make the list less imposing.
1734   # This message is too long to be a string in the A/UX 3.1 sh.
1735   cat <<_ACEOF
1736 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1737 
1738 Usage: $0 [OPTION]... [VAR=VALUE]...
1739 
1740 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1741 VAR=VALUE.  See below for descriptions of some of the useful variables.
1742 
1743 Defaults for the options are specified in brackets.
1744 
1745 Configuration:
1746   -h, --help              display this help and exit
1747       --help=short        display options specific to this package
1748       --help=recursive    display the short help of all the included packages
1749   -V, --version           display version information and exit
1750   -q, --quiet, --silent   do not print \`checking ...' messages
1751       --cache-file=FILE   cache test results in FILE [disabled]
1752   -C, --config-cache      alias for \`--cache-file=config.cache'
1753   -n, --no-create         do not create output files
1754       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1755 
1756 Installation directories:
1757   --prefix=PREFIX         install architecture-independent files in PREFIX
1758                           [$ac_default_prefix]
1759   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1760                           [PREFIX]
1761 
1762 By default, \`make install' will install all the files in
1763 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1764 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1765 for instance \`--prefix=\$HOME'.
1766 
1767 For better control, use the options below.
1768 
1769 Fine tuning of the installation directories:
1770   --bindir=DIR            user executables [EPREFIX/bin]
1771   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1772   --libexecdir=DIR        program executables [EPREFIX/libexec]
1773   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1774   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1775   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1776   --libdir=DIR            object code libraries [EPREFIX/lib]
1777   --includedir=DIR        C header files [PREFIX/include]
1778   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1779   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1780   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1781   --infodir=DIR           info documentation [DATAROOTDIR/info]
1782   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1783   --mandir=DIR            man documentation [DATAROOTDIR/man]
1784   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1785   --htmldir=DIR           html documentation [DOCDIR]
1786   --dvidir=DIR            dvi documentation [DOCDIR]
1787   --pdfdir=DIR            pdf documentation [DOCDIR]
1788   --psdir=DIR             ps documentation [DOCDIR]
1789 _ACEOF
1790 
1791   cat <<\_ACEOF
1792 
1793 X features:
1794   --x-includes=DIR    X include files are in DIR
1795   --x-libraries=DIR   X library files are in DIR
1796 
1797 System types:
1798   --build=BUILD     configure for building on BUILD [guessed]
1799   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1800   --target=TARGET   configure for building compilers for TARGET [HOST]
1801 _ACEOF
1802 fi
1803 
1804 if test -n "$ac_init_help"; then
1805   case $ac_init_help in
1806      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1807    esac
1808   cat <<\_ACEOF
1809 
1810 Optional Features:
1811   --disable-option-checking  ignore unrecognized --enable/--with options
1812   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1813   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1814   --enable-openjdk-only   suppress building custom source even if present
1815                           [disabled]
1816   --enable-debug          set the debug level to fastdebug (shorthand for
1817                           --with-debug-level=fastdebug) [disabled]
1818   --disable-headful       disable building headful support (graphical UI
1819                           support) [enabled]
1820   --enable-hotspot-test-in-build
1821                           run the Queens test after Hotspot build [disabled]
1822   --enable-unlimited-crypto
1823                           Enable unlimited crypto policy [disabled]
1824   --enable-rmiconnector-iiop
1825                           enable the JMX RMIConnector iiop transport
1826                           [disabled]
1827   --disable-debug-symbols disable generation of debug symbols [enabled]
1828   --disable-zip-debug-info
1829                           disable zipping of debug-info files [enabled]
1830   --enable-macosx-runtime-support
1831                           Deprecated. Option is kept for backwards
1832                           compatibility and is ignored
1833   --disable-freetype-bundling
1834                           disable bundling of the freetype library with the
1835                           build result [enabled on Windows or when using
1836                           --with-freetype, disabled otherwise]
1837   --enable-sjavac         use sjavac to do fast incremental compiles
1838                           [disabled]
1839   --disable-precompiled-headers
1840                           disable using precompiled headers when compiling C++
1841                           [enabled]
1842   --enable-ccache         enable using ccache to speed up recompilations
1843                           [disabled]
1844 
1845 Optional Packages:
1846   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1847   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1848   --with-custom-make-dir  use this directory for custom build/make files
1849   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1850                           support it), e.g. --with-target-bits=32 [guessed]
1851   --with-sys-root         pass this sys-root to the compilers and tools (for
1852                           cross-compiling)
1853   --with-tools-dir        search this directory for compilers and tools (for
1854                           cross-compiling)
1855   --with-devkit           use this directory as base for tools-dir and
1856                           sys-root (for cross-compiling)
1857   --with-jdk-variant      JDK variant to build (normal) [normal]
1858   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1859   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1860                           client, minimal1, kernel, zero, zeroshark, core)
1861                           [server]
1862   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1863                           [release]
1864   --with-conf-name        use this as the name of the configuration [generated
1865                           from important configuration options]
1866   --with-builddeps-conf   use this configuration file for the builddeps
1867   --with-builddeps-server download and use build dependencies from this server
1868                           url
1869   --with-builddeps-dir    store downloaded build dependencies here
1870                           [/localhome/builddeps]
1871   --with-builddeps-group  chgrp the downloaded build dependencies to this
1872                           group
1873   --with-cacerts-file     specify alternative cacerts file
1874   --with-milestone        Set milestone value for build [internal]
1875   --with-update-version   Set update version value for build [b00]
1876   --with-user-release-suffix
1877                           Add a custom string to the version string if build
1878                           number isn't set.[username_builddateb00]
1879   --with-build-number     Set build number value for build [b00]
1880   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1881   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1882                           invocations of the Boot JDK, overriding the default
1883                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1884                           -enableassertions"
1885   --with-add-source-root  for each and every source directory, look in this
1886                           additional source root for the same directory; if it
1887                           exists and have files in it, include it in the build
1888   --with-override-source-root
1889                           for each and every source directory, look in this
1890                           override source root for the same directory; if it
1891                           exists, use that directory instead and ignore the
1892                           directory in the original source root
1893   --with-adds-and-overrides
1894                           use the subdirs 'adds' and 'overrides' in the
1895                           specified directory as add-source-root and
1896                           override-source-root
1897   --with-override-langtools
1898                           use this langtools dir for the build
1899   --with-override-corba   use this corba dir for the build
1900   --with-override-jaxp    use this jaxp dir for the build
1901   --with-override-jaxws   use this jaxws dir for the build
1902   --with-override-hotspot use this hotspot dir for the build
1903   --with-override-nashorn use this nashorn dir for the build
1904   --with-override-jdk     use this jdk dir for the build
1905   --with-import-hotspot   import hotspot binaries from this jdk image or
1906                           hotspot build dist dir instead of building from
1907                           source
1908   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1909                           only) [probed]
1910   --with-dxsdk            Deprecated. Option is kept for backwards
1911                           compatibility and is ignored
1912   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1913                           compatibility and is ignored
1914   --with-dxsdk-include    Deprecated. Option is kept for backwards
1915                           compatibility and is ignored
1916   --with-jtreg            Regression Test Harness [probed]
1917   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1918   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1919   --with-extra-ldflags    extra flags to be used when linking jdk
1920   --with-x                use the X Window System
1921   --with-cups             specify prefix directory for the cups package
1922                           (expecting the headers under PATH/include)
1923   --with-cups-include     specify directory for the cups include files
1924   --with-freetype         specify prefix directory for the freetype package
1925                           (expecting the libraries under PATH/lib and the
1926                           headers under PATH/include)
1927   --with-freetype-include specify directory for the freetype include files
1928   --with-freetype-lib     specify directory for the freetype library
1929   --with-alsa             specify prefix directory for the alsa package
1930                           (expecting the libraries under PATH/lib and the
1931                           headers under PATH/include)
1932   --with-alsa-include     specify directory for the alsa include files
1933   --with-alsa-lib         specify directory for the alsa library
1934   --with-giflib           use giflib from build system or OpenJDK source
1935                           (system, bundled) [bundled]
1936   --with-lcms             use lcms2 from build system or OpenJDK source
1937                           (system, bundled) [bundled]
1938   --with-libpng           use libpng from build system or OpenJDK source
1939                           (system, bundled) [bundled]
1940   --with-zlib             use zlib from build system or OpenJDK source
1941                           (system, bundled) [bundled]
1942   --with-stdc++lib=<static>,<dynamic>,<default>
1943                           force linking of the C++ runtime on Linux to either
1944                           static or dynamic, default is static with dynamic as
1945                           fallback
1946   --with-num-cores        number of cores in the build system, e.g.
1947                           --with-num-cores=8 [probed]
1948   --with-memory-size      memory (in MB) available in the build system, e.g.
1949                           --with-memory-size=1024 [probed]
1950   --with-jobs             number of parallel jobs to let make run [calculated
1951                           based on cores and memory]
1952   --with-sjavac-server-java
1953                           use this java binary for running the sjavac
1954                           background server [Boot JDK java]
1955   --with-ccache-dir       where to store ccache files [~/.ccache]
1956 
1957 Some influential environment variables:
1958   BASENAME    Override default value for BASENAME
1959   BASH        Override default value for BASH
1960   CAT         Override default value for CAT
1961   CHMOD       Override default value for CHMOD
1962   CMP         Override default value for CMP
1963   COMM        Override default value for COMM
1964   CP          Override default value for CP
1965   CPIO        Override default value for CPIO
1966   CUT         Override default value for CUT
1967   DATE        Override default value for DATE
1968   DIFF        Override default value for DIFF
1969   DIRNAME     Override default value for DIRNAME
1970   ECHO        Override default value for ECHO
1971   EXPR        Override default value for EXPR
1972   FILE        Override default value for FILE
1973   FIND        Override default value for FIND
1974   HEAD        Override default value for HEAD
1975   LN          Override default value for LN
1976   LS          Override default value for LS
1977   MKDIR       Override default value for MKDIR
1978   MKTEMP      Override default value for MKTEMP
1979   MV          Override default value for MV
1980   NAWK        Override default value for NAWK
1981   PRINTF      Override default value for PRINTF
1982   RM          Override default value for RM
1983   SH          Override default value for SH
1984   SORT        Override default value for SORT
1985   TAIL        Override default value for TAIL
1986   TAR         Override default value for TAR
1987   TEE         Override default value for TEE
1988   TOUCH       Override default value for TOUCH
1989   TR          Override default value for TR
1990   UNAME       Override default value for UNAME
1991   UNIQ        Override default value for UNIQ
1992   WC          Override default value for WC
1993   WHICH       Override default value for WHICH
1994   XARGS       Override default value for XARGS
1995   AWK         Override default value for AWK
1996   GREP        Override default value for GREP
1997   EGREP       Override default value for EGREP
1998   FGREP       Override default value for FGREP
1999   SED         Override default value for SED
2000   CYGPATH     Override default value for CYGPATH
2001   READLINK    Override default value for READLINK
2002   DF          Override default value for DF
2003   SETFILE     Override default value for SETFILE
2004   UNZIP       Override default value for UNZIP
2005   ZIP         Override default value for ZIP
2006   LDD         Override default value for LDD
2007   OTOOL       Override default value for OTOOL
2008   READELF     Override default value for READELF
2009   HG          Override default value for HG
2010   STAT        Override default value for STAT
2011   TIME        Override default value for TIME
2012   DSYMUTIL    Override default value for DSYMUTIL
2013   XATTR       Override default value for XATTR
2014   CODESIGN    Override default value for CODESIGN
2015   PKG_CONFIG  path to pkg-config utility
2016   JAVA        Override default value for JAVA
2017   JAVAC       Override default value for JAVAC
2018   JAVAH       Override default value for JAVAH
2019   JAR         Override default value for JAR
2020   NATIVE2ASCII
2021               Override default value for NATIVE2ASCII
2022   JARSIGNER   Override default value for JARSIGNER
2023   BUILD_CC    Override default value for BUILD_CC
2024   BUILD_CXX   Override default value for BUILD_CXX
2025   BUILD_LD    Override default value for BUILD_LD
2026   CC          C compiler command
2027   CFLAGS      C compiler flags
2028   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2029               nonstandard directory <lib dir>
2030   LIBS        libraries to pass to the linker, e.g. -l<library>
2031   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2032               you have headers in a nonstandard directory <include dir>
2033   CXX         C++ compiler command
2034   CXXFLAGS    C++ compiler flags
2035   OBJC        Objective C compiler command
2036   OBJCFLAGS   Objective C compiler flags
2037   AR          Override default value for AR
2038   CPP         C preprocessor
2039   CXXCPP      C++ preprocessor
2040   AS          Override default value for AS
2041   NM          Override default value for NM
2042   GNM         Override default value for GNM
2043   STRIP       Override default value for STRIP
2044   MCS         Override default value for MCS
2045   OBJCOPY     Override default value for OBJCOPY
2046   OBJDUMP     Override default value for OBJDUMP
2047   LIPO        Override default value for LIPO
2048   JTREGEXE    Override default value for JTREGEXE
2049   XMKMF       Path to xmkmf, Makefile generator for X Window System
2050   FREETYPE_CFLAGS
2051               C compiler flags for FREETYPE, overriding pkg-config
2052   FREETYPE_LIBS
2053               linker flags for FREETYPE, overriding pkg-config
2054   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2055   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2056   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2057   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2058   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2059   PNG_LIBS    linker flags for PNG, overriding pkg-config
2060   LIBFFI_CFLAGS
2061               C compiler flags for LIBFFI, overriding pkg-config
2062   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2063   CCACHE      Override default value for CCACHE
2064 
2065 Use these variables to override the choices made by `configure' or to help
2066 it to find libraries and programs with nonstandard names/locations.
2067 
2068 Report bugs to <build-dev@openjdk.java.net>.
2069 OpenJDK home page: <http://openjdk.java.net>.
2070 _ACEOF
2071 ac_status=$?
2072 fi
2073 
2074 if test "$ac_init_help" = "recursive"; then
2075   # If there are subdirs, report their specific --help.
2076   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2077     test -d "$ac_dir" ||
2078       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2079       continue
2080     ac_builddir=.
2081 
2082 case "$ac_dir" in
2083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2084 *)
2085   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2086   # A ".." for each directory in $ac_dir_suffix.
2087   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2088   case $ac_top_builddir_sub in
2089   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2090   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2091   esac ;;
2092 esac
2093 ac_abs_top_builddir=$ac_pwd
2094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2095 # for backward compatibility:
2096 ac_top_builddir=$ac_top_build_prefix
2097 
2098 case $srcdir in
2099   .)  # We are building in place.
2100     ac_srcdir=.
2101     ac_top_srcdir=$ac_top_builddir_sub
2102     ac_abs_top_srcdir=$ac_pwd ;;
2103   [\\/]* | ?:[\\/]* )  # Absolute name.
2104     ac_srcdir=$srcdir$ac_dir_suffix;
2105     ac_top_srcdir=$srcdir
2106     ac_abs_top_srcdir=$srcdir ;;
2107   *) # Relative name.
2108     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2109     ac_top_srcdir=$ac_top_build_prefix$srcdir
2110     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2111 esac
2112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2113 
2114     cd "$ac_dir" || { ac_status=$?; continue; }
2115     # Check for guested configure.
2116     if test -f "$ac_srcdir/configure.gnu"; then
2117       echo &&
2118       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2119     elif test -f "$ac_srcdir/configure"; then
2120       echo &&
2121       $SHELL "$ac_srcdir/configure" --help=recursive
2122     else
2123       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2124     fi || ac_status=$?
2125     cd "$ac_pwd" || { ac_status=$?; break; }
2126   done
2127 fi
2128 
2129 test -n "$ac_init_help" && exit $ac_status
2130 if $ac_init_version; then
2131   cat <<\_ACEOF
2132 OpenJDK configure jdk8
2133 generated by GNU Autoconf 2.69
2134 
2135 Copyright (C) 2012 Free Software Foundation, Inc.
2136 This configure script is free software; the Free Software Foundation
2137 gives unlimited permission to copy, distribute and modify it.
2138 _ACEOF
2139   exit
2140 fi
2141 
2142 ## ------------------------ ##
2143 ## Autoconf initialization. ##
2144 ## ------------------------ ##
2145 
2146 # ac_fn_c_try_compile LINENO
2147 # --------------------------
2148 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2149 ac_fn_c_try_compile ()
2150 {
2151   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152   rm -f conftest.$ac_objext
2153   if { { ac_try="$ac_compile"
2154 case "(($ac_try" in
2155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156   *) ac_try_echo=$ac_try;;
2157 esac
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160   (eval "$ac_compile") 2>conftest.err
2161   ac_status=$?
2162   if test -s conftest.err; then
2163     grep -v '^ *+' conftest.err >conftest.er1
2164     cat conftest.er1 >&5
2165     mv -f conftest.er1 conftest.err
2166   fi
2167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168   test $ac_status = 0; } && {
2169          test -z "$ac_c_werror_flag" ||
2170          test ! -s conftest.err
2171        } && test -s conftest.$ac_objext; then :
2172   ac_retval=0
2173 else
2174   $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176 
2177         ac_retval=1
2178 fi
2179   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180   as_fn_set_status $ac_retval
2181 
2182 } # ac_fn_c_try_compile
2183 
2184 # ac_fn_cxx_try_compile LINENO
2185 # ----------------------------
2186 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_compile ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   rm -f conftest.$ac_objext
2191   if { { ac_try="$ac_compile"
2192 case "(($ac_try" in
2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194   *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198   (eval "$ac_compile") 2>conftest.err
2199   ac_status=$?
2200   if test -s conftest.err; then
2201     grep -v '^ *+' conftest.err >conftest.er1
2202     cat conftest.er1 >&5
2203     mv -f conftest.er1 conftest.err
2204   fi
2205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206   test $ac_status = 0; } && {
2207          test -z "$ac_cxx_werror_flag" ||
2208          test ! -s conftest.err
2209        } && test -s conftest.$ac_objext; then :
2210   ac_retval=0
2211 else
2212   $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214 
2215         ac_retval=1
2216 fi
2217   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218   as_fn_set_status $ac_retval
2219 
2220 } # ac_fn_cxx_try_compile
2221 
2222 # ac_fn_objc_try_compile LINENO
2223 # -----------------------------
2224 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_objc_try_compile ()
2226 {
2227   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228   rm -f conftest.$ac_objext
2229   if { { ac_try="$ac_compile"
2230 case "(($ac_try" in
2231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232   *) ac_try_echo=$ac_try;;
2233 esac
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236   (eval "$ac_compile") 2>conftest.err
2237   ac_status=$?
2238   if test -s conftest.err; then
2239     grep -v '^ *+' conftest.err >conftest.er1
2240     cat conftest.er1 >&5
2241     mv -f conftest.er1 conftest.err
2242   fi
2243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244   test $ac_status = 0; } && {
2245          test -z "$ac_objc_werror_flag" ||
2246          test ! -s conftest.err
2247        } && test -s conftest.$ac_objext; then :
2248   ac_retval=0
2249 else
2250   $as_echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252 
2253         ac_retval=1
2254 fi
2255   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256   as_fn_set_status $ac_retval
2257 
2258 } # ac_fn_objc_try_compile
2259 
2260 # ac_fn_c_try_cpp LINENO
2261 # ----------------------
2262 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2263 ac_fn_c_try_cpp ()
2264 {
2265   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266   if { { ac_try="$ac_cpp conftest.$ac_ext"
2267 case "(($ac_try" in
2268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269   *) ac_try_echo=$ac_try;;
2270 esac
2271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2272 $as_echo "$ac_try_echo"; } >&5
2273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2274   ac_status=$?
2275   if test -s conftest.err; then
2276     grep -v '^ *+' conftest.err >conftest.er1
2277     cat conftest.er1 >&5
2278     mv -f conftest.er1 conftest.err
2279   fi
2280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2281   test $ac_status = 0; } > conftest.i && {
2282          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2283          test ! -s conftest.err
2284        }; then :
2285   ac_retval=0
2286 else
2287   $as_echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289 
2290     ac_retval=1
2291 fi
2292   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293   as_fn_set_status $ac_retval
2294 
2295 } # ac_fn_c_try_cpp
2296 
2297 # ac_fn_cxx_try_cpp LINENO
2298 # ------------------------
2299 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2300 ac_fn_cxx_try_cpp ()
2301 {
2302   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303   if { { ac_try="$ac_cpp conftest.$ac_ext"
2304 case "(($ac_try" in
2305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306   *) ac_try_echo=$ac_try;;
2307 esac
2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309 $as_echo "$ac_try_echo"; } >&5
2310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2311   ac_status=$?
2312   if test -s conftest.err; then
2313     grep -v '^ *+' conftest.err >conftest.er1
2314     cat conftest.er1 >&5
2315     mv -f conftest.er1 conftest.err
2316   fi
2317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318   test $ac_status = 0; } > conftest.i && {
2319          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2320          test ! -s conftest.err
2321        }; then :
2322   ac_retval=0
2323 else
2324   $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326 
2327     ac_retval=1
2328 fi
2329   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330   as_fn_set_status $ac_retval
2331 
2332 } # ac_fn_cxx_try_cpp
2333 
2334 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2335 # ---------------------------------------------------------
2336 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2337 # the include files in INCLUDES and setting the cache variable VAR
2338 # accordingly.
2339 ac_fn_cxx_check_header_mongrel ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   if eval \${$3+:} false; then :
2343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344 $as_echo_n "checking for $2... " >&6; }
2345 if eval \${$3+:} false; then :
2346   $as_echo_n "(cached) " >&6
2347 fi
2348 eval ac_res=\$$3
2349                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 else
2352   # Is the header compilable?
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2354 $as_echo_n "checking $2 usability... " >&6; }
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h.  */
2357 $4
2358 #include <$2>
2359 _ACEOF
2360 if ac_fn_cxx_try_compile "$LINENO"; then :
2361   ac_header_compiler=yes
2362 else
2363   ac_header_compiler=no
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2367 $as_echo "$ac_header_compiler" >&6; }
2368 
2369 # Is the header present?
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2371 $as_echo_n "checking $2 presence... " >&6; }
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 #include <$2>
2375 _ACEOF
2376 if ac_fn_cxx_try_cpp "$LINENO"; then :
2377   ac_header_preproc=yes
2378 else
2379   ac_header_preproc=no
2380 fi
2381 rm -f conftest.err conftest.i conftest.$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2383 $as_echo "$ac_header_preproc" >&6; }
2384 
2385 # So?  What about this header?
2386 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2387   yes:no: )
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2389 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2391 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2392     ;;
2393   no:yes:* )
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2395 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2397 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2399 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2401 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2402     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2403 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2404 ( $as_echo "## ----------------------------------------- ##
2405 ## Report this to build-dev@openjdk.java.net ##
2406 ## ----------------------------------------- ##"
2407      ) | sed "s/^/$as_me: WARNING:     /" >&2
2408     ;;
2409 esac
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413   $as_echo_n "(cached) " >&6
2414 else
2415   eval "$3=\$ac_header_compiler"
2416 fi
2417 eval ac_res=\$$3
2418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 fi
2421   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422 
2423 } # ac_fn_cxx_check_header_mongrel
2424 
2425 # ac_fn_cxx_try_run LINENO
2426 # ------------------------
2427 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2428 # that executables *can* be run.
2429 ac_fn_cxx_try_run ()
2430 {
2431   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432   if { { ac_try="$ac_link"
2433 case "(($ac_try" in
2434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435   *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439   (eval "$ac_link") 2>&5
2440   ac_status=$?
2441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2442   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2443   { { case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449   (eval "$ac_try") 2>&5
2450   ac_status=$?
2451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2452   test $ac_status = 0; }; }; then :
2453   ac_retval=0
2454 else
2455   $as_echo "$as_me: program exited with status $ac_status" >&5
2456        $as_echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458 
2459        ac_retval=$ac_status
2460 fi
2461   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463   as_fn_set_status $ac_retval
2464 
2465 } # ac_fn_cxx_try_run
2466 
2467 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2468 # ---------------------------------------------------------
2469 # Tests whether HEADER exists and can be compiled using the include files in
2470 # INCLUDES, setting the cache variable VAR accordingly.
2471 ac_fn_cxx_check_header_compile ()
2472 {
2473   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477   $as_echo_n "(cached) " >&6
2478 else
2479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h.  */
2481 $4
2482 #include <$2>
2483 _ACEOF
2484 if ac_fn_cxx_try_compile "$LINENO"; then :
2485   eval "$3=yes"
2486 else
2487   eval "$3=no"
2488 fi
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 fi
2491 eval ac_res=\$$3
2492                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495 
2496 } # ac_fn_cxx_check_header_compile
2497 
2498 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2499 # ----------------------------------------------
2500 # Tries to find the compile-time value of EXPR in a program that includes
2501 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2502 # computed
2503 ac_fn_cxx_compute_int ()
2504 {
2505   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506   if test "$cross_compiling" = yes; then
2507     # Depending upon the size, compute the lo and hi bounds.
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h.  */
2510 $4
2511 int
2512 main ()
2513 {
2514 static int test_array [1 - 2 * !(($2) >= 0)];
2515 test_array [0] = 0;
2516 return test_array [0];
2517 
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 if ac_fn_cxx_try_compile "$LINENO"; then :
2523   ac_lo=0 ac_mid=0
2524   while :; do
2525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main ()
2530 {
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2532 test_array [0] = 0;
2533 return test_array [0];
2534 
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_cxx_try_compile "$LINENO"; then :
2540   ac_hi=$ac_mid; break
2541 else
2542   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2543                         if test $ac_lo -le $ac_mid; then
2544                           ac_lo= ac_hi=
2545                           break
2546                         fi
2547                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550   done
2551 else
2552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h.  */
2554 $4
2555 int
2556 main ()
2557 {
2558 static int test_array [1 - 2 * !(($2) < 0)];
2559 test_array [0] = 0;
2560 return test_array [0];
2561 
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_cxx_try_compile "$LINENO"; then :
2567   ac_hi=-1 ac_mid=-1
2568   while :; do
2569     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h.  */
2571 $4
2572 int
2573 main ()
2574 {
2575 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2576 test_array [0] = 0;
2577 return test_array [0];
2578 
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_cxx_try_compile "$LINENO"; then :
2584   ac_lo=$ac_mid; break
2585 else
2586   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2587                         if test $ac_mid -le $ac_hi; then
2588                           ac_lo= ac_hi=
2589                           break
2590                         fi
2591                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2592 fi
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594   done
2595 else
2596   ac_lo= ac_hi=
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 # Binary search between lo and hi bounds.
2602 while test "x$ac_lo" != "x$ac_hi"; do
2603   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 int
2608 main ()
2609 {
2610 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2611 test_array [0] = 0;
2612 return test_array [0];
2613 
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 if ac_fn_cxx_try_compile "$LINENO"; then :
2619   ac_hi=$ac_mid
2620 else
2621   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2622 fi
2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 done
2625 case $ac_lo in #((
2626 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2627 '') ac_retval=1 ;;
2628 esac
2629   else
2630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h.  */
2632 $4
2633 static long int longval () { return $2; }
2634 static unsigned long int ulongval () { return $2; }
2635 #include <stdio.h>
2636 #include <stdlib.h>
2637 int
2638 main ()
2639 {
2640 
2641   FILE *f = fopen ("conftest.val", "w");
2642   if (! f)
2643     return 1;
2644   if (($2) < 0)
2645     {
2646       long int i = longval ();
2647       if (i != ($2))
2648         return 1;
2649       fprintf (f, "%ld", i);
2650     }
2651   else
2652     {
2653       unsigned long int i = ulongval ();
2654       if (i != ($2))
2655         return 1;
2656       fprintf (f, "%lu", i);
2657     }
2658   /* Do not output a trailing newline, as this causes \r\n confusion
2659      on some platforms.  */
2660   return ferror (f) || fclose (f) != 0;
2661 
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 if ac_fn_cxx_try_run "$LINENO"; then :
2667   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2668 else
2669   ac_retval=1
2670 fi
2671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2672   conftest.$ac_objext conftest.beam conftest.$ac_ext
2673 rm -f conftest.val
2674 
2675   fi
2676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677   as_fn_set_status $ac_retval
2678 
2679 } # ac_fn_cxx_compute_int
2680 
2681 # ac_fn_cxx_try_link LINENO
2682 # -------------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded.
2684 ac_fn_cxx_try_link ()
2685 {
2686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687   rm -f conftest.$ac_objext conftest$ac_exeext
2688   if { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695   (eval "$ac_link") 2>conftest.err
2696   ac_status=$?
2697   if test -s conftest.err; then
2698     grep -v '^ *+' conftest.err >conftest.er1
2699     cat conftest.er1 >&5
2700     mv -f conftest.er1 conftest.err
2701   fi
2702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703   test $ac_status = 0; } && {
2704          test -z "$ac_cxx_werror_flag" ||
2705          test ! -s conftest.err
2706        } && test -s conftest$ac_exeext && {
2707          test "$cross_compiling" = yes ||
2708          test -x conftest$ac_exeext
2709        }; then :
2710   ac_retval=0
2711 else
2712   $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714 
2715         ac_retval=1
2716 fi
2717   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2718   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2719   # interfere with the next link command; also delete a directory that is
2720   # left behind by Apple's compiler.  We do this before executing the actions.
2721   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2723   as_fn_set_status $ac_retval
2724 
2725 } # ac_fn_cxx_try_link
2726 
2727 # ac_fn_cxx_check_func LINENO FUNC VAR
2728 # ------------------------------------
2729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2730 ac_fn_cxx_check_func ()
2731 {
2732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if eval \${$3+:} false; then :
2736   $as_echo_n "(cached) " >&6
2737 else
2738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h.  */
2740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2742 #define $2 innocuous_$2
2743 
2744 /* System header to define __stub macros and hopefully few prototypes,
2745     which can conflict with char $2 (); below.
2746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2747     <limits.h> exists even on freestanding compilers.  */
2748 
2749 #ifdef __STDC__
2750 # include <limits.h>
2751 #else
2752 # include <assert.h>
2753 #endif
2754 
2755 #undef $2
2756 
2757 /* Override any GCC internal prototype to avoid an error.
2758    Use char because int might match the return type of a GCC
2759    builtin and then its argument prototype would still apply.  */
2760 #ifdef __cplusplus
2761 extern "C"
2762 #endif
2763 char $2 ();
2764 /* The GNU C library defines this for functions which it implements
2765     to always fail with ENOSYS.  Some functions are actually named
2766     something starting with __ and the normal name is an alias.  */
2767 #if defined __stub_$2 || defined __stub___$2
2768 choke me
2769 #endif
2770 
2771 int
2772 main ()
2773 {
2774 return $2 ();
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 if ac_fn_cxx_try_link "$LINENO"; then :
2780   eval "$3=yes"
2781 else
2782   eval "$3=no"
2783 fi
2784 rm -f core conftest.err conftest.$ac_objext \
2785     conftest$ac_exeext conftest.$ac_ext
2786 fi
2787 eval ac_res=\$$3
2788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 
2792 } # ac_fn_cxx_check_func
2793 
2794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2795 # -------------------------------------------------------
2796 # Tests whether HEADER exists and can be compiled using the include files in
2797 # INCLUDES, setting the cache variable VAR accordingly.
2798 ac_fn_c_check_header_compile ()
2799 {
2800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2802 $as_echo_n "checking for $2... " >&6; }
2803 if eval \${$3+:} false; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h.  */
2808 $4
2809 #include <$2>
2810 _ACEOF
2811 if ac_fn_c_try_compile "$LINENO"; then :
2812   eval "$3=yes"
2813 else
2814   eval "$3=no"
2815 fi
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 fi
2818 eval ac_res=\$$3
2819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2820 $as_echo "$ac_res" >&6; }
2821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2822 
2823 } # ac_fn_c_check_header_compile
2824 cat >config.log <<_ACEOF
2825 This file contains any messages produced by compilers while
2826 running configure, to aid debugging if configure makes a mistake.
2827 
2828 It was created by OpenJDK $as_me jdk8, which was
2829 generated by GNU Autoconf 2.69.  Invocation command line was
2830 
2831   $ $0 $@
2832 
2833 _ACEOF
2834 exec 5>>config.log
2835 {
2836 cat <<_ASUNAME
2837 ## --------- ##
2838 ## Platform. ##
2839 ## --------- ##
2840 
2841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2846 
2847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2848 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2849 
2850 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2851 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2853 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2854 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2855 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2856 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2857 
2858 _ASUNAME
2859 
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     $as_echo "PATH: $as_dir"
2866   done
2867 IFS=$as_save_IFS
2868 
2869 } >&5
2870 
2871 cat >&5 <<_ACEOF
2872 
2873 
2874 ## ----------- ##
2875 ## Core tests. ##
2876 ## ----------- ##
2877 
2878 _ACEOF
2879 
2880 
2881 # Keep a trace of the command line.
2882 # Strip out --no-create and --no-recursion so they do not pile up.
2883 # Strip out --silent because we don't want to record it for future runs.
2884 # Also quote any args containing shell meta-characters.
2885 # Make two passes to allow for proper duplicate-argument suppression.
2886 ac_configure_args=
2887 ac_configure_args0=
2888 ac_configure_args1=
2889 ac_must_keep_next=false
2890 for ac_pass in 1 2
2891 do
2892   for ac_arg
2893   do
2894     case $ac_arg in
2895     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2896     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2897     | -silent | --silent | --silen | --sile | --sil)
2898       continue ;;
2899     *\'*)
2900       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2901     esac
2902     case $ac_pass in
2903     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2904     2)
2905       as_fn_append ac_configure_args1 " '$ac_arg'"
2906       if test $ac_must_keep_next = true; then
2907         ac_must_keep_next=false # Got value, back to normal.
2908       else
2909         case $ac_arg in
2910           *=* | --config-cache | -C | -disable-* | --disable-* \
2911           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2912           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2913           | -with-* | --with-* | -without-* | --without-* | --x)
2914             case "$ac_configure_args0 " in
2915               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2916             esac
2917             ;;
2918           -* ) ac_must_keep_next=true ;;
2919         esac
2920       fi
2921       as_fn_append ac_configure_args " '$ac_arg'"
2922       ;;
2923     esac
2924   done
2925 done
2926 { ac_configure_args0=; unset ac_configure_args0;}
2927 { ac_configure_args1=; unset ac_configure_args1;}
2928 
2929 # When interrupted or exit'd, cleanup temporary files, and complete
2930 # config.log.  We remove comments because anyway the quotes in there
2931 # would cause problems or look ugly.
2932 # WARNING: Use '\'' to represent an apostrophe within the trap.
2933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2934 trap 'exit_status=$?
2935   # Save into config.log some information that might help in debugging.
2936   {
2937     echo
2938 
2939     $as_echo "## ---------------- ##
2940 ## Cache variables. ##
2941 ## ---------------- ##"
2942     echo
2943     # The following way of writing the cache mishandles newlines in values,
2944 (
2945   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2946     eval ac_val=\$$ac_var
2947     case $ac_val in #(
2948     *${as_nl}*)
2949       case $ac_var in #(
2950       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2952       esac
2953       case $ac_var in #(
2954       _ | IFS | as_nl) ;; #(
2955       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2956       *) { eval $ac_var=; unset $ac_var;} ;;
2957       esac ;;
2958     esac
2959   done
2960   (set) 2>&1 |
2961     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2962     *${as_nl}ac_space=\ *)
2963       sed -n \
2964         "s/'\''/'\''\\\\'\'''\''/g;
2965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2966       ;; #(
2967     *)
2968       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2969       ;;
2970     esac |
2971     sort
2972 )
2973     echo
2974 
2975     $as_echo "## ----------------- ##
2976 ## Output variables. ##
2977 ## ----------------- ##"
2978     echo
2979     for ac_var in $ac_subst_vars
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 
2989     if test -n "$ac_subst_files"; then
2990       $as_echo "## ------------------- ##
2991 ## File substitutions. ##
2992 ## ------------------- ##"
2993       echo
2994       for ac_var in $ac_subst_files
2995       do
2996         eval ac_val=\$$ac_var
2997         case $ac_val in
2998         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2999         esac
3000         $as_echo "$ac_var='\''$ac_val'\''"
3001       done | sort
3002       echo
3003     fi
3004 
3005     if test -s confdefs.h; then
3006       $as_echo "## ----------- ##
3007 ## confdefs.h. ##
3008 ## ----------- ##"
3009       echo
3010       cat confdefs.h
3011       echo
3012     fi
3013     test "$ac_signal" != 0 &&
3014       $as_echo "$as_me: caught signal $ac_signal"
3015     $as_echo "$as_me: exit $exit_status"
3016   } >&5
3017   rm -f core *.core core.conftest.* &&
3018     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3019     exit $exit_status
3020 ' 0
3021 for ac_signal in 1 2 13 15; do
3022   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3023 done
3024 ac_signal=0
3025 
3026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3027 rm -f -r conftest* confdefs.h
3028 
3029 $as_echo "/* confdefs.h */" > confdefs.h
3030 
3031 # Predefined preprocessor variables.
3032 
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE_NAME "$PACKAGE_NAME"
3035 _ACEOF
3036 
3037 cat >>confdefs.h <<_ACEOF
3038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3039 _ACEOF
3040 
3041 cat >>confdefs.h <<_ACEOF
3042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3043 _ACEOF
3044 
3045 cat >>confdefs.h <<_ACEOF
3046 #define PACKAGE_STRING "$PACKAGE_STRING"
3047 _ACEOF
3048 
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3051 _ACEOF
3052 
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_URL "$PACKAGE_URL"
3055 _ACEOF
3056 
3057 
3058 # Let the site file select an alternate cache file if it wants to.
3059 # Prefer an explicitly selected file to automatically selected ones.
3060 ac_site_file1=NONE
3061 ac_site_file2=NONE
3062 if test -n "$CONFIG_SITE"; then
3063   # We do not want a PATH search for config.site.
3064   case $CONFIG_SITE in #((
3065     -*)  ac_site_file1=./$CONFIG_SITE;;
3066     */*) ac_site_file1=$CONFIG_SITE;;
3067     *)   ac_site_file1=./$CONFIG_SITE;;
3068   esac
3069 elif test "x$prefix" != xNONE; then
3070   ac_site_file1=$prefix/share/config.site
3071   ac_site_file2=$prefix/etc/config.site
3072 else
3073   ac_site_file1=$ac_default_prefix/share/config.site
3074   ac_site_file2=$ac_default_prefix/etc/config.site
3075 fi
3076 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3077 do
3078   test "x$ac_site_file" = xNONE && continue
3079   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3080     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3081 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3082     sed 's/^/| /' "$ac_site_file" >&5
3083     . "$ac_site_file" \
3084       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error $? "failed to load site script $ac_site_file
3087 See \`config.log' for more details" "$LINENO" 5; }
3088   fi
3089 done
3090 
3091 if test -r "$cache_file"; then
3092   # Some versions of bash will fail to source /dev/null (special files
3093   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3094   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3095     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3096 $as_echo "$as_me: loading cache $cache_file" >&6;}
3097     case $cache_file in
3098       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3099       *)                      . "./$cache_file";;
3100     esac
3101   fi
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3104 $as_echo "$as_me: creating cache $cache_file" >&6;}
3105   >$cache_file
3106 fi
3107 
3108 # Check that the precious variables saved in the cache have kept the same
3109 # value.
3110 ac_cache_corrupted=false
3111 for ac_var in $ac_precious_vars; do
3112   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3113   eval ac_new_set=\$ac_env_${ac_var}_set
3114   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3115   eval ac_new_val=\$ac_env_${ac_var}_value
3116   case $ac_old_set,$ac_new_set in
3117     set,)
3118       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3120       ac_cache_corrupted=: ;;
3121     ,set)
3122       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3124       ac_cache_corrupted=: ;;
3125     ,);;
3126     *)
3127       if test "x$ac_old_val" != "x$ac_new_val"; then
3128         # differences in whitespace do not lead to failure.
3129         ac_old_val_w=`echo x $ac_old_val`
3130         ac_new_val_w=`echo x $ac_new_val`
3131         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3132           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3134           ac_cache_corrupted=:
3135         else
3136           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3138           eval $ac_var=\$ac_old_val
3139         fi
3140         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3141 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3142         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3143 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3144       fi;;
3145   esac
3146   # Pass precious variables to config.status.
3147   if test "$ac_new_set" = set; then
3148     case $ac_new_val in
3149     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3150     *) ac_arg=$ac_var=$ac_new_val ;;
3151     esac
3152     case " $ac_configure_args " in
3153       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3154       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3155     esac
3156   fi
3157 done
3158 if $ac_cache_corrupted; then
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3163   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3164 fi
3165 ## -------------------- ##
3166 ## Main body of script. ##
3167 ## -------------------- ##
3168 
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 
3175 
3176 
3177 ac_aux_dir=
3178 for ac_dir in build-aux "$srcdir"/build-aux; do
3179   if test -f "$ac_dir/install-sh"; then
3180     ac_aux_dir=$ac_dir
3181     ac_install_sh="$ac_aux_dir/install-sh -c"
3182     break
3183   elif test -f "$ac_dir/install.sh"; then
3184     ac_aux_dir=$ac_dir
3185     ac_install_sh="$ac_aux_dir/install.sh -c"
3186     break
3187   elif test -f "$ac_dir/shtool"; then
3188     ac_aux_dir=$ac_dir
3189     ac_install_sh="$ac_aux_dir/shtool install -c"
3190     break
3191   fi
3192 done
3193 if test -z "$ac_aux_dir"; then
3194   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3195 fi
3196 
3197 # These three variables are undocumented and unsupported,
3198 # and are intended to be withdrawn in a future Autoconf release.
3199 # They can cause serious problems if a builder's source tree is in a directory
3200 # whose full name contains unusual characters.
3201 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3202 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3203 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3204 
3205 
3206 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3207 
3208 #
3209 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3210 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3211 #
3212 # This code is free software; you can redistribute it and/or modify it
3213 # under the terms of the GNU General Public License version 2 only, as
3214 # published by the Free Software Foundation.  Oracle designates this
3215 # particular file as subject to the "Classpath" exception as provided
3216 # by Oracle in the LICENSE file that accompanied this code.
3217 #
3218 # This code is distributed in the hope that it will be useful, but WITHOUT
3219 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3220 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3221 # version 2 for more details (a copy is included in the LICENSE file that
3222 # accompanied this code).
3223 #
3224 # You should have received a copy of the GNU General Public License version
3225 # 2 along with this work; if not, write to the Free Software Foundation,
3226 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3227 #
3228 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3229 # or visit www.oracle.com if you need additional information or have any
3230 # questions.
3231 #
3232 
3233 #
3234 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3235 #
3236 # This program is free software; you can redistribute it and/or modify
3237 # it under the terms of the GNU General Public License as published by
3238 # the Free Software Foundation; either version 2 of the License, or
3239 # (at your option) any later version.
3240 #
3241 # This program is distributed in the hope that it will be useful, but
3242 # WITHOUT ANY WARRANTY; without even the implied warranty of
3243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3244 # General Public License for more details.
3245 #
3246 # You should have received a copy of the GNU General Public License
3247 # along with this program; if not, write to the Free Software
3248 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3249 #
3250 # As a special exception to the GNU General Public License, if you
3251 # distribute this file as part of a program that contains a
3252 # configuration script generated by Autoconf, you may include it under
3253 # the same distribution terms that you use for the rest of that program.
3254 
3255 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3256 # ----------------------------------
3257 # PKG_PROG_PKG_CONFIG
3258 
3259 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3260 #
3261 # Check to see whether a particular set of modules exists.  Similar
3262 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3263 #
3264 #
3265 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3266 # this or PKG_CHECK_MODULES is called, or make sure to call
3267 # PKG_CHECK_EXISTS manually
3268 # --------------------------------------------------------------
3269 
3270 
3271 
3272 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3273 # ---------------------------------------------
3274 # _PKG_CONFIG
3275 
3276 # _PKG_SHORT_ERRORS_SUPPORTED
3277 # -----------------------------
3278 # _PKG_SHORT_ERRORS_SUPPORTED
3279 
3280 
3281 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3282 # [ACTION-IF-NOT-FOUND])
3283 #
3284 #
3285 # Note that if there is a possibility the first call to
3286 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3287 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3288 #
3289 #
3290 # --------------------------------------------------------------
3291 # PKG_CHECK_MODULES
3292 
3293 
3294 # Include these first...
3295 #
3296 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3297 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3298 #
3299 # This code is free software; you can redistribute it and/or modify it
3300 # under the terms of the GNU General Public License version 2 only, as
3301 # published by the Free Software Foundation.  Oracle designates this
3302 # particular file as subject to the "Classpath" exception as provided
3303 # by Oracle in the LICENSE file that accompanied this code.
3304 #
3305 # This code is distributed in the hope that it will be useful, but WITHOUT
3306 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3307 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3308 # version 2 for more details (a copy is included in the LICENSE file that
3309 # accompanied this code).
3310 #
3311 # You should have received a copy of the GNU General Public License version
3312 # 2 along with this work; if not, write to the Free Software Foundation,
3313 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3314 #
3315 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3316 # or visit www.oracle.com if you need additional information or have any
3317 # questions.
3318 #
3319 
3320 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3321 # If so, then append $1 to $2 \
3322 # Also set JVM_ARG_OK to true/false depending on outcome.
3323 
3324 
3325 # Appends a string to a path variable, only adding the : when needed.
3326 
3327 
3328 # This will make sure the given variable points to a full and proper
3329 # path. This means:
3330 # 1) There will be no spaces in the path. On posix platforms,
3331 #    spaces in the path will result in an error. On Windows,
3332 #    the path will be rewritten using short-style to be space-free.
3333 # 2) The path will be absolute, and it will be in unix-style (on
3334 #     cygwin).
3335 # $1: The name of the variable to fix
3336 
3337 
3338 # This will make sure the given variable points to a executable
3339 # with a full and proper path. This means:
3340 # 1) There will be no spaces in the path. On posix platforms,
3341 #    spaces in the path will result in an error. On Windows,
3342 #    the path will be rewritten using short-style to be space-free.
3343 # 2) The path will be absolute, and it will be in unix-style (on
3344 #     cygwin).
3345 # Any arguments given to the executable is preserved.
3346 # If the input variable does not have a directory specification, then
3347 # it need to be in the PATH.
3348 # $1: The name of the variable to fix
3349 
3350 
3351 
3352 
3353 # Register a --with argument but mark it as deprecated
3354 # $1: The name of the with argument to deprecate, not including --with-
3355 
3356 
3357 # Register a --enable argument but mark it as deprecated
3358 # $1: The name of the with argument to deprecate, not including --enable-
3359 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3360 
3361 
3362 
3363 
3364 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3365 # $1: variable to check
3366 
3367 
3368 # Check that there are no unprocessed overridden variables left.
3369 # If so, they are an incorrect argument and we will exit with an error.
3370 
3371 
3372 # Setup a tool for the given variable. If correctly specified by the user,
3373 # use that value, otherwise search for the tool using the supplied code snippet.
3374 # $1: variable to set
3375 # $2: code snippet to call to look for the tool
3376 
3377 
3378 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3379 # $1: variable to set
3380 # $2: executable name (or list of names) to look for
3381 
3382 
3383 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3384 # $1: variable to set
3385 # $2: executable name (or list of names) to look for
3386 
3387 
3388 # Like BASIC_PATH_PROGS but fails if no tool was found.
3389 # $1: variable to set
3390 # $2: executable name (or list of names) to look for
3391 
3392 
3393 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3394 # $1: variable to set
3395 # $2: autoconf macro to call to look for the special tool
3396 
3397 
3398 # Setup the most fundamental tools that relies on not much else to set up,
3399 # but is used by much of the early bootstrap code.
3400 
3401 
3402 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3403 
3404 
3405 
3406 
3407 
3408 
3409 
3410 #%%% Simple tools %%%
3411 
3412 # Check if we have found a usable version of make
3413 # $1: the path to a potential make binary (or empty)
3414 # $2: the description on how we found this
3415 
3416 
3417 # Goes looking for a usable version of GNU make.
3418 
3419 
3420 
3421 
3422 
3423 
3424 # Check if build directory is on local disk. If not possible to determine,
3425 # we prefer to claim it's local.
3426 # Argument 1: directory to test
3427 # Argument 2: what to do if it is on local disk
3428 # Argument 3: what to do otherwise (remote disk or failure)
3429 
3430 
3431 # Check that source files have basic read permissions set. This might
3432 # not be the case in cygwin in certain conditions.
3433 
3434 
3435 
3436 
3437 #
3438 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3439 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3440 #
3441 # This code is free software; you can redistribute it and/or modify it
3442 # under the terms of the GNU General Public License version 2 only, as
3443 # published by the Free Software Foundation.  Oracle designates this
3444 # particular file as subject to the "Classpath" exception as provided
3445 # by Oracle in the LICENSE file that accompanied this code.
3446 #
3447 # This code is distributed in the hope that it will be useful, but WITHOUT
3448 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3449 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3450 # version 2 for more details (a copy is included in the LICENSE file that
3451 # accompanied this code).
3452 #
3453 # You should have received a copy of the GNU General Public License version
3454 # 2 along with this work; if not, write to the Free Software Foundation,
3455 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3456 #
3457 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3458 # or visit www.oracle.com if you need additional information or have any
3459 # questions.
3460 #
3461 
3462 
3463 
3464 
3465 
3466 # Helper function which possibly converts a path using DOS-style short mode.
3467 # If so, the updated path is stored in $new_path.
3468 # $1: The path to check
3469 
3470 
3471 # Helper function which possibly converts a path using DOS-style short mode.
3472 # If so, the updated path is stored in $new_path.
3473 # $1: The path to check
3474 
3475 
3476 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3477 # and could probably be heavily simplified. However, all changes in this
3478 # area tend to need lot of testing in different scenarios, and in lack of
3479 # proper unit testing, cleaning this up has not been deemed worth the effort
3480 # at the moment.
3481 
3482 
3483 
3484 
3485 
3486 
3487 
3488 
3489 
3490 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3491 
3492 
3493 
3494 
3495 #
3496 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3497 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3498 #
3499 # This code is free software; you can redistribute it and/or modify it
3500 # under the terms of the GNU General Public License version 2 only, as
3501 # published by the Free Software Foundation.  Oracle designates this
3502 # particular file as subject to the "Classpath" exception as provided
3503 # by Oracle in the LICENSE file that accompanied this code.
3504 #
3505 # This code is distributed in the hope that it will be useful, but WITHOUT
3506 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3507 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3508 # version 2 for more details (a copy is included in the LICENSE file that
3509 # accompanied this code).
3510 #
3511 # You should have received a copy of the GNU General Public License version
3512 # 2 along with this work; if not, write to the Free Software Foundation,
3513 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3514 #
3515 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3516 # or visit www.oracle.com if you need additional information or have any
3517 # questions.
3518 #
3519 
3520 
3521 
3522 
3523 
3524 
3525 
3526 
3527 
3528 
3529 
3530 # ... then the rest
3531 #
3532 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3533 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3534 #
3535 # This code is free software; you can redistribute it and/or modify it
3536 # under the terms of the GNU General Public License version 2 only, as
3537 # published by the Free Software Foundation.  Oracle designates this
3538 # particular file as subject to the "Classpath" exception as provided
3539 # by Oracle in the LICENSE file that accompanied this code.
3540 #
3541 # This code is distributed in the hope that it will be useful, but WITHOUT
3542 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3543 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3544 # version 2 for more details (a copy is included in the LICENSE file that
3545 # accompanied this code).
3546 #
3547 # You should have received a copy of the GNU General Public License version
3548 # 2 along with this work; if not, write to the Free Software Foundation,
3549 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3550 #
3551 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3552 # or visit www.oracle.com if you need additional information or have any
3553 # questions.
3554 #
3555 
3556 ########################################################################
3557 # This file handles detection of the Boot JDK. The Boot JDK detection
3558 # process has been developed as a response to solve a complex real-world
3559 # problem. Initially, it was simple, but it has grown as platform after
3560 # platform, idiosyncracy after idiosyncracy has been supported.
3561 #
3562 # The basic idea is this:
3563 # 1) You need an acceptable *) JDK to use as a Boot JDK
3564 # 2) There are several ways to locate a JDK, that are mostly platform
3565 #    dependent **)
3566 # 3) You can have multiple JDKs installed
3567 # 4) If possible, configure should try to dig out an acceptable JDK
3568 #    automatically, without having to resort to command-line options
3569 #
3570 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3571 #     javac) and not a JRE, etc.
3572 #
3573 # **) On Windows we typically use a well-known path.
3574 #     On MacOSX we typically use the tool java_home.
3575 #     On Linux we typically find javac in the $PATH, and then follow a
3576 #     chain of symlinks that often ends up in a real JDK.
3577 #
3578 # This leads to the code where we check in different ways to locate a
3579 # JDK, and if one is found, check if it is acceptable. If not, we print
3580 # our reasons for rejecting it (useful when debugging non-working
3581 # configure situations) and continue checking the next one.
3582 ########################################################################
3583 
3584 # Execute the check given as argument, and verify the result
3585 # If the Boot JDK was previously found, do nothing
3586 # $1 A command line (typically autoconf macro) to execute
3587 
3588 
3589 # Test: Is bootjdk explicitely set by command line arguments?
3590 
3591 
3592 # Test: Is bootjdk available from builddeps?
3593 
3594 
3595 # Test: Is $JAVA_HOME set?
3596 
3597 
3598 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3599 
3600 
3601 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3602 # $1: Argument to the java_home binary (optional)
3603 
3604 
3605 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3606 
3607 
3608 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3609 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3610 # $1 = Path to directory containing jdk installations.
3611 # $2 = String to append to the found JDK directory to get the proper JDK home
3612 
3613 
3614 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3615 # environmental variable as base for where to look.
3616 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3617 
3618 
3619 # Test: Is there a JDK installed in default, well-known locations?
3620 
3621 
3622 # Check that a command-line tool in the Boot JDK is correct
3623 # $1 = name of variable to assign
3624 # $2 = name of binary
3625 
3626 
3627 ###############################################################################
3628 #
3629 # We need a Boot JDK to bootstrap the build.
3630 #
3631 
3632 
3633 
3634 
3635 
3636 #
3637 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3638 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3639 #
3640 # This code is free software; you can redistribute it and/or modify it
3641 # under the terms of the GNU General Public License version 2 only, as
3642 # published by the Free Software Foundation.  Oracle designates this
3643 # particular file as subject to the "Classpath" exception as provided
3644 # by Oracle in the LICENSE file that accompanied this code.
3645 #
3646 # This code is distributed in the hope that it will be useful, but WITHOUT
3647 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3648 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3649 # version 2 for more details (a copy is included in the LICENSE file that
3650 # accompanied this code).
3651 #
3652 # You should have received a copy of the GNU General Public License version
3653 # 2 along with this work; if not, write to the Free Software Foundation,
3654 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3655 #
3656 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3657 # or visit www.oracle.com if you need additional information or have any
3658 # questions.
3659 #
3660 
3661 
3662 
3663 
3664 
3665 
3666 
3667 
3668 
3669 
3670 
3671 
3672 
3673 
3674 
3675 
3676 
3677 
3678 
3679 
3680 #
3681 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3682 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3683 #
3684 # This code is free software; you can redistribute it and/or modify it
3685 # under the terms of the GNU General Public License version 2 only, as
3686 # published by the Free Software Foundation.  Oracle designates this
3687 # particular file as subject to the "Classpath" exception as provided
3688 # by Oracle in the LICENSE file that accompanied this code.
3689 #
3690 # This code is distributed in the hope that it will be useful, but WITHOUT
3691 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3692 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3693 # version 2 for more details (a copy is included in the LICENSE file that
3694 # accompanied this code).
3695 #
3696 # You should have received a copy of the GNU General Public License version
3697 # 2 along with this work; if not, write to the Free Software Foundation,
3698 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3699 #
3700 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3701 # or visit www.oracle.com if you need additional information or have any
3702 # questions.
3703 #
3704 
3705 
3706 
3707 
3708 
3709 cygwin_help() {
3710   case $1 in
3711     unzip)
3712       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3713       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3714       ;;
3715     zip)
3716       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3717       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3718       ;;
3719     make)
3720       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3721       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3722       ;;
3723     freetype)
3724       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3725         HELP_MSG="To install freetype, run:
3726 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3727 chmod +x /tmp/freetype-setup.exe
3728 /tmp/freetype-setup.exe
3729 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3730 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3731       else
3732         HELP_MSG="You need to build a 64-bit version of freetype.
3733 This is not readily available.
3734 You can find source code and build instructions on
3735 http://www.freetype.org/
3736 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3737       fi
3738       ;;
3739   esac
3740 }
3741 
3742 msys_help() {
3743   PKGHANDLER_COMMAND=""
3744 }
3745 
3746 apt_help() {
3747   case $1 in
3748     devkit)
3749       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3750     openjdk)
3751       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3752     alsa)
3753       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3754     cups)
3755       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3756     freetype)
3757       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3758     pulse)
3759       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3760     x11)
3761       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3762     ccache)
3763       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3764   esac
3765 }
3766 
3767 yum_help() {
3768   case $1 in
3769     devkit)
3770       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3771     openjdk)
3772       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3773     alsa)
3774       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3775     cups)
3776       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3777     freetype)
3778       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3779     pulse)
3780       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3781     x11)
3782       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3783     ccache)
3784       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3785   esac
3786 }
3787 
3788 port_help() {
3789   PKGHANDLER_COMMAND=""
3790 }
3791 
3792 pkgutil_help() {
3793   PKGHANDLER_COMMAND=""
3794 }
3795 
3796 pkgadd_help() {
3797   PKGHANDLER_COMMAND=""
3798 }
3799 
3800 
3801 
3802 #
3803 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3804 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3805 #
3806 # This code is free software; you can redistribute it and/or modify it
3807 # under the terms of the GNU General Public License version 2 only, as
3808 # published by the Free Software Foundation.  Oracle designates this
3809 # particular file as subject to the "Classpath" exception as provided
3810 # by Oracle in the LICENSE file that accompanied this code.
3811 #
3812 # This code is distributed in the hope that it will be useful, but WITHOUT
3813 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3814 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3815 # version 2 for more details (a copy is included in the LICENSE file that
3816 # accompanied this code).
3817 #
3818 # You should have received a copy of the GNU General Public License version
3819 # 2 along with this work; if not, write to the Free Software Foundation,
3820 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3821 #
3822 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3823 # or visit www.oracle.com if you need additional information or have any
3824 # questions.
3825 #
3826 
3827 
3828 
3829 
3830 
3831 
3832 
3833 
3834 
3835 
3836 ###############################################################################
3837 #
3838 # Should we build only OpenJDK even if closed sources are present?
3839 #
3840 
3841 
3842 
3843 
3844 ###############################################################################
3845 #
3846 # Setup version numbers
3847 #
3848 
3849 
3850 
3851 
3852 
3853 
3854 # Support for customization of the build process. Some build files
3855 # will include counterparts from this location, if they exist. This allows
3856 # for a degree of customization of the build targets and the rules/recipes
3857 # to create them
3858 
3859 # Check whether --with-custom-make-dir was given.
3860 if test "${with_custom_make_dir+set}" = set; then :
3861   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3862 fi
3863 
3864 
3865 
3866 #
3867 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3868 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3869 #
3870 # This code is free software; you can redistribute it and/or modify it
3871 # under the terms of the GNU General Public License version 2 only, as
3872 # published by the Free Software Foundation.  Oracle designates this
3873 # particular file as subject to the "Classpath" exception as provided
3874 # by Oracle in the LICENSE file that accompanied this code.
3875 #
3876 # This code is distributed in the hope that it will be useful, but WITHOUT
3877 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3878 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3879 # version 2 for more details (a copy is included in the LICENSE file that
3880 # accompanied this code).
3881 #
3882 # You should have received a copy of the GNU General Public License version
3883 # 2 along with this work; if not, write to the Free Software Foundation,
3884 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3885 #
3886 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3887 # or visit www.oracle.com if you need additional information or have any
3888 # questions.
3889 #
3890 
3891 
3892 
3893 
3894 
3895 
3896 
3897 
3898 
3899 
3900 
3901 
3902 
3903 
3904 
3905 
3906 
3907 #
3908 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3909 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3910 #
3911 # This code is free software; you can redistribute it and/or modify it
3912 # under the terms of the GNU General Public License version 2 only, as
3913 # published by the Free Software Foundation.  Oracle designates this
3914 # particular file as subject to the "Classpath" exception as provided
3915 # by Oracle in the LICENSE file that accompanied this code.
3916 #
3917 # This code is distributed in the hope that it will be useful, but WITHOUT
3918 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3919 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3920 # version 2 for more details (a copy is included in the LICENSE file that
3921 # accompanied this code).
3922 #
3923 # You should have received a copy of the GNU General Public License version
3924 # 2 along with this work; if not, write to the Free Software Foundation,
3925 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3926 #
3927 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3928 # or visit www.oracle.com if you need additional information or have any
3929 # questions.
3930 #
3931 
3932 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3933 # Converts autoconf style CPU name to OpenJDK style, into
3934 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
3935 
3936 
3937 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3938 # Converts autoconf style OS name to OpenJDK style, into
3939 # VAR_OS and VAR_OS_API.
3940 
3941 
3942 # Expects $host_os $host_cpu $build_os and $build_cpu
3943 # and $with_target_bits to have been setup!
3944 #
3945 # Translate the standard triplet(quadruplet) definition
3946 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
3947 # OPENJDK_BUILD_OS, etc.
3948 
3949 
3950 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
3951 # accordingly. Must be done after setting up build and target system, but before
3952 # doing anything else with these values.
3953 
3954 
3955 # Setup the legacy variables, for controlling the old makefiles.
3956 #
3957 
3958 
3959 
3960 
3961 #%%% Build and target systems %%%
3962 
3963 
3964 
3965 
3966 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
3967 # Add -mX to various FLAGS variables.
3968 
3969 
3970 
3971 
3972 
3973 
3974 #
3975 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3976 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3977 #
3978 # This code is free software; you can redistribute it and/or modify it
3979 # under the terms of the GNU General Public License version 2 only, as
3980 # published by the Free Software Foundation.  Oracle designates this
3981 # particular file as subject to the "Classpath" exception as provided
3982 # by Oracle in the LICENSE file that accompanied this code.
3983 #
3984 # This code is distributed in the hope that it will be useful, but WITHOUT
3985 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3986 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3987 # version 2 for more details (a copy is included in the LICENSE file that
3988 # accompanied this code).
3989 #
3990 # You should have received a copy of the GNU General Public License version
3991 # 2 along with this work; if not, write to the Free Software Foundation,
3992 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3993 #
3994 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3995 # or visit www.oracle.com if you need additional information or have any
3996 # questions.
3997 #
3998 
3999 
4000 
4001 
4002 
4003 
4004 
4005 
4006 #
4007 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4008 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4009 #
4010 # This code is free software; you can redistribute it and/or modify it
4011 # under the terms of the GNU General Public License version 2 only, as
4012 # published by the Free Software Foundation.  Oracle designates this
4013 # particular file as subject to the "Classpath" exception as provided
4014 # by Oracle in the LICENSE file that accompanied this code.
4015 #
4016 # This code is distributed in the hope that it will be useful, but WITHOUT
4017 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4018 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4019 # version 2 for more details (a copy is included in the LICENSE file that
4020 # accompanied this code).
4021 #
4022 # You should have received a copy of the GNU General Public License version
4023 # 2 along with this work; if not, write to the Free Software Foundation,
4024 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4025 #
4026 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4027 # or visit www.oracle.com if you need additional information or have any
4028 # questions.
4029 #
4030 
4031 # $1 = compiler to test (CC or CXX)
4032 # $2 = human readable name of compiler (C or C++)
4033 
4034 
4035 
4036 
4037 
4038 # $1 = compiler to test (CC or CXX)
4039 # $2 = human readable name of compiler (C or C++)
4040 # $3 = list of compiler names to search for
4041 
4042 
4043 
4044 
4045 
4046 
4047 
4048 
4049 
4050 
4051 
4052 
4053 
4054 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
4055 #                                   [RUN-IF-FALSE])
4056 # ------------------------------------------------------------
4057 # Check that the c and c++ compilers support an argument
4058 
4059 
4060 
4061 
4062 # Setup the JTREG paths
4063 
4064 
4065 #
4066 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4067 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4068 #
4069 # This code is free software; you can redistribute it and/or modify it
4070 # under the terms of the GNU General Public License version 2 only, as
4071 # published by the Free Software Foundation.  Oracle designates this
4072 # particular file as subject to the "Classpath" exception as provided
4073 # by Oracle in the LICENSE file that accompanied this code.
4074 #
4075 # This code is distributed in the hope that it will be useful, but WITHOUT
4076 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4077 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4078 # version 2 for more details (a copy is included in the LICENSE file that
4079 # accompanied this code).
4080 #
4081 # You should have received a copy of the GNU General Public License version
4082 # 2 along with this work; if not, write to the Free Software Foundation,
4083 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4084 #
4085 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4086 # or visit www.oracle.com if you need additional information or have any
4087 # questions.
4088 #
4089 
4090 
4091 
4092 
4093 
4094 
4095 
4096 # Check if the VS env variables were setup prior to running configure.
4097 # If not, then find vcvarsall.bat and run it automatically, and integrate
4098 # the set env variables into the spec file.
4099 
4100 
4101 
4102 
4103 
4104 
4105 
4106 
4107 
4108 
4109 # This line needs to be here, verbatim, after all includes and the dummy hook
4110 # definitions. It is replaced with custom functionality when building
4111 # custom sources.
4112 #CUSTOM_AUTOCONF_INCLUDE
4113 
4114 # Do not change or remove the following line, it is needed for consistency checks:
4115 DATE_WHEN_GENERATED=1392933025
4116 
4117 ###############################################################################
4118 #
4119 # Initialization / Boot-strapping
4120 #
4121 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4122 # thus it jumps back and forth, each time gaining something needed later on.
4123 #
4124 ###############################################################################
4125 
4126 # Basic initialization that must happen first of all
4127 
4128   # Save the original command line. This is passed to us by the wrapper configure script.
4129 
4130   DATE_WHEN_CONFIGURED=`LANG=C date`
4131 
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4133 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4135 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4136 
4137 
4138   # Start with tools that do not need have cross compilation support
4139   # and can be expected to be found in the default PATH. These tools are
4140   # used by configure. Nor are these tools expected to be found in the
4141   # devkit from the builddeps server either, since they are
4142   # needed to download the devkit.
4143 
4144   # First are all the simple required tools.
4145 
4146 
4147 
4148   # Publish this variable in the help.
4149 
4150 
4151   if test "x$BASENAME" = x; then
4152     # The variable is not set by user, try to locate tool using the code snippet
4153     for ac_prog in basename
4154 do
4155   # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if ${ac_cv_path_BASENAME+:} false; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   case $BASENAME in
4163   [\\/]* | ?:[\\/]*)
4164   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4165   ;;
4166   *)
4167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172     for ac_exec_ext in '' $ac_executable_extensions; do
4173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179   done
4180 IFS=$as_save_IFS
4181 
4182   ;;
4183 esac
4184 fi
4185 BASENAME=$ac_cv_path_BASENAME
4186 if test -n "$BASENAME"; then
4187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4188 $as_echo "$BASENAME" >&6; }
4189 else
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4192 fi
4193 
4194 
4195   test -n "$BASENAME" && break
4196 done
4197 
4198   else
4199     # The variable is set, but is it from the command line or the environment?
4200 
4201     # Try to remove the string !BASENAME! from our list.
4202     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4203     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4204       # If it failed, the variable was not from the command line. Ignore it,
4205       # but warn the user (except for BASH, which is always set by the calling BASH).
4206       if test "xBASENAME" != xBASH; then
4207         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4208 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4209       fi
4210       # Try to locate tool using the code snippet
4211       for ac_prog in basename
4212 do
4213   # Extract the first word of "$ac_prog", so it can be a program name with args.
4214 set dummy $ac_prog; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_path_BASENAME+:} false; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   case $BASENAME in
4221   [\\/]* | ?:[\\/]*)
4222   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4223   ;;
4224   *)
4225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237   done
4238 IFS=$as_save_IFS
4239 
4240   ;;
4241 esac
4242 fi
4243 BASENAME=$ac_cv_path_BASENAME
4244 if test -n "$BASENAME"; then
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4246 $as_echo "$BASENAME" >&6; }
4247 else
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251 
4252 
4253   test -n "$BASENAME" && break
4254 done
4255 
4256     else
4257       # If it succeeded, then it was overridden by the user. We will use it
4258       # for the tool.
4259 
4260       # First remove it from the list of overridden variables, so we can test
4261       # for unknown variables in the end.
4262       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4263 
4264       # Check if the provided tool contains a complete path.
4265       tool_specified="$BASENAME"
4266       tool_basename="${tool_specified##*/}"
4267       if test "x$tool_basename" = "x$tool_specified"; then
4268         # A command without a complete path is provided, search $PATH.
4269         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4270 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4271         # Extract the first word of "$tool_basename", so it can be a program name with args.
4272 set dummy $tool_basename; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_path_BASENAME+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   case $BASENAME in
4279   [\\/]* | ?:[\\/]*)
4280   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4281   ;;
4282   *)
4283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_exec_ext in '' $ac_executable_extensions; do
4289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295   done
4296 IFS=$as_save_IFS
4297 
4298   ;;
4299 esac
4300 fi
4301 BASENAME=$ac_cv_path_BASENAME
4302 if test -n "$BASENAME"; then
4303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4304 $as_echo "$BASENAME" >&6; }
4305 else
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309 
4310 
4311         if test "x$BASENAME" = x; then
4312           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4313         fi
4314       else
4315         # Otherwise we believe it is a complete path. Use it as it is.
4316         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4317 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4319 $as_echo_n "checking for BASENAME... " >&6; }
4320         if test ! -x "$tool_specified"; then
4321           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4322 $as_echo "not found" >&6; }
4323           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4324         fi
4325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4326 $as_echo "$tool_specified" >&6; }
4327       fi
4328     fi
4329   fi
4330 
4331 
4332 
4333   if test "x$BASENAME" = x; then
4334     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4335   fi
4336 
4337 
4338 
4339 
4340 
4341   # Publish this variable in the help.
4342 
4343 
4344   if test "x$BASH" = x; then
4345     # The variable is not set by user, try to locate tool using the code snippet
4346     for ac_prog in bash
4347 do
4348   # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if ${ac_cv_path_BASH+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   case $BASH in
4356   [\\/]* | ?:[\\/]*)
4357   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4358   ;;
4359   *)
4360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372   done
4373 IFS=$as_save_IFS
4374 
4375   ;;
4376 esac
4377 fi
4378 BASH=$ac_cv_path_BASH
4379 if test -n "$BASH"; then
4380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4381 $as_echo "$BASH" >&6; }
4382 else
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 fi
4386 
4387 
4388   test -n "$BASH" && break
4389 done
4390 
4391   else
4392     # The variable is set, but is it from the command line or the environment?
4393 
4394     # Try to remove the string !BASH! from our list.
4395     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4396     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4397       # If it failed, the variable was not from the command line. Ignore it,
4398       # but warn the user (except for BASH, which is always set by the calling BASH).
4399       if test "xBASH" != xBASH; then
4400         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4401 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4402       fi
4403       # Try to locate tool using the code snippet
4404       for ac_prog in bash
4405 do
4406   # Extract the first word of "$ac_prog", so it can be a program name with args.
4407 set dummy $ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_path_BASH+:} false; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   case $BASH in
4414   [\\/]* | ?:[\\/]*)
4415   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4416   ;;
4417   *)
4418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423     for ac_exec_ext in '' $ac_executable_extensions; do
4424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430   done
4431 IFS=$as_save_IFS
4432 
4433   ;;
4434 esac
4435 fi
4436 BASH=$ac_cv_path_BASH
4437 if test -n "$BASH"; then
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4439 $as_echo "$BASH" >&6; }
4440 else
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4443 fi
4444 
4445 
4446   test -n "$BASH" && break
4447 done
4448 
4449     else
4450       # If it succeeded, then it was overridden by the user. We will use it
4451       # for the tool.
4452 
4453       # First remove it from the list of overridden variables, so we can test
4454       # for unknown variables in the end.
4455       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4456 
4457       # Check if the provided tool contains a complete path.
4458       tool_specified="$BASH"
4459       tool_basename="${tool_specified##*/}"
4460       if test "x$tool_basename" = "x$tool_specified"; then
4461         # A command without a complete path is provided, search $PATH.
4462         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4463 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4464         # Extract the first word of "$tool_basename", so it can be a program name with args.
4465 set dummy $tool_basename; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if ${ac_cv_path_BASH+:} false; then :
4469   $as_echo_n "(cached) " >&6
4470 else
4471   case $BASH in
4472   [\\/]* | ?:[\\/]*)
4473   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4474   ;;
4475   *)
4476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481     for ac_exec_ext in '' $ac_executable_extensions; do
4482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485     break 2
4486   fi
4487 done
4488   done
4489 IFS=$as_save_IFS
4490 
4491   ;;
4492 esac
4493 fi
4494 BASH=$ac_cv_path_BASH
4495 if test -n "$BASH"; then
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4497 $as_echo "$BASH" >&6; }
4498 else
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502 
4503 
4504         if test "x$BASH" = x; then
4505           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4506         fi
4507       else
4508         # Otherwise we believe it is a complete path. Use it as it is.
4509         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4510 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4512 $as_echo_n "checking for BASH... " >&6; }
4513         if test ! -x "$tool_specified"; then
4514           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4515 $as_echo "not found" >&6; }
4516           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4517         fi
4518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4519 $as_echo "$tool_specified" >&6; }
4520       fi
4521     fi
4522   fi
4523 
4524 
4525 
4526   if test "x$BASH" = x; then
4527     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4528   fi
4529 
4530 
4531 
4532 
4533 
4534   # Publish this variable in the help.
4535 
4536 
4537   if test "x$CAT" = x; then
4538     # The variable is not set by user, try to locate tool using the code snippet
4539     for ac_prog in cat
4540 do
4541   # Extract the first word of "$ac_prog", so it can be a program name with args.
4542 set dummy $ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_path_CAT+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   case $CAT in
4549   [\\/]* | ?:[\\/]*)
4550   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4551   ;;
4552   *)
4553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556   IFS=$as_save_IFS
4557   test -z "$as_dir" && as_dir=.
4558     for ac_exec_ext in '' $ac_executable_extensions; do
4559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562     break 2
4563   fi
4564 done
4565   done
4566 IFS=$as_save_IFS
4567 
4568   ;;
4569 esac
4570 fi
4571 CAT=$ac_cv_path_CAT
4572 if test -n "$CAT"; then
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4574 $as_echo "$CAT" >&6; }
4575 else
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579 
4580 
4581   test -n "$CAT" && break
4582 done
4583 
4584   else
4585     # The variable is set, but is it from the command line or the environment?
4586 
4587     # Try to remove the string !CAT! from our list.
4588     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4589     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4590       # If it failed, the variable was not from the command line. Ignore it,
4591       # but warn the user (except for BASH, which is always set by the calling BASH).
4592       if test "xCAT" != xBASH; then
4593         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4594 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4595       fi
4596       # Try to locate tool using the code snippet
4597       for ac_prog in cat
4598 do
4599   # Extract the first word of "$ac_prog", so it can be a program name with args.
4600 set dummy $ac_prog; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_path_CAT+:} false; then :
4604   $as_echo_n "(cached) " >&6
4605 else
4606   case $CAT in
4607   [\\/]* | ?:[\\/]*)
4608   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4609   ;;
4610   *)
4611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616     for ac_exec_ext in '' $ac_executable_extensions; do
4617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623   done
4624 IFS=$as_save_IFS
4625 
4626   ;;
4627 esac
4628 fi
4629 CAT=$ac_cv_path_CAT
4630 if test -n "$CAT"; then
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4632 $as_echo "$CAT" >&6; }
4633 else
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637 
4638 
4639   test -n "$CAT" && break
4640 done
4641 
4642     else
4643       # If it succeeded, then it was overridden by the user. We will use it
4644       # for the tool.
4645 
4646       # First remove it from the list of overridden variables, so we can test
4647       # for unknown variables in the end.
4648       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4649 
4650       # Check if the provided tool contains a complete path.
4651       tool_specified="$CAT"
4652       tool_basename="${tool_specified##*/}"
4653       if test "x$tool_basename" = "x$tool_specified"; then
4654         # A command without a complete path is provided, search $PATH.
4655         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4656 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4657         # Extract the first word of "$tool_basename", so it can be a program name with args.
4658 set dummy $tool_basename; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if ${ac_cv_path_CAT+:} false; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   case $CAT in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674     for ac_exec_ext in '' $ac_executable_extensions; do
4675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681   done
4682 IFS=$as_save_IFS
4683 
4684   ;;
4685 esac
4686 fi
4687 CAT=$ac_cv_path_CAT
4688 if test -n "$CAT"; then
4689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4690 $as_echo "$CAT" >&6; }
4691 else
4692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695 
4696 
4697         if test "x$CAT" = x; then
4698           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4699         fi
4700       else
4701         # Otherwise we believe it is a complete path. Use it as it is.
4702         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4703 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4705 $as_echo_n "checking for CAT... " >&6; }
4706         if test ! -x "$tool_specified"; then
4707           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4708 $as_echo "not found" >&6; }
4709           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4710         fi
4711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4712 $as_echo "$tool_specified" >&6; }
4713       fi
4714     fi
4715   fi
4716 
4717 
4718 
4719   if test "x$CAT" = x; then
4720     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4721   fi
4722 
4723 
4724 
4725 
4726 
4727   # Publish this variable in the help.
4728 
4729 
4730   if test "x$CHMOD" = x; then
4731     # The variable is not set by user, try to locate tool using the code snippet
4732     for ac_prog in chmod
4733 do
4734   # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_path_CHMOD+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   case $CHMOD in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760 
4761   ;;
4762 esac
4763 fi
4764 CHMOD=$ac_cv_path_CHMOD
4765 if test -n "$CHMOD"; then
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4767 $as_echo "$CHMOD" >&6; }
4768 else
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4771 fi
4772 
4773 
4774   test -n "$CHMOD" && break
4775 done
4776 
4777   else
4778     # The variable is set, but is it from the command line or the environment?
4779 
4780     # Try to remove the string !CHMOD! from our list.
4781     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4782     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4783       # If it failed, the variable was not from the command line. Ignore it,
4784       # but warn the user (except for BASH, which is always set by the calling BASH).
4785       if test "xCHMOD" != xBASH; then
4786         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4787 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4788       fi
4789       # Try to locate tool using the code snippet
4790       for ac_prog in chmod
4791 do
4792   # Extract the first word of "$ac_prog", so it can be a program name with args.
4793 set dummy $ac_prog; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_path_CHMOD+:} false; then :
4797   $as_echo_n "(cached) " >&6
4798 else
4799   case $CHMOD in
4800   [\\/]* | ?:[\\/]*)
4801   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4802   ;;
4803   *)
4804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_exec_ext in '' $ac_executable_extensions; do
4810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813     break 2
4814   fi
4815 done
4816   done
4817 IFS=$as_save_IFS
4818 
4819   ;;
4820 esac
4821 fi
4822 CHMOD=$ac_cv_path_CHMOD
4823 if test -n "$CHMOD"; then
4824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4825 $as_echo "$CHMOD" >&6; }
4826 else
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829 fi
4830 
4831 
4832   test -n "$CHMOD" && break
4833 done
4834 
4835     else
4836       # If it succeeded, then it was overridden by the user. We will use it
4837       # for the tool.
4838 
4839       # First remove it from the list of overridden variables, so we can test
4840       # for unknown variables in the end.
4841       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4842 
4843       # Check if the provided tool contains a complete path.
4844       tool_specified="$CHMOD"
4845       tool_basename="${tool_specified##*/}"
4846       if test "x$tool_basename" = "x$tool_specified"; then
4847         # A command without a complete path is provided, search $PATH.
4848         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4849 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4850         # Extract the first word of "$tool_basename", so it can be a program name with args.
4851 set dummy $tool_basename; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if ${ac_cv_path_CHMOD+:} false; then :
4855   $as_echo_n "(cached) " >&6
4856 else
4857   case $CHMOD in
4858   [\\/]* | ?:[\\/]*)
4859   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4860   ;;
4861   *)
4862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     for ac_exec_ext in '' $ac_executable_extensions; do
4868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874   done
4875 IFS=$as_save_IFS
4876 
4877   ;;
4878 esac
4879 fi
4880 CHMOD=$ac_cv_path_CHMOD
4881 if test -n "$CHMOD"; then
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4883 $as_echo "$CHMOD" >&6; }
4884 else
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888 
4889 
4890         if test "x$CHMOD" = x; then
4891           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4892         fi
4893       else
4894         # Otherwise we believe it is a complete path. Use it as it is.
4895         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
4896 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
4897         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
4898 $as_echo_n "checking for CHMOD... " >&6; }
4899         if test ! -x "$tool_specified"; then
4900           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4901 $as_echo "not found" >&6; }
4902           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
4903         fi
4904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4905 $as_echo "$tool_specified" >&6; }
4906       fi
4907     fi
4908   fi
4909 
4910 
4911 
4912   if test "x$CHMOD" = x; then
4913     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
4914   fi
4915 
4916 
4917 
4918 
4919 
4920   # Publish this variable in the help.
4921 
4922 
4923   if test "x$CMP" = x; then
4924     # The variable is not set by user, try to locate tool using the code snippet
4925     for ac_prog in cmp
4926 do
4927   # Extract the first word of "$ac_prog", so it can be a program name with args.
4928 set dummy $ac_prog; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if ${ac_cv_path_CMP+:} false; then :
4932   $as_echo_n "(cached) " >&6
4933 else
4934   case $CMP in
4935   [\\/]* | ?:[\\/]*)
4936   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4937   ;;
4938   *)
4939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944     for ac_exec_ext in '' $ac_executable_extensions; do
4945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951   done
4952 IFS=$as_save_IFS
4953 
4954   ;;
4955 esac
4956 fi
4957 CMP=$ac_cv_path_CMP
4958 if test -n "$CMP"; then
4959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4960 $as_echo "$CMP" >&6; }
4961 else
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4964 fi
4965 
4966 
4967   test -n "$CMP" && break
4968 done
4969 
4970   else
4971     # The variable is set, but is it from the command line or the environment?
4972 
4973     # Try to remove the string !CMP! from our list.
4974     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
4975     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4976       # If it failed, the variable was not from the command line. Ignore it,
4977       # but warn the user (except for BASH, which is always set by the calling BASH).
4978       if test "xCMP" != xBASH; then
4979         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
4980 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
4981       fi
4982       # Try to locate tool using the code snippet
4983       for ac_prog in cmp
4984 do
4985   # Extract the first word of "$ac_prog", so it can be a program name with args.
4986 set dummy $ac_prog; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if ${ac_cv_path_CMP+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   case $CMP in
4993   [\\/]* | ?:[\\/]*)
4994   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4995   ;;
4996   *)
4997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000   IFS=$as_save_IFS
5001   test -z "$as_dir" && as_dir=.
5002     for ac_exec_ext in '' $ac_executable_extensions; do
5003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006     break 2
5007   fi
5008 done
5009   done
5010 IFS=$as_save_IFS
5011 
5012   ;;
5013 esac
5014 fi
5015 CMP=$ac_cv_path_CMP
5016 if test -n "$CMP"; then
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5018 $as_echo "$CMP" >&6; }
5019 else
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023 
5024 
5025   test -n "$CMP" && break
5026 done
5027 
5028     else
5029       # If it succeeded, then it was overridden by the user. We will use it
5030       # for the tool.
5031 
5032       # First remove it from the list of overridden variables, so we can test
5033       # for unknown variables in the end.
5034       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5035 
5036       # Check if the provided tool contains a complete path.
5037       tool_specified="$CMP"
5038       tool_basename="${tool_specified##*/}"
5039       if test "x$tool_basename" = "x$tool_specified"; then
5040         # A command without a complete path is provided, search $PATH.
5041         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5042 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5043         # Extract the first word of "$tool_basename", so it can be a program name with args.
5044 set dummy $tool_basename; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_path_CMP+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   case $CMP in
5051   [\\/]* | ?:[\\/]*)
5052   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5053   ;;
5054   *)
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060     for ac_exec_ext in '' $ac_executable_extensions; do
5061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067   done
5068 IFS=$as_save_IFS
5069 
5070   ;;
5071 esac
5072 fi
5073 CMP=$ac_cv_path_CMP
5074 if test -n "$CMP"; then
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5076 $as_echo "$CMP" >&6; }
5077 else
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081 
5082 
5083         if test "x$CMP" = x; then
5084           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5085         fi
5086       else
5087         # Otherwise we believe it is a complete path. Use it as it is.
5088         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5089 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5090         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5091 $as_echo_n "checking for CMP... " >&6; }
5092         if test ! -x "$tool_specified"; then
5093           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5094 $as_echo "not found" >&6; }
5095           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5096         fi
5097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5098 $as_echo "$tool_specified" >&6; }
5099       fi
5100     fi
5101   fi
5102 
5103 
5104 
5105   if test "x$CMP" = x; then
5106     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5107   fi
5108 
5109 
5110 
5111 
5112 
5113   # Publish this variable in the help.
5114 
5115 
5116   if test "x$COMM" = x; then
5117     # The variable is not set by user, try to locate tool using the code snippet
5118     for ac_prog in comm
5119 do
5120   # Extract the first word of "$ac_prog", so it can be a program name with args.
5121 set dummy $ac_prog; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_path_COMM+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   case $COMM in
5128   [\\/]* | ?:[\\/]*)
5129   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5130   ;;
5131   *)
5132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135   IFS=$as_save_IFS
5136   test -z "$as_dir" && as_dir=.
5137     for ac_exec_ext in '' $ac_executable_extensions; do
5138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141     break 2
5142   fi
5143 done
5144   done
5145 IFS=$as_save_IFS
5146 
5147   ;;
5148 esac
5149 fi
5150 COMM=$ac_cv_path_COMM
5151 if test -n "$COMM"; then
5152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5153 $as_echo "$COMM" >&6; }
5154 else
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158 
5159 
5160   test -n "$COMM" && break
5161 done
5162 
5163   else
5164     # The variable is set, but is it from the command line or the environment?
5165 
5166     # Try to remove the string !COMM! from our list.
5167     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5168     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5169       # If it failed, the variable was not from the command line. Ignore it,
5170       # but warn the user (except for BASH, which is always set by the calling BASH).
5171       if test "xCOMM" != xBASH; then
5172         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5173 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5174       fi
5175       # Try to locate tool using the code snippet
5176       for ac_prog in comm
5177 do
5178   # Extract the first word of "$ac_prog", so it can be a program name with args.
5179 set dummy $ac_prog; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_path_COMM+:} false; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   case $COMM in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195     for ac_exec_ext in '' $ac_executable_extensions; do
5196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202   done
5203 IFS=$as_save_IFS
5204 
5205   ;;
5206 esac
5207 fi
5208 COMM=$ac_cv_path_COMM
5209 if test -n "$COMM"; then
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5211 $as_echo "$COMM" >&6; }
5212 else
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216 
5217 
5218   test -n "$COMM" && break
5219 done
5220 
5221     else
5222       # If it succeeded, then it was overridden by the user. We will use it
5223       # for the tool.
5224 
5225       # First remove it from the list of overridden variables, so we can test
5226       # for unknown variables in the end.
5227       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5228 
5229       # Check if the provided tool contains a complete path.
5230       tool_specified="$COMM"
5231       tool_basename="${tool_specified##*/}"
5232       if test "x$tool_basename" = "x$tool_specified"; then
5233         # A command without a complete path is provided, search $PATH.
5234         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5235 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5236         # Extract the first word of "$tool_basename", so it can be a program name with args.
5237 set dummy $tool_basename; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_path_COMM+:} false; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   case $COMM in
5244   [\\/]* | ?:[\\/]*)
5245   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5246   ;;
5247   *)
5248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253     for ac_exec_ext in '' $ac_executable_extensions; do
5254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257     break 2
5258   fi
5259 done
5260   done
5261 IFS=$as_save_IFS
5262 
5263   ;;
5264 esac
5265 fi
5266 COMM=$ac_cv_path_COMM
5267 if test -n "$COMM"; then
5268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5269 $as_echo "$COMM" >&6; }
5270 else
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5273 fi
5274 
5275 
5276         if test "x$COMM" = x; then
5277           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5278         fi
5279       else
5280         # Otherwise we believe it is a complete path. Use it as it is.
5281         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5282 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5283         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5284 $as_echo_n "checking for COMM... " >&6; }
5285         if test ! -x "$tool_specified"; then
5286           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5287 $as_echo "not found" >&6; }
5288           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5289         fi
5290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5291 $as_echo "$tool_specified" >&6; }
5292       fi
5293     fi
5294   fi
5295 
5296 
5297 
5298   if test "x$COMM" = x; then
5299     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5300   fi
5301 
5302 
5303 
5304 
5305 
5306   # Publish this variable in the help.
5307 
5308 
5309   if test "x$CP" = x; then
5310     # The variable is not set by user, try to locate tool using the code snippet
5311     for ac_prog in cp
5312 do
5313   # Extract the first word of "$ac_prog", so it can be a program name with args.
5314 set dummy $ac_prog; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_path_CP+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   case $CP in
5321   [\\/]* | ?:[\\/]*)
5322   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5323   ;;
5324   *)
5325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330     for ac_exec_ext in '' $ac_executable_extensions; do
5331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334     break 2
5335   fi
5336 done
5337   done
5338 IFS=$as_save_IFS
5339 
5340   ;;
5341 esac
5342 fi
5343 CP=$ac_cv_path_CP
5344 if test -n "$CP"; then
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5346 $as_echo "$CP" >&6; }
5347 else
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351 
5352 
5353   test -n "$CP" && break
5354 done
5355 
5356   else
5357     # The variable is set, but is it from the command line or the environment?
5358 
5359     # Try to remove the string !CP! from our list.
5360     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5361     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5362       # If it failed, the variable was not from the command line. Ignore it,
5363       # but warn the user (except for BASH, which is always set by the calling BASH).
5364       if test "xCP" != xBASH; then
5365         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5366 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5367       fi
5368       # Try to locate tool using the code snippet
5369       for ac_prog in cp
5370 do
5371   # Extract the first word of "$ac_prog", so it can be a program name with args.
5372 set dummy $ac_prog; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if ${ac_cv_path_CP+:} false; then :
5376   $as_echo_n "(cached) " >&6
5377 else
5378   case $CP in
5379   [\\/]* | ?:[\\/]*)
5380   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5381   ;;
5382   *)
5383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386   IFS=$as_save_IFS
5387   test -z "$as_dir" && as_dir=.
5388     for ac_exec_ext in '' $ac_executable_extensions; do
5389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392     break 2
5393   fi
5394 done
5395   done
5396 IFS=$as_save_IFS
5397 
5398   ;;
5399 esac
5400 fi
5401 CP=$ac_cv_path_CP
5402 if test -n "$CP"; then
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5404 $as_echo "$CP" >&6; }
5405 else
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409 
5410 
5411   test -n "$CP" && break
5412 done
5413 
5414     else
5415       # If it succeeded, then it was overridden by the user. We will use it
5416       # for the tool.
5417 
5418       # First remove it from the list of overridden variables, so we can test
5419       # for unknown variables in the end.
5420       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5421 
5422       # Check if the provided tool contains a complete path.
5423       tool_specified="$CP"
5424       tool_basename="${tool_specified##*/}"
5425       if test "x$tool_basename" = "x$tool_specified"; then
5426         # A command without a complete path is provided, search $PATH.
5427         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5428 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5429         # Extract the first word of "$tool_basename", so it can be a program name with args.
5430 set dummy $tool_basename; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_path_CP+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   case $CP in
5437   [\\/]* | ?:[\\/]*)
5438   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5439   ;;
5440   *)
5441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446     for ac_exec_ext in '' $ac_executable_extensions; do
5447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453   done
5454 IFS=$as_save_IFS
5455 
5456   ;;
5457 esac
5458 fi
5459 CP=$ac_cv_path_CP
5460 if test -n "$CP"; then
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5462 $as_echo "$CP" >&6; }
5463 else
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5466 fi
5467 
5468 
5469         if test "x$CP" = x; then
5470           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5471         fi
5472       else
5473         # Otherwise we believe it is a complete path. Use it as it is.
5474         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5475 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5477 $as_echo_n "checking for CP... " >&6; }
5478         if test ! -x "$tool_specified"; then
5479           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5480 $as_echo "not found" >&6; }
5481           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5482         fi
5483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5484 $as_echo "$tool_specified" >&6; }
5485       fi
5486     fi
5487   fi
5488 
5489 
5490 
5491   if test "x$CP" = x; then
5492     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5493   fi
5494 
5495 
5496 
5497 
5498 
5499   # Publish this variable in the help.
5500 
5501 
5502   if test "x$CPIO" = x; then
5503     # The variable is not set by user, try to locate tool using the code snippet
5504     for ac_prog in cpio
5505 do
5506   # Extract the first word of "$ac_prog", so it can be a program name with args.
5507 set dummy $ac_prog; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_path_CPIO+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   case $CPIO in
5514   [\\/]* | ?:[\\/]*)
5515   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5516   ;;
5517   *)
5518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521   IFS=$as_save_IFS
5522   test -z "$as_dir" && as_dir=.
5523     for ac_exec_ext in '' $ac_executable_extensions; do
5524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527     break 2
5528   fi
5529 done
5530   done
5531 IFS=$as_save_IFS
5532 
5533   ;;
5534 esac
5535 fi
5536 CPIO=$ac_cv_path_CPIO
5537 if test -n "$CPIO"; then
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5539 $as_echo "$CPIO" >&6; }
5540 else
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544 
5545 
5546   test -n "$CPIO" && break
5547 done
5548 
5549   else
5550     # The variable is set, but is it from the command line or the environment?
5551 
5552     # Try to remove the string !CPIO! from our list.
5553     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5554     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5555       # If it failed, the variable was not from the command line. Ignore it,
5556       # but warn the user (except for BASH, which is always set by the calling BASH).
5557       if test "xCPIO" != xBASH; then
5558         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5559 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5560       fi
5561       # Try to locate tool using the code snippet
5562       for ac_prog in cpio
5563 do
5564   # Extract the first word of "$ac_prog", so it can be a program name with args.
5565 set dummy $ac_prog; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_path_CPIO+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   case $CPIO in
5572   [\\/]* | ?:[\\/]*)
5573   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5574   ;;
5575   *)
5576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579   IFS=$as_save_IFS
5580   test -z "$as_dir" && as_dir=.
5581     for ac_exec_ext in '' $ac_executable_extensions; do
5582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585     break 2
5586   fi
5587 done
5588   done
5589 IFS=$as_save_IFS
5590 
5591   ;;
5592 esac
5593 fi
5594 CPIO=$ac_cv_path_CPIO
5595 if test -n "$CPIO"; then
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5597 $as_echo "$CPIO" >&6; }
5598 else
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602 
5603 
5604   test -n "$CPIO" && break
5605 done
5606 
5607     else
5608       # If it succeeded, then it was overridden by the user. We will use it
5609       # for the tool.
5610 
5611       # First remove it from the list of overridden variables, so we can test
5612       # for unknown variables in the end.
5613       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5614 
5615       # Check if the provided tool contains a complete path.
5616       tool_specified="$CPIO"
5617       tool_basename="${tool_specified##*/}"
5618       if test "x$tool_basename" = "x$tool_specified"; then
5619         # A command without a complete path is provided, search $PATH.
5620         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5621 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5622         # Extract the first word of "$tool_basename", so it can be a program name with args.
5623 set dummy $tool_basename; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_path_CPIO+:} false; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   case $CPIO in
5630   [\\/]* | ?:[\\/]*)
5631   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5632   ;;
5633   *)
5634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637   IFS=$as_save_IFS
5638   test -z "$as_dir" && as_dir=.
5639     for ac_exec_ext in '' $ac_executable_extensions; do
5640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643     break 2
5644   fi
5645 done
5646   done
5647 IFS=$as_save_IFS
5648 
5649   ;;
5650 esac
5651 fi
5652 CPIO=$ac_cv_path_CPIO
5653 if test -n "$CPIO"; then
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5655 $as_echo "$CPIO" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660 
5661 
5662         if test "x$CPIO" = x; then
5663           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5664         fi
5665       else
5666         # Otherwise we believe it is a complete path. Use it as it is.
5667         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5668 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5669         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5670 $as_echo_n "checking for CPIO... " >&6; }
5671         if test ! -x "$tool_specified"; then
5672           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5673 $as_echo "not found" >&6; }
5674           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5675         fi
5676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5677 $as_echo "$tool_specified" >&6; }
5678       fi
5679     fi
5680   fi
5681 
5682 
5683 
5684   if test "x$CPIO" = x; then
5685     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5686   fi
5687 
5688 
5689 
5690 
5691 
5692   # Publish this variable in the help.
5693 
5694 
5695   if test "x$CUT" = x; then
5696     # The variable is not set by user, try to locate tool using the code snippet
5697     for ac_prog in cut
5698 do
5699   # Extract the first word of "$ac_prog", so it can be a program name with args.
5700 set dummy $ac_prog; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_path_CUT+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   case $CUT in
5707   [\\/]* | ?:[\\/]*)
5708   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5709   ;;
5710   *)
5711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725 
5726   ;;
5727 esac
5728 fi
5729 CUT=$ac_cv_path_CUT
5730 if test -n "$CUT"; then
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5732 $as_echo "$CUT" >&6; }
5733 else
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737 
5738 
5739   test -n "$CUT" && break
5740 done
5741 
5742   else
5743     # The variable is set, but is it from the command line or the environment?
5744 
5745     # Try to remove the string !CUT! from our list.
5746     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5747     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5748       # If it failed, the variable was not from the command line. Ignore it,
5749       # but warn the user (except for BASH, which is always set by the calling BASH).
5750       if test "xCUT" != xBASH; then
5751         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5752 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5753       fi
5754       # Try to locate tool using the code snippet
5755       for ac_prog in cut
5756 do
5757   # Extract the first word of "$ac_prog", so it can be a program name with args.
5758 set dummy $ac_prog; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_path_CUT+:} false; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   case $CUT in
5765   [\\/]* | ?:[\\/]*)
5766   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5767   ;;
5768   *)
5769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783 
5784   ;;
5785 esac
5786 fi
5787 CUT=$ac_cv_path_CUT
5788 if test -n "$CUT"; then
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5790 $as_echo "$CUT" >&6; }
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795 
5796 
5797   test -n "$CUT" && break
5798 done
5799 
5800     else
5801       # If it succeeded, then it was overridden by the user. We will use it
5802       # for the tool.
5803 
5804       # First remove it from the list of overridden variables, so we can test
5805       # for unknown variables in the end.
5806       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5807 
5808       # Check if the provided tool contains a complete path.
5809       tool_specified="$CUT"
5810       tool_basename="${tool_specified##*/}"
5811       if test "x$tool_basename" = "x$tool_specified"; then
5812         # A command without a complete path is provided, search $PATH.
5813         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5814 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5815         # Extract the first word of "$tool_basename", so it can be a program name with args.
5816 set dummy $tool_basename; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_path_CUT+:} false; then :
5820   $as_echo_n "(cached) " >&6
5821 else
5822   case $CUT in
5823   [\\/]* | ?:[\\/]*)
5824   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5825   ;;
5826   *)
5827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830   IFS=$as_save_IFS
5831   test -z "$as_dir" && as_dir=.
5832     for ac_exec_ext in '' $ac_executable_extensions; do
5833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836     break 2
5837   fi
5838 done
5839   done
5840 IFS=$as_save_IFS
5841 
5842   ;;
5843 esac
5844 fi
5845 CUT=$ac_cv_path_CUT
5846 if test -n "$CUT"; then
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5848 $as_echo "$CUT" >&6; }
5849 else
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853 
5854 
5855         if test "x$CUT" = x; then
5856           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5857         fi
5858       else
5859         # Otherwise we believe it is a complete path. Use it as it is.
5860         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5861 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5862         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5863 $as_echo_n "checking for CUT... " >&6; }
5864         if test ! -x "$tool_specified"; then
5865           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5866 $as_echo "not found" >&6; }
5867           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5868         fi
5869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5870 $as_echo "$tool_specified" >&6; }
5871       fi
5872     fi
5873   fi
5874 
5875 
5876 
5877   if test "x$CUT" = x; then
5878     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5879   fi
5880 
5881 
5882 
5883 
5884 
5885   # Publish this variable in the help.
5886 
5887 
5888   if test "x$DATE" = x; then
5889     # The variable is not set by user, try to locate tool using the code snippet
5890     for ac_prog in date
5891 do
5892   # Extract the first word of "$ac_prog", so it can be a program name with args.
5893 set dummy $ac_prog; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_path_DATE+:} false; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899   case $DATE in
5900   [\\/]* | ?:[\\/]*)
5901   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5902   ;;
5903   *)
5904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907   IFS=$as_save_IFS
5908   test -z "$as_dir" && as_dir=.
5909     for ac_exec_ext in '' $ac_executable_extensions; do
5910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913     break 2
5914   fi
5915 done
5916   done
5917 IFS=$as_save_IFS
5918 
5919   ;;
5920 esac
5921 fi
5922 DATE=$ac_cv_path_DATE
5923 if test -n "$DATE"; then
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5925 $as_echo "$DATE" >&6; }
5926 else
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 fi
5930 
5931 
5932   test -n "$DATE" && break
5933 done
5934 
5935   else
5936     # The variable is set, but is it from the command line or the environment?
5937 
5938     # Try to remove the string !DATE! from our list.
5939     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
5940     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5941       # If it failed, the variable was not from the command line. Ignore it,
5942       # but warn the user (except for BASH, which is always set by the calling BASH).
5943       if test "xDATE" != xBASH; then
5944         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
5945 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
5946       fi
5947       # Try to locate tool using the code snippet
5948       for ac_prog in date
5949 do
5950   # Extract the first word of "$ac_prog", so it can be a program name with args.
5951 set dummy $ac_prog; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_path_DATE+:} false; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   case $DATE in
5958   [\\/]* | ?:[\\/]*)
5959   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5960   ;;
5961   *)
5962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967     for ac_exec_ext in '' $ac_executable_extensions; do
5968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974   done
5975 IFS=$as_save_IFS
5976 
5977   ;;
5978 esac
5979 fi
5980 DATE=$ac_cv_path_DATE
5981 if test -n "$DATE"; then
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5983 $as_echo "$DATE" >&6; }
5984 else
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5987 fi
5988 
5989 
5990   test -n "$DATE" && break
5991 done
5992 
5993     else
5994       # If it succeeded, then it was overridden by the user. We will use it
5995       # for the tool.
5996 
5997       # First remove it from the list of overridden variables, so we can test
5998       # for unknown variables in the end.
5999       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6000 
6001       # Check if the provided tool contains a complete path.
6002       tool_specified="$DATE"
6003       tool_basename="${tool_specified##*/}"
6004       if test "x$tool_basename" = "x$tool_specified"; then
6005         # A command without a complete path is provided, search $PATH.
6006         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6007 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6008         # Extract the first word of "$tool_basename", so it can be a program name with args.
6009 set dummy $tool_basename; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_path_DATE+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   case $DATE in
6016   [\\/]* | ?:[\\/]*)
6017   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6018   ;;
6019   *)
6020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025     for ac_exec_ext in '' $ac_executable_extensions; do
6026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029     break 2
6030   fi
6031 done
6032   done
6033 IFS=$as_save_IFS
6034 
6035   ;;
6036 esac
6037 fi
6038 DATE=$ac_cv_path_DATE
6039 if test -n "$DATE"; then
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6041 $as_echo "$DATE" >&6; }
6042 else
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045 fi
6046 
6047 
6048         if test "x$DATE" = x; then
6049           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6050         fi
6051       else
6052         # Otherwise we believe it is a complete path. Use it as it is.
6053         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6054 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6055         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6056 $as_echo_n "checking for DATE... " >&6; }
6057         if test ! -x "$tool_specified"; then
6058           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6059 $as_echo "not found" >&6; }
6060           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6061         fi
6062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6063 $as_echo "$tool_specified" >&6; }
6064       fi
6065     fi
6066   fi
6067 
6068 
6069 
6070   if test "x$DATE" = x; then
6071     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6072   fi
6073 
6074 
6075 
6076 
6077 
6078   # Publish this variable in the help.
6079 
6080 
6081   if test "x$DIFF" = x; then
6082     # The variable is not set by user, try to locate tool using the code snippet
6083     for ac_prog in gdiff diff
6084 do
6085   # Extract the first word of "$ac_prog", so it can be a program name with args.
6086 set dummy $ac_prog; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_path_DIFF+:} false; then :
6090   $as_echo_n "(cached) " >&6
6091 else
6092   case $DIFF in
6093   [\\/]* | ?:[\\/]*)
6094   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6095   ;;
6096   *)
6097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_exec_ext in '' $ac_executable_extensions; do
6103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111 
6112   ;;
6113 esac
6114 fi
6115 DIFF=$ac_cv_path_DIFF
6116 if test -n "$DIFF"; then
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6118 $as_echo "$DIFF" >&6; }
6119 else
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123 
6124 
6125   test -n "$DIFF" && break
6126 done
6127 
6128   else
6129     # The variable is set, but is it from the command line or the environment?
6130 
6131     # Try to remove the string !DIFF! from our list.
6132     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6133     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6134       # If it failed, the variable was not from the command line. Ignore it,
6135       # but warn the user (except for BASH, which is always set by the calling BASH).
6136       if test "xDIFF" != xBASH; then
6137         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6138 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6139       fi
6140       # Try to locate tool using the code snippet
6141       for ac_prog in gdiff diff
6142 do
6143   # Extract the first word of "$ac_prog", so it can be a program name with args.
6144 set dummy $ac_prog; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_path_DIFF+:} false; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   case $DIFF in
6151   [\\/]* | ?:[\\/]*)
6152   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6153   ;;
6154   *)
6155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160     for ac_exec_ext in '' $ac_executable_extensions; do
6161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167   done
6168 IFS=$as_save_IFS
6169 
6170   ;;
6171 esac
6172 fi
6173 DIFF=$ac_cv_path_DIFF
6174 if test -n "$DIFF"; then
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6176 $as_echo "$DIFF" >&6; }
6177 else
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181 
6182 
6183   test -n "$DIFF" && break
6184 done
6185 
6186     else
6187       # If it succeeded, then it was overridden by the user. We will use it
6188       # for the tool.
6189 
6190       # First remove it from the list of overridden variables, so we can test
6191       # for unknown variables in the end.
6192       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6193 
6194       # Check if the provided tool contains a complete path.
6195       tool_specified="$DIFF"
6196       tool_basename="${tool_specified##*/}"
6197       if test "x$tool_basename" = "x$tool_specified"; then
6198         # A command without a complete path is provided, search $PATH.
6199         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6200 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6201         # Extract the first word of "$tool_basename", so it can be a program name with args.
6202 set dummy $tool_basename; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_path_DIFF+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   case $DIFF in
6209   [\\/]* | ?:[\\/]*)
6210   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6211   ;;
6212   *)
6213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218     for ac_exec_ext in '' $ac_executable_extensions; do
6219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225   done
6226 IFS=$as_save_IFS
6227 
6228   ;;
6229 esac
6230 fi
6231 DIFF=$ac_cv_path_DIFF
6232 if test -n "$DIFF"; then
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6234 $as_echo "$DIFF" >&6; }
6235 else
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239 
6240 
6241         if test "x$DIFF" = x; then
6242           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6243         fi
6244       else
6245         # Otherwise we believe it is a complete path. Use it as it is.
6246         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6247 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6249 $as_echo_n "checking for DIFF... " >&6; }
6250         if test ! -x "$tool_specified"; then
6251           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6252 $as_echo "not found" >&6; }
6253           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6254         fi
6255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6256 $as_echo "$tool_specified" >&6; }
6257       fi
6258     fi
6259   fi
6260 
6261 
6262 
6263   if test "x$DIFF" = x; then
6264     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6265   fi
6266 
6267 
6268 
6269 
6270 
6271   # Publish this variable in the help.
6272 
6273 
6274   if test "x$DIRNAME" = x; then
6275     # The variable is not set by user, try to locate tool using the code snippet
6276     for ac_prog in dirname
6277 do
6278   # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_path_DIRNAME+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   case $DIRNAME in
6286   [\\/]* | ?:[\\/]*)
6287   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6288   ;;
6289   *)
6290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302   done
6303 IFS=$as_save_IFS
6304 
6305   ;;
6306 esac
6307 fi
6308 DIRNAME=$ac_cv_path_DIRNAME
6309 if test -n "$DIRNAME"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6311 $as_echo "$DIRNAME" >&6; }
6312 else
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316 
6317 
6318   test -n "$DIRNAME" && break
6319 done
6320 
6321   else
6322     # The variable is set, but is it from the command line or the environment?
6323 
6324     # Try to remove the string !DIRNAME! from our list.
6325     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6326     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6327       # If it failed, the variable was not from the command line. Ignore it,
6328       # but warn the user (except for BASH, which is always set by the calling BASH).
6329       if test "xDIRNAME" != xBASH; then
6330         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6331 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6332       fi
6333       # Try to locate tool using the code snippet
6334       for ac_prog in dirname
6335 do
6336   # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_path_DIRNAME+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   case $DIRNAME in
6344   [\\/]* | ?:[\\/]*)
6345   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6346   ;;
6347   *)
6348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353     for ac_exec_ext in '' $ac_executable_extensions; do
6354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360   done
6361 IFS=$as_save_IFS
6362 
6363   ;;
6364 esac
6365 fi
6366 DIRNAME=$ac_cv_path_DIRNAME
6367 if test -n "$DIRNAME"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6369 $as_echo "$DIRNAME" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374 
6375 
6376   test -n "$DIRNAME" && break
6377 done
6378 
6379     else
6380       # If it succeeded, then it was overridden by the user. We will use it
6381       # for the tool.
6382 
6383       # First remove it from the list of overridden variables, so we can test
6384       # for unknown variables in the end.
6385       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6386 
6387       # Check if the provided tool contains a complete path.
6388       tool_specified="$DIRNAME"
6389       tool_basename="${tool_specified##*/}"
6390       if test "x$tool_basename" = "x$tool_specified"; then
6391         # A command without a complete path is provided, search $PATH.
6392         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6393 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6394         # Extract the first word of "$tool_basename", so it can be a program name with args.
6395 set dummy $tool_basename; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_path_DIRNAME+:} false; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   case $DIRNAME in
6402   [\\/]* | ?:[\\/]*)
6403   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6404   ;;
6405   *)
6406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411     for ac_exec_ext in '' $ac_executable_extensions; do
6412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418   done
6419 IFS=$as_save_IFS
6420 
6421   ;;
6422 esac
6423 fi
6424 DIRNAME=$ac_cv_path_DIRNAME
6425 if test -n "$DIRNAME"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6427 $as_echo "$DIRNAME" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432 
6433 
6434         if test "x$DIRNAME" = x; then
6435           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6436         fi
6437       else
6438         # Otherwise we believe it is a complete path. Use it as it is.
6439         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6440 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6442 $as_echo_n "checking for DIRNAME... " >&6; }
6443         if test ! -x "$tool_specified"; then
6444           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6445 $as_echo "not found" >&6; }
6446           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6447         fi
6448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6449 $as_echo "$tool_specified" >&6; }
6450       fi
6451     fi
6452   fi
6453 
6454 
6455 
6456   if test "x$DIRNAME" = x; then
6457     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6458   fi
6459 
6460 
6461 
6462 
6463 
6464   # Publish this variable in the help.
6465 
6466 
6467   if test "x$ECHO" = x; then
6468     # The variable is not set by user, try to locate tool using the code snippet
6469     for ac_prog in echo
6470 do
6471   # Extract the first word of "$ac_prog", so it can be a program name with args.
6472 set dummy $ac_prog; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_path_ECHO+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   case $ECHO in
6479   [\\/]* | ?:[\\/]*)
6480   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6481   ;;
6482   *)
6483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488     for ac_exec_ext in '' $ac_executable_extensions; do
6489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495   done
6496 IFS=$as_save_IFS
6497 
6498   ;;
6499 esac
6500 fi
6501 ECHO=$ac_cv_path_ECHO
6502 if test -n "$ECHO"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6504 $as_echo "$ECHO" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509 
6510 
6511   test -n "$ECHO" && break
6512 done
6513 
6514   else
6515     # The variable is set, but is it from the command line or the environment?
6516 
6517     # Try to remove the string !ECHO! from our list.
6518     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6519     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6520       # If it failed, the variable was not from the command line. Ignore it,
6521       # but warn the user (except for BASH, which is always set by the calling BASH).
6522       if test "xECHO" != xBASH; then
6523         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6524 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6525       fi
6526       # Try to locate tool using the code snippet
6527       for ac_prog in echo
6528 do
6529   # Extract the first word of "$ac_prog", so it can be a program name with args.
6530 set dummy $ac_prog; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_path_ECHO+:} false; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536   case $ECHO in
6537   [\\/]* | ?:[\\/]*)
6538   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6539   ;;
6540   *)
6541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546     for ac_exec_ext in '' $ac_executable_extensions; do
6547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553   done
6554 IFS=$as_save_IFS
6555 
6556   ;;
6557 esac
6558 fi
6559 ECHO=$ac_cv_path_ECHO
6560 if test -n "$ECHO"; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6562 $as_echo "$ECHO" >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567 
6568 
6569   test -n "$ECHO" && break
6570 done
6571 
6572     else
6573       # If it succeeded, then it was overridden by the user. We will use it
6574       # for the tool.
6575 
6576       # First remove it from the list of overridden variables, so we can test
6577       # for unknown variables in the end.
6578       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6579 
6580       # Check if the provided tool contains a complete path.
6581       tool_specified="$ECHO"
6582       tool_basename="${tool_specified##*/}"
6583       if test "x$tool_basename" = "x$tool_specified"; then
6584         # A command without a complete path is provided, search $PATH.
6585         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6586 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6587         # Extract the first word of "$tool_basename", so it can be a program name with args.
6588 set dummy $tool_basename; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_path_ECHO+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   case $ECHO in
6595   [\\/]* | ?:[\\/]*)
6596   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6597   ;;
6598   *)
6599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604     for ac_exec_ext in '' $ac_executable_extensions; do
6605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611   done
6612 IFS=$as_save_IFS
6613 
6614   ;;
6615 esac
6616 fi
6617 ECHO=$ac_cv_path_ECHO
6618 if test -n "$ECHO"; then
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6620 $as_echo "$ECHO" >&6; }
6621 else
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625 
6626 
6627         if test "x$ECHO" = x; then
6628           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6629         fi
6630       else
6631         # Otherwise we believe it is a complete path. Use it as it is.
6632         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6633 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6634         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6635 $as_echo_n "checking for ECHO... " >&6; }
6636         if test ! -x "$tool_specified"; then
6637           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6638 $as_echo "not found" >&6; }
6639           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6640         fi
6641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6642 $as_echo "$tool_specified" >&6; }
6643       fi
6644     fi
6645   fi
6646 
6647 
6648 
6649   if test "x$ECHO" = x; then
6650     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6651   fi
6652 
6653 
6654 
6655 
6656 
6657   # Publish this variable in the help.
6658 
6659 
6660   if test "x$EXPR" = x; then
6661     # The variable is not set by user, try to locate tool using the code snippet
6662     for ac_prog in expr
6663 do
6664   # Extract the first word of "$ac_prog", so it can be a program name with args.
6665 set dummy $ac_prog; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_path_EXPR+:} false; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   case $EXPR in
6672   [\\/]* | ?:[\\/]*)
6673   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6674   ;;
6675   *)
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681     for ac_exec_ext in '' $ac_executable_extensions; do
6682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688   done
6689 IFS=$as_save_IFS
6690 
6691   ;;
6692 esac
6693 fi
6694 EXPR=$ac_cv_path_EXPR
6695 if test -n "$EXPR"; then
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6697 $as_echo "$EXPR" >&6; }
6698 else
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702 
6703 
6704   test -n "$EXPR" && break
6705 done
6706 
6707   else
6708     # The variable is set, but is it from the command line or the environment?
6709 
6710     # Try to remove the string !EXPR! from our list.
6711     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6712     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6713       # If it failed, the variable was not from the command line. Ignore it,
6714       # but warn the user (except for BASH, which is always set by the calling BASH).
6715       if test "xEXPR" != xBASH; then
6716         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6717 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6718       fi
6719       # Try to locate tool using the code snippet
6720       for ac_prog in expr
6721 do
6722   # Extract the first word of "$ac_prog", so it can be a program name with args.
6723 set dummy $ac_prog; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_path_EXPR+:} false; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   case $EXPR in
6730   [\\/]* | ?:[\\/]*)
6731   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6732   ;;
6733   *)
6734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737   IFS=$as_save_IFS
6738   test -z "$as_dir" && as_dir=.
6739     for ac_exec_ext in '' $ac_executable_extensions; do
6740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743     break 2
6744   fi
6745 done
6746   done
6747 IFS=$as_save_IFS
6748 
6749   ;;
6750 esac
6751 fi
6752 EXPR=$ac_cv_path_EXPR
6753 if test -n "$EXPR"; then
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6755 $as_echo "$EXPR" >&6; }
6756 else
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760 
6761 
6762   test -n "$EXPR" && break
6763 done
6764 
6765     else
6766       # If it succeeded, then it was overridden by the user. We will use it
6767       # for the tool.
6768 
6769       # First remove it from the list of overridden variables, so we can test
6770       # for unknown variables in the end.
6771       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6772 
6773       # Check if the provided tool contains a complete path.
6774       tool_specified="$EXPR"
6775       tool_basename="${tool_specified##*/}"
6776       if test "x$tool_basename" = "x$tool_specified"; then
6777         # A command without a complete path is provided, search $PATH.
6778         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6779 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6780         # Extract the first word of "$tool_basename", so it can be a program name with args.
6781 set dummy $tool_basename; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_path_EXPR+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   case $EXPR in
6788   [\\/]* | ?:[\\/]*)
6789   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6790   ;;
6791   *)
6792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797     for ac_exec_ext in '' $ac_executable_extensions; do
6798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804   done
6805 IFS=$as_save_IFS
6806 
6807   ;;
6808 esac
6809 fi
6810 EXPR=$ac_cv_path_EXPR
6811 if test -n "$EXPR"; then
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6813 $as_echo "$EXPR" >&6; }
6814 else
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818 
6819 
6820         if test "x$EXPR" = x; then
6821           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6822         fi
6823       else
6824         # Otherwise we believe it is a complete path. Use it as it is.
6825         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6826 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6827         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6828 $as_echo_n "checking for EXPR... " >&6; }
6829         if test ! -x "$tool_specified"; then
6830           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6831 $as_echo "not found" >&6; }
6832           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6833         fi
6834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6835 $as_echo "$tool_specified" >&6; }
6836       fi
6837     fi
6838   fi
6839 
6840 
6841 
6842   if test "x$EXPR" = x; then
6843     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6844   fi
6845 
6846 
6847 
6848 
6849 
6850   # Publish this variable in the help.
6851 
6852 
6853   if test "x$FILE" = x; then
6854     # The variable is not set by user, try to locate tool using the code snippet
6855     for ac_prog in file
6856 do
6857   # Extract the first word of "$ac_prog", so it can be a program name with args.
6858 set dummy $ac_prog; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_path_FILE+:} false; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864   case $FILE in
6865   [\\/]* | ?:[\\/]*)
6866   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6867   ;;
6868   *)
6869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874     for ac_exec_ext in '' $ac_executable_extensions; do
6875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881   done
6882 IFS=$as_save_IFS
6883 
6884   ;;
6885 esac
6886 fi
6887 FILE=$ac_cv_path_FILE
6888 if test -n "$FILE"; then
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6890 $as_echo "$FILE" >&6; }
6891 else
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895 
6896 
6897   test -n "$FILE" && break
6898 done
6899 
6900   else
6901     # The variable is set, but is it from the command line or the environment?
6902 
6903     # Try to remove the string !FILE! from our list.
6904     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6905     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6906       # If it failed, the variable was not from the command line. Ignore it,
6907       # but warn the user (except for BASH, which is always set by the calling BASH).
6908       if test "xFILE" != xBASH; then
6909         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6910 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6911       fi
6912       # Try to locate tool using the code snippet
6913       for ac_prog in file
6914 do
6915   # Extract the first word of "$ac_prog", so it can be a program name with args.
6916 set dummy $ac_prog; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_path_FILE+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   case $FILE in
6923   [\\/]* | ?:[\\/]*)
6924   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6925   ;;
6926   *)
6927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932     for ac_exec_ext in '' $ac_executable_extensions; do
6933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936     break 2
6937   fi
6938 done
6939   done
6940 IFS=$as_save_IFS
6941 
6942   ;;
6943 esac
6944 fi
6945 FILE=$ac_cv_path_FILE
6946 if test -n "$FILE"; then
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6948 $as_echo "$FILE" >&6; }
6949 else
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953 
6954 
6955   test -n "$FILE" && break
6956 done
6957 
6958     else
6959       # If it succeeded, then it was overridden by the user. We will use it
6960       # for the tool.
6961 
6962       # First remove it from the list of overridden variables, so we can test
6963       # for unknown variables in the end.
6964       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6965 
6966       # Check if the provided tool contains a complete path.
6967       tool_specified="$FILE"
6968       tool_basename="${tool_specified##*/}"
6969       if test "x$tool_basename" = "x$tool_specified"; then
6970         # A command without a complete path is provided, search $PATH.
6971         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
6972 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
6973         # Extract the first word of "$tool_basename", so it can be a program name with args.
6974 set dummy $tool_basename; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_path_FILE+:} false; then :
6978   $as_echo_n "(cached) " >&6
6979 else
6980   case $FILE in
6981   [\\/]* | ?:[\\/]*)
6982   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6983   ;;
6984   *)
6985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988   IFS=$as_save_IFS
6989   test -z "$as_dir" && as_dir=.
6990     for ac_exec_ext in '' $ac_executable_extensions; do
6991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994     break 2
6995   fi
6996 done
6997   done
6998 IFS=$as_save_IFS
6999 
7000   ;;
7001 esac
7002 fi
7003 FILE=$ac_cv_path_FILE
7004 if test -n "$FILE"; then
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7006 $as_echo "$FILE" >&6; }
7007 else
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011 
7012 
7013         if test "x$FILE" = x; then
7014           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7015         fi
7016       else
7017         # Otherwise we believe it is a complete path. Use it as it is.
7018         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7019 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7021 $as_echo_n "checking for FILE... " >&6; }
7022         if test ! -x "$tool_specified"; then
7023           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7024 $as_echo "not found" >&6; }
7025           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7026         fi
7027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7028 $as_echo "$tool_specified" >&6; }
7029       fi
7030     fi
7031   fi
7032 
7033 
7034 
7035   if test "x$FILE" = x; then
7036     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7037   fi
7038 
7039 
7040 
7041 
7042 
7043   # Publish this variable in the help.
7044 
7045 
7046   if test "x$FIND" = x; then
7047     # The variable is not set by user, try to locate tool using the code snippet
7048     for ac_prog in find
7049 do
7050   # Extract the first word of "$ac_prog", so it can be a program name with args.
7051 set dummy $ac_prog; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_path_FIND+:} false; then :
7055   $as_echo_n "(cached) " >&6
7056 else
7057   case $FIND in
7058   [\\/]* | ?:[\\/]*)
7059   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7060   ;;
7061   *)
7062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067     for ac_exec_ext in '' $ac_executable_extensions; do
7068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074   done
7075 IFS=$as_save_IFS
7076 
7077   ;;
7078 esac
7079 fi
7080 FIND=$ac_cv_path_FIND
7081 if test -n "$FIND"; then
7082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7083 $as_echo "$FIND" >&6; }
7084 else
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7087 fi
7088 
7089 
7090   test -n "$FIND" && break
7091 done
7092 
7093   else
7094     # The variable is set, but is it from the command line or the environment?
7095 
7096     # Try to remove the string !FIND! from our list.
7097     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7098     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7099       # If it failed, the variable was not from the command line. Ignore it,
7100       # but warn the user (except for BASH, which is always set by the calling BASH).
7101       if test "xFIND" != xBASH; then
7102         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7103 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7104       fi
7105       # Try to locate tool using the code snippet
7106       for ac_prog in find
7107 do
7108   # Extract the first word of "$ac_prog", so it can be a program name with args.
7109 set dummy $ac_prog; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_path_FIND+:} false; then :
7113   $as_echo_n "(cached) " >&6
7114 else
7115   case $FIND in
7116   [\\/]* | ?:[\\/]*)
7117   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7118   ;;
7119   *)
7120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125     for ac_exec_ext in '' $ac_executable_extensions; do
7126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132   done
7133 IFS=$as_save_IFS
7134 
7135   ;;
7136 esac
7137 fi
7138 FIND=$ac_cv_path_FIND
7139 if test -n "$FIND"; then
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7141 $as_echo "$FIND" >&6; }
7142 else
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146 
7147 
7148   test -n "$FIND" && break
7149 done
7150 
7151     else
7152       # If it succeeded, then it was overridden by the user. We will use it
7153       # for the tool.
7154 
7155       # First remove it from the list of overridden variables, so we can test
7156       # for unknown variables in the end.
7157       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7158 
7159       # Check if the provided tool contains a complete path.
7160       tool_specified="$FIND"
7161       tool_basename="${tool_specified##*/}"
7162       if test "x$tool_basename" = "x$tool_specified"; then
7163         # A command without a complete path is provided, search $PATH.
7164         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7165 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7166         # Extract the first word of "$tool_basename", so it can be a program name with args.
7167 set dummy $tool_basename; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_path_FIND+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   case $FIND in
7174   [\\/]* | ?:[\\/]*)
7175   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7176   ;;
7177   *)
7178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181   IFS=$as_save_IFS
7182   test -z "$as_dir" && as_dir=.
7183     for ac_exec_ext in '' $ac_executable_extensions; do
7184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187     break 2
7188   fi
7189 done
7190   done
7191 IFS=$as_save_IFS
7192 
7193   ;;
7194 esac
7195 fi
7196 FIND=$ac_cv_path_FIND
7197 if test -n "$FIND"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7199 $as_echo "$FIND" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204 
7205 
7206         if test "x$FIND" = x; then
7207           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7208         fi
7209       else
7210         # Otherwise we believe it is a complete path. Use it as it is.
7211         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7212 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7213         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7214 $as_echo_n "checking for FIND... " >&6; }
7215         if test ! -x "$tool_specified"; then
7216           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7217 $as_echo "not found" >&6; }
7218           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7219         fi
7220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7221 $as_echo "$tool_specified" >&6; }
7222       fi
7223     fi
7224   fi
7225 
7226 
7227 
7228   if test "x$FIND" = x; then
7229     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7230   fi
7231 
7232 
7233 
7234 
7235 
7236   # Publish this variable in the help.
7237 
7238 
7239   if test "x$HEAD" = x; then
7240     # The variable is not set by user, try to locate tool using the code snippet
7241     for ac_prog in head
7242 do
7243   # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy $ac_prog; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_path_HEAD+:} false; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   case $HEAD in
7251   [\\/]* | ?:[\\/]*)
7252   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7253   ;;
7254   *)
7255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260     for ac_exec_ext in '' $ac_executable_extensions; do
7261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267   done
7268 IFS=$as_save_IFS
7269 
7270   ;;
7271 esac
7272 fi
7273 HEAD=$ac_cv_path_HEAD
7274 if test -n "$HEAD"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7276 $as_echo "$HEAD" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281 
7282 
7283   test -n "$HEAD" && break
7284 done
7285 
7286   else
7287     # The variable is set, but is it from the command line or the environment?
7288 
7289     # Try to remove the string !HEAD! from our list.
7290     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7291     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7292       # If it failed, the variable was not from the command line. Ignore it,
7293       # but warn the user (except for BASH, which is always set by the calling BASH).
7294       if test "xHEAD" != xBASH; then
7295         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7296 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7297       fi
7298       # Try to locate tool using the code snippet
7299       for ac_prog in head
7300 do
7301   # Extract the first word of "$ac_prog", so it can be a program name with args.
7302 set dummy $ac_prog; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_path_HEAD+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   case $HEAD in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318     for ac_exec_ext in '' $ac_executable_extensions; do
7319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325   done
7326 IFS=$as_save_IFS
7327 
7328   ;;
7329 esac
7330 fi
7331 HEAD=$ac_cv_path_HEAD
7332 if test -n "$HEAD"; then
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7334 $as_echo "$HEAD" >&6; }
7335 else
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339 
7340 
7341   test -n "$HEAD" && break
7342 done
7343 
7344     else
7345       # If it succeeded, then it was overridden by the user. We will use it
7346       # for the tool.
7347 
7348       # First remove it from the list of overridden variables, so we can test
7349       # for unknown variables in the end.
7350       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7351 
7352       # Check if the provided tool contains a complete path.
7353       tool_specified="$HEAD"
7354       tool_basename="${tool_specified##*/}"
7355       if test "x$tool_basename" = "x$tool_specified"; then
7356         # A command without a complete path is provided, search $PATH.
7357         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7358 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7359         # Extract the first word of "$tool_basename", so it can be a program name with args.
7360 set dummy $tool_basename; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_path_HEAD+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   case $HEAD in
7367   [\\/]* | ?:[\\/]*)
7368   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7369   ;;
7370   *)
7371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385 
7386   ;;
7387 esac
7388 fi
7389 HEAD=$ac_cv_path_HEAD
7390 if test -n "$HEAD"; then
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7392 $as_echo "$HEAD" >&6; }
7393 else
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397 
7398 
7399         if test "x$HEAD" = x; then
7400           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7401         fi
7402       else
7403         # Otherwise we believe it is a complete path. Use it as it is.
7404         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7405 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7406         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7407 $as_echo_n "checking for HEAD... " >&6; }
7408         if test ! -x "$tool_specified"; then
7409           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7410 $as_echo "not found" >&6; }
7411           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7412         fi
7413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7414 $as_echo "$tool_specified" >&6; }
7415       fi
7416     fi
7417   fi
7418 
7419 
7420 
7421   if test "x$HEAD" = x; then
7422     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7423   fi
7424 
7425 
7426 
7427 
7428 
7429   # Publish this variable in the help.
7430 
7431 
7432   if test "x$LN" = x; then
7433     # The variable is not set by user, try to locate tool using the code snippet
7434     for ac_prog in ln
7435 do
7436   # Extract the first word of "$ac_prog", so it can be a program name with args.
7437 set dummy $ac_prog; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_path_LN+:} false; then :
7441   $as_echo_n "(cached) " >&6
7442 else
7443   case $LN in
7444   [\\/]* | ?:[\\/]*)
7445   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7446   ;;
7447   *)
7448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451   IFS=$as_save_IFS
7452   test -z "$as_dir" && as_dir=.
7453     for ac_exec_ext in '' $ac_executable_extensions; do
7454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457     break 2
7458   fi
7459 done
7460   done
7461 IFS=$as_save_IFS
7462 
7463   ;;
7464 esac
7465 fi
7466 LN=$ac_cv_path_LN
7467 if test -n "$LN"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7469 $as_echo "$LN" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474 
7475 
7476   test -n "$LN" && break
7477 done
7478 
7479   else
7480     # The variable is set, but is it from the command line or the environment?
7481 
7482     # Try to remove the string !LN! from our list.
7483     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7484     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7485       # If it failed, the variable was not from the command line. Ignore it,
7486       # but warn the user (except for BASH, which is always set by the calling BASH).
7487       if test "xLN" != xBASH; then
7488         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7489 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7490       fi
7491       # Try to locate tool using the code snippet
7492       for ac_prog in ln
7493 do
7494   # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy $ac_prog; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_path_LN+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   case $LN in
7502   [\\/]* | ?:[\\/]*)
7503   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7504   ;;
7505   *)
7506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511     for ac_exec_ext in '' $ac_executable_extensions; do
7512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518   done
7519 IFS=$as_save_IFS
7520 
7521   ;;
7522 esac
7523 fi
7524 LN=$ac_cv_path_LN
7525 if test -n "$LN"; then
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7527 $as_echo "$LN" >&6; }
7528 else
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7531 fi
7532 
7533 
7534   test -n "$LN" && break
7535 done
7536 
7537     else
7538       # If it succeeded, then it was overridden by the user. We will use it
7539       # for the tool.
7540 
7541       # First remove it from the list of overridden variables, so we can test
7542       # for unknown variables in the end.
7543       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7544 
7545       # Check if the provided tool contains a complete path.
7546       tool_specified="$LN"
7547       tool_basename="${tool_specified##*/}"
7548       if test "x$tool_basename" = "x$tool_specified"; then
7549         # A command without a complete path is provided, search $PATH.
7550         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7551 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7552         # Extract the first word of "$tool_basename", so it can be a program name with args.
7553 set dummy $tool_basename; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_path_LN+:} false; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   case $LN in
7560   [\\/]* | ?:[\\/]*)
7561   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7562   ;;
7563   *)
7564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569     for ac_exec_ext in '' $ac_executable_extensions; do
7570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576   done
7577 IFS=$as_save_IFS
7578 
7579   ;;
7580 esac
7581 fi
7582 LN=$ac_cv_path_LN
7583 if test -n "$LN"; then
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7585 $as_echo "$LN" >&6; }
7586 else
7587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7589 fi
7590 
7591 
7592         if test "x$LN" = x; then
7593           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7594         fi
7595       else
7596         # Otherwise we believe it is a complete path. Use it as it is.
7597         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7598 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7600 $as_echo_n "checking for LN... " >&6; }
7601         if test ! -x "$tool_specified"; then
7602           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7603 $as_echo "not found" >&6; }
7604           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7605         fi
7606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7607 $as_echo "$tool_specified" >&6; }
7608       fi
7609     fi
7610   fi
7611 
7612 
7613 
7614   if test "x$LN" = x; then
7615     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7616   fi
7617 
7618 
7619 
7620 
7621 
7622   # Publish this variable in the help.
7623 
7624 
7625   if test "x$LS" = x; then
7626     # The variable is not set by user, try to locate tool using the code snippet
7627     for ac_prog in ls
7628 do
7629   # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy $ac_prog; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_path_LS+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   case $LS in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646     for ac_exec_ext in '' $ac_executable_extensions; do
7647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653   done
7654 IFS=$as_save_IFS
7655 
7656   ;;
7657 esac
7658 fi
7659 LS=$ac_cv_path_LS
7660 if test -n "$LS"; then
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7662 $as_echo "$LS" >&6; }
7663 else
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667 
7668 
7669   test -n "$LS" && break
7670 done
7671 
7672   else
7673     # The variable is set, but is it from the command line or the environment?
7674 
7675     # Try to remove the string !LS! from our list.
7676     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7677     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7678       # If it failed, the variable was not from the command line. Ignore it,
7679       # but warn the user (except for BASH, which is always set by the calling BASH).
7680       if test "xLS" != xBASH; then
7681         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7682 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7683       fi
7684       # Try to locate tool using the code snippet
7685       for ac_prog in ls
7686 do
7687   # Extract the first word of "$ac_prog", so it can be a program name with args.
7688 set dummy $ac_prog; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if ${ac_cv_path_LS+:} false; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   case $LS in
7695   [\\/]* | ?:[\\/]*)
7696   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7697   ;;
7698   *)
7699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704     for ac_exec_ext in '' $ac_executable_extensions; do
7705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711   done
7712 IFS=$as_save_IFS
7713 
7714   ;;
7715 esac
7716 fi
7717 LS=$ac_cv_path_LS
7718 if test -n "$LS"; then
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7720 $as_echo "$LS" >&6; }
7721 else
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725 
7726 
7727   test -n "$LS" && break
7728 done
7729 
7730     else
7731       # If it succeeded, then it was overridden by the user. We will use it
7732       # for the tool.
7733 
7734       # First remove it from the list of overridden variables, so we can test
7735       # for unknown variables in the end.
7736       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7737 
7738       # Check if the provided tool contains a complete path.
7739       tool_specified="$LS"
7740       tool_basename="${tool_specified##*/}"
7741       if test "x$tool_basename" = "x$tool_specified"; then
7742         # A command without a complete path is provided, search $PATH.
7743         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7744 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7745         # Extract the first word of "$tool_basename", so it can be a program name with args.
7746 set dummy $tool_basename; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_path_LS+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   case $LS in
7753   [\\/]* | ?:[\\/]*)
7754   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7755   ;;
7756   *)
7757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760   IFS=$as_save_IFS
7761   test -z "$as_dir" && as_dir=.
7762     for ac_exec_ext in '' $ac_executable_extensions; do
7763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766     break 2
7767   fi
7768 done
7769   done
7770 IFS=$as_save_IFS
7771 
7772   ;;
7773 esac
7774 fi
7775 LS=$ac_cv_path_LS
7776 if test -n "$LS"; then
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7778 $as_echo "$LS" >&6; }
7779 else
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 fi
7783 
7784 
7785         if test "x$LS" = x; then
7786           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7787         fi
7788       else
7789         # Otherwise we believe it is a complete path. Use it as it is.
7790         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7791 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7793 $as_echo_n "checking for LS... " >&6; }
7794         if test ! -x "$tool_specified"; then
7795           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7796 $as_echo "not found" >&6; }
7797           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7798         fi
7799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7800 $as_echo "$tool_specified" >&6; }
7801       fi
7802     fi
7803   fi
7804 
7805 
7806 
7807   if test "x$LS" = x; then
7808     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7809   fi
7810 
7811 
7812 
7813 
7814 
7815   # Publish this variable in the help.
7816 
7817 
7818   if test "x$MKDIR" = x; then
7819     # The variable is not set by user, try to locate tool using the code snippet
7820     for ac_prog in mkdir
7821 do
7822   # Extract the first word of "$ac_prog", so it can be a program name with args.
7823 set dummy $ac_prog; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_path_MKDIR+:} false; then :
7827   $as_echo_n "(cached) " >&6
7828 else
7829   case $MKDIR in
7830   [\\/]* | ?:[\\/]*)
7831   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7832   ;;
7833   *)
7834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   test -z "$as_dir" && as_dir=.
7839     for ac_exec_ext in '' $ac_executable_extensions; do
7840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843     break 2
7844   fi
7845 done
7846   done
7847 IFS=$as_save_IFS
7848 
7849   ;;
7850 esac
7851 fi
7852 MKDIR=$ac_cv_path_MKDIR
7853 if test -n "$MKDIR"; then
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7855 $as_echo "$MKDIR" >&6; }
7856 else
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 fi
7860 
7861 
7862   test -n "$MKDIR" && break
7863 done
7864 
7865   else
7866     # The variable is set, but is it from the command line or the environment?
7867 
7868     # Try to remove the string !MKDIR! from our list.
7869     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7870     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7871       # If it failed, the variable was not from the command line. Ignore it,
7872       # but warn the user (except for BASH, which is always set by the calling BASH).
7873       if test "xMKDIR" != xBASH; then
7874         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7875 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7876       fi
7877       # Try to locate tool using the code snippet
7878       for ac_prog in mkdir
7879 do
7880   # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy $ac_prog; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_path_MKDIR+:} false; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887   case $MKDIR in
7888   [\\/]* | ?:[\\/]*)
7889   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7890   ;;
7891   *)
7892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897     for ac_exec_ext in '' $ac_executable_extensions; do
7898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904   done
7905 IFS=$as_save_IFS
7906 
7907   ;;
7908 esac
7909 fi
7910 MKDIR=$ac_cv_path_MKDIR
7911 if test -n "$MKDIR"; then
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7913 $as_echo "$MKDIR" >&6; }
7914 else
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7917 fi
7918 
7919 
7920   test -n "$MKDIR" && break
7921 done
7922 
7923     else
7924       # If it succeeded, then it was overridden by the user. We will use it
7925       # for the tool.
7926 
7927       # First remove it from the list of overridden variables, so we can test
7928       # for unknown variables in the end.
7929       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7930 
7931       # Check if the provided tool contains a complete path.
7932       tool_specified="$MKDIR"
7933       tool_basename="${tool_specified##*/}"
7934       if test "x$tool_basename" = "x$tool_specified"; then
7935         # A command without a complete path is provided, search $PATH.
7936         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
7937 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
7938         # Extract the first word of "$tool_basename", so it can be a program name with args.
7939 set dummy $tool_basename; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_path_MKDIR+:} false; then :
7943   $as_echo_n "(cached) " >&6
7944 else
7945   case $MKDIR in
7946   [\\/]* | ?:[\\/]*)
7947   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7948   ;;
7949   *)
7950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953   IFS=$as_save_IFS
7954   test -z "$as_dir" && as_dir=.
7955     for ac_exec_ext in '' $ac_executable_extensions; do
7956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959     break 2
7960   fi
7961 done
7962   done
7963 IFS=$as_save_IFS
7964 
7965   ;;
7966 esac
7967 fi
7968 MKDIR=$ac_cv_path_MKDIR
7969 if test -n "$MKDIR"; then
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7971 $as_echo "$MKDIR" >&6; }
7972 else
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976 
7977 
7978         if test "x$MKDIR" = x; then
7979           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7980         fi
7981       else
7982         # Otherwise we believe it is a complete path. Use it as it is.
7983         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
7984 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
7985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
7986 $as_echo_n "checking for MKDIR... " >&6; }
7987         if test ! -x "$tool_specified"; then
7988           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7989 $as_echo "not found" >&6; }
7990           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
7991         fi
7992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7993 $as_echo "$tool_specified" >&6; }
7994       fi
7995     fi
7996   fi
7997 
7998 
7999 
8000   if test "x$MKDIR" = x; then
8001     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8002   fi
8003 
8004 
8005 
8006 
8007 
8008   # Publish this variable in the help.
8009 
8010 
8011   if test "x$MKTEMP" = x; then
8012     # The variable is not set by user, try to locate tool using the code snippet
8013     for ac_prog in mktemp
8014 do
8015   # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_path_MKTEMP+:} false; then :
8020   $as_echo_n "(cached) " >&6
8021 else
8022   case $MKTEMP in
8023   [\\/]* | ?:[\\/]*)
8024   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8025   ;;
8026   *)
8027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030   IFS=$as_save_IFS
8031   test -z "$as_dir" && as_dir=.
8032     for ac_exec_ext in '' $ac_executable_extensions; do
8033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8034     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036     break 2
8037   fi
8038 done
8039   done
8040 IFS=$as_save_IFS
8041 
8042   ;;
8043 esac
8044 fi
8045 MKTEMP=$ac_cv_path_MKTEMP
8046 if test -n "$MKTEMP"; then
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8048 $as_echo "$MKTEMP" >&6; }
8049 else
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053 
8054 
8055   test -n "$MKTEMP" && break
8056 done
8057 
8058   else
8059     # The variable is set, but is it from the command line or the environment?
8060 
8061     # Try to remove the string !MKTEMP! from our list.
8062     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8063     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8064       # If it failed, the variable was not from the command line. Ignore it,
8065       # but warn the user (except for BASH, which is always set by the calling BASH).
8066       if test "xMKTEMP" != xBASH; then
8067         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8068 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8069       fi
8070       # Try to locate tool using the code snippet
8071       for ac_prog in mktemp
8072 do
8073   # Extract the first word of "$ac_prog", so it can be a program name with args.
8074 set dummy $ac_prog; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_path_MKTEMP+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   case $MKTEMP in
8081   [\\/]* | ?:[\\/]*)
8082   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8083   ;;
8084   *)
8085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088   IFS=$as_save_IFS
8089   test -z "$as_dir" && as_dir=.
8090     for ac_exec_ext in '' $ac_executable_extensions; do
8091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094     break 2
8095   fi
8096 done
8097   done
8098 IFS=$as_save_IFS
8099 
8100   ;;
8101 esac
8102 fi
8103 MKTEMP=$ac_cv_path_MKTEMP
8104 if test -n "$MKTEMP"; then
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8106 $as_echo "$MKTEMP" >&6; }
8107 else
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 fi
8111 
8112 
8113   test -n "$MKTEMP" && break
8114 done
8115 
8116     else
8117       # If it succeeded, then it was overridden by the user. We will use it
8118       # for the tool.
8119 
8120       # First remove it from the list of overridden variables, so we can test
8121       # for unknown variables in the end.
8122       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8123 
8124       # Check if the provided tool contains a complete path.
8125       tool_specified="$MKTEMP"
8126       tool_basename="${tool_specified##*/}"
8127       if test "x$tool_basename" = "x$tool_specified"; then
8128         # A command without a complete path is provided, search $PATH.
8129         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8130 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8131         # Extract the first word of "$tool_basename", so it can be a program name with args.
8132 set dummy $tool_basename; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_path_MKTEMP+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   case $MKTEMP in
8139   [\\/]* | ?:[\\/]*)
8140   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8141   ;;
8142   *)
8143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146   IFS=$as_save_IFS
8147   test -z "$as_dir" && as_dir=.
8148     for ac_exec_ext in '' $ac_executable_extensions; do
8149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152     break 2
8153   fi
8154 done
8155   done
8156 IFS=$as_save_IFS
8157 
8158   ;;
8159 esac
8160 fi
8161 MKTEMP=$ac_cv_path_MKTEMP
8162 if test -n "$MKTEMP"; then
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8164 $as_echo "$MKTEMP" >&6; }
8165 else
8166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8168 fi
8169 
8170 
8171         if test "x$MKTEMP" = x; then
8172           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8173         fi
8174       else
8175         # Otherwise we believe it is a complete path. Use it as it is.
8176         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8177 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8179 $as_echo_n "checking for MKTEMP... " >&6; }
8180         if test ! -x "$tool_specified"; then
8181           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8182 $as_echo "not found" >&6; }
8183           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8184         fi
8185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8186 $as_echo "$tool_specified" >&6; }
8187       fi
8188     fi
8189   fi
8190 
8191 
8192 
8193   if test "x$MKTEMP" = x; then
8194     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8195   fi
8196 
8197 
8198 
8199 
8200 
8201   # Publish this variable in the help.
8202 
8203 
8204   if test "x$MV" = x; then
8205     # The variable is not set by user, try to locate tool using the code snippet
8206     for ac_prog in mv
8207 do
8208   # Extract the first word of "$ac_prog", so it can be a program name with args.
8209 set dummy $ac_prog; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if ${ac_cv_path_MV+:} false; then :
8213   $as_echo_n "(cached) " >&6
8214 else
8215   case $MV in
8216   [\\/]* | ?:[\\/]*)
8217   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8218   ;;
8219   *)
8220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223   IFS=$as_save_IFS
8224   test -z "$as_dir" && as_dir=.
8225     for ac_exec_ext in '' $ac_executable_extensions; do
8226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229     break 2
8230   fi
8231 done
8232   done
8233 IFS=$as_save_IFS
8234 
8235   ;;
8236 esac
8237 fi
8238 MV=$ac_cv_path_MV
8239 if test -n "$MV"; then
8240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8241 $as_echo "$MV" >&6; }
8242 else
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8246 
8247 
8248   test -n "$MV" && break
8249 done
8250 
8251   else
8252     # The variable is set, but is it from the command line or the environment?
8253 
8254     # Try to remove the string !MV! from our list.
8255     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8256     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8257       # If it failed, the variable was not from the command line. Ignore it,
8258       # but warn the user (except for BASH, which is always set by the calling BASH).
8259       if test "xMV" != xBASH; then
8260         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8261 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8262       fi
8263       # Try to locate tool using the code snippet
8264       for ac_prog in mv
8265 do
8266   # Extract the first word of "$ac_prog", so it can be a program name with args.
8267 set dummy $ac_prog; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_path_MV+:} false; then :
8271   $as_echo_n "(cached) " >&6
8272 else
8273   case $MV in
8274   [\\/]* | ?:[\\/]*)
8275   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8276   ;;
8277   *)
8278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281   IFS=$as_save_IFS
8282   test -z "$as_dir" && as_dir=.
8283     for ac_exec_ext in '' $ac_executable_extensions; do
8284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287     break 2
8288   fi
8289 done
8290   done
8291 IFS=$as_save_IFS
8292 
8293   ;;
8294 esac
8295 fi
8296 MV=$ac_cv_path_MV
8297 if test -n "$MV"; then
8298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8299 $as_echo "$MV" >&6; }
8300 else
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304 
8305 
8306   test -n "$MV" && break
8307 done
8308 
8309     else
8310       # If it succeeded, then it was overridden by the user. We will use it
8311       # for the tool.
8312 
8313       # First remove it from the list of overridden variables, so we can test
8314       # for unknown variables in the end.
8315       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8316 
8317       # Check if the provided tool contains a complete path.
8318       tool_specified="$MV"
8319       tool_basename="${tool_specified##*/}"
8320       if test "x$tool_basename" = "x$tool_specified"; then
8321         # A command without a complete path is provided, search $PATH.
8322         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8323 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8324         # Extract the first word of "$tool_basename", so it can be a program name with args.
8325 set dummy $tool_basename; ac_word=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if ${ac_cv_path_MV+:} false; then :
8329   $as_echo_n "(cached) " >&6
8330 else
8331   case $MV in
8332   [\\/]* | ?:[\\/]*)
8333   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8334   ;;
8335   *)
8336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8338 do
8339   IFS=$as_save_IFS
8340   test -z "$as_dir" && as_dir=.
8341     for ac_exec_ext in '' $ac_executable_extensions; do
8342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8343     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345     break 2
8346   fi
8347 done
8348   done
8349 IFS=$as_save_IFS
8350 
8351   ;;
8352 esac
8353 fi
8354 MV=$ac_cv_path_MV
8355 if test -n "$MV"; then
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8357 $as_echo "$MV" >&6; }
8358 else
8359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362 
8363 
8364         if test "x$MV" = x; then
8365           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8366         fi
8367       else
8368         # Otherwise we believe it is a complete path. Use it as it is.
8369         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8370 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8372 $as_echo_n "checking for MV... " >&6; }
8373         if test ! -x "$tool_specified"; then
8374           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8375 $as_echo "not found" >&6; }
8376           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8377         fi
8378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8379 $as_echo "$tool_specified" >&6; }
8380       fi
8381     fi
8382   fi
8383 
8384 
8385 
8386   if test "x$MV" = x; then
8387     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8388   fi
8389 
8390 
8391 
8392 
8393 
8394   # Publish this variable in the help.
8395 
8396 
8397   if test "x$NAWK" = x; then
8398     # The variable is not set by user, try to locate tool using the code snippet
8399     for ac_prog in nawk gawk awk
8400 do
8401   # Extract the first word of "$ac_prog", so it can be a program name with args.
8402 set dummy $ac_prog; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if ${ac_cv_path_NAWK+:} false; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   case $NAWK in
8409   [\\/]* | ?:[\\/]*)
8410   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8411   ;;
8412   *)
8413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8415 do
8416   IFS=$as_save_IFS
8417   test -z "$as_dir" && as_dir=.
8418     for ac_exec_ext in '' $ac_executable_extensions; do
8419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422     break 2
8423   fi
8424 done
8425   done
8426 IFS=$as_save_IFS
8427 
8428   ;;
8429 esac
8430 fi
8431 NAWK=$ac_cv_path_NAWK
8432 if test -n "$NAWK"; then
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8434 $as_echo "$NAWK" >&6; }
8435 else
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 fi
8439 
8440 
8441   test -n "$NAWK" && break
8442 done
8443 
8444   else
8445     # The variable is set, but is it from the command line or the environment?
8446 
8447     # Try to remove the string !NAWK! from our list.
8448     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8449     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8450       # If it failed, the variable was not from the command line. Ignore it,
8451       # but warn the user (except for BASH, which is always set by the calling BASH).
8452       if test "xNAWK" != xBASH; then
8453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8454 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8455       fi
8456       # Try to locate tool using the code snippet
8457       for ac_prog in nawk gawk awk
8458 do
8459   # Extract the first word of "$ac_prog", so it can be a program name with args.
8460 set dummy $ac_prog; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_path_NAWK+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   case $NAWK in
8467   [\\/]* | ?:[\\/]*)
8468   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8469   ;;
8470   *)
8471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474   IFS=$as_save_IFS
8475   test -z "$as_dir" && as_dir=.
8476     for ac_exec_ext in '' $ac_executable_extensions; do
8477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480     break 2
8481   fi
8482 done
8483   done
8484 IFS=$as_save_IFS
8485 
8486   ;;
8487 esac
8488 fi
8489 NAWK=$ac_cv_path_NAWK
8490 if test -n "$NAWK"; then
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8492 $as_echo "$NAWK" >&6; }
8493 else
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8496 fi
8497 
8498 
8499   test -n "$NAWK" && break
8500 done
8501 
8502     else
8503       # If it succeeded, then it was overridden by the user. We will use it
8504       # for the tool.
8505 
8506       # First remove it from the list of overridden variables, so we can test
8507       # for unknown variables in the end.
8508       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8509 
8510       # Check if the provided tool contains a complete path.
8511       tool_specified="$NAWK"
8512       tool_basename="${tool_specified##*/}"
8513       if test "x$tool_basename" = "x$tool_specified"; then
8514         # A command without a complete path is provided, search $PATH.
8515         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8516 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8517         # Extract the first word of "$tool_basename", so it can be a program name with args.
8518 set dummy $tool_basename; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_path_NAWK+:} false; then :
8522   $as_echo_n "(cached) " >&6
8523 else
8524   case $NAWK in
8525   [\\/]* | ?:[\\/]*)
8526   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8527   ;;
8528   *)
8529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8531 do
8532   IFS=$as_save_IFS
8533   test -z "$as_dir" && as_dir=.
8534     for ac_exec_ext in '' $ac_executable_extensions; do
8535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538     break 2
8539   fi
8540 done
8541   done
8542 IFS=$as_save_IFS
8543 
8544   ;;
8545 esac
8546 fi
8547 NAWK=$ac_cv_path_NAWK
8548 if test -n "$NAWK"; then
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8550 $as_echo "$NAWK" >&6; }
8551 else
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 fi
8555 
8556 
8557         if test "x$NAWK" = x; then
8558           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8559         fi
8560       else
8561         # Otherwise we believe it is a complete path. Use it as it is.
8562         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8563 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8565 $as_echo_n "checking for NAWK... " >&6; }
8566         if test ! -x "$tool_specified"; then
8567           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8568 $as_echo "not found" >&6; }
8569           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8570         fi
8571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8572 $as_echo "$tool_specified" >&6; }
8573       fi
8574     fi
8575   fi
8576 
8577 
8578 
8579   if test "x$NAWK" = x; then
8580     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8581   fi
8582 
8583 
8584 
8585 
8586 
8587   # Publish this variable in the help.
8588 
8589 
8590   if test "x$PRINTF" = x; then
8591     # The variable is not set by user, try to locate tool using the code snippet
8592     for ac_prog in printf
8593 do
8594   # Extract the first word of "$ac_prog", so it can be a program name with args.
8595 set dummy $ac_prog; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if ${ac_cv_path_PRINTF+:} false; then :
8599   $as_echo_n "(cached) " >&6
8600 else
8601   case $PRINTF in
8602   [\\/]* | ?:[\\/]*)
8603   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8604   ;;
8605   *)
8606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609   IFS=$as_save_IFS
8610   test -z "$as_dir" && as_dir=.
8611     for ac_exec_ext in '' $ac_executable_extensions; do
8612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615     break 2
8616   fi
8617 done
8618   done
8619 IFS=$as_save_IFS
8620 
8621   ;;
8622 esac
8623 fi
8624 PRINTF=$ac_cv_path_PRINTF
8625 if test -n "$PRINTF"; then
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8627 $as_echo "$PRINTF" >&6; }
8628 else
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8631 fi
8632 
8633 
8634   test -n "$PRINTF" && break
8635 done
8636 
8637   else
8638     # The variable is set, but is it from the command line or the environment?
8639 
8640     # Try to remove the string !PRINTF! from our list.
8641     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8642     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8643       # If it failed, the variable was not from the command line. Ignore it,
8644       # but warn the user (except for BASH, which is always set by the calling BASH).
8645       if test "xPRINTF" != xBASH; then
8646         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8647 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8648       fi
8649       # Try to locate tool using the code snippet
8650       for ac_prog in printf
8651 do
8652   # Extract the first word of "$ac_prog", so it can be a program name with args.
8653 set dummy $ac_prog; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_path_PRINTF+:} false; then :
8657   $as_echo_n "(cached) " >&6
8658 else
8659   case $PRINTF in
8660   [\\/]* | ?:[\\/]*)
8661   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8662   ;;
8663   *)
8664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667   IFS=$as_save_IFS
8668   test -z "$as_dir" && as_dir=.
8669     for ac_exec_ext in '' $ac_executable_extensions; do
8670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673     break 2
8674   fi
8675 done
8676   done
8677 IFS=$as_save_IFS
8678 
8679   ;;
8680 esac
8681 fi
8682 PRINTF=$ac_cv_path_PRINTF
8683 if test -n "$PRINTF"; then
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8685 $as_echo "$PRINTF" >&6; }
8686 else
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8689 fi
8690 
8691 
8692   test -n "$PRINTF" && break
8693 done
8694 
8695     else
8696       # If it succeeded, then it was overridden by the user. We will use it
8697       # for the tool.
8698 
8699       # First remove it from the list of overridden variables, so we can test
8700       # for unknown variables in the end.
8701       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8702 
8703       # Check if the provided tool contains a complete path.
8704       tool_specified="$PRINTF"
8705       tool_basename="${tool_specified##*/}"
8706       if test "x$tool_basename" = "x$tool_specified"; then
8707         # A command without a complete path is provided, search $PATH.
8708         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8709 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8710         # Extract the first word of "$tool_basename", so it can be a program name with args.
8711 set dummy $tool_basename; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_path_PRINTF+:} false; then :
8715   $as_echo_n "(cached) " >&6
8716 else
8717   case $PRINTF in
8718   [\\/]* | ?:[\\/]*)
8719   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8720   ;;
8721   *)
8722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725   IFS=$as_save_IFS
8726   test -z "$as_dir" && as_dir=.
8727     for ac_exec_ext in '' $ac_executable_extensions; do
8728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731     break 2
8732   fi
8733 done
8734   done
8735 IFS=$as_save_IFS
8736 
8737   ;;
8738 esac
8739 fi
8740 PRINTF=$ac_cv_path_PRINTF
8741 if test -n "$PRINTF"; then
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8743 $as_echo "$PRINTF" >&6; }
8744 else
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8747 fi
8748 
8749 
8750         if test "x$PRINTF" = x; then
8751           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8752         fi
8753       else
8754         # Otherwise we believe it is a complete path. Use it as it is.
8755         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8756 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8757         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8758 $as_echo_n "checking for PRINTF... " >&6; }
8759         if test ! -x "$tool_specified"; then
8760           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8761 $as_echo "not found" >&6; }
8762           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8763         fi
8764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8765 $as_echo "$tool_specified" >&6; }
8766       fi
8767     fi
8768   fi
8769 
8770 
8771 
8772   if test "x$PRINTF" = x; then
8773     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8774   fi
8775 
8776 
8777 
8778 
8779 
8780   # Publish this variable in the help.
8781 
8782 
8783   if test "x$RM" = x; then
8784     # The variable is not set by user, try to locate tool using the code snippet
8785     for ac_prog in rm
8786 do
8787   # Extract the first word of "$ac_prog", so it can be a program name with args.
8788 set dummy $ac_prog; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if ${ac_cv_path_RM+:} false; then :
8792   $as_echo_n "(cached) " >&6
8793 else
8794   case $RM in
8795   [\\/]* | ?:[\\/]*)
8796   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8797   ;;
8798   *)
8799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802   IFS=$as_save_IFS
8803   test -z "$as_dir" && as_dir=.
8804     for ac_exec_ext in '' $ac_executable_extensions; do
8805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808     break 2
8809   fi
8810 done
8811   done
8812 IFS=$as_save_IFS
8813 
8814   ;;
8815 esac
8816 fi
8817 RM=$ac_cv_path_RM
8818 if test -n "$RM"; then
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8820 $as_echo "$RM" >&6; }
8821 else
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8824 fi
8825 
8826 
8827   test -n "$RM" && break
8828 done
8829 
8830   else
8831     # The variable is set, but is it from the command line or the environment?
8832 
8833     # Try to remove the string !RM! from our list.
8834     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8835     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8836       # If it failed, the variable was not from the command line. Ignore it,
8837       # but warn the user (except for BASH, which is always set by the calling BASH).
8838       if test "xRM" != xBASH; then
8839         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8840 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8841       fi
8842       # Try to locate tool using the code snippet
8843       for ac_prog in rm
8844 do
8845   # Extract the first word of "$ac_prog", so it can be a program name with args.
8846 set dummy $ac_prog; ac_word=$2
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 $as_echo_n "checking for $ac_word... " >&6; }
8849 if ${ac_cv_path_RM+:} false; then :
8850   $as_echo_n "(cached) " >&6
8851 else
8852   case $RM in
8853   [\\/]* | ?:[\\/]*)
8854   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8855   ;;
8856   *)
8857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 for as_dir in $PATH
8859 do
8860   IFS=$as_save_IFS
8861   test -z "$as_dir" && as_dir=.
8862     for ac_exec_ext in '' $ac_executable_extensions; do
8863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8864     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8866     break 2
8867   fi
8868 done
8869   done
8870 IFS=$as_save_IFS
8871 
8872   ;;
8873 esac
8874 fi
8875 RM=$ac_cv_path_RM
8876 if test -n "$RM"; then
8877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8878 $as_echo "$RM" >&6; }
8879 else
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8882 fi
8883 
8884 
8885   test -n "$RM" && break
8886 done
8887 
8888     else
8889       # If it succeeded, then it was overridden by the user. We will use it
8890       # for the tool.
8891 
8892       # First remove it from the list of overridden variables, so we can test
8893       # for unknown variables in the end.
8894       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8895 
8896       # Check if the provided tool contains a complete path.
8897       tool_specified="$RM"
8898       tool_basename="${tool_specified##*/}"
8899       if test "x$tool_basename" = "x$tool_specified"; then
8900         # A command without a complete path is provided, search $PATH.
8901         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8902 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8903         # Extract the first word of "$tool_basename", so it can be a program name with args.
8904 set dummy $tool_basename; ac_word=$2
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906 $as_echo_n "checking for $ac_word... " >&6; }
8907 if ${ac_cv_path_RM+:} false; then :
8908   $as_echo_n "(cached) " >&6
8909 else
8910   case $RM in
8911   [\\/]* | ?:[\\/]*)
8912   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8913   ;;
8914   *)
8915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 for as_dir in $PATH
8917 do
8918   IFS=$as_save_IFS
8919   test -z "$as_dir" && as_dir=.
8920     for ac_exec_ext in '' $ac_executable_extensions; do
8921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8922     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924     break 2
8925   fi
8926 done
8927   done
8928 IFS=$as_save_IFS
8929 
8930   ;;
8931 esac
8932 fi
8933 RM=$ac_cv_path_RM
8934 if test -n "$RM"; then
8935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8936 $as_echo "$RM" >&6; }
8937 else
8938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940 fi
8941 
8942 
8943         if test "x$RM" = x; then
8944           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8945         fi
8946       else
8947         # Otherwise we believe it is a complete path. Use it as it is.
8948         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
8949 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
8950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
8951 $as_echo_n "checking for RM... " >&6; }
8952         if test ! -x "$tool_specified"; then
8953           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8954 $as_echo "not found" >&6; }
8955           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
8956         fi
8957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8958 $as_echo "$tool_specified" >&6; }
8959       fi
8960     fi
8961   fi
8962 
8963 
8964 
8965   if test "x$RM" = x; then
8966     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
8967   fi
8968 
8969 
8970 
8971 
8972 
8973   # Publish this variable in the help.
8974 
8975 
8976   if test "x$SH" = x; then
8977     # The variable is not set by user, try to locate tool using the code snippet
8978     for ac_prog in sh
8979 do
8980   # Extract the first word of "$ac_prog", so it can be a program name with args.
8981 set dummy $ac_prog; ac_word=$2
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 $as_echo_n "checking for $ac_word... " >&6; }
8984 if ${ac_cv_path_SH+:} false; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987   case $SH in
8988   [\\/]* | ?:[\\/]*)
8989   ac_cv_path_SH="$SH" # Let the user override the test with a path.
8990   ;;
8991   *)
8992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8994 do
8995   IFS=$as_save_IFS
8996   test -z "$as_dir" && as_dir=.
8997     for ac_exec_ext in '' $ac_executable_extensions; do
8998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8999     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001     break 2
9002   fi
9003 done
9004   done
9005 IFS=$as_save_IFS
9006 
9007   ;;
9008 esac
9009 fi
9010 SH=$ac_cv_path_SH
9011 if test -n "$SH"; then
9012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9013 $as_echo "$SH" >&6; }
9014 else
9015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9017 fi
9018 
9019 
9020   test -n "$SH" && break
9021 done
9022 
9023   else
9024     # The variable is set, but is it from the command line or the environment?
9025 
9026     # Try to remove the string !SH! from our list.
9027     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9028     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9029       # If it failed, the variable was not from the command line. Ignore it,
9030       # but warn the user (except for BASH, which is always set by the calling BASH).
9031       if test "xSH" != xBASH; then
9032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9033 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9034       fi
9035       # Try to locate tool using the code snippet
9036       for ac_prog in sh
9037 do
9038   # Extract the first word of "$ac_prog", so it can be a program name with args.
9039 set dummy $ac_prog; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if ${ac_cv_path_SH+:} false; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   case $SH in
9046   [\\/]* | ?:[\\/]*)
9047   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9048   ;;
9049   *)
9050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9052 do
9053   IFS=$as_save_IFS
9054   test -z "$as_dir" && as_dir=.
9055     for ac_exec_ext in '' $ac_executable_extensions; do
9056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059     break 2
9060   fi
9061 done
9062   done
9063 IFS=$as_save_IFS
9064 
9065   ;;
9066 esac
9067 fi
9068 SH=$ac_cv_path_SH
9069 if test -n "$SH"; then
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9071 $as_echo "$SH" >&6; }
9072 else
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076 
9077 
9078   test -n "$SH" && break
9079 done
9080 
9081     else
9082       # If it succeeded, then it was overridden by the user. We will use it
9083       # for the tool.
9084 
9085       # First remove it from the list of overridden variables, so we can test
9086       # for unknown variables in the end.
9087       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9088 
9089       # Check if the provided tool contains a complete path.
9090       tool_specified="$SH"
9091       tool_basename="${tool_specified##*/}"
9092       if test "x$tool_basename" = "x$tool_specified"; then
9093         # A command without a complete path is provided, search $PATH.
9094         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9095 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9096         # Extract the first word of "$tool_basename", so it can be a program name with args.
9097 set dummy $tool_basename; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if ${ac_cv_path_SH+:} false; then :
9101   $as_echo_n "(cached) " >&6
9102 else
9103   case $SH in
9104   [\\/]* | ?:[\\/]*)
9105   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9106   ;;
9107   *)
9108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109 for as_dir in $PATH
9110 do
9111   IFS=$as_save_IFS
9112   test -z "$as_dir" && as_dir=.
9113     for ac_exec_ext in '' $ac_executable_extensions; do
9114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9115     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9117     break 2
9118   fi
9119 done
9120   done
9121 IFS=$as_save_IFS
9122 
9123   ;;
9124 esac
9125 fi
9126 SH=$ac_cv_path_SH
9127 if test -n "$SH"; then
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9129 $as_echo "$SH" >&6; }
9130 else
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9133 fi
9134 
9135 
9136         if test "x$SH" = x; then
9137           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9138         fi
9139       else
9140         # Otherwise we believe it is a complete path. Use it as it is.
9141         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9142 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9144 $as_echo_n "checking for SH... " >&6; }
9145         if test ! -x "$tool_specified"; then
9146           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9147 $as_echo "not found" >&6; }
9148           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9149         fi
9150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9151 $as_echo "$tool_specified" >&6; }
9152       fi
9153     fi
9154   fi
9155 
9156 
9157 
9158   if test "x$SH" = x; then
9159     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9160   fi
9161 
9162 
9163 
9164 
9165 
9166   # Publish this variable in the help.
9167 
9168 
9169   if test "x$SORT" = x; then
9170     # The variable is not set by user, try to locate tool using the code snippet
9171     for ac_prog in sort
9172 do
9173   # Extract the first word of "$ac_prog", so it can be a program name with args.
9174 set dummy $ac_prog; ac_word=$2
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176 $as_echo_n "checking for $ac_word... " >&6; }
9177 if ${ac_cv_path_SORT+:} false; then :
9178   $as_echo_n "(cached) " >&6
9179 else
9180   case $SORT in
9181   [\\/]* | ?:[\\/]*)
9182   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9183   ;;
9184   *)
9185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 for as_dir in $PATH
9187 do
9188   IFS=$as_save_IFS
9189   test -z "$as_dir" && as_dir=.
9190     for ac_exec_ext in '' $ac_executable_extensions; do
9191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9194     break 2
9195   fi
9196 done
9197   done
9198 IFS=$as_save_IFS
9199 
9200   ;;
9201 esac
9202 fi
9203 SORT=$ac_cv_path_SORT
9204 if test -n "$SORT"; then
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9206 $as_echo "$SORT" >&6; }
9207 else
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 fi
9211 
9212 
9213   test -n "$SORT" && break
9214 done
9215 
9216   else
9217     # The variable is set, but is it from the command line or the environment?
9218 
9219     # Try to remove the string !SORT! from our list.
9220     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9221     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9222       # If it failed, the variable was not from the command line. Ignore it,
9223       # but warn the user (except for BASH, which is always set by the calling BASH).
9224       if test "xSORT" != xBASH; then
9225         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9226 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9227       fi
9228       # Try to locate tool using the code snippet
9229       for ac_prog in sort
9230 do
9231   # Extract the first word of "$ac_prog", so it can be a program name with args.
9232 set dummy $ac_prog; ac_word=$2
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 $as_echo_n "checking for $ac_word... " >&6; }
9235 if ${ac_cv_path_SORT+:} false; then :
9236   $as_echo_n "(cached) " >&6
9237 else
9238   case $SORT in
9239   [\\/]* | ?:[\\/]*)
9240   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9241   ;;
9242   *)
9243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9245 do
9246   IFS=$as_save_IFS
9247   test -z "$as_dir" && as_dir=.
9248     for ac_exec_ext in '' $ac_executable_extensions; do
9249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9250     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252     break 2
9253   fi
9254 done
9255   done
9256 IFS=$as_save_IFS
9257 
9258   ;;
9259 esac
9260 fi
9261 SORT=$ac_cv_path_SORT
9262 if test -n "$SORT"; then
9263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9264 $as_echo "$SORT" >&6; }
9265 else
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9268 fi
9269 
9270 
9271   test -n "$SORT" && break
9272 done
9273 
9274     else
9275       # If it succeeded, then it was overridden by the user. We will use it
9276       # for the tool.
9277 
9278       # First remove it from the list of overridden variables, so we can test
9279       # for unknown variables in the end.
9280       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9281 
9282       # Check if the provided tool contains a complete path.
9283       tool_specified="$SORT"
9284       tool_basename="${tool_specified##*/}"
9285       if test "x$tool_basename" = "x$tool_specified"; then
9286         # A command without a complete path is provided, search $PATH.
9287         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9288 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9289         # Extract the first word of "$tool_basename", so it can be a program name with args.
9290 set dummy $tool_basename; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if ${ac_cv_path_SORT+:} false; then :
9294   $as_echo_n "(cached) " >&6
9295 else
9296   case $SORT in
9297   [\\/]* | ?:[\\/]*)
9298   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9299   ;;
9300   *)
9301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9303 do
9304   IFS=$as_save_IFS
9305   test -z "$as_dir" && as_dir=.
9306     for ac_exec_ext in '' $ac_executable_extensions; do
9307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310     break 2
9311   fi
9312 done
9313   done
9314 IFS=$as_save_IFS
9315 
9316   ;;
9317 esac
9318 fi
9319 SORT=$ac_cv_path_SORT
9320 if test -n "$SORT"; then
9321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9322 $as_echo "$SORT" >&6; }
9323 else
9324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9326 fi
9327 
9328 
9329         if test "x$SORT" = x; then
9330           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9331         fi
9332       else
9333         # Otherwise we believe it is a complete path. Use it as it is.
9334         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9335 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9337 $as_echo_n "checking for SORT... " >&6; }
9338         if test ! -x "$tool_specified"; then
9339           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9340 $as_echo "not found" >&6; }
9341           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9342         fi
9343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9344 $as_echo "$tool_specified" >&6; }
9345       fi
9346     fi
9347   fi
9348 
9349 
9350 
9351   if test "x$SORT" = x; then
9352     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9353   fi
9354 
9355 
9356 
9357 
9358 
9359   # Publish this variable in the help.
9360 
9361 
9362   if test "x$TAIL" = x; then
9363     # The variable is not set by user, try to locate tool using the code snippet
9364     for ac_prog in tail
9365 do
9366   # Extract the first word of "$ac_prog", so it can be a program name with args.
9367 set dummy $ac_prog; ac_word=$2
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9369 $as_echo_n "checking for $ac_word... " >&6; }
9370 if ${ac_cv_path_TAIL+:} false; then :
9371   $as_echo_n "(cached) " >&6
9372 else
9373   case $TAIL in
9374   [\\/]* | ?:[\\/]*)
9375   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9376   ;;
9377   *)
9378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9380 do
9381   IFS=$as_save_IFS
9382   test -z "$as_dir" && as_dir=.
9383     for ac_exec_ext in '' $ac_executable_extensions; do
9384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9385     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387     break 2
9388   fi
9389 done
9390   done
9391 IFS=$as_save_IFS
9392 
9393   ;;
9394 esac
9395 fi
9396 TAIL=$ac_cv_path_TAIL
9397 if test -n "$TAIL"; then
9398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9399 $as_echo "$TAIL" >&6; }
9400 else
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402 $as_echo "no" >&6; }
9403 fi
9404 
9405 
9406   test -n "$TAIL" && break
9407 done
9408 
9409   else
9410     # The variable is set, but is it from the command line or the environment?
9411 
9412     # Try to remove the string !TAIL! from our list.
9413     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9414     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9415       # If it failed, the variable was not from the command line. Ignore it,
9416       # but warn the user (except for BASH, which is always set by the calling BASH).
9417       if test "xTAIL" != xBASH; then
9418         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9419 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9420       fi
9421       # Try to locate tool using the code snippet
9422       for ac_prog in tail
9423 do
9424   # Extract the first word of "$ac_prog", so it can be a program name with args.
9425 set dummy $ac_prog; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_path_TAIL+:} false; then :
9429   $as_echo_n "(cached) " >&6
9430 else
9431   case $TAIL in
9432   [\\/]* | ?:[\\/]*)
9433   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9434   ;;
9435   *)
9436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9438 do
9439   IFS=$as_save_IFS
9440   test -z "$as_dir" && as_dir=.
9441     for ac_exec_ext in '' $ac_executable_extensions; do
9442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9443     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445     break 2
9446   fi
9447 done
9448   done
9449 IFS=$as_save_IFS
9450 
9451   ;;
9452 esac
9453 fi
9454 TAIL=$ac_cv_path_TAIL
9455 if test -n "$TAIL"; then
9456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9457 $as_echo "$TAIL" >&6; }
9458 else
9459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9461 fi
9462 
9463 
9464   test -n "$TAIL" && break
9465 done
9466 
9467     else
9468       # If it succeeded, then it was overridden by the user. We will use it
9469       # for the tool.
9470 
9471       # First remove it from the list of overridden variables, so we can test
9472       # for unknown variables in the end.
9473       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9474 
9475       # Check if the provided tool contains a complete path.
9476       tool_specified="$TAIL"
9477       tool_basename="${tool_specified##*/}"
9478       if test "x$tool_basename" = "x$tool_specified"; then
9479         # A command without a complete path is provided, search $PATH.
9480         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9481 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9482         # Extract the first word of "$tool_basename", so it can be a program name with args.
9483 set dummy $tool_basename; ac_word=$2
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485 $as_echo_n "checking for $ac_word... " >&6; }
9486 if ${ac_cv_path_TAIL+:} false; then :
9487   $as_echo_n "(cached) " >&6
9488 else
9489   case $TAIL in
9490   [\\/]* | ?:[\\/]*)
9491   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9492   ;;
9493   *)
9494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9496 do
9497   IFS=$as_save_IFS
9498   test -z "$as_dir" && as_dir=.
9499     for ac_exec_ext in '' $ac_executable_extensions; do
9500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9501     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503     break 2
9504   fi
9505 done
9506   done
9507 IFS=$as_save_IFS
9508 
9509   ;;
9510 esac
9511 fi
9512 TAIL=$ac_cv_path_TAIL
9513 if test -n "$TAIL"; then
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9515 $as_echo "$TAIL" >&6; }
9516 else
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9519 fi
9520 
9521 
9522         if test "x$TAIL" = x; then
9523           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9524         fi
9525       else
9526         # Otherwise we believe it is a complete path. Use it as it is.
9527         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9528 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9530 $as_echo_n "checking for TAIL... " >&6; }
9531         if test ! -x "$tool_specified"; then
9532           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9533 $as_echo "not found" >&6; }
9534           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9535         fi
9536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9537 $as_echo "$tool_specified" >&6; }
9538       fi
9539     fi
9540   fi
9541 
9542 
9543 
9544   if test "x$TAIL" = x; then
9545     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9546   fi
9547 
9548 
9549 
9550 
9551 
9552   # Publish this variable in the help.
9553 
9554 
9555   if test "x$TAR" = x; then
9556     # The variable is not set by user, try to locate tool using the code snippet
9557     for ac_prog in tar
9558 do
9559   # Extract the first word of "$ac_prog", so it can be a program name with args.
9560 set dummy $ac_prog; ac_word=$2
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562 $as_echo_n "checking for $ac_word... " >&6; }
9563 if ${ac_cv_path_TAR+:} false; then :
9564   $as_echo_n "(cached) " >&6
9565 else
9566   case $TAR in
9567   [\\/]* | ?:[\\/]*)
9568   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9569   ;;
9570   *)
9571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 for as_dir in $PATH
9573 do
9574   IFS=$as_save_IFS
9575   test -z "$as_dir" && as_dir=.
9576     for ac_exec_ext in '' $ac_executable_extensions; do
9577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9578     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580     break 2
9581   fi
9582 done
9583   done
9584 IFS=$as_save_IFS
9585 
9586   ;;
9587 esac
9588 fi
9589 TAR=$ac_cv_path_TAR
9590 if test -n "$TAR"; then
9591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9592 $as_echo "$TAR" >&6; }
9593 else
9594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595 $as_echo "no" >&6; }
9596 fi
9597 
9598 
9599   test -n "$TAR" && break
9600 done
9601 
9602   else
9603     # The variable is set, but is it from the command line or the environment?
9604 
9605     # Try to remove the string !TAR! from our list.
9606     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9607     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9608       # If it failed, the variable was not from the command line. Ignore it,
9609       # but warn the user (except for BASH, which is always set by the calling BASH).
9610       if test "xTAR" != xBASH; then
9611         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9612 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9613       fi
9614       # Try to locate tool using the code snippet
9615       for ac_prog in tar
9616 do
9617   # Extract the first word of "$ac_prog", so it can be a program name with args.
9618 set dummy $ac_prog; ac_word=$2
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9620 $as_echo_n "checking for $ac_word... " >&6; }
9621 if ${ac_cv_path_TAR+:} false; then :
9622   $as_echo_n "(cached) " >&6
9623 else
9624   case $TAR in
9625   [\\/]* | ?:[\\/]*)
9626   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9627   ;;
9628   *)
9629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 for as_dir in $PATH
9631 do
9632   IFS=$as_save_IFS
9633   test -z "$as_dir" && as_dir=.
9634     for ac_exec_ext in '' $ac_executable_extensions; do
9635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9636     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638     break 2
9639   fi
9640 done
9641   done
9642 IFS=$as_save_IFS
9643 
9644   ;;
9645 esac
9646 fi
9647 TAR=$ac_cv_path_TAR
9648 if test -n "$TAR"; then
9649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9650 $as_echo "$TAR" >&6; }
9651 else
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9654 fi
9655 
9656 
9657   test -n "$TAR" && break
9658 done
9659 
9660     else
9661       # If it succeeded, then it was overridden by the user. We will use it
9662       # for the tool.
9663 
9664       # First remove it from the list of overridden variables, so we can test
9665       # for unknown variables in the end.
9666       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9667 
9668       # Check if the provided tool contains a complete path.
9669       tool_specified="$TAR"
9670       tool_basename="${tool_specified##*/}"
9671       if test "x$tool_basename" = "x$tool_specified"; then
9672         # A command without a complete path is provided, search $PATH.
9673         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9674 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9675         # Extract the first word of "$tool_basename", so it can be a program name with args.
9676 set dummy $tool_basename; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_path_TAR+:} false; then :
9680   $as_echo_n "(cached) " >&6
9681 else
9682   case $TAR in
9683   [\\/]* | ?:[\\/]*)
9684   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9685   ;;
9686   *)
9687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 for as_dir in $PATH
9689 do
9690   IFS=$as_save_IFS
9691   test -z "$as_dir" && as_dir=.
9692     for ac_exec_ext in '' $ac_executable_extensions; do
9693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696     break 2
9697   fi
9698 done
9699   done
9700 IFS=$as_save_IFS
9701 
9702   ;;
9703 esac
9704 fi
9705 TAR=$ac_cv_path_TAR
9706 if test -n "$TAR"; then
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9708 $as_echo "$TAR" >&6; }
9709 else
9710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9712 fi
9713 
9714 
9715         if test "x$TAR" = x; then
9716           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9717         fi
9718       else
9719         # Otherwise we believe it is a complete path. Use it as it is.
9720         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9721 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9723 $as_echo_n "checking for TAR... " >&6; }
9724         if test ! -x "$tool_specified"; then
9725           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9726 $as_echo "not found" >&6; }
9727           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9728         fi
9729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9730 $as_echo "$tool_specified" >&6; }
9731       fi
9732     fi
9733   fi
9734 
9735 
9736 
9737   if test "x$TAR" = x; then
9738     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9739   fi
9740 
9741 
9742 
9743 
9744 
9745   # Publish this variable in the help.
9746 
9747 
9748   if test "x$TEE" = x; then
9749     # The variable is not set by user, try to locate tool using the code snippet
9750     for ac_prog in tee
9751 do
9752   # Extract the first word of "$ac_prog", so it can be a program name with args.
9753 set dummy $ac_prog; ac_word=$2
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 $as_echo_n "checking for $ac_word... " >&6; }
9756 if ${ac_cv_path_TEE+:} false; then :
9757   $as_echo_n "(cached) " >&6
9758 else
9759   case $TEE in
9760   [\\/]* | ?:[\\/]*)
9761   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9762   ;;
9763   *)
9764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in $PATH
9766 do
9767   IFS=$as_save_IFS
9768   test -z "$as_dir" && as_dir=.
9769     for ac_exec_ext in '' $ac_executable_extensions; do
9770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9771     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9773     break 2
9774   fi
9775 done
9776   done
9777 IFS=$as_save_IFS
9778 
9779   ;;
9780 esac
9781 fi
9782 TEE=$ac_cv_path_TEE
9783 if test -n "$TEE"; then
9784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9785 $as_echo "$TEE" >&6; }
9786 else
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9789 fi
9790 
9791 
9792   test -n "$TEE" && break
9793 done
9794 
9795   else
9796     # The variable is set, but is it from the command line or the environment?
9797 
9798     # Try to remove the string !TEE! from our list.
9799     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9800     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9801       # If it failed, the variable was not from the command line. Ignore it,
9802       # but warn the user (except for BASH, which is always set by the calling BASH).
9803       if test "xTEE" != xBASH; then
9804         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9805 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9806       fi
9807       # Try to locate tool using the code snippet
9808       for ac_prog in tee
9809 do
9810   # Extract the first word of "$ac_prog", so it can be a program name with args.
9811 set dummy $ac_prog; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if ${ac_cv_path_TEE+:} false; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   case $TEE in
9818   [\\/]* | ?:[\\/]*)
9819   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9820   ;;
9821   *)
9822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9824 do
9825   IFS=$as_save_IFS
9826   test -z "$as_dir" && as_dir=.
9827     for ac_exec_ext in '' $ac_executable_extensions; do
9828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831     break 2
9832   fi
9833 done
9834   done
9835 IFS=$as_save_IFS
9836 
9837   ;;
9838 esac
9839 fi
9840 TEE=$ac_cv_path_TEE
9841 if test -n "$TEE"; then
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9843 $as_echo "$TEE" >&6; }
9844 else
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9847 fi
9848 
9849 
9850   test -n "$TEE" && break
9851 done
9852 
9853     else
9854       # If it succeeded, then it was overridden by the user. We will use it
9855       # for the tool.
9856 
9857       # First remove it from the list of overridden variables, so we can test
9858       # for unknown variables in the end.
9859       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9860 
9861       # Check if the provided tool contains a complete path.
9862       tool_specified="$TEE"
9863       tool_basename="${tool_specified##*/}"
9864       if test "x$tool_basename" = "x$tool_specified"; then
9865         # A command without a complete path is provided, search $PATH.
9866         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9867 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9868         # Extract the first word of "$tool_basename", so it can be a program name with args.
9869 set dummy $tool_basename; ac_word=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_TEE+:} false; then :
9873   $as_echo_n "(cached) " >&6
9874 else
9875   case $TEE in
9876   [\\/]* | ?:[\\/]*)
9877   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9878   ;;
9879   *)
9880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9882 do
9883   IFS=$as_save_IFS
9884   test -z "$as_dir" && as_dir=.
9885     for ac_exec_ext in '' $ac_executable_extensions; do
9886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889     break 2
9890   fi
9891 done
9892   done
9893 IFS=$as_save_IFS
9894 
9895   ;;
9896 esac
9897 fi
9898 TEE=$ac_cv_path_TEE
9899 if test -n "$TEE"; then
9900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9901 $as_echo "$TEE" >&6; }
9902 else
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9905 fi
9906 
9907 
9908         if test "x$TEE" = x; then
9909           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9910         fi
9911       else
9912         # Otherwise we believe it is a complete path. Use it as it is.
9913         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9914 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9916 $as_echo_n "checking for TEE... " >&6; }
9917         if test ! -x "$tool_specified"; then
9918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9919 $as_echo "not found" >&6; }
9920           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9921         fi
9922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9923 $as_echo "$tool_specified" >&6; }
9924       fi
9925     fi
9926   fi
9927 
9928 
9929 
9930   if test "x$TEE" = x; then
9931     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
9932   fi
9933 
9934 
9935 
9936 
9937 
9938   # Publish this variable in the help.
9939 
9940 
9941   if test "x$TOUCH" = x; then
9942     # The variable is not set by user, try to locate tool using the code snippet
9943     for ac_prog in touch
9944 do
9945   # Extract the first word of "$ac_prog", so it can be a program name with args.
9946 set dummy $ac_prog; ac_word=$2
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9948 $as_echo_n "checking for $ac_word... " >&6; }
9949 if ${ac_cv_path_TOUCH+:} false; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   case $TOUCH in
9953   [\\/]* | ?:[\\/]*)
9954   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9955   ;;
9956   *)
9957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 for as_dir in $PATH
9959 do
9960   IFS=$as_save_IFS
9961   test -z "$as_dir" && as_dir=.
9962     for ac_exec_ext in '' $ac_executable_extensions; do
9963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966     break 2
9967   fi
9968 done
9969   done
9970 IFS=$as_save_IFS
9971 
9972   ;;
9973 esac
9974 fi
9975 TOUCH=$ac_cv_path_TOUCH
9976 if test -n "$TOUCH"; then
9977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
9978 $as_echo "$TOUCH" >&6; }
9979 else
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9982 fi
9983 
9984 
9985   test -n "$TOUCH" && break
9986 done
9987 
9988   else
9989     # The variable is set, but is it from the command line or the environment?
9990 
9991     # Try to remove the string !TOUCH! from our list.
9992     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
9993     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9994       # If it failed, the variable was not from the command line. Ignore it,
9995       # but warn the user (except for BASH, which is always set by the calling BASH).
9996       if test "xTOUCH" != xBASH; then
9997         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
9998 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
9999       fi
10000       # Try to locate tool using the code snippet
10001       for ac_prog in touch
10002 do
10003   # Extract the first word of "$ac_prog", so it can be a program name with args.
10004 set dummy $ac_prog; ac_word=$2
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006 $as_echo_n "checking for $ac_word... " >&6; }
10007 if ${ac_cv_path_TOUCH+:} false; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010   case $TOUCH in
10011   [\\/]* | ?:[\\/]*)
10012   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10013   ;;
10014   *)
10015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10017 do
10018   IFS=$as_save_IFS
10019   test -z "$as_dir" && as_dir=.
10020     for ac_exec_ext in '' $ac_executable_extensions; do
10021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10022     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10024     break 2
10025   fi
10026 done
10027   done
10028 IFS=$as_save_IFS
10029 
10030   ;;
10031 esac
10032 fi
10033 TOUCH=$ac_cv_path_TOUCH
10034 if test -n "$TOUCH"; then
10035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10036 $as_echo "$TOUCH" >&6; }
10037 else
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10040 fi
10041 
10042 
10043   test -n "$TOUCH" && break
10044 done
10045 
10046     else
10047       # If it succeeded, then it was overridden by the user. We will use it
10048       # for the tool.
10049 
10050       # First remove it from the list of overridden variables, so we can test
10051       # for unknown variables in the end.
10052       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10053 
10054       # Check if the provided tool contains a complete path.
10055       tool_specified="$TOUCH"
10056       tool_basename="${tool_specified##*/}"
10057       if test "x$tool_basename" = "x$tool_specified"; then
10058         # A command without a complete path is provided, search $PATH.
10059         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10060 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10061         # Extract the first word of "$tool_basename", so it can be a program name with args.
10062 set dummy $tool_basename; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if ${ac_cv_path_TOUCH+:} false; then :
10066   $as_echo_n "(cached) " >&6
10067 else
10068   case $TOUCH in
10069   [\\/]* | ?:[\\/]*)
10070   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10071   ;;
10072   *)
10073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10075 do
10076   IFS=$as_save_IFS
10077   test -z "$as_dir" && as_dir=.
10078     for ac_exec_ext in '' $ac_executable_extensions; do
10079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10080     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082     break 2
10083   fi
10084 done
10085   done
10086 IFS=$as_save_IFS
10087 
10088   ;;
10089 esac
10090 fi
10091 TOUCH=$ac_cv_path_TOUCH
10092 if test -n "$TOUCH"; then
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10094 $as_echo "$TOUCH" >&6; }
10095 else
10096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10098 fi
10099 
10100 
10101         if test "x$TOUCH" = x; then
10102           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10103         fi
10104       else
10105         # Otherwise we believe it is a complete path. Use it as it is.
10106         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10107 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10109 $as_echo_n "checking for TOUCH... " >&6; }
10110         if test ! -x "$tool_specified"; then
10111           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10112 $as_echo "not found" >&6; }
10113           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10114         fi
10115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10116 $as_echo "$tool_specified" >&6; }
10117       fi
10118     fi
10119   fi
10120 
10121 
10122 
10123   if test "x$TOUCH" = x; then
10124     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10125   fi
10126 
10127 
10128 
10129 
10130 
10131   # Publish this variable in the help.
10132 
10133 
10134   if test "x$TR" = x; then
10135     # The variable is not set by user, try to locate tool using the code snippet
10136     for ac_prog in tr
10137 do
10138   # Extract the first word of "$ac_prog", so it can be a program name with args.
10139 set dummy $ac_prog; ac_word=$2
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141 $as_echo_n "checking for $ac_word... " >&6; }
10142 if ${ac_cv_path_TR+:} false; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145   case $TR in
10146   [\\/]* | ?:[\\/]*)
10147   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10148   ;;
10149   *)
10150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151 for as_dir in $PATH
10152 do
10153   IFS=$as_save_IFS
10154   test -z "$as_dir" && as_dir=.
10155     for ac_exec_ext in '' $ac_executable_extensions; do
10156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10159     break 2
10160   fi
10161 done
10162   done
10163 IFS=$as_save_IFS
10164 
10165   ;;
10166 esac
10167 fi
10168 TR=$ac_cv_path_TR
10169 if test -n "$TR"; then
10170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10171 $as_echo "$TR" >&6; }
10172 else
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10175 fi
10176 
10177 
10178   test -n "$TR" && break
10179 done
10180 
10181   else
10182     # The variable is set, but is it from the command line or the environment?
10183 
10184     # Try to remove the string !TR! from our list.
10185     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10186     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10187       # If it failed, the variable was not from the command line. Ignore it,
10188       # but warn the user (except for BASH, which is always set by the calling BASH).
10189       if test "xTR" != xBASH; then
10190         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10191 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10192       fi
10193       # Try to locate tool using the code snippet
10194       for ac_prog in tr
10195 do
10196   # Extract the first word of "$ac_prog", so it can be a program name with args.
10197 set dummy $ac_prog; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if ${ac_cv_path_TR+:} false; then :
10201   $as_echo_n "(cached) " >&6
10202 else
10203   case $TR in
10204   [\\/]* | ?:[\\/]*)
10205   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10206   ;;
10207   *)
10208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10210 do
10211   IFS=$as_save_IFS
10212   test -z "$as_dir" && as_dir=.
10213     for ac_exec_ext in '' $ac_executable_extensions; do
10214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10215     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217     break 2
10218   fi
10219 done
10220   done
10221 IFS=$as_save_IFS
10222 
10223   ;;
10224 esac
10225 fi
10226 TR=$ac_cv_path_TR
10227 if test -n "$TR"; then
10228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10229 $as_echo "$TR" >&6; }
10230 else
10231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10233 fi
10234 
10235 
10236   test -n "$TR" && break
10237 done
10238 
10239     else
10240       # If it succeeded, then it was overridden by the user. We will use it
10241       # for the tool.
10242 
10243       # First remove it from the list of overridden variables, so we can test
10244       # for unknown variables in the end.
10245       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10246 
10247       # Check if the provided tool contains a complete path.
10248       tool_specified="$TR"
10249       tool_basename="${tool_specified##*/}"
10250       if test "x$tool_basename" = "x$tool_specified"; then
10251         # A command without a complete path is provided, search $PATH.
10252         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10253 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10254         # Extract the first word of "$tool_basename", so it can be a program name with args.
10255 set dummy $tool_basename; ac_word=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if ${ac_cv_path_TR+:} false; then :
10259   $as_echo_n "(cached) " >&6
10260 else
10261   case $TR in
10262   [\\/]* | ?:[\\/]*)
10263   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10264   ;;
10265   *)
10266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10268 do
10269   IFS=$as_save_IFS
10270   test -z "$as_dir" && as_dir=.
10271     for ac_exec_ext in '' $ac_executable_extensions; do
10272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275     break 2
10276   fi
10277 done
10278   done
10279 IFS=$as_save_IFS
10280 
10281   ;;
10282 esac
10283 fi
10284 TR=$ac_cv_path_TR
10285 if test -n "$TR"; then
10286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10287 $as_echo "$TR" >&6; }
10288 else
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10291 fi
10292 
10293 
10294         if test "x$TR" = x; then
10295           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10296         fi
10297       else
10298         # Otherwise we believe it is a complete path. Use it as it is.
10299         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10300 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10302 $as_echo_n "checking for TR... " >&6; }
10303         if test ! -x "$tool_specified"; then
10304           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10305 $as_echo "not found" >&6; }
10306           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10307         fi
10308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10309 $as_echo "$tool_specified" >&6; }
10310       fi
10311     fi
10312   fi
10313 
10314 
10315 
10316   if test "x$TR" = x; then
10317     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10318   fi
10319 
10320 
10321 
10322 
10323 
10324   # Publish this variable in the help.
10325 
10326 
10327   if test "x$UNAME" = x; then
10328     # The variable is not set by user, try to locate tool using the code snippet
10329     for ac_prog in uname
10330 do
10331   # Extract the first word of "$ac_prog", so it can be a program name with args.
10332 set dummy $ac_prog; ac_word=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if ${ac_cv_path_UNAME+:} false; then :
10336   $as_echo_n "(cached) " >&6
10337 else
10338   case $UNAME in
10339   [\\/]* | ?:[\\/]*)
10340   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10341   ;;
10342   *)
10343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10345 do
10346   IFS=$as_save_IFS
10347   test -z "$as_dir" && as_dir=.
10348     for ac_exec_ext in '' $ac_executable_extensions; do
10349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10350     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10352     break 2
10353   fi
10354 done
10355   done
10356 IFS=$as_save_IFS
10357 
10358   ;;
10359 esac
10360 fi
10361 UNAME=$ac_cv_path_UNAME
10362 if test -n "$UNAME"; then
10363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10364 $as_echo "$UNAME" >&6; }
10365 else
10366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 $as_echo "no" >&6; }
10368 fi
10369 
10370 
10371   test -n "$UNAME" && break
10372 done
10373 
10374   else
10375     # The variable is set, but is it from the command line or the environment?
10376 
10377     # Try to remove the string !UNAME! from our list.
10378     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10379     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10380       # If it failed, the variable was not from the command line. Ignore it,
10381       # but warn the user (except for BASH, which is always set by the calling BASH).
10382       if test "xUNAME" != xBASH; then
10383         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10384 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10385       fi
10386       # Try to locate tool using the code snippet
10387       for ac_prog in uname
10388 do
10389   # Extract the first word of "$ac_prog", so it can be a program name with args.
10390 set dummy $ac_prog; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if ${ac_cv_path_UNAME+:} false; then :
10394   $as_echo_n "(cached) " >&6
10395 else
10396   case $UNAME in
10397   [\\/]* | ?:[\\/]*)
10398   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10399   ;;
10400   *)
10401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10403 do
10404   IFS=$as_save_IFS
10405   test -z "$as_dir" && as_dir=.
10406     for ac_exec_ext in '' $ac_executable_extensions; do
10407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410     break 2
10411   fi
10412 done
10413   done
10414 IFS=$as_save_IFS
10415 
10416   ;;
10417 esac
10418 fi
10419 UNAME=$ac_cv_path_UNAME
10420 if test -n "$UNAME"; then
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10422 $as_echo "$UNAME" >&6; }
10423 else
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10426 fi
10427 
10428 
10429   test -n "$UNAME" && break
10430 done
10431 
10432     else
10433       # If it succeeded, then it was overridden by the user. We will use it
10434       # for the tool.
10435 
10436       # First remove it from the list of overridden variables, so we can test
10437       # for unknown variables in the end.
10438       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10439 
10440       # Check if the provided tool contains a complete path.
10441       tool_specified="$UNAME"
10442       tool_basename="${tool_specified##*/}"
10443       if test "x$tool_basename" = "x$tool_specified"; then
10444         # A command without a complete path is provided, search $PATH.
10445         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10446 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10447         # Extract the first word of "$tool_basename", so it can be a program name with args.
10448 set dummy $tool_basename; ac_word=$2
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450 $as_echo_n "checking for $ac_word... " >&6; }
10451 if ${ac_cv_path_UNAME+:} false; then :
10452   $as_echo_n "(cached) " >&6
10453 else
10454   case $UNAME in
10455   [\\/]* | ?:[\\/]*)
10456   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10457   ;;
10458   *)
10459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10461 do
10462   IFS=$as_save_IFS
10463   test -z "$as_dir" && as_dir=.
10464     for ac_exec_ext in '' $ac_executable_extensions; do
10465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10466     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468     break 2
10469   fi
10470 done
10471   done
10472 IFS=$as_save_IFS
10473 
10474   ;;
10475 esac
10476 fi
10477 UNAME=$ac_cv_path_UNAME
10478 if test -n "$UNAME"; then
10479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10480 $as_echo "$UNAME" >&6; }
10481 else
10482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 $as_echo "no" >&6; }
10484 fi
10485 
10486 
10487         if test "x$UNAME" = x; then
10488           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10489         fi
10490       else
10491         # Otherwise we believe it is a complete path. Use it as it is.
10492         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10493 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10495 $as_echo_n "checking for UNAME... " >&6; }
10496         if test ! -x "$tool_specified"; then
10497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10498 $as_echo "not found" >&6; }
10499           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10500         fi
10501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10502 $as_echo "$tool_specified" >&6; }
10503       fi
10504     fi
10505   fi
10506 
10507 
10508 
10509   if test "x$UNAME" = x; then
10510     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10511   fi
10512 
10513 
10514 
10515 
10516 
10517   # Publish this variable in the help.
10518 
10519 
10520   if test "x$UNIQ" = x; then
10521     # The variable is not set by user, try to locate tool using the code snippet
10522     for ac_prog in uniq
10523 do
10524   # Extract the first word of "$ac_prog", so it can be a program name with args.
10525 set dummy $ac_prog; ac_word=$2
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527 $as_echo_n "checking for $ac_word... " >&6; }
10528 if ${ac_cv_path_UNIQ+:} false; then :
10529   $as_echo_n "(cached) " >&6
10530 else
10531   case $UNIQ in
10532   [\\/]* | ?:[\\/]*)
10533   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10534   ;;
10535   *)
10536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537 for as_dir in $PATH
10538 do
10539   IFS=$as_save_IFS
10540   test -z "$as_dir" && as_dir=.
10541     for ac_exec_ext in '' $ac_executable_extensions; do
10542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10543     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545     break 2
10546   fi
10547 done
10548   done
10549 IFS=$as_save_IFS
10550 
10551   ;;
10552 esac
10553 fi
10554 UNIQ=$ac_cv_path_UNIQ
10555 if test -n "$UNIQ"; then
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10557 $as_echo "$UNIQ" >&6; }
10558 else
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10561 fi
10562 
10563 
10564   test -n "$UNIQ" && break
10565 done
10566 
10567   else
10568     # The variable is set, but is it from the command line or the environment?
10569 
10570     # Try to remove the string !UNIQ! from our list.
10571     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10572     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10573       # If it failed, the variable was not from the command line. Ignore it,
10574       # but warn the user (except for BASH, which is always set by the calling BASH).
10575       if test "xUNIQ" != xBASH; then
10576         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10577 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10578       fi
10579       # Try to locate tool using the code snippet
10580       for ac_prog in uniq
10581 do
10582   # Extract the first word of "$ac_prog", so it can be a program name with args.
10583 set dummy $ac_prog; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_path_UNIQ+:} false; then :
10587   $as_echo_n "(cached) " >&6
10588 else
10589   case $UNIQ in
10590   [\\/]* | ?:[\\/]*)
10591   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10592   ;;
10593   *)
10594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10596 do
10597   IFS=$as_save_IFS
10598   test -z "$as_dir" && as_dir=.
10599     for ac_exec_ext in '' $ac_executable_extensions; do
10600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603     break 2
10604   fi
10605 done
10606   done
10607 IFS=$as_save_IFS
10608 
10609   ;;
10610 esac
10611 fi
10612 UNIQ=$ac_cv_path_UNIQ
10613 if test -n "$UNIQ"; then
10614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10615 $as_echo "$UNIQ" >&6; }
10616 else
10617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10619 fi
10620 
10621 
10622   test -n "$UNIQ" && break
10623 done
10624 
10625     else
10626       # If it succeeded, then it was overridden by the user. We will use it
10627       # for the tool.
10628 
10629       # First remove it from the list of overridden variables, so we can test
10630       # for unknown variables in the end.
10631       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10632 
10633       # Check if the provided tool contains a complete path.
10634       tool_specified="$UNIQ"
10635       tool_basename="${tool_specified##*/}"
10636       if test "x$tool_basename" = "x$tool_specified"; then
10637         # A command without a complete path is provided, search $PATH.
10638         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10639 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10640         # Extract the first word of "$tool_basename", so it can be a program name with args.
10641 set dummy $tool_basename; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if ${ac_cv_path_UNIQ+:} false; then :
10645   $as_echo_n "(cached) " >&6
10646 else
10647   case $UNIQ in
10648   [\\/]* | ?:[\\/]*)
10649   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10650   ;;
10651   *)
10652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653 for as_dir in $PATH
10654 do
10655   IFS=$as_save_IFS
10656   test -z "$as_dir" && as_dir=.
10657     for ac_exec_ext in '' $ac_executable_extensions; do
10658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10659     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10661     break 2
10662   fi
10663 done
10664   done
10665 IFS=$as_save_IFS
10666 
10667   ;;
10668 esac
10669 fi
10670 UNIQ=$ac_cv_path_UNIQ
10671 if test -n "$UNIQ"; then
10672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10673 $as_echo "$UNIQ" >&6; }
10674 else
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; }
10677 fi
10678 
10679 
10680         if test "x$UNIQ" = x; then
10681           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10682         fi
10683       else
10684         # Otherwise we believe it is a complete path. Use it as it is.
10685         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10686 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10688 $as_echo_n "checking for UNIQ... " >&6; }
10689         if test ! -x "$tool_specified"; then
10690           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10691 $as_echo "not found" >&6; }
10692           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10693         fi
10694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10695 $as_echo "$tool_specified" >&6; }
10696       fi
10697     fi
10698   fi
10699 
10700 
10701 
10702   if test "x$UNIQ" = x; then
10703     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10704   fi
10705 
10706 
10707 
10708 
10709 
10710   # Publish this variable in the help.
10711 
10712 
10713   if test "x$WC" = x; then
10714     # The variable is not set by user, try to locate tool using the code snippet
10715     for ac_prog in wc
10716 do
10717   # Extract the first word of "$ac_prog", so it can be a program name with args.
10718 set dummy $ac_prog; ac_word=$2
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720 $as_echo_n "checking for $ac_word... " >&6; }
10721 if ${ac_cv_path_WC+:} false; then :
10722   $as_echo_n "(cached) " >&6
10723 else
10724   case $WC in
10725   [\\/]* | ?:[\\/]*)
10726   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10727   ;;
10728   *)
10729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10731 do
10732   IFS=$as_save_IFS
10733   test -z "$as_dir" && as_dir=.
10734     for ac_exec_ext in '' $ac_executable_extensions; do
10735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738     break 2
10739   fi
10740 done
10741   done
10742 IFS=$as_save_IFS
10743 
10744   ;;
10745 esac
10746 fi
10747 WC=$ac_cv_path_WC
10748 if test -n "$WC"; then
10749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10750 $as_echo "$WC" >&6; }
10751 else
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10754 fi
10755 
10756 
10757   test -n "$WC" && break
10758 done
10759 
10760   else
10761     # The variable is set, but is it from the command line or the environment?
10762 
10763     # Try to remove the string !WC! from our list.
10764     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10765     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10766       # If it failed, the variable was not from the command line. Ignore it,
10767       # but warn the user (except for BASH, which is always set by the calling BASH).
10768       if test "xWC" != xBASH; then
10769         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10770 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10771       fi
10772       # Try to locate tool using the code snippet
10773       for ac_prog in wc
10774 do
10775   # Extract the first word of "$ac_prog", so it can be a program name with args.
10776 set dummy $ac_prog; ac_word=$2
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 $as_echo_n "checking for $ac_word... " >&6; }
10779 if ${ac_cv_path_WC+:} false; then :
10780   $as_echo_n "(cached) " >&6
10781 else
10782   case $WC in
10783   [\\/]* | ?:[\\/]*)
10784   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10785   ;;
10786   *)
10787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788 for as_dir in $PATH
10789 do
10790   IFS=$as_save_IFS
10791   test -z "$as_dir" && as_dir=.
10792     for ac_exec_ext in '' $ac_executable_extensions; do
10793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10794     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10796     break 2
10797   fi
10798 done
10799   done
10800 IFS=$as_save_IFS
10801 
10802   ;;
10803 esac
10804 fi
10805 WC=$ac_cv_path_WC
10806 if test -n "$WC"; then
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10808 $as_echo "$WC" >&6; }
10809 else
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10812 fi
10813 
10814 
10815   test -n "$WC" && break
10816 done
10817 
10818     else
10819       # If it succeeded, then it was overridden by the user. We will use it
10820       # for the tool.
10821 
10822       # First remove it from the list of overridden variables, so we can test
10823       # for unknown variables in the end.
10824       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10825 
10826       # Check if the provided tool contains a complete path.
10827       tool_specified="$WC"
10828       tool_basename="${tool_specified##*/}"
10829       if test "x$tool_basename" = "x$tool_specified"; then
10830         # A command without a complete path is provided, search $PATH.
10831         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10832 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10833         # Extract the first word of "$tool_basename", so it can be a program name with args.
10834 set dummy $tool_basename; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if ${ac_cv_path_WC+:} false; then :
10838   $as_echo_n "(cached) " >&6
10839 else
10840   case $WC in
10841   [\\/]* | ?:[\\/]*)
10842   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10843   ;;
10844   *)
10845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10847 do
10848   IFS=$as_save_IFS
10849   test -z "$as_dir" && as_dir=.
10850     for ac_exec_ext in '' $ac_executable_extensions; do
10851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10852     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854     break 2
10855   fi
10856 done
10857   done
10858 IFS=$as_save_IFS
10859 
10860   ;;
10861 esac
10862 fi
10863 WC=$ac_cv_path_WC
10864 if test -n "$WC"; then
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10866 $as_echo "$WC" >&6; }
10867 else
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10870 fi
10871 
10872 
10873         if test "x$WC" = x; then
10874           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10875         fi
10876       else
10877         # Otherwise we believe it is a complete path. Use it as it is.
10878         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10879 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10881 $as_echo_n "checking for WC... " >&6; }
10882         if test ! -x "$tool_specified"; then
10883           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10884 $as_echo "not found" >&6; }
10885           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10886         fi
10887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10888 $as_echo "$tool_specified" >&6; }
10889       fi
10890     fi
10891   fi
10892 
10893 
10894 
10895   if test "x$WC" = x; then
10896     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10897   fi
10898 
10899 
10900 
10901 
10902 
10903   # Publish this variable in the help.
10904 
10905 
10906   if test "x$WHICH" = x; then
10907     # The variable is not set by user, try to locate tool using the code snippet
10908     for ac_prog in which
10909 do
10910   # Extract the first word of "$ac_prog", so it can be a program name with args.
10911 set dummy $ac_prog; ac_word=$2
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913 $as_echo_n "checking for $ac_word... " >&6; }
10914 if ${ac_cv_path_WHICH+:} false; then :
10915   $as_echo_n "(cached) " >&6
10916 else
10917   case $WHICH in
10918   [\\/]* | ?:[\\/]*)
10919   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10920   ;;
10921   *)
10922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10924 do
10925   IFS=$as_save_IFS
10926   test -z "$as_dir" && as_dir=.
10927     for ac_exec_ext in '' $ac_executable_extensions; do
10928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931     break 2
10932   fi
10933 done
10934   done
10935 IFS=$as_save_IFS
10936 
10937   ;;
10938 esac
10939 fi
10940 WHICH=$ac_cv_path_WHICH
10941 if test -n "$WHICH"; then
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10943 $as_echo "$WHICH" >&6; }
10944 else
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10947 fi
10948 
10949 
10950   test -n "$WHICH" && break
10951 done
10952 
10953   else
10954     # The variable is set, but is it from the command line or the environment?
10955 
10956     # Try to remove the string !WHICH! from our list.
10957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
10958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10959       # If it failed, the variable was not from the command line. Ignore it,
10960       # but warn the user (except for BASH, which is always set by the calling BASH).
10961       if test "xWHICH" != xBASH; then
10962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
10963 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
10964       fi
10965       # Try to locate tool using the code snippet
10966       for ac_prog in which
10967 do
10968   # Extract the first word of "$ac_prog", so it can be a program name with args.
10969 set dummy $ac_prog; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_path_WHICH+:} false; then :
10973   $as_echo_n "(cached) " >&6
10974 else
10975   case $WHICH in
10976   [\\/]* | ?:[\\/]*)
10977   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10978   ;;
10979   *)
10980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983   IFS=$as_save_IFS
10984   test -z "$as_dir" && as_dir=.
10985     for ac_exec_ext in '' $ac_executable_extensions; do
10986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989     break 2
10990   fi
10991 done
10992   done
10993 IFS=$as_save_IFS
10994 
10995   ;;
10996 esac
10997 fi
10998 WHICH=$ac_cv_path_WHICH
10999 if test -n "$WHICH"; then
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11001 $as_echo "$WHICH" >&6; }
11002 else
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006 
11007 
11008   test -n "$WHICH" && break
11009 done
11010 
11011     else
11012       # If it succeeded, then it was overridden by the user. We will use it
11013       # for the tool.
11014 
11015       # First remove it from the list of overridden variables, so we can test
11016       # for unknown variables in the end.
11017       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11018 
11019       # Check if the provided tool contains a complete path.
11020       tool_specified="$WHICH"
11021       tool_basename="${tool_specified##*/}"
11022       if test "x$tool_basename" = "x$tool_specified"; then
11023         # A command without a complete path is provided, search $PATH.
11024         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11025 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11026         # Extract the first word of "$tool_basename", so it can be a program name with args.
11027 set dummy $tool_basename; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if ${ac_cv_path_WHICH+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   case $WHICH in
11034   [\\/]* | ?:[\\/]*)
11035   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11036   ;;
11037   *)
11038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in $PATH
11040 do
11041   IFS=$as_save_IFS
11042   test -z "$as_dir" && as_dir=.
11043     for ac_exec_ext in '' $ac_executable_extensions; do
11044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11045     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047     break 2
11048   fi
11049 done
11050   done
11051 IFS=$as_save_IFS
11052 
11053   ;;
11054 esac
11055 fi
11056 WHICH=$ac_cv_path_WHICH
11057 if test -n "$WHICH"; then
11058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11059 $as_echo "$WHICH" >&6; }
11060 else
11061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11063 fi
11064 
11065 
11066         if test "x$WHICH" = x; then
11067           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11068         fi
11069       else
11070         # Otherwise we believe it is a complete path. Use it as it is.
11071         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11072 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11074 $as_echo_n "checking for WHICH... " >&6; }
11075         if test ! -x "$tool_specified"; then
11076           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11077 $as_echo "not found" >&6; }
11078           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11079         fi
11080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11081 $as_echo "$tool_specified" >&6; }
11082       fi
11083     fi
11084   fi
11085 
11086 
11087 
11088   if test "x$WHICH" = x; then
11089     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11090   fi
11091 
11092 
11093 
11094 
11095 
11096   # Publish this variable in the help.
11097 
11098 
11099   if test "x$XARGS" = x; then
11100     # The variable is not set by user, try to locate tool using the code snippet
11101     for ac_prog in xargs
11102 do
11103   # Extract the first word of "$ac_prog", so it can be a program name with args.
11104 set dummy $ac_prog; ac_word=$2
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106 $as_echo_n "checking for $ac_word... " >&6; }
11107 if ${ac_cv_path_XARGS+:} false; then :
11108   $as_echo_n "(cached) " >&6
11109 else
11110   case $XARGS in
11111   [\\/]* | ?:[\\/]*)
11112   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11113   ;;
11114   *)
11115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118   IFS=$as_save_IFS
11119   test -z "$as_dir" && as_dir=.
11120     for ac_exec_ext in '' $ac_executable_extensions; do
11121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124     break 2
11125   fi
11126 done
11127   done
11128 IFS=$as_save_IFS
11129 
11130   ;;
11131 esac
11132 fi
11133 XARGS=$ac_cv_path_XARGS
11134 if test -n "$XARGS"; then
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11136 $as_echo "$XARGS" >&6; }
11137 else
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11140 fi
11141 
11142 
11143   test -n "$XARGS" && break
11144 done
11145 
11146   else
11147     # The variable is set, but is it from the command line or the environment?
11148 
11149     # Try to remove the string !XARGS! from our list.
11150     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11151     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11152       # If it failed, the variable was not from the command line. Ignore it,
11153       # but warn the user (except for BASH, which is always set by the calling BASH).
11154       if test "xXARGS" != xBASH; then
11155         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11156 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11157       fi
11158       # Try to locate tool using the code snippet
11159       for ac_prog in xargs
11160 do
11161   # Extract the first word of "$ac_prog", so it can be a program name with args.
11162 set dummy $ac_prog; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if ${ac_cv_path_XARGS+:} false; then :
11166   $as_echo_n "(cached) " >&6
11167 else
11168   case $XARGS in
11169   [\\/]* | ?:[\\/]*)
11170   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11171   ;;
11172   *)
11173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11175 do
11176   IFS=$as_save_IFS
11177   test -z "$as_dir" && as_dir=.
11178     for ac_exec_ext in '' $ac_executable_extensions; do
11179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182     break 2
11183   fi
11184 done
11185   done
11186 IFS=$as_save_IFS
11187 
11188   ;;
11189 esac
11190 fi
11191 XARGS=$ac_cv_path_XARGS
11192 if test -n "$XARGS"; then
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11194 $as_echo "$XARGS" >&6; }
11195 else
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198 fi
11199 
11200 
11201   test -n "$XARGS" && break
11202 done
11203 
11204     else
11205       # If it succeeded, then it was overridden by the user. We will use it
11206       # for the tool.
11207 
11208       # First remove it from the list of overridden variables, so we can test
11209       # for unknown variables in the end.
11210       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11211 
11212       # Check if the provided tool contains a complete path.
11213       tool_specified="$XARGS"
11214       tool_basename="${tool_specified##*/}"
11215       if test "x$tool_basename" = "x$tool_specified"; then
11216         # A command without a complete path is provided, search $PATH.
11217         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11218 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11219         # Extract the first word of "$tool_basename", so it can be a program name with args.
11220 set dummy $tool_basename; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if ${ac_cv_path_XARGS+:} false; then :
11224   $as_echo_n "(cached) " >&6
11225 else
11226   case $XARGS in
11227   [\\/]* | ?:[\\/]*)
11228   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11229   ;;
11230   *)
11231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   test -z "$as_dir" && as_dir=.
11236     for ac_exec_ext in '' $ac_executable_extensions; do
11237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240     break 2
11241   fi
11242 done
11243   done
11244 IFS=$as_save_IFS
11245 
11246   ;;
11247 esac
11248 fi
11249 XARGS=$ac_cv_path_XARGS
11250 if test -n "$XARGS"; then
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11252 $as_echo "$XARGS" >&6; }
11253 else
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257 
11258 
11259         if test "x$XARGS" = x; then
11260           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11261         fi
11262       else
11263         # Otherwise we believe it is a complete path. Use it as it is.
11264         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11265 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11266         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11267 $as_echo_n "checking for XARGS... " >&6; }
11268         if test ! -x "$tool_specified"; then
11269           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11270 $as_echo "not found" >&6; }
11271           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11272         fi
11273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11274 $as_echo "$tool_specified" >&6; }
11275       fi
11276     fi
11277   fi
11278 
11279 
11280 
11281   if test "x$XARGS" = x; then
11282     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11283   fi
11284 
11285 
11286 
11287   # Then required tools that require some special treatment.
11288 
11289 
11290   # Publish this variable in the help.
11291 
11292 
11293   if test "x$AWK" = x; then
11294     # The variable is not set by user, try to locate tool using the code snippet
11295     for ac_prog in gawk mawk nawk awk
11296 do
11297   # Extract the first word of "$ac_prog", so it can be a program name with args.
11298 set dummy $ac_prog; ac_word=$2
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11300 $as_echo_n "checking for $ac_word... " >&6; }
11301 if ${ac_cv_prog_AWK+:} false; then :
11302   $as_echo_n "(cached) " >&6
11303 else
11304   if test -n "$AWK"; then
11305   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11306 else
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11309 do
11310   IFS=$as_save_IFS
11311   test -z "$as_dir" && as_dir=.
11312     for ac_exec_ext in '' $ac_executable_extensions; do
11313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11314     ac_cv_prog_AWK="$ac_prog"
11315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316     break 2
11317   fi
11318 done
11319   done
11320 IFS=$as_save_IFS
11321 
11322 fi
11323 fi
11324 AWK=$ac_cv_prog_AWK
11325 if test -n "$AWK"; then
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11327 $as_echo "$AWK" >&6; }
11328 else
11329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; }
11331 fi
11332 
11333 
11334   test -n "$AWK" && break
11335 done
11336 
11337   else
11338     # The variable is set, but is it from the command line or the environment?
11339 
11340     # Try to remove the string !AWK! from our list.
11341     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11342     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11343       # If it failed, the variable was not from the command line. Ignore it,
11344       # but warn the user (except for BASH, which is always set by the calling BASH).
11345       if test "xAWK" != xBASH; then
11346         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11347 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11348       fi
11349       # Try to locate tool using the code snippet
11350       for ac_prog in gawk mawk nawk awk
11351 do
11352   # Extract the first word of "$ac_prog", so it can be a program name with args.
11353 set dummy $ac_prog; ac_word=$2
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355 $as_echo_n "checking for $ac_word... " >&6; }
11356 if ${ac_cv_prog_AWK+:} false; then :
11357   $as_echo_n "(cached) " >&6
11358 else
11359   if test -n "$AWK"; then
11360   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11361 else
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11364 do
11365   IFS=$as_save_IFS
11366   test -z "$as_dir" && as_dir=.
11367     for ac_exec_ext in '' $ac_executable_extensions; do
11368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11369     ac_cv_prog_AWK="$ac_prog"
11370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371     break 2
11372   fi
11373 done
11374   done
11375 IFS=$as_save_IFS
11376 
11377 fi
11378 fi
11379 AWK=$ac_cv_prog_AWK
11380 if test -n "$AWK"; then
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11382 $as_echo "$AWK" >&6; }
11383 else
11384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11386 fi
11387 
11388 
11389   test -n "$AWK" && break
11390 done
11391 
11392     else
11393       # If it succeeded, then it was overridden by the user. We will use it
11394       # for the tool.
11395 
11396       # First remove it from the list of overridden variables, so we can test
11397       # for unknown variables in the end.
11398       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11399 
11400       # Check if the provided tool contains a complete path.
11401       tool_specified="$AWK"
11402       tool_basename="${tool_specified##*/}"
11403       if test "x$tool_basename" = "x$tool_specified"; then
11404         # A command without a complete path is provided, search $PATH.
11405         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11406 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11407         # Extract the first word of "$tool_basename", so it can be a program name with args.
11408 set dummy $tool_basename; ac_word=$2
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11410 $as_echo_n "checking for $ac_word... " >&6; }
11411 if ${ac_cv_path_AWK+:} false; then :
11412   $as_echo_n "(cached) " >&6
11413 else
11414   case $AWK in
11415   [\\/]* | ?:[\\/]*)
11416   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11417   ;;
11418   *)
11419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11421 do
11422   IFS=$as_save_IFS
11423   test -z "$as_dir" && as_dir=.
11424     for ac_exec_ext in '' $ac_executable_extensions; do
11425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11426     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428     break 2
11429   fi
11430 done
11431   done
11432 IFS=$as_save_IFS
11433 
11434   ;;
11435 esac
11436 fi
11437 AWK=$ac_cv_path_AWK
11438 if test -n "$AWK"; then
11439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11440 $as_echo "$AWK" >&6; }
11441 else
11442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11444 fi
11445 
11446 
11447         if test "x$AWK" = x; then
11448           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11449         fi
11450       else
11451         # Otherwise we believe it is a complete path. Use it as it is.
11452         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11453 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11454         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11455 $as_echo_n "checking for AWK... " >&6; }
11456         if test ! -x "$tool_specified"; then
11457           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11458 $as_echo "not found" >&6; }
11459           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11460         fi
11461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11462 $as_echo "$tool_specified" >&6; }
11463       fi
11464     fi
11465   fi
11466 
11467 
11468   if test "x$AWK" = x; then
11469     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11470   fi
11471 
11472 
11473 
11474 
11475   # Publish this variable in the help.
11476 
11477 
11478   if test "x$GREP" = x; then
11479     # The variable is not set by user, try to locate tool using the code snippet
11480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11481 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11482 if ${ac_cv_path_GREP+:} false; then :
11483   $as_echo_n "(cached) " >&6
11484 else
11485   if test -z "$GREP"; then
11486   ac_path_GREP_found=false
11487   # Loop through the user's path and test for each of PROGNAME-LIST
11488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11490 do
11491   IFS=$as_save_IFS
11492   test -z "$as_dir" && as_dir=.
11493     for ac_prog in grep ggrep; do
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11496       as_fn_executable_p "$ac_path_GREP" || continue
11497 # Check for GNU ac_path_GREP and select it if it is found.
11498   # Check for GNU $ac_path_GREP
11499 case `"$ac_path_GREP" --version 2>&1` in
11500 *GNU*)
11501   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11502 *)
11503   ac_count=0
11504   $as_echo_n 0123456789 >"conftest.in"
11505   while :
11506   do
11507     cat "conftest.in" "conftest.in" >"conftest.tmp"
11508     mv "conftest.tmp" "conftest.in"
11509     cp "conftest.in" "conftest.nl"
11510     $as_echo 'GREP' >> "conftest.nl"
11511     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11512     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11513     as_fn_arith $ac_count + 1 && ac_count=$as_val
11514     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11515       # Best one so far, save it but keep looking for a better one
11516       ac_cv_path_GREP="$ac_path_GREP"
11517       ac_path_GREP_max=$ac_count
11518     fi
11519     # 10*(2^10) chars as input seems more than enough
11520     test $ac_count -gt 10 && break
11521   done
11522   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11523 esac
11524 
11525       $ac_path_GREP_found && break 3
11526     done
11527   done
11528   done
11529 IFS=$as_save_IFS
11530   if test -z "$ac_cv_path_GREP"; then
11531     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11532   fi
11533 else
11534   ac_cv_path_GREP=$GREP
11535 fi
11536 
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11539 $as_echo "$ac_cv_path_GREP" >&6; }
11540  GREP="$ac_cv_path_GREP"
11541 
11542 
11543   else
11544     # The variable is set, but is it from the command line or the environment?
11545 
11546     # Try to remove the string !GREP! from our list.
11547     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11548     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11549       # If it failed, the variable was not from the command line. Ignore it,
11550       # but warn the user (except for BASH, which is always set by the calling BASH).
11551       if test "xGREP" != xBASH; then
11552         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11553 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11554       fi
11555       # Try to locate tool using the code snippet
11556       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11557 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11558 if ${ac_cv_path_GREP+:} false; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561   if test -z "$GREP"; then
11562   ac_path_GREP_found=false
11563   # Loop through the user's path and test for each of PROGNAME-LIST
11564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11566 do
11567   IFS=$as_save_IFS
11568   test -z "$as_dir" && as_dir=.
11569     for ac_prog in grep ggrep; do
11570     for ac_exec_ext in '' $ac_executable_extensions; do
11571       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11572       as_fn_executable_p "$ac_path_GREP" || continue
11573 # Check for GNU ac_path_GREP and select it if it is found.
11574   # Check for GNU $ac_path_GREP
11575 case `"$ac_path_GREP" --version 2>&1` in
11576 *GNU*)
11577   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11578 *)
11579   ac_count=0
11580   $as_echo_n 0123456789 >"conftest.in"
11581   while :
11582   do
11583     cat "conftest.in" "conftest.in" >"conftest.tmp"
11584     mv "conftest.tmp" "conftest.in"
11585     cp "conftest.in" "conftest.nl"
11586     $as_echo 'GREP' >> "conftest.nl"
11587     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11589     as_fn_arith $ac_count + 1 && ac_count=$as_val
11590     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11591       # Best one so far, save it but keep looking for a better one
11592       ac_cv_path_GREP="$ac_path_GREP"
11593       ac_path_GREP_max=$ac_count
11594     fi
11595     # 10*(2^10) chars as input seems more than enough
11596     test $ac_count -gt 10 && break
11597   done
11598   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11599 esac
11600 
11601       $ac_path_GREP_found && break 3
11602     done
11603   done
11604   done
11605 IFS=$as_save_IFS
11606   if test -z "$ac_cv_path_GREP"; then
11607     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11608   fi
11609 else
11610   ac_cv_path_GREP=$GREP
11611 fi
11612 
11613 fi
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11615 $as_echo "$ac_cv_path_GREP" >&6; }
11616  GREP="$ac_cv_path_GREP"
11617 
11618 
11619     else
11620       # If it succeeded, then it was overridden by the user. We will use it
11621       # for the tool.
11622 
11623       # First remove it from the list of overridden variables, so we can test
11624       # for unknown variables in the end.
11625       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11626 
11627       # Check if the provided tool contains a complete path.
11628       tool_specified="$GREP"
11629       tool_basename="${tool_specified##*/}"
11630       if test "x$tool_basename" = "x$tool_specified"; then
11631         # A command without a complete path is provided, search $PATH.
11632         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11633 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11634         # Extract the first word of "$tool_basename", so it can be a program name with args.
11635 set dummy $tool_basename; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if ${ac_cv_path_GREP+:} false; then :
11639   $as_echo_n "(cached) " >&6
11640 else
11641   case $GREP in
11642   [\\/]* | ?:[\\/]*)
11643   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11644   ;;
11645   *)
11646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11648 do
11649   IFS=$as_save_IFS
11650   test -z "$as_dir" && as_dir=.
11651     for ac_exec_ext in '' $ac_executable_extensions; do
11652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11653     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655     break 2
11656   fi
11657 done
11658   done
11659 IFS=$as_save_IFS
11660 
11661   ;;
11662 esac
11663 fi
11664 GREP=$ac_cv_path_GREP
11665 if test -n "$GREP"; then
11666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11667 $as_echo "$GREP" >&6; }
11668 else
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11671 fi
11672 
11673 
11674         if test "x$GREP" = x; then
11675           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11676         fi
11677       else
11678         # Otherwise we believe it is a complete path. Use it as it is.
11679         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11680 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11682 $as_echo_n "checking for GREP... " >&6; }
11683         if test ! -x "$tool_specified"; then
11684           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11685 $as_echo "not found" >&6; }
11686           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11687         fi
11688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11689 $as_echo "$tool_specified" >&6; }
11690       fi
11691     fi
11692   fi
11693 
11694 
11695   if test "x$GREP" = x; then
11696     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11697   fi
11698 
11699 
11700 
11701 
11702   # Publish this variable in the help.
11703 
11704 
11705   if test "x$EGREP" = x; then
11706     # The variable is not set by user, try to locate tool using the code snippet
11707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11708 $as_echo_n "checking for egrep... " >&6; }
11709 if ${ac_cv_path_EGREP+:} false; then :
11710   $as_echo_n "(cached) " >&6
11711 else
11712   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11713    then ac_cv_path_EGREP="$GREP -E"
11714    else
11715      if test -z "$EGREP"; then
11716   ac_path_EGREP_found=false
11717   # Loop through the user's path and test for each of PROGNAME-LIST
11718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11720 do
11721   IFS=$as_save_IFS
11722   test -z "$as_dir" && as_dir=.
11723     for ac_prog in egrep; do
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11726       as_fn_executable_p "$ac_path_EGREP" || continue
11727 # Check for GNU ac_path_EGREP and select it if it is found.
11728   # Check for GNU $ac_path_EGREP
11729 case `"$ac_path_EGREP" --version 2>&1` in
11730 *GNU*)
11731   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11732 *)
11733   ac_count=0
11734   $as_echo_n 0123456789 >"conftest.in"
11735   while :
11736   do
11737     cat "conftest.in" "conftest.in" >"conftest.tmp"
11738     mv "conftest.tmp" "conftest.in"
11739     cp "conftest.in" "conftest.nl"
11740     $as_echo 'EGREP' >> "conftest.nl"
11741     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11742     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11743     as_fn_arith $ac_count + 1 && ac_count=$as_val
11744     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11745       # Best one so far, save it but keep looking for a better one
11746       ac_cv_path_EGREP="$ac_path_EGREP"
11747       ac_path_EGREP_max=$ac_count
11748     fi
11749     # 10*(2^10) chars as input seems more than enough
11750     test $ac_count -gt 10 && break
11751   done
11752   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11753 esac
11754 
11755       $ac_path_EGREP_found && break 3
11756     done
11757   done
11758   done
11759 IFS=$as_save_IFS
11760   if test -z "$ac_cv_path_EGREP"; then
11761     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11762   fi
11763 else
11764   ac_cv_path_EGREP=$EGREP
11765 fi
11766 
11767    fi
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11770 $as_echo "$ac_cv_path_EGREP" >&6; }
11771  EGREP="$ac_cv_path_EGREP"
11772 
11773 
11774   else
11775     # The variable is set, but is it from the command line or the environment?
11776 
11777     # Try to remove the string !EGREP! from our list.
11778     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11779     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11780       # If it failed, the variable was not from the command line. Ignore it,
11781       # but warn the user (except for BASH, which is always set by the calling BASH).
11782       if test "xEGREP" != xBASH; then
11783         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11784 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11785       fi
11786       # Try to locate tool using the code snippet
11787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11788 $as_echo_n "checking for egrep... " >&6; }
11789 if ${ac_cv_path_EGREP+:} false; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11793    then ac_cv_path_EGREP="$GREP -E"
11794    else
11795      if test -z "$EGREP"; then
11796   ac_path_EGREP_found=false
11797   # Loop through the user's path and test for each of PROGNAME-LIST
11798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11800 do
11801   IFS=$as_save_IFS
11802   test -z "$as_dir" && as_dir=.
11803     for ac_prog in egrep; do
11804     for ac_exec_ext in '' $ac_executable_extensions; do
11805       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11806       as_fn_executable_p "$ac_path_EGREP" || continue
11807 # Check for GNU ac_path_EGREP and select it if it is found.
11808   # Check for GNU $ac_path_EGREP
11809 case `"$ac_path_EGREP" --version 2>&1` in
11810 *GNU*)
11811   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11812 *)
11813   ac_count=0
11814   $as_echo_n 0123456789 >"conftest.in"
11815   while :
11816   do
11817     cat "conftest.in" "conftest.in" >"conftest.tmp"
11818     mv "conftest.tmp" "conftest.in"
11819     cp "conftest.in" "conftest.nl"
11820     $as_echo 'EGREP' >> "conftest.nl"
11821     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11822     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11823     as_fn_arith $ac_count + 1 && ac_count=$as_val
11824     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11825       # Best one so far, save it but keep looking for a better one
11826       ac_cv_path_EGREP="$ac_path_EGREP"
11827       ac_path_EGREP_max=$ac_count
11828     fi
11829     # 10*(2^10) chars as input seems more than enough
11830     test $ac_count -gt 10 && break
11831   done
11832   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11833 esac
11834 
11835       $ac_path_EGREP_found && break 3
11836     done
11837   done
11838   done
11839 IFS=$as_save_IFS
11840   if test -z "$ac_cv_path_EGREP"; then
11841     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11842   fi
11843 else
11844   ac_cv_path_EGREP=$EGREP
11845 fi
11846 
11847    fi
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11850 $as_echo "$ac_cv_path_EGREP" >&6; }
11851  EGREP="$ac_cv_path_EGREP"
11852 
11853 
11854     else
11855       # If it succeeded, then it was overridden by the user. We will use it
11856       # for the tool.
11857 
11858       # First remove it from the list of overridden variables, so we can test
11859       # for unknown variables in the end.
11860       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11861 
11862       # Check if the provided tool contains a complete path.
11863       tool_specified="$EGREP"
11864       tool_basename="${tool_specified##*/}"
11865       if test "x$tool_basename" = "x$tool_specified"; then
11866         # A command without a complete path is provided, search $PATH.
11867         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11868 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11869         # Extract the first word of "$tool_basename", so it can be a program name with args.
11870 set dummy $tool_basename; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if ${ac_cv_path_EGREP+:} false; then :
11874   $as_echo_n "(cached) " >&6
11875 else
11876   case $EGREP in
11877   [\\/]* | ?:[\\/]*)
11878   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11879   ;;
11880   *)
11881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882 for as_dir in $PATH
11883 do
11884   IFS=$as_save_IFS
11885   test -z "$as_dir" && as_dir=.
11886     for ac_exec_ext in '' $ac_executable_extensions; do
11887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11888     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11890     break 2
11891   fi
11892 done
11893   done
11894 IFS=$as_save_IFS
11895 
11896   ;;
11897 esac
11898 fi
11899 EGREP=$ac_cv_path_EGREP
11900 if test -n "$EGREP"; then
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11902 $as_echo "$EGREP" >&6; }
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907 
11908 
11909         if test "x$EGREP" = x; then
11910           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11911         fi
11912       else
11913         # Otherwise we believe it is a complete path. Use it as it is.
11914         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11915 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11916         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11917 $as_echo_n "checking for EGREP... " >&6; }
11918         if test ! -x "$tool_specified"; then
11919           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11920 $as_echo "not found" >&6; }
11921           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11922         fi
11923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11924 $as_echo "$tool_specified" >&6; }
11925       fi
11926     fi
11927   fi
11928 
11929 
11930   if test "x$EGREP" = x; then
11931     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
11932   fi
11933 
11934 
11935 
11936 
11937   # Publish this variable in the help.
11938 
11939 
11940   if test "x$FGREP" = x; then
11941     # The variable is not set by user, try to locate tool using the code snippet
11942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11943 $as_echo_n "checking for fgrep... " >&6; }
11944 if ${ac_cv_path_FGREP+:} false; then :
11945   $as_echo_n "(cached) " >&6
11946 else
11947   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11948    then ac_cv_path_FGREP="$GREP -F"
11949    else
11950      if test -z "$FGREP"; then
11951   ac_path_FGREP_found=false
11952   # Loop through the user's path and test for each of PROGNAME-LIST
11953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11955 do
11956   IFS=$as_save_IFS
11957   test -z "$as_dir" && as_dir=.
11958     for ac_prog in fgrep; do
11959     for ac_exec_ext in '' $ac_executable_extensions; do
11960       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11961       as_fn_executable_p "$ac_path_FGREP" || continue
11962 # Check for GNU ac_path_FGREP and select it if it is found.
11963   # Check for GNU $ac_path_FGREP
11964 case `"$ac_path_FGREP" --version 2>&1` in
11965 *GNU*)
11966   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11967 *)
11968   ac_count=0
11969   $as_echo_n 0123456789 >"conftest.in"
11970   while :
11971   do
11972     cat "conftest.in" "conftest.in" >"conftest.tmp"
11973     mv "conftest.tmp" "conftest.in"
11974     cp "conftest.in" "conftest.nl"
11975     $as_echo 'FGREP' >> "conftest.nl"
11976     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11977     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11978     as_fn_arith $ac_count + 1 && ac_count=$as_val
11979     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11980       # Best one so far, save it but keep looking for a better one
11981       ac_cv_path_FGREP="$ac_path_FGREP"
11982       ac_path_FGREP_max=$ac_count
11983     fi
11984     # 10*(2^10) chars as input seems more than enough
11985     test $ac_count -gt 10 && break
11986   done
11987   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11988 esac
11989 
11990       $ac_path_FGREP_found && break 3
11991     done
11992   done
11993   done
11994 IFS=$as_save_IFS
11995   if test -z "$ac_cv_path_FGREP"; then
11996     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11997   fi
11998 else
11999   ac_cv_path_FGREP=$FGREP
12000 fi
12001 
12002    fi
12003 fi
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12005 $as_echo "$ac_cv_path_FGREP" >&6; }
12006  FGREP="$ac_cv_path_FGREP"
12007 
12008 
12009   else
12010     # The variable is set, but is it from the command line or the environment?
12011 
12012     # Try to remove the string !FGREP! from our list.
12013     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12014     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12015       # If it failed, the variable was not from the command line. Ignore it,
12016       # but warn the user (except for BASH, which is always set by the calling BASH).
12017       if test "xFGREP" != xBASH; then
12018         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12019 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12020       fi
12021       # Try to locate tool using the code snippet
12022       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12023 $as_echo_n "checking for fgrep... " >&6; }
12024 if ${ac_cv_path_FGREP+:} false; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12028    then ac_cv_path_FGREP="$GREP -F"
12029    else
12030      if test -z "$FGREP"; then
12031   ac_path_FGREP_found=false
12032   # Loop through the user's path and test for each of PROGNAME-LIST
12033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12035 do
12036   IFS=$as_save_IFS
12037   test -z "$as_dir" && as_dir=.
12038     for ac_prog in fgrep; do
12039     for ac_exec_ext in '' $ac_executable_extensions; do
12040       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12041       as_fn_executable_p "$ac_path_FGREP" || continue
12042 # Check for GNU ac_path_FGREP and select it if it is found.
12043   # Check for GNU $ac_path_FGREP
12044 case `"$ac_path_FGREP" --version 2>&1` in
12045 *GNU*)
12046   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12047 *)
12048   ac_count=0
12049   $as_echo_n 0123456789 >"conftest.in"
12050   while :
12051   do
12052     cat "conftest.in" "conftest.in" >"conftest.tmp"
12053     mv "conftest.tmp" "conftest.in"
12054     cp "conftest.in" "conftest.nl"
12055     $as_echo 'FGREP' >> "conftest.nl"
12056     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12057     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12058     as_fn_arith $ac_count + 1 && ac_count=$as_val
12059     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12060       # Best one so far, save it but keep looking for a better one
12061       ac_cv_path_FGREP="$ac_path_FGREP"
12062       ac_path_FGREP_max=$ac_count
12063     fi
12064     # 10*(2^10) chars as input seems more than enough
12065     test $ac_count -gt 10 && break
12066   done
12067   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12068 esac
12069 
12070       $ac_path_FGREP_found && break 3
12071     done
12072   done
12073   done
12074 IFS=$as_save_IFS
12075   if test -z "$ac_cv_path_FGREP"; then
12076     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12077   fi
12078 else
12079   ac_cv_path_FGREP=$FGREP
12080 fi
12081 
12082    fi
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12085 $as_echo "$ac_cv_path_FGREP" >&6; }
12086  FGREP="$ac_cv_path_FGREP"
12087 
12088 
12089     else
12090       # If it succeeded, then it was overridden by the user. We will use it
12091       # for the tool.
12092 
12093       # First remove it from the list of overridden variables, so we can test
12094       # for unknown variables in the end.
12095       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12096 
12097       # Check if the provided tool contains a complete path.
12098       tool_specified="$FGREP"
12099       tool_basename="${tool_specified##*/}"
12100       if test "x$tool_basename" = "x$tool_specified"; then
12101         # A command without a complete path is provided, search $PATH.
12102         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12103 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12104         # Extract the first word of "$tool_basename", so it can be a program name with args.
12105 set dummy $tool_basename; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if ${ac_cv_path_FGREP+:} false; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   case $FGREP in
12112   [\\/]* | ?:[\\/]*)
12113   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12114   ;;
12115   *)
12116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12118 do
12119   IFS=$as_save_IFS
12120   test -z "$as_dir" && as_dir=.
12121     for ac_exec_ext in '' $ac_executable_extensions; do
12122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125     break 2
12126   fi
12127 done
12128   done
12129 IFS=$as_save_IFS
12130 
12131   ;;
12132 esac
12133 fi
12134 FGREP=$ac_cv_path_FGREP
12135 if test -n "$FGREP"; then
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12137 $as_echo "$FGREP" >&6; }
12138 else
12139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12141 fi
12142 
12143 
12144         if test "x$FGREP" = x; then
12145           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12146         fi
12147       else
12148         # Otherwise we believe it is a complete path. Use it as it is.
12149         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12150 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12152 $as_echo_n "checking for FGREP... " >&6; }
12153         if test ! -x "$tool_specified"; then
12154           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12155 $as_echo "not found" >&6; }
12156           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12157         fi
12158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12159 $as_echo "$tool_specified" >&6; }
12160       fi
12161     fi
12162   fi
12163 
12164 
12165   if test "x$FGREP" = x; then
12166     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12167   fi
12168 
12169 
12170 
12171 
12172   # Publish this variable in the help.
12173 
12174 
12175   if test "x$SED" = x; then
12176     # The variable is not set by user, try to locate tool using the code snippet
12177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12178 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12179 if ${ac_cv_path_SED+:} false; then :
12180   $as_echo_n "(cached) " >&6
12181 else
12182             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12183      for ac_i in 1 2 3 4 5 6 7; do
12184        ac_script="$ac_script$as_nl$ac_script"
12185      done
12186      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12187      { ac_script=; unset ac_script;}
12188      if test -z "$SED"; then
12189   ac_path_SED_found=false
12190   # Loop through the user's path and test for each of PROGNAME-LIST
12191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12193 do
12194   IFS=$as_save_IFS
12195   test -z "$as_dir" && as_dir=.
12196     for ac_prog in sed gsed; do
12197     for ac_exec_ext in '' $ac_executable_extensions; do
12198       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12199       as_fn_executable_p "$ac_path_SED" || continue
12200 # Check for GNU ac_path_SED and select it if it is found.
12201   # Check for GNU $ac_path_SED
12202 case `"$ac_path_SED" --version 2>&1` in
12203 *GNU*)
12204   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12205 *)
12206   ac_count=0
12207   $as_echo_n 0123456789 >"conftest.in"
12208   while :
12209   do
12210     cat "conftest.in" "conftest.in" >"conftest.tmp"
12211     mv "conftest.tmp" "conftest.in"
12212     cp "conftest.in" "conftest.nl"
12213     $as_echo '' >> "conftest.nl"
12214     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12215     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12216     as_fn_arith $ac_count + 1 && ac_count=$as_val
12217     if test $ac_count -gt ${ac_path_SED_max-0}; then
12218       # Best one so far, save it but keep looking for a better one
12219       ac_cv_path_SED="$ac_path_SED"
12220       ac_path_SED_max=$ac_count
12221     fi
12222     # 10*(2^10) chars as input seems more than enough
12223     test $ac_count -gt 10 && break
12224   done
12225   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12226 esac
12227 
12228       $ac_path_SED_found && break 3
12229     done
12230   done
12231   done
12232 IFS=$as_save_IFS
12233   if test -z "$ac_cv_path_SED"; then
12234     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12235   fi
12236 else
12237   ac_cv_path_SED=$SED
12238 fi
12239 
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12242 $as_echo "$ac_cv_path_SED" >&6; }
12243  SED="$ac_cv_path_SED"
12244   rm -f conftest.sed
12245 
12246   else
12247     # The variable is set, but is it from the command line or the environment?
12248 
12249     # Try to remove the string !SED! from our list.
12250     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12251     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12252       # If it failed, the variable was not from the command line. Ignore it,
12253       # but warn the user (except for BASH, which is always set by the calling BASH).
12254       if test "xSED" != xBASH; then
12255         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12256 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12257       fi
12258       # Try to locate tool using the code snippet
12259       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12260 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12261 if ${ac_cv_path_SED+:} false; then :
12262   $as_echo_n "(cached) " >&6
12263 else
12264             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12265      for ac_i in 1 2 3 4 5 6 7; do
12266        ac_script="$ac_script$as_nl$ac_script"
12267      done
12268      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12269      { ac_script=; unset ac_script;}
12270      if test -z "$SED"; then
12271   ac_path_SED_found=false
12272   # Loop through the user's path and test for each of PROGNAME-LIST
12273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12275 do
12276   IFS=$as_save_IFS
12277   test -z "$as_dir" && as_dir=.
12278     for ac_prog in sed gsed; do
12279     for ac_exec_ext in '' $ac_executable_extensions; do
12280       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12281       as_fn_executable_p "$ac_path_SED" || continue
12282 # Check for GNU ac_path_SED and select it if it is found.
12283   # Check for GNU $ac_path_SED
12284 case `"$ac_path_SED" --version 2>&1` in
12285 *GNU*)
12286   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12287 *)
12288   ac_count=0
12289   $as_echo_n 0123456789 >"conftest.in"
12290   while :
12291   do
12292     cat "conftest.in" "conftest.in" >"conftest.tmp"
12293     mv "conftest.tmp" "conftest.in"
12294     cp "conftest.in" "conftest.nl"
12295     $as_echo '' >> "conftest.nl"
12296     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12297     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12298     as_fn_arith $ac_count + 1 && ac_count=$as_val
12299     if test $ac_count -gt ${ac_path_SED_max-0}; then
12300       # Best one so far, save it but keep looking for a better one
12301       ac_cv_path_SED="$ac_path_SED"
12302       ac_path_SED_max=$ac_count
12303     fi
12304     # 10*(2^10) chars as input seems more than enough
12305     test $ac_count -gt 10 && break
12306   done
12307   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12308 esac
12309 
12310       $ac_path_SED_found && break 3
12311     done
12312   done
12313   done
12314 IFS=$as_save_IFS
12315   if test -z "$ac_cv_path_SED"; then
12316     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12317   fi
12318 else
12319   ac_cv_path_SED=$SED
12320 fi
12321 
12322 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12324 $as_echo "$ac_cv_path_SED" >&6; }
12325  SED="$ac_cv_path_SED"
12326   rm -f conftest.sed
12327 
12328     else
12329       # If it succeeded, then it was overridden by the user. We will use it
12330       # for the tool.
12331 
12332       # First remove it from the list of overridden variables, so we can test
12333       # for unknown variables in the end.
12334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12335 
12336       # Check if the provided tool contains a complete path.
12337       tool_specified="$SED"
12338       tool_basename="${tool_specified##*/}"
12339       if test "x$tool_basename" = "x$tool_specified"; then
12340         # A command without a complete path is provided, search $PATH.
12341         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12342 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12343         # Extract the first word of "$tool_basename", so it can be a program name with args.
12344 set dummy $tool_basename; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 $as_echo_n "checking for $ac_word... " >&6; }
12347 if ${ac_cv_path_SED+:} false; then :
12348   $as_echo_n "(cached) " >&6
12349 else
12350   case $SED in
12351   [\\/]* | ?:[\\/]*)
12352   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12353   ;;
12354   *)
12355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12357 do
12358   IFS=$as_save_IFS
12359   test -z "$as_dir" && as_dir=.
12360     for ac_exec_ext in '' $ac_executable_extensions; do
12361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364     break 2
12365   fi
12366 done
12367   done
12368 IFS=$as_save_IFS
12369 
12370   ;;
12371 esac
12372 fi
12373 SED=$ac_cv_path_SED
12374 if test -n "$SED"; then
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12376 $as_echo "$SED" >&6; }
12377 else
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12380 fi
12381 
12382 
12383         if test "x$SED" = x; then
12384           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12385         fi
12386       else
12387         # Otherwise we believe it is a complete path. Use it as it is.
12388         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12389 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12391 $as_echo_n "checking for SED... " >&6; }
12392         if test ! -x "$tool_specified"; then
12393           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12394 $as_echo "not found" >&6; }
12395           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12396         fi
12397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12398 $as_echo "$tool_specified" >&6; }
12399       fi
12400     fi
12401   fi
12402 
12403 
12404   if test "x$SED" = x; then
12405     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12406   fi
12407 
12408 
12409 
12410   # Always force rm.
12411   RM="$RM -f"
12412 
12413   # pwd behaves differently on various platforms and some don't support the -L flag.
12414   # Always use the bash builtin pwd to get uniform behavior.
12415   THEPWDCMD=pwd
12416 
12417   # These are not required on all platforms
12418 
12419 
12420   # Publish this variable in the help.
12421 
12422 
12423   if test "x$CYGPATH" = x; then
12424     # The variable is not set by user, try to locate tool using the code snippet
12425     for ac_prog in cygpath
12426 do
12427   # Extract the first word of "$ac_prog", so it can be a program name with args.
12428 set dummy $ac_prog; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if ${ac_cv_path_CYGPATH+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   case $CYGPATH in
12435   [\\/]* | ?:[\\/]*)
12436   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12437   ;;
12438   *)
12439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12441 do
12442   IFS=$as_save_IFS
12443   test -z "$as_dir" && as_dir=.
12444     for ac_exec_ext in '' $ac_executable_extensions; do
12445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448     break 2
12449   fi
12450 done
12451   done
12452 IFS=$as_save_IFS
12453 
12454   ;;
12455 esac
12456 fi
12457 CYGPATH=$ac_cv_path_CYGPATH
12458 if test -n "$CYGPATH"; then
12459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12460 $as_echo "$CYGPATH" >&6; }
12461 else
12462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12464 fi
12465 
12466 
12467   test -n "$CYGPATH" && break
12468 done
12469 
12470   else
12471     # The variable is set, but is it from the command line or the environment?
12472 
12473     # Try to remove the string !CYGPATH! from our list.
12474     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12475     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12476       # If it failed, the variable was not from the command line. Ignore it,
12477       # but warn the user (except for BASH, which is always set by the calling BASH).
12478       if test "xCYGPATH" != xBASH; then
12479         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12480 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12481       fi
12482       # Try to locate tool using the code snippet
12483       for ac_prog in cygpath
12484 do
12485   # Extract the first word of "$ac_prog", so it can be a program name with args.
12486 set dummy $ac_prog; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_path_CYGPATH+:} false; then :
12490   $as_echo_n "(cached) " >&6
12491 else
12492   case $CYGPATH in
12493   [\\/]* | ?:[\\/]*)
12494   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12495   ;;
12496   *)
12497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12499 do
12500   IFS=$as_save_IFS
12501   test -z "$as_dir" && as_dir=.
12502     for ac_exec_ext in '' $ac_executable_extensions; do
12503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12504     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12506     break 2
12507   fi
12508 done
12509   done
12510 IFS=$as_save_IFS
12511 
12512   ;;
12513 esac
12514 fi
12515 CYGPATH=$ac_cv_path_CYGPATH
12516 if test -n "$CYGPATH"; then
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12518 $as_echo "$CYGPATH" >&6; }
12519 else
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12522 fi
12523 
12524 
12525   test -n "$CYGPATH" && break
12526 done
12527 
12528     else
12529       # If it succeeded, then it was overridden by the user. We will use it
12530       # for the tool.
12531 
12532       # First remove it from the list of overridden variables, so we can test
12533       # for unknown variables in the end.
12534       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12535 
12536       # Check if the provided tool contains a complete path.
12537       tool_specified="$CYGPATH"
12538       tool_basename="${tool_specified##*/}"
12539       if test "x$tool_basename" = "x$tool_specified"; then
12540         # A command without a complete path is provided, search $PATH.
12541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12542 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12543         # Extract the first word of "$tool_basename", so it can be a program name with args.
12544 set dummy $tool_basename; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if ${ac_cv_path_CYGPATH+:} false; then :
12548   $as_echo_n "(cached) " >&6
12549 else
12550   case $CYGPATH in
12551   [\\/]* | ?:[\\/]*)
12552   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12553   ;;
12554   *)
12555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12557 do
12558   IFS=$as_save_IFS
12559   test -z "$as_dir" && as_dir=.
12560     for ac_exec_ext in '' $ac_executable_extensions; do
12561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564     break 2
12565   fi
12566 done
12567   done
12568 IFS=$as_save_IFS
12569 
12570   ;;
12571 esac
12572 fi
12573 CYGPATH=$ac_cv_path_CYGPATH
12574 if test -n "$CYGPATH"; then
12575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12576 $as_echo "$CYGPATH" >&6; }
12577 else
12578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581 
12582 
12583         if test "x$CYGPATH" = x; then
12584           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12585         fi
12586       else
12587         # Otherwise we believe it is a complete path. Use it as it is.
12588         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12589 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12591 $as_echo_n "checking for CYGPATH... " >&6; }
12592         if test ! -x "$tool_specified"; then
12593           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12594 $as_echo "not found" >&6; }
12595           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12596         fi
12597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12598 $as_echo "$tool_specified" >&6; }
12599       fi
12600     fi
12601   fi
12602 
12603 
12604 
12605 
12606   # Publish this variable in the help.
12607 
12608 
12609   if test "x$READLINK" = x; then
12610     # The variable is not set by user, try to locate tool using the code snippet
12611     for ac_prog in greadlink readlink
12612 do
12613   # Extract the first word of "$ac_prog", so it can be a program name with args.
12614 set dummy $ac_prog; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if ${ac_cv_path_READLINK+:} false; then :
12618   $as_echo_n "(cached) " >&6
12619 else
12620   case $READLINK in
12621   [\\/]* | ?:[\\/]*)
12622   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12623   ;;
12624   *)
12625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12627 do
12628   IFS=$as_save_IFS
12629   test -z "$as_dir" && as_dir=.
12630     for ac_exec_ext in '' $ac_executable_extensions; do
12631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12632     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634     break 2
12635   fi
12636 done
12637   done
12638 IFS=$as_save_IFS
12639 
12640   ;;
12641 esac
12642 fi
12643 READLINK=$ac_cv_path_READLINK
12644 if test -n "$READLINK"; then
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12646 $as_echo "$READLINK" >&6; }
12647 else
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12650 fi
12651 
12652 
12653   test -n "$READLINK" && break
12654 done
12655 
12656   else
12657     # The variable is set, but is it from the command line or the environment?
12658 
12659     # Try to remove the string !READLINK! from our list.
12660     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12661     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12662       # If it failed, the variable was not from the command line. Ignore it,
12663       # but warn the user (except for BASH, which is always set by the calling BASH).
12664       if test "xREADLINK" != xBASH; then
12665         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12666 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12667       fi
12668       # Try to locate tool using the code snippet
12669       for ac_prog in greadlink readlink
12670 do
12671   # Extract the first word of "$ac_prog", so it can be a program name with args.
12672 set dummy $ac_prog; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if ${ac_cv_path_READLINK+:} false; then :
12676   $as_echo_n "(cached) " >&6
12677 else
12678   case $READLINK in
12679   [\\/]* | ?:[\\/]*)
12680   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12681   ;;
12682   *)
12683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684 for as_dir in $PATH
12685 do
12686   IFS=$as_save_IFS
12687   test -z "$as_dir" && as_dir=.
12688     for ac_exec_ext in '' $ac_executable_extensions; do
12689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12690     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12692     break 2
12693   fi
12694 done
12695   done
12696 IFS=$as_save_IFS
12697 
12698   ;;
12699 esac
12700 fi
12701 READLINK=$ac_cv_path_READLINK
12702 if test -n "$READLINK"; then
12703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12704 $as_echo "$READLINK" >&6; }
12705 else
12706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709 
12710 
12711   test -n "$READLINK" && break
12712 done
12713 
12714     else
12715       # If it succeeded, then it was overridden by the user. We will use it
12716       # for the tool.
12717 
12718       # First remove it from the list of overridden variables, so we can test
12719       # for unknown variables in the end.
12720       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12721 
12722       # Check if the provided tool contains a complete path.
12723       tool_specified="$READLINK"
12724       tool_basename="${tool_specified##*/}"
12725       if test "x$tool_basename" = "x$tool_specified"; then
12726         # A command without a complete path is provided, search $PATH.
12727         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12728 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12729         # Extract the first word of "$tool_basename", so it can be a program name with args.
12730 set dummy $tool_basename; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if ${ac_cv_path_READLINK+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736   case $READLINK in
12737   [\\/]* | ?:[\\/]*)
12738   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12739   ;;
12740   *)
12741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744   IFS=$as_save_IFS
12745   test -z "$as_dir" && as_dir=.
12746     for ac_exec_ext in '' $ac_executable_extensions; do
12747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12748     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750     break 2
12751   fi
12752 done
12753   done
12754 IFS=$as_save_IFS
12755 
12756   ;;
12757 esac
12758 fi
12759 READLINK=$ac_cv_path_READLINK
12760 if test -n "$READLINK"; then
12761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12762 $as_echo "$READLINK" >&6; }
12763 else
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12766 fi
12767 
12768 
12769         if test "x$READLINK" = x; then
12770           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12771         fi
12772       else
12773         # Otherwise we believe it is a complete path. Use it as it is.
12774         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12775 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12777 $as_echo_n "checking for READLINK... " >&6; }
12778         if test ! -x "$tool_specified"; then
12779           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12780 $as_echo "not found" >&6; }
12781           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12782         fi
12783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12784 $as_echo "$tool_specified" >&6; }
12785       fi
12786     fi
12787   fi
12788 
12789 
12790 
12791 
12792   # Publish this variable in the help.
12793 
12794 
12795   if test "x$DF" = x; then
12796     # The variable is not set by user, try to locate tool using the code snippet
12797     for ac_prog in df
12798 do
12799   # Extract the first word of "$ac_prog", so it can be a program name with args.
12800 set dummy $ac_prog; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if ${ac_cv_path_DF+:} false; then :
12804   $as_echo_n "(cached) " >&6
12805 else
12806   case $DF in
12807   [\\/]* | ?:[\\/]*)
12808   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12809   ;;
12810   *)
12811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814   IFS=$as_save_IFS
12815   test -z "$as_dir" && as_dir=.
12816     for ac_exec_ext in '' $ac_executable_extensions; do
12817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12818     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820     break 2
12821   fi
12822 done
12823   done
12824 IFS=$as_save_IFS
12825 
12826   ;;
12827 esac
12828 fi
12829 DF=$ac_cv_path_DF
12830 if test -n "$DF"; then
12831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12832 $as_echo "$DF" >&6; }
12833 else
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837 
12838 
12839   test -n "$DF" && break
12840 done
12841 
12842   else
12843     # The variable is set, but is it from the command line or the environment?
12844 
12845     # Try to remove the string !DF! from our list.
12846     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12847     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12848       # If it failed, the variable was not from the command line. Ignore it,
12849       # but warn the user (except for BASH, which is always set by the calling BASH).
12850       if test "xDF" != xBASH; then
12851         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12852 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12853       fi
12854       # Try to locate tool using the code snippet
12855       for ac_prog in df
12856 do
12857   # Extract the first word of "$ac_prog", so it can be a program name with args.
12858 set dummy $ac_prog; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_path_DF+:} false; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   case $DF in
12865   [\\/]* | ?:[\\/]*)
12866   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12867   ;;
12868   *)
12869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874     for ac_exec_ext in '' $ac_executable_extensions; do
12875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12876     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881   done
12882 IFS=$as_save_IFS
12883 
12884   ;;
12885 esac
12886 fi
12887 DF=$ac_cv_path_DF
12888 if test -n "$DF"; then
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12890 $as_echo "$DF" >&6; }
12891 else
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895 
12896 
12897   test -n "$DF" && break
12898 done
12899 
12900     else
12901       # If it succeeded, then it was overridden by the user. We will use it
12902       # for the tool.
12903 
12904       # First remove it from the list of overridden variables, so we can test
12905       # for unknown variables in the end.
12906       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12907 
12908       # Check if the provided tool contains a complete path.
12909       tool_specified="$DF"
12910       tool_basename="${tool_specified##*/}"
12911       if test "x$tool_basename" = "x$tool_specified"; then
12912         # A command without a complete path is provided, search $PATH.
12913         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12914 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12915         # Extract the first word of "$tool_basename", so it can be a program name with args.
12916 set dummy $tool_basename; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if ${ac_cv_path_DF+:} false; then :
12920   $as_echo_n "(cached) " >&6
12921 else
12922   case $DF in
12923   [\\/]* | ?:[\\/]*)
12924   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12925   ;;
12926   *)
12927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $PATH
12929 do
12930   IFS=$as_save_IFS
12931   test -z "$as_dir" && as_dir=.
12932     for ac_exec_ext in '' $ac_executable_extensions; do
12933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12934     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936     break 2
12937   fi
12938 done
12939   done
12940 IFS=$as_save_IFS
12941 
12942   ;;
12943 esac
12944 fi
12945 DF=$ac_cv_path_DF
12946 if test -n "$DF"; then
12947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12948 $as_echo "$DF" >&6; }
12949 else
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952 fi
12953 
12954 
12955         if test "x$DF" = x; then
12956           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12957         fi
12958       else
12959         # Otherwise we believe it is a complete path. Use it as it is.
12960         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
12961 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
12962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
12963 $as_echo_n "checking for DF... " >&6; }
12964         if test ! -x "$tool_specified"; then
12965           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12966 $as_echo "not found" >&6; }
12967           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
12968         fi
12969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12970 $as_echo "$tool_specified" >&6; }
12971       fi
12972     fi
12973   fi
12974 
12975 
12976 
12977 
12978   # Publish this variable in the help.
12979 
12980 
12981   if test "x$SETFILE" = x; then
12982     # The variable is not set by user, try to locate tool using the code snippet
12983     for ac_prog in SetFile
12984 do
12985   # Extract the first word of "$ac_prog", so it can be a program name with args.
12986 set dummy $ac_prog; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if ${ac_cv_path_SETFILE+:} false; then :
12990   $as_echo_n "(cached) " >&6
12991 else
12992   case $SETFILE in
12993   [\\/]* | ?:[\\/]*)
12994   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
12995   ;;
12996   *)
12997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
12999 do
13000   IFS=$as_save_IFS
13001   test -z "$as_dir" && as_dir=.
13002     for ac_exec_ext in '' $ac_executable_extensions; do
13003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13004     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006     break 2
13007   fi
13008 done
13009   done
13010 IFS=$as_save_IFS
13011 
13012   ;;
13013 esac
13014 fi
13015 SETFILE=$ac_cv_path_SETFILE
13016 if test -n "$SETFILE"; then
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13018 $as_echo "$SETFILE" >&6; }
13019 else
13020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13022 fi
13023 
13024 
13025   test -n "$SETFILE" && break
13026 done
13027 
13028   else
13029     # The variable is set, but is it from the command line or the environment?
13030 
13031     # Try to remove the string !SETFILE! from our list.
13032     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13033     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13034       # If it failed, the variable was not from the command line. Ignore it,
13035       # but warn the user (except for BASH, which is always set by the calling BASH).
13036       if test "xSETFILE" != xBASH; then
13037         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13038 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13039       fi
13040       # Try to locate tool using the code snippet
13041       for ac_prog in SetFile
13042 do
13043   # Extract the first word of "$ac_prog", so it can be a program name with args.
13044 set dummy $ac_prog; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if ${ac_cv_path_SETFILE+:} false; then :
13048   $as_echo_n "(cached) " >&6
13049 else
13050   case $SETFILE in
13051   [\\/]* | ?:[\\/]*)
13052   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13053   ;;
13054   *)
13055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13057 do
13058   IFS=$as_save_IFS
13059   test -z "$as_dir" && as_dir=.
13060     for ac_exec_ext in '' $ac_executable_extensions; do
13061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064     break 2
13065   fi
13066 done
13067   done
13068 IFS=$as_save_IFS
13069 
13070   ;;
13071 esac
13072 fi
13073 SETFILE=$ac_cv_path_SETFILE
13074 if test -n "$SETFILE"; then
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13076 $as_echo "$SETFILE" >&6; }
13077 else
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13080 fi
13081 
13082 
13083   test -n "$SETFILE" && break
13084 done
13085 
13086     else
13087       # If it succeeded, then it was overridden by the user. We will use it
13088       # for the tool.
13089 
13090       # First remove it from the list of overridden variables, so we can test
13091       # for unknown variables in the end.
13092       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13093 
13094       # Check if the provided tool contains a complete path.
13095       tool_specified="$SETFILE"
13096       tool_basename="${tool_specified##*/}"
13097       if test "x$tool_basename" = "x$tool_specified"; then
13098         # A command without a complete path is provided, search $PATH.
13099         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13100 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13101         # Extract the first word of "$tool_basename", so it can be a program name with args.
13102 set dummy $tool_basename; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if ${ac_cv_path_SETFILE+:} false; then :
13106   $as_echo_n "(cached) " >&6
13107 else
13108   case $SETFILE in
13109   [\\/]* | ?:[\\/]*)
13110   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13111   ;;
13112   *)
13113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116   IFS=$as_save_IFS
13117   test -z "$as_dir" && as_dir=.
13118     for ac_exec_ext in '' $ac_executable_extensions; do
13119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13120     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122     break 2
13123   fi
13124 done
13125   done
13126 IFS=$as_save_IFS
13127 
13128   ;;
13129 esac
13130 fi
13131 SETFILE=$ac_cv_path_SETFILE
13132 if test -n "$SETFILE"; then
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13134 $as_echo "$SETFILE" >&6; }
13135 else
13136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 fi
13139 
13140 
13141         if test "x$SETFILE" = x; then
13142           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13143         fi
13144       else
13145         # Otherwise we believe it is a complete path. Use it as it is.
13146         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13147 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13149 $as_echo_n "checking for SETFILE... " >&6; }
13150         if test ! -x "$tool_specified"; then
13151           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13152 $as_echo "not found" >&6; }
13153           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13154         fi
13155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13156 $as_echo "$tool_specified" >&6; }
13157       fi
13158     fi
13159   fi
13160 
13161 
13162 
13163 
13164 # Now we can determine OpenJDK build and target platforms. This is required to
13165 # have early on.
13166 # Make sure we can run config.sub.
13167 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13168   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13169 
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13171 $as_echo_n "checking build system type... " >&6; }
13172 if ${ac_cv_build+:} false; then :
13173   $as_echo_n "(cached) " >&6
13174 else
13175   ac_build_alias=$build_alias
13176 test "x$ac_build_alias" = x &&
13177   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13178 test "x$ac_build_alias" = x &&
13179   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13180 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13181   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13182 
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13185 $as_echo "$ac_cv_build" >&6; }
13186 case $ac_cv_build in
13187 *-*-*) ;;
13188 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13189 esac
13190 build=$ac_cv_build
13191 ac_save_IFS=$IFS; IFS='-'
13192 set x $ac_cv_build
13193 shift
13194 build_cpu=$1
13195 build_vendor=$2
13196 shift; shift
13197 # Remember, the first character of IFS is used to create $*,
13198 # except with old shells:
13199 build_os=$*
13200 IFS=$ac_save_IFS
13201 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13202 
13203 
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13205 $as_echo_n "checking host system type... " >&6; }
13206 if ${ac_cv_host+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209   if test "x$host_alias" = x; then
13210   ac_cv_host=$ac_cv_build
13211 else
13212   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13213     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13214 fi
13215 
13216 fi
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13218 $as_echo "$ac_cv_host" >&6; }
13219 case $ac_cv_host in
13220 *-*-*) ;;
13221 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13222 esac
13223 host=$ac_cv_host
13224 ac_save_IFS=$IFS; IFS='-'
13225 set x $ac_cv_host
13226 shift
13227 host_cpu=$1
13228 host_vendor=$2
13229 shift; shift
13230 # Remember, the first character of IFS is used to create $*,
13231 # except with old shells:
13232 host_os=$*
13233 IFS=$ac_save_IFS
13234 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13235 
13236 
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13238 $as_echo_n "checking target system type... " >&6; }
13239 if ${ac_cv_target+:} false; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242   if test "x$target_alias" = x; then
13243   ac_cv_target=$ac_cv_host
13244 else
13245   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13246     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13247 fi
13248 
13249 fi
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13251 $as_echo "$ac_cv_target" >&6; }
13252 case $ac_cv_target in
13253 *-*-*) ;;
13254 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13255 esac
13256 target=$ac_cv_target
13257 ac_save_IFS=$IFS; IFS='-'
13258 set x $ac_cv_target
13259 shift
13260 target_cpu=$1
13261 target_vendor=$2
13262 shift; shift
13263 # Remember, the first character of IFS is used to create $*,
13264 # except with old shells:
13265 target_os=$*
13266 IFS=$ac_save_IFS
13267 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13268 
13269 
13270 # The aliases save the names the user supplied, while $host etc.
13271 # will get canonicalized.
13272 test -n "$target_alias" &&
13273   test "$program_prefix$program_suffix$program_transform_name" = \
13274     NONENONEs,x,x, &&
13275   program_prefix=${target_alias}-
13276 
13277   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13278   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13279   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13280   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13281   # to use the configure naming style.
13282 
13283 
13284 
13285 
13286 
13287   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13288   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13289   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13290   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13291   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13292   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13293 
13294 
13295 
13296   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13297 
13298   case "$build_os" in
13299     *linux*)
13300       VAR_OS=linux
13301       VAR_OS_API=posix
13302       VAR_OS_ENV=linux
13303       ;;
13304     *solaris*)
13305       VAR_OS=solaris
13306       VAR_OS_API=posix
13307       VAR_OS_ENV=solaris
13308       ;;
13309     *darwin*)
13310       VAR_OS=macosx
13311       VAR_OS_API=posix
13312       VAR_OS_ENV=macosx
13313       ;;
13314     *bsd*)
13315       VAR_OS=bsd
13316       VAR_OS_API=posix
13317       VAR_OS_ENV=bsd
13318       ;;
13319     *cygwin*)
13320       VAR_OS=windows
13321       VAR_OS_API=winapi
13322       VAR_OS_ENV=windows.cygwin
13323       ;;
13324     *mingw*)
13325       VAR_OS=windows
13326       VAR_OS_API=winapi
13327       VAR_OS_ENV=windows.msys
13328       ;;
13329     *aix*)
13330       VAR_OS=aix
13331       VAR_OS_API=posix
13332       VAR_OS_ENV=aix
13333       ;;
13334     *)
13335       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13336       ;;
13337   esac
13338 
13339 
13340   # First argument is the cpu name from the trip/quad
13341   case "$build_cpu" in
13342     x86_64)
13343       VAR_CPU=x86_64
13344       VAR_CPU_ARCH=x86
13345       VAR_CPU_BITS=64
13346       VAR_CPU_ENDIAN=little
13347       ;;
13348     i?86)
13349       VAR_CPU=x86
13350       VAR_CPU_ARCH=x86
13351       VAR_CPU_BITS=32
13352       VAR_CPU_ENDIAN=little
13353       ;;
13354     arm*)
13355       VAR_CPU=arm
13356       VAR_CPU_ARCH=arm
13357       VAR_CPU_BITS=32
13358       VAR_CPU_ENDIAN=little
13359       ;;
13360     powerpc)
13361       VAR_CPU=ppc
13362       VAR_CPU_ARCH=ppc
13363       VAR_CPU_BITS=32
13364       VAR_CPU_ENDIAN=big
13365       ;;
13366     powerpc64)
13367       VAR_CPU=ppc64
13368       VAR_CPU_ARCH=ppc
13369       VAR_CPU_BITS=64
13370       VAR_CPU_ENDIAN=big
13371       ;;
13372     s390)
13373       VAR_CPU=s390
13374       VAR_CPU_ARCH=s390
13375       VAR_CPU_BITS=32
13376       VAR_CPU_ENDIAN=big
13377       ;;
13378     s390x)
13379       VAR_CPU=s390x
13380       VAR_CPU_ARCH=s390
13381       VAR_CPU_BITS=64
13382       VAR_CPU_ENDIAN=big
13383       ;;
13384     sparc)
13385       VAR_CPU=sparc
13386       VAR_CPU_ARCH=sparc
13387       VAR_CPU_BITS=32
13388       VAR_CPU_ENDIAN=big
13389       ;;
13390     sparcv9)
13391       VAR_CPU=sparcv9
13392       VAR_CPU_ARCH=sparc
13393       VAR_CPU_BITS=64
13394       VAR_CPU_ENDIAN=big
13395       ;;
13396     *)
13397       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13398       ;;
13399   esac
13400 
13401   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13402   OPENJDK_BUILD_OS="$VAR_OS"
13403   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13404   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13405   OPENJDK_BUILD_CPU="$VAR_CPU"
13406   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13407   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13408   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13409 
13410 
13411 
13412 
13413 
13414 
13415 
13416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13417 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13419 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13420 
13421   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13422 
13423   case "$host_os" in
13424     *linux*)
13425       VAR_OS=linux
13426       VAR_OS_API=posix
13427       VAR_OS_ENV=linux
13428       ;;
13429     *solaris*)
13430       VAR_OS=solaris
13431       VAR_OS_API=posix
13432       VAR_OS_ENV=solaris
13433       ;;
13434     *darwin*)
13435       VAR_OS=macosx
13436       VAR_OS_API=posix
13437       VAR_OS_ENV=macosx
13438       ;;
13439     *bsd*)
13440       VAR_OS=bsd
13441       VAR_OS_API=posix
13442       VAR_OS_ENV=bsd
13443       ;;
13444     *cygwin*)
13445       VAR_OS=windows
13446       VAR_OS_API=winapi
13447       VAR_OS_ENV=windows.cygwin
13448       ;;
13449     *mingw*)
13450       VAR_OS=windows
13451       VAR_OS_API=winapi
13452       VAR_OS_ENV=windows.msys
13453       ;;
13454     *aix*)
13455       VAR_OS=aix
13456       VAR_OS_API=posix
13457       VAR_OS_ENV=aix
13458       ;;
13459     *)
13460       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13461       ;;
13462   esac
13463 
13464 
13465   # First argument is the cpu name from the trip/quad
13466   case "$host_cpu" in
13467     x86_64)
13468       VAR_CPU=x86_64
13469       VAR_CPU_ARCH=x86
13470       VAR_CPU_BITS=64
13471       VAR_CPU_ENDIAN=little
13472       ;;
13473     i?86)
13474       VAR_CPU=x86
13475       VAR_CPU_ARCH=x86
13476       VAR_CPU_BITS=32
13477       VAR_CPU_ENDIAN=little
13478       ;;
13479     arm*)
13480       VAR_CPU=arm
13481       VAR_CPU_ARCH=arm
13482       VAR_CPU_BITS=32
13483       VAR_CPU_ENDIAN=little
13484       ;;
13485     powerpc)
13486       VAR_CPU=ppc
13487       VAR_CPU_ARCH=ppc
13488       VAR_CPU_BITS=32
13489       VAR_CPU_ENDIAN=big
13490       ;;
13491     powerpc64)
13492       VAR_CPU=ppc64
13493       VAR_CPU_ARCH=ppc
13494       VAR_CPU_BITS=64
13495       VAR_CPU_ENDIAN=big
13496       ;;
13497     s390)
13498       VAR_CPU=s390
13499       VAR_CPU_ARCH=s390
13500       VAR_CPU_BITS=32
13501       VAR_CPU_ENDIAN=big
13502       ;;
13503     s390x)
13504       VAR_CPU=s390x
13505       VAR_CPU_ARCH=s390
13506       VAR_CPU_BITS=64
13507       VAR_CPU_ENDIAN=big
13508       ;;
13509     sparc)
13510       VAR_CPU=sparc
13511       VAR_CPU_ARCH=sparc
13512       VAR_CPU_BITS=32
13513       VAR_CPU_ENDIAN=big
13514       ;;
13515     sparcv9)
13516       VAR_CPU=sparcv9
13517       VAR_CPU_ARCH=sparc
13518       VAR_CPU_BITS=64
13519       VAR_CPU_ENDIAN=big
13520       ;;
13521     *)
13522       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13523       ;;
13524   esac
13525 
13526   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13527   OPENJDK_TARGET_OS="$VAR_OS"
13528   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13529   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13530   OPENJDK_TARGET_CPU="$VAR_CPU"
13531   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13532   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13533   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13534 
13535 
13536 
13537 
13538 
13539 
13540 
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13542 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13544 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13545 
13546 
13547 
13548 # Check whether --with-target-bits was given.
13549 if test "${with_target_bits+set}" = set; then :
13550   withval=$with_target_bits;
13551 fi
13552 
13553 
13554   # We have three types of compiles:
13555   # native  == normal compilation, target system == build system
13556   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13557   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13558   #
13559   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13560     # We're doing a proper cross-compilation
13561     COMPILE_TYPE="cross"
13562   else
13563     COMPILE_TYPE="native"
13564   fi
13565 
13566   if test "x$with_target_bits" != x; then
13567     if test "x$COMPILE_TYPE" = "xcross"; then
13568       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13569     fi
13570 
13571     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13572       # A reduced build is requested
13573       COMPILE_TYPE="reduced"
13574       OPENJDK_TARGET_CPU_BITS=32
13575       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13576         OPENJDK_TARGET_CPU=x86
13577       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13578         OPENJDK_TARGET_CPU=sparc
13579       else
13580         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13581       fi
13582     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13583       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
13584     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13585       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13586 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13587     else
13588       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13589     fi
13590   fi
13591 
13592 
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13594 $as_echo_n "checking compilation type... " >&6; }
13595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13596 $as_echo "$COMPILE_TYPE" >&6; }
13597 
13598 
13599   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13600     REQUIRED_OS_NAME=SunOS
13601     REQUIRED_OS_VERSION=5.10
13602   fi
13603   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13604     REQUIRED_OS_NAME=Linux
13605     REQUIRED_OS_VERSION=2.6
13606   fi
13607   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13608     REQUIRED_OS_NAME=Windows
13609     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13610       REQUIRED_OS_VERSION=5.2
13611     else
13612       REQUIRED_OS_VERSION=5.1
13613     fi
13614   fi
13615   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13616     REQUIRED_OS_NAME=Darwin
13617     REQUIRED_OS_VERSION=11.2
13618   fi
13619 
13620 
13621 
13622 
13623 
13624   # Also store the legacy naming of the cpu.
13625   # Ie i586 and amd64 instead of x86 and x86_64
13626   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13627   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13628     OPENJDK_TARGET_CPU_LEGACY="i586"
13629   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13630     # On all platforms except MacOSX replace x86_64 with amd64.
13631     OPENJDK_TARGET_CPU_LEGACY="amd64"
13632   fi
13633 
13634 
13635   # And the second legacy naming of the cpu.
13636   # Ie i386 and amd64 instead of x86 and x86_64.
13637   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13638   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13639     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13640   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13641     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13642   fi
13643 
13644 
13645   # This is the name of the cpu (but using i386 and amd64 instead of
13646   # x86 and x86_64, respectively), preceeded by a /, to be used when
13647   # locating libraries. On macosx, it's empty, though.
13648   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13649   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13650     OPENJDK_TARGET_CPU_LIBDIR=""
13651   fi
13652 
13653 
13654   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13655   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13656   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13657   OPENJDK_TARGET_CPU_ISADIR=""
13658   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13659     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13660       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13661     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13662       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13663     fi
13664   fi
13665 
13666 
13667   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13668   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13669   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13670     # On linux only, we replace x86 with i386.
13671     OPENJDK_TARGET_CPU_OSARCH="i386"
13672   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13673     # On all platforms except macosx, we replace x86_64 with amd64.
13674     OPENJDK_TARGET_CPU_OSARCH="amd64"
13675   fi
13676 
13677 
13678   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13679   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13680     OPENJDK_TARGET_CPU_JLI="i386"
13681   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13682     # On all platforms except macosx, we replace x86_64 with amd64.
13683     OPENJDK_TARGET_CPU_JLI="amd64"
13684   fi
13685   # Now setup the -D flags for building libjli.
13686   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13687   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13688     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13689       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13690     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13691       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13692     fi
13693   fi
13694 
13695 
13696   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13697   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13698     OPENJDK_TARGET_OS_API_DIR="solaris"
13699   fi
13700   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13701     OPENJDK_TARGET_OS_API_DIR="windows"
13702   fi
13703 
13704 
13705   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13706       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13707   else
13708       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13709   fi
13710 
13711 
13712   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13713     A_LP64="LP64:="
13714     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13715     # unpack200.exe
13716     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13717       ADD_LP64="-D_LP64=1"
13718     fi
13719   fi
13720   LP64=$A_LP64
13721 
13722 
13723   if test "x$COMPILE_TYPE" = "xcross"; then
13724     # FIXME: ... or should this include reduced builds..?
13725     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13726   else
13727     DEFINE_CROSS_COMPILE_ARCH=""
13728   fi
13729 
13730 
13731   # ZERO_ARCHDEF is used to enable architecture-specific code
13732   case "${OPENJDK_TARGET_CPU}" in
13733     ppc*)    ZERO_ARCHDEF=PPC   ;;
13734     s390*)   ZERO_ARCHDEF=S390  ;;
13735     sparc*)  ZERO_ARCHDEF=SPARC ;;
13736     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13737     x86)     ZERO_ARCHDEF=IA32  ;;
13738     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13739   esac
13740 
13741 
13742 
13743 
13744 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13745 
13746   # Locate the directory of this script.
13747   SCRIPT="$0"
13748   AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L`
13749 
13750   # Where is the source? It is located two levels above the configure script.
13751   CURDIR="$PWD"
13752   cd "$AUTOCONF_DIR/../.."
13753   SRC_ROOT="`$THEPWDCMD -L`"
13754 
13755   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13756     PATH_SEP=";"
13757 
13758   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13759   if test $SRC_ROOT_LENGTH -gt 100; then
13760     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13761   fi
13762 
13763   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13765 $as_echo_n "checking cygwin release... " >&6; }
13766     CYGWIN_VERSION=`$UNAME -r`
13767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13768 $as_echo "$CYGWIN_VERSION" >&6; }
13769     WINDOWS_ENV_VENDOR='cygwin'
13770     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13771 
13772     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13773     if test "x$CYGWIN_VERSION_OK" = x; then
13774       { $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
13775 $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;}
13776       as_fn_error $? "Cannot continue" "$LINENO" 5
13777     fi
13778     if test "x$CYGPATH" = x; then
13779       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13780     fi
13781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13782 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13783     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13784     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13785     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13786     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13788 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13789     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13790     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13791     if test "x$test_cygdrive_prefix" = x; then
13792       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13793     fi
13794   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13796 $as_echo_n "checking msys release... " >&6; }
13797     MSYS_VERSION=`$UNAME -r`
13798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13799 $as_echo "$MSYS_VERSION" >&6; }
13800 
13801     WINDOWS_ENV_VENDOR='msys'
13802     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13803 
13804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13805 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13806     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13807     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13808 
13809   windows_path="$MSYS_ROOT_PATH"
13810   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13811     unix_path=`$CYGPATH -u "$windows_path"`
13812     MSYS_ROOT_PATH="$unix_path"
13813   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13814     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13815     MSYS_ROOT_PATH="$unix_path"
13816   fi
13817 
13818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13819 $as_echo "$MSYS_ROOT_PATH" >&6; }
13820     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13821   else
13822     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13823   fi
13824 
13825   # Test if windows or unix (cygwin/msys) find is first in path.
13826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13827 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13828   FIND_BINARY_OUTPUT=`find --version 2>&1`
13829   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13831 $as_echo "unix style" >&6; }
13832   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13834 $as_echo "Windows" >&6; }
13835     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13836 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13837     { $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
13838 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13839     as_fn_error $? "Cannot continue" "$LINENO" 5
13840   else
13841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13842 $as_echo "unknown" >&6; }
13843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13844 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13845   fi
13846 
13847   else
13848     PATH_SEP=":"
13849   fi
13850 
13851 
13852 
13853   cd "$CURDIR"
13854 
13855 
13856   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13857 
13858   # Input might be given as Windows format, start by converting to
13859   # unix format.
13860   path="$SRC_ROOT"
13861   new_path=`$CYGPATH -u "$path"`
13862 
13863   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13864   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13865   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13866   # "foo.exe" is OK but "foo" is an error.
13867   #
13868   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13869   # It is also a way to make sure we got the proper file name for the real test later on.
13870   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13871   if test "x$test_shortpath" = x; then
13872     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13873 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13874     as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5
13875   fi
13876 
13877   # Call helper function which possibly converts this using DOS-style short mode.
13878   # If so, the updated path is stored in $new_path.
13879 
13880   input_path="$new_path"
13881   # Check if we need to convert this using DOS-style short mode. If the path
13882   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13883   # take no chances and rewrite it.
13884   # Note: m4 eats our [], so we need to use [ and ] instead.
13885   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13886   if test "x$has_forbidden_chars" != x; then
13887     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13888     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13889     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13890     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13891       # Going to short mode and back again did indeed matter. Since short mode is
13892       # case insensitive, let's make it lowercase to improve readability.
13893       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13894       # Now convert it back to Unix-stile (cygpath)
13895       input_path=`$CYGPATH -u "$shortmode_path"`
13896       new_path="$input_path"
13897     fi
13898   fi
13899 
13900   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
13901   if test "x$test_cygdrive_prefix" = x; then
13902     # As a simple fix, exclude /usr/bin since it's not a real path.
13903     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
13904       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
13905       # a path prefixed by /cygdrive for fixpath to work.
13906       new_path="$CYGWIN_ROOT_PATH$input_path"
13907     fi
13908   fi
13909 
13910 
13911   if test "x$path" != "x$new_path"; then
13912     SRC_ROOT="$new_path"
13913     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13914 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13915   fi
13916 
13917   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13918 
13919   path="$SRC_ROOT"
13920   has_colon=`$ECHO $path | $GREP ^.:`
13921   new_path="$path"
13922   if test "x$has_colon" = x; then
13923     # Not in mixed or Windows style, start by that.
13924     new_path=`cmd //c echo $path`
13925   fi
13926 
13927 
13928   input_path="$new_path"
13929   # Check if we need to convert this using DOS-style short mode. If the path
13930   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13931   # take no chances and rewrite it.
13932   # Note: m4 eats our [], so we need to use [ and ] instead.
13933   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
13934   if test "x$has_forbidden_chars" != x; then
13935     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13936     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13937   fi
13938 
13939 
13940   windows_path="$new_path"
13941   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13942     unix_path=`$CYGPATH -u "$windows_path"`
13943     new_path="$unix_path"
13944   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13945     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13946     new_path="$unix_path"
13947   fi
13948 
13949   if test "x$path" != "x$new_path"; then
13950     SRC_ROOT="$new_path"
13951     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13952 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13953   fi
13954 
13955   # Save the first 10 bytes of this path to the storage, so fixpath can work.
13956   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
13957 
13958   else
13959     # We're on a posix platform. Hooray! :)
13960     path="$SRC_ROOT"
13961     has_space=`$ECHO "$path" | $GREP " "`
13962     if test "x$has_space" != x; then
13963       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13964 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13965       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
13966     fi
13967 
13968     # Use eval to expand a potential ~
13969     eval path="$path"
13970     if test ! -f "$path" && test ! -d "$path"; then
13971       as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
13972     fi
13973 
13974     SRC_ROOT="`cd "$path"; $THEPWDCMD -L`"
13975   fi
13976 
13977 
13978   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13979 
13980   # Input might be given as Windows format, start by converting to
13981   # unix format.
13982   path="$CURDIR"
13983   new_path=`$CYGPATH -u "$path"`
13984 
13985   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13986   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13987   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13988   # "foo.exe" is OK but "foo" is an error.
13989   #
13990   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13991   # It is also a way to make sure we got the proper file name for the real test later on.
13992   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13993   if test "x$test_shortpath" = x; then
13994     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
13995 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
13996     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
13997   fi
13998 
13999   # Call helper function which possibly converts this using DOS-style short mode.
14000   # If so, the updated path is stored in $new_path.
14001 
14002   input_path="$new_path"
14003   # Check if we need to convert this using DOS-style short mode. If the path
14004   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14005   # take no chances and rewrite it.
14006   # Note: m4 eats our [], so we need to use [ and ] instead.
14007   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14008   if test "x$has_forbidden_chars" != x; then
14009     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14010     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14011     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14012     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14013       # Going to short mode and back again did indeed matter. Since short mode is
14014       # case insensitive, let's make it lowercase to improve readability.
14015       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14016       # Now convert it back to Unix-stile (cygpath)
14017       input_path=`$CYGPATH -u "$shortmode_path"`
14018       new_path="$input_path"
14019     fi
14020   fi
14021 
14022   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14023   if test "x$test_cygdrive_prefix" = x; then
14024     # As a simple fix, exclude /usr/bin since it's not a real path.
14025     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14026       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14027       # a path prefixed by /cygdrive for fixpath to work.
14028       new_path="$CYGWIN_ROOT_PATH$input_path"
14029     fi
14030   fi
14031 
14032 
14033   if test "x$path" != "x$new_path"; then
14034     CURDIR="$new_path"
14035     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14036 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14037   fi
14038 
14039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14040 
14041   path="$CURDIR"
14042   has_colon=`$ECHO $path | $GREP ^.:`
14043   new_path="$path"
14044   if test "x$has_colon" = x; then
14045     # Not in mixed or Windows style, start by that.
14046     new_path=`cmd //c echo $path`
14047   fi
14048 
14049 
14050   input_path="$new_path"
14051   # Check if we need to convert this using DOS-style short mode. If the path
14052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14053   # take no chances and rewrite it.
14054   # Note: m4 eats our [], so we need to use [ and ] instead.
14055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14056   if test "x$has_forbidden_chars" != x; then
14057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14058     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14059   fi
14060 
14061 
14062   windows_path="$new_path"
14063   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14064     unix_path=`$CYGPATH -u "$windows_path"`
14065     new_path="$unix_path"
14066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14067     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14068     new_path="$unix_path"
14069   fi
14070 
14071   if test "x$path" != "x$new_path"; then
14072     CURDIR="$new_path"
14073     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14074 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14075   fi
14076 
14077   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14078   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14079 
14080   else
14081     # We're on a posix platform. Hooray! :)
14082     path="$CURDIR"
14083     has_space=`$ECHO "$path" | $GREP " "`
14084     if test "x$has_space" != x; then
14085       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14086 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14087       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14088     fi
14089 
14090     # Use eval to expand a potential ~
14091     eval path="$path"
14092     if test ! -f "$path" && test ! -d "$path"; then
14093       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14094     fi
14095 
14096     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14097   fi
14098 
14099 
14100   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14101     # Add extra search paths on solaris for utilities like ar and as etc...
14102     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14103   fi
14104 
14105   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14106   # is not correct.
14107 
14108 # Check whether --with-sys-root was given.
14109 if test "${with_sys_root+set}" = set; then :
14110   withval=$with_sys_root;
14111 fi
14112 
14113 
14114   if test "x$with_sys_root" != x; then
14115     SYS_ROOT=$with_sys_root
14116   else
14117     SYS_ROOT=/
14118   fi
14119 
14120 
14121 
14122 # Check whether --with-tools-dir was given.
14123 if test "${with_tools_dir+set}" = set; then :
14124   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14125 
14126 fi
14127 
14128 
14129 
14130 # Check whether --with-devkit was given.
14131 if test "${with_devkit+set}" = set; then :
14132   withval=$with_devkit;
14133         if test "x$with_sys_root" != x; then
14134           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14135         fi
14136 
14137   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14138 
14139   # Input might be given as Windows format, start by converting to
14140   # unix format.
14141   path="$with_devkit"
14142   new_path=`$CYGPATH -u "$path"`
14143 
14144   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14145   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14146   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14147   # "foo.exe" is OK but "foo" is an error.
14148   #
14149   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14150   # It is also a way to make sure we got the proper file name for the real test later on.
14151   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14152   if test "x$test_shortpath" = x; then
14153     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14154 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14155     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14156   fi
14157 
14158   # Call helper function which possibly converts this using DOS-style short mode.
14159   # If so, the updated path is stored in $new_path.
14160 
14161   input_path="$new_path"
14162   # Check if we need to convert this using DOS-style short mode. If the path
14163   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14164   # take no chances and rewrite it.
14165   # Note: m4 eats our [], so we need to use [ and ] instead.
14166   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14167   if test "x$has_forbidden_chars" != x; then
14168     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14169     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14170     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14171     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14172       # Going to short mode and back again did indeed matter. Since short mode is
14173       # case insensitive, let's make it lowercase to improve readability.
14174       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14175       # Now convert it back to Unix-stile (cygpath)
14176       input_path=`$CYGPATH -u "$shortmode_path"`
14177       new_path="$input_path"
14178     fi
14179   fi
14180 
14181   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14182   if test "x$test_cygdrive_prefix" = x; then
14183     # As a simple fix, exclude /usr/bin since it's not a real path.
14184     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14185       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14186       # a path prefixed by /cygdrive for fixpath to work.
14187       new_path="$CYGWIN_ROOT_PATH$input_path"
14188     fi
14189   fi
14190 
14191 
14192   if test "x$path" != "x$new_path"; then
14193     with_devkit="$new_path"
14194     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14195 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14196   fi
14197 
14198   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14199 
14200   path="$with_devkit"
14201   has_colon=`$ECHO $path | $GREP ^.:`
14202   new_path="$path"
14203   if test "x$has_colon" = x; then
14204     # Not in mixed or Windows style, start by that.
14205     new_path=`cmd //c echo $path`
14206   fi
14207 
14208 
14209   input_path="$new_path"
14210   # Check if we need to convert this using DOS-style short mode. If the path
14211   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14212   # take no chances and rewrite it.
14213   # Note: m4 eats our [], so we need to use [ and ] instead.
14214   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14215   if test "x$has_forbidden_chars" != x; then
14216     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14217     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14218   fi
14219 
14220 
14221   windows_path="$new_path"
14222   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14223     unix_path=`$CYGPATH -u "$windows_path"`
14224     new_path="$unix_path"
14225   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14226     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14227     new_path="$unix_path"
14228   fi
14229 
14230   if test "x$path" != "x$new_path"; then
14231     with_devkit="$new_path"
14232     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14233 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14234   fi
14235 
14236   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14237   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14238 
14239   else
14240     # We're on a posix platform. Hooray! :)
14241     path="$with_devkit"
14242     has_space=`$ECHO "$path" | $GREP " "`
14243     if test "x$has_space" != x; then
14244       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14245 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14246       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14247     fi
14248 
14249     # Use eval to expand a potential ~
14250     eval path="$path"
14251     if test ! -f "$path" && test ! -d "$path"; then
14252       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14253     fi
14254 
14255     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14256   fi
14257 
14258 
14259   if test "x$TOOLS_DIR" = x; then
14260     TOOLS_DIR="$with_devkit/bin"
14261   else
14262     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14263   fi
14264 
14265         if test -d "$with_devkit/$host_alias/libc"; then
14266           SYS_ROOT=$with_devkit/$host_alias/libc
14267         elif test -d "$with_devkit/$host/sys-root"; then
14268           SYS_ROOT=$with_devkit/$host/sys-root
14269         fi
14270 
14271 fi
14272 
14273 
14274 
14275   # Setup default logging of stdout and stderr to build.log in the output root.
14276   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14277   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14278   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14279 
14280 
14281 
14282 
14283 
14284 # Check if it's a pure open build or if custom sources are to be used.
14285 
14286   # Check whether --enable-openjdk-only was given.
14287 if test "${enable_openjdk_only+set}" = set; then :
14288   enableval=$enable_openjdk_only;
14289 else
14290   enable_openjdk_only="no"
14291 fi
14292 
14293 
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14295 $as_echo_n "checking for presence of closed sources... " >&6; }
14296   if test -d "$SRC_ROOT/jdk/src/closed"; then
14297     CLOSED_SOURCE_PRESENT=yes
14298   else
14299     CLOSED_SOURCE_PRESENT=no
14300   fi
14301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14302 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14303 
14304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14305 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14306   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14308 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14309 
14310   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14311     OPENJDK=true
14312     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14313       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14314 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14315     fi
14316   else
14317     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14318       OPENJDK=true
14319     else
14320       OPENJDK=false
14321     fi
14322   fi
14323 
14324   if test "x$OPENJDK" = "xtrue"; then
14325     SET_OPENJDK="OPENJDK=true"
14326   fi
14327 
14328 
14329 
14330 
14331 # These are needed to be able to create a configuration name (and thus the output directory)
14332 
14333   ###############################################################################
14334   #
14335   # Check which variant of the JDK that we want to build.
14336   # Currently we have:
14337   #    normal:   standard edition
14338   # but the custom make system may add other variants
14339   #
14340   # Effectively the JDK variant gives a name to a specific set of
14341   # modules to compile into the JDK. In the future, these modules
14342   # might even be Jigsaw modules.
14343   #
14344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14345 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14346 
14347 # Check whether --with-jdk-variant was given.
14348 if test "${with_jdk_variant+set}" = set; then :
14349   withval=$with_jdk_variant;
14350 fi
14351 
14352 
14353   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14354     JDK_VARIANT="normal"
14355   else
14356     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14357   fi
14358 
14359 
14360 
14361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14362 $as_echo "$JDK_VARIANT" >&6; }
14363 
14364 
14365 ###############################################################################
14366 #
14367 # Check which interpreter of the JVM we want to build.
14368 # Currently we have:
14369 #    template: Template interpreter (the default)
14370 #    cpp     : C++ interpreter
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14372 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14373 
14374 # Check whether --with-jvm-interpreter was given.
14375 if test "${with_jvm_interpreter+set}" = set; then :
14376   withval=$with_jvm_interpreter;
14377 fi
14378 
14379 
14380 if test "x$with_jvm_interpreter" = x; then
14381      with_jvm_interpreter="template"
14382 fi
14383 
14384 JVM_INTERPRETER="$with_jvm_interpreter"
14385 
14386 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14387    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14388 fi
14389 
14390 
14391 
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14393 $as_echo "$with_jvm_interpreter" >&6; }
14394 
14395 
14396 
14397   ###############################################################################
14398   #
14399   # Check which variants of the JVM that we want to build.
14400   # Currently we have:
14401   #    server: normal interpreter and a tiered C1/C2 compiler
14402   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14403   #    minimal1: reduced form of client with optional VM services and features stripped out
14404   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14405   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14406   #    zero: no machine code interpreter, no compiler
14407   #    zeroshark: zero interpreter and shark/llvm compiler backend
14408 #    core: interpreter only, no compiler (only works on some platforms)
14409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14410 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14411 
14412 # Check whether --with-jvm-variants was given.
14413 if test "${with_jvm_variants+set}" = set; then :
14414   withval=$with_jvm_variants;
14415 fi
14416 
14417 
14418   if test "x$with_jvm_variants" = x; then
14419     with_jvm_variants="server"
14420   fi
14421 
14422   JVM_VARIANTS=",$with_jvm_variants,"
14423   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,//'`
14424 
14425   if test "x$TEST_VARIANTS" != "x,"; then
14426      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14427   fi
14428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14429 $as_echo "$with_jvm_variants" >&6; }
14430 
14431   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14432   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14433   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14434   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14435   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14436   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14437   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14438 
14439   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14440     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14441       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14442     fi
14443   fi
14444   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14445     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14446       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14447     fi
14448   fi
14449   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14450     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14451       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14452     fi
14453   fi
14454 
14455   # Replace the commas with AND for use in the build directory name.
14456   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14457   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/'`
14458   if test "x$COUNT_VARIANTS" != "x,1"; then
14459     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14460   else
14461     BUILDING_MULTIPLE_JVM_VARIANTS=no
14462   fi
14463 
14464 
14465 
14466 
14467 
14468 
14469 
14470 
14471 
14472 
14473   INCLUDE_SA=true
14474   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14475     INCLUDE_SA=false
14476   fi
14477   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14478     INCLUDE_SA=false
14479   fi
14480   if test "x$VAR_CPU" = xppc64 ; then
14481     INCLUDE_SA=false
14482   fi
14483 
14484 
14485   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14486     MACOSX_UNIVERSAL="true"
14487   fi
14488 
14489 
14490 
14491 
14492   ###############################################################################
14493   #
14494   # Set the debug level
14495   #    release: no debug information, all optimizations, no asserts.
14496   #    fastdebug: debug information (-g), all optimizations, all asserts
14497   #    slowdebug: debug information (-g), no optimizations, all asserts
14498   #
14499   DEBUG_LEVEL="release"
14500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14501 $as_echo_n "checking which debug level to use... " >&6; }
14502   # Check whether --enable-debug was given.
14503 if test "${enable_debug+set}" = set; then :
14504   enableval=$enable_debug;
14505         ENABLE_DEBUG="${enableval}"
14506         DEBUG_LEVEL="fastdebug"
14507 
14508 else
14509   ENABLE_DEBUG="no"
14510 fi
14511 
14512 
14513 
14514 # Check whether --with-debug-level was given.
14515 if test "${with_debug_level+set}" = set; then :
14516   withval=$with_debug_level;
14517         DEBUG_LEVEL="${withval}"
14518         if test "x$ENABLE_DEBUG" = xyes; then
14519           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14520         fi
14521 
14522 fi
14523 
14524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14525 $as_echo "$DEBUG_LEVEL" >&6; }
14526 
14527   if test "x$DEBUG_LEVEL" != xrelease && \
14528       test "x$DEBUG_LEVEL" != xfastdebug && \
14529       test "x$DEBUG_LEVEL" != xslowdebug; then
14530     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14531   fi
14532 
14533 
14534   ###############################################################################
14535   #
14536   # Setup legacy vars/targets and new vars to deal with different debug levels.
14537   #
14538 
14539   case $DEBUG_LEVEL in
14540     release )
14541       VARIANT="OPT"
14542       FASTDEBUG="false"
14543       DEBUG_CLASSFILES="false"
14544       BUILD_VARIANT_RELEASE=""
14545       HOTSPOT_DEBUG_LEVEL="product"
14546       HOTSPOT_EXPORT="product"
14547       ;;
14548     fastdebug )
14549       VARIANT="DBG"
14550       FASTDEBUG="true"
14551       DEBUG_CLASSFILES="true"
14552       BUILD_VARIANT_RELEASE="-fastdebug"
14553       HOTSPOT_DEBUG_LEVEL="fastdebug"
14554       HOTSPOT_EXPORT="fastdebug"
14555       ;;
14556     slowdebug )
14557       VARIANT="DBG"
14558       FASTDEBUG="false"
14559       DEBUG_CLASSFILES="true"
14560       BUILD_VARIANT_RELEASE="-debug"
14561       HOTSPOT_DEBUG_LEVEL="jvmg"
14562       HOTSPOT_EXPORT="debug"
14563       ;;
14564   esac
14565 
14566   #####
14567   # Generate the legacy makefile targets for hotspot.
14568   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14569   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14570   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14571   # But until then ...
14572   HOTSPOT_TARGET=""
14573 
14574   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14575     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14576   fi
14577 
14578   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14579     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14580   fi
14581 
14582   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14583     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14584   fi
14585 
14586   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14587     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14588   fi
14589 
14590   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14591     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14592   fi
14593 
14594   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14595     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14596   fi
14597 
14598   if test "x$JVM_VARIANT_CORE" = xtrue; then
14599     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14600   fi
14601 
14602   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14603 
14604   # On Macosx universal binaries are produced, but they only contain
14605   # 64 bit intel. This invalidates control of which jvms are built
14606   # from configure, but only server is valid anyway. Fix this
14607   # when hotspot makefiles are rewritten.
14608   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14609     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14610   fi
14611 
14612   #####
14613 
14614 
14615 
14616 
14617 
14618 
14619 
14620 
14621 # With basic setup done, call the custom early hook.
14622 
14623 
14624 # To properly create a configuration name, we need to have the OpenJDK target
14625 # and options (variants and debug level) parsed.
14626 
14627 
14628 
14629 # Check whether --with-conf-name was given.
14630 if test "${with_conf_name+set}" = set; then :
14631   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14632 fi
14633 
14634 
14635   # Test from where we are running configure, in or outside of src root.
14636   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14637       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14638       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14639     # We are running configure from the src root.
14640     # Create a default ./build/target-variant-debuglevel output root.
14641     if test "x${CONF_NAME}" = x; then
14642       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14643     fi
14644     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14645     $MKDIR -p "$OUTPUT_ROOT"
14646     if test ! -d "$OUTPUT_ROOT"; then
14647       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14648     fi
14649   else
14650     # We are running configure from outside of the src dir.
14651     # Then use the current directory as output dir!
14652     # If configuration is situated in normal build directory, just use the build
14653     # directory name as configuration name, otherwise use the complete path.
14654     if test "x${CONF_NAME}" = x; then
14655       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14656     fi
14657     OUTPUT_ROOT="$CURDIR"
14658 
14659     # WARNING: This might be a bad thing to do. You need to be sure you want to
14660     # have a configuration in this directory. Do some sanity checks!
14661 
14662     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14663       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14664       # other files
14665       files_present=`$LS $OUTPUT_ROOT`
14666       # Configure has already touched config.log and confdefs.h in the current dir when this check
14667       # is performed.
14668       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14669       | $TR -d '\n'`
14670       if test "x$filtered_files" != x; then
14671         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14672 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14673         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14674 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14675         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14676 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14677         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14678 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14679         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14680 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14681         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14682 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14683         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14684 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14685         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14686       fi
14687     fi
14688   fi
14689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14690 $as_echo_n "checking what configuration name to use... " >&6; }
14691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14692 $as_echo "$CONF_NAME" >&6; }
14693 
14694 
14695   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14696 
14697   # Input might be given as Windows format, start by converting to
14698   # unix format.
14699   path="$OUTPUT_ROOT"
14700   new_path=`$CYGPATH -u "$path"`
14701 
14702   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14703   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14704   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14705   # "foo.exe" is OK but "foo" is an error.
14706   #
14707   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14708   # It is also a way to make sure we got the proper file name for the real test later on.
14709   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14710   if test "x$test_shortpath" = x; then
14711     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14712 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14713     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14714   fi
14715 
14716   # Call helper function which possibly converts this using DOS-style short mode.
14717   # If so, the updated path is stored in $new_path.
14718 
14719   input_path="$new_path"
14720   # Check if we need to convert this using DOS-style short mode. If the path
14721   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14722   # take no chances and rewrite it.
14723   # Note: m4 eats our [], so we need to use [ and ] instead.
14724   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14725   if test "x$has_forbidden_chars" != x; then
14726     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14727     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14728     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14729     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14730       # Going to short mode and back again did indeed matter. Since short mode is
14731       # case insensitive, let's make it lowercase to improve readability.
14732       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14733       # Now convert it back to Unix-stile (cygpath)
14734       input_path=`$CYGPATH -u "$shortmode_path"`
14735       new_path="$input_path"
14736     fi
14737   fi
14738 
14739   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14740   if test "x$test_cygdrive_prefix" = x; then
14741     # As a simple fix, exclude /usr/bin since it's not a real path.
14742     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14743       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14744       # a path prefixed by /cygdrive for fixpath to work.
14745       new_path="$CYGWIN_ROOT_PATH$input_path"
14746     fi
14747   fi
14748 
14749 
14750   if test "x$path" != "x$new_path"; then
14751     OUTPUT_ROOT="$new_path"
14752     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14753 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14754   fi
14755 
14756   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14757 
14758   path="$OUTPUT_ROOT"
14759   has_colon=`$ECHO $path | $GREP ^.:`
14760   new_path="$path"
14761   if test "x$has_colon" = x; then
14762     # Not in mixed or Windows style, start by that.
14763     new_path=`cmd //c echo $path`
14764   fi
14765 
14766 
14767   input_path="$new_path"
14768   # Check if we need to convert this using DOS-style short mode. If the path
14769   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14770   # take no chances and rewrite it.
14771   # Note: m4 eats our [], so we need to use [ and ] instead.
14772   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14773   if test "x$has_forbidden_chars" != x; then
14774     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14775     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14776   fi
14777 
14778 
14779   windows_path="$new_path"
14780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14781     unix_path=`$CYGPATH -u "$windows_path"`
14782     new_path="$unix_path"
14783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14785     new_path="$unix_path"
14786   fi
14787 
14788   if test "x$path" != "x$new_path"; then
14789     OUTPUT_ROOT="$new_path"
14790     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14791 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14792   fi
14793 
14794   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14795   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14796 
14797   else
14798     # We're on a posix platform. Hooray! :)
14799     path="$OUTPUT_ROOT"
14800     has_space=`$ECHO "$path" | $GREP " "`
14801     if test "x$has_space" != x; then
14802       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14803 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14804       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14805     fi
14806 
14807     # Use eval to expand a potential ~
14808     eval path="$path"
14809     if test ! -f "$path" && test ! -d "$path"; then
14810       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14811     fi
14812 
14813     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14814   fi
14815 
14816 
14817   SPEC=$OUTPUT_ROOT/spec.gmk
14818 
14819   CONF_NAME=$CONF_NAME
14820 
14821   OUTPUT_ROOT=$OUTPUT_ROOT
14822 
14823 
14824   # Most of the probed defines are put into config.h
14825   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14826 
14827   # The spec.gmk file contains all variables for the make system.
14828   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14829 
14830   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14831   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14832 
14833   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14834   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14835 
14836   # The compare.sh is used to compare the build output to other builds.
14837   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
14838 
14839   # Spec.sh is currently used by compare-objects.sh
14840   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
14841 
14842   # The generated Makefile knows where the spec.gmk is and where the source is.
14843   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
14844   # which will look for generated configurations
14845   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
14846 
14847 
14848   # Save the arguments given to us
14849   echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
14850 
14851 
14852 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
14853 
14854   for ac_prog in apt-get yum port pkgutil pkgadd
14855 do
14856   # Extract the first word of "$ac_prog", so it can be a program name with args.
14857 set dummy $ac_prog; ac_word=$2
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859 $as_echo_n "checking for $ac_word... " >&6; }
14860 if ${ac_cv_prog_PKGHANDLER+:} false; then :
14861   $as_echo_n "(cached) " >&6
14862 else
14863   if test -n "$PKGHANDLER"; then
14864   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
14865 else
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14868 do
14869   IFS=$as_save_IFS
14870   test -z "$as_dir" && as_dir=.
14871     for ac_exec_ext in '' $ac_executable_extensions; do
14872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14873     ac_cv_prog_PKGHANDLER="$ac_prog"
14874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14875     break 2
14876   fi
14877 done
14878   done
14879 IFS=$as_save_IFS
14880 
14881 fi
14882 fi
14883 PKGHANDLER=$ac_cv_prog_PKGHANDLER
14884 if test -n "$PKGHANDLER"; then
14885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
14886 $as_echo "$PKGHANDLER" >&6; }
14887 else
14888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 $as_echo "no" >&6; }
14890 fi
14891 
14892 
14893   test -n "$PKGHANDLER" && break
14894 done
14895 
14896 
14897 
14898 # Setup tools that requires more complex handling, or that is not needed by the configure script.
14899 
14900 
14901   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
14902   if test "x$MAKE" != x; then
14903     # User has supplied a make, test it.
14904     if test ! -f "$MAKE"; then
14905       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
14906     fi
14907 
14908   MAKE_CANDIDATE=""$MAKE""
14909   DESCRIPTION="user supplied MAKE=$MAKE"
14910   if test "x$MAKE_CANDIDATE" != x; then
14911     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
14912 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
14913     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
14914     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
14915     if test "x$IS_GNU_MAKE" = x; then
14916       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
14917 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
14918     else
14919       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
14920       if test "x$IS_MODERN_MAKE" = x; then
14921         { $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
14922 $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;}
14923       else
14924         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
14925           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14926             MAKE_EXPECTED_ENV='cygwin'
14927           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14928             MAKE_EXPECTED_ENV='msys'
14929           else
14930             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
14931           fi
14932           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
14933           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
14934         else
14935           # Not relevant for non-Windows
14936           IS_MAKE_CORRECT_ENV=true
14937         fi
14938         if test "x$IS_MAKE_CORRECT_ENV" = x; then
14939           { $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
14940 $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;}
14941         else
14942           FOUND_MAKE=$MAKE_CANDIDATE
14943 
14944   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14945 
14946   # First separate the path from the arguments. This will split at the first
14947   # space.
14948   complete="$FOUND_MAKE"
14949   path="${complete%% *}"
14950   tmp="$complete EOL"
14951   arguments="${tmp#* }"
14952 
14953   # Input might be given as Windows format, start by converting to
14954   # unix format.
14955   new_path=`$CYGPATH -u "$path"`
14956 
14957   # Now try to locate executable using which
14958   new_path=`$WHICH "$new_path" 2> /dev/null`
14959   # bat and cmd files are not always considered executable in cygwin causing which
14960   # to not find them
14961   if test "x$new_path" = x \
14962       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14963       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14964     new_path=`$CYGPATH -u "$path"`
14965   fi
14966   if test "x$new_path" = x; then
14967     # Oops. Which didn't find the executable.
14968     # The splitting of arguments from the executable at a space might have been incorrect,
14969     # since paths with space are more likely in Windows. Give it another try with the whole
14970     # argument.
14971     path="$complete"
14972     arguments="EOL"
14973     new_path=`$CYGPATH -u "$path"`
14974     new_path=`$WHICH "$new_path" 2> /dev/null`
14975     # bat and cmd files are not always considered executable in cygwin causing which
14976     # to not find them
14977     if test "x$new_path" = x \
14978         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14979         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14980       new_path=`$CYGPATH -u "$path"`
14981     fi
14982     if test "x$new_path" = x; then
14983       # It's still not found. Now this is an unrecoverable error.
14984       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
14985 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
14986       has_space=`$ECHO "$complete" | $GREP " "`
14987       if test "x$has_space" != x; then
14988         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
14989 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
14990       fi
14991       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
14992     fi
14993   fi
14994 
14995   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14996   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14997   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14998   # "foo.exe" is OK but "foo" is an error.
14999   #
15000   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15001   # It is also a way to make sure we got the proper file name for the real test later on.
15002   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15003   if test "x$test_shortpath" = x; then
15004     # Short path failed, file does not exist as specified.
15005     # Try adding .exe or .cmd
15006     if test -f "${new_path}.exe"; then
15007       input_to_shortpath="${new_path}.exe"
15008     elif test -f "${new_path}.cmd"; then
15009       input_to_shortpath="${new_path}.cmd"
15010     else
15011       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15012 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15013       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15014 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15015       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15016     fi
15017   else
15018     input_to_shortpath="$new_path"
15019   fi
15020 
15021   # Call helper function which possibly converts this using DOS-style short mode.
15022   # If so, the updated path is stored in $new_path.
15023   new_path="$input_to_shortpath"
15024 
15025   input_path="$input_to_shortpath"
15026   # Check if we need to convert this using DOS-style short mode. If the path
15027   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15028   # take no chances and rewrite it.
15029   # Note: m4 eats our [], so we need to use [ and ] instead.
15030   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15031   if test "x$has_forbidden_chars" != x; then
15032     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15033     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15034     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15035     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15036       # Going to short mode and back again did indeed matter. Since short mode is
15037       # case insensitive, let's make it lowercase to improve readability.
15038       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15039       # Now convert it back to Unix-stile (cygpath)
15040       input_path=`$CYGPATH -u "$shortmode_path"`
15041       new_path="$input_path"
15042     fi
15043   fi
15044 
15045   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15046   if test "x$test_cygdrive_prefix" = x; then
15047     # As a simple fix, exclude /usr/bin since it's not a real path.
15048     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15049       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15050       # a path prefixed by /cygdrive for fixpath to work.
15051       new_path="$CYGWIN_ROOT_PATH$input_path"
15052     fi
15053   fi
15054 
15055   # remove trailing .exe if any
15056   new_path="${new_path/%.exe/}"
15057 
15058   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15059 
15060   # First separate the path from the arguments. This will split at the first
15061   # space.
15062   complete="$FOUND_MAKE"
15063   path="${complete%% *}"
15064   tmp="$complete EOL"
15065   arguments="${tmp#* }"
15066 
15067   # Input might be given as Windows format, start by converting to
15068   # unix format.
15069   new_path="$path"
15070 
15071   windows_path="$new_path"
15072   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15073     unix_path=`$CYGPATH -u "$windows_path"`
15074     new_path="$unix_path"
15075   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15076     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15077     new_path="$unix_path"
15078   fi
15079 
15080 
15081   # Now try to locate executable using which
15082   new_path=`$WHICH "$new_path" 2> /dev/null`
15083 
15084   if test "x$new_path" = x; then
15085     # Oops. Which didn't find the executable.
15086     # The splitting of arguments from the executable at a space might have been incorrect,
15087     # since paths with space are more likely in Windows. Give it another try with the whole
15088     # argument.
15089     path="$complete"
15090     arguments="EOL"
15091     new_path="$path"
15092 
15093   windows_path="$new_path"
15094   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15095     unix_path=`$CYGPATH -u "$windows_path"`
15096     new_path="$unix_path"
15097   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15098     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15099     new_path="$unix_path"
15100   fi
15101 
15102 
15103     new_path=`$WHICH "$new_path" 2> /dev/null`
15104 
15105     if test "x$new_path" = x; then
15106       # It's still not found. Now this is an unrecoverable error.
15107       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15108 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15109       has_space=`$ECHO "$complete" | $GREP " "`
15110       if test "x$has_space" != x; then
15111         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15112 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15113       fi
15114       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15115     fi
15116   fi
15117 
15118   # Now new_path has a complete unix path to the binary
15119   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15120     # Keep paths in /bin as-is, but remove trailing .exe if any
15121     new_path="${new_path/%.exe/}"
15122     # Do not save /bin paths to all_fixpath_prefixes!
15123   else
15124     # Not in mixed or Windows style, start by that.
15125     new_path=`cmd //c echo $new_path`
15126 
15127   input_path="$new_path"
15128   # Check if we need to convert this using DOS-style short mode. If the path
15129   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15130   # take no chances and rewrite it.
15131   # Note: m4 eats our [], so we need to use [ and ] instead.
15132   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15133   if test "x$has_forbidden_chars" != x; then
15134     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15135     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15136   fi
15137 
15138     # Output is in $new_path
15139 
15140   windows_path="$new_path"
15141   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15142     unix_path=`$CYGPATH -u "$windows_path"`
15143     new_path="$unix_path"
15144   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15145     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15146     new_path="$unix_path"
15147   fi
15148 
15149     # remove trailing .exe if any
15150     new_path="${new_path/%.exe/}"
15151 
15152     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15153     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15154   fi
15155 
15156   else
15157     # We're on a posix platform. Hooray! :)
15158     # First separate the path from the arguments. This will split at the first
15159     # space.
15160     complete="$FOUND_MAKE"
15161     path="${complete%% *}"
15162     tmp="$complete EOL"
15163     arguments="${tmp#* }"
15164 
15165     # Cannot rely on the command "which" here since it doesn't always work.
15166     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15167     if test -z "$is_absolute_path"; then
15168       # Path to executable is not absolute. Find it.
15169       IFS_save="$IFS"
15170       IFS=:
15171       for p in $PATH; do
15172         if test -f "$p/$path" && test -x "$p/$path"; then
15173           new_path="$p/$path"
15174           break
15175         fi
15176       done
15177       IFS="$IFS_save"
15178     else
15179       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15180 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15181       new_path="$path"
15182     fi
15183 
15184     if test "x$new_path" = x; then
15185       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15186 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15187       has_space=`$ECHO "$complete" | $GREP " "`
15188       if test "x$has_space" != x; then
15189         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15190 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15191       fi
15192       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15193     fi
15194   fi
15195 
15196   # Now join together the path and the arguments once again
15197   if test "x$arguments" != xEOL; then
15198     new_complete="$new_path ${arguments% *}"
15199   else
15200     new_complete="$new_path"
15201   fi
15202 
15203   if test "x$complete" != "x$new_complete"; then
15204     FOUND_MAKE="$new_complete"
15205     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15206 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15207   fi
15208 
15209         fi
15210       fi
15211     fi
15212   fi
15213 
15214     if test "x$FOUND_MAKE" = x; then
15215       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15216     fi
15217   else
15218     # Try our hardest to locate a correct version of GNU make
15219     for ac_prog in gmake
15220 do
15221   # Extract the first word of "$ac_prog", so it can be a program name with args.
15222 set dummy $ac_prog; ac_word=$2
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15224 $as_echo_n "checking for $ac_word... " >&6; }
15225 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15226   $as_echo_n "(cached) " >&6
15227 else
15228   case $CHECK_GMAKE in
15229   [\\/]* | ?:[\\/]*)
15230   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15231   ;;
15232   *)
15233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234 for as_dir in $PATH
15235 do
15236   IFS=$as_save_IFS
15237   test -z "$as_dir" && as_dir=.
15238     for ac_exec_ext in '' $ac_executable_extensions; do
15239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15240     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15242     break 2
15243   fi
15244 done
15245   done
15246 IFS=$as_save_IFS
15247 
15248   ;;
15249 esac
15250 fi
15251 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15252 if test -n "$CHECK_GMAKE"; then
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15254 $as_echo "$CHECK_GMAKE" >&6; }
15255 else
15256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15257 $as_echo "no" >&6; }
15258 fi
15259 
15260 
15261   test -n "$CHECK_GMAKE" && break
15262 done
15263 
15264 
15265   MAKE_CANDIDATE=""$CHECK_GMAKE""
15266   DESCRIPTION="gmake in PATH"
15267   if test "x$MAKE_CANDIDATE" != x; then
15268     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15269 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15270     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15271     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15272     if test "x$IS_GNU_MAKE" = x; then
15273       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15274 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15275     else
15276       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15277       if test "x$IS_MODERN_MAKE" = x; then
15278         { $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
15279 $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;}
15280       else
15281         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15282           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15283             MAKE_EXPECTED_ENV='cygwin'
15284           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15285             MAKE_EXPECTED_ENV='msys'
15286           else
15287             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15288           fi
15289           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15290           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15291         else
15292           # Not relevant for non-Windows
15293           IS_MAKE_CORRECT_ENV=true
15294         fi
15295         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15296           { $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
15297 $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;}
15298         else
15299           FOUND_MAKE=$MAKE_CANDIDATE
15300 
15301   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15302 
15303   # First separate the path from the arguments. This will split at the first
15304   # space.
15305   complete="$FOUND_MAKE"
15306   path="${complete%% *}"
15307   tmp="$complete EOL"
15308   arguments="${tmp#* }"
15309 
15310   # Input might be given as Windows format, start by converting to
15311   # unix format.
15312   new_path=`$CYGPATH -u "$path"`
15313 
15314   # Now try to locate executable using which
15315   new_path=`$WHICH "$new_path" 2> /dev/null`
15316   # bat and cmd files are not always considered executable in cygwin causing which
15317   # to not find them
15318   if test "x$new_path" = x \
15319       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15320       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15321     new_path=`$CYGPATH -u "$path"`
15322   fi
15323   if test "x$new_path" = x; then
15324     # Oops. Which didn't find the executable.
15325     # The splitting of arguments from the executable at a space might have been incorrect,
15326     # since paths with space are more likely in Windows. Give it another try with the whole
15327     # argument.
15328     path="$complete"
15329     arguments="EOL"
15330     new_path=`$CYGPATH -u "$path"`
15331     new_path=`$WHICH "$new_path" 2> /dev/null`
15332     # bat and cmd files are not always considered executable in cygwin causing which
15333     # to not find them
15334     if test "x$new_path" = x \
15335         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15336         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15337       new_path=`$CYGPATH -u "$path"`
15338     fi
15339     if test "x$new_path" = x; then
15340       # It's still not found. Now this is an unrecoverable error.
15341       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15342 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15343       has_space=`$ECHO "$complete" | $GREP " "`
15344       if test "x$has_space" != x; then
15345         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15346 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15347       fi
15348       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15349     fi
15350   fi
15351 
15352   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15353   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15354   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15355   # "foo.exe" is OK but "foo" is an error.
15356   #
15357   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15358   # It is also a way to make sure we got the proper file name for the real test later on.
15359   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15360   if test "x$test_shortpath" = x; then
15361     # Short path failed, file does not exist as specified.
15362     # Try adding .exe or .cmd
15363     if test -f "${new_path}.exe"; then
15364       input_to_shortpath="${new_path}.exe"
15365     elif test -f "${new_path}.cmd"; then
15366       input_to_shortpath="${new_path}.cmd"
15367     else
15368       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15369 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15370       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15371 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15372       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15373     fi
15374   else
15375     input_to_shortpath="$new_path"
15376   fi
15377 
15378   # Call helper function which possibly converts this using DOS-style short mode.
15379   # If so, the updated path is stored in $new_path.
15380   new_path="$input_to_shortpath"
15381 
15382   input_path="$input_to_shortpath"
15383   # Check if we need to convert this using DOS-style short mode. If the path
15384   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15385   # take no chances and rewrite it.
15386   # Note: m4 eats our [], so we need to use [ and ] instead.
15387   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15388   if test "x$has_forbidden_chars" != x; then
15389     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15390     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15391     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15392     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15393       # Going to short mode and back again did indeed matter. Since short mode is
15394       # case insensitive, let's make it lowercase to improve readability.
15395       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15396       # Now convert it back to Unix-stile (cygpath)
15397       input_path=`$CYGPATH -u "$shortmode_path"`
15398       new_path="$input_path"
15399     fi
15400   fi
15401 
15402   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15403   if test "x$test_cygdrive_prefix" = x; then
15404     # As a simple fix, exclude /usr/bin since it's not a real path.
15405     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15406       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15407       # a path prefixed by /cygdrive for fixpath to work.
15408       new_path="$CYGWIN_ROOT_PATH$input_path"
15409     fi
15410   fi
15411 
15412   # remove trailing .exe if any
15413   new_path="${new_path/%.exe/}"
15414 
15415   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15416 
15417   # First separate the path from the arguments. This will split at the first
15418   # space.
15419   complete="$FOUND_MAKE"
15420   path="${complete%% *}"
15421   tmp="$complete EOL"
15422   arguments="${tmp#* }"
15423 
15424   # Input might be given as Windows format, start by converting to
15425   # unix format.
15426   new_path="$path"
15427 
15428   windows_path="$new_path"
15429   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15430     unix_path=`$CYGPATH -u "$windows_path"`
15431     new_path="$unix_path"
15432   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15433     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15434     new_path="$unix_path"
15435   fi
15436 
15437 
15438   # Now try to locate executable using which
15439   new_path=`$WHICH "$new_path" 2> /dev/null`
15440 
15441   if test "x$new_path" = x; then
15442     # Oops. Which didn't find the executable.
15443     # The splitting of arguments from the executable at a space might have been incorrect,
15444     # since paths with space are more likely in Windows. Give it another try with the whole
15445     # argument.
15446     path="$complete"
15447     arguments="EOL"
15448     new_path="$path"
15449 
15450   windows_path="$new_path"
15451   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15452     unix_path=`$CYGPATH -u "$windows_path"`
15453     new_path="$unix_path"
15454   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15455     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15456     new_path="$unix_path"
15457   fi
15458 
15459 
15460     new_path=`$WHICH "$new_path" 2> /dev/null`
15461 
15462     if test "x$new_path" = x; then
15463       # It's still not found. Now this is an unrecoverable error.
15464       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15465 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15466       has_space=`$ECHO "$complete" | $GREP " "`
15467       if test "x$has_space" != x; then
15468         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15469 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15470       fi
15471       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15472     fi
15473   fi
15474 
15475   # Now new_path has a complete unix path to the binary
15476   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15477     # Keep paths in /bin as-is, but remove trailing .exe if any
15478     new_path="${new_path/%.exe/}"
15479     # Do not save /bin paths to all_fixpath_prefixes!
15480   else
15481     # Not in mixed or Windows style, start by that.
15482     new_path=`cmd //c echo $new_path`
15483 
15484   input_path="$new_path"
15485   # Check if we need to convert this using DOS-style short mode. If the path
15486   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15487   # take no chances and rewrite it.
15488   # Note: m4 eats our [], so we need to use [ and ] instead.
15489   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15490   if test "x$has_forbidden_chars" != x; then
15491     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15492     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15493   fi
15494 
15495     # Output is in $new_path
15496 
15497   windows_path="$new_path"
15498   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15499     unix_path=`$CYGPATH -u "$windows_path"`
15500     new_path="$unix_path"
15501   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15502     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15503     new_path="$unix_path"
15504   fi
15505 
15506     # remove trailing .exe if any
15507     new_path="${new_path/%.exe/}"
15508 
15509     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15510     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15511   fi
15512 
15513   else
15514     # We're on a posix platform. Hooray! :)
15515     # First separate the path from the arguments. This will split at the first
15516     # space.
15517     complete="$FOUND_MAKE"
15518     path="${complete%% *}"
15519     tmp="$complete EOL"
15520     arguments="${tmp#* }"
15521 
15522     # Cannot rely on the command "which" here since it doesn't always work.
15523     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15524     if test -z "$is_absolute_path"; then
15525       # Path to executable is not absolute. Find it.
15526       IFS_save="$IFS"
15527       IFS=:
15528       for p in $PATH; do
15529         if test -f "$p/$path" && test -x "$p/$path"; then
15530           new_path="$p/$path"
15531           break
15532         fi
15533       done
15534       IFS="$IFS_save"
15535     else
15536       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15537 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15538       new_path="$path"
15539     fi
15540 
15541     if test "x$new_path" = x; then
15542       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15543 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15544       has_space=`$ECHO "$complete" | $GREP " "`
15545       if test "x$has_space" != x; then
15546         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15547 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15548       fi
15549       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15550     fi
15551   fi
15552 
15553   # Now join together the path and the arguments once again
15554   if test "x$arguments" != xEOL; then
15555     new_complete="$new_path ${arguments% *}"
15556   else
15557     new_complete="$new_path"
15558   fi
15559 
15560   if test "x$complete" != "x$new_complete"; then
15561     FOUND_MAKE="$new_complete"
15562     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15563 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15564   fi
15565 
15566         fi
15567       fi
15568     fi
15569   fi
15570 
15571 
15572     if test "x$FOUND_MAKE" = x; then
15573       for ac_prog in make
15574 do
15575   # Extract the first word of "$ac_prog", so it can be a program name with args.
15576 set dummy $ac_prog; ac_word=$2
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15578 $as_echo_n "checking for $ac_word... " >&6; }
15579 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15580   $as_echo_n "(cached) " >&6
15581 else
15582   case $CHECK_MAKE in
15583   [\\/]* | ?:[\\/]*)
15584   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15585   ;;
15586   *)
15587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15588 for as_dir in $PATH
15589 do
15590   IFS=$as_save_IFS
15591   test -z "$as_dir" && as_dir=.
15592     for ac_exec_ext in '' $ac_executable_extensions; do
15593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15594     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15596     break 2
15597   fi
15598 done
15599   done
15600 IFS=$as_save_IFS
15601 
15602   ;;
15603 esac
15604 fi
15605 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15606 if test -n "$CHECK_MAKE"; then
15607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15608 $as_echo "$CHECK_MAKE" >&6; }
15609 else
15610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15611 $as_echo "no" >&6; }
15612 fi
15613 
15614 
15615   test -n "$CHECK_MAKE" && break
15616 done
15617 
15618 
15619   MAKE_CANDIDATE=""$CHECK_MAKE""
15620   DESCRIPTION="make in PATH"
15621   if test "x$MAKE_CANDIDATE" != x; then
15622     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15623 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15624     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15625     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15626     if test "x$IS_GNU_MAKE" = x; then
15627       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15628 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15629     else
15630       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15631       if test "x$IS_MODERN_MAKE" = x; then
15632         { $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
15633 $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;}
15634       else
15635         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15636           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15637             MAKE_EXPECTED_ENV='cygwin'
15638           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15639             MAKE_EXPECTED_ENV='msys'
15640           else
15641             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15642           fi
15643           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15644           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15645         else
15646           # Not relevant for non-Windows
15647           IS_MAKE_CORRECT_ENV=true
15648         fi
15649         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15650           { $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
15651 $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;}
15652         else
15653           FOUND_MAKE=$MAKE_CANDIDATE
15654 
15655   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15656 
15657   # First separate the path from the arguments. This will split at the first
15658   # space.
15659   complete="$FOUND_MAKE"
15660   path="${complete%% *}"
15661   tmp="$complete EOL"
15662   arguments="${tmp#* }"
15663 
15664   # Input might be given as Windows format, start by converting to
15665   # unix format.
15666   new_path=`$CYGPATH -u "$path"`
15667 
15668   # Now try to locate executable using which
15669   new_path=`$WHICH "$new_path" 2> /dev/null`
15670   # bat and cmd files are not always considered executable in cygwin causing which
15671   # to not find them
15672   if test "x$new_path" = x \
15673       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15674       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15675     new_path=`$CYGPATH -u "$path"`
15676   fi
15677   if test "x$new_path" = x; then
15678     # Oops. Which didn't find the executable.
15679     # The splitting of arguments from the executable at a space might have been incorrect,
15680     # since paths with space are more likely in Windows. Give it another try with the whole
15681     # argument.
15682     path="$complete"
15683     arguments="EOL"
15684     new_path=`$CYGPATH -u "$path"`
15685     new_path=`$WHICH "$new_path" 2> /dev/null`
15686     # bat and cmd files are not always considered executable in cygwin causing which
15687     # to not find them
15688     if test "x$new_path" = x \
15689         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15690         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15691       new_path=`$CYGPATH -u "$path"`
15692     fi
15693     if test "x$new_path" = x; then
15694       # It's still not found. Now this is an unrecoverable error.
15695       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15696 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15697       has_space=`$ECHO "$complete" | $GREP " "`
15698       if test "x$has_space" != x; then
15699         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15700 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15701       fi
15702       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15703     fi
15704   fi
15705 
15706   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15707   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15708   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15709   # "foo.exe" is OK but "foo" is an error.
15710   #
15711   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15712   # It is also a way to make sure we got the proper file name for the real test later on.
15713   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15714   if test "x$test_shortpath" = x; then
15715     # Short path failed, file does not exist as specified.
15716     # Try adding .exe or .cmd
15717     if test -f "${new_path}.exe"; then
15718       input_to_shortpath="${new_path}.exe"
15719     elif test -f "${new_path}.cmd"; then
15720       input_to_shortpath="${new_path}.cmd"
15721     else
15722       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15723 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15724       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15725 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15726       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15727     fi
15728   else
15729     input_to_shortpath="$new_path"
15730   fi
15731 
15732   # Call helper function which possibly converts this using DOS-style short mode.
15733   # If so, the updated path is stored in $new_path.
15734   new_path="$input_to_shortpath"
15735 
15736   input_path="$input_to_shortpath"
15737   # Check if we need to convert this using DOS-style short mode. If the path
15738   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15739   # take no chances and rewrite it.
15740   # Note: m4 eats our [], so we need to use [ and ] instead.
15741   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15742   if test "x$has_forbidden_chars" != x; then
15743     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15744     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15745     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15746     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15747       # Going to short mode and back again did indeed matter. Since short mode is
15748       # case insensitive, let's make it lowercase to improve readability.
15749       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15750       # Now convert it back to Unix-stile (cygpath)
15751       input_path=`$CYGPATH -u "$shortmode_path"`
15752       new_path="$input_path"
15753     fi
15754   fi
15755 
15756   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15757   if test "x$test_cygdrive_prefix" = x; then
15758     # As a simple fix, exclude /usr/bin since it's not a real path.
15759     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15760       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15761       # a path prefixed by /cygdrive for fixpath to work.
15762       new_path="$CYGWIN_ROOT_PATH$input_path"
15763     fi
15764   fi
15765 
15766   # remove trailing .exe if any
15767   new_path="${new_path/%.exe/}"
15768 
15769   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15770 
15771   # First separate the path from the arguments. This will split at the first
15772   # space.
15773   complete="$FOUND_MAKE"
15774   path="${complete%% *}"
15775   tmp="$complete EOL"
15776   arguments="${tmp#* }"
15777 
15778   # Input might be given as Windows format, start by converting to
15779   # unix format.
15780   new_path="$path"
15781 
15782   windows_path="$new_path"
15783   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15784     unix_path=`$CYGPATH -u "$windows_path"`
15785     new_path="$unix_path"
15786   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15787     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15788     new_path="$unix_path"
15789   fi
15790 
15791 
15792   # Now try to locate executable using which
15793   new_path=`$WHICH "$new_path" 2> /dev/null`
15794 
15795   if test "x$new_path" = x; then
15796     # Oops. Which didn't find the executable.
15797     # The splitting of arguments from the executable at a space might have been incorrect,
15798     # since paths with space are more likely in Windows. Give it another try with the whole
15799     # argument.
15800     path="$complete"
15801     arguments="EOL"
15802     new_path="$path"
15803 
15804   windows_path="$new_path"
15805   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15806     unix_path=`$CYGPATH -u "$windows_path"`
15807     new_path="$unix_path"
15808   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15809     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15810     new_path="$unix_path"
15811   fi
15812 
15813 
15814     new_path=`$WHICH "$new_path" 2> /dev/null`
15815 
15816     if test "x$new_path" = x; then
15817       # It's still not found. Now this is an unrecoverable error.
15818       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15819 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15820       has_space=`$ECHO "$complete" | $GREP " "`
15821       if test "x$has_space" != x; then
15822         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15823 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15824       fi
15825       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15826     fi
15827   fi
15828 
15829   # Now new_path has a complete unix path to the binary
15830   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15831     # Keep paths in /bin as-is, but remove trailing .exe if any
15832     new_path="${new_path/%.exe/}"
15833     # Do not save /bin paths to all_fixpath_prefixes!
15834   else
15835     # Not in mixed or Windows style, start by that.
15836     new_path=`cmd //c echo $new_path`
15837 
15838   input_path="$new_path"
15839   # Check if we need to convert this using DOS-style short mode. If the path
15840   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15841   # take no chances and rewrite it.
15842   # Note: m4 eats our [], so we need to use [ and ] instead.
15843   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15844   if test "x$has_forbidden_chars" != x; then
15845     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15846     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15847   fi
15848 
15849     # Output is in $new_path
15850 
15851   windows_path="$new_path"
15852   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15853     unix_path=`$CYGPATH -u "$windows_path"`
15854     new_path="$unix_path"
15855   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15856     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15857     new_path="$unix_path"
15858   fi
15859 
15860     # remove trailing .exe if any
15861     new_path="${new_path/%.exe/}"
15862 
15863     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15864     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15865   fi
15866 
15867   else
15868     # We're on a posix platform. Hooray! :)
15869     # First separate the path from the arguments. This will split at the first
15870     # space.
15871     complete="$FOUND_MAKE"
15872     path="${complete%% *}"
15873     tmp="$complete EOL"
15874     arguments="${tmp#* }"
15875 
15876     # Cannot rely on the command "which" here since it doesn't always work.
15877     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15878     if test -z "$is_absolute_path"; then
15879       # Path to executable is not absolute. Find it.
15880       IFS_save="$IFS"
15881       IFS=:
15882       for p in $PATH; do
15883         if test -f "$p/$path" && test -x "$p/$path"; then
15884           new_path="$p/$path"
15885           break
15886         fi
15887       done
15888       IFS="$IFS_save"
15889     else
15890       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15891 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15892       new_path="$path"
15893     fi
15894 
15895     if test "x$new_path" = x; then
15896       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15897 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15898       has_space=`$ECHO "$complete" | $GREP " "`
15899       if test "x$has_space" != x; then
15900         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15901 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15902       fi
15903       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15904     fi
15905   fi
15906 
15907   # Now join together the path and the arguments once again
15908   if test "x$arguments" != xEOL; then
15909     new_complete="$new_path ${arguments% *}"
15910   else
15911     new_complete="$new_path"
15912   fi
15913 
15914   if test "x$complete" != "x$new_complete"; then
15915     FOUND_MAKE="$new_complete"
15916     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15917 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15918   fi
15919 
15920         fi
15921       fi
15922     fi
15923   fi
15924 
15925     fi
15926 
15927     if test "x$FOUND_MAKE" = x; then
15928       if test "x$TOOLS_DIR" != x; then
15929         # We have a tools-dir, check that as well before giving up.
15930         OLD_PATH=$PATH
15931         PATH=$TOOLS_DIR:$PATH
15932         for ac_prog in gmake
15933 do
15934   # Extract the first word of "$ac_prog", so it can be a program name with args.
15935 set dummy $ac_prog; ac_word=$2
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15937 $as_echo_n "checking for $ac_word... " >&6; }
15938 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
15939   $as_echo_n "(cached) " >&6
15940 else
15941   case $CHECK_TOOLSDIR_GMAKE in
15942   [\\/]* | ?:[\\/]*)
15943   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
15944   ;;
15945   *)
15946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947 for as_dir in $PATH
15948 do
15949   IFS=$as_save_IFS
15950   test -z "$as_dir" && as_dir=.
15951     for ac_exec_ext in '' $ac_executable_extensions; do
15952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15953     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15955     break 2
15956   fi
15957 done
15958   done
15959 IFS=$as_save_IFS
15960 
15961   ;;
15962 esac
15963 fi
15964 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
15965 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
15966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
15967 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
15968 else
15969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15970 $as_echo "no" >&6; }
15971 fi
15972 
15973 
15974   test -n "$CHECK_TOOLSDIR_GMAKE" && break
15975 done
15976 
15977 
15978   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
15979   DESCRIPTION="gmake in tools-dir"
15980   if test "x$MAKE_CANDIDATE" != x; then
15981     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15982 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15983     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15984     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15985     if test "x$IS_GNU_MAKE" = x; then
15986       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15987 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15988     else
15989       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15990       if test "x$IS_MODERN_MAKE" = x; then
15991         { $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
15992 $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;}
15993       else
15994         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15995           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15996             MAKE_EXPECTED_ENV='cygwin'
15997           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15998             MAKE_EXPECTED_ENV='msys'
15999           else
16000             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16001           fi
16002           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16003           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16004         else
16005           # Not relevant for non-Windows
16006           IS_MAKE_CORRECT_ENV=true
16007         fi
16008         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16009           { $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
16010 $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;}
16011         else
16012           FOUND_MAKE=$MAKE_CANDIDATE
16013 
16014   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16015 
16016   # First separate the path from the arguments. This will split at the first
16017   # space.
16018   complete="$FOUND_MAKE"
16019   path="${complete%% *}"
16020   tmp="$complete EOL"
16021   arguments="${tmp#* }"
16022 
16023   # Input might be given as Windows format, start by converting to
16024   # unix format.
16025   new_path=`$CYGPATH -u "$path"`
16026 
16027   # Now try to locate executable using which
16028   new_path=`$WHICH "$new_path" 2> /dev/null`
16029   # bat and cmd files are not always considered executable in cygwin causing which
16030   # to not find them
16031   if test "x$new_path" = x \
16032       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16033       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16034     new_path=`$CYGPATH -u "$path"`
16035   fi
16036   if test "x$new_path" = x; then
16037     # Oops. Which didn't find the executable.
16038     # The splitting of arguments from the executable at a space might have been incorrect,
16039     # since paths with space are more likely in Windows. Give it another try with the whole
16040     # argument.
16041     path="$complete"
16042     arguments="EOL"
16043     new_path=`$CYGPATH -u "$path"`
16044     new_path=`$WHICH "$new_path" 2> /dev/null`
16045     # bat and cmd files are not always considered executable in cygwin causing which
16046     # to not find them
16047     if test "x$new_path" = x \
16048         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16049         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16050       new_path=`$CYGPATH -u "$path"`
16051     fi
16052     if test "x$new_path" = x; then
16053       # It's still not found. Now this is an unrecoverable error.
16054       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16055 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16056       has_space=`$ECHO "$complete" | $GREP " "`
16057       if test "x$has_space" != x; then
16058         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16059 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16060       fi
16061       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16062     fi
16063   fi
16064 
16065   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16066   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16067   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16068   # "foo.exe" is OK but "foo" is an error.
16069   #
16070   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16071   # It is also a way to make sure we got the proper file name for the real test later on.
16072   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16073   if test "x$test_shortpath" = x; then
16074     # Short path failed, file does not exist as specified.
16075     # Try adding .exe or .cmd
16076     if test -f "${new_path}.exe"; then
16077       input_to_shortpath="${new_path}.exe"
16078     elif test -f "${new_path}.cmd"; then
16079       input_to_shortpath="${new_path}.cmd"
16080     else
16081       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16082 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16083       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16084 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16085       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16086     fi
16087   else
16088     input_to_shortpath="$new_path"
16089   fi
16090 
16091   # Call helper function which possibly converts this using DOS-style short mode.
16092   # If so, the updated path is stored in $new_path.
16093   new_path="$input_to_shortpath"
16094 
16095   input_path="$input_to_shortpath"
16096   # Check if we need to convert this using DOS-style short mode. If the path
16097   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16098   # take no chances and rewrite it.
16099   # Note: m4 eats our [], so we need to use [ and ] instead.
16100   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16101   if test "x$has_forbidden_chars" != x; then
16102     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16103     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16104     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16105     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16106       # Going to short mode and back again did indeed matter. Since short mode is
16107       # case insensitive, let's make it lowercase to improve readability.
16108       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16109       # Now convert it back to Unix-stile (cygpath)
16110       input_path=`$CYGPATH -u "$shortmode_path"`
16111       new_path="$input_path"
16112     fi
16113   fi
16114 
16115   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16116   if test "x$test_cygdrive_prefix" = x; then
16117     # As a simple fix, exclude /usr/bin since it's not a real path.
16118     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16119       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16120       # a path prefixed by /cygdrive for fixpath to work.
16121       new_path="$CYGWIN_ROOT_PATH$input_path"
16122     fi
16123   fi
16124 
16125   # remove trailing .exe if any
16126   new_path="${new_path/%.exe/}"
16127 
16128   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16129 
16130   # First separate the path from the arguments. This will split at the first
16131   # space.
16132   complete="$FOUND_MAKE"
16133   path="${complete%% *}"
16134   tmp="$complete EOL"
16135   arguments="${tmp#* }"
16136 
16137   # Input might be given as Windows format, start by converting to
16138   # unix format.
16139   new_path="$path"
16140 
16141   windows_path="$new_path"
16142   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16143     unix_path=`$CYGPATH -u "$windows_path"`
16144     new_path="$unix_path"
16145   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16146     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16147     new_path="$unix_path"
16148   fi
16149 
16150 
16151   # Now try to locate executable using which
16152   new_path=`$WHICH "$new_path" 2> /dev/null`
16153 
16154   if test "x$new_path" = x; then
16155     # Oops. Which didn't find the executable.
16156     # The splitting of arguments from the executable at a space might have been incorrect,
16157     # since paths with space are more likely in Windows. Give it another try with the whole
16158     # argument.
16159     path="$complete"
16160     arguments="EOL"
16161     new_path="$path"
16162 
16163   windows_path="$new_path"
16164   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16165     unix_path=`$CYGPATH -u "$windows_path"`
16166     new_path="$unix_path"
16167   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16168     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16169     new_path="$unix_path"
16170   fi
16171 
16172 
16173     new_path=`$WHICH "$new_path" 2> /dev/null`
16174 
16175     if test "x$new_path" = x; then
16176       # It's still not found. Now this is an unrecoverable error.
16177       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16178 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16179       has_space=`$ECHO "$complete" | $GREP " "`
16180       if test "x$has_space" != x; then
16181         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16182 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16183       fi
16184       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16185     fi
16186   fi
16187 
16188   # Now new_path has a complete unix path to the binary
16189   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16190     # Keep paths in /bin as-is, but remove trailing .exe if any
16191     new_path="${new_path/%.exe/}"
16192     # Do not save /bin paths to all_fixpath_prefixes!
16193   else
16194     # Not in mixed or Windows style, start by that.
16195     new_path=`cmd //c echo $new_path`
16196 
16197   input_path="$new_path"
16198   # Check if we need to convert this using DOS-style short mode. If the path
16199   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16200   # take no chances and rewrite it.
16201   # Note: m4 eats our [], so we need to use [ and ] instead.
16202   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16203   if test "x$has_forbidden_chars" != x; then
16204     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16205     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16206   fi
16207 
16208     # Output is in $new_path
16209 
16210   windows_path="$new_path"
16211   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16212     unix_path=`$CYGPATH -u "$windows_path"`
16213     new_path="$unix_path"
16214   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16215     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16216     new_path="$unix_path"
16217   fi
16218 
16219     # remove trailing .exe if any
16220     new_path="${new_path/%.exe/}"
16221 
16222     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16223     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16224   fi
16225 
16226   else
16227     # We're on a posix platform. Hooray! :)
16228     # First separate the path from the arguments. This will split at the first
16229     # space.
16230     complete="$FOUND_MAKE"
16231     path="${complete%% *}"
16232     tmp="$complete EOL"
16233     arguments="${tmp#* }"
16234 
16235     # Cannot rely on the command "which" here since it doesn't always work.
16236     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16237     if test -z "$is_absolute_path"; then
16238       # Path to executable is not absolute. Find it.
16239       IFS_save="$IFS"
16240       IFS=:
16241       for p in $PATH; do
16242         if test -f "$p/$path" && test -x "$p/$path"; then
16243           new_path="$p/$path"
16244           break
16245         fi
16246       done
16247       IFS="$IFS_save"
16248     else
16249       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16250 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16251       new_path="$path"
16252     fi
16253 
16254     if test "x$new_path" = x; then
16255       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16256 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16257       has_space=`$ECHO "$complete" | $GREP " "`
16258       if test "x$has_space" != x; then
16259         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16260 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16261       fi
16262       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16263     fi
16264   fi
16265 
16266   # Now join together the path and the arguments once again
16267   if test "x$arguments" != xEOL; then
16268     new_complete="$new_path ${arguments% *}"
16269   else
16270     new_complete="$new_path"
16271   fi
16272 
16273   if test "x$complete" != "x$new_complete"; then
16274     FOUND_MAKE="$new_complete"
16275     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16276 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16277   fi
16278 
16279         fi
16280       fi
16281     fi
16282   fi
16283 
16284         if test "x$FOUND_MAKE" = x; then
16285           for ac_prog in make
16286 do
16287   # Extract the first word of "$ac_prog", so it can be a program name with args.
16288 set dummy $ac_prog; ac_word=$2
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16290 $as_echo_n "checking for $ac_word... " >&6; }
16291 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16292   $as_echo_n "(cached) " >&6
16293 else
16294   case $CHECK_TOOLSDIR_MAKE in
16295   [\\/]* | ?:[\\/]*)
16296   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16297   ;;
16298   *)
16299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16300 for as_dir in $PATH
16301 do
16302   IFS=$as_save_IFS
16303   test -z "$as_dir" && as_dir=.
16304     for ac_exec_ext in '' $ac_executable_extensions; do
16305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16306     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16308     break 2
16309   fi
16310 done
16311   done
16312 IFS=$as_save_IFS
16313 
16314   ;;
16315 esac
16316 fi
16317 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16318 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16320 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16321 else
16322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16324 fi
16325 
16326 
16327   test -n "$CHECK_TOOLSDIR_MAKE" && break
16328 done
16329 
16330 
16331   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16332   DESCRIPTION="make in tools-dir"
16333   if test "x$MAKE_CANDIDATE" != x; then
16334     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16335 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16336     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16337     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16338     if test "x$IS_GNU_MAKE" = x; then
16339       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16340 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16341     else
16342       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16343       if test "x$IS_MODERN_MAKE" = x; then
16344         { $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
16345 $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;}
16346       else
16347         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16348           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16349             MAKE_EXPECTED_ENV='cygwin'
16350           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16351             MAKE_EXPECTED_ENV='msys'
16352           else
16353             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16354           fi
16355           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16356           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16357         else
16358           # Not relevant for non-Windows
16359           IS_MAKE_CORRECT_ENV=true
16360         fi
16361         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16362           { $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
16363 $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;}
16364         else
16365           FOUND_MAKE=$MAKE_CANDIDATE
16366 
16367   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16368 
16369   # First separate the path from the arguments. This will split at the first
16370   # space.
16371   complete="$FOUND_MAKE"
16372   path="${complete%% *}"
16373   tmp="$complete EOL"
16374   arguments="${tmp#* }"
16375 
16376   # Input might be given as Windows format, start by converting to
16377   # unix format.
16378   new_path=`$CYGPATH -u "$path"`
16379 
16380   # Now try to locate executable using which
16381   new_path=`$WHICH "$new_path" 2> /dev/null`
16382   # bat and cmd files are not always considered executable in cygwin causing which
16383   # to not find them
16384   if test "x$new_path" = x \
16385       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16386       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16387     new_path=`$CYGPATH -u "$path"`
16388   fi
16389   if test "x$new_path" = x; then
16390     # Oops. Which didn't find the executable.
16391     # The splitting of arguments from the executable at a space might have been incorrect,
16392     # since paths with space are more likely in Windows. Give it another try with the whole
16393     # argument.
16394     path="$complete"
16395     arguments="EOL"
16396     new_path=`$CYGPATH -u "$path"`
16397     new_path=`$WHICH "$new_path" 2> /dev/null`
16398     # bat and cmd files are not always considered executable in cygwin causing which
16399     # to not find them
16400     if test "x$new_path" = x \
16401         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16402         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16403       new_path=`$CYGPATH -u "$path"`
16404     fi
16405     if test "x$new_path" = x; then
16406       # It's still not found. Now this is an unrecoverable error.
16407       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16408 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16409       has_space=`$ECHO "$complete" | $GREP " "`
16410       if test "x$has_space" != x; then
16411         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16412 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16413       fi
16414       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16415     fi
16416   fi
16417 
16418   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16419   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16420   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16421   # "foo.exe" is OK but "foo" is an error.
16422   #
16423   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16424   # It is also a way to make sure we got the proper file name for the real test later on.
16425   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16426   if test "x$test_shortpath" = x; then
16427     # Short path failed, file does not exist as specified.
16428     # Try adding .exe or .cmd
16429     if test -f "${new_path}.exe"; then
16430       input_to_shortpath="${new_path}.exe"
16431     elif test -f "${new_path}.cmd"; then
16432       input_to_shortpath="${new_path}.cmd"
16433     else
16434       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16435 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16436       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16437 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16438       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16439     fi
16440   else
16441     input_to_shortpath="$new_path"
16442   fi
16443 
16444   # Call helper function which possibly converts this using DOS-style short mode.
16445   # If so, the updated path is stored in $new_path.
16446   new_path="$input_to_shortpath"
16447 
16448   input_path="$input_to_shortpath"
16449   # Check if we need to convert this using DOS-style short mode. If the path
16450   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16451   # take no chances and rewrite it.
16452   # Note: m4 eats our [], so we need to use [ and ] instead.
16453   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16454   if test "x$has_forbidden_chars" != x; then
16455     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16456     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16457     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16458     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16459       # Going to short mode and back again did indeed matter. Since short mode is
16460       # case insensitive, let's make it lowercase to improve readability.
16461       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16462       # Now convert it back to Unix-stile (cygpath)
16463       input_path=`$CYGPATH -u "$shortmode_path"`
16464       new_path="$input_path"
16465     fi
16466   fi
16467 
16468   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16469   if test "x$test_cygdrive_prefix" = x; then
16470     # As a simple fix, exclude /usr/bin since it's not a real path.
16471     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16472       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16473       # a path prefixed by /cygdrive for fixpath to work.
16474       new_path="$CYGWIN_ROOT_PATH$input_path"
16475     fi
16476   fi
16477 
16478   # remove trailing .exe if any
16479   new_path="${new_path/%.exe/}"
16480 
16481   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16482 
16483   # First separate the path from the arguments. This will split at the first
16484   # space.
16485   complete="$FOUND_MAKE"
16486   path="${complete%% *}"
16487   tmp="$complete EOL"
16488   arguments="${tmp#* }"
16489 
16490   # Input might be given as Windows format, start by converting to
16491   # unix format.
16492   new_path="$path"
16493 
16494   windows_path="$new_path"
16495   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16496     unix_path=`$CYGPATH -u "$windows_path"`
16497     new_path="$unix_path"
16498   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16499     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16500     new_path="$unix_path"
16501   fi
16502 
16503 
16504   # Now try to locate executable using which
16505   new_path=`$WHICH "$new_path" 2> /dev/null`
16506 
16507   if test "x$new_path" = x; then
16508     # Oops. Which didn't find the executable.
16509     # The splitting of arguments from the executable at a space might have been incorrect,
16510     # since paths with space are more likely in Windows. Give it another try with the whole
16511     # argument.
16512     path="$complete"
16513     arguments="EOL"
16514     new_path="$path"
16515 
16516   windows_path="$new_path"
16517   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16518     unix_path=`$CYGPATH -u "$windows_path"`
16519     new_path="$unix_path"
16520   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16521     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16522     new_path="$unix_path"
16523   fi
16524 
16525 
16526     new_path=`$WHICH "$new_path" 2> /dev/null`
16527 
16528     if test "x$new_path" = x; then
16529       # It's still not found. Now this is an unrecoverable error.
16530       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16531 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16532       has_space=`$ECHO "$complete" | $GREP " "`
16533       if test "x$has_space" != x; then
16534         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16535 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16536       fi
16537       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16538     fi
16539   fi
16540 
16541   # Now new_path has a complete unix path to the binary
16542   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16543     # Keep paths in /bin as-is, but remove trailing .exe if any
16544     new_path="${new_path/%.exe/}"
16545     # Do not save /bin paths to all_fixpath_prefixes!
16546   else
16547     # Not in mixed or Windows style, start by that.
16548     new_path=`cmd //c echo $new_path`
16549 
16550   input_path="$new_path"
16551   # Check if we need to convert this using DOS-style short mode. If the path
16552   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16553   # take no chances and rewrite it.
16554   # Note: m4 eats our [], so we need to use [ and ] instead.
16555   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16556   if test "x$has_forbidden_chars" != x; then
16557     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16558     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16559   fi
16560 
16561     # Output is in $new_path
16562 
16563   windows_path="$new_path"
16564   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16565     unix_path=`$CYGPATH -u "$windows_path"`
16566     new_path="$unix_path"
16567   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16568     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16569     new_path="$unix_path"
16570   fi
16571 
16572     # remove trailing .exe if any
16573     new_path="${new_path/%.exe/}"
16574 
16575     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16576     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16577   fi
16578 
16579   else
16580     # We're on a posix platform. Hooray! :)
16581     # First separate the path from the arguments. This will split at the first
16582     # space.
16583     complete="$FOUND_MAKE"
16584     path="${complete%% *}"
16585     tmp="$complete EOL"
16586     arguments="${tmp#* }"
16587 
16588     # Cannot rely on the command "which" here since it doesn't always work.
16589     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16590     if test -z "$is_absolute_path"; then
16591       # Path to executable is not absolute. Find it.
16592       IFS_save="$IFS"
16593       IFS=:
16594       for p in $PATH; do
16595         if test -f "$p/$path" && test -x "$p/$path"; then
16596           new_path="$p/$path"
16597           break
16598         fi
16599       done
16600       IFS="$IFS_save"
16601     else
16602       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16603 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16604       new_path="$path"
16605     fi
16606 
16607     if test "x$new_path" = x; then
16608       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16609 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16610       has_space=`$ECHO "$complete" | $GREP " "`
16611       if test "x$has_space" != x; then
16612         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16613 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16614       fi
16615       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16616     fi
16617   fi
16618 
16619   # Now join together the path and the arguments once again
16620   if test "x$arguments" != xEOL; then
16621     new_complete="$new_path ${arguments% *}"
16622   else
16623     new_complete="$new_path"
16624   fi
16625 
16626   if test "x$complete" != "x$new_complete"; then
16627     FOUND_MAKE="$new_complete"
16628     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16629 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16630   fi
16631 
16632         fi
16633       fi
16634     fi
16635   fi
16636 
16637         fi
16638         PATH=$OLD_PATH
16639       fi
16640     fi
16641 
16642     if test "x$FOUND_MAKE" = x; then
16643       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
16644     fi
16645   fi
16646 
16647   MAKE=$FOUND_MAKE
16648 
16649   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16650 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16651 
16652 
16653 
16654   # Test if find supports -delete
16655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16656 $as_echo_n "checking if find supports -delete... " >&6; }
16657   FIND_DELETE="-delete"
16658 
16659   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16660 
16661   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16662 
16663   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16664   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16665     # No, it does not.
16666     rm $DELETEDIR/TestIfFindSupportsDelete
16667     FIND_DELETE="-exec rm \{\} \+"
16668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669 $as_echo "no" >&6; }
16670   else
16671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16672 $as_echo "yes" >&6; }
16673   fi
16674   rmdir $DELETEDIR
16675 
16676 
16677 
16678   # These tools might not be installed by default,
16679   # need hint on how to install them.
16680 
16681 
16682 
16683   # Publish this variable in the help.
16684 
16685 
16686   if test "x$UNZIP" = x; then
16687     # The variable is not set by user, try to locate tool using the code snippet
16688     for ac_prog in unzip
16689 do
16690   # Extract the first word of "$ac_prog", so it can be a program name with args.
16691 set dummy $ac_prog; ac_word=$2
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16693 $as_echo_n "checking for $ac_word... " >&6; }
16694 if ${ac_cv_path_UNZIP+:} false; then :
16695   $as_echo_n "(cached) " >&6
16696 else
16697   case $UNZIP in
16698   [\\/]* | ?:[\\/]*)
16699   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16700   ;;
16701   *)
16702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16703 for as_dir in $PATH
16704 do
16705   IFS=$as_save_IFS
16706   test -z "$as_dir" && as_dir=.
16707     for ac_exec_ext in '' $ac_executable_extensions; do
16708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16709     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16711     break 2
16712   fi
16713 done
16714   done
16715 IFS=$as_save_IFS
16716 
16717   ;;
16718 esac
16719 fi
16720 UNZIP=$ac_cv_path_UNZIP
16721 if test -n "$UNZIP"; then
16722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16723 $as_echo "$UNZIP" >&6; }
16724 else
16725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726 $as_echo "no" >&6; }
16727 fi
16728 
16729 
16730   test -n "$UNZIP" && break
16731 done
16732 
16733   else
16734     # The variable is set, but is it from the command line or the environment?
16735 
16736     # Try to remove the string !UNZIP! from our list.
16737     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16738     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16739       # If it failed, the variable was not from the command line. Ignore it,
16740       # but warn the user (except for BASH, which is always set by the calling BASH).
16741       if test "xUNZIP" != xBASH; then
16742         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16743 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16744       fi
16745       # Try to locate tool using the code snippet
16746       for ac_prog in unzip
16747 do
16748   # Extract the first word of "$ac_prog", so it can be a program name with args.
16749 set dummy $ac_prog; ac_word=$2
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16751 $as_echo_n "checking for $ac_word... " >&6; }
16752 if ${ac_cv_path_UNZIP+:} false; then :
16753   $as_echo_n "(cached) " >&6
16754 else
16755   case $UNZIP in
16756   [\\/]* | ?:[\\/]*)
16757   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16758   ;;
16759   *)
16760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16762 do
16763   IFS=$as_save_IFS
16764   test -z "$as_dir" && as_dir=.
16765     for ac_exec_ext in '' $ac_executable_extensions; do
16766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16769     break 2
16770   fi
16771 done
16772   done
16773 IFS=$as_save_IFS
16774 
16775   ;;
16776 esac
16777 fi
16778 UNZIP=$ac_cv_path_UNZIP
16779 if test -n "$UNZIP"; then
16780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16781 $as_echo "$UNZIP" >&6; }
16782 else
16783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784 $as_echo "no" >&6; }
16785 fi
16786 
16787 
16788   test -n "$UNZIP" && break
16789 done
16790 
16791     else
16792       # If it succeeded, then it was overridden by the user. We will use it
16793       # for the tool.
16794 
16795       # First remove it from the list of overridden variables, so we can test
16796       # for unknown variables in the end.
16797       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16798 
16799       # Check if the provided tool contains a complete path.
16800       tool_specified="$UNZIP"
16801       tool_basename="${tool_specified##*/}"
16802       if test "x$tool_basename" = "x$tool_specified"; then
16803         # A command without a complete path is provided, search $PATH.
16804         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16805 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16806         # Extract the first word of "$tool_basename", so it can be a program name with args.
16807 set dummy $tool_basename; ac_word=$2
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809 $as_echo_n "checking for $ac_word... " >&6; }
16810 if ${ac_cv_path_UNZIP+:} false; then :
16811   $as_echo_n "(cached) " >&6
16812 else
16813   case $UNZIP in
16814   [\\/]* | ?:[\\/]*)
16815   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16816   ;;
16817   *)
16818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16820 do
16821   IFS=$as_save_IFS
16822   test -z "$as_dir" && as_dir=.
16823     for ac_exec_ext in '' $ac_executable_extensions; do
16824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16825     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16827     break 2
16828   fi
16829 done
16830   done
16831 IFS=$as_save_IFS
16832 
16833   ;;
16834 esac
16835 fi
16836 UNZIP=$ac_cv_path_UNZIP
16837 if test -n "$UNZIP"; then
16838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16839 $as_echo "$UNZIP" >&6; }
16840 else
16841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16843 fi
16844 
16845 
16846         if test "x$UNZIP" = x; then
16847           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
16848         fi
16849       else
16850         # Otherwise we believe it is a complete path. Use it as it is.
16851         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
16852 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
16853         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
16854 $as_echo_n "checking for UNZIP... " >&6; }
16855         if test ! -x "$tool_specified"; then
16856           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16857 $as_echo "not found" >&6; }
16858           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
16859         fi
16860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
16861 $as_echo "$tool_specified" >&6; }
16862       fi
16863     fi
16864   fi
16865 
16866 
16867 
16868   if test "x$UNZIP" = x; then
16869     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
16870   fi
16871 
16872 
16873 
16874 
16875 
16876   # Publish this variable in the help.
16877 
16878 
16879   if test "x$ZIP" = x; then
16880     # The variable is not set by user, try to locate tool using the code snippet
16881     for ac_prog in zip
16882 do
16883   # Extract the first word of "$ac_prog", so it can be a program name with args.
16884 set dummy $ac_prog; ac_word=$2
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16886 $as_echo_n "checking for $ac_word... " >&6; }
16887 if ${ac_cv_path_ZIP+:} false; then :
16888   $as_echo_n "(cached) " >&6
16889 else
16890   case $ZIP in
16891   [\\/]* | ?:[\\/]*)
16892   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16893   ;;
16894   *)
16895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16896 for as_dir in $PATH
16897 do
16898   IFS=$as_save_IFS
16899   test -z "$as_dir" && as_dir=.
16900     for ac_exec_ext in '' $ac_executable_extensions; do
16901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16902     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16904     break 2
16905   fi
16906 done
16907   done
16908 IFS=$as_save_IFS
16909 
16910   ;;
16911 esac
16912 fi
16913 ZIP=$ac_cv_path_ZIP
16914 if test -n "$ZIP"; then
16915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16916 $as_echo "$ZIP" >&6; }
16917 else
16918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16919 $as_echo "no" >&6; }
16920 fi
16921 
16922 
16923   test -n "$ZIP" && break
16924 done
16925 
16926   else
16927     # The variable is set, but is it from the command line or the environment?
16928 
16929     # Try to remove the string !ZIP! from our list.
16930     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
16931     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16932       # If it failed, the variable was not from the command line. Ignore it,
16933       # but warn the user (except for BASH, which is always set by the calling BASH).
16934       if test "xZIP" != xBASH; then
16935         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
16936 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
16937       fi
16938       # Try to locate tool using the code snippet
16939       for ac_prog in zip
16940 do
16941   # Extract the first word of "$ac_prog", so it can be a program name with args.
16942 set dummy $ac_prog; ac_word=$2
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16944 $as_echo_n "checking for $ac_word... " >&6; }
16945 if ${ac_cv_path_ZIP+:} false; then :
16946   $as_echo_n "(cached) " >&6
16947 else
16948   case $ZIP in
16949   [\\/]* | ?:[\\/]*)
16950   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16951   ;;
16952   *)
16953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16955 do
16956   IFS=$as_save_IFS
16957   test -z "$as_dir" && as_dir=.
16958     for ac_exec_ext in '' $ac_executable_extensions; do
16959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16960     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16962     break 2
16963   fi
16964 done
16965   done
16966 IFS=$as_save_IFS
16967 
16968   ;;
16969 esac
16970 fi
16971 ZIP=$ac_cv_path_ZIP
16972 if test -n "$ZIP"; then
16973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16974 $as_echo "$ZIP" >&6; }
16975 else
16976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16977 $as_echo "no" >&6; }
16978 fi
16979 
16980 
16981   test -n "$ZIP" && break
16982 done
16983 
16984     else
16985       # If it succeeded, then it was overridden by the user. We will use it
16986       # for the tool.
16987 
16988       # First remove it from the list of overridden variables, so we can test
16989       # for unknown variables in the end.
16990       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16991 
16992       # Check if the provided tool contains a complete path.
16993       tool_specified="$ZIP"
16994       tool_basename="${tool_specified##*/}"
16995       if test "x$tool_basename" = "x$tool_specified"; then
16996         # A command without a complete path is provided, search $PATH.
16997         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
16998 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
16999         # Extract the first word of "$tool_basename", so it can be a program name with args.
17000 set dummy $tool_basename; ac_word=$2
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17002 $as_echo_n "checking for $ac_word... " >&6; }
17003 if ${ac_cv_path_ZIP+:} false; then :
17004   $as_echo_n "(cached) " >&6
17005 else
17006   case $ZIP in
17007   [\\/]* | ?:[\\/]*)
17008   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17009   ;;
17010   *)
17011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17012 for as_dir in $PATH
17013 do
17014   IFS=$as_save_IFS
17015   test -z "$as_dir" && as_dir=.
17016     for ac_exec_ext in '' $ac_executable_extensions; do
17017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17018     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17020     break 2
17021   fi
17022 done
17023   done
17024 IFS=$as_save_IFS
17025 
17026   ;;
17027 esac
17028 fi
17029 ZIP=$ac_cv_path_ZIP
17030 if test -n "$ZIP"; then
17031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17032 $as_echo "$ZIP" >&6; }
17033 else
17034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035 $as_echo "no" >&6; }
17036 fi
17037 
17038 
17039         if test "x$ZIP" = x; then
17040           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17041         fi
17042       else
17043         # Otherwise we believe it is a complete path. Use it as it is.
17044         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17045 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17047 $as_echo_n "checking for ZIP... " >&6; }
17048         if test ! -x "$tool_specified"; then
17049           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17050 $as_echo "not found" >&6; }
17051           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17052         fi
17053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17054 $as_echo "$tool_specified" >&6; }
17055       fi
17056     fi
17057   fi
17058 
17059 
17060 
17061   if test "x$ZIP" = x; then
17062     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17063   fi
17064 
17065 
17066 
17067   # Non-required basic tools
17068 
17069 
17070 
17071   # Publish this variable in the help.
17072 
17073 
17074   if test "x$LDD" = x; then
17075     # The variable is not set by user, try to locate tool using the code snippet
17076     for ac_prog in ldd
17077 do
17078   # Extract the first word of "$ac_prog", so it can be a program name with args.
17079 set dummy $ac_prog; ac_word=$2
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17081 $as_echo_n "checking for $ac_word... " >&6; }
17082 if ${ac_cv_path_LDD+:} false; then :
17083   $as_echo_n "(cached) " >&6
17084 else
17085   case $LDD in
17086   [\\/]* | ?:[\\/]*)
17087   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17088   ;;
17089   *)
17090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17091 for as_dir in $PATH
17092 do
17093   IFS=$as_save_IFS
17094   test -z "$as_dir" && as_dir=.
17095     for ac_exec_ext in '' $ac_executable_extensions; do
17096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17097     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17099     break 2
17100   fi
17101 done
17102   done
17103 IFS=$as_save_IFS
17104 
17105   ;;
17106 esac
17107 fi
17108 LDD=$ac_cv_path_LDD
17109 if test -n "$LDD"; then
17110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17111 $as_echo "$LDD" >&6; }
17112 else
17113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17114 $as_echo "no" >&6; }
17115 fi
17116 
17117 
17118   test -n "$LDD" && break
17119 done
17120 
17121   else
17122     # The variable is set, but is it from the command line or the environment?
17123 
17124     # Try to remove the string !LDD! from our list.
17125     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17126     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17127       # If it failed, the variable was not from the command line. Ignore it,
17128       # but warn the user (except for BASH, which is always set by the calling BASH).
17129       if test "xLDD" != xBASH; then
17130         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17131 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17132       fi
17133       # Try to locate tool using the code snippet
17134       for ac_prog in ldd
17135 do
17136   # Extract the first word of "$ac_prog", so it can be a program name with args.
17137 set dummy $ac_prog; ac_word=$2
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17139 $as_echo_n "checking for $ac_word... " >&6; }
17140 if ${ac_cv_path_LDD+:} false; then :
17141   $as_echo_n "(cached) " >&6
17142 else
17143   case $LDD in
17144   [\\/]* | ?:[\\/]*)
17145   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17146   ;;
17147   *)
17148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17149 for as_dir in $PATH
17150 do
17151   IFS=$as_save_IFS
17152   test -z "$as_dir" && as_dir=.
17153     for ac_exec_ext in '' $ac_executable_extensions; do
17154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17155     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17157     break 2
17158   fi
17159 done
17160   done
17161 IFS=$as_save_IFS
17162 
17163   ;;
17164 esac
17165 fi
17166 LDD=$ac_cv_path_LDD
17167 if test -n "$LDD"; then
17168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17169 $as_echo "$LDD" >&6; }
17170 else
17171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17172 $as_echo "no" >&6; }
17173 fi
17174 
17175 
17176   test -n "$LDD" && break
17177 done
17178 
17179     else
17180       # If it succeeded, then it was overridden by the user. We will use it
17181       # for the tool.
17182 
17183       # First remove it from the list of overridden variables, so we can test
17184       # for unknown variables in the end.
17185       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17186 
17187       # Check if the provided tool contains a complete path.
17188       tool_specified="$LDD"
17189       tool_basename="${tool_specified##*/}"
17190       if test "x$tool_basename" = "x$tool_specified"; then
17191         # A command without a complete path is provided, search $PATH.
17192         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17193 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17194         # Extract the first word of "$tool_basename", so it can be a program name with args.
17195 set dummy $tool_basename; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_path_LDD+:} false; then :
17199   $as_echo_n "(cached) " >&6
17200 else
17201   case $LDD in
17202   [\\/]* | ?:[\\/]*)
17203   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17204   ;;
17205   *)
17206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17207 for as_dir in $PATH
17208 do
17209   IFS=$as_save_IFS
17210   test -z "$as_dir" && as_dir=.
17211     for ac_exec_ext in '' $ac_executable_extensions; do
17212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17213     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17215     break 2
17216   fi
17217 done
17218   done
17219 IFS=$as_save_IFS
17220 
17221   ;;
17222 esac
17223 fi
17224 LDD=$ac_cv_path_LDD
17225 if test -n "$LDD"; then
17226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17227 $as_echo "$LDD" >&6; }
17228 else
17229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17230 $as_echo "no" >&6; }
17231 fi
17232 
17233 
17234         if test "x$LDD" = x; then
17235           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17236         fi
17237       else
17238         # Otherwise we believe it is a complete path. Use it as it is.
17239         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17240 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17242 $as_echo_n "checking for LDD... " >&6; }
17243         if test ! -x "$tool_specified"; then
17244           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17245 $as_echo "not found" >&6; }
17246           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17247         fi
17248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17249 $as_echo "$tool_specified" >&6; }
17250       fi
17251     fi
17252   fi
17253 
17254 
17255   if test "x$LDD" = "x"; then
17256     # List shared lib dependencies is used for
17257     # debug output and checking for forbidden dependencies.
17258     # We can build without it.
17259     LDD="true"
17260   fi
17261 
17262 
17263   # Publish this variable in the help.
17264 
17265 
17266   if test "x$OTOOL" = x; then
17267     # The variable is not set by user, try to locate tool using the code snippet
17268     for ac_prog in otool
17269 do
17270   # Extract the first word of "$ac_prog", so it can be a program name with args.
17271 set dummy $ac_prog; ac_word=$2
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17273 $as_echo_n "checking for $ac_word... " >&6; }
17274 if ${ac_cv_path_OTOOL+:} false; then :
17275   $as_echo_n "(cached) " >&6
17276 else
17277   case $OTOOL in
17278   [\\/]* | ?:[\\/]*)
17279   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17280   ;;
17281   *)
17282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17283 for as_dir in $PATH
17284 do
17285   IFS=$as_save_IFS
17286   test -z "$as_dir" && as_dir=.
17287     for ac_exec_ext in '' $ac_executable_extensions; do
17288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17289     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17291     break 2
17292   fi
17293 done
17294   done
17295 IFS=$as_save_IFS
17296 
17297   ;;
17298 esac
17299 fi
17300 OTOOL=$ac_cv_path_OTOOL
17301 if test -n "$OTOOL"; then
17302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17303 $as_echo "$OTOOL" >&6; }
17304 else
17305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17306 $as_echo "no" >&6; }
17307 fi
17308 
17309 
17310   test -n "$OTOOL" && break
17311 done
17312 
17313   else
17314     # The variable is set, but is it from the command line or the environment?
17315 
17316     # Try to remove the string !OTOOL! from our list.
17317     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17318     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17319       # If it failed, the variable was not from the command line. Ignore it,
17320       # but warn the user (except for BASH, which is always set by the calling BASH).
17321       if test "xOTOOL" != xBASH; then
17322         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17323 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17324       fi
17325       # Try to locate tool using the code snippet
17326       for ac_prog in otool
17327 do
17328   # Extract the first word of "$ac_prog", so it can be a program name with args.
17329 set dummy $ac_prog; ac_word=$2
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17331 $as_echo_n "checking for $ac_word... " >&6; }
17332 if ${ac_cv_path_OTOOL+:} false; then :
17333   $as_echo_n "(cached) " >&6
17334 else
17335   case $OTOOL in
17336   [\\/]* | ?:[\\/]*)
17337   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17338   ;;
17339   *)
17340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17341 for as_dir in $PATH
17342 do
17343   IFS=$as_save_IFS
17344   test -z "$as_dir" && as_dir=.
17345     for ac_exec_ext in '' $ac_executable_extensions; do
17346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17347     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17349     break 2
17350   fi
17351 done
17352   done
17353 IFS=$as_save_IFS
17354 
17355   ;;
17356 esac
17357 fi
17358 OTOOL=$ac_cv_path_OTOOL
17359 if test -n "$OTOOL"; then
17360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17361 $as_echo "$OTOOL" >&6; }
17362 else
17363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364 $as_echo "no" >&6; }
17365 fi
17366 
17367 
17368   test -n "$OTOOL" && break
17369 done
17370 
17371     else
17372       # If it succeeded, then it was overridden by the user. We will use it
17373       # for the tool.
17374 
17375       # First remove it from the list of overridden variables, so we can test
17376       # for unknown variables in the end.
17377       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17378 
17379       # Check if the provided tool contains a complete path.
17380       tool_specified="$OTOOL"
17381       tool_basename="${tool_specified##*/}"
17382       if test "x$tool_basename" = "x$tool_specified"; then
17383         # A command without a complete path is provided, search $PATH.
17384         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17385 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17386         # Extract the first word of "$tool_basename", so it can be a program name with args.
17387 set dummy $tool_basename; ac_word=$2
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17389 $as_echo_n "checking for $ac_word... " >&6; }
17390 if ${ac_cv_path_OTOOL+:} false; then :
17391   $as_echo_n "(cached) " >&6
17392 else
17393   case $OTOOL in
17394   [\\/]* | ?:[\\/]*)
17395   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17396   ;;
17397   *)
17398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17399 for as_dir in $PATH
17400 do
17401   IFS=$as_save_IFS
17402   test -z "$as_dir" && as_dir=.
17403     for ac_exec_ext in '' $ac_executable_extensions; do
17404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17405     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17407     break 2
17408   fi
17409 done
17410   done
17411 IFS=$as_save_IFS
17412 
17413   ;;
17414 esac
17415 fi
17416 OTOOL=$ac_cv_path_OTOOL
17417 if test -n "$OTOOL"; then
17418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17419 $as_echo "$OTOOL" >&6; }
17420 else
17421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17422 $as_echo "no" >&6; }
17423 fi
17424 
17425 
17426         if test "x$OTOOL" = x; then
17427           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17428         fi
17429       else
17430         # Otherwise we believe it is a complete path. Use it as it is.
17431         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17432 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17433         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17434 $as_echo_n "checking for OTOOL... " >&6; }
17435         if test ! -x "$tool_specified"; then
17436           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17437 $as_echo "not found" >&6; }
17438           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17439         fi
17440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17441 $as_echo "$tool_specified" >&6; }
17442       fi
17443     fi
17444   fi
17445 
17446 
17447   if test "x$OTOOL" = "x"; then
17448     OTOOL="true"
17449   fi
17450 
17451 
17452   # Publish this variable in the help.
17453 
17454 
17455   if test "x$READELF" = x; then
17456     # The variable is not set by user, try to locate tool using the code snippet
17457     for ac_prog in greadelf readelf
17458 do
17459   # Extract the first word of "$ac_prog", so it can be a program name with args.
17460 set dummy $ac_prog; ac_word=$2
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17462 $as_echo_n "checking for $ac_word... " >&6; }
17463 if ${ac_cv_path_READELF+:} false; then :
17464   $as_echo_n "(cached) " >&6
17465 else
17466   case $READELF in
17467   [\\/]* | ?:[\\/]*)
17468   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17469   ;;
17470   *)
17471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17472 for as_dir in $PATH
17473 do
17474   IFS=$as_save_IFS
17475   test -z "$as_dir" && as_dir=.
17476     for ac_exec_ext in '' $ac_executable_extensions; do
17477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17478     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17480     break 2
17481   fi
17482 done
17483   done
17484 IFS=$as_save_IFS
17485 
17486   ;;
17487 esac
17488 fi
17489 READELF=$ac_cv_path_READELF
17490 if test -n "$READELF"; then
17491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17492 $as_echo "$READELF" >&6; }
17493 else
17494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17495 $as_echo "no" >&6; }
17496 fi
17497 
17498 
17499   test -n "$READELF" && break
17500 done
17501 
17502   else
17503     # The variable is set, but is it from the command line or the environment?
17504 
17505     # Try to remove the string !READELF! from our list.
17506     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17507     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17508       # If it failed, the variable was not from the command line. Ignore it,
17509       # but warn the user (except for BASH, which is always set by the calling BASH).
17510       if test "xREADELF" != xBASH; then
17511         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17512 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17513       fi
17514       # Try to locate tool using the code snippet
17515       for ac_prog in greadelf readelf
17516 do
17517   # Extract the first word of "$ac_prog", so it can be a program name with args.
17518 set dummy $ac_prog; ac_word=$2
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17520 $as_echo_n "checking for $ac_word... " >&6; }
17521 if ${ac_cv_path_READELF+:} false; then :
17522   $as_echo_n "(cached) " >&6
17523 else
17524   case $READELF in
17525   [\\/]* | ?:[\\/]*)
17526   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17527   ;;
17528   *)
17529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17530 for as_dir in $PATH
17531 do
17532   IFS=$as_save_IFS
17533   test -z "$as_dir" && as_dir=.
17534     for ac_exec_ext in '' $ac_executable_extensions; do
17535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17536     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17538     break 2
17539   fi
17540 done
17541   done
17542 IFS=$as_save_IFS
17543 
17544   ;;
17545 esac
17546 fi
17547 READELF=$ac_cv_path_READELF
17548 if test -n "$READELF"; then
17549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17550 $as_echo "$READELF" >&6; }
17551 else
17552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17553 $as_echo "no" >&6; }
17554 fi
17555 
17556 
17557   test -n "$READELF" && break
17558 done
17559 
17560     else
17561       # If it succeeded, then it was overridden by the user. We will use it
17562       # for the tool.
17563 
17564       # First remove it from the list of overridden variables, so we can test
17565       # for unknown variables in the end.
17566       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17567 
17568       # Check if the provided tool contains a complete path.
17569       tool_specified="$READELF"
17570       tool_basename="${tool_specified##*/}"
17571       if test "x$tool_basename" = "x$tool_specified"; then
17572         # A command without a complete path is provided, search $PATH.
17573         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17574 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17575         # Extract the first word of "$tool_basename", so it can be a program name with args.
17576 set dummy $tool_basename; ac_word=$2
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17578 $as_echo_n "checking for $ac_word... " >&6; }
17579 if ${ac_cv_path_READELF+:} false; then :
17580   $as_echo_n "(cached) " >&6
17581 else
17582   case $READELF in
17583   [\\/]* | ?:[\\/]*)
17584   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17585   ;;
17586   *)
17587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 for as_dir in $PATH
17589 do
17590   IFS=$as_save_IFS
17591   test -z "$as_dir" && as_dir=.
17592     for ac_exec_ext in '' $ac_executable_extensions; do
17593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17594     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17596     break 2
17597   fi
17598 done
17599   done
17600 IFS=$as_save_IFS
17601 
17602   ;;
17603 esac
17604 fi
17605 READELF=$ac_cv_path_READELF
17606 if test -n "$READELF"; then
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17608 $as_echo "$READELF" >&6; }
17609 else
17610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17612 fi
17613 
17614 
17615         if test "x$READELF" = x; then
17616           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17617         fi
17618       else
17619         # Otherwise we believe it is a complete path. Use it as it is.
17620         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17621 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17622         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17623 $as_echo_n "checking for READELF... " >&6; }
17624         if test ! -x "$tool_specified"; then
17625           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17626 $as_echo "not found" >&6; }
17627           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17628         fi
17629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17630 $as_echo "$tool_specified" >&6; }
17631       fi
17632     fi
17633   fi
17634 
17635 
17636 
17637 
17638   # Publish this variable in the help.
17639 
17640 
17641   if test "x$HG" = x; then
17642     # The variable is not set by user, try to locate tool using the code snippet
17643     for ac_prog in hg
17644 do
17645   # Extract the first word of "$ac_prog", so it can be a program name with args.
17646 set dummy $ac_prog; ac_word=$2
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17648 $as_echo_n "checking for $ac_word... " >&6; }
17649 if ${ac_cv_path_HG+:} false; then :
17650   $as_echo_n "(cached) " >&6
17651 else
17652   case $HG in
17653   [\\/]* | ?:[\\/]*)
17654   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17655   ;;
17656   *)
17657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17658 for as_dir in $PATH
17659 do
17660   IFS=$as_save_IFS
17661   test -z "$as_dir" && as_dir=.
17662     for ac_exec_ext in '' $ac_executable_extensions; do
17663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17664     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17666     break 2
17667   fi
17668 done
17669   done
17670 IFS=$as_save_IFS
17671 
17672   ;;
17673 esac
17674 fi
17675 HG=$ac_cv_path_HG
17676 if test -n "$HG"; then
17677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17678 $as_echo "$HG" >&6; }
17679 else
17680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681 $as_echo "no" >&6; }
17682 fi
17683 
17684 
17685   test -n "$HG" && break
17686 done
17687 
17688   else
17689     # The variable is set, but is it from the command line or the environment?
17690 
17691     # Try to remove the string !HG! from our list.
17692     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17693     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17694       # If it failed, the variable was not from the command line. Ignore it,
17695       # but warn the user (except for BASH, which is always set by the calling BASH).
17696       if test "xHG" != xBASH; then
17697         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17698 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17699       fi
17700       # Try to locate tool using the code snippet
17701       for ac_prog in hg
17702 do
17703   # Extract the first word of "$ac_prog", so it can be a program name with args.
17704 set dummy $ac_prog; ac_word=$2
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17706 $as_echo_n "checking for $ac_word... " >&6; }
17707 if ${ac_cv_path_HG+:} false; then :
17708   $as_echo_n "(cached) " >&6
17709 else
17710   case $HG in
17711   [\\/]* | ?:[\\/]*)
17712   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17713   ;;
17714   *)
17715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17716 for as_dir in $PATH
17717 do
17718   IFS=$as_save_IFS
17719   test -z "$as_dir" && as_dir=.
17720     for ac_exec_ext in '' $ac_executable_extensions; do
17721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17722     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17724     break 2
17725   fi
17726 done
17727   done
17728 IFS=$as_save_IFS
17729 
17730   ;;
17731 esac
17732 fi
17733 HG=$ac_cv_path_HG
17734 if test -n "$HG"; then
17735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17736 $as_echo "$HG" >&6; }
17737 else
17738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17739 $as_echo "no" >&6; }
17740 fi
17741 
17742 
17743   test -n "$HG" && break
17744 done
17745 
17746     else
17747       # If it succeeded, then it was overridden by the user. We will use it
17748       # for the tool.
17749 
17750       # First remove it from the list of overridden variables, so we can test
17751       # for unknown variables in the end.
17752       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17753 
17754       # Check if the provided tool contains a complete path.
17755       tool_specified="$HG"
17756       tool_basename="${tool_specified##*/}"
17757       if test "x$tool_basename" = "x$tool_specified"; then
17758         # A command without a complete path is provided, search $PATH.
17759         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17760 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17761         # Extract the first word of "$tool_basename", so it can be a program name with args.
17762 set dummy $tool_basename; ac_word=$2
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17764 $as_echo_n "checking for $ac_word... " >&6; }
17765 if ${ac_cv_path_HG+:} false; then :
17766   $as_echo_n "(cached) " >&6
17767 else
17768   case $HG in
17769   [\\/]* | ?:[\\/]*)
17770   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17771   ;;
17772   *)
17773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17774 for as_dir in $PATH
17775 do
17776   IFS=$as_save_IFS
17777   test -z "$as_dir" && as_dir=.
17778     for ac_exec_ext in '' $ac_executable_extensions; do
17779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17780     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17782     break 2
17783   fi
17784 done
17785   done
17786 IFS=$as_save_IFS
17787 
17788   ;;
17789 esac
17790 fi
17791 HG=$ac_cv_path_HG
17792 if test -n "$HG"; then
17793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17794 $as_echo "$HG" >&6; }
17795 else
17796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17797 $as_echo "no" >&6; }
17798 fi
17799 
17800 
17801         if test "x$HG" = x; then
17802           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17803         fi
17804       else
17805         # Otherwise we believe it is a complete path. Use it as it is.
17806         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17807 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17809 $as_echo_n "checking for HG... " >&6; }
17810         if test ! -x "$tool_specified"; then
17811           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17812 $as_echo "not found" >&6; }
17813           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17814         fi
17815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17816 $as_echo "$tool_specified" >&6; }
17817       fi
17818     fi
17819   fi
17820 
17821 
17822 
17823 
17824   # Publish this variable in the help.
17825 
17826 
17827   if test "x$STAT" = x; then
17828     # The variable is not set by user, try to locate tool using the code snippet
17829     for ac_prog in stat
17830 do
17831   # Extract the first word of "$ac_prog", so it can be a program name with args.
17832 set dummy $ac_prog; ac_word=$2
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17834 $as_echo_n "checking for $ac_word... " >&6; }
17835 if ${ac_cv_path_STAT+:} false; then :
17836   $as_echo_n "(cached) " >&6
17837 else
17838   case $STAT in
17839   [\\/]* | ?:[\\/]*)
17840   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17841   ;;
17842   *)
17843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17844 for as_dir in $PATH
17845 do
17846   IFS=$as_save_IFS
17847   test -z "$as_dir" && as_dir=.
17848     for ac_exec_ext in '' $ac_executable_extensions; do
17849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17850     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17852     break 2
17853   fi
17854 done
17855   done
17856 IFS=$as_save_IFS
17857 
17858   ;;
17859 esac
17860 fi
17861 STAT=$ac_cv_path_STAT
17862 if test -n "$STAT"; then
17863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17864 $as_echo "$STAT" >&6; }
17865 else
17866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867 $as_echo "no" >&6; }
17868 fi
17869 
17870 
17871   test -n "$STAT" && break
17872 done
17873 
17874   else
17875     # The variable is set, but is it from the command line or the environment?
17876 
17877     # Try to remove the string !STAT! from our list.
17878     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
17879     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17880       # If it failed, the variable was not from the command line. Ignore it,
17881       # but warn the user (except for BASH, which is always set by the calling BASH).
17882       if test "xSTAT" != xBASH; then
17883         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
17884 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
17885       fi
17886       # Try to locate tool using the code snippet
17887       for ac_prog in stat
17888 do
17889   # Extract the first word of "$ac_prog", so it can be a program name with args.
17890 set dummy $ac_prog; ac_word=$2
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17892 $as_echo_n "checking for $ac_word... " >&6; }
17893 if ${ac_cv_path_STAT+:} false; then :
17894   $as_echo_n "(cached) " >&6
17895 else
17896   case $STAT in
17897   [\\/]* | ?:[\\/]*)
17898   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17899   ;;
17900   *)
17901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17902 for as_dir in $PATH
17903 do
17904   IFS=$as_save_IFS
17905   test -z "$as_dir" && as_dir=.
17906     for ac_exec_ext in '' $ac_executable_extensions; do
17907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17908     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17910     break 2
17911   fi
17912 done
17913   done
17914 IFS=$as_save_IFS
17915 
17916   ;;
17917 esac
17918 fi
17919 STAT=$ac_cv_path_STAT
17920 if test -n "$STAT"; then
17921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17922 $as_echo "$STAT" >&6; }
17923 else
17924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17925 $as_echo "no" >&6; }
17926 fi
17927 
17928 
17929   test -n "$STAT" && break
17930 done
17931 
17932     else
17933       # If it succeeded, then it was overridden by the user. We will use it
17934       # for the tool.
17935 
17936       # First remove it from the list of overridden variables, so we can test
17937       # for unknown variables in the end.
17938       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17939 
17940       # Check if the provided tool contains a complete path.
17941       tool_specified="$STAT"
17942       tool_basename="${tool_specified##*/}"
17943       if test "x$tool_basename" = "x$tool_specified"; then
17944         # A command without a complete path is provided, search $PATH.
17945         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
17946 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
17947         # Extract the first word of "$tool_basename", so it can be a program name with args.
17948 set dummy $tool_basename; ac_word=$2
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17950 $as_echo_n "checking for $ac_word... " >&6; }
17951 if ${ac_cv_path_STAT+:} false; then :
17952   $as_echo_n "(cached) " >&6
17953 else
17954   case $STAT in
17955   [\\/]* | ?:[\\/]*)
17956   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17957   ;;
17958   *)
17959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17960 for as_dir in $PATH
17961 do
17962   IFS=$as_save_IFS
17963   test -z "$as_dir" && as_dir=.
17964     for ac_exec_ext in '' $ac_executable_extensions; do
17965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17966     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17968     break 2
17969   fi
17970 done
17971   done
17972 IFS=$as_save_IFS
17973 
17974   ;;
17975 esac
17976 fi
17977 STAT=$ac_cv_path_STAT
17978 if test -n "$STAT"; then
17979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17980 $as_echo "$STAT" >&6; }
17981 else
17982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17983 $as_echo "no" >&6; }
17984 fi
17985 
17986 
17987         if test "x$STAT" = x; then
17988           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17989         fi
17990       else
17991         # Otherwise we believe it is a complete path. Use it as it is.
17992         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
17993 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
17994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
17995 $as_echo_n "checking for STAT... " >&6; }
17996         if test ! -x "$tool_specified"; then
17997           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17998 $as_echo "not found" >&6; }
17999           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18000         fi
18001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18002 $as_echo "$tool_specified" >&6; }
18003       fi
18004     fi
18005   fi
18006 
18007 
18008 
18009 
18010   # Publish this variable in the help.
18011 
18012 
18013   if test "x$TIME" = x; then
18014     # The variable is not set by user, try to locate tool using the code snippet
18015     for ac_prog in time
18016 do
18017   # Extract the first word of "$ac_prog", so it can be a program name with args.
18018 set dummy $ac_prog; ac_word=$2
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18020 $as_echo_n "checking for $ac_word... " >&6; }
18021 if ${ac_cv_path_TIME+:} false; then :
18022   $as_echo_n "(cached) " >&6
18023 else
18024   case $TIME in
18025   [\\/]* | ?:[\\/]*)
18026   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18027   ;;
18028   *)
18029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18030 for as_dir in $PATH
18031 do
18032   IFS=$as_save_IFS
18033   test -z "$as_dir" && as_dir=.
18034     for ac_exec_ext in '' $ac_executable_extensions; do
18035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18036     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18038     break 2
18039   fi
18040 done
18041   done
18042 IFS=$as_save_IFS
18043 
18044   ;;
18045 esac
18046 fi
18047 TIME=$ac_cv_path_TIME
18048 if test -n "$TIME"; then
18049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18050 $as_echo "$TIME" >&6; }
18051 else
18052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18053 $as_echo "no" >&6; }
18054 fi
18055 
18056 
18057   test -n "$TIME" && break
18058 done
18059 
18060   else
18061     # The variable is set, but is it from the command line or the environment?
18062 
18063     # Try to remove the string !TIME! from our list.
18064     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18065     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18066       # If it failed, the variable was not from the command line. Ignore it,
18067       # but warn the user (except for BASH, which is always set by the calling BASH).
18068       if test "xTIME" != xBASH; then
18069         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18070 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18071       fi
18072       # Try to locate tool using the code snippet
18073       for ac_prog in time
18074 do
18075   # Extract the first word of "$ac_prog", so it can be a program name with args.
18076 set dummy $ac_prog; ac_word=$2
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18078 $as_echo_n "checking for $ac_word... " >&6; }
18079 if ${ac_cv_path_TIME+:} false; then :
18080   $as_echo_n "(cached) " >&6
18081 else
18082   case $TIME in
18083   [\\/]* | ?:[\\/]*)
18084   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18085   ;;
18086   *)
18087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18088 for as_dir in $PATH
18089 do
18090   IFS=$as_save_IFS
18091   test -z "$as_dir" && as_dir=.
18092     for ac_exec_ext in '' $ac_executable_extensions; do
18093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18094     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18096     break 2
18097   fi
18098 done
18099   done
18100 IFS=$as_save_IFS
18101 
18102   ;;
18103 esac
18104 fi
18105 TIME=$ac_cv_path_TIME
18106 if test -n "$TIME"; then
18107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18108 $as_echo "$TIME" >&6; }
18109 else
18110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18111 $as_echo "no" >&6; }
18112 fi
18113 
18114 
18115   test -n "$TIME" && break
18116 done
18117 
18118     else
18119       # If it succeeded, then it was overridden by the user. We will use it
18120       # for the tool.
18121 
18122       # First remove it from the list of overridden variables, so we can test
18123       # for unknown variables in the end.
18124       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18125 
18126       # Check if the provided tool contains a complete path.
18127       tool_specified="$TIME"
18128       tool_basename="${tool_specified##*/}"
18129       if test "x$tool_basename" = "x$tool_specified"; then
18130         # A command without a complete path is provided, search $PATH.
18131         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18132 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18133         # Extract the first word of "$tool_basename", so it can be a program name with args.
18134 set dummy $tool_basename; ac_word=$2
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18136 $as_echo_n "checking for $ac_word... " >&6; }
18137 if ${ac_cv_path_TIME+:} false; then :
18138   $as_echo_n "(cached) " >&6
18139 else
18140   case $TIME in
18141   [\\/]* | ?:[\\/]*)
18142   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18143   ;;
18144   *)
18145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18146 for as_dir in $PATH
18147 do
18148   IFS=$as_save_IFS
18149   test -z "$as_dir" && as_dir=.
18150     for ac_exec_ext in '' $ac_executable_extensions; do
18151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18152     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18154     break 2
18155   fi
18156 done
18157   done
18158 IFS=$as_save_IFS
18159 
18160   ;;
18161 esac
18162 fi
18163 TIME=$ac_cv_path_TIME
18164 if test -n "$TIME"; then
18165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18166 $as_echo "$TIME" >&6; }
18167 else
18168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18169 $as_echo "no" >&6; }
18170 fi
18171 
18172 
18173         if test "x$TIME" = x; then
18174           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18175         fi
18176       else
18177         # Otherwise we believe it is a complete path. Use it as it is.
18178         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18179 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18181 $as_echo_n "checking for TIME... " >&6; }
18182         if test ! -x "$tool_specified"; then
18183           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18184 $as_echo "not found" >&6; }
18185           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18186         fi
18187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18188 $as_echo "$tool_specified" >&6; }
18189       fi
18190     fi
18191   fi
18192 
18193 
18194   # Check if it's GNU time
18195   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18196   if test "x$IS_GNU_TIME" != x; then
18197     IS_GNU_TIME=yes
18198   else
18199     IS_GNU_TIME=no
18200   fi
18201 
18202 
18203   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18204 
18205 
18206 
18207   # Publish this variable in the help.
18208 
18209 
18210   if test "x$COMM" = x; then
18211     # The variable is not set by user, try to locate tool using the code snippet
18212     for ac_prog in comm
18213 do
18214   # Extract the first word of "$ac_prog", so it can be a program name with args.
18215 set dummy $ac_prog; ac_word=$2
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18217 $as_echo_n "checking for $ac_word... " >&6; }
18218 if ${ac_cv_path_COMM+:} false; then :
18219   $as_echo_n "(cached) " >&6
18220 else
18221   case $COMM in
18222   [\\/]* | ?:[\\/]*)
18223   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18224   ;;
18225   *)
18226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18227 for as_dir in $PATH
18228 do
18229   IFS=$as_save_IFS
18230   test -z "$as_dir" && as_dir=.
18231     for ac_exec_ext in '' $ac_executable_extensions; do
18232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18233     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18235     break 2
18236   fi
18237 done
18238   done
18239 IFS=$as_save_IFS
18240 
18241   ;;
18242 esac
18243 fi
18244 COMM=$ac_cv_path_COMM
18245 if test -n "$COMM"; then
18246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18247 $as_echo "$COMM" >&6; }
18248 else
18249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250 $as_echo "no" >&6; }
18251 fi
18252 
18253 
18254   test -n "$COMM" && break
18255 done
18256 
18257   else
18258     # The variable is set, but is it from the command line or the environment?
18259 
18260     # Try to remove the string !COMM! from our list.
18261     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18262     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18263       # If it failed, the variable was not from the command line. Ignore it,
18264       # but warn the user (except for BASH, which is always set by the calling BASH).
18265       if test "xCOMM" != xBASH; then
18266         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18267 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18268       fi
18269       # Try to locate tool using the code snippet
18270       for ac_prog in comm
18271 do
18272   # Extract the first word of "$ac_prog", so it can be a program name with args.
18273 set dummy $ac_prog; ac_word=$2
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18275 $as_echo_n "checking for $ac_word... " >&6; }
18276 if ${ac_cv_path_COMM+:} false; then :
18277   $as_echo_n "(cached) " >&6
18278 else
18279   case $COMM in
18280   [\\/]* | ?:[\\/]*)
18281   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18282   ;;
18283   *)
18284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18285 for as_dir in $PATH
18286 do
18287   IFS=$as_save_IFS
18288   test -z "$as_dir" && as_dir=.
18289     for ac_exec_ext in '' $ac_executable_extensions; do
18290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18291     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18293     break 2
18294   fi
18295 done
18296   done
18297 IFS=$as_save_IFS
18298 
18299   ;;
18300 esac
18301 fi
18302 COMM=$ac_cv_path_COMM
18303 if test -n "$COMM"; then
18304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18305 $as_echo "$COMM" >&6; }
18306 else
18307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308 $as_echo "no" >&6; }
18309 fi
18310 
18311 
18312   test -n "$COMM" && break
18313 done
18314 
18315     else
18316       # If it succeeded, then it was overridden by the user. We will use it
18317       # for the tool.
18318 
18319       # First remove it from the list of overridden variables, so we can test
18320       # for unknown variables in the end.
18321       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18322 
18323       # Check if the provided tool contains a complete path.
18324       tool_specified="$COMM"
18325       tool_basename="${tool_specified##*/}"
18326       if test "x$tool_basename" = "x$tool_specified"; then
18327         # A command without a complete path is provided, search $PATH.
18328         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18329 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18330         # Extract the first word of "$tool_basename", so it can be a program name with args.
18331 set dummy $tool_basename; ac_word=$2
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18333 $as_echo_n "checking for $ac_word... " >&6; }
18334 if ${ac_cv_path_COMM+:} false; then :
18335   $as_echo_n "(cached) " >&6
18336 else
18337   case $COMM in
18338   [\\/]* | ?:[\\/]*)
18339   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18340   ;;
18341   *)
18342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18343 for as_dir in $PATH
18344 do
18345   IFS=$as_save_IFS
18346   test -z "$as_dir" && as_dir=.
18347     for ac_exec_ext in '' $ac_executable_extensions; do
18348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18349     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18351     break 2
18352   fi
18353 done
18354   done
18355 IFS=$as_save_IFS
18356 
18357   ;;
18358 esac
18359 fi
18360 COMM=$ac_cv_path_COMM
18361 if test -n "$COMM"; then
18362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18363 $as_echo "$COMM" >&6; }
18364 else
18365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18366 $as_echo "no" >&6; }
18367 fi
18368 
18369 
18370         if test "x$COMM" = x; then
18371           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18372         fi
18373       else
18374         # Otherwise we believe it is a complete path. Use it as it is.
18375         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18376 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18378 $as_echo_n "checking for COMM... " >&6; }
18379         if test ! -x "$tool_specified"; then
18380           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18381 $as_echo "not found" >&6; }
18382           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18383         fi
18384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18385 $as_echo "$tool_specified" >&6; }
18386       fi
18387     fi
18388   fi
18389 
18390 
18391 
18392   if test "x$COMM" = x; then
18393     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18394   fi
18395 
18396 
18397   fi
18398 
18399   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18400 
18401 
18402 
18403   # Publish this variable in the help.
18404 
18405 
18406   if test "x$DSYMUTIL" = x; then
18407     # The variable is not set by user, try to locate tool using the code snippet
18408     for ac_prog in dsymutil
18409 do
18410   # Extract the first word of "$ac_prog", so it can be a program name with args.
18411 set dummy $ac_prog; ac_word=$2
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18413 $as_echo_n "checking for $ac_word... " >&6; }
18414 if ${ac_cv_path_DSYMUTIL+:} false; then :
18415   $as_echo_n "(cached) " >&6
18416 else
18417   case $DSYMUTIL in
18418   [\\/]* | ?:[\\/]*)
18419   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18420   ;;
18421   *)
18422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18423 for as_dir in $PATH
18424 do
18425   IFS=$as_save_IFS
18426   test -z "$as_dir" && as_dir=.
18427     for ac_exec_ext in '' $ac_executable_extensions; do
18428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18429     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18431     break 2
18432   fi
18433 done
18434   done
18435 IFS=$as_save_IFS
18436 
18437   ;;
18438 esac
18439 fi
18440 DSYMUTIL=$ac_cv_path_DSYMUTIL
18441 if test -n "$DSYMUTIL"; then
18442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18443 $as_echo "$DSYMUTIL" >&6; }
18444 else
18445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446 $as_echo "no" >&6; }
18447 fi
18448 
18449 
18450   test -n "$DSYMUTIL" && break
18451 done
18452 
18453   else
18454     # The variable is set, but is it from the command line or the environment?
18455 
18456     # Try to remove the string !DSYMUTIL! from our list.
18457     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18458     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18459       # If it failed, the variable was not from the command line. Ignore it,
18460       # but warn the user (except for BASH, which is always set by the calling BASH).
18461       if test "xDSYMUTIL" != xBASH; then
18462         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18463 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18464       fi
18465       # Try to locate tool using the code snippet
18466       for ac_prog in dsymutil
18467 do
18468   # Extract the first word of "$ac_prog", so it can be a program name with args.
18469 set dummy $ac_prog; ac_word=$2
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18471 $as_echo_n "checking for $ac_word... " >&6; }
18472 if ${ac_cv_path_DSYMUTIL+:} false; then :
18473   $as_echo_n "(cached) " >&6
18474 else
18475   case $DSYMUTIL in
18476   [\\/]* | ?:[\\/]*)
18477   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18478   ;;
18479   *)
18480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481 for as_dir in $PATH
18482 do
18483   IFS=$as_save_IFS
18484   test -z "$as_dir" && as_dir=.
18485     for ac_exec_ext in '' $ac_executable_extensions; do
18486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18487     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18489     break 2
18490   fi
18491 done
18492   done
18493 IFS=$as_save_IFS
18494 
18495   ;;
18496 esac
18497 fi
18498 DSYMUTIL=$ac_cv_path_DSYMUTIL
18499 if test -n "$DSYMUTIL"; then
18500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18501 $as_echo "$DSYMUTIL" >&6; }
18502 else
18503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18504 $as_echo "no" >&6; }
18505 fi
18506 
18507 
18508   test -n "$DSYMUTIL" && break
18509 done
18510 
18511     else
18512       # If it succeeded, then it was overridden by the user. We will use it
18513       # for the tool.
18514 
18515       # First remove it from the list of overridden variables, so we can test
18516       # for unknown variables in the end.
18517       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18518 
18519       # Check if the provided tool contains a complete path.
18520       tool_specified="$DSYMUTIL"
18521       tool_basename="${tool_specified##*/}"
18522       if test "x$tool_basename" = "x$tool_specified"; then
18523         # A command without a complete path is provided, search $PATH.
18524         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18525 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18526         # Extract the first word of "$tool_basename", so it can be a program name with args.
18527 set dummy $tool_basename; ac_word=$2
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18529 $as_echo_n "checking for $ac_word... " >&6; }
18530 if ${ac_cv_path_DSYMUTIL+:} false; then :
18531   $as_echo_n "(cached) " >&6
18532 else
18533   case $DSYMUTIL in
18534   [\\/]* | ?:[\\/]*)
18535   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18536   ;;
18537   *)
18538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18539 for as_dir in $PATH
18540 do
18541   IFS=$as_save_IFS
18542   test -z "$as_dir" && as_dir=.
18543     for ac_exec_ext in '' $ac_executable_extensions; do
18544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18545     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18547     break 2
18548   fi
18549 done
18550   done
18551 IFS=$as_save_IFS
18552 
18553   ;;
18554 esac
18555 fi
18556 DSYMUTIL=$ac_cv_path_DSYMUTIL
18557 if test -n "$DSYMUTIL"; then
18558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18559 $as_echo "$DSYMUTIL" >&6; }
18560 else
18561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18562 $as_echo "no" >&6; }
18563 fi
18564 
18565 
18566         if test "x$DSYMUTIL" = x; then
18567           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18568         fi
18569       else
18570         # Otherwise we believe it is a complete path. Use it as it is.
18571         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18572 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18574 $as_echo_n "checking for DSYMUTIL... " >&6; }
18575         if test ! -x "$tool_specified"; then
18576           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18577 $as_echo "not found" >&6; }
18578           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18579         fi
18580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18581 $as_echo "$tool_specified" >&6; }
18582       fi
18583     fi
18584   fi
18585 
18586 
18587 
18588   if test "x$DSYMUTIL" = x; then
18589     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18590   fi
18591 
18592 
18593 
18594 
18595 
18596   # Publish this variable in the help.
18597 
18598 
18599   if test "x$XATTR" = x; then
18600     # The variable is not set by user, try to locate tool using the code snippet
18601     for ac_prog in xattr
18602 do
18603   # Extract the first word of "$ac_prog", so it can be a program name with args.
18604 set dummy $ac_prog; ac_word=$2
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18606 $as_echo_n "checking for $ac_word... " >&6; }
18607 if ${ac_cv_path_XATTR+:} false; then :
18608   $as_echo_n "(cached) " >&6
18609 else
18610   case $XATTR in
18611   [\\/]* | ?:[\\/]*)
18612   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18613   ;;
18614   *)
18615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in $PATH
18617 do
18618   IFS=$as_save_IFS
18619   test -z "$as_dir" && as_dir=.
18620     for ac_exec_ext in '' $ac_executable_extensions; do
18621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18624     break 2
18625   fi
18626 done
18627   done
18628 IFS=$as_save_IFS
18629 
18630   ;;
18631 esac
18632 fi
18633 XATTR=$ac_cv_path_XATTR
18634 if test -n "$XATTR"; then
18635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18636 $as_echo "$XATTR" >&6; }
18637 else
18638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18639 $as_echo "no" >&6; }
18640 fi
18641 
18642 
18643   test -n "$XATTR" && break
18644 done
18645 
18646   else
18647     # The variable is set, but is it from the command line or the environment?
18648 
18649     # Try to remove the string !XATTR! from our list.
18650     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18651     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18652       # If it failed, the variable was not from the command line. Ignore it,
18653       # but warn the user (except for BASH, which is always set by the calling BASH).
18654       if test "xXATTR" != xBASH; then
18655         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18656 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18657       fi
18658       # Try to locate tool using the code snippet
18659       for ac_prog in xattr
18660 do
18661   # Extract the first word of "$ac_prog", so it can be a program name with args.
18662 set dummy $ac_prog; ac_word=$2
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18664 $as_echo_n "checking for $ac_word... " >&6; }
18665 if ${ac_cv_path_XATTR+:} false; then :
18666   $as_echo_n "(cached) " >&6
18667 else
18668   case $XATTR in
18669   [\\/]* | ?:[\\/]*)
18670   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18671   ;;
18672   *)
18673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18674 for as_dir in $PATH
18675 do
18676   IFS=$as_save_IFS
18677   test -z "$as_dir" && as_dir=.
18678     for ac_exec_ext in '' $ac_executable_extensions; do
18679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18680     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18682     break 2
18683   fi
18684 done
18685   done
18686 IFS=$as_save_IFS
18687 
18688   ;;
18689 esac
18690 fi
18691 XATTR=$ac_cv_path_XATTR
18692 if test -n "$XATTR"; then
18693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18694 $as_echo "$XATTR" >&6; }
18695 else
18696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697 $as_echo "no" >&6; }
18698 fi
18699 
18700 
18701   test -n "$XATTR" && break
18702 done
18703 
18704     else
18705       # If it succeeded, then it was overridden by the user. We will use it
18706       # for the tool.
18707 
18708       # First remove it from the list of overridden variables, so we can test
18709       # for unknown variables in the end.
18710       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18711 
18712       # Check if the provided tool contains a complete path.
18713       tool_specified="$XATTR"
18714       tool_basename="${tool_specified##*/}"
18715       if test "x$tool_basename" = "x$tool_specified"; then
18716         # A command without a complete path is provided, search $PATH.
18717         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18718 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18719         # Extract the first word of "$tool_basename", so it can be a program name with args.
18720 set dummy $tool_basename; ac_word=$2
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18722 $as_echo_n "checking for $ac_word... " >&6; }
18723 if ${ac_cv_path_XATTR+:} false; then :
18724   $as_echo_n "(cached) " >&6
18725 else
18726   case $XATTR in
18727   [\\/]* | ?:[\\/]*)
18728   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18729   ;;
18730   *)
18731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732 for as_dir in $PATH
18733 do
18734   IFS=$as_save_IFS
18735   test -z "$as_dir" && as_dir=.
18736     for ac_exec_ext in '' $ac_executable_extensions; do
18737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18738     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18740     break 2
18741   fi
18742 done
18743   done
18744 IFS=$as_save_IFS
18745 
18746   ;;
18747 esac
18748 fi
18749 XATTR=$ac_cv_path_XATTR
18750 if test -n "$XATTR"; then
18751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18752 $as_echo "$XATTR" >&6; }
18753 else
18754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18755 $as_echo "no" >&6; }
18756 fi
18757 
18758 
18759         if test "x$XATTR" = x; then
18760           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18761         fi
18762       else
18763         # Otherwise we believe it is a complete path. Use it as it is.
18764         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18765 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18766         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18767 $as_echo_n "checking for XATTR... " >&6; }
18768         if test ! -x "$tool_specified"; then
18769           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18770 $as_echo "not found" >&6; }
18771           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18772         fi
18773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18774 $as_echo "$tool_specified" >&6; }
18775       fi
18776     fi
18777   fi
18778 
18779 
18780 
18781   if test "x$XATTR" = x; then
18782     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18783   fi
18784 
18785 
18786 
18787 
18788   # Publish this variable in the help.
18789 
18790 
18791   if test "x$CODESIGN" = x; then
18792     # The variable is not set by user, try to locate tool using the code snippet
18793     for ac_prog in codesign
18794 do
18795   # Extract the first word of "$ac_prog", so it can be a program name with args.
18796 set dummy $ac_prog; ac_word=$2
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18798 $as_echo_n "checking for $ac_word... " >&6; }
18799 if ${ac_cv_path_CODESIGN+:} false; then :
18800   $as_echo_n "(cached) " >&6
18801 else
18802   case $CODESIGN in
18803   [\\/]* | ?:[\\/]*)
18804   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18805   ;;
18806   *)
18807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $PATH
18809 do
18810   IFS=$as_save_IFS
18811   test -z "$as_dir" && as_dir=.
18812     for ac_exec_ext in '' $ac_executable_extensions; do
18813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18814     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18816     break 2
18817   fi
18818 done
18819   done
18820 IFS=$as_save_IFS
18821 
18822   ;;
18823 esac
18824 fi
18825 CODESIGN=$ac_cv_path_CODESIGN
18826 if test -n "$CODESIGN"; then
18827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18828 $as_echo "$CODESIGN" >&6; }
18829 else
18830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18832 fi
18833 
18834 
18835   test -n "$CODESIGN" && break
18836 done
18837 
18838   else
18839     # The variable is set, but is it from the command line or the environment?
18840 
18841     # Try to remove the string !CODESIGN! from our list.
18842     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18843     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18844       # If it failed, the variable was not from the command line. Ignore it,
18845       # but warn the user (except for BASH, which is always set by the calling BASH).
18846       if test "xCODESIGN" != xBASH; then
18847         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
18848 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
18849       fi
18850       # Try to locate tool using the code snippet
18851       for ac_prog in codesign
18852 do
18853   # Extract the first word of "$ac_prog", so it can be a program name with args.
18854 set dummy $ac_prog; ac_word=$2
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18856 $as_echo_n "checking for $ac_word... " >&6; }
18857 if ${ac_cv_path_CODESIGN+:} false; then :
18858   $as_echo_n "(cached) " >&6
18859 else
18860   case $CODESIGN in
18861   [\\/]* | ?:[\\/]*)
18862   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18863   ;;
18864   *)
18865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18866 for as_dir in $PATH
18867 do
18868   IFS=$as_save_IFS
18869   test -z "$as_dir" && as_dir=.
18870     for ac_exec_ext in '' $ac_executable_extensions; do
18871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18872     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18874     break 2
18875   fi
18876 done
18877   done
18878 IFS=$as_save_IFS
18879 
18880   ;;
18881 esac
18882 fi
18883 CODESIGN=$ac_cv_path_CODESIGN
18884 if test -n "$CODESIGN"; then
18885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18886 $as_echo "$CODESIGN" >&6; }
18887 else
18888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18889 $as_echo "no" >&6; }
18890 fi
18891 
18892 
18893   test -n "$CODESIGN" && break
18894 done
18895 
18896     else
18897       # If it succeeded, then it was overridden by the user. We will use it
18898       # for the tool.
18899 
18900       # First remove it from the list of overridden variables, so we can test
18901       # for unknown variables in the end.
18902       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18903 
18904       # Check if the provided tool contains a complete path.
18905       tool_specified="$CODESIGN"
18906       tool_basename="${tool_specified##*/}"
18907       if test "x$tool_basename" = "x$tool_specified"; then
18908         # A command without a complete path is provided, search $PATH.
18909         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
18910 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
18911         # Extract the first word of "$tool_basename", so it can be a program name with args.
18912 set dummy $tool_basename; ac_word=$2
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914 $as_echo_n "checking for $ac_word... " >&6; }
18915 if ${ac_cv_path_CODESIGN+:} false; then :
18916   $as_echo_n "(cached) " >&6
18917 else
18918   case $CODESIGN in
18919   [\\/]* | ?:[\\/]*)
18920   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18921   ;;
18922   *)
18923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924 for as_dir in $PATH
18925 do
18926   IFS=$as_save_IFS
18927   test -z "$as_dir" && as_dir=.
18928     for ac_exec_ext in '' $ac_executable_extensions; do
18929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18930     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18932     break 2
18933   fi
18934 done
18935   done
18936 IFS=$as_save_IFS
18937 
18938   ;;
18939 esac
18940 fi
18941 CODESIGN=$ac_cv_path_CODESIGN
18942 if test -n "$CODESIGN"; then
18943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18944 $as_echo "$CODESIGN" >&6; }
18945 else
18946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18947 $as_echo "no" >&6; }
18948 fi
18949 
18950 
18951         if test "x$CODESIGN" = x; then
18952           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18953         fi
18954       else
18955         # Otherwise we believe it is a complete path. Use it as it is.
18956         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
18957 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
18958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
18959 $as_echo_n "checking for CODESIGN... " >&6; }
18960         if test ! -x "$tool_specified"; then
18961           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18962 $as_echo "not found" >&6; }
18963           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
18964         fi
18965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18966 $as_echo "$tool_specified" >&6; }
18967       fi
18968     fi
18969   fi
18970 
18971 
18972     if test "x$CODESIGN" != "x"; then
18973       # Verify that the openjdk_codesign certificate is present
18974       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
18975 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
18976       rm -f codesign-testfile
18977       touch codesign-testfile
18978       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
18979       rm -f codesign-testfile
18980       if test "x$CODESIGN" = x; then
18981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18982 $as_echo "no" >&6; }
18983       else
18984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18985 $as_echo "yes" >&6; }
18986       fi
18987     fi
18988   fi
18989 
18990 
18991 # Check if pkg-config is available.
18992 
18993 
18994 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18995         if test -n "$ac_tool_prefix"; then
18996   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18997 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18999 $as_echo_n "checking for $ac_word... " >&6; }
19000 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19001   $as_echo_n "(cached) " >&6
19002 else
19003   case $PKG_CONFIG in
19004   [\\/]* | ?:[\\/]*)
19005   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19006   ;;
19007   *)
19008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19010 do
19011   IFS=$as_save_IFS
19012   test -z "$as_dir" && as_dir=.
19013     for ac_exec_ext in '' $ac_executable_extensions; do
19014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19015     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19017     break 2
19018   fi
19019 done
19020   done
19021 IFS=$as_save_IFS
19022 
19023   ;;
19024 esac
19025 fi
19026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19027 if test -n "$PKG_CONFIG"; then
19028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19029 $as_echo "$PKG_CONFIG" >&6; }
19030 else
19031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19032 $as_echo "no" >&6; }
19033 fi
19034 
19035 
19036 fi
19037 if test -z "$ac_cv_path_PKG_CONFIG"; then
19038   ac_pt_PKG_CONFIG=$PKG_CONFIG
19039   # Extract the first word of "pkg-config", so it can be a program name with args.
19040 set dummy pkg-config; ac_word=$2
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19042 $as_echo_n "checking for $ac_word... " >&6; }
19043 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19044   $as_echo_n "(cached) " >&6
19045 else
19046   case $ac_pt_PKG_CONFIG in
19047   [\\/]* | ?:[\\/]*)
19048   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19049   ;;
19050   *)
19051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19052 for as_dir in $PATH
19053 do
19054   IFS=$as_save_IFS
19055   test -z "$as_dir" && as_dir=.
19056     for ac_exec_ext in '' $ac_executable_extensions; do
19057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19058     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19060     break 2
19061   fi
19062 done
19063   done
19064 IFS=$as_save_IFS
19065 
19066   ;;
19067 esac
19068 fi
19069 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19070 if test -n "$ac_pt_PKG_CONFIG"; then
19071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19072 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19073 else
19074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075 $as_echo "no" >&6; }
19076 fi
19077 
19078   if test "x$ac_pt_PKG_CONFIG" = x; then
19079     PKG_CONFIG=""
19080   else
19081     case $cross_compiling:$ac_tool_warned in
19082 yes:)
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19085 ac_tool_warned=yes ;;
19086 esac
19087     PKG_CONFIG=$ac_pt_PKG_CONFIG
19088   fi
19089 else
19090   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19091 fi
19092 
19093 fi
19094 if test -n "$PKG_CONFIG"; then
19095         _pkg_min_version=0.9.0
19096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19097 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19098         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19099                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19100 $as_echo "yes" >&6; }
19101         else
19102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19104                 PKG_CONFIG=""
19105         fi
19106 
19107 fi
19108 
19109 # After basic tools have been setup, we can check build os specific details.
19110 
19111   ###############################################################################
19112 
19113   # Note that this is the build platform OS version!
19114 
19115   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19116   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19117   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19118   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19119 
19120 
19121 
19122 
19123 
19124 # Setup builddeps, for automatic downloading of tools we need.
19125 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19126 # boot-jdk setup, but we need to have basic tools setup first.
19127 
19128 
19129 # Check whether --with-builddeps-conf was given.
19130 if test "${with_builddeps_conf+set}" = set; then :
19131   withval=$with_builddeps_conf;
19132 fi
19133 
19134 
19135 
19136 # Check whether --with-builddeps-server was given.
19137 if test "${with_builddeps_server+set}" = set; then :
19138   withval=$with_builddeps_server;
19139 fi
19140 
19141 
19142 
19143 # Check whether --with-builddeps-dir was given.
19144 if test "${with_builddeps_dir+set}" = set; then :
19145   withval=$with_builddeps_dir;
19146 else
19147   with_builddeps_dir=/localhome/builddeps
19148 fi
19149 
19150 
19151 
19152 # Check whether --with-builddeps-group was given.
19153 if test "${with_builddeps_group+set}" = set; then :
19154   withval=$with_builddeps_group;
19155 fi
19156 
19157 
19158 
19159 
19160   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19161     if test "x$with_builddeps_conf" != x; then
19162       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19163 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19164       builddepsfile=$with_builddeps_conf
19165       if test -s $builddepsfile; then
19166         . $builddepsfile
19167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19168 $as_echo "loaded!" >&6; }
19169       else
19170         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19171       fi
19172     else
19173       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19174 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19175       builddepsfile=`mktemp`
19176       touch $builddepsfile
19177       # Put all found confs into a single file.
19178       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19179       # Source the file to acquire the variables
19180       if test -s $builddepsfile; then
19181         . $builddepsfile
19182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19183 $as_echo "found at least one!" >&6; }
19184       else
19185         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19186       fi
19187     fi
19188     # Create build and target names that use _ instead of "-" and ".".
19189     # This is necessary to use them in variable names.
19190     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19191     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19192     # Extract rewrite information for build and target
19193     eval rewritten_build=\${REWRITE_${build_var}}
19194     if test "x$rewritten_build" = x; then
19195       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19196       echo Build stays the same $rewritten_build
19197     else
19198       echo Rewriting build for builddeps into $rewritten_build
19199     fi
19200     eval rewritten_target=\${REWRITE_${target_var}}
19201     if test "x$rewritten_target" = x; then
19202       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19203       echo Target stays the same $rewritten_target
19204     else
19205       echo Rewriting target for builddeps into $rewritten_target
19206     fi
19207     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19208     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19209   fi
19210   for ac_prog in 7z unzip
19211 do
19212   # Extract the first word of "$ac_prog", so it can be a program name with args.
19213 set dummy $ac_prog; ac_word=$2
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19215 $as_echo_n "checking for $ac_word... " >&6; }
19216 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19217   $as_echo_n "(cached) " >&6
19218 else
19219   if test -n "$BDEPS_UNZIP"; then
19220   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19221 else
19222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19223 for as_dir in $PATH
19224 do
19225   IFS=$as_save_IFS
19226   test -z "$as_dir" && as_dir=.
19227     for ac_exec_ext in '' $ac_executable_extensions; do
19228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19229     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19231     break 2
19232   fi
19233 done
19234   done
19235 IFS=$as_save_IFS
19236 
19237 fi
19238 fi
19239 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19240 if test -n "$BDEPS_UNZIP"; then
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19242 $as_echo "$BDEPS_UNZIP" >&6; }
19243 else
19244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246 fi
19247 
19248 
19249   test -n "$BDEPS_UNZIP" && break
19250 done
19251 
19252   if test "x$BDEPS_UNZIP" = x7z; then
19253     BDEPS_UNZIP="7z x"
19254   fi
19255 
19256   for ac_prog in wget lftp ftp
19257 do
19258   # Extract the first word of "$ac_prog", so it can be a program name with args.
19259 set dummy $ac_prog; ac_word=$2
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19261 $as_echo_n "checking for $ac_word... " >&6; }
19262 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19263   $as_echo_n "(cached) " >&6
19264 else
19265   if test -n "$BDEPS_FTP"; then
19266   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19267 else
19268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19269 for as_dir in $PATH
19270 do
19271   IFS=$as_save_IFS
19272   test -z "$as_dir" && as_dir=.
19273     for ac_exec_ext in '' $ac_executable_extensions; do
19274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19275     ac_cv_prog_BDEPS_FTP="$ac_prog"
19276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19277     break 2
19278   fi
19279 done
19280   done
19281 IFS=$as_save_IFS
19282 
19283 fi
19284 fi
19285 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19286 if test -n "$BDEPS_FTP"; then
19287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19288 $as_echo "$BDEPS_FTP" >&6; }
19289 else
19290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19291 $as_echo "no" >&6; }
19292 fi
19293 
19294 
19295   test -n "$BDEPS_FTP" && break
19296 done
19297 
19298 
19299 
19300 ###############################################################################
19301 #
19302 # Determine OpenJDK variants, options and version numbers.
19303 #
19304 ###############################################################################
19305 
19306 # We need build & target for this.
19307 
19308 
19309   ###############################################################################
19310   #
19311   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19312   # We always build headless support.
19313   #
19314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19315 $as_echo_n "checking headful support... " >&6; }
19316   # Check whether --enable-headful was given.
19317 if test "${enable_headful+set}" = set; then :
19318   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19319 else
19320   SUPPORT_HEADFUL=yes
19321 fi
19322 
19323 
19324   SUPPORT_HEADLESS=yes
19325   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19326 
19327   if test "x$SUPPORT_HEADFUL" = xyes; then
19328     # We are building both headful and headless.
19329     headful_msg="include support for both headful and headless"
19330   fi
19331 
19332   if test "x$SUPPORT_HEADFUL" = xno; then
19333     # Thus we are building headless only.
19334     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19335     headful_msg="headless only"
19336   fi
19337 
19338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19339 $as_echo "$headful_msg" >&6; }
19340 
19341 
19342 
19343 
19344 
19345   # Control wether Hotspot runs Queens test after build.
19346   # Check whether --enable-hotspot-test-in-build was given.
19347 if test "${enable_hotspot_test_in_build+set}" = set; then :
19348   enableval=$enable_hotspot_test_in_build;
19349 else
19350   enable_hotspot_test_in_build=no
19351 fi
19352 
19353   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19354     TEST_IN_BUILD=true
19355   else
19356     TEST_IN_BUILD=false
19357   fi
19358 
19359 
19360   ###############################################################################
19361   #
19362   # Choose cacerts source file
19363   #
19364 
19365 # Check whether --with-cacerts-file was given.
19366 if test "${with_cacerts_file+set}" = set; then :
19367   withval=$with_cacerts_file;
19368 fi
19369 
19370   if test "x$with_cacerts_file" != x; then
19371     CACERTS_FILE=$with_cacerts_file
19372   else
19373     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19374   fi
19375 
19376 
19377   ###############################################################################
19378   #
19379   # Enable or disable unlimited crypto
19380   #
19381   # Check whether --enable-unlimited-crypto was given.
19382 if test "${enable_unlimited_crypto+set}" = set; then :
19383   enableval=$enable_unlimited_crypto;
19384 else
19385   enable_unlimited_crypto=no
19386 fi
19387 
19388   if test "x$enable_unlimited_crypto" = "xyes"; then
19389     UNLIMITED_CRYPTO=true
19390   else
19391     UNLIMITED_CRYPTO=false
19392   fi
19393 
19394 
19395   ###############################################################################
19396   #
19397   # Enable or disable the elliptic curve crypto implementation
19398   #
19399 
19400 
19401   ###############################################################################
19402   #
19403   # --enable-rmiconnector-iiop
19404   #
19405   # Check whether --enable-rmiconnector-iiop was given.
19406 if test "${enable_rmiconnector_iiop+set}" = set; then :
19407   enableval=$enable_rmiconnector_iiop;
19408 fi
19409 
19410   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19411     RMICONNECTOR_IIOP=true
19412   else
19413     RMICONNECTOR_IIOP=false
19414   fi
19415 
19416 
19417   ###############################################################################
19418   #
19419   # Compress jars
19420   #
19421   COMPRESS_JARS=false
19422 
19423 
19424 
19425 
19426   # Source the version numbers
19427   . $AUTOCONF_DIR/version-numbers
19428 
19429   # Get the settings from parameters
19430 
19431 # Check whether --with-milestone was given.
19432 if test "${with_milestone+set}" = set; then :
19433   withval=$with_milestone;
19434 fi
19435 
19436   if test "x$with_milestone" = xyes; then
19437     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19438   elif test "x$with_milestone" != x; then
19439     MILESTONE="$with_milestone"
19440   fi
19441   if test "x$MILESTONE" = x; then
19442     MILESTONE=internal
19443   fi
19444 
19445 
19446 # Check whether --with-update-version was given.
19447 if test "${with_update_version+set}" = set; then :
19448   withval=$with_update_version;
19449 fi
19450 
19451   if test "x$with_update_version" = xyes; then
19452     as_fn_error $? "Update version must have a value" "$LINENO" 5
19453   elif test "x$with_update_version" != x; then
19454     JDK_UPDATE_VERSION="$with_update_version"
19455     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19456     # to a bug in expr (which reduces it to just X). To work around this, we
19457     # always add a 0 to one digit update versions.
19458     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19459       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19460     fi
19461   fi
19462 
19463 
19464 # Check whether --with-user-release-suffix was given.
19465 if test "${with_user_release_suffix+set}" = set; then :
19466   withval=$with_user_release_suffix;
19467 fi
19468 
19469   if test "x$with_user_release_suffix" = xyes; then
19470     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19471   elif test "x$with_user_release_suffix" != x; then
19472     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19473   fi
19474 
19475 
19476 # Check whether --with-build-number was given.
19477 if test "${with_build_number+set}" = set; then :
19478   withval=$with_build_number;
19479 fi
19480 
19481   if test "x$with_build_number" = xyes; then
19482     as_fn_error $? "Build number must have a value" "$LINENO" 5
19483   elif test "x$with_build_number" != x; then
19484     JDK_BUILD_NUMBER="$with_build_number"
19485   fi
19486   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19487   if test "x$JDK_BUILD_NUMBER" = x; then
19488     JDK_BUILD_NUMBER=b00
19489     if test "x$USER_RELEASE_SUFFIX" = x; then
19490       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19491       # Avoid [:alnum:] since it depends on the locale.
19492       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19493       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19494     fi
19495   fi
19496 
19497   # Now set the JDK version, milestone, build number etc.
19498 
19499 
19500 
19501 
19502 
19503 
19504 
19505 
19506 
19507 
19508 
19509 
19510 
19511 
19512 
19513   COPYRIGHT_YEAR=`date +'%Y'`
19514 
19515 
19516   if test "x$JDK_UPDATE_VERSION" != x; then
19517     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19518   else
19519     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19520   fi
19521 
19522 
19523   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19524 
19525 
19526 
19527 ###############################################################################
19528 #
19529 # Setup BootJDK, used to bootstrap the build.
19530 #
19531 ###############################################################################
19532 
19533 
19534   BOOT_JDK_FOUND=no
19535 
19536 # Check whether --with-boot-jdk was given.
19537 if test "${with_boot_jdk+set}" = set; then :
19538   withval=$with_boot_jdk;
19539 fi
19540 
19541 
19542   # We look for the Boot JDK through various means, going from more certain to
19543   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19544   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19545   # must check if this is indeed valid; otherwise we'll continue looking.
19546 
19547   # Test: Is bootjdk explicitely set by command line arguments?
19548 
19549   if test "x$BOOT_JDK_FOUND" = xno; then
19550     # Now execute the test
19551 
19552   if test "x$with_boot_jdk" != x; then
19553     BOOT_JDK=$with_boot_jdk
19554     BOOT_JDK_FOUND=maybe
19555     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19556 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19557   fi
19558 
19559 
19560     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19561     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19562       # Do we have a bin/java?
19563       if test ! -x "$BOOT_JDK/bin/java"; then
19564         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19565 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19566         BOOT_JDK_FOUND=no
19567       else
19568         # Do we have a bin/javac?
19569         if test ! -x "$BOOT_JDK/bin/javac"; then
19570           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19571 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19572           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19573 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19574           BOOT_JDK_FOUND=no
19575         else
19576           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19577           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19578             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19579 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19580             BOOT_JDK_FOUND=no
19581           else
19582             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19583             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19584 
19585             # Extra M4 quote needed to protect [] in grep expression.
19586             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19587             if test "x$FOUND_CORRECT_VERSION" = x; then
19588               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19589 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19590               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19591 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19592               BOOT_JDK_FOUND=no
19593             else
19594               # We're done! :-)
19595               BOOT_JDK_FOUND=yes
19596 
19597   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19598 
19599   # Input might be given as Windows format, start by converting to
19600   # unix format.
19601   path="$BOOT_JDK"
19602   new_path=`$CYGPATH -u "$path"`
19603 
19604   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19605   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19606   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19607   # "foo.exe" is OK but "foo" is an error.
19608   #
19609   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19610   # It is also a way to make sure we got the proper file name for the real test later on.
19611   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19612   if test "x$test_shortpath" = x; then
19613     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19614 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19615     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19616   fi
19617 
19618   # Call helper function which possibly converts this using DOS-style short mode.
19619   # If so, the updated path is stored in $new_path.
19620 
19621   input_path="$new_path"
19622   # Check if we need to convert this using DOS-style short mode. If the path
19623   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19624   # take no chances and rewrite it.
19625   # Note: m4 eats our [], so we need to use [ and ] instead.
19626   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19627   if test "x$has_forbidden_chars" != x; then
19628     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19629     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19630     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19631     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19632       # Going to short mode and back again did indeed matter. Since short mode is
19633       # case insensitive, let's make it lowercase to improve readability.
19634       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19635       # Now convert it back to Unix-stile (cygpath)
19636       input_path=`$CYGPATH -u "$shortmode_path"`
19637       new_path="$input_path"
19638     fi
19639   fi
19640 
19641   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19642   if test "x$test_cygdrive_prefix" = x; then
19643     # As a simple fix, exclude /usr/bin since it's not a real path.
19644     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19645       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19646       # a path prefixed by /cygdrive for fixpath to work.
19647       new_path="$CYGWIN_ROOT_PATH$input_path"
19648     fi
19649   fi
19650 
19651 
19652   if test "x$path" != "x$new_path"; then
19653     BOOT_JDK="$new_path"
19654     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19655 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19656   fi
19657 
19658   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19659 
19660   path="$BOOT_JDK"
19661   has_colon=`$ECHO $path | $GREP ^.:`
19662   new_path="$path"
19663   if test "x$has_colon" = x; then
19664     # Not in mixed or Windows style, start by that.
19665     new_path=`cmd //c echo $path`
19666   fi
19667 
19668 
19669   input_path="$new_path"
19670   # Check if we need to convert this using DOS-style short mode. If the path
19671   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19672   # take no chances and rewrite it.
19673   # Note: m4 eats our [], so we need to use [ and ] instead.
19674   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19675   if test "x$has_forbidden_chars" != x; then
19676     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19677     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19678   fi
19679 
19680 
19681   windows_path="$new_path"
19682   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19683     unix_path=`$CYGPATH -u "$windows_path"`
19684     new_path="$unix_path"
19685   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19686     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19687     new_path="$unix_path"
19688   fi
19689 
19690   if test "x$path" != "x$new_path"; then
19691     BOOT_JDK="$new_path"
19692     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19693 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19694   fi
19695 
19696   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19697   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19698 
19699   else
19700     # We're on a posix platform. Hooray! :)
19701     path="$BOOT_JDK"
19702     has_space=`$ECHO "$path" | $GREP " "`
19703     if test "x$has_space" != x; then
19704       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19705 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19706       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19707     fi
19708 
19709     # Use eval to expand a potential ~
19710     eval path="$path"
19711     if test ! -f "$path" && test ! -d "$path"; then
19712       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19713     fi
19714 
19715     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19716   fi
19717 
19718               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19719 $as_echo_n "checking for Boot JDK... " >&6; }
19720               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19721 $as_echo "$BOOT_JDK" >&6; }
19722               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19723 $as_echo_n "checking Boot JDK version... " >&6; }
19724               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19725               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19726 $as_echo "$BOOT_JDK_VERSION" >&6; }
19727             fi # end check jdk version
19728           fi # end check rt.jar
19729         fi # end check javac
19730       fi # end check java
19731     fi # end check boot jdk found
19732   fi
19733 
19734   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19735     # Having specified an argument which is incorrect will produce an instant failure;
19736     # we should not go on looking
19737     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19738   fi
19739 
19740   # Test: Is bootjdk available from builddeps?
19741 
19742   if test "x$BOOT_JDK_FOUND" = xno; then
19743     # Now execute the test
19744 
19745 
19746 
19747   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19748     # Source the builddeps file again, to make sure it uses the latest variables!
19749     . $builddepsfile
19750     # Look for a target and build machine specific resource!
19751     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19752     if test "x$resource" = x; then
19753       # Ok, lets instead look for a target specific resource
19754       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19755     fi
19756     if test "x$resource" = x; then
19757       # Ok, lets instead look for a build specific resource
19758       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19759     fi
19760     if test "x$resource" = x; then
19761       # Ok, lets instead look for a generic resource
19762       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19763       resource=${builddep_bootjdk}
19764     fi
19765     if test "x$resource" != x; then
19766       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19767 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19768       # If the resource in the builddeps.conf file is an existing directory,
19769       # for example /java/linux/cups
19770       if test -d ${resource}; then
19771         depdir=${resource}
19772       else
19773 
19774   # bootjdk is for example mymodule
19775   # $resource is for example libs/general/libmymod_1_2_3.zip
19776   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19777   # $with_builddeps_dir is for example /localhome/builddeps
19778   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19779   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19780   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19781   filename=`basename $resource`
19782   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19783   filebase=${filename%%.*}
19784   extension=${filename#*.}
19785   installdir=$with_builddeps_dir/$filebase
19786   if test ! -f $installdir/$filename.unpacked; then
19787     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19788 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19789     if test ! -d $installdir; then
19790       mkdir -p $installdir
19791     fi
19792     if test ! -d $installdir; then
19793       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19794     fi
19795     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19796     touch $tmpfile
19797     if test ! -f $tmpfile; then
19798       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19799     fi
19800 
19801   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19802   # $tmpfile is the local file name for the downloaded file.
19803   VALID_TOOL=no
19804   if test "x$BDEPS_FTP" = xwget; then
19805     VALID_TOOL=yes
19806     wget -O $tmpfile $with_builddeps_server/$resource
19807   fi
19808   if test "x$BDEPS_FTP" = xlftp; then
19809     VALID_TOOL=yes
19810     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19811   fi
19812   if test "x$BDEPS_FTP" = xftp; then
19813     VALID_TOOL=yes
19814     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19815     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19816     FTPUSERPWD=${FTPSERVER%%@*}
19817     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19818       FTPUSER=${userpwd%%:*}
19819       FTPPWD=${userpwd#*@}
19820       FTPSERVER=${FTPSERVER#*@}
19821     else
19822       FTPUSER=ftp
19823       FTPPWD=ftp
19824     fi
19825     # the "pass" command does not work on some
19826     # ftp clients (read ftp.exe) but if it works,
19827     # passive mode is better!
19828     ( \
19829         echo "user $FTPUSER $FTPPWD"        ; \
19830         echo "pass"                         ; \
19831         echo "bin"                          ; \
19832         echo "get $FTPPATH $tmpfile"              ; \
19833     ) | ftp -in $FTPSERVER
19834   fi
19835   if test "x$VALID_TOOL" != xyes; then
19836     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19837   fi
19838 
19839     mv $tmpfile $installdir/$filename
19840     if test ! -s $installdir/$filename; then
19841       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19842     fi
19843     case "$extension" in
19844       zip)  echo "Unzipping $installdir/$filename..."
19845         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
19846         ;;
19847       tar.gz) echo "Untaring $installdir/$filename..."
19848         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19849         ;;
19850       tgz) echo "Untaring $installdir/$filename..."
19851         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19852         ;;
19853       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
19854         ;;
19855     esac
19856   fi
19857   if test -f $installdir/$filename.unpacked; then
19858     depdir=$installdir
19859   fi
19860 
19861       fi
19862       # Source the builddeps file again, because in the previous command, the depdir
19863       # was updated to point at the current build dependency install directory.
19864       . $builddepsfile
19865       # Now extract variables from the builddeps.conf files.
19866       theroot=${builddep_bootjdk_ROOT}
19867       thecflags=${builddep_bootjdk_CFLAGS}
19868       thelibs=${builddep_bootjdk_LIBS}
19869       if test "x$depdir" = x; then
19870         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
19871       fi
19872       BOOT_JDK=$depdir
19873       if test "x$theroot" != x; then
19874         BOOT_JDK="$theroot"
19875       fi
19876       if test "x$thecflags" != x; then
19877         BOOT_JDK_CFLAGS="$thecflags"
19878       fi
19879       if test "x$thelibs" != x; then
19880         BOOT_JDK_LIBS="$thelibs"
19881       fi
19882       BOOT_JDK_FOUND=maybe
19883       else BOOT_JDK_FOUND=no
19884 
19885     fi
19886     else BOOT_JDK_FOUND=no
19887 
19888   fi
19889 
19890 
19891 
19892     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19893     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19894       # Do we have a bin/java?
19895       if test ! -x "$BOOT_JDK/bin/java"; then
19896         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19897 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19898         BOOT_JDK_FOUND=no
19899       else
19900         # Do we have a bin/javac?
19901         if test ! -x "$BOOT_JDK/bin/javac"; then
19902           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19903 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19904           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19905 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19906           BOOT_JDK_FOUND=no
19907         else
19908           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19909           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19910             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19912             BOOT_JDK_FOUND=no
19913           else
19914             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19915             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19916 
19917             # Extra M4 quote needed to protect [] in grep expression.
19918             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19919             if test "x$FOUND_CORRECT_VERSION" = x; then
19920               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19921 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19922               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19923 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19924               BOOT_JDK_FOUND=no
19925             else
19926               # We're done! :-)
19927               BOOT_JDK_FOUND=yes
19928 
19929   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19930 
19931   # Input might be given as Windows format, start by converting to
19932   # unix format.
19933   path="$BOOT_JDK"
19934   new_path=`$CYGPATH -u "$path"`
19935 
19936   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19937   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19938   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19939   # "foo.exe" is OK but "foo" is an error.
19940   #
19941   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19942   # It is also a way to make sure we got the proper file name for the real test later on.
19943   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19944   if test "x$test_shortpath" = x; then
19945     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19946 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19947     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19948   fi
19949 
19950   # Call helper function which possibly converts this using DOS-style short mode.
19951   # If so, the updated path is stored in $new_path.
19952 
19953   input_path="$new_path"
19954   # Check if we need to convert this using DOS-style short mode. If the path
19955   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19956   # take no chances and rewrite it.
19957   # Note: m4 eats our [], so we need to use [ and ] instead.
19958   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19959   if test "x$has_forbidden_chars" != x; then
19960     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19961     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19962     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19963     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19964       # Going to short mode and back again did indeed matter. Since short mode is
19965       # case insensitive, let's make it lowercase to improve readability.
19966       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19967       # Now convert it back to Unix-stile (cygpath)
19968       input_path=`$CYGPATH -u "$shortmode_path"`
19969       new_path="$input_path"
19970     fi
19971   fi
19972 
19973   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19974   if test "x$test_cygdrive_prefix" = x; then
19975     # As a simple fix, exclude /usr/bin since it's not a real path.
19976     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19977       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19978       # a path prefixed by /cygdrive for fixpath to work.
19979       new_path="$CYGWIN_ROOT_PATH$input_path"
19980     fi
19981   fi
19982 
19983 
19984   if test "x$path" != "x$new_path"; then
19985     BOOT_JDK="$new_path"
19986     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19987 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19988   fi
19989 
19990   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19991 
19992   path="$BOOT_JDK"
19993   has_colon=`$ECHO $path | $GREP ^.:`
19994   new_path="$path"
19995   if test "x$has_colon" = x; then
19996     # Not in mixed or Windows style, start by that.
19997     new_path=`cmd //c echo $path`
19998   fi
19999 
20000 
20001   input_path="$new_path"
20002   # Check if we need to convert this using DOS-style short mode. If the path
20003   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20004   # take no chances and rewrite it.
20005   # Note: m4 eats our [], so we need to use [ and ] instead.
20006   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20007   if test "x$has_forbidden_chars" != x; then
20008     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20009     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20010   fi
20011 
20012 
20013   windows_path="$new_path"
20014   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20015     unix_path=`$CYGPATH -u "$windows_path"`
20016     new_path="$unix_path"
20017   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20018     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20019     new_path="$unix_path"
20020   fi
20021 
20022   if test "x$path" != "x$new_path"; then
20023     BOOT_JDK="$new_path"
20024     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20025 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20026   fi
20027 
20028   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20029   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20030 
20031   else
20032     # We're on a posix platform. Hooray! :)
20033     path="$BOOT_JDK"
20034     has_space=`$ECHO "$path" | $GREP " "`
20035     if test "x$has_space" != x; then
20036       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20037 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20038       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20039     fi
20040 
20041     # Use eval to expand a potential ~
20042     eval path="$path"
20043     if test ! -f "$path" && test ! -d "$path"; then
20044       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20045     fi
20046 
20047     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20048   fi
20049 
20050               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20051 $as_echo_n "checking for Boot JDK... " >&6; }
20052               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20053 $as_echo "$BOOT_JDK" >&6; }
20054               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20055 $as_echo_n "checking Boot JDK version... " >&6; }
20056               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20057               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20058 $as_echo "$BOOT_JDK_VERSION" >&6; }
20059             fi # end check jdk version
20060           fi # end check rt.jar
20061         fi # end check javac
20062       fi # end check java
20063     fi # end check boot jdk found
20064   fi
20065 
20066 
20067   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20068 
20069   if test "x$BOOT_JDK_FOUND" = xno; then
20070     # Now execute the test
20071 
20072   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20073     # First check at user selected default
20074 
20075   if test "x$BOOT_JDK_FOUND" = xno; then
20076     # Now execute the test
20077 
20078   if test -x /usr/libexec/java_home; then
20079     BOOT_JDK=`/usr/libexec/java_home `
20080     BOOT_JDK_FOUND=maybe
20081     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20082 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20083   fi
20084 
20085 
20086     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20087     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20088       # Do we have a bin/java?
20089       if test ! -x "$BOOT_JDK/bin/java"; then
20090         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20091 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20092         BOOT_JDK_FOUND=no
20093       else
20094         # Do we have a bin/javac?
20095         if test ! -x "$BOOT_JDK/bin/javac"; then
20096           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20097 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20098           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20099 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20100           BOOT_JDK_FOUND=no
20101         else
20102           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20103           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20104             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20105 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20106             BOOT_JDK_FOUND=no
20107           else
20108             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20109             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20110 
20111             # Extra M4 quote needed to protect [] in grep expression.
20112             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20113             if test "x$FOUND_CORRECT_VERSION" = x; then
20114               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20115 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20116               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20117 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20118               BOOT_JDK_FOUND=no
20119             else
20120               # We're done! :-)
20121               BOOT_JDK_FOUND=yes
20122 
20123   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20124 
20125   # Input might be given as Windows format, start by converting to
20126   # unix format.
20127   path="$BOOT_JDK"
20128   new_path=`$CYGPATH -u "$path"`
20129 
20130   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20131   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20132   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20133   # "foo.exe" is OK but "foo" is an error.
20134   #
20135   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20136   # It is also a way to make sure we got the proper file name for the real test later on.
20137   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20138   if test "x$test_shortpath" = x; then
20139     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20140 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20141     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20142   fi
20143 
20144   # Call helper function which possibly converts this using DOS-style short mode.
20145   # If so, the updated path is stored in $new_path.
20146 
20147   input_path="$new_path"
20148   # Check if we need to convert this using DOS-style short mode. If the path
20149   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20150   # take no chances and rewrite it.
20151   # Note: m4 eats our [], so we need to use [ and ] instead.
20152   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20153   if test "x$has_forbidden_chars" != x; then
20154     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20155     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20156     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20157     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20158       # Going to short mode and back again did indeed matter. Since short mode is
20159       # case insensitive, let's make it lowercase to improve readability.
20160       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20161       # Now convert it back to Unix-stile (cygpath)
20162       input_path=`$CYGPATH -u "$shortmode_path"`
20163       new_path="$input_path"
20164     fi
20165   fi
20166 
20167   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20168   if test "x$test_cygdrive_prefix" = x; then
20169     # As a simple fix, exclude /usr/bin since it's not a real path.
20170     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20171       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20172       # a path prefixed by /cygdrive for fixpath to work.
20173       new_path="$CYGWIN_ROOT_PATH$input_path"
20174     fi
20175   fi
20176 
20177 
20178   if test "x$path" != "x$new_path"; then
20179     BOOT_JDK="$new_path"
20180     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20181 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20182   fi
20183 
20184   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20185 
20186   path="$BOOT_JDK"
20187   has_colon=`$ECHO $path | $GREP ^.:`
20188   new_path="$path"
20189   if test "x$has_colon" = x; then
20190     # Not in mixed or Windows style, start by that.
20191     new_path=`cmd //c echo $path`
20192   fi
20193 
20194 
20195   input_path="$new_path"
20196   # Check if we need to convert this using DOS-style short mode. If the path
20197   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20198   # take no chances and rewrite it.
20199   # Note: m4 eats our [], so we need to use [ and ] instead.
20200   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20201   if test "x$has_forbidden_chars" != x; then
20202     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20203     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20204   fi
20205 
20206 
20207   windows_path="$new_path"
20208   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20209     unix_path=`$CYGPATH -u "$windows_path"`
20210     new_path="$unix_path"
20211   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20212     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20213     new_path="$unix_path"
20214   fi
20215 
20216   if test "x$path" != "x$new_path"; then
20217     BOOT_JDK="$new_path"
20218     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20219 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20220   fi
20221 
20222   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20223   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20224 
20225   else
20226     # We're on a posix platform. Hooray! :)
20227     path="$BOOT_JDK"
20228     has_space=`$ECHO "$path" | $GREP " "`
20229     if test "x$has_space" != x; then
20230       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20231 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20232       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20233     fi
20234 
20235     # Use eval to expand a potential ~
20236     eval path="$path"
20237     if test ! -f "$path" && test ! -d "$path"; then
20238       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20239     fi
20240 
20241     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20242   fi
20243 
20244               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20245 $as_echo_n "checking for Boot JDK... " >&6; }
20246               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20247 $as_echo "$BOOT_JDK" >&6; }
20248               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20249 $as_echo_n "checking Boot JDK version... " >&6; }
20250               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20251               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20252 $as_echo "$BOOT_JDK_VERSION" >&6; }
20253             fi # end check jdk version
20254           fi # end check rt.jar
20255         fi # end check javac
20256       fi # end check java
20257     fi # end check boot jdk found
20258   fi
20259 
20260     # If that did not work out (e.g. too old), try explicit versions instead
20261 
20262   if test "x$BOOT_JDK_FOUND" = xno; then
20263     # Now execute the test
20264 
20265   if test -x /usr/libexec/java_home; then
20266     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20267     BOOT_JDK_FOUND=maybe
20268     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20269 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20270   fi
20271 
20272 
20273     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20274     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20275       # Do we have a bin/java?
20276       if test ! -x "$BOOT_JDK/bin/java"; then
20277         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20278 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20279         BOOT_JDK_FOUND=no
20280       else
20281         # Do we have a bin/javac?
20282         if test ! -x "$BOOT_JDK/bin/javac"; then
20283           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20284 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20285           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20286 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20287           BOOT_JDK_FOUND=no
20288         else
20289           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20290           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20291             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20293             BOOT_JDK_FOUND=no
20294           else
20295             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20296             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20297 
20298             # Extra M4 quote needed to protect [] in grep expression.
20299             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20300             if test "x$FOUND_CORRECT_VERSION" = x; then
20301               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20302 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20303               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20304 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20305               BOOT_JDK_FOUND=no
20306             else
20307               # We're done! :-)
20308               BOOT_JDK_FOUND=yes
20309 
20310   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20311 
20312   # Input might be given as Windows format, start by converting to
20313   # unix format.
20314   path="$BOOT_JDK"
20315   new_path=`$CYGPATH -u "$path"`
20316 
20317   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20318   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20319   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20320   # "foo.exe" is OK but "foo" is an error.
20321   #
20322   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20323   # It is also a way to make sure we got the proper file name for the real test later on.
20324   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20325   if test "x$test_shortpath" = x; then
20326     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20327 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20328     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20329   fi
20330 
20331   # Call helper function which possibly converts this using DOS-style short mode.
20332   # If so, the updated path is stored in $new_path.
20333 
20334   input_path="$new_path"
20335   # Check if we need to convert this using DOS-style short mode. If the path
20336   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20337   # take no chances and rewrite it.
20338   # Note: m4 eats our [], so we need to use [ and ] instead.
20339   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20340   if test "x$has_forbidden_chars" != x; then
20341     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20342     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20343     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20344     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20345       # Going to short mode and back again did indeed matter. Since short mode is
20346       # case insensitive, let's make it lowercase to improve readability.
20347       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20348       # Now convert it back to Unix-stile (cygpath)
20349       input_path=`$CYGPATH -u "$shortmode_path"`
20350       new_path="$input_path"
20351     fi
20352   fi
20353 
20354   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20355   if test "x$test_cygdrive_prefix" = x; then
20356     # As a simple fix, exclude /usr/bin since it's not a real path.
20357     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20358       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20359       # a path prefixed by /cygdrive for fixpath to work.
20360       new_path="$CYGWIN_ROOT_PATH$input_path"
20361     fi
20362   fi
20363 
20364 
20365   if test "x$path" != "x$new_path"; then
20366     BOOT_JDK="$new_path"
20367     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20368 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20369   fi
20370 
20371   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20372 
20373   path="$BOOT_JDK"
20374   has_colon=`$ECHO $path | $GREP ^.:`
20375   new_path="$path"
20376   if test "x$has_colon" = x; then
20377     # Not in mixed or Windows style, start by that.
20378     new_path=`cmd //c echo $path`
20379   fi
20380 
20381 
20382   input_path="$new_path"
20383   # Check if we need to convert this using DOS-style short mode. If the path
20384   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20385   # take no chances and rewrite it.
20386   # Note: m4 eats our [], so we need to use [ and ] instead.
20387   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20388   if test "x$has_forbidden_chars" != x; then
20389     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20390     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20391   fi
20392 
20393 
20394   windows_path="$new_path"
20395   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20396     unix_path=`$CYGPATH -u "$windows_path"`
20397     new_path="$unix_path"
20398   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20399     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20400     new_path="$unix_path"
20401   fi
20402 
20403   if test "x$path" != "x$new_path"; then
20404     BOOT_JDK="$new_path"
20405     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20406 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20407   fi
20408 
20409   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20410   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20411 
20412   else
20413     # We're on a posix platform. Hooray! :)
20414     path="$BOOT_JDK"
20415     has_space=`$ECHO "$path" | $GREP " "`
20416     if test "x$has_space" != x; then
20417       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20418 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20419       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20420     fi
20421 
20422     # Use eval to expand a potential ~
20423     eval path="$path"
20424     if test ! -f "$path" && test ! -d "$path"; then
20425       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20426     fi
20427 
20428     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20429   fi
20430 
20431               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20432 $as_echo_n "checking for Boot JDK... " >&6; }
20433               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20434 $as_echo "$BOOT_JDK" >&6; }
20435               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20436 $as_echo_n "checking Boot JDK version... " >&6; }
20437               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20438               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20439 $as_echo "$BOOT_JDK_VERSION" >&6; }
20440             fi # end check jdk version
20441           fi # end check rt.jar
20442         fi # end check javac
20443       fi # end check java
20444     fi # end check boot jdk found
20445   fi
20446 
20447 
20448   if test "x$BOOT_JDK_FOUND" = xno; then
20449     # Now execute the test
20450 
20451   if test -x /usr/libexec/java_home; then
20452     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20453     BOOT_JDK_FOUND=maybe
20454     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20455 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20456   fi
20457 
20458 
20459     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20460     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20461       # Do we have a bin/java?
20462       if test ! -x "$BOOT_JDK/bin/java"; then
20463         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20464 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20465         BOOT_JDK_FOUND=no
20466       else
20467         # Do we have a bin/javac?
20468         if test ! -x "$BOOT_JDK/bin/javac"; then
20469           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20470 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20471           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20472 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20473           BOOT_JDK_FOUND=no
20474         else
20475           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20476           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20477             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20479             BOOT_JDK_FOUND=no
20480           else
20481             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20482             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20483 
20484             # Extra M4 quote needed to protect [] in grep expression.
20485             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20486             if test "x$FOUND_CORRECT_VERSION" = x; then
20487               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20488 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20489               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20490 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20491               BOOT_JDK_FOUND=no
20492             else
20493               # We're done! :-)
20494               BOOT_JDK_FOUND=yes
20495 
20496   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20497 
20498   # Input might be given as Windows format, start by converting to
20499   # unix format.
20500   path="$BOOT_JDK"
20501   new_path=`$CYGPATH -u "$path"`
20502 
20503   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20504   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20505   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20506   # "foo.exe" is OK but "foo" is an error.
20507   #
20508   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20509   # It is also a way to make sure we got the proper file name for the real test later on.
20510   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20511   if test "x$test_shortpath" = x; then
20512     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20513 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20514     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20515   fi
20516 
20517   # Call helper function which possibly converts this using DOS-style short mode.
20518   # If so, the updated path is stored in $new_path.
20519 
20520   input_path="$new_path"
20521   # Check if we need to convert this using DOS-style short mode. If the path
20522   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20523   # take no chances and rewrite it.
20524   # Note: m4 eats our [], so we need to use [ and ] instead.
20525   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20526   if test "x$has_forbidden_chars" != x; then
20527     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20528     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20529     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20530     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20531       # Going to short mode and back again did indeed matter. Since short mode is
20532       # case insensitive, let's make it lowercase to improve readability.
20533       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20534       # Now convert it back to Unix-stile (cygpath)
20535       input_path=`$CYGPATH -u "$shortmode_path"`
20536       new_path="$input_path"
20537     fi
20538   fi
20539 
20540   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20541   if test "x$test_cygdrive_prefix" = x; then
20542     # As a simple fix, exclude /usr/bin since it's not a real path.
20543     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20544       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20545       # a path prefixed by /cygdrive for fixpath to work.
20546       new_path="$CYGWIN_ROOT_PATH$input_path"
20547     fi
20548   fi
20549 
20550 
20551   if test "x$path" != "x$new_path"; then
20552     BOOT_JDK="$new_path"
20553     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20554 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20555   fi
20556 
20557   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20558 
20559   path="$BOOT_JDK"
20560   has_colon=`$ECHO $path | $GREP ^.:`
20561   new_path="$path"
20562   if test "x$has_colon" = x; then
20563     # Not in mixed or Windows style, start by that.
20564     new_path=`cmd //c echo $path`
20565   fi
20566 
20567 
20568   input_path="$new_path"
20569   # Check if we need to convert this using DOS-style short mode. If the path
20570   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20571   # take no chances and rewrite it.
20572   # Note: m4 eats our [], so we need to use [ and ] instead.
20573   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20574   if test "x$has_forbidden_chars" != x; then
20575     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20576     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20577   fi
20578 
20579 
20580   windows_path="$new_path"
20581   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20582     unix_path=`$CYGPATH -u "$windows_path"`
20583     new_path="$unix_path"
20584   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20585     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20586     new_path="$unix_path"
20587   fi
20588 
20589   if test "x$path" != "x$new_path"; then
20590     BOOT_JDK="$new_path"
20591     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20592 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20593   fi
20594 
20595   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20596   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20597 
20598   else
20599     # We're on a posix platform. Hooray! :)
20600     path="$BOOT_JDK"
20601     has_space=`$ECHO "$path" | $GREP " "`
20602     if test "x$has_space" != x; then
20603       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20604 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20605       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20606     fi
20607 
20608     # Use eval to expand a potential ~
20609     eval path="$path"
20610     if test ! -f "$path" && test ! -d "$path"; then
20611       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20612     fi
20613 
20614     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20615   fi
20616 
20617               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20618 $as_echo_n "checking for Boot JDK... " >&6; }
20619               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20620 $as_echo "$BOOT_JDK" >&6; }
20621               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20622 $as_echo_n "checking Boot JDK version... " >&6; }
20623               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20624               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20625 $as_echo "$BOOT_JDK_VERSION" >&6; }
20626             fi # end check jdk version
20627           fi # end check rt.jar
20628         fi # end check javac
20629       fi # end check java
20630     fi # end check boot jdk found
20631   fi
20632 
20633 
20634   if test "x$BOOT_JDK_FOUND" = xno; then
20635     # Now execute the test
20636 
20637   if test -x /usr/libexec/java_home; then
20638     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20639     BOOT_JDK_FOUND=maybe
20640     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20641 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20642   fi
20643 
20644 
20645     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20646     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20647       # Do we have a bin/java?
20648       if test ! -x "$BOOT_JDK/bin/java"; then
20649         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20651         BOOT_JDK_FOUND=no
20652       else
20653         # Do we have a bin/javac?
20654         if test ! -x "$BOOT_JDK/bin/javac"; then
20655           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20656 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20657           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20658 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20659           BOOT_JDK_FOUND=no
20660         else
20661           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20662           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20663             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20664 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20665             BOOT_JDK_FOUND=no
20666           else
20667             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20668             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20669 
20670             # Extra M4 quote needed to protect [] in grep expression.
20671             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20672             if test "x$FOUND_CORRECT_VERSION" = x; then
20673               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20674 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20675               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20676 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20677               BOOT_JDK_FOUND=no
20678             else
20679               # We're done! :-)
20680               BOOT_JDK_FOUND=yes
20681 
20682   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20683 
20684   # Input might be given as Windows format, start by converting to
20685   # unix format.
20686   path="$BOOT_JDK"
20687   new_path=`$CYGPATH -u "$path"`
20688 
20689   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20690   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20691   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20692   # "foo.exe" is OK but "foo" is an error.
20693   #
20694   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20695   # It is also a way to make sure we got the proper file name for the real test later on.
20696   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20697   if test "x$test_shortpath" = x; then
20698     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20699 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20700     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20701   fi
20702 
20703   # Call helper function which possibly converts this using DOS-style short mode.
20704   # If so, the updated path is stored in $new_path.
20705 
20706   input_path="$new_path"
20707   # Check if we need to convert this using DOS-style short mode. If the path
20708   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20709   # take no chances and rewrite it.
20710   # Note: m4 eats our [], so we need to use [ and ] instead.
20711   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20712   if test "x$has_forbidden_chars" != x; then
20713     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20714     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20715     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20716     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20717       # Going to short mode and back again did indeed matter. Since short mode is
20718       # case insensitive, let's make it lowercase to improve readability.
20719       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20720       # Now convert it back to Unix-stile (cygpath)
20721       input_path=`$CYGPATH -u "$shortmode_path"`
20722       new_path="$input_path"
20723     fi
20724   fi
20725 
20726   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20727   if test "x$test_cygdrive_prefix" = x; then
20728     # As a simple fix, exclude /usr/bin since it's not a real path.
20729     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20730       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20731       # a path prefixed by /cygdrive for fixpath to work.
20732       new_path="$CYGWIN_ROOT_PATH$input_path"
20733     fi
20734   fi
20735 
20736 
20737   if test "x$path" != "x$new_path"; then
20738     BOOT_JDK="$new_path"
20739     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20740 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20741   fi
20742 
20743   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20744 
20745   path="$BOOT_JDK"
20746   has_colon=`$ECHO $path | $GREP ^.:`
20747   new_path="$path"
20748   if test "x$has_colon" = x; then
20749     # Not in mixed or Windows style, start by that.
20750     new_path=`cmd //c echo $path`
20751   fi
20752 
20753 
20754   input_path="$new_path"
20755   # Check if we need to convert this using DOS-style short mode. If the path
20756   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20757   # take no chances and rewrite it.
20758   # Note: m4 eats our [], so we need to use [ and ] instead.
20759   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20760   if test "x$has_forbidden_chars" != x; then
20761     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20762     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20763   fi
20764 
20765 
20766   windows_path="$new_path"
20767   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20768     unix_path=`$CYGPATH -u "$windows_path"`
20769     new_path="$unix_path"
20770   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20771     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20772     new_path="$unix_path"
20773   fi
20774 
20775   if test "x$path" != "x$new_path"; then
20776     BOOT_JDK="$new_path"
20777     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20778 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20779   fi
20780 
20781   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20782   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20783 
20784   else
20785     # We're on a posix platform. Hooray! :)
20786     path="$BOOT_JDK"
20787     has_space=`$ECHO "$path" | $GREP " "`
20788     if test "x$has_space" != x; then
20789       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20790 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20791       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20792     fi
20793 
20794     # Use eval to expand a potential ~
20795     eval path="$path"
20796     if test ! -f "$path" && test ! -d "$path"; then
20797       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20798     fi
20799 
20800     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20801   fi
20802 
20803               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20804 $as_echo_n "checking for Boot JDK... " >&6; }
20805               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20806 $as_echo "$BOOT_JDK" >&6; }
20807               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20808 $as_echo_n "checking Boot JDK version... " >&6; }
20809               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20810               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20811 $as_echo "$BOOT_JDK_VERSION" >&6; }
20812             fi # end check jdk version
20813           fi # end check rt.jar
20814         fi # end check javac
20815       fi # end check java
20816     fi # end check boot jdk found
20817   fi
20818 
20819   fi
20820 
20821 
20822     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20823     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20824       # Do we have a bin/java?
20825       if test ! -x "$BOOT_JDK/bin/java"; then
20826         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20827 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20828         BOOT_JDK_FOUND=no
20829       else
20830         # Do we have a bin/javac?
20831         if test ! -x "$BOOT_JDK/bin/javac"; then
20832           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20833 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20834           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20835 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20836           BOOT_JDK_FOUND=no
20837         else
20838           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20839           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20840             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20841 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20842             BOOT_JDK_FOUND=no
20843           else
20844             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20845             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20846 
20847             # Extra M4 quote needed to protect [] in grep expression.
20848             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20849             if test "x$FOUND_CORRECT_VERSION" = x; then
20850               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20851 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20852               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20853 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20854               BOOT_JDK_FOUND=no
20855             else
20856               # We're done! :-)
20857               BOOT_JDK_FOUND=yes
20858 
20859   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20860 
20861   # Input might be given as Windows format, start by converting to
20862   # unix format.
20863   path="$BOOT_JDK"
20864   new_path=`$CYGPATH -u "$path"`
20865 
20866   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20867   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20868   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20869   # "foo.exe" is OK but "foo" is an error.
20870   #
20871   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20872   # It is also a way to make sure we got the proper file name for the real test later on.
20873   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20874   if test "x$test_shortpath" = x; then
20875     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20876 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20877     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20878   fi
20879 
20880   # Call helper function which possibly converts this using DOS-style short mode.
20881   # If so, the updated path is stored in $new_path.
20882 
20883   input_path="$new_path"
20884   # Check if we need to convert this using DOS-style short mode. If the path
20885   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20886   # take no chances and rewrite it.
20887   # Note: m4 eats our [], so we need to use [ and ] instead.
20888   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20889   if test "x$has_forbidden_chars" != x; then
20890     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20891     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20892     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20893     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20894       # Going to short mode and back again did indeed matter. Since short mode is
20895       # case insensitive, let's make it lowercase to improve readability.
20896       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20897       # Now convert it back to Unix-stile (cygpath)
20898       input_path=`$CYGPATH -u "$shortmode_path"`
20899       new_path="$input_path"
20900     fi
20901   fi
20902 
20903   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20904   if test "x$test_cygdrive_prefix" = x; then
20905     # As a simple fix, exclude /usr/bin since it's not a real path.
20906     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20907       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20908       # a path prefixed by /cygdrive for fixpath to work.
20909       new_path="$CYGWIN_ROOT_PATH$input_path"
20910     fi
20911   fi
20912 
20913 
20914   if test "x$path" != "x$new_path"; then
20915     BOOT_JDK="$new_path"
20916     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20917 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20918   fi
20919 
20920   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20921 
20922   path="$BOOT_JDK"
20923   has_colon=`$ECHO $path | $GREP ^.:`
20924   new_path="$path"
20925   if test "x$has_colon" = x; then
20926     # Not in mixed or Windows style, start by that.
20927     new_path=`cmd //c echo $path`
20928   fi
20929 
20930 
20931   input_path="$new_path"
20932   # Check if we need to convert this using DOS-style short mode. If the path
20933   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20934   # take no chances and rewrite it.
20935   # Note: m4 eats our [], so we need to use [ and ] instead.
20936   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20937   if test "x$has_forbidden_chars" != x; then
20938     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20939     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20940   fi
20941 
20942 
20943   windows_path="$new_path"
20944   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20945     unix_path=`$CYGPATH -u "$windows_path"`
20946     new_path="$unix_path"
20947   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20948     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20949     new_path="$unix_path"
20950   fi
20951 
20952   if test "x$path" != "x$new_path"; then
20953     BOOT_JDK="$new_path"
20954     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20955 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20956   fi
20957 
20958   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20959   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20960 
20961   else
20962     # We're on a posix platform. Hooray! :)
20963     path="$BOOT_JDK"
20964     has_space=`$ECHO "$path" | $GREP " "`
20965     if test "x$has_space" != x; then
20966       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20967 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20968       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20969     fi
20970 
20971     # Use eval to expand a potential ~
20972     eval path="$path"
20973     if test ! -f "$path" && test ! -d "$path"; then
20974       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20975     fi
20976 
20977     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20978   fi
20979 
20980               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20981 $as_echo_n "checking for Boot JDK... " >&6; }
20982               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20983 $as_echo "$BOOT_JDK" >&6; }
20984               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20985 $as_echo_n "checking Boot JDK version... " >&6; }
20986               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20987               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20988 $as_echo "$BOOT_JDK_VERSION" >&6; }
20989             fi # end check jdk version
20990           fi # end check rt.jar
20991         fi # end check javac
20992       fi # end check java
20993     fi # end check boot jdk found
20994   fi
20995 
20996 
20997   # Test: Is $JAVA_HOME set?
20998 
20999   if test "x$BOOT_JDK_FOUND" = xno; then
21000     # Now execute the test
21001 
21002   if test "x$JAVA_HOME" != x; then
21003     JAVA_HOME_PROCESSED="$JAVA_HOME"
21004 
21005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21006 
21007   # Input might be given as Windows format, start by converting to
21008   # unix format.
21009   path="$JAVA_HOME_PROCESSED"
21010   new_path=`$CYGPATH -u "$path"`
21011 
21012   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21013   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21014   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21015   # "foo.exe" is OK but "foo" is an error.
21016   #
21017   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21018   # It is also a way to make sure we got the proper file name for the real test later on.
21019   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21020   if test "x$test_shortpath" = x; then
21021     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21022 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21023     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21024   fi
21025 
21026   # Call helper function which possibly converts this using DOS-style short mode.
21027   # If so, the updated path is stored in $new_path.
21028 
21029   input_path="$new_path"
21030   # Check if we need to convert this using DOS-style short mode. If the path
21031   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21032   # take no chances and rewrite it.
21033   # Note: m4 eats our [], so we need to use [ and ] instead.
21034   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21035   if test "x$has_forbidden_chars" != x; then
21036     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21037     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21038     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21039     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21040       # Going to short mode and back again did indeed matter. Since short mode is
21041       # case insensitive, let's make it lowercase to improve readability.
21042       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21043       # Now convert it back to Unix-stile (cygpath)
21044       input_path=`$CYGPATH -u "$shortmode_path"`
21045       new_path="$input_path"
21046     fi
21047   fi
21048 
21049   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21050   if test "x$test_cygdrive_prefix" = x; then
21051     # As a simple fix, exclude /usr/bin since it's not a real path.
21052     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21053       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21054       # a path prefixed by /cygdrive for fixpath to work.
21055       new_path="$CYGWIN_ROOT_PATH$input_path"
21056     fi
21057   fi
21058 
21059 
21060   if test "x$path" != "x$new_path"; then
21061     JAVA_HOME_PROCESSED="$new_path"
21062     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21063 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21064   fi
21065 
21066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21067 
21068   path="$JAVA_HOME_PROCESSED"
21069   has_colon=`$ECHO $path | $GREP ^.:`
21070   new_path="$path"
21071   if test "x$has_colon" = x; then
21072     # Not in mixed or Windows style, start by that.
21073     new_path=`cmd //c echo $path`
21074   fi
21075 
21076 
21077   input_path="$new_path"
21078   # Check if we need to convert this using DOS-style short mode. If the path
21079   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21080   # take no chances and rewrite it.
21081   # Note: m4 eats our [], so we need to use [ and ] instead.
21082   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21083   if test "x$has_forbidden_chars" != x; then
21084     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21085     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21086   fi
21087 
21088 
21089   windows_path="$new_path"
21090   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21091     unix_path=`$CYGPATH -u "$windows_path"`
21092     new_path="$unix_path"
21093   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21094     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21095     new_path="$unix_path"
21096   fi
21097 
21098   if test "x$path" != "x$new_path"; then
21099     JAVA_HOME_PROCESSED="$new_path"
21100     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21101 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21102   fi
21103 
21104   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21105   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21106 
21107   else
21108     # We're on a posix platform. Hooray! :)
21109     path="$JAVA_HOME_PROCESSED"
21110     has_space=`$ECHO "$path" | $GREP " "`
21111     if test "x$has_space" != x; then
21112       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21113 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21114       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21115     fi
21116 
21117     # Use eval to expand a potential ~
21118     eval path="$path"
21119     if test ! -f "$path" && test ! -d "$path"; then
21120       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21121     fi
21122 
21123     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21124   fi
21125 
21126     if test ! -d "$JAVA_HOME_PROCESSED"; then
21127       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21128 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21129     else
21130       # Aha, the user has set a JAVA_HOME
21131       # let us use that as the Boot JDK.
21132       BOOT_JDK="$JAVA_HOME_PROCESSED"
21133       BOOT_JDK_FOUND=maybe
21134       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21135 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21136     fi
21137   fi
21138 
21139 
21140     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21141     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21142       # Do we have a bin/java?
21143       if test ! -x "$BOOT_JDK/bin/java"; then
21144         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21145 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21146         BOOT_JDK_FOUND=no
21147       else
21148         # Do we have a bin/javac?
21149         if test ! -x "$BOOT_JDK/bin/javac"; then
21150           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21151 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21152           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21153 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21154           BOOT_JDK_FOUND=no
21155         else
21156           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21157           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21158             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21159 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21160             BOOT_JDK_FOUND=no
21161           else
21162             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21163             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21164 
21165             # Extra M4 quote needed to protect [] in grep expression.
21166             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21167             if test "x$FOUND_CORRECT_VERSION" = x; then
21168               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21169 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21170               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21171 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21172               BOOT_JDK_FOUND=no
21173             else
21174               # We're done! :-)
21175               BOOT_JDK_FOUND=yes
21176 
21177   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21178 
21179   # Input might be given as Windows format, start by converting to
21180   # unix format.
21181   path="$BOOT_JDK"
21182   new_path=`$CYGPATH -u "$path"`
21183 
21184   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21185   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21186   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21187   # "foo.exe" is OK but "foo" is an error.
21188   #
21189   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21190   # It is also a way to make sure we got the proper file name for the real test later on.
21191   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21192   if test "x$test_shortpath" = x; then
21193     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21194 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21195     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21196   fi
21197 
21198   # Call helper function which possibly converts this using DOS-style short mode.
21199   # If so, the updated path is stored in $new_path.
21200 
21201   input_path="$new_path"
21202   # Check if we need to convert this using DOS-style short mode. If the path
21203   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21204   # take no chances and rewrite it.
21205   # Note: m4 eats our [], so we need to use [ and ] instead.
21206   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21207   if test "x$has_forbidden_chars" != x; then
21208     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21209     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21210     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21211     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21212       # Going to short mode and back again did indeed matter. Since short mode is
21213       # case insensitive, let's make it lowercase to improve readability.
21214       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21215       # Now convert it back to Unix-stile (cygpath)
21216       input_path=`$CYGPATH -u "$shortmode_path"`
21217       new_path="$input_path"
21218     fi
21219   fi
21220 
21221   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21222   if test "x$test_cygdrive_prefix" = x; then
21223     # As a simple fix, exclude /usr/bin since it's not a real path.
21224     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21225       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21226       # a path prefixed by /cygdrive for fixpath to work.
21227       new_path="$CYGWIN_ROOT_PATH$input_path"
21228     fi
21229   fi
21230 
21231 
21232   if test "x$path" != "x$new_path"; then
21233     BOOT_JDK="$new_path"
21234     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21235 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21236   fi
21237 
21238   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21239 
21240   path="$BOOT_JDK"
21241   has_colon=`$ECHO $path | $GREP ^.:`
21242   new_path="$path"
21243   if test "x$has_colon" = x; then
21244     # Not in mixed or Windows style, start by that.
21245     new_path=`cmd //c echo $path`
21246   fi
21247 
21248 
21249   input_path="$new_path"
21250   # Check if we need to convert this using DOS-style short mode. If the path
21251   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21252   # take no chances and rewrite it.
21253   # Note: m4 eats our [], so we need to use [ and ] instead.
21254   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21255   if test "x$has_forbidden_chars" != x; then
21256     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21257     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21258   fi
21259 
21260 
21261   windows_path="$new_path"
21262   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21263     unix_path=`$CYGPATH -u "$windows_path"`
21264     new_path="$unix_path"
21265   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21266     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21267     new_path="$unix_path"
21268   fi
21269 
21270   if test "x$path" != "x$new_path"; then
21271     BOOT_JDK="$new_path"
21272     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21273 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21274   fi
21275 
21276   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21277   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21278 
21279   else
21280     # We're on a posix platform. Hooray! :)
21281     path="$BOOT_JDK"
21282     has_space=`$ECHO "$path" | $GREP " "`
21283     if test "x$has_space" != x; then
21284       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21285 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21286       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21287     fi
21288 
21289     # Use eval to expand a potential ~
21290     eval path="$path"
21291     if test ! -f "$path" && test ! -d "$path"; then
21292       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21293     fi
21294 
21295     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21296   fi
21297 
21298               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21299 $as_echo_n "checking for Boot JDK... " >&6; }
21300               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21301 $as_echo "$BOOT_JDK" >&6; }
21302               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21303 $as_echo_n "checking Boot JDK version... " >&6; }
21304               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21305               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21306 $as_echo "$BOOT_JDK_VERSION" >&6; }
21307             fi # end check jdk version
21308           fi # end check rt.jar
21309         fi # end check javac
21310       fi # end check java
21311     fi # end check boot jdk found
21312   fi
21313 
21314 
21315   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21316 
21317   if test "x$BOOT_JDK_FOUND" = xno; then
21318     # Now execute the test
21319 
21320   # Extract the first word of "javac", so it can be a program name with args.
21321 set dummy javac; ac_word=$2
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21323 $as_echo_n "checking for $ac_word... " >&6; }
21324 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21325   $as_echo_n "(cached) " >&6
21326 else
21327   case $JAVAC_CHECK in
21328   [\\/]* | ?:[\\/]*)
21329   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21330   ;;
21331   *)
21332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21333 for as_dir in $PATH
21334 do
21335   IFS=$as_save_IFS
21336   test -z "$as_dir" && as_dir=.
21337     for ac_exec_ext in '' $ac_executable_extensions; do
21338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21339     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21341     break 2
21342   fi
21343 done
21344   done
21345 IFS=$as_save_IFS
21346 
21347   ;;
21348 esac
21349 fi
21350 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21351 if test -n "$JAVAC_CHECK"; then
21352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21353 $as_echo "$JAVAC_CHECK" >&6; }
21354 else
21355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21356 $as_echo "no" >&6; }
21357 fi
21358 
21359 
21360   # Extract the first word of "java", so it can be a program name with args.
21361 set dummy java; ac_word=$2
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21363 $as_echo_n "checking for $ac_word... " >&6; }
21364 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21365   $as_echo_n "(cached) " >&6
21366 else
21367   case $JAVA_CHECK in
21368   [\\/]* | ?:[\\/]*)
21369   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21370   ;;
21371   *)
21372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21373 for as_dir in $PATH
21374 do
21375   IFS=$as_save_IFS
21376   test -z "$as_dir" && as_dir=.
21377     for ac_exec_ext in '' $ac_executable_extensions; do
21378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21379     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21381     break 2
21382   fi
21383 done
21384   done
21385 IFS=$as_save_IFS
21386 
21387   ;;
21388 esac
21389 fi
21390 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21391 if test -n "$JAVA_CHECK"; then
21392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21393 $as_echo "$JAVA_CHECK" >&6; }
21394 else
21395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21396 $as_echo "no" >&6; }
21397 fi
21398 
21399 
21400   BINARY="$JAVAC_CHECK"
21401   if test "x$JAVAC_CHECK" = x; then
21402     BINARY="$JAVA_CHECK"
21403   fi
21404   if test "x$BINARY" != x; then
21405     # So there is a java(c) binary, it might be part of a JDK.
21406     # Lets find the JDK/JRE directory by following symbolic links.
21407     # Linux/GNU systems often have links from /usr/bin/java to
21408     # /etc/alternatives/java to the real JDK binary.
21409 
21410   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21411     # Follow a chain of symbolic links. Use readlink
21412     # where it exists, else fall back to horribly
21413     # complicated shell code.
21414     if test "x$READLINK_TESTED" != yes; then
21415       # On MacOSX there is a readlink tool with a different
21416       # purpose than the GNU readlink tool. Check the found readlink.
21417       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21418       if test "x$ISGNU" = x; then
21419         # A readlink that we do not know how to use.
21420         # Are there other non-GNU readlinks out there?
21421         READLINK_TESTED=yes
21422         READLINK=
21423       fi
21424     fi
21425 
21426     if test "x$READLINK" != x; then
21427       BINARY=`$READLINK -f $BINARY`
21428     else
21429       # Save the current directory for restoring afterwards
21430       STARTDIR=$PWD
21431       COUNTER=0
21432       sym_link_dir=`$DIRNAME $BINARY`
21433       sym_link_file=`$BASENAME $BINARY`
21434       cd $sym_link_dir
21435       # Use -P flag to resolve symlinks in directories.
21436       cd `$THEPWDCMD -P`
21437       sym_link_dir=`$THEPWDCMD -P`
21438       # Resolve file symlinks
21439       while test $COUNTER -lt 20; do
21440         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21441         if test "x$ISLINK" == x; then
21442           # This is not a symbolic link! We are done!
21443           break
21444         fi
21445         # Again resolve directory symlinks since the target of the just found
21446         # link could be in a different directory
21447         cd `$DIRNAME $ISLINK`
21448         sym_link_dir=`$THEPWDCMD -P`
21449         sym_link_file=`$BASENAME $ISLINK`
21450         let COUNTER=COUNTER+1
21451       done
21452       cd $STARTDIR
21453       BINARY=$sym_link_dir/$sym_link_file
21454     fi
21455   fi
21456 
21457     BOOT_JDK=`dirname "$BINARY"`
21458     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21459     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21460       # Looks like we found ourselves an JDK
21461       BOOT_JDK_FOUND=maybe
21462       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21463 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21464     fi
21465   fi
21466 
21467 
21468     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21469     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21470       # Do we have a bin/java?
21471       if test ! -x "$BOOT_JDK/bin/java"; then
21472         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21473 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21474         BOOT_JDK_FOUND=no
21475       else
21476         # Do we have a bin/javac?
21477         if test ! -x "$BOOT_JDK/bin/javac"; then
21478           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21479 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21480           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21481 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21482           BOOT_JDK_FOUND=no
21483         else
21484           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21485           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21486             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21487 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21488             BOOT_JDK_FOUND=no
21489           else
21490             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21491             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21492 
21493             # Extra M4 quote needed to protect [] in grep expression.
21494             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21495             if test "x$FOUND_CORRECT_VERSION" = x; then
21496               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21497 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21498               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21499 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21500               BOOT_JDK_FOUND=no
21501             else
21502               # We're done! :-)
21503               BOOT_JDK_FOUND=yes
21504 
21505   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21506 
21507   # Input might be given as Windows format, start by converting to
21508   # unix format.
21509   path="$BOOT_JDK"
21510   new_path=`$CYGPATH -u "$path"`
21511 
21512   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21513   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21514   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21515   # "foo.exe" is OK but "foo" is an error.
21516   #
21517   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21518   # It is also a way to make sure we got the proper file name for the real test later on.
21519   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21520   if test "x$test_shortpath" = x; then
21521     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21522 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21523     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21524   fi
21525 
21526   # Call helper function which possibly converts this using DOS-style short mode.
21527   # If so, the updated path is stored in $new_path.
21528 
21529   input_path="$new_path"
21530   # Check if we need to convert this using DOS-style short mode. If the path
21531   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21532   # take no chances and rewrite it.
21533   # Note: m4 eats our [], so we need to use [ and ] instead.
21534   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21535   if test "x$has_forbidden_chars" != x; then
21536     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21537     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21538     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21539     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21540       # Going to short mode and back again did indeed matter. Since short mode is
21541       # case insensitive, let's make it lowercase to improve readability.
21542       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21543       # Now convert it back to Unix-stile (cygpath)
21544       input_path=`$CYGPATH -u "$shortmode_path"`
21545       new_path="$input_path"
21546     fi
21547   fi
21548 
21549   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21550   if test "x$test_cygdrive_prefix" = x; then
21551     # As a simple fix, exclude /usr/bin since it's not a real path.
21552     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21553       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21554       # a path prefixed by /cygdrive for fixpath to work.
21555       new_path="$CYGWIN_ROOT_PATH$input_path"
21556     fi
21557   fi
21558 
21559 
21560   if test "x$path" != "x$new_path"; then
21561     BOOT_JDK="$new_path"
21562     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21563 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21564   fi
21565 
21566   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21567 
21568   path="$BOOT_JDK"
21569   has_colon=`$ECHO $path | $GREP ^.:`
21570   new_path="$path"
21571   if test "x$has_colon" = x; then
21572     # Not in mixed or Windows style, start by that.
21573     new_path=`cmd //c echo $path`
21574   fi
21575 
21576 
21577   input_path="$new_path"
21578   # Check if we need to convert this using DOS-style short mode. If the path
21579   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21580   # take no chances and rewrite it.
21581   # Note: m4 eats our [], so we need to use [ and ] instead.
21582   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21583   if test "x$has_forbidden_chars" != x; then
21584     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21585     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21586   fi
21587 
21588 
21589   windows_path="$new_path"
21590   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21591     unix_path=`$CYGPATH -u "$windows_path"`
21592     new_path="$unix_path"
21593   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21594     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21595     new_path="$unix_path"
21596   fi
21597 
21598   if test "x$path" != "x$new_path"; then
21599     BOOT_JDK="$new_path"
21600     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21601 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21602   fi
21603 
21604   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21605   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21606 
21607   else
21608     # We're on a posix platform. Hooray! :)
21609     path="$BOOT_JDK"
21610     has_space=`$ECHO "$path" | $GREP " "`
21611     if test "x$has_space" != x; then
21612       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21613 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21614       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21615     fi
21616 
21617     # Use eval to expand a potential ~
21618     eval path="$path"
21619     if test ! -f "$path" && test ! -d "$path"; then
21620       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21621     fi
21622 
21623     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21624   fi
21625 
21626               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21627 $as_echo_n "checking for Boot JDK... " >&6; }
21628               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21629 $as_echo "$BOOT_JDK" >&6; }
21630               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21631 $as_echo_n "checking Boot JDK version... " >&6; }
21632               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21633               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21634 $as_echo "$BOOT_JDK_VERSION" >&6; }
21635             fi # end check jdk version
21636           fi # end check rt.jar
21637         fi # end check javac
21638       fi # end check java
21639     fi # end check boot jdk found
21640   fi
21641 
21642 
21643   # Test: Is there a JDK installed in default, well-known locations?
21644 
21645   if test "x$BOOT_JDK_FOUND" = xno; then
21646     # Now execute the test
21647 
21648   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21649 
21650   if test "x$BOOT_JDK_FOUND" = xno; then
21651     # Now execute the test
21652 
21653   if test "x$ProgramW6432" != x; then
21654     VIRTUAL_DIR="$ProgramW6432/Java"
21655 
21656   windows_path="$VIRTUAL_DIR"
21657   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21658     unix_path=`$CYGPATH -u "$windows_path"`
21659     VIRTUAL_DIR="$unix_path"
21660   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21661     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21662     VIRTUAL_DIR="$unix_path"
21663   fi
21664 
21665 
21666   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21667   BOOT_JDK_SUFFIX=""
21668   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21669   if test "x$ALL_JDKS_FOUND" != x; then
21670     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21671 
21672   if test "x$BOOT_JDK_FOUND" = xno; then
21673     # Now execute the test
21674 
21675         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21676         if test -d "$BOOT_JDK"; then
21677           BOOT_JDK_FOUND=maybe
21678           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21679 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21680         fi
21681 
21682 
21683     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21684     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21685       # Do we have a bin/java?
21686       if test ! -x "$BOOT_JDK/bin/java"; then
21687         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21688 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21689         BOOT_JDK_FOUND=no
21690       else
21691         # Do we have a bin/javac?
21692         if test ! -x "$BOOT_JDK/bin/javac"; then
21693           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21694 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21695           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21696 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21697           BOOT_JDK_FOUND=no
21698         else
21699           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21700           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21701             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21702 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21703             BOOT_JDK_FOUND=no
21704           else
21705             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21706             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21707 
21708             # Extra M4 quote needed to protect [] in grep expression.
21709             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21710             if test "x$FOUND_CORRECT_VERSION" = x; then
21711               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21712 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21713               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21714 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21715               BOOT_JDK_FOUND=no
21716             else
21717               # We're done! :-)
21718               BOOT_JDK_FOUND=yes
21719 
21720   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21721 
21722   # Input might be given as Windows format, start by converting to
21723   # unix format.
21724   path="$BOOT_JDK"
21725   new_path=`$CYGPATH -u "$path"`
21726 
21727   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21728   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21729   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21730   # "foo.exe" is OK but "foo" is an error.
21731   #
21732   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21733   # It is also a way to make sure we got the proper file name for the real test later on.
21734   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21735   if test "x$test_shortpath" = x; then
21736     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21737 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21738     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21739   fi
21740 
21741   # Call helper function which possibly converts this using DOS-style short mode.
21742   # If so, the updated path is stored in $new_path.
21743 
21744   input_path="$new_path"
21745   # Check if we need to convert this using DOS-style short mode. If the path
21746   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21747   # take no chances and rewrite it.
21748   # Note: m4 eats our [], so we need to use [ and ] instead.
21749   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21750   if test "x$has_forbidden_chars" != x; then
21751     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21752     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21753     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21754     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21755       # Going to short mode and back again did indeed matter. Since short mode is
21756       # case insensitive, let's make it lowercase to improve readability.
21757       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21758       # Now convert it back to Unix-stile (cygpath)
21759       input_path=`$CYGPATH -u "$shortmode_path"`
21760       new_path="$input_path"
21761     fi
21762   fi
21763 
21764   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21765   if test "x$test_cygdrive_prefix" = x; then
21766     # As a simple fix, exclude /usr/bin since it's not a real path.
21767     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21768       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21769       # a path prefixed by /cygdrive for fixpath to work.
21770       new_path="$CYGWIN_ROOT_PATH$input_path"
21771     fi
21772   fi
21773 
21774 
21775   if test "x$path" != "x$new_path"; then
21776     BOOT_JDK="$new_path"
21777     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21778 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21779   fi
21780 
21781   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21782 
21783   path="$BOOT_JDK"
21784   has_colon=`$ECHO $path | $GREP ^.:`
21785   new_path="$path"
21786   if test "x$has_colon" = x; then
21787     # Not in mixed or Windows style, start by that.
21788     new_path=`cmd //c echo $path`
21789   fi
21790 
21791 
21792   input_path="$new_path"
21793   # Check if we need to convert this using DOS-style short mode. If the path
21794   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21795   # take no chances and rewrite it.
21796   # Note: m4 eats our [], so we need to use [ and ] instead.
21797   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21798   if test "x$has_forbidden_chars" != x; then
21799     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21800     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21801   fi
21802 
21803 
21804   windows_path="$new_path"
21805   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21806     unix_path=`$CYGPATH -u "$windows_path"`
21807     new_path="$unix_path"
21808   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21809     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21810     new_path="$unix_path"
21811   fi
21812 
21813   if test "x$path" != "x$new_path"; then
21814     BOOT_JDK="$new_path"
21815     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21816 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21817   fi
21818 
21819   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21820   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21821 
21822   else
21823     # We're on a posix platform. Hooray! :)
21824     path="$BOOT_JDK"
21825     has_space=`$ECHO "$path" | $GREP " "`
21826     if test "x$has_space" != x; then
21827       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21828 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21829       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21830     fi
21831 
21832     # Use eval to expand a potential ~
21833     eval path="$path"
21834     if test ! -f "$path" && test ! -d "$path"; then
21835       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21836     fi
21837 
21838     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21839   fi
21840 
21841               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21842 $as_echo_n "checking for Boot JDK... " >&6; }
21843               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21844 $as_echo "$BOOT_JDK" >&6; }
21845               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21846 $as_echo_n "checking Boot JDK version... " >&6; }
21847               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21848               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21849 $as_echo "$BOOT_JDK_VERSION" >&6; }
21850             fi # end check jdk version
21851           fi # end check rt.jar
21852         fi # end check javac
21853       fi # end check java
21854     fi # end check boot jdk found
21855   fi
21856 
21857     done
21858   fi
21859 
21860   fi
21861 
21862 
21863     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21864     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21865       # Do we have a bin/java?
21866       if test ! -x "$BOOT_JDK/bin/java"; then
21867         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21869         BOOT_JDK_FOUND=no
21870       else
21871         # Do we have a bin/javac?
21872         if test ! -x "$BOOT_JDK/bin/javac"; then
21873           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21874 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21875           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21876 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21877           BOOT_JDK_FOUND=no
21878         else
21879           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21880           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21881             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21882 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21883             BOOT_JDK_FOUND=no
21884           else
21885             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21886             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21887 
21888             # Extra M4 quote needed to protect [] in grep expression.
21889             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21890             if test "x$FOUND_CORRECT_VERSION" = x; then
21891               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21892 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21893               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21894 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21895               BOOT_JDK_FOUND=no
21896             else
21897               # We're done! :-)
21898               BOOT_JDK_FOUND=yes
21899 
21900   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21901 
21902   # Input might be given as Windows format, start by converting to
21903   # unix format.
21904   path="$BOOT_JDK"
21905   new_path=`$CYGPATH -u "$path"`
21906 
21907   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21908   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21909   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21910   # "foo.exe" is OK but "foo" is an error.
21911   #
21912   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21913   # It is also a way to make sure we got the proper file name for the real test later on.
21914   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21915   if test "x$test_shortpath" = x; then
21916     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21917 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21918     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21919   fi
21920 
21921   # Call helper function which possibly converts this using DOS-style short mode.
21922   # If so, the updated path is stored in $new_path.
21923 
21924   input_path="$new_path"
21925   # Check if we need to convert this using DOS-style short mode. If the path
21926   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21927   # take no chances and rewrite it.
21928   # Note: m4 eats our [], so we need to use [ and ] instead.
21929   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21930   if test "x$has_forbidden_chars" != x; then
21931     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21932     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21933     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21934     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21935       # Going to short mode and back again did indeed matter. Since short mode is
21936       # case insensitive, let's make it lowercase to improve readability.
21937       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21938       # Now convert it back to Unix-stile (cygpath)
21939       input_path=`$CYGPATH -u "$shortmode_path"`
21940       new_path="$input_path"
21941     fi
21942   fi
21943 
21944   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21945   if test "x$test_cygdrive_prefix" = x; then
21946     # As a simple fix, exclude /usr/bin since it's not a real path.
21947     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21948       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21949       # a path prefixed by /cygdrive for fixpath to work.
21950       new_path="$CYGWIN_ROOT_PATH$input_path"
21951     fi
21952   fi
21953 
21954 
21955   if test "x$path" != "x$new_path"; then
21956     BOOT_JDK="$new_path"
21957     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21958 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21959   fi
21960 
21961   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21962 
21963   path="$BOOT_JDK"
21964   has_colon=`$ECHO $path | $GREP ^.:`
21965   new_path="$path"
21966   if test "x$has_colon" = x; then
21967     # Not in mixed or Windows style, start by that.
21968     new_path=`cmd //c echo $path`
21969   fi
21970 
21971 
21972   input_path="$new_path"
21973   # Check if we need to convert this using DOS-style short mode. If the path
21974   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21975   # take no chances and rewrite it.
21976   # Note: m4 eats our [], so we need to use [ and ] instead.
21977   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21978   if test "x$has_forbidden_chars" != x; then
21979     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21980     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21981   fi
21982 
21983 
21984   windows_path="$new_path"
21985   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21986     unix_path=`$CYGPATH -u "$windows_path"`
21987     new_path="$unix_path"
21988   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21989     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21990     new_path="$unix_path"
21991   fi
21992 
21993   if test "x$path" != "x$new_path"; then
21994     BOOT_JDK="$new_path"
21995     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21996 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21997   fi
21998 
21999   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22000   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22001 
22002   else
22003     # We're on a posix platform. Hooray! :)
22004     path="$BOOT_JDK"
22005     has_space=`$ECHO "$path" | $GREP " "`
22006     if test "x$has_space" != x; then
22007       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22008 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22009       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22010     fi
22011 
22012     # Use eval to expand a potential ~
22013     eval path="$path"
22014     if test ! -f "$path" && test ! -d "$path"; then
22015       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22016     fi
22017 
22018     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22019   fi
22020 
22021               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22022 $as_echo_n "checking for Boot JDK... " >&6; }
22023               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22024 $as_echo "$BOOT_JDK" >&6; }
22025               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22026 $as_echo_n "checking Boot JDK version... " >&6; }
22027               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22028               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22029 $as_echo "$BOOT_JDK_VERSION" >&6; }
22030             fi # end check jdk version
22031           fi # end check rt.jar
22032         fi # end check javac
22033       fi # end check java
22034     fi # end check boot jdk found
22035   fi
22036 
22037 
22038   if test "x$BOOT_JDK_FOUND" = xno; then
22039     # Now execute the test
22040 
22041   if test "x$PROGRAMW6432" != x; then
22042     VIRTUAL_DIR="$PROGRAMW6432/Java"
22043 
22044   windows_path="$VIRTUAL_DIR"
22045   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22046     unix_path=`$CYGPATH -u "$windows_path"`
22047     VIRTUAL_DIR="$unix_path"
22048   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22049     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22050     VIRTUAL_DIR="$unix_path"
22051   fi
22052 
22053 
22054   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22055   BOOT_JDK_SUFFIX=""
22056   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22057   if test "x$ALL_JDKS_FOUND" != x; then
22058     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22059 
22060   if test "x$BOOT_JDK_FOUND" = xno; then
22061     # Now execute the test
22062 
22063         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22064         if test -d "$BOOT_JDK"; then
22065           BOOT_JDK_FOUND=maybe
22066           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22067 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22068         fi
22069 
22070 
22071     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22072     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22073       # Do we have a bin/java?
22074       if test ! -x "$BOOT_JDK/bin/java"; then
22075         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22076 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22077         BOOT_JDK_FOUND=no
22078       else
22079         # Do we have a bin/javac?
22080         if test ! -x "$BOOT_JDK/bin/javac"; then
22081           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22082 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22083           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22084 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22085           BOOT_JDK_FOUND=no
22086         else
22087           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22088           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22089             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22090 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22091             BOOT_JDK_FOUND=no
22092           else
22093             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22094             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22095 
22096             # Extra M4 quote needed to protect [] in grep expression.
22097             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22098             if test "x$FOUND_CORRECT_VERSION" = x; then
22099               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22101               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22102 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22103               BOOT_JDK_FOUND=no
22104             else
22105               # We're done! :-)
22106               BOOT_JDK_FOUND=yes
22107 
22108   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22109 
22110   # Input might be given as Windows format, start by converting to
22111   # unix format.
22112   path="$BOOT_JDK"
22113   new_path=`$CYGPATH -u "$path"`
22114 
22115   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22116   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22117   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22118   # "foo.exe" is OK but "foo" is an error.
22119   #
22120   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22121   # It is also a way to make sure we got the proper file name for the real test later on.
22122   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22123   if test "x$test_shortpath" = x; then
22124     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22125 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22126     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22127   fi
22128 
22129   # Call helper function which possibly converts this using DOS-style short mode.
22130   # If so, the updated path is stored in $new_path.
22131 
22132   input_path="$new_path"
22133   # Check if we need to convert this using DOS-style short mode. If the path
22134   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22135   # take no chances and rewrite it.
22136   # Note: m4 eats our [], so we need to use [ and ] instead.
22137   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22138   if test "x$has_forbidden_chars" != x; then
22139     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22140     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22141     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22142     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22143       # Going to short mode and back again did indeed matter. Since short mode is
22144       # case insensitive, let's make it lowercase to improve readability.
22145       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22146       # Now convert it back to Unix-stile (cygpath)
22147       input_path=`$CYGPATH -u "$shortmode_path"`
22148       new_path="$input_path"
22149     fi
22150   fi
22151 
22152   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22153   if test "x$test_cygdrive_prefix" = x; then
22154     # As a simple fix, exclude /usr/bin since it's not a real path.
22155     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22156       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22157       # a path prefixed by /cygdrive for fixpath to work.
22158       new_path="$CYGWIN_ROOT_PATH$input_path"
22159     fi
22160   fi
22161 
22162 
22163   if test "x$path" != "x$new_path"; then
22164     BOOT_JDK="$new_path"
22165     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22166 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22167   fi
22168 
22169   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22170 
22171   path="$BOOT_JDK"
22172   has_colon=`$ECHO $path | $GREP ^.:`
22173   new_path="$path"
22174   if test "x$has_colon" = x; then
22175     # Not in mixed or Windows style, start by that.
22176     new_path=`cmd //c echo $path`
22177   fi
22178 
22179 
22180   input_path="$new_path"
22181   # Check if we need to convert this using DOS-style short mode. If the path
22182   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22183   # take no chances and rewrite it.
22184   # Note: m4 eats our [], so we need to use [ and ] instead.
22185   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22186   if test "x$has_forbidden_chars" != x; then
22187     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22188     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22189   fi
22190 
22191 
22192   windows_path="$new_path"
22193   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22194     unix_path=`$CYGPATH -u "$windows_path"`
22195     new_path="$unix_path"
22196   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22197     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22198     new_path="$unix_path"
22199   fi
22200 
22201   if test "x$path" != "x$new_path"; then
22202     BOOT_JDK="$new_path"
22203     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22204 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22205   fi
22206 
22207   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22208   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22209 
22210   else
22211     # We're on a posix platform. Hooray! :)
22212     path="$BOOT_JDK"
22213     has_space=`$ECHO "$path" | $GREP " "`
22214     if test "x$has_space" != x; then
22215       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22216 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22217       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22218     fi
22219 
22220     # Use eval to expand a potential ~
22221     eval path="$path"
22222     if test ! -f "$path" && test ! -d "$path"; then
22223       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22224     fi
22225 
22226     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22227   fi
22228 
22229               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22230 $as_echo_n "checking for Boot JDK... " >&6; }
22231               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22232 $as_echo "$BOOT_JDK" >&6; }
22233               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22234 $as_echo_n "checking Boot JDK version... " >&6; }
22235               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22236               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22237 $as_echo "$BOOT_JDK_VERSION" >&6; }
22238             fi # end check jdk version
22239           fi # end check rt.jar
22240         fi # end check javac
22241       fi # end check java
22242     fi # end check boot jdk found
22243   fi
22244 
22245     done
22246   fi
22247 
22248   fi
22249 
22250 
22251     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22252     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22253       # Do we have a bin/java?
22254       if test ! -x "$BOOT_JDK/bin/java"; then
22255         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22257         BOOT_JDK_FOUND=no
22258       else
22259         # Do we have a bin/javac?
22260         if test ! -x "$BOOT_JDK/bin/javac"; then
22261           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22262 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22263           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22264 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22265           BOOT_JDK_FOUND=no
22266         else
22267           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22268           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22269             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22271             BOOT_JDK_FOUND=no
22272           else
22273             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22274             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22275 
22276             # Extra M4 quote needed to protect [] in grep expression.
22277             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22278             if test "x$FOUND_CORRECT_VERSION" = x; then
22279               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22281               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22282 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22283               BOOT_JDK_FOUND=no
22284             else
22285               # We're done! :-)
22286               BOOT_JDK_FOUND=yes
22287 
22288   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22289 
22290   # Input might be given as Windows format, start by converting to
22291   # unix format.
22292   path="$BOOT_JDK"
22293   new_path=`$CYGPATH -u "$path"`
22294 
22295   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22296   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22297   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22298   # "foo.exe" is OK but "foo" is an error.
22299   #
22300   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22301   # It is also a way to make sure we got the proper file name for the real test later on.
22302   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22303   if test "x$test_shortpath" = x; then
22304     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22305 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22306     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22307   fi
22308 
22309   # Call helper function which possibly converts this using DOS-style short mode.
22310   # If so, the updated path is stored in $new_path.
22311 
22312   input_path="$new_path"
22313   # Check if we need to convert this using DOS-style short mode. If the path
22314   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22315   # take no chances and rewrite it.
22316   # Note: m4 eats our [], so we need to use [ and ] instead.
22317   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22318   if test "x$has_forbidden_chars" != x; then
22319     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22320     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22321     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22322     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22323       # Going to short mode and back again did indeed matter. Since short mode is
22324       # case insensitive, let's make it lowercase to improve readability.
22325       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22326       # Now convert it back to Unix-stile (cygpath)
22327       input_path=`$CYGPATH -u "$shortmode_path"`
22328       new_path="$input_path"
22329     fi
22330   fi
22331 
22332   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22333   if test "x$test_cygdrive_prefix" = x; then
22334     # As a simple fix, exclude /usr/bin since it's not a real path.
22335     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22336       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22337       # a path prefixed by /cygdrive for fixpath to work.
22338       new_path="$CYGWIN_ROOT_PATH$input_path"
22339     fi
22340   fi
22341 
22342 
22343   if test "x$path" != "x$new_path"; then
22344     BOOT_JDK="$new_path"
22345     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22347   fi
22348 
22349   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22350 
22351   path="$BOOT_JDK"
22352   has_colon=`$ECHO $path | $GREP ^.:`
22353   new_path="$path"
22354   if test "x$has_colon" = x; then
22355     # Not in mixed or Windows style, start by that.
22356     new_path=`cmd //c echo $path`
22357   fi
22358 
22359 
22360   input_path="$new_path"
22361   # Check if we need to convert this using DOS-style short mode. If the path
22362   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22363   # take no chances and rewrite it.
22364   # Note: m4 eats our [], so we need to use [ and ] instead.
22365   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22366   if test "x$has_forbidden_chars" != x; then
22367     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22368     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22369   fi
22370 
22371 
22372   windows_path="$new_path"
22373   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22374     unix_path=`$CYGPATH -u "$windows_path"`
22375     new_path="$unix_path"
22376   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22377     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22378     new_path="$unix_path"
22379   fi
22380 
22381   if test "x$path" != "x$new_path"; then
22382     BOOT_JDK="$new_path"
22383     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22385   fi
22386 
22387   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22388   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22389 
22390   else
22391     # We're on a posix platform. Hooray! :)
22392     path="$BOOT_JDK"
22393     has_space=`$ECHO "$path" | $GREP " "`
22394     if test "x$has_space" != x; then
22395       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22396 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22397       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22398     fi
22399 
22400     # Use eval to expand a potential ~
22401     eval path="$path"
22402     if test ! -f "$path" && test ! -d "$path"; then
22403       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22404     fi
22405 
22406     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22407   fi
22408 
22409               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22410 $as_echo_n "checking for Boot JDK... " >&6; }
22411               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22412 $as_echo "$BOOT_JDK" >&6; }
22413               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22414 $as_echo_n "checking Boot JDK version... " >&6; }
22415               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22416               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22417 $as_echo "$BOOT_JDK_VERSION" >&6; }
22418             fi # end check jdk version
22419           fi # end check rt.jar
22420         fi # end check javac
22421       fi # end check java
22422     fi # end check boot jdk found
22423   fi
22424 
22425 
22426   if test "x$BOOT_JDK_FOUND" = xno; then
22427     # Now execute the test
22428 
22429   if test "x$PROGRAMFILES" != x; then
22430     VIRTUAL_DIR="$PROGRAMFILES/Java"
22431 
22432   windows_path="$VIRTUAL_DIR"
22433   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22434     unix_path=`$CYGPATH -u "$windows_path"`
22435     VIRTUAL_DIR="$unix_path"
22436   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22437     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22438     VIRTUAL_DIR="$unix_path"
22439   fi
22440 
22441 
22442   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22443   BOOT_JDK_SUFFIX=""
22444   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22445   if test "x$ALL_JDKS_FOUND" != x; then
22446     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22447 
22448   if test "x$BOOT_JDK_FOUND" = xno; then
22449     # Now execute the test
22450 
22451         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22452         if test -d "$BOOT_JDK"; then
22453           BOOT_JDK_FOUND=maybe
22454           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22455 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22456         fi
22457 
22458 
22459     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22460     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22461       # Do we have a bin/java?
22462       if test ! -x "$BOOT_JDK/bin/java"; then
22463         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22464 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22465         BOOT_JDK_FOUND=no
22466       else
22467         # Do we have a bin/javac?
22468         if test ! -x "$BOOT_JDK/bin/javac"; then
22469           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22470 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22471           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22472 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22473           BOOT_JDK_FOUND=no
22474         else
22475           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22476           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22477             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22479             BOOT_JDK_FOUND=no
22480           else
22481             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22482             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22483 
22484             # Extra M4 quote needed to protect [] in grep expression.
22485             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22486             if test "x$FOUND_CORRECT_VERSION" = x; then
22487               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22488 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22489               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22490 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22491               BOOT_JDK_FOUND=no
22492             else
22493               # We're done! :-)
22494               BOOT_JDK_FOUND=yes
22495 
22496   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22497 
22498   # Input might be given as Windows format, start by converting to
22499   # unix format.
22500   path="$BOOT_JDK"
22501   new_path=`$CYGPATH -u "$path"`
22502 
22503   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22504   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22505   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22506   # "foo.exe" is OK but "foo" is an error.
22507   #
22508   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22509   # It is also a way to make sure we got the proper file name for the real test later on.
22510   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22511   if test "x$test_shortpath" = x; then
22512     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22513 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22514     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22515   fi
22516 
22517   # Call helper function which possibly converts this using DOS-style short mode.
22518   # If so, the updated path is stored in $new_path.
22519 
22520   input_path="$new_path"
22521   # Check if we need to convert this using DOS-style short mode. If the path
22522   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22523   # take no chances and rewrite it.
22524   # Note: m4 eats our [], so we need to use [ and ] instead.
22525   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22526   if test "x$has_forbidden_chars" != x; then
22527     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22528     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22529     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22530     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22531       # Going to short mode and back again did indeed matter. Since short mode is
22532       # case insensitive, let's make it lowercase to improve readability.
22533       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22534       # Now convert it back to Unix-stile (cygpath)
22535       input_path=`$CYGPATH -u "$shortmode_path"`
22536       new_path="$input_path"
22537     fi
22538   fi
22539 
22540   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22541   if test "x$test_cygdrive_prefix" = x; then
22542     # As a simple fix, exclude /usr/bin since it's not a real path.
22543     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22544       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22545       # a path prefixed by /cygdrive for fixpath to work.
22546       new_path="$CYGWIN_ROOT_PATH$input_path"
22547     fi
22548   fi
22549 
22550 
22551   if test "x$path" != "x$new_path"; then
22552     BOOT_JDK="$new_path"
22553     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22554 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22555   fi
22556 
22557   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22558 
22559   path="$BOOT_JDK"
22560   has_colon=`$ECHO $path | $GREP ^.:`
22561   new_path="$path"
22562   if test "x$has_colon" = x; then
22563     # Not in mixed or Windows style, start by that.
22564     new_path=`cmd //c echo $path`
22565   fi
22566 
22567 
22568   input_path="$new_path"
22569   # Check if we need to convert this using DOS-style short mode. If the path
22570   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22571   # take no chances and rewrite it.
22572   # Note: m4 eats our [], so we need to use [ and ] instead.
22573   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22574   if test "x$has_forbidden_chars" != x; then
22575     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22576     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22577   fi
22578 
22579 
22580   windows_path="$new_path"
22581   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22582     unix_path=`$CYGPATH -u "$windows_path"`
22583     new_path="$unix_path"
22584   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22585     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22586     new_path="$unix_path"
22587   fi
22588 
22589   if test "x$path" != "x$new_path"; then
22590     BOOT_JDK="$new_path"
22591     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22592 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22593   fi
22594 
22595   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22596   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22597 
22598   else
22599     # We're on a posix platform. Hooray! :)
22600     path="$BOOT_JDK"
22601     has_space=`$ECHO "$path" | $GREP " "`
22602     if test "x$has_space" != x; then
22603       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22604 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22605       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22606     fi
22607 
22608     # Use eval to expand a potential ~
22609     eval path="$path"
22610     if test ! -f "$path" && test ! -d "$path"; then
22611       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22612     fi
22613 
22614     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22615   fi
22616 
22617               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22618 $as_echo_n "checking for Boot JDK... " >&6; }
22619               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22620 $as_echo "$BOOT_JDK" >&6; }
22621               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22622 $as_echo_n "checking Boot JDK version... " >&6; }
22623               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22624               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22625 $as_echo "$BOOT_JDK_VERSION" >&6; }
22626             fi # end check jdk version
22627           fi # end check rt.jar
22628         fi # end check javac
22629       fi # end check java
22630     fi # end check boot jdk found
22631   fi
22632 
22633     done
22634   fi
22635 
22636   fi
22637 
22638 
22639     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22640     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22641       # Do we have a bin/java?
22642       if test ! -x "$BOOT_JDK/bin/java"; then
22643         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22645         BOOT_JDK_FOUND=no
22646       else
22647         # Do we have a bin/javac?
22648         if test ! -x "$BOOT_JDK/bin/javac"; then
22649           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22651           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22652 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22653           BOOT_JDK_FOUND=no
22654         else
22655           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22656           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22657             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22658 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22659             BOOT_JDK_FOUND=no
22660           else
22661             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22662             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22663 
22664             # Extra M4 quote needed to protect [] in grep expression.
22665             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22666             if test "x$FOUND_CORRECT_VERSION" = x; then
22667               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22668 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22669               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22670 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22671               BOOT_JDK_FOUND=no
22672             else
22673               # We're done! :-)
22674               BOOT_JDK_FOUND=yes
22675 
22676   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22677 
22678   # Input might be given as Windows format, start by converting to
22679   # unix format.
22680   path="$BOOT_JDK"
22681   new_path=`$CYGPATH -u "$path"`
22682 
22683   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22684   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22685   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22686   # "foo.exe" is OK but "foo" is an error.
22687   #
22688   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22689   # It is also a way to make sure we got the proper file name for the real test later on.
22690   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22691   if test "x$test_shortpath" = x; then
22692     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22694     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22695   fi
22696 
22697   # Call helper function which possibly converts this using DOS-style short mode.
22698   # If so, the updated path is stored in $new_path.
22699 
22700   input_path="$new_path"
22701   # Check if we need to convert this using DOS-style short mode. If the path
22702   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22703   # take no chances and rewrite it.
22704   # Note: m4 eats our [], so we need to use [ and ] instead.
22705   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22706   if test "x$has_forbidden_chars" != x; then
22707     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22708     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22709     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22710     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22711       # Going to short mode and back again did indeed matter. Since short mode is
22712       # case insensitive, let's make it lowercase to improve readability.
22713       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22714       # Now convert it back to Unix-stile (cygpath)
22715       input_path=`$CYGPATH -u "$shortmode_path"`
22716       new_path="$input_path"
22717     fi
22718   fi
22719 
22720   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22721   if test "x$test_cygdrive_prefix" = x; then
22722     # As a simple fix, exclude /usr/bin since it's not a real path.
22723     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22724       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22725       # a path prefixed by /cygdrive for fixpath to work.
22726       new_path="$CYGWIN_ROOT_PATH$input_path"
22727     fi
22728   fi
22729 
22730 
22731   if test "x$path" != "x$new_path"; then
22732     BOOT_JDK="$new_path"
22733     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22735   fi
22736 
22737   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22738 
22739   path="$BOOT_JDK"
22740   has_colon=`$ECHO $path | $GREP ^.:`
22741   new_path="$path"
22742   if test "x$has_colon" = x; then
22743     # Not in mixed or Windows style, start by that.
22744     new_path=`cmd //c echo $path`
22745   fi
22746 
22747 
22748   input_path="$new_path"
22749   # Check if we need to convert this using DOS-style short mode. If the path
22750   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22751   # take no chances and rewrite it.
22752   # Note: m4 eats our [], so we need to use [ and ] instead.
22753   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22754   if test "x$has_forbidden_chars" != x; then
22755     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22756     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22757   fi
22758 
22759 
22760   windows_path="$new_path"
22761   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22762     unix_path=`$CYGPATH -u "$windows_path"`
22763     new_path="$unix_path"
22764   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22765     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22766     new_path="$unix_path"
22767   fi
22768 
22769   if test "x$path" != "x$new_path"; then
22770     BOOT_JDK="$new_path"
22771     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22773   fi
22774 
22775   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22776   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22777 
22778   else
22779     # We're on a posix platform. Hooray! :)
22780     path="$BOOT_JDK"
22781     has_space=`$ECHO "$path" | $GREP " "`
22782     if test "x$has_space" != x; then
22783       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22784 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22785       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22786     fi
22787 
22788     # Use eval to expand a potential ~
22789     eval path="$path"
22790     if test ! -f "$path" && test ! -d "$path"; then
22791       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22792     fi
22793 
22794     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22795   fi
22796 
22797               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22798 $as_echo_n "checking for Boot JDK... " >&6; }
22799               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22800 $as_echo "$BOOT_JDK" >&6; }
22801               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22802 $as_echo_n "checking Boot JDK version... " >&6; }
22803               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22804               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22805 $as_echo "$BOOT_JDK_VERSION" >&6; }
22806             fi # end check jdk version
22807           fi # end check rt.jar
22808         fi # end check javac
22809       fi # end check java
22810     fi # end check boot jdk found
22811   fi
22812 
22813 
22814   if test "x$BOOT_JDK_FOUND" = xno; then
22815     # Now execute the test
22816 
22817   if test "x$ProgramFiles" != x; then
22818     VIRTUAL_DIR="$ProgramFiles/Java"
22819 
22820   windows_path="$VIRTUAL_DIR"
22821   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22822     unix_path=`$CYGPATH -u "$windows_path"`
22823     VIRTUAL_DIR="$unix_path"
22824   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22825     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22826     VIRTUAL_DIR="$unix_path"
22827   fi
22828 
22829 
22830   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22831   BOOT_JDK_SUFFIX=""
22832   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22833   if test "x$ALL_JDKS_FOUND" != x; then
22834     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22835 
22836   if test "x$BOOT_JDK_FOUND" = xno; then
22837     # Now execute the test
22838 
22839         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22840         if test -d "$BOOT_JDK"; then
22841           BOOT_JDK_FOUND=maybe
22842           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22843 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22844         fi
22845 
22846 
22847     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22848     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22849       # Do we have a bin/java?
22850       if test ! -x "$BOOT_JDK/bin/java"; then
22851         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22852 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22853         BOOT_JDK_FOUND=no
22854       else
22855         # Do we have a bin/javac?
22856         if test ! -x "$BOOT_JDK/bin/javac"; then
22857           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22859           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22860 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22861           BOOT_JDK_FOUND=no
22862         else
22863           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22864           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22865             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22867             BOOT_JDK_FOUND=no
22868           else
22869             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22870             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22871 
22872             # Extra M4 quote needed to protect [] in grep expression.
22873             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22874             if test "x$FOUND_CORRECT_VERSION" = x; then
22875               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22876 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22877               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22878 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22879               BOOT_JDK_FOUND=no
22880             else
22881               # We're done! :-)
22882               BOOT_JDK_FOUND=yes
22883 
22884   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22885 
22886   # Input might be given as Windows format, start by converting to
22887   # unix format.
22888   path="$BOOT_JDK"
22889   new_path=`$CYGPATH -u "$path"`
22890 
22891   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22892   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22893   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22894   # "foo.exe" is OK but "foo" is an error.
22895   #
22896   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22897   # It is also a way to make sure we got the proper file name for the real test later on.
22898   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22899   if test "x$test_shortpath" = x; then
22900     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22901 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22902     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22903   fi
22904 
22905   # Call helper function which possibly converts this using DOS-style short mode.
22906   # If so, the updated path is stored in $new_path.
22907 
22908   input_path="$new_path"
22909   # Check if we need to convert this using DOS-style short mode. If the path
22910   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22911   # take no chances and rewrite it.
22912   # Note: m4 eats our [], so we need to use [ and ] instead.
22913   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22914   if test "x$has_forbidden_chars" != x; then
22915     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22916     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22917     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22918     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22919       # Going to short mode and back again did indeed matter. Since short mode is
22920       # case insensitive, let's make it lowercase to improve readability.
22921       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22922       # Now convert it back to Unix-stile (cygpath)
22923       input_path=`$CYGPATH -u "$shortmode_path"`
22924       new_path="$input_path"
22925     fi
22926   fi
22927 
22928   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22929   if test "x$test_cygdrive_prefix" = x; then
22930     # As a simple fix, exclude /usr/bin since it's not a real path.
22931     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22932       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22933       # a path prefixed by /cygdrive for fixpath to work.
22934       new_path="$CYGWIN_ROOT_PATH$input_path"
22935     fi
22936   fi
22937 
22938 
22939   if test "x$path" != "x$new_path"; then
22940     BOOT_JDK="$new_path"
22941     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22942 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22943   fi
22944 
22945   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22946 
22947   path="$BOOT_JDK"
22948   has_colon=`$ECHO $path | $GREP ^.:`
22949   new_path="$path"
22950   if test "x$has_colon" = x; then
22951     # Not in mixed or Windows style, start by that.
22952     new_path=`cmd //c echo $path`
22953   fi
22954 
22955 
22956   input_path="$new_path"
22957   # Check if we need to convert this using DOS-style short mode. If the path
22958   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22959   # take no chances and rewrite it.
22960   # Note: m4 eats our [], so we need to use [ and ] instead.
22961   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22962   if test "x$has_forbidden_chars" != x; then
22963     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22964     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22965   fi
22966 
22967 
22968   windows_path="$new_path"
22969   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22970     unix_path=`$CYGPATH -u "$windows_path"`
22971     new_path="$unix_path"
22972   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22973     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22974     new_path="$unix_path"
22975   fi
22976 
22977   if test "x$path" != "x$new_path"; then
22978     BOOT_JDK="$new_path"
22979     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22980 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22981   fi
22982 
22983   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22984   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22985 
22986   else
22987     # We're on a posix platform. Hooray! :)
22988     path="$BOOT_JDK"
22989     has_space=`$ECHO "$path" | $GREP " "`
22990     if test "x$has_space" != x; then
22991       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22992 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22993       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22994     fi
22995 
22996     # Use eval to expand a potential ~
22997     eval path="$path"
22998     if test ! -f "$path" && test ! -d "$path"; then
22999       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23000     fi
23001 
23002     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23003   fi
23004 
23005               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23006 $as_echo_n "checking for Boot JDK... " >&6; }
23007               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23008 $as_echo "$BOOT_JDK" >&6; }
23009               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23010 $as_echo_n "checking Boot JDK version... " >&6; }
23011               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23012               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23013 $as_echo "$BOOT_JDK_VERSION" >&6; }
23014             fi # end check jdk version
23015           fi # end check rt.jar
23016         fi # end check javac
23017       fi # end check java
23018     fi # end check boot jdk found
23019   fi
23020 
23021     done
23022   fi
23023 
23024   fi
23025 
23026 
23027     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23028     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23029       # Do we have a bin/java?
23030       if test ! -x "$BOOT_JDK/bin/java"; then
23031         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23032 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23033         BOOT_JDK_FOUND=no
23034       else
23035         # Do we have a bin/javac?
23036         if test ! -x "$BOOT_JDK/bin/javac"; then
23037           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23039           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23040 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23041           BOOT_JDK_FOUND=no
23042         else
23043           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23044           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23045             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23046 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23047             BOOT_JDK_FOUND=no
23048           else
23049             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23050             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23051 
23052             # Extra M4 quote needed to protect [] in grep expression.
23053             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23054             if test "x$FOUND_CORRECT_VERSION" = x; then
23055               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23056 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23057               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23058 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23059               BOOT_JDK_FOUND=no
23060             else
23061               # We're done! :-)
23062               BOOT_JDK_FOUND=yes
23063 
23064   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23065 
23066   # Input might be given as Windows format, start by converting to
23067   # unix format.
23068   path="$BOOT_JDK"
23069   new_path=`$CYGPATH -u "$path"`
23070 
23071   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23072   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23073   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23074   # "foo.exe" is OK but "foo" is an error.
23075   #
23076   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23077   # It is also a way to make sure we got the proper file name for the real test later on.
23078   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23079   if test "x$test_shortpath" = x; then
23080     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23081 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23082     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23083   fi
23084 
23085   # Call helper function which possibly converts this using DOS-style short mode.
23086   # If so, the updated path is stored in $new_path.
23087 
23088   input_path="$new_path"
23089   # Check if we need to convert this using DOS-style short mode. If the path
23090   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23091   # take no chances and rewrite it.
23092   # Note: m4 eats our [], so we need to use [ and ] instead.
23093   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23094   if test "x$has_forbidden_chars" != x; then
23095     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23096     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23097     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23098     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23099       # Going to short mode and back again did indeed matter. Since short mode is
23100       # case insensitive, let's make it lowercase to improve readability.
23101       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23102       # Now convert it back to Unix-stile (cygpath)
23103       input_path=`$CYGPATH -u "$shortmode_path"`
23104       new_path="$input_path"
23105     fi
23106   fi
23107 
23108   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23109   if test "x$test_cygdrive_prefix" = x; then
23110     # As a simple fix, exclude /usr/bin since it's not a real path.
23111     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23112       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23113       # a path prefixed by /cygdrive for fixpath to work.
23114       new_path="$CYGWIN_ROOT_PATH$input_path"
23115     fi
23116   fi
23117 
23118 
23119   if test "x$path" != "x$new_path"; then
23120     BOOT_JDK="$new_path"
23121     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23122 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23123   fi
23124 
23125   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23126 
23127   path="$BOOT_JDK"
23128   has_colon=`$ECHO $path | $GREP ^.:`
23129   new_path="$path"
23130   if test "x$has_colon" = x; then
23131     # Not in mixed or Windows style, start by that.
23132     new_path=`cmd //c echo $path`
23133   fi
23134 
23135 
23136   input_path="$new_path"
23137   # Check if we need to convert this using DOS-style short mode. If the path
23138   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23139   # take no chances and rewrite it.
23140   # Note: m4 eats our [], so we need to use [ and ] instead.
23141   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23142   if test "x$has_forbidden_chars" != x; then
23143     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23144     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23145   fi
23146 
23147 
23148   windows_path="$new_path"
23149   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23150     unix_path=`$CYGPATH -u "$windows_path"`
23151     new_path="$unix_path"
23152   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23153     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23154     new_path="$unix_path"
23155   fi
23156 
23157   if test "x$path" != "x$new_path"; then
23158     BOOT_JDK="$new_path"
23159     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23160 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23161   fi
23162 
23163   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23164   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23165 
23166   else
23167     # We're on a posix platform. Hooray! :)
23168     path="$BOOT_JDK"
23169     has_space=`$ECHO "$path" | $GREP " "`
23170     if test "x$has_space" != x; then
23171       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23172 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23173       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23174     fi
23175 
23176     # Use eval to expand a potential ~
23177     eval path="$path"
23178     if test ! -f "$path" && test ! -d "$path"; then
23179       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23180     fi
23181 
23182     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23183   fi
23184 
23185               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23186 $as_echo_n "checking for Boot JDK... " >&6; }
23187               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23188 $as_echo "$BOOT_JDK" >&6; }
23189               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23190 $as_echo_n "checking Boot JDK version... " >&6; }
23191               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23192               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23193 $as_echo "$BOOT_JDK_VERSION" >&6; }
23194             fi # end check jdk version
23195           fi # end check rt.jar
23196         fi # end check javac
23197       fi # end check java
23198     fi # end check boot jdk found
23199   fi
23200 
23201 
23202   if test "x$BOOT_JDK_FOUND" = xno; then
23203     # Now execute the test
23204 
23205   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23206   BOOT_JDK_SUFFIX=""
23207   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23208   if test "x$ALL_JDKS_FOUND" != x; then
23209     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23210 
23211   if test "x$BOOT_JDK_FOUND" = xno; then
23212     # Now execute the test
23213 
23214         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23215         if test -d "$BOOT_JDK"; then
23216           BOOT_JDK_FOUND=maybe
23217           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23218 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23219         fi
23220 
23221 
23222     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23223     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23224       # Do we have a bin/java?
23225       if test ! -x "$BOOT_JDK/bin/java"; then
23226         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23227 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23228         BOOT_JDK_FOUND=no
23229       else
23230         # Do we have a bin/javac?
23231         if test ! -x "$BOOT_JDK/bin/javac"; then
23232           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23233 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23234           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23235 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23236           BOOT_JDK_FOUND=no
23237         else
23238           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23239           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23240             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23242             BOOT_JDK_FOUND=no
23243           else
23244             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23245             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23246 
23247             # Extra M4 quote needed to protect [] in grep expression.
23248             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23249             if test "x$FOUND_CORRECT_VERSION" = x; then
23250               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23251 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23252               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23253 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23254               BOOT_JDK_FOUND=no
23255             else
23256               # We're done! :-)
23257               BOOT_JDK_FOUND=yes
23258 
23259   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23260 
23261   # Input might be given as Windows format, start by converting to
23262   # unix format.
23263   path="$BOOT_JDK"
23264   new_path=`$CYGPATH -u "$path"`
23265 
23266   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23267   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23268   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23269   # "foo.exe" is OK but "foo" is an error.
23270   #
23271   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23272   # It is also a way to make sure we got the proper file name for the real test later on.
23273   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23274   if test "x$test_shortpath" = x; then
23275     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23276 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23277     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23278   fi
23279 
23280   # Call helper function which possibly converts this using DOS-style short mode.
23281   # If so, the updated path is stored in $new_path.
23282 
23283   input_path="$new_path"
23284   # Check if we need to convert this using DOS-style short mode. If the path
23285   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23286   # take no chances and rewrite it.
23287   # Note: m4 eats our [], so we need to use [ and ] instead.
23288   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23289   if test "x$has_forbidden_chars" != x; then
23290     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23291     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23292     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23293     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23294       # Going to short mode and back again did indeed matter. Since short mode is
23295       # case insensitive, let's make it lowercase to improve readability.
23296       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23297       # Now convert it back to Unix-stile (cygpath)
23298       input_path=`$CYGPATH -u "$shortmode_path"`
23299       new_path="$input_path"
23300     fi
23301   fi
23302 
23303   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23304   if test "x$test_cygdrive_prefix" = x; then
23305     # As a simple fix, exclude /usr/bin since it's not a real path.
23306     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23307       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23308       # a path prefixed by /cygdrive for fixpath to work.
23309       new_path="$CYGWIN_ROOT_PATH$input_path"
23310     fi
23311   fi
23312 
23313 
23314   if test "x$path" != "x$new_path"; then
23315     BOOT_JDK="$new_path"
23316     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23317 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23318   fi
23319 
23320   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23321 
23322   path="$BOOT_JDK"
23323   has_colon=`$ECHO $path | $GREP ^.:`
23324   new_path="$path"
23325   if test "x$has_colon" = x; then
23326     # Not in mixed or Windows style, start by that.
23327     new_path=`cmd //c echo $path`
23328   fi
23329 
23330 
23331   input_path="$new_path"
23332   # Check if we need to convert this using DOS-style short mode. If the path
23333   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23334   # take no chances and rewrite it.
23335   # Note: m4 eats our [], so we need to use [ and ] instead.
23336   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23337   if test "x$has_forbidden_chars" != x; then
23338     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23339     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23340   fi
23341 
23342 
23343   windows_path="$new_path"
23344   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23345     unix_path=`$CYGPATH -u "$windows_path"`
23346     new_path="$unix_path"
23347   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23348     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23349     new_path="$unix_path"
23350   fi
23351 
23352   if test "x$path" != "x$new_path"; then
23353     BOOT_JDK="$new_path"
23354     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23355 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23356   fi
23357 
23358   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23359   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23360 
23361   else
23362     # We're on a posix platform. Hooray! :)
23363     path="$BOOT_JDK"
23364     has_space=`$ECHO "$path" | $GREP " "`
23365     if test "x$has_space" != x; then
23366       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23367 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23368       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23369     fi
23370 
23371     # Use eval to expand a potential ~
23372     eval path="$path"
23373     if test ! -f "$path" && test ! -d "$path"; then
23374       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23375     fi
23376 
23377     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23378   fi
23379 
23380               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23381 $as_echo_n "checking for Boot JDK... " >&6; }
23382               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23383 $as_echo "$BOOT_JDK" >&6; }
23384               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23385 $as_echo_n "checking Boot JDK version... " >&6; }
23386               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23387               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23388 $as_echo "$BOOT_JDK_VERSION" >&6; }
23389             fi # end check jdk version
23390           fi # end check rt.jar
23391         fi # end check javac
23392       fi # end check java
23393     fi # end check boot jdk found
23394   fi
23395 
23396     done
23397   fi
23398 
23399 
23400     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23401     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23402       # Do we have a bin/java?
23403       if test ! -x "$BOOT_JDK/bin/java"; then
23404         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23405 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23406         BOOT_JDK_FOUND=no
23407       else
23408         # Do we have a bin/javac?
23409         if test ! -x "$BOOT_JDK/bin/javac"; then
23410           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23412           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23413 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23414           BOOT_JDK_FOUND=no
23415         else
23416           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23417           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23418             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23419 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23420             BOOT_JDK_FOUND=no
23421           else
23422             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23423             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23424 
23425             # Extra M4 quote needed to protect [] in grep expression.
23426             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23427             if test "x$FOUND_CORRECT_VERSION" = x; then
23428               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23430               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23431 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23432               BOOT_JDK_FOUND=no
23433             else
23434               # We're done! :-)
23435               BOOT_JDK_FOUND=yes
23436 
23437   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23438 
23439   # Input might be given as Windows format, start by converting to
23440   # unix format.
23441   path="$BOOT_JDK"
23442   new_path=`$CYGPATH -u "$path"`
23443 
23444   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23445   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23446   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23447   # "foo.exe" is OK but "foo" is an error.
23448   #
23449   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23450   # It is also a way to make sure we got the proper file name for the real test later on.
23451   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23452   if test "x$test_shortpath" = x; then
23453     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23454 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23455     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23456   fi
23457 
23458   # Call helper function which possibly converts this using DOS-style short mode.
23459   # If so, the updated path is stored in $new_path.
23460 
23461   input_path="$new_path"
23462   # Check if we need to convert this using DOS-style short mode. If the path
23463   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23464   # take no chances and rewrite it.
23465   # Note: m4 eats our [], so we need to use [ and ] instead.
23466   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23467   if test "x$has_forbidden_chars" != x; then
23468     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23469     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23470     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23471     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23472       # Going to short mode and back again did indeed matter. Since short mode is
23473       # case insensitive, let's make it lowercase to improve readability.
23474       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23475       # Now convert it back to Unix-stile (cygpath)
23476       input_path=`$CYGPATH -u "$shortmode_path"`
23477       new_path="$input_path"
23478     fi
23479   fi
23480 
23481   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23482   if test "x$test_cygdrive_prefix" = x; then
23483     # As a simple fix, exclude /usr/bin since it's not a real path.
23484     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23485       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23486       # a path prefixed by /cygdrive for fixpath to work.
23487       new_path="$CYGWIN_ROOT_PATH$input_path"
23488     fi
23489   fi
23490 
23491 
23492   if test "x$path" != "x$new_path"; then
23493     BOOT_JDK="$new_path"
23494     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23495 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23496   fi
23497 
23498   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23499 
23500   path="$BOOT_JDK"
23501   has_colon=`$ECHO $path | $GREP ^.:`
23502   new_path="$path"
23503   if test "x$has_colon" = x; then
23504     # Not in mixed or Windows style, start by that.
23505     new_path=`cmd //c echo $path`
23506   fi
23507 
23508 
23509   input_path="$new_path"
23510   # Check if we need to convert this using DOS-style short mode. If the path
23511   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23512   # take no chances and rewrite it.
23513   # Note: m4 eats our [], so we need to use [ and ] instead.
23514   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23515   if test "x$has_forbidden_chars" != x; then
23516     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23517     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23518   fi
23519 
23520 
23521   windows_path="$new_path"
23522   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23523     unix_path=`$CYGPATH -u "$windows_path"`
23524     new_path="$unix_path"
23525   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23526     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23527     new_path="$unix_path"
23528   fi
23529 
23530   if test "x$path" != "x$new_path"; then
23531     BOOT_JDK="$new_path"
23532     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23533 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23534   fi
23535 
23536   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23537   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23538 
23539   else
23540     # We're on a posix platform. Hooray! :)
23541     path="$BOOT_JDK"
23542     has_space=`$ECHO "$path" | $GREP " "`
23543     if test "x$has_space" != x; then
23544       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23545 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23546       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23547     fi
23548 
23549     # Use eval to expand a potential ~
23550     eval path="$path"
23551     if test ! -f "$path" && test ! -d "$path"; then
23552       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23553     fi
23554 
23555     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23556   fi
23557 
23558               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23559 $as_echo_n "checking for Boot JDK... " >&6; }
23560               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23561 $as_echo "$BOOT_JDK" >&6; }
23562               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23563 $as_echo_n "checking Boot JDK version... " >&6; }
23564               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23565               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23566 $as_echo "$BOOT_JDK_VERSION" >&6; }
23567             fi # end check jdk version
23568           fi # end check rt.jar
23569         fi # end check javac
23570       fi # end check java
23571     fi # end check boot jdk found
23572   fi
23573 
23574   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23575 
23576   if test "x$BOOT_JDK_FOUND" = xno; then
23577     # Now execute the test
23578 
23579   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23580   BOOT_JDK_SUFFIX="/Contents/Home"
23581   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23582   if test "x$ALL_JDKS_FOUND" != x; then
23583     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23584 
23585   if test "x$BOOT_JDK_FOUND" = xno; then
23586     # Now execute the test
23587 
23588         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23589         if test -d "$BOOT_JDK"; then
23590           BOOT_JDK_FOUND=maybe
23591           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23592 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23593         fi
23594 
23595 
23596     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23597     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23598       # Do we have a bin/java?
23599       if test ! -x "$BOOT_JDK/bin/java"; then
23600         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23601 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23602         BOOT_JDK_FOUND=no
23603       else
23604         # Do we have a bin/javac?
23605         if test ! -x "$BOOT_JDK/bin/javac"; then
23606           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23607 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23608           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23609 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23610           BOOT_JDK_FOUND=no
23611         else
23612           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23613           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23614             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23616             BOOT_JDK_FOUND=no
23617           else
23618             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23619             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23620 
23621             # Extra M4 quote needed to protect [] in grep expression.
23622             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23623             if test "x$FOUND_CORRECT_VERSION" = x; then
23624               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23626               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23627 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23628               BOOT_JDK_FOUND=no
23629             else
23630               # We're done! :-)
23631               BOOT_JDK_FOUND=yes
23632 
23633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23634 
23635   # Input might be given as Windows format, start by converting to
23636   # unix format.
23637   path="$BOOT_JDK"
23638   new_path=`$CYGPATH -u "$path"`
23639 
23640   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23641   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23642   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23643   # "foo.exe" is OK but "foo" is an error.
23644   #
23645   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23646   # It is also a way to make sure we got the proper file name for the real test later on.
23647   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23648   if test "x$test_shortpath" = x; then
23649     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23650 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23651     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23652   fi
23653 
23654   # Call helper function which possibly converts this using DOS-style short mode.
23655   # If so, the updated path is stored in $new_path.
23656 
23657   input_path="$new_path"
23658   # Check if we need to convert this using DOS-style short mode. If the path
23659   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23660   # take no chances and rewrite it.
23661   # Note: m4 eats our [], so we need to use [ and ] instead.
23662   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23663   if test "x$has_forbidden_chars" != x; then
23664     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23665     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23666     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23667     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23668       # Going to short mode and back again did indeed matter. Since short mode is
23669       # case insensitive, let's make it lowercase to improve readability.
23670       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23671       # Now convert it back to Unix-stile (cygpath)
23672       input_path=`$CYGPATH -u "$shortmode_path"`
23673       new_path="$input_path"
23674     fi
23675   fi
23676 
23677   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23678   if test "x$test_cygdrive_prefix" = x; then
23679     # As a simple fix, exclude /usr/bin since it's not a real path.
23680     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23681       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23682       # a path prefixed by /cygdrive for fixpath to work.
23683       new_path="$CYGWIN_ROOT_PATH$input_path"
23684     fi
23685   fi
23686 
23687 
23688   if test "x$path" != "x$new_path"; then
23689     BOOT_JDK="$new_path"
23690     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23691 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23692   fi
23693 
23694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23695 
23696   path="$BOOT_JDK"
23697   has_colon=`$ECHO $path | $GREP ^.:`
23698   new_path="$path"
23699   if test "x$has_colon" = x; then
23700     # Not in mixed or Windows style, start by that.
23701     new_path=`cmd //c echo $path`
23702   fi
23703 
23704 
23705   input_path="$new_path"
23706   # Check if we need to convert this using DOS-style short mode. If the path
23707   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23708   # take no chances and rewrite it.
23709   # Note: m4 eats our [], so we need to use [ and ] instead.
23710   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23711   if test "x$has_forbidden_chars" != x; then
23712     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23713     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23714   fi
23715 
23716 
23717   windows_path="$new_path"
23718   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23719     unix_path=`$CYGPATH -u "$windows_path"`
23720     new_path="$unix_path"
23721   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23722     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23723     new_path="$unix_path"
23724   fi
23725 
23726   if test "x$path" != "x$new_path"; then
23727     BOOT_JDK="$new_path"
23728     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23729 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23730   fi
23731 
23732   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23733   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23734 
23735   else
23736     # We're on a posix platform. Hooray! :)
23737     path="$BOOT_JDK"
23738     has_space=`$ECHO "$path" | $GREP " "`
23739     if test "x$has_space" != x; then
23740       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23741 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23742       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23743     fi
23744 
23745     # Use eval to expand a potential ~
23746     eval path="$path"
23747     if test ! -f "$path" && test ! -d "$path"; then
23748       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23749     fi
23750 
23751     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23752   fi
23753 
23754               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23755 $as_echo_n "checking for Boot JDK... " >&6; }
23756               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23757 $as_echo "$BOOT_JDK" >&6; }
23758               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23759 $as_echo_n "checking Boot JDK version... " >&6; }
23760               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23761               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23762 $as_echo "$BOOT_JDK_VERSION" >&6; }
23763             fi # end check jdk version
23764           fi # end check rt.jar
23765         fi # end check javac
23766       fi # end check java
23767     fi # end check boot jdk found
23768   fi
23769 
23770     done
23771   fi
23772 
23773 
23774     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23775     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23776       # Do we have a bin/java?
23777       if test ! -x "$BOOT_JDK/bin/java"; then
23778         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23779 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23780         BOOT_JDK_FOUND=no
23781       else
23782         # Do we have a bin/javac?
23783         if test ! -x "$BOOT_JDK/bin/javac"; then
23784           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23785 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23786           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23787 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23788           BOOT_JDK_FOUND=no
23789         else
23790           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23791           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23792             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23794             BOOT_JDK_FOUND=no
23795           else
23796             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23797             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23798 
23799             # Extra M4 quote needed to protect [] in grep expression.
23800             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23801             if test "x$FOUND_CORRECT_VERSION" = x; then
23802               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23803 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23804               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23805 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23806               BOOT_JDK_FOUND=no
23807             else
23808               # We're done! :-)
23809               BOOT_JDK_FOUND=yes
23810 
23811   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23812 
23813   # Input might be given as Windows format, start by converting to
23814   # unix format.
23815   path="$BOOT_JDK"
23816   new_path=`$CYGPATH -u "$path"`
23817 
23818   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23819   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23820   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23821   # "foo.exe" is OK but "foo" is an error.
23822   #
23823   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23824   # It is also a way to make sure we got the proper file name for the real test later on.
23825   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23826   if test "x$test_shortpath" = x; then
23827     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23828 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23829     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23830   fi
23831 
23832   # Call helper function which possibly converts this using DOS-style short mode.
23833   # If so, the updated path is stored in $new_path.
23834 
23835   input_path="$new_path"
23836   # Check if we need to convert this using DOS-style short mode. If the path
23837   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23838   # take no chances and rewrite it.
23839   # Note: m4 eats our [], so we need to use [ and ] instead.
23840   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23841   if test "x$has_forbidden_chars" != x; then
23842     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23843     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23844     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23845     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23846       # Going to short mode and back again did indeed matter. Since short mode is
23847       # case insensitive, let's make it lowercase to improve readability.
23848       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23849       # Now convert it back to Unix-stile (cygpath)
23850       input_path=`$CYGPATH -u "$shortmode_path"`
23851       new_path="$input_path"
23852     fi
23853   fi
23854 
23855   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23856   if test "x$test_cygdrive_prefix" = x; then
23857     # As a simple fix, exclude /usr/bin since it's not a real path.
23858     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23859       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23860       # a path prefixed by /cygdrive for fixpath to work.
23861       new_path="$CYGWIN_ROOT_PATH$input_path"
23862     fi
23863   fi
23864 
23865 
23866   if test "x$path" != "x$new_path"; then
23867     BOOT_JDK="$new_path"
23868     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23869 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23870   fi
23871 
23872   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23873 
23874   path="$BOOT_JDK"
23875   has_colon=`$ECHO $path | $GREP ^.:`
23876   new_path="$path"
23877   if test "x$has_colon" = x; then
23878     # Not in mixed or Windows style, start by that.
23879     new_path=`cmd //c echo $path`
23880   fi
23881 
23882 
23883   input_path="$new_path"
23884   # Check if we need to convert this using DOS-style short mode. If the path
23885   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23886   # take no chances and rewrite it.
23887   # Note: m4 eats our [], so we need to use [ and ] instead.
23888   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23889   if test "x$has_forbidden_chars" != x; then
23890     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23891     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23892   fi
23893 
23894 
23895   windows_path="$new_path"
23896   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23897     unix_path=`$CYGPATH -u "$windows_path"`
23898     new_path="$unix_path"
23899   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23900     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23901     new_path="$unix_path"
23902   fi
23903 
23904   if test "x$path" != "x$new_path"; then
23905     BOOT_JDK="$new_path"
23906     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23907 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23908   fi
23909 
23910   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23911   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23912 
23913   else
23914     # We're on a posix platform. Hooray! :)
23915     path="$BOOT_JDK"
23916     has_space=`$ECHO "$path" | $GREP " "`
23917     if test "x$has_space" != x; then
23918       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23919 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23920       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23921     fi
23922 
23923     # Use eval to expand a potential ~
23924     eval path="$path"
23925     if test ! -f "$path" && test ! -d "$path"; then
23926       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23927     fi
23928 
23929     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23930   fi
23931 
23932               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23933 $as_echo_n "checking for Boot JDK... " >&6; }
23934               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23935 $as_echo "$BOOT_JDK" >&6; }
23936               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23937 $as_echo_n "checking Boot JDK version... " >&6; }
23938               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23939               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23940 $as_echo "$BOOT_JDK_VERSION" >&6; }
23941             fi # end check jdk version
23942           fi # end check rt.jar
23943         fi # end check javac
23944       fi # end check java
23945     fi # end check boot jdk found
23946   fi
23947 
23948 
23949   if test "x$BOOT_JDK_FOUND" = xno; then
23950     # Now execute the test
23951 
23952   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23953   BOOT_JDK_SUFFIX="/Contents/Home"
23954   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23955   if test "x$ALL_JDKS_FOUND" != x; then
23956     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23957 
23958   if test "x$BOOT_JDK_FOUND" = xno; then
23959     # Now execute the test
23960 
23961         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23962         if test -d "$BOOT_JDK"; then
23963           BOOT_JDK_FOUND=maybe
23964           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23965 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23966         fi
23967 
23968 
23969     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23970     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23971       # Do we have a bin/java?
23972       if test ! -x "$BOOT_JDK/bin/java"; then
23973         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23974 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23975         BOOT_JDK_FOUND=no
23976       else
23977         # Do we have a bin/javac?
23978         if test ! -x "$BOOT_JDK/bin/javac"; then
23979           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23980 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23981           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23982 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23983           BOOT_JDK_FOUND=no
23984         else
23985           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23986           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23987             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23988 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23989             BOOT_JDK_FOUND=no
23990           else
23991             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23992             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23993 
23994             # Extra M4 quote needed to protect [] in grep expression.
23995             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23996             if test "x$FOUND_CORRECT_VERSION" = x; then
23997               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23999               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24000 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24001               BOOT_JDK_FOUND=no
24002             else
24003               # We're done! :-)
24004               BOOT_JDK_FOUND=yes
24005 
24006   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24007 
24008   # Input might be given as Windows format, start by converting to
24009   # unix format.
24010   path="$BOOT_JDK"
24011   new_path=`$CYGPATH -u "$path"`
24012 
24013   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24014   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24015   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24016   # "foo.exe" is OK but "foo" is an error.
24017   #
24018   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24019   # It is also a way to make sure we got the proper file name for the real test later on.
24020   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24021   if test "x$test_shortpath" = x; then
24022     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24023 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24024     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24025   fi
24026 
24027   # Call helper function which possibly converts this using DOS-style short mode.
24028   # If so, the updated path is stored in $new_path.
24029 
24030   input_path="$new_path"
24031   # Check if we need to convert this using DOS-style short mode. If the path
24032   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24033   # take no chances and rewrite it.
24034   # Note: m4 eats our [], so we need to use [ and ] instead.
24035   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24036   if test "x$has_forbidden_chars" != x; then
24037     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24038     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24039     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24040     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24041       # Going to short mode and back again did indeed matter. Since short mode is
24042       # case insensitive, let's make it lowercase to improve readability.
24043       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24044       # Now convert it back to Unix-stile (cygpath)
24045       input_path=`$CYGPATH -u "$shortmode_path"`
24046       new_path="$input_path"
24047     fi
24048   fi
24049 
24050   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24051   if test "x$test_cygdrive_prefix" = x; then
24052     # As a simple fix, exclude /usr/bin since it's not a real path.
24053     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24054       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24055       # a path prefixed by /cygdrive for fixpath to work.
24056       new_path="$CYGWIN_ROOT_PATH$input_path"
24057     fi
24058   fi
24059 
24060 
24061   if test "x$path" != "x$new_path"; then
24062     BOOT_JDK="$new_path"
24063     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24064 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24065   fi
24066 
24067   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24068 
24069   path="$BOOT_JDK"
24070   has_colon=`$ECHO $path | $GREP ^.:`
24071   new_path="$path"
24072   if test "x$has_colon" = x; then
24073     # Not in mixed or Windows style, start by that.
24074     new_path=`cmd //c echo $path`
24075   fi
24076 
24077 
24078   input_path="$new_path"
24079   # Check if we need to convert this using DOS-style short mode. If the path
24080   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24081   # take no chances and rewrite it.
24082   # Note: m4 eats our [], so we need to use [ and ] instead.
24083   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24084   if test "x$has_forbidden_chars" != x; then
24085     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24086     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24087   fi
24088 
24089 
24090   windows_path="$new_path"
24091   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24092     unix_path=`$CYGPATH -u "$windows_path"`
24093     new_path="$unix_path"
24094   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24095     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24096     new_path="$unix_path"
24097   fi
24098 
24099   if test "x$path" != "x$new_path"; then
24100     BOOT_JDK="$new_path"
24101     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24102 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24103   fi
24104 
24105   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24106   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24107 
24108   else
24109     # We're on a posix platform. Hooray! :)
24110     path="$BOOT_JDK"
24111     has_space=`$ECHO "$path" | $GREP " "`
24112     if test "x$has_space" != x; then
24113       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24114 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24115       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24116     fi
24117 
24118     # Use eval to expand a potential ~
24119     eval path="$path"
24120     if test ! -f "$path" && test ! -d "$path"; then
24121       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24122     fi
24123 
24124     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24125   fi
24126 
24127               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24128 $as_echo_n "checking for Boot JDK... " >&6; }
24129               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24130 $as_echo "$BOOT_JDK" >&6; }
24131               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24132 $as_echo_n "checking Boot JDK version... " >&6; }
24133               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24134               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24135 $as_echo "$BOOT_JDK_VERSION" >&6; }
24136             fi # end check jdk version
24137           fi # end check rt.jar
24138         fi # end check javac
24139       fi # end check java
24140     fi # end check boot jdk found
24141   fi
24142 
24143     done
24144   fi
24145 
24146 
24147     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24148     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24149       # Do we have a bin/java?
24150       if test ! -x "$BOOT_JDK/bin/java"; then
24151         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24152 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24153         BOOT_JDK_FOUND=no
24154       else
24155         # Do we have a bin/javac?
24156         if test ! -x "$BOOT_JDK/bin/javac"; then
24157           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24158 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24159           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24160 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24161           BOOT_JDK_FOUND=no
24162         else
24163           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24164           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24165             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24166 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24167             BOOT_JDK_FOUND=no
24168           else
24169             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24170             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24171 
24172             # Extra M4 quote needed to protect [] in grep expression.
24173             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24174             if test "x$FOUND_CORRECT_VERSION" = x; then
24175               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24176 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24177               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24178 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24179               BOOT_JDK_FOUND=no
24180             else
24181               # We're done! :-)
24182               BOOT_JDK_FOUND=yes
24183 
24184   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24185 
24186   # Input might be given as Windows format, start by converting to
24187   # unix format.
24188   path="$BOOT_JDK"
24189   new_path=`$CYGPATH -u "$path"`
24190 
24191   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24192   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24193   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24194   # "foo.exe" is OK but "foo" is an error.
24195   #
24196   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24197   # It is also a way to make sure we got the proper file name for the real test later on.
24198   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24199   if test "x$test_shortpath" = x; then
24200     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24201 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24202     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24203   fi
24204 
24205   # Call helper function which possibly converts this using DOS-style short mode.
24206   # If so, the updated path is stored in $new_path.
24207 
24208   input_path="$new_path"
24209   # Check if we need to convert this using DOS-style short mode. If the path
24210   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24211   # take no chances and rewrite it.
24212   # Note: m4 eats our [], so we need to use [ and ] instead.
24213   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24214   if test "x$has_forbidden_chars" != x; then
24215     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24216     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24217     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24218     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24219       # Going to short mode and back again did indeed matter. Since short mode is
24220       # case insensitive, let's make it lowercase to improve readability.
24221       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24222       # Now convert it back to Unix-stile (cygpath)
24223       input_path=`$CYGPATH -u "$shortmode_path"`
24224       new_path="$input_path"
24225     fi
24226   fi
24227 
24228   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24229   if test "x$test_cygdrive_prefix" = x; then
24230     # As a simple fix, exclude /usr/bin since it's not a real path.
24231     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24232       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24233       # a path prefixed by /cygdrive for fixpath to work.
24234       new_path="$CYGWIN_ROOT_PATH$input_path"
24235     fi
24236   fi
24237 
24238 
24239   if test "x$path" != "x$new_path"; then
24240     BOOT_JDK="$new_path"
24241     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24242 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24243   fi
24244 
24245   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24246 
24247   path="$BOOT_JDK"
24248   has_colon=`$ECHO $path | $GREP ^.:`
24249   new_path="$path"
24250   if test "x$has_colon" = x; then
24251     # Not in mixed or Windows style, start by that.
24252     new_path=`cmd //c echo $path`
24253   fi
24254 
24255 
24256   input_path="$new_path"
24257   # Check if we need to convert this using DOS-style short mode. If the path
24258   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24259   # take no chances and rewrite it.
24260   # Note: m4 eats our [], so we need to use [ and ] instead.
24261   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24262   if test "x$has_forbidden_chars" != x; then
24263     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24264     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24265   fi
24266 
24267 
24268   windows_path="$new_path"
24269   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24270     unix_path=`$CYGPATH -u "$windows_path"`
24271     new_path="$unix_path"
24272   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24273     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24274     new_path="$unix_path"
24275   fi
24276 
24277   if test "x$path" != "x$new_path"; then
24278     BOOT_JDK="$new_path"
24279     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24280 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24281   fi
24282 
24283   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24284   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24285 
24286   else
24287     # We're on a posix platform. Hooray! :)
24288     path="$BOOT_JDK"
24289     has_space=`$ECHO "$path" | $GREP " "`
24290     if test "x$has_space" != x; then
24291       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24292 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24293       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24294     fi
24295 
24296     # Use eval to expand a potential ~
24297     eval path="$path"
24298     if test ! -f "$path" && test ! -d "$path"; then
24299       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24300     fi
24301 
24302     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24303   fi
24304 
24305               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24306 $as_echo_n "checking for Boot JDK... " >&6; }
24307               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24308 $as_echo "$BOOT_JDK" >&6; }
24309               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24310 $as_echo_n "checking Boot JDK version... " >&6; }
24311               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24312               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24313 $as_echo "$BOOT_JDK_VERSION" >&6; }
24314             fi # end check jdk version
24315           fi # end check rt.jar
24316         fi # end check javac
24317       fi # end check java
24318     fi # end check boot jdk found
24319   fi
24320 
24321   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24322 
24323   if test "x$BOOT_JDK_FOUND" = xno; then
24324     # Now execute the test
24325 
24326   BOOT_JDK_PREFIX="/usr/lib/jvm"
24327   BOOT_JDK_SUFFIX=""
24328   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24329   if test "x$ALL_JDKS_FOUND" != x; then
24330     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24331 
24332   if test "x$BOOT_JDK_FOUND" = xno; then
24333     # Now execute the test
24334 
24335         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24336         if test -d "$BOOT_JDK"; then
24337           BOOT_JDK_FOUND=maybe
24338           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24339 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24340         fi
24341 
24342 
24343     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24344     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24345       # Do we have a bin/java?
24346       if test ! -x "$BOOT_JDK/bin/java"; then
24347         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24348 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24349         BOOT_JDK_FOUND=no
24350       else
24351         # Do we have a bin/javac?
24352         if test ! -x "$BOOT_JDK/bin/javac"; then
24353           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24354 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24355           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24356 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24357           BOOT_JDK_FOUND=no
24358         else
24359           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24360           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24361             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24362 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24363             BOOT_JDK_FOUND=no
24364           else
24365             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24366             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24367 
24368             # Extra M4 quote needed to protect [] in grep expression.
24369             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24370             if test "x$FOUND_CORRECT_VERSION" = x; then
24371               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24372 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24373               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24374 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24375               BOOT_JDK_FOUND=no
24376             else
24377               # We're done! :-)
24378               BOOT_JDK_FOUND=yes
24379 
24380   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24381 
24382   # Input might be given as Windows format, start by converting to
24383   # unix format.
24384   path="$BOOT_JDK"
24385   new_path=`$CYGPATH -u "$path"`
24386 
24387   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24388   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24389   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24390   # "foo.exe" is OK but "foo" is an error.
24391   #
24392   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24393   # It is also a way to make sure we got the proper file name for the real test later on.
24394   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24395   if test "x$test_shortpath" = x; then
24396     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24397 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24398     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24399   fi
24400 
24401   # Call helper function which possibly converts this using DOS-style short mode.
24402   # If so, the updated path is stored in $new_path.
24403 
24404   input_path="$new_path"
24405   # Check if we need to convert this using DOS-style short mode. If the path
24406   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24407   # take no chances and rewrite it.
24408   # Note: m4 eats our [], so we need to use [ and ] instead.
24409   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24410   if test "x$has_forbidden_chars" != x; then
24411     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24412     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24413     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24414     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24415       # Going to short mode and back again did indeed matter. Since short mode is
24416       # case insensitive, let's make it lowercase to improve readability.
24417       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24418       # Now convert it back to Unix-stile (cygpath)
24419       input_path=`$CYGPATH -u "$shortmode_path"`
24420       new_path="$input_path"
24421     fi
24422   fi
24423 
24424   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24425   if test "x$test_cygdrive_prefix" = x; then
24426     # As a simple fix, exclude /usr/bin since it's not a real path.
24427     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24428       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24429       # a path prefixed by /cygdrive for fixpath to work.
24430       new_path="$CYGWIN_ROOT_PATH$input_path"
24431     fi
24432   fi
24433 
24434 
24435   if test "x$path" != "x$new_path"; then
24436     BOOT_JDK="$new_path"
24437     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24438 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24439   fi
24440 
24441   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24442 
24443   path="$BOOT_JDK"
24444   has_colon=`$ECHO $path | $GREP ^.:`
24445   new_path="$path"
24446   if test "x$has_colon" = x; then
24447     # Not in mixed or Windows style, start by that.
24448     new_path=`cmd //c echo $path`
24449   fi
24450 
24451 
24452   input_path="$new_path"
24453   # Check if we need to convert this using DOS-style short mode. If the path
24454   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24455   # take no chances and rewrite it.
24456   # Note: m4 eats our [], so we need to use [ and ] instead.
24457   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24458   if test "x$has_forbidden_chars" != x; then
24459     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24460     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24461   fi
24462 
24463 
24464   windows_path="$new_path"
24465   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24466     unix_path=`$CYGPATH -u "$windows_path"`
24467     new_path="$unix_path"
24468   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24469     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24470     new_path="$unix_path"
24471   fi
24472 
24473   if test "x$path" != "x$new_path"; then
24474     BOOT_JDK="$new_path"
24475     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24476 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24477   fi
24478 
24479   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24480   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24481 
24482   else
24483     # We're on a posix platform. Hooray! :)
24484     path="$BOOT_JDK"
24485     has_space=`$ECHO "$path" | $GREP " "`
24486     if test "x$has_space" != x; then
24487       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24488 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24489       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24490     fi
24491 
24492     # Use eval to expand a potential ~
24493     eval path="$path"
24494     if test ! -f "$path" && test ! -d "$path"; then
24495       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24496     fi
24497 
24498     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24499   fi
24500 
24501               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24502 $as_echo_n "checking for Boot JDK... " >&6; }
24503               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24504 $as_echo "$BOOT_JDK" >&6; }
24505               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24506 $as_echo_n "checking Boot JDK version... " >&6; }
24507               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24508               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24509 $as_echo "$BOOT_JDK_VERSION" >&6; }
24510             fi # end check jdk version
24511           fi # end check rt.jar
24512         fi # end check javac
24513       fi # end check java
24514     fi # end check boot jdk found
24515   fi
24516 
24517     done
24518   fi
24519 
24520 
24521     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24522     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24523       # Do we have a bin/java?
24524       if test ! -x "$BOOT_JDK/bin/java"; then
24525         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24526 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24527         BOOT_JDK_FOUND=no
24528       else
24529         # Do we have a bin/javac?
24530         if test ! -x "$BOOT_JDK/bin/javac"; then
24531           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24532 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24533           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24534 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24535           BOOT_JDK_FOUND=no
24536         else
24537           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24538           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24539             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24540 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24541             BOOT_JDK_FOUND=no
24542           else
24543             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24544             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24545 
24546             # Extra M4 quote needed to protect [] in grep expression.
24547             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24548             if test "x$FOUND_CORRECT_VERSION" = x; then
24549               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24551               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24552 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24553               BOOT_JDK_FOUND=no
24554             else
24555               # We're done! :-)
24556               BOOT_JDK_FOUND=yes
24557 
24558   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24559 
24560   # Input might be given as Windows format, start by converting to
24561   # unix format.
24562   path="$BOOT_JDK"
24563   new_path=`$CYGPATH -u "$path"`
24564 
24565   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24566   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24567   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24568   # "foo.exe" is OK but "foo" is an error.
24569   #
24570   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24571   # It is also a way to make sure we got the proper file name for the real test later on.
24572   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24573   if test "x$test_shortpath" = x; then
24574     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24575 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24576     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24577   fi
24578 
24579   # Call helper function which possibly converts this using DOS-style short mode.
24580   # If so, the updated path is stored in $new_path.
24581 
24582   input_path="$new_path"
24583   # Check if we need to convert this using DOS-style short mode. If the path
24584   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24585   # take no chances and rewrite it.
24586   # Note: m4 eats our [], so we need to use [ and ] instead.
24587   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24588   if test "x$has_forbidden_chars" != x; then
24589     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24590     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24591     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24592     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24593       # Going to short mode and back again did indeed matter. Since short mode is
24594       # case insensitive, let's make it lowercase to improve readability.
24595       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24596       # Now convert it back to Unix-stile (cygpath)
24597       input_path=`$CYGPATH -u "$shortmode_path"`
24598       new_path="$input_path"
24599     fi
24600   fi
24601 
24602   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24603   if test "x$test_cygdrive_prefix" = x; then
24604     # As a simple fix, exclude /usr/bin since it's not a real path.
24605     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24606       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24607       # a path prefixed by /cygdrive for fixpath to work.
24608       new_path="$CYGWIN_ROOT_PATH$input_path"
24609     fi
24610   fi
24611 
24612 
24613   if test "x$path" != "x$new_path"; then
24614     BOOT_JDK="$new_path"
24615     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24616 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24617   fi
24618 
24619   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24620 
24621   path="$BOOT_JDK"
24622   has_colon=`$ECHO $path | $GREP ^.:`
24623   new_path="$path"
24624   if test "x$has_colon" = x; then
24625     # Not in mixed or Windows style, start by that.
24626     new_path=`cmd //c echo $path`
24627   fi
24628 
24629 
24630   input_path="$new_path"
24631   # Check if we need to convert this using DOS-style short mode. If the path
24632   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24633   # take no chances and rewrite it.
24634   # Note: m4 eats our [], so we need to use [ and ] instead.
24635   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24636   if test "x$has_forbidden_chars" != x; then
24637     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24638     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24639   fi
24640 
24641 
24642   windows_path="$new_path"
24643   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24644     unix_path=`$CYGPATH -u "$windows_path"`
24645     new_path="$unix_path"
24646   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24647     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24648     new_path="$unix_path"
24649   fi
24650 
24651   if test "x$path" != "x$new_path"; then
24652     BOOT_JDK="$new_path"
24653     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24654 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24655   fi
24656 
24657   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24658   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24659 
24660   else
24661     # We're on a posix platform. Hooray! :)
24662     path="$BOOT_JDK"
24663     has_space=`$ECHO "$path" | $GREP " "`
24664     if test "x$has_space" != x; then
24665       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24666 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24667       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24668     fi
24669 
24670     # Use eval to expand a potential ~
24671     eval path="$path"
24672     if test ! -f "$path" && test ! -d "$path"; then
24673       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24674     fi
24675 
24676     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24677   fi
24678 
24679               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24680 $as_echo_n "checking for Boot JDK... " >&6; }
24681               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24682 $as_echo "$BOOT_JDK" >&6; }
24683               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24684 $as_echo_n "checking Boot JDK version... " >&6; }
24685               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24686               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24687 $as_echo "$BOOT_JDK_VERSION" >&6; }
24688             fi