1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk8'
 590 PACKAGE_STRING='OpenJDK jdk8'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 UCRT_DLL_DIR
 644 MSVCP_DLL
 645 MSVCR_DLL
 646 LIBCXX
 647 LLVM_LIBS
 648 LLVM_LDFLAGS
 649 LLVM_CFLAGS
 650 LLVM_CONFIG
 651 LIBFFI_LIBS
 652 LIBFFI_CFLAGS
 653 STATIC_CXX_SETTING
 654 LIBDL
 655 LIBM
 656 LIBZIP_CAN_USE_MMAP
 657 USE_EXTERNAL_LIBZ
 658 USE_EXTERNAL_LIBGIF
 659 USE_EXTERNAL_LIBJPEG
 660 FONTCONFIG_CFLAGS
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 X_EXTRA_LIBS
 668 X_LIBS
 669 X_PRE_LIBS
 670 X_CFLAGS
 671 XMKMF
 672 FIXPATH
 673 ZIP_DEBUGINFO_FILES
 674 DEBUG_BINARIES
 675 STRIP_POLICY
 676 ENABLE_DEBUG_SYMBOLS
 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 678 ZERO_ARCHFLAG
 679 LDFLAGS_CXX_JDK
 680 LDFLAGS_JDKEXE_SUFFIX
 681 LDFLAGS_JDKLIB_SUFFIX
 682 LDFLAGS_JDKEXE
 683 LDFLAGS_JDKLIB
 684 CXXFLAGS_JDKEXE
 685 CXXFLAGS_JDKLIB
 686 CFLAGS_JDKEXE
 687 CFLAGS_JDKLIB
 688 MACOSX_VERSION_MIN
 689 FDLIBM_CFLAGS
 690 NO_LIFETIME_DSE_CFLAG
 691 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 692 LEGACY_EXTRA_LDFLAGS
 693 LEGACY_EXTRA_CXXFLAGS
 694 LEGACY_EXTRA_CFLAGS
 695 CXXSTD_CXXFLAG
 696 CXX_O_FLAG_NONE
 697 CXX_O_FLAG_NORM
 698 CXX_O_FLAG_HI
 699 CXX_O_FLAG_HIGHEST
 700 C_O_FLAG_NONE
 701 C_O_FLAG_NORM
 702 C_O_FLAG_HI
 703 C_O_FLAG_HIGHEST
 704 CXXFLAGS_DEBUG_SYMBOLS
 705 CFLAGS_DEBUG_SYMBOLS
 706 ASFLAGS_DEBUG_SYMBOLS
 707 CXX_FLAG_DEPS
 708 C_FLAG_DEPS
 709 SET_SHARED_LIBRARY_MAPFILE
 710 SET_SHARED_LIBRARY_NAME
 711 SET_SHARED_LIBRARY_ORIGIN
 712 SET_EXECUTABLE_ORIGIN
 713 SHARED_LIBRARY_FLAGS
 714 CXX_FLAG_REORDER
 715 C_FLAG_REORDER
 716 SYSROOT_LDFLAGS
 717 SYSROOT_CFLAGS
 718 RC_FLAGS
 719 AR_OUT_OPTION
 720 LD_OUT_OPTION
 721 EXE_OUT_OPTION
 722 CC_OUT_OPTION
 723 POST_MCS_CMD
 724 POST_STRIP_CMD
 725 ARFLAGS
 726 COMPILER_TARGET_BITS_FLAG
 727 JT_HOME
 728 JTREGEXE
 729 USING_BROKEN_SUSE_LD
 730 PACKAGE_PATH
 731 LDEXECXX
 732 LDEXE
 733 USE_CLANG
 734 HOTSPOT_LD
 735 HOTSPOT_CXX
 736 HOTSPOT_RC
 737 HOTSPOT_MT
 738 BUILD_LD
 739 BUILD_CXX
 740 BUILD_CC
 741 ac_ct_OBJDUMP
 742 OBJDUMP
 743 ac_ct_OBJCOPY
 744 OBJCOPY
 745 ac_ct_NM
 746 OTOOL
 747 ac_ct_STRIP
 748 MCS
 749 GNM
 750 NM
 751 STRIP
 752 MSBUILD
 753 DUMPBIN
 754 RC
 755 MT
 756 LIPO
 757 ac_ct_OBJC
 758 OBJCFLAGS
 759 OBJC
 760 ac_ct_AR
 761 AR
 762 AS
 763 LDCXX
 764 LD
 765 CXXCPP
 766 CPP
 767 CXX_VERSION_NUMBER
 768 CC_VERSION_NUMBER
 769 ac_ct_CXX
 770 CXXFLAGS
 771 CXX
 772 ac_ct_PROPER_COMPILER_CXX
 773 PROPER_COMPILER_CXX
 774 TOOLCHAIN_PATH_CXX
 775 POTENTIAL_CXX
 776 OBJEXT
 777 EXEEXT
 778 ac_ct_CC
 779 CPPFLAGS
 780 LDFLAGS
 781 CFLAGS
 782 CC
 783 ac_ct_PROPER_COMPILER_CC
 784 PROPER_COMPILER_CC
 785 TOOLCHAIN_PATH_CC
 786 POTENTIAL_CC
 787 SDKPATH
 788 XCODEBUILD
 789 SET_DEVELOPER_DIR
 790 VS_LIB
 791 VS_INCLUDE
 792 VS_PATH
 793 CYGWIN_LINK
 794 EXE_SUFFIX
 795 OBJ_SUFFIX
 796 STATIC_LIBRARY
 797 SHARED_LIBRARY
 798 STATIC_LIBRARY_SUFFIX
 799 SHARED_LIBRARY_SUFFIX
 800 LIBRARY_PREFIX
 801 TOOLCHAIN_TYPE
 802 BUILD_HOTSPOT
 803 HOTSPOT_DIST
 804 BUILD_OUTPUT
 805 OVERRIDE_SRC_ROOT
 806 ADD_SRC_ROOT
 807 JDK_TOPDIR
 808 NASHORN_TOPDIR
 809 HOTSPOT_TOPDIR
 810 JAXWS_TOPDIR
 811 JAXP_TOPDIR
 812 CORBA_TOPDIR
 813 LANGTOOLS_TOPDIR
 814 JAVA_FLAGS_SMALL
 815 JAVA_FLAGS_BIG
 816 JAVA_FLAGS
 817 BOOT_JDK_BITS
 818 JAVAC_FLAGS
 819 BOOT_JDK_SOURCETARGET
 820 BOOT_JDK
 821 BOOT_TOOLSJAR
 822 BOOT_RTJAR
 823 JAVA_CHECK
 824 JAVAC_CHECK
 825 COOKED_BUILD_NUMBER
 826 COOKED_JDK_UPDATE_VERSION
 827 JDK_VERSION
 828 COPYRIGHT_YEAR
 829 VENDOR_URL_VM_BUG
 830 VENDOR_URL_BUG
 831 VENDOR_URL
 832 COMPANY_NAME
 833 MACOSX_BUNDLE_ID_BASE
 834 MACOSX_BUNDLE_NAME_BASE
 835 JDK_RC_PLATFORM_NAME
 836 PRODUCT_SUFFIX
 837 PRODUCT_NAME
 838 LAUNCHER_NAME
 839 MILESTONE
 840 JDK_BUILD_NUMBER
 841 JDK_UPDATE_VERSION
 842 JDK_MICRO_VERSION
 843 JDK_MINOR_VERSION
 844 JDK_MAJOR_VERSION
 845 USER_RELEASE_SUFFIX
 846 ENABLE_JFR
 847 COMPRESS_JARS
 848 UNLIMITED_CRYPTO
 849 CACERTS_FILE
 850 TEST_IN_BUILD
 851 BUILD_HEADLESS
 852 SUPPORT_HEADFUL
 853 SUPPORT_HEADLESS
 854 BDEPS_FTP
 855 BDEPS_UNZIP
 856 OS_VERSION_MICRO
 857 OS_VERSION_MINOR
 858 OS_VERSION_MAJOR
 859 PKG_CONFIG
 860 CODESIGN
 861 XATTR
 862 DSYMUTIL
 863 IS_GNU_TIME
 864 TIME
 865 STAT
 866 HG
 867 READELF
 868 LDD
 869 ZIP
 870 UNZIP
 871 FIND_DELETE
 872 MAKE
 873 CHECK_TOOLSDIR_MAKE
 874 CHECK_TOOLSDIR_GMAKE
 875 CHECK_MAKE
 876 CHECK_GMAKE
 877 PKGHANDLER
 878 OUTPUT_ROOT
 879 CONF_NAME
 880 SPEC
 881 DEVKIT_LIB_DIR
 882 BUILD_VARIANT_RELEASE
 883 DEBUG_CLASSFILES
 884 FASTDEBUG
 885 VARIANT
 886 DEBUG_LEVEL
 887 MACOSX_UNIVERSAL
 888 INCLUDE_SA
 889 JVM_VARIANT_CORE
 890 JVM_VARIANT_ZEROSHARK
 891 JVM_VARIANT_ZERO
 892 JVM_VARIANT_KERNEL
 893 JVM_VARIANT_MINIMAL1
 894 JVM_VARIANT_CLIENT
 895 JVM_VARIANT_SERVER
 896 JVM_VARIANTS
 897 JVM_INTERPRETER
 898 JDK_VARIANT
 899 SET_OPENJDK
 900 BUILD_LOG_WRAPPER
 901 BUILD_LOG_PREVIOUS
 902 BUILD_LOG
 903 TOPDIR
 904 PATH_SEP
 905 ZERO_ARCHDEF
 906 DEFINE_CROSS_COMPILE_ARCH
 907 LP64
 908 OPENJDK_TARGET_OS_EXPORT_DIR
 909 OPENJDK_TARGET_OS_API_DIR
 910 OPENJDK_TARGET_CPU_JLI_CFLAGS
 911 OPENJDK_TARGET_CPU_OSARCH
 912 OPENJDK_TARGET_CPU_ISADIR
 913 OPENJDK_TARGET_CPU_LIBDIR
 914 OPENJDK_TARGET_CPU_LEGACY_LIB
 915 OPENJDK_TARGET_CPU_LEGACY
 916 REQUIRED_OS_VERSION
 917 REQUIRED_OS_NAME
 918 COMPILE_TYPE
 919 OPENJDK_TARGET_CPU_ENDIAN
 920 OPENJDK_TARGET_CPU_BITS
 921 OPENJDK_TARGET_CPU_ARCH
 922 OPENJDK_TARGET_CPU
 923 OPENJDK_TARGET_OS_ENV
 924 OPENJDK_TARGET_OS_API
 925 OPENJDK_TARGET_OS
 926 OPENJDK_BUILD_CPU_ENDIAN
 927 OPENJDK_BUILD_CPU_BITS
 928 OPENJDK_BUILD_CPU_ARCH
 929 OPENJDK_BUILD_CPU
 930 OPENJDK_BUILD_OS_ENV
 931 OPENJDK_BUILD_OS_API
 932 OPENJDK_BUILD_OS
 933 OPENJDK_BUILD_AUTOCONF_NAME
 934 OPENJDK_TARGET_AUTOCONF_NAME
 935 target_os
 936 target_vendor
 937 target_cpu
 938 target
 939 host_os
 940 host_vendor
 941 host_cpu
 942 host
 943 build_os
 944 build_vendor
 945 build_cpu
 946 build
 947 CPIO
 948 SETFILE
 949 DF
 950 READLINK
 951 CYGPATH
 952 SED
 953 FGREP
 954 EGREP
 955 GREP
 956 AWK
 957 XARGS
 958 WHICH
 959 WC
 960 UNIQ
 961 UNAME
 962 TR
 963 TOUCH
 964 TEE
 965 TAR
 966 TAIL
 967 SORT
 968 SH
 969 RM
 970 PRINTF
 971 NAWK
 972 MV
 973 MKTEMP
 974 MKDIR
 975 LS
 976 LN
 977 HEAD
 978 FIND
 979 FILE
 980 EXPR
 981 ECHO
 982 DIRNAME
 983 DIFF
 984 DATE
 985 CUT
 986 CP
 987 COMM
 988 CMP
 989 CHMOD
 990 CAT
 991 BASH
 992 BASENAME
 993 DATE_WHEN_CONFIGURED
 994 CONFIGURE_COMMAND_LINE
 995 CUSTOM_MAKE_DIR
 996 target_alias
 997 host_alias
 998 build_alias
 999 LIBS
1000 ECHO_T
1001 ECHO_N
1002 ECHO_C
1003 DEFS
1004 mandir
1005 localedir
1006 libdir
1007 psdir
1008 pdfdir
1009 dvidir
1010 htmldir
1011 infodir
1012 docdir
1013 oldincludedir
1014 includedir
1015 runstatedir
1016 localstatedir
1017 sharedstatedir
1018 sysconfdir
1019 datadir
1020 datarootdir
1021 libexecdir
1022 sbindir
1023 bindir
1024 program_transform_name
1025 prefix
1026 exec_prefix
1027 PACKAGE_URL
1028 PACKAGE_BUGREPORT
1029 PACKAGE_STRING
1030 PACKAGE_VERSION
1031 PACKAGE_TARNAME
1032 PACKAGE_NAME
1033 PATH_SEPARATOR
1034 SHELL'
1035 ac_subst_files=''
1036 ac_user_opts='
1037 enable_option_checking
1038 with_custom_make_dir
1039 with_target_bits
1040 enable_openjdk_only
1041 with_jdk_variant
1042 with_jvm_interpreter
1043 with_jvm_variants
1044 enable_debug
1045 with_debug_level
1046 with_devkit
1047 with_sys_root
1048 with_sysroot
1049 with_tools_dir
1050 with_toolchain_path
1051 with_extra_path
1052 with_xcode_path
1053 with_conf_name
1054 with_builddeps_conf
1055 with_builddeps_server
1056 with_builddeps_dir
1057 with_builddeps_group
1058 enable_headful
1059 enable_hotspot_test_in_build
1060 with_cacerts_file
1061 enable_unlimited_crypto
1062 enable_jfr
1063 with_milestone
1064 with_update_version
1065 with_user_release_suffix
1066 with_build_number
1067 with_vendor_name
1068 with_vendor_url
1069 with_vendor_bug_url
1070 with_vendor_vm_bug_url
1071 with_copyright_year
1072 with_boot_jdk
1073 with_boot_jdk_jvmargs
1074 with_add_source_root
1075 with_override_source_root
1076 with_adds_and_overrides
1077 with_override_langtools
1078 with_override_corba
1079 with_override_jaxp
1080 with_override_jaxws
1081 with_override_hotspot
1082 with_override_nashorn
1083 with_override_jdk
1084 with_import_hotspot
1085 with_toolchain_type
1086 with_toolchain_version
1087 with_jtreg
1088 with_extra_cflags
1089 with_extra_cxxflags
1090 with_extra_ldflags
1091 enable_debug_symbols
1092 enable_zip_debug_info
1093 with_native_debug_symbols
1094 enable_macosx_runtime_support
1095 with_x
1096 with_cups
1097 with_cups_include
1098 with_freetype
1099 with_freetype_include
1100 with_freetype_lib
1101 with_freetype_src
1102 enable_freetype_bundling
1103 with_alsa
1104 with_alsa_include
1105 with_alsa_lib
1106 with_fontconfig
1107 with_fontconfig_include
1108 with_giflib
1109 with_zlib
1110 with_stdc__lib
1111 with_msvcr_dll
1112 with_msvcp_dll
1113 with_ucrt_dll_dir
1114 with_dxsdk
1115 with_dxsdk_lib
1116 with_dxsdk_include
1117 with_num_cores
1118 with_memory_size
1119 with_jobs
1120 with_sjavac_server_java
1121 enable_sjavac
1122 enable_precompiled_headers
1123 enable_ccache
1124 with_ccache_dir
1125 '
1126       ac_precious_vars='build_alias
1127 host_alias
1128 target_alias
1129 BASENAME
1130 BASH
1131 CAT
1132 CHMOD
1133 CMP
1134 COMM
1135 CP
1136 CUT
1137 DATE
1138 DIFF
1139 DIRNAME
1140 ECHO
1141 EXPR
1142 FILE
1143 FIND
1144 HEAD
1145 LN
1146 LS
1147 MKDIR
1148 MKTEMP
1149 MV
1150 NAWK
1151 PRINTF
1152 RM
1153 SH
1154 SORT
1155 TAIL
1156 TAR
1157 TEE
1158 TOUCH
1159 TR
1160 UNAME
1161 UNIQ
1162 WC
1163 WHICH
1164 XARGS
1165 AWK
1166 GREP
1167 EGREP
1168 FGREP
1169 SED
1170 CYGPATH
1171 READLINK
1172 DF
1173 SETFILE
1174 CPIO
1175 UNZIP
1176 ZIP
1177 LDD
1178 READELF
1179 HG
1180 STAT
1181 TIME
1182 DSYMUTIL
1183 XATTR
1184 CODESIGN
1185 PKG_CONFIG
1186 CC
1187 CFLAGS
1188 LDFLAGS
1189 LIBS
1190 CPPFLAGS
1191 CXX
1192 CXXFLAGS
1193 CCC
1194 CPP
1195 CXXCPP
1196 AS
1197 AR
1198 OBJC
1199 OBJCFLAGS
1200 LIPO
1201 STRIP
1202 NM
1203 GNM
1204 MCS
1205 OBJCOPY
1206 OBJDUMP
1207 BUILD_CC
1208 BUILD_CXX
1209 BUILD_LD
1210 JTREGEXE
1211 XMKMF
1212 FREETYPE_CFLAGS
1213 FREETYPE_LIBS
1214 ALSA_CFLAGS
1215 ALSA_LIBS
1216 LIBFFI_CFLAGS
1217 LIBFFI_LIBS
1218 CCACHE'
1219 
1220 
1221 # Initialize some variables set by options.
1222 ac_init_help=
1223 ac_init_version=false
1224 ac_unrecognized_opts=
1225 ac_unrecognized_sep=
1226 # The variables have the same names as the options, with
1227 # dashes changed to underlines.
1228 cache_file=/dev/null
1229 exec_prefix=NONE
1230 no_create=
1231 no_recursion=
1232 prefix=NONE
1233 program_prefix=NONE
1234 program_suffix=NONE
1235 program_transform_name=s,x,x,
1236 silent=
1237 site=
1238 srcdir=
1239 verbose=
1240 x_includes=NONE
1241 x_libraries=NONE
1242 
1243 # Installation directory options.
1244 # These are left unexpanded so users can "make install exec_prefix=/foo"
1245 # and all the variables that are supposed to be based on exec_prefix
1246 # by default will actually change.
1247 # Use braces instead of parens because sh, perl, etc. also accept them.
1248 # (The list follows the same order as the GNU Coding Standards.)
1249 bindir='${exec_prefix}/bin'
1250 sbindir='${exec_prefix}/sbin'
1251 libexecdir='${exec_prefix}/libexec'
1252 datarootdir='${prefix}/share'
1253 datadir='${datarootdir}'
1254 sysconfdir='${prefix}/etc'
1255 sharedstatedir='${prefix}/com'
1256 localstatedir='${prefix}/var'
1257 runstatedir='${localstatedir}/run'
1258 includedir='${prefix}/include'
1259 oldincludedir='/usr/include'
1260 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1261 infodir='${datarootdir}/info'
1262 htmldir='${docdir}'
1263 dvidir='${docdir}'
1264 pdfdir='${docdir}'
1265 psdir='${docdir}'
1266 libdir='${exec_prefix}/lib'
1267 localedir='${datarootdir}/locale'
1268 mandir='${datarootdir}/man'
1269 
1270 ac_prev=
1271 ac_dashdash=
1272 for ac_option
1273 do
1274   # If the previous option needs an argument, assign it.
1275   if test -n "$ac_prev"; then
1276     eval $ac_prev=\$ac_option
1277     ac_prev=
1278     continue
1279   fi
1280 
1281   case $ac_option in
1282   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1283   *=)   ac_optarg= ;;
1284   *)    ac_optarg=yes ;;
1285   esac
1286 
1287   # Accept the important Cygnus configure options, so we can diagnose typos.
1288 
1289   case $ac_dashdash$ac_option in
1290   --)
1291     ac_dashdash=yes ;;
1292 
1293   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1294     ac_prev=bindir ;;
1295   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1296     bindir=$ac_optarg ;;
1297 
1298   -build | --build | --buil | --bui | --bu)
1299     ac_prev=build_alias ;;
1300   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1301     build_alias=$ac_optarg ;;
1302 
1303   -cache-file | --cache-file | --cache-fil | --cache-fi \
1304   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1305     ac_prev=cache_file ;;
1306   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1307   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1308     cache_file=$ac_optarg ;;
1309 
1310   --config-cache | -C)
1311     cache_file=config.cache ;;
1312 
1313   -datadir | --datadir | --datadi | --datad)
1314     ac_prev=datadir ;;
1315   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1316     datadir=$ac_optarg ;;
1317 
1318   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1319   | --dataroo | --dataro | --datar)
1320     ac_prev=datarootdir ;;
1321   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1322   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1323     datarootdir=$ac_optarg ;;
1324 
1325   -disable-* | --disable-*)
1326     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1327     # Reject names that are not valid shell variable names.
1328     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329       as_fn_error $? "invalid feature name: $ac_useropt"
1330     ac_useropt_orig=$ac_useropt
1331     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332     case $ac_user_opts in
1333       *"
1334 "enable_$ac_useropt"
1335 "*) ;;
1336       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1337          ac_unrecognized_sep=', ';;
1338     esac
1339     eval enable_$ac_useropt=no ;;
1340 
1341   -docdir | --docdir | --docdi | --doc | --do)
1342     ac_prev=docdir ;;
1343   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1344     docdir=$ac_optarg ;;
1345 
1346   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1347     ac_prev=dvidir ;;
1348   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1349     dvidir=$ac_optarg ;;
1350 
1351   -enable-* | --enable-*)
1352     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355       as_fn_error $? "invalid feature name: $ac_useropt"
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "enable_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval enable_$ac_useropt=\$ac_optarg ;;
1366 
1367   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1368   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1369   | --exec | --exe | --ex)
1370     ac_prev=exec_prefix ;;
1371   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1372   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1373   | --exec=* | --exe=* | --ex=*)
1374     exec_prefix=$ac_optarg ;;
1375 
1376   -gas | --gas | --ga | --g)
1377     # Obsolete; use --with-gas.
1378     with_gas=yes ;;
1379 
1380   -help | --help | --hel | --he | -h)
1381     ac_init_help=long ;;
1382   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1383     ac_init_help=recursive ;;
1384   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1385     ac_init_help=short ;;
1386 
1387   -host | --host | --hos | --ho)
1388     ac_prev=host_alias ;;
1389   -host=* | --host=* | --hos=* | --ho=*)
1390     host_alias=$ac_optarg ;;
1391 
1392   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1393     ac_prev=htmldir ;;
1394   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1395   | --ht=*)
1396     htmldir=$ac_optarg ;;
1397 
1398   -includedir | --includedir | --includedi | --included | --include \
1399   | --includ | --inclu | --incl | --inc)
1400     ac_prev=includedir ;;
1401   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1402   | --includ=* | --inclu=* | --incl=* | --inc=*)
1403     includedir=$ac_optarg ;;
1404 
1405   -infodir | --infodir | --infodi | --infod | --info | --inf)
1406     ac_prev=infodir ;;
1407   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1408     infodir=$ac_optarg ;;
1409 
1410   -libdir | --libdir | --libdi | --libd)
1411     ac_prev=libdir ;;
1412   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1413     libdir=$ac_optarg ;;
1414 
1415   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1416   | --libexe | --libex | --libe)
1417     ac_prev=libexecdir ;;
1418   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1419   | --libexe=* | --libex=* | --libe=*)
1420     libexecdir=$ac_optarg ;;
1421 
1422   -localedir | --localedir | --localedi | --localed | --locale)
1423     ac_prev=localedir ;;
1424   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1425     localedir=$ac_optarg ;;
1426 
1427   -localstatedir | --localstatedir | --localstatedi | --localstated \
1428   | --localstate | --localstat | --localsta | --localst | --locals)
1429     ac_prev=localstatedir ;;
1430   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1431   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1432     localstatedir=$ac_optarg ;;
1433 
1434   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1435     ac_prev=mandir ;;
1436   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1437     mandir=$ac_optarg ;;
1438 
1439   -nfp | --nfp | --nf)
1440     # Obsolete; use --without-fp.
1441     with_fp=no ;;
1442 
1443   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1444   | --no-cr | --no-c | -n)
1445     no_create=yes ;;
1446 
1447   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1448   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1449     no_recursion=yes ;;
1450 
1451   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1452   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1453   | --oldin | --oldi | --old | --ol | --o)
1454     ac_prev=oldincludedir ;;
1455   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1456   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1457   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1458     oldincludedir=$ac_optarg ;;
1459 
1460   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1461     ac_prev=prefix ;;
1462   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1463     prefix=$ac_optarg ;;
1464 
1465   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1466   | --program-pre | --program-pr | --program-p)
1467     ac_prev=program_prefix ;;
1468   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1469   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1470     program_prefix=$ac_optarg ;;
1471 
1472   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1473   | --program-suf | --program-su | --program-s)
1474     ac_prev=program_suffix ;;
1475   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1476   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1477     program_suffix=$ac_optarg ;;
1478 
1479   -program-transform-name | --program-transform-name \
1480   | --program-transform-nam | --program-transform-na \
1481   | --program-transform-n | --program-transform- \
1482   | --program-transform | --program-transfor \
1483   | --program-transfo | --program-transf \
1484   | --program-trans | --program-tran \
1485   | --progr-tra | --program-tr | --program-t)
1486     ac_prev=program_transform_name ;;
1487   -program-transform-name=* | --program-transform-name=* \
1488   | --program-transform-nam=* | --program-transform-na=* \
1489   | --program-transform-n=* | --program-transform-=* \
1490   | --program-transform=* | --program-transfor=* \
1491   | --program-transfo=* | --program-transf=* \
1492   | --program-trans=* | --program-tran=* \
1493   | --progr-tra=* | --program-tr=* | --program-t=*)
1494     program_transform_name=$ac_optarg ;;
1495 
1496   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1497     ac_prev=pdfdir ;;
1498   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1499     pdfdir=$ac_optarg ;;
1500 
1501   -psdir | --psdir | --psdi | --psd | --ps)
1502     ac_prev=psdir ;;
1503   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1504     psdir=$ac_optarg ;;
1505 
1506   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507   | -silent | --silent | --silen | --sile | --sil)
1508     silent=yes ;;
1509 
1510   -runstatedir | --runstatedir | --runstatedi | --runstated \
1511   | --runstate | --runstat | --runsta | --runst | --runs \
1512   | --run | --ru | --r)
1513     ac_prev=runstatedir ;;
1514   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1515   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1516   | --run=* | --ru=* | --r=*)
1517     runstatedir=$ac_optarg ;;
1518 
1519   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1520     ac_prev=sbindir ;;
1521   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1522   | --sbi=* | --sb=*)
1523     sbindir=$ac_optarg ;;
1524 
1525   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1526   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1527   | --sharedst | --shareds | --shared | --share | --shar \
1528   | --sha | --sh)
1529     ac_prev=sharedstatedir ;;
1530   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1531   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1532   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1533   | --sha=* | --sh=*)
1534     sharedstatedir=$ac_optarg ;;
1535 
1536   -site | --site | --sit)
1537     ac_prev=site ;;
1538   -site=* | --site=* | --sit=*)
1539     site=$ac_optarg ;;
1540 
1541   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1542     ac_prev=srcdir ;;
1543   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1544     srcdir=$ac_optarg ;;
1545 
1546   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1547   | --syscon | --sysco | --sysc | --sys | --sy)
1548     ac_prev=sysconfdir ;;
1549   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1550   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1551     sysconfdir=$ac_optarg ;;
1552 
1553   -target | --target | --targe | --targ | --tar | --ta | --t)
1554     ac_prev=target_alias ;;
1555   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1556     target_alias=$ac_optarg ;;
1557 
1558   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1559     verbose=yes ;;
1560 
1561   -version | --version | --versio | --versi | --vers | -V)
1562     ac_init_version=: ;;
1563 
1564   -with-* | --with-*)
1565     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1566     # Reject names that are not valid shell variable names.
1567     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1568       as_fn_error $? "invalid package name: $ac_useropt"
1569     ac_useropt_orig=$ac_useropt
1570     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571     case $ac_user_opts in
1572       *"
1573 "with_$ac_useropt"
1574 "*) ;;
1575       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1576          ac_unrecognized_sep=', ';;
1577     esac
1578     eval with_$ac_useropt=\$ac_optarg ;;
1579 
1580   -without-* | --without-*)
1581     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1582     # Reject names that are not valid shell variable names.
1583     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1584       as_fn_error $? "invalid package name: $ac_useropt"
1585     ac_useropt_orig=$ac_useropt
1586     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1587     case $ac_user_opts in
1588       *"
1589 "with_$ac_useropt"
1590 "*) ;;
1591       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1592          ac_unrecognized_sep=', ';;
1593     esac
1594     eval with_$ac_useropt=no ;;
1595 
1596   --x)
1597     # Obsolete; use --with-x.
1598     with_x=yes ;;
1599 
1600   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1601   | --x-incl | --x-inc | --x-in | --x-i)
1602     ac_prev=x_includes ;;
1603   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1604   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1605     x_includes=$ac_optarg ;;
1606 
1607   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1608   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1609     ac_prev=x_libraries ;;
1610   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1611   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1612     x_libraries=$ac_optarg ;;
1613 
1614   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1615 Try \`$0 --help' for more information"
1616     ;;
1617 
1618   *=*)
1619     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1620     # Reject names that are not valid shell variable names.
1621     case $ac_envvar in #(
1622       '' | [0-9]* | *[!_$as_cr_alnum]* )
1623       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1624     esac
1625     eval $ac_envvar=\$ac_optarg
1626     export $ac_envvar ;;
1627 
1628   *)
1629     # FIXME: should be removed in autoconf 3.0.
1630     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1631     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1632       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1633     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1634     ;;
1635 
1636   esac
1637 done
1638 
1639 if test -n "$ac_prev"; then
1640   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1641   as_fn_error $? "missing argument to $ac_option"
1642 fi
1643 
1644 if test -n "$ac_unrecognized_opts"; then
1645   case $enable_option_checking in
1646     no) ;;
1647     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1648     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1649   esac
1650 fi
1651 
1652 # Check all directory arguments for consistency.
1653 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1654                 datadir sysconfdir sharedstatedir localstatedir includedir \
1655                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1656                 libdir localedir mandir runstatedir
1657 do
1658   eval ac_val=\$$ac_var
1659   # Remove trailing slashes.
1660   case $ac_val in
1661     */ )
1662       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1663       eval $ac_var=\$ac_val;;
1664   esac
1665   # Be sure to have absolute directory names.
1666   case $ac_val in
1667     [\\/$]* | ?:[\\/]* )  continue;;
1668     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1669   esac
1670   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1671 done
1672 
1673 # There might be people who depend on the old broken behavior: `$host'
1674 # used to hold the argument of --host etc.
1675 # FIXME: To remove some day.
1676 build=$build_alias
1677 host=$host_alias
1678 target=$target_alias
1679 
1680 # FIXME: To remove some day.
1681 if test "x$host_alias" != x; then
1682   if test "x$build_alias" = x; then
1683     cross_compiling=maybe
1684   elif test "x$build_alias" != "x$host_alias"; then
1685     cross_compiling=yes
1686   fi
1687 fi
1688 
1689 ac_tool_prefix=
1690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1691 
1692 test "$silent" = yes && exec 6>/dev/null
1693 
1694 
1695 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1696 ac_ls_di=`ls -di .` &&
1697 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1698   as_fn_error $? "working directory cannot be determined"
1699 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1700   as_fn_error $? "pwd does not report name of working directory"
1701 
1702 
1703 # Find the source files, if location was not specified.
1704 if test -z "$srcdir"; then
1705   ac_srcdir_defaulted=yes
1706   # Try the directory containing this script, then the parent directory.
1707   ac_confdir=`$as_dirname -- "$as_myself" ||
1708 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1709          X"$as_myself" : 'X\(//\)[^/]' \| \
1710          X"$as_myself" : 'X\(//\)$' \| \
1711          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1712 $as_echo X"$as_myself" |
1713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1714             s//\1/
1715             q
1716           }
1717           /^X\(\/\/\)[^/].*/{
1718             s//\1/
1719             q
1720           }
1721           /^X\(\/\/\)$/{
1722             s//\1/
1723             q
1724           }
1725           /^X\(\/\).*/{
1726             s//\1/
1727             q
1728           }
1729           s/.*/./; q'`
1730   srcdir=$ac_confdir
1731   if test ! -r "$srcdir/$ac_unique_file"; then
1732     srcdir=..
1733   fi
1734 else
1735   ac_srcdir_defaulted=no
1736 fi
1737 if test ! -r "$srcdir/$ac_unique_file"; then
1738   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1739   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1740 fi
1741 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1742 ac_abs_confdir=`(
1743         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1744         pwd)`
1745 # When building in place, set srcdir=.
1746 if test "$ac_abs_confdir" = "$ac_pwd"; then
1747   srcdir=.
1748 fi
1749 # Remove unnecessary trailing slashes from srcdir.
1750 # Double slashes in file names in object file debugging info
1751 # mess up M-x gdb in Emacs.
1752 case $srcdir in
1753 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1754 esac
1755 for ac_var in $ac_precious_vars; do
1756   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1757   eval ac_env_${ac_var}_value=\$${ac_var}
1758   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1759   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1760 done
1761 
1762 #
1763 # Report the --help message.
1764 #
1765 if test "$ac_init_help" = "long"; then
1766   # Omit some internal or obsolete options to make the list less imposing.
1767   # This message is too long to be a string in the A/UX 3.1 sh.
1768   cat <<_ACEOF
1769 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1770 
1771 Usage: $0 [OPTION]... [VAR=VALUE]...
1772 
1773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1774 VAR=VALUE.  See below for descriptions of some of the useful variables.
1775 
1776 Defaults for the options are specified in brackets.
1777 
1778 Configuration:
1779   -h, --help              display this help and exit
1780       --help=short        display options specific to this package
1781       --help=recursive    display the short help of all the included packages
1782   -V, --version           display version information and exit
1783   -q, --quiet, --silent   do not print \`checking ...' messages
1784       --cache-file=FILE   cache test results in FILE [disabled]
1785   -C, --config-cache      alias for \`--cache-file=config.cache'
1786   -n, --no-create         do not create output files
1787       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1788 
1789 Installation directories:
1790   --prefix=PREFIX         install architecture-independent files in PREFIX
1791                           [$ac_default_prefix]
1792   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1793                           [PREFIX]
1794 
1795 By default, \`make install' will install all the files in
1796 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1797 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1798 for instance \`--prefix=\$HOME'.
1799 
1800 For better control, use the options below.
1801 
1802 Fine tuning of the installation directories:
1803   --bindir=DIR            user executables [EPREFIX/bin]
1804   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1805   --libexecdir=DIR        program executables [EPREFIX/libexec]
1806   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1807   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1808   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1809   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1810   --libdir=DIR            object code libraries [EPREFIX/lib]
1811   --includedir=DIR        C header files [PREFIX/include]
1812   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1813   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1814   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1815   --infodir=DIR           info documentation [DATAROOTDIR/info]
1816   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1817   --mandir=DIR            man documentation [DATAROOTDIR/man]
1818   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1819   --htmldir=DIR           html documentation [DOCDIR]
1820   --dvidir=DIR            dvi documentation [DOCDIR]
1821   --pdfdir=DIR            pdf documentation [DOCDIR]
1822   --psdir=DIR             ps documentation [DOCDIR]
1823 _ACEOF
1824 
1825   cat <<\_ACEOF
1826 
1827 X features:
1828   --x-includes=DIR    X include files are in DIR
1829   --x-libraries=DIR   X library files are in DIR
1830 
1831 System types:
1832   --build=BUILD     configure for building on BUILD [guessed]
1833   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1834   --target=TARGET   configure for building compilers for TARGET [HOST]
1835 _ACEOF
1836 fi
1837 
1838 if test -n "$ac_init_help"; then
1839   case $ac_init_help in
1840      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1841    esac
1842   cat <<\_ACEOF
1843 
1844 Optional Features:
1845   --disable-option-checking  ignore unrecognized --enable/--with options
1846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1848   --enable-openjdk-only   suppress building custom source even if present
1849                           [disabled]
1850   --enable-debug          set the debug level to fastdebug (shorthand for
1851                           --with-debug-level=fastdebug) [disabled]
1852   --disable-headful       disable building headful support (graphical UI
1853                           support) [enabled]
1854   --enable-hotspot-test-in-build
1855                           run the Queens test after Hotspot build [disabled]
1856   --enable-unlimited-crypto
1857                           Enable unlimited crypto policy [disabled]
1858   --disable-jfr           Disable Java Flight Recorder support [enabled]
1859   --disable-debug-symbols disable generation of debug symbols [enabled]
1860   --disable-zip-debug-info
1861                           disable zipping of debug-info files [enabled]
1862   --enable-macosx-runtime-support
1863                           Deprecated. Option is kept for backwards
1864                           compatibility and is ignored
1865   --disable-freetype-bundling
1866                           disable bundling of the freetype library with the
1867                           build result [enabled on Windows or when using
1868                           --with-freetype, disabled otherwise]
1869   --enable-sjavac         use sjavac to do fast incremental compiles
1870                           [disabled]
1871   --disable-precompiled-headers
1872                           disable using precompiled headers when compiling C++
1873                           [enabled]
1874   --enable-ccache         enable using ccache to speed up recompilations
1875                           [disabled]
1876 
1877 Optional Packages:
1878   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1879   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1880   --with-custom-make-dir  use this directory for custom build/make files
1881   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1882                           support it), e.g. --with-target-bits=32 [guessed]
1883   --with-jdk-variant      JDK variant to build (normal) [normal]
1884   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1885   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1886                           client, minimal1, kernel, zero, zeroshark, core)
1887                           [server]
1888   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1889                           [release]
1890   --with-devkit           use this devkit for compilers, tools and resources
1891   --with-sys-root         alias for --with-sysroot for backwards compatability
1892   --with-sysroot          use this directory as sysroot)
1893   --with-tools-dir        alias for --with-toolchain-path for backwards
1894                           compatibility
1895   --with-toolchain-path   prepend these directories when searching for
1896                           toolchain binaries (compilers etc)
1897   --with-extra-path       prepend these directories to the default path
1898   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1899                           10.9 and later)
1900   --with-conf-name        use this as the name of the configuration [generated
1901                           from important configuration options]
1902   --with-builddeps-conf   use this configuration file for the builddeps
1903   --with-builddeps-server download and use build dependencies from this server
1904                           url
1905   --with-builddeps-dir    store downloaded build dependencies here
1906                           [/localhome/builddeps]
1907   --with-builddeps-group  chgrp the downloaded build dependencies to this
1908                           group
1909   --with-cacerts-file     specify alternative cacerts file
1910   --with-milestone        Set milestone value for build [internal]
1911   --with-update-version   Set update version value for build [b00]
1912   --with-user-release-suffix
1913                           Add a custom string to the version string if build
1914                           number isn't set.[username_builddateb00]
1915   --with-build-number     Set build number value for build [b00]
1916   --with-vendor-name      Set vendor name. Among others, used to set the
1917                           'java.vendor' and 'java.vm.vendor' system
1918                           properties. [not specified]
1919   --with-vendor-url       Set the 'java.vendor.url' system property [not
1920                           specified]
1921   --with-vendor-bug-url   Set the 'java.vendor.url.bug' system property [not
1922                           specified]
1923   --with-vendor-vm-bug-url
1924                           Sets the bug URL which will be displayed when the VM
1925                           crashes [not specified]
1926   --with-copyright-year   Set copyright year value for build [current year]
1927   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1928   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1929                           invocations of the Boot JDK, overriding the default
1930                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1931                           -enableassertions"
1932   --with-add-source-root  for each and every source directory, look in this
1933                           additional source root for the same directory; if it
1934                           exists and have files in it, include it in the build
1935   --with-override-source-root
1936                           for each and every source directory, look in this
1937                           override source root for the same directory; if it
1938                           exists, use that directory instead and ignore the
1939                           directory in the original source root
1940   --with-adds-and-overrides
1941                           use the subdirs 'adds' and 'overrides' in the
1942                           specified directory as add-source-root and
1943                           override-source-root
1944   --with-override-langtools
1945                           use this langtools dir for the build
1946   --with-override-corba   use this corba dir for the build
1947   --with-override-jaxp    use this jaxp dir for the build
1948   --with-override-jaxws   use this jaxws dir for the build
1949   --with-override-hotspot use this hotspot dir for the build
1950   --with-override-nashorn use this nashorn dir for the build
1951   --with-override-jdk     use this jdk dir for the build
1952   --with-import-hotspot   import hotspot binaries from this jdk image or
1953                           hotspot build dist dir instead of building from
1954                           source
1955   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1956                           to show possible values [platform dependent]
1957   --with-toolchain-version
1958                           the version of the toolchain to look for, use
1959                           '--help' to show possible values [platform
1960                           dependent]
1961   --with-jtreg            Regression Test Harness [probed]
1962   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1963   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1964   --with-extra-ldflags    extra flags to be used when linking jdk
1965   --with-native-debug-symbols
1966                           set the native debug symbol configuration (none,
1967                           internal, external, zipped) [varying]
1968   --with-x                use the X Window System
1969   --with-cups             specify prefix directory for the cups package
1970                           (expecting the headers under PATH/include)
1971   --with-cups-include     specify directory for the cups include files
1972   --with-freetype         specify prefix directory for the freetype package
1973                           (expecting the libraries under PATH/lib and the
1974                           headers under PATH/include)
1975   --with-freetype-include specify directory for the freetype include files
1976   --with-freetype-lib     specify directory for the freetype library
1977   --with-freetype-src     specify directory with freetype sources to
1978                           automatically build the library (experimental,
1979                           Windows-only)
1980   --with-alsa             specify prefix directory for the alsa package
1981                           (expecting the libraries under PATH/lib and the
1982                           headers under PATH/include)
1983   --with-alsa-include     specify directory for the alsa include files
1984   --with-alsa-lib         specify directory for the alsa library
1985   --with-fontconfig       specify prefix directory for the fontconfig package
1986                           (expecting the headers under PATH/include)
1987   --with-fontconfig-include
1988                           specify directory for the fontconfig include files
1989   --with-giflib           use giflib from build system or OpenJDK source
1990                           (system, bundled) [bundled]
1991   --with-zlib             use zlib from build system or OpenJDK source
1992                           (system, bundled) [bundled]
1993   --with-stdc++lib=<static>,<dynamic>,<default>
1994                           force linking of the C++ runtime on Linux to either
1995                           static or dynamic, default is static with dynamic as
1996                           fallback
1997   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1998                           (Windows only) [probed]
1999   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2000                           (Windows only) [probed]
2001   --with-ucrt-dll-dir     path to Microsoft Windows Kit UCRT DLL dir (Windows
2002                           only) [probed]
2003   --with-dxsdk            Deprecated. Option is kept for backwards
2004                           compatibility and is ignored
2005   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2006                           compatibility and is ignored
2007   --with-dxsdk-include    Deprecated. Option is kept for backwards
2008                           compatibility and is ignored
2009   --with-num-cores        number of cores in the build system, e.g.
2010                           --with-num-cores=8 [probed]
2011   --with-memory-size      memory (in MB) available in the build system, e.g.
2012                           --with-memory-size=1024 [probed]
2013   --with-jobs             number of parallel jobs to let make run [calculated
2014                           based on cores and memory]
2015   --with-sjavac-server-java
2016                           use this java binary for running the sjavac
2017                           background server [Boot JDK java]
2018   --with-ccache-dir       where to store ccache files [~/.ccache]
2019 
2020 Some influential environment variables:
2021   BASENAME    Override default value for BASENAME
2022   BASH        Override default value for BASH
2023   CAT         Override default value for CAT
2024   CHMOD       Override default value for CHMOD
2025   CMP         Override default value for CMP
2026   COMM        Override default value for COMM
2027   CP          Override default value for CP
2028   CUT         Override default value for CUT
2029   DATE        Override default value for DATE
2030   DIFF        Override default value for DIFF
2031   DIRNAME     Override default value for DIRNAME
2032   ECHO        Override default value for ECHO
2033   EXPR        Override default value for EXPR
2034   FILE        Override default value for FILE
2035   FIND        Override default value for FIND
2036   HEAD        Override default value for HEAD
2037   LN          Override default value for LN
2038   LS          Override default value for LS
2039   MKDIR       Override default value for MKDIR
2040   MKTEMP      Override default value for MKTEMP
2041   MV          Override default value for MV
2042   NAWK        Override default value for NAWK
2043   PRINTF      Override default value for PRINTF
2044   RM          Override default value for RM
2045   SH          Override default value for SH
2046   SORT        Override default value for SORT
2047   TAIL        Override default value for TAIL
2048   TAR         Override default value for TAR
2049   TEE         Override default value for TEE
2050   TOUCH       Override default value for TOUCH
2051   TR          Override default value for TR
2052   UNAME       Override default value for UNAME
2053   UNIQ        Override default value for UNIQ
2054   WC          Override default value for WC
2055   WHICH       Override default value for WHICH
2056   XARGS       Override default value for XARGS
2057   AWK         Override default value for AWK
2058   GREP        Override default value for GREP
2059   EGREP       Override default value for EGREP
2060   FGREP       Override default value for FGREP
2061   SED         Override default value for SED
2062   CYGPATH     Override default value for CYGPATH
2063   READLINK    Override default value for READLINK
2064   DF          Override default value for DF
2065   SETFILE     Override default value for SETFILE
2066   CPIO        Override default value for CPIO
2067   UNZIP       Override default value for UNZIP
2068   ZIP         Override default value for ZIP
2069   LDD         Override default value for LDD
2070   READELF     Override default value for READELF
2071   HG          Override default value for HG
2072   STAT        Override default value for STAT
2073   TIME        Override default value for TIME
2074   DSYMUTIL    Override default value for DSYMUTIL
2075   XATTR       Override default value for XATTR
2076   CODESIGN    Override default value for CODESIGN
2077   PKG_CONFIG  path to pkg-config utility
2078   CC          C compiler command
2079   CFLAGS      C compiler flags
2080   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2081               nonstandard directory <lib dir>
2082   LIBS        libraries to pass to the linker, e.g. -l<library>
2083   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2084               you have headers in a nonstandard directory <include dir>
2085   CXX         C++ compiler command
2086   CXXFLAGS    C++ compiler flags
2087   CPP         C preprocessor
2088   CXXCPP      C++ preprocessor
2089   AS          Override default value for AS
2090   AR          Override default value for AR
2091   OBJC        Objective C compiler command
2092   OBJCFLAGS   Objective C compiler flags
2093   LIPO        Override default value for LIPO
2094   STRIP       Override default value for STRIP
2095   NM          Override default value for NM
2096   GNM         Override default value for GNM
2097   MCS         Override default value for MCS
2098   OBJCOPY     Override default value for OBJCOPY
2099   OBJDUMP     Override default value for OBJDUMP
2100   BUILD_CC    Override default value for BUILD_CC
2101   BUILD_CXX   Override default value for BUILD_CXX
2102   BUILD_LD    Override default value for BUILD_LD
2103   JTREGEXE    Override default value for JTREGEXE
2104   XMKMF       Path to xmkmf, Makefile generator for X Window System
2105   FREETYPE_CFLAGS
2106               C compiler flags for FREETYPE, overriding pkg-config
2107   FREETYPE_LIBS
2108               linker flags for FREETYPE, overriding pkg-config
2109   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2110   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2111   LIBFFI_CFLAGS
2112               C compiler flags for LIBFFI, overriding pkg-config
2113   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2114   CCACHE      Override default value for CCACHE
2115 
2116 Use these variables to override the choices made by `configure' or to help
2117 it to find libraries and programs with nonstandard names/locations.
2118 
2119 Report bugs to <build-dev@openjdk.java.net>.
2120 OpenJDK home page: <http://openjdk.java.net>.
2121 _ACEOF
2122 ac_status=$?
2123 fi
2124 
2125 if test "$ac_init_help" = "recursive"; then
2126   # If there are subdirs, report their specific --help.
2127   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2128     test -d "$ac_dir" ||
2129       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2130       continue
2131     ac_builddir=.
2132 
2133 case "$ac_dir" in
2134 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2135 *)
2136   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2137   # A ".." for each directory in $ac_dir_suffix.
2138   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2139   case $ac_top_builddir_sub in
2140   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2141   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2142   esac ;;
2143 esac
2144 ac_abs_top_builddir=$ac_pwd
2145 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2146 # for backward compatibility:
2147 ac_top_builddir=$ac_top_build_prefix
2148 
2149 case $srcdir in
2150   .)  # We are building in place.
2151     ac_srcdir=.
2152     ac_top_srcdir=$ac_top_builddir_sub
2153     ac_abs_top_srcdir=$ac_pwd ;;
2154   [\\/]* | ?:[\\/]* )  # Absolute name.
2155     ac_srcdir=$srcdir$ac_dir_suffix;
2156     ac_top_srcdir=$srcdir
2157     ac_abs_top_srcdir=$srcdir ;;
2158   *) # Relative name.
2159     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2160     ac_top_srcdir=$ac_top_build_prefix$srcdir
2161     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2162 esac
2163 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2164 
2165     cd "$ac_dir" || { ac_status=$?; continue; }
2166     # Check for guested configure.
2167     if test -f "$ac_srcdir/configure.gnu"; then
2168       echo &&
2169       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2170     elif test -f "$ac_srcdir/configure"; then
2171       echo &&
2172       $SHELL "$ac_srcdir/configure" --help=recursive
2173     else
2174       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2175     fi || ac_status=$?
2176     cd "$ac_pwd" || { ac_status=$?; break; }
2177   done
2178 fi
2179 
2180 test -n "$ac_init_help" && exit $ac_status
2181 if $ac_init_version; then
2182   cat <<\_ACEOF
2183 OpenJDK configure jdk8
2184 generated by GNU Autoconf 2.69
2185 
2186 Copyright (C) 2012 Free Software Foundation, Inc.
2187 This configure script is free software; the Free Software Foundation
2188 gives unlimited permission to copy, distribute and modify it.
2189 _ACEOF
2190   exit
2191 fi
2192 
2193 ## ------------------------ ##
2194 ## Autoconf initialization. ##
2195 ## ------------------------ ##
2196 
2197 # ac_fn_c_try_compile LINENO
2198 # --------------------------
2199 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2200 ac_fn_c_try_compile ()
2201 {
2202   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203   rm -f conftest.$ac_objext
2204   if { { ac_try="$ac_compile"
2205 case "(($ac_try" in
2206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207   *) ac_try_echo=$ac_try;;
2208 esac
2209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2210 $as_echo "$ac_try_echo"; } >&5
2211   (eval "$ac_compile") 2>conftest.err
2212   ac_status=$?
2213   if test -s conftest.err; then
2214     grep -v '^ *+' conftest.err >conftest.er1
2215     cat conftest.er1 >&5
2216     mv -f conftest.er1 conftest.err
2217   fi
2218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2219   test $ac_status = 0; } && {
2220          test -z "$ac_c_werror_flag" ||
2221          test ! -s conftest.err
2222        } && test -s conftest.$ac_objext; then :
2223   ac_retval=0
2224 else
2225   $as_echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227 
2228         ac_retval=1
2229 fi
2230   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231   as_fn_set_status $ac_retval
2232 
2233 } # ac_fn_c_try_compile
2234 
2235 # ac_fn_cxx_try_compile LINENO
2236 # ----------------------------
2237 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2238 ac_fn_cxx_try_compile ()
2239 {
2240   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241   rm -f conftest.$ac_objext
2242   if { { ac_try="$ac_compile"
2243 case "(($ac_try" in
2244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245   *) ac_try_echo=$ac_try;;
2246 esac
2247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248 $as_echo "$ac_try_echo"; } >&5
2249   (eval "$ac_compile") 2>conftest.err
2250   ac_status=$?
2251   if test -s conftest.err; then
2252     grep -v '^ *+' conftest.err >conftest.er1
2253     cat conftest.er1 >&5
2254     mv -f conftest.er1 conftest.err
2255   fi
2256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257   test $ac_status = 0; } && {
2258          test -z "$ac_cxx_werror_flag" ||
2259          test ! -s conftest.err
2260        } && test -s conftest.$ac_objext; then :
2261   ac_retval=0
2262 else
2263   $as_echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2265 
2266         ac_retval=1
2267 fi
2268   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269   as_fn_set_status $ac_retval
2270 
2271 } # ac_fn_cxx_try_compile
2272 
2273 # ac_fn_c_try_cpp LINENO
2274 # ----------------------
2275 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2276 ac_fn_c_try_cpp ()
2277 {
2278   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279   if { { ac_try="$ac_cpp conftest.$ac_ext"
2280 case "(($ac_try" in
2281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282   *) ac_try_echo=$ac_try;;
2283 esac
2284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2285 $as_echo "$ac_try_echo"; } >&5
2286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2287   ac_status=$?
2288   if test -s conftest.err; then
2289     grep -v '^ *+' conftest.err >conftest.er1
2290     cat conftest.er1 >&5
2291     mv -f conftest.er1 conftest.err
2292   fi
2293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294   test $ac_status = 0; } > conftest.i && {
2295          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2296          test ! -s conftest.err
2297        }; then :
2298   ac_retval=0
2299 else
2300   $as_echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302 
2303     ac_retval=1
2304 fi
2305   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306   as_fn_set_status $ac_retval
2307 
2308 } # ac_fn_c_try_cpp
2309 
2310 # ac_fn_cxx_try_cpp LINENO
2311 # ------------------------
2312 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2313 ac_fn_cxx_try_cpp ()
2314 {
2315   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316   if { { ac_try="$ac_cpp conftest.$ac_ext"
2317 case "(($ac_try" in
2318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319   *) ac_try_echo=$ac_try;;
2320 esac
2321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2322 $as_echo "$ac_try_echo"; } >&5
2323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2324   ac_status=$?
2325   if test -s conftest.err; then
2326     grep -v '^ *+' conftest.err >conftest.er1
2327     cat conftest.er1 >&5
2328     mv -f conftest.er1 conftest.err
2329   fi
2330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2331   test $ac_status = 0; } > conftest.i && {
2332          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2333          test ! -s conftest.err
2334        }; then :
2335   ac_retval=0
2336 else
2337   $as_echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339 
2340     ac_retval=1
2341 fi
2342   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343   as_fn_set_status $ac_retval
2344 
2345 } # ac_fn_cxx_try_cpp
2346 
2347 # ac_fn_objc_try_compile LINENO
2348 # -----------------------------
2349 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2350 ac_fn_objc_try_compile ()
2351 {
2352   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353   rm -f conftest.$ac_objext
2354   if { { ac_try="$ac_compile"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360 $as_echo "$ac_try_echo"; } >&5
2361   (eval "$ac_compile") 2>conftest.err
2362   ac_status=$?
2363   if test -s conftest.err; then
2364     grep -v '^ *+' conftest.err >conftest.er1
2365     cat conftest.er1 >&5
2366     mv -f conftest.er1 conftest.err
2367   fi
2368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369   test $ac_status = 0; } && {
2370          test -z "$ac_objc_werror_flag" ||
2371          test ! -s conftest.err
2372        } && test -s conftest.$ac_objext; then :
2373   ac_retval=0
2374 else
2375   $as_echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377 
2378         ac_retval=1
2379 fi
2380   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2381   as_fn_set_status $ac_retval
2382 
2383 } # ac_fn_objc_try_compile
2384 
2385 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2386 # ---------------------------------------------------------
2387 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2388 # the include files in INCLUDES and setting the cache variable VAR
2389 # accordingly.
2390 ac_fn_cxx_check_header_mongrel ()
2391 {
2392   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393   if eval \${$3+:} false; then :
2394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2395 $as_echo_n "checking for $2... " >&6; }
2396 if eval \${$3+:} false; then :
2397   $as_echo_n "(cached) " >&6
2398 fi
2399 eval ac_res=\$$3
2400                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2401 $as_echo "$ac_res" >&6; }
2402 else
2403   # Is the header compilable?
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2405 $as_echo_n "checking $2 usability... " >&6; }
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h.  */
2408 $4
2409 #include <$2>
2410 _ACEOF
2411 if ac_fn_cxx_try_compile "$LINENO"; then :
2412   ac_header_compiler=yes
2413 else
2414   ac_header_compiler=no
2415 fi
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2418 $as_echo "$ac_header_compiler" >&6; }
2419 
2420 # Is the header present?
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2422 $as_echo_n "checking $2 presence... " >&6; }
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h.  */
2425 #include <$2>
2426 _ACEOF
2427 if ac_fn_cxx_try_cpp "$LINENO"; then :
2428   ac_header_preproc=yes
2429 else
2430   ac_header_preproc=no
2431 fi
2432 rm -f conftest.err conftest.i conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2434 $as_echo "$ac_header_preproc" >&6; }
2435 
2436 # So?  What about this header?
2437 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2438   yes:no: )
2439     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2440 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2441     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2442 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2443     ;;
2444   no:yes:* )
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2446 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2447     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2448 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2450 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2451     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2452 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2453     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2454 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2455 ( $as_echo "## ----------------------------------------- ##
2456 ## Report this to build-dev@openjdk.java.net ##
2457 ## ----------------------------------------- ##"
2458      ) | sed "s/^/$as_me: WARNING:     /" >&2
2459     ;;
2460 esac
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if eval \${$3+:} false; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   eval "$3=\$ac_header_compiler"
2467 fi
2468 eval ac_res=\$$3
2469                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 fi
2472   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2473 
2474 } # ac_fn_cxx_check_header_mongrel
2475 
2476 # ac_fn_cxx_try_run LINENO
2477 # ------------------------
2478 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2479 # that executables *can* be run.
2480 ac_fn_cxx_try_run ()
2481 {
2482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483   if { { ac_try="$ac_link"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490   (eval "$ac_link") 2>&5
2491   ac_status=$?
2492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2494   { { case "(($ac_try" in
2495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496   *) ac_try_echo=$ac_try;;
2497 esac
2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499 $as_echo "$ac_try_echo"; } >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2503   test $ac_status = 0; }; }; then :
2504   ac_retval=0
2505 else
2506   $as_echo "$as_me: program exited with status $ac_status" >&5
2507        $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509 
2510        ac_retval=$ac_status
2511 fi
2512   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2513   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2514   as_fn_set_status $ac_retval
2515 
2516 } # ac_fn_cxx_try_run
2517 
2518 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2519 # ---------------------------------------------------------
2520 # Tests whether HEADER exists and can be compiled using the include files in
2521 # INCLUDES, setting the cache variable VAR accordingly.
2522 ac_fn_cxx_check_header_compile ()
2523 {
2524   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if eval \${$3+:} false; then :
2528   $as_echo_n "(cached) " >&6
2529 else
2530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h.  */
2532 $4
2533 #include <$2>
2534 _ACEOF
2535 if ac_fn_cxx_try_compile "$LINENO"; then :
2536   eval "$3=yes"
2537 else
2538   eval "$3=no"
2539 fi
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 fi
2542 eval ac_res=\$$3
2543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2546 
2547 } # ac_fn_cxx_check_header_compile
2548 
2549 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2550 # ----------------------------------------------
2551 # Tries to find the compile-time value of EXPR in a program that includes
2552 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2553 # computed
2554 ac_fn_cxx_compute_int ()
2555 {
2556   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557   if test "$cross_compiling" = yes; then
2558     # Depending upon the size, compute the lo and hi bounds.
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h.  */
2561 $4
2562 int
2563 main ()
2564 {
2565 static int test_array [1 - 2 * !(($2) >= 0)];
2566 test_array [0] = 0;
2567 return test_array [0];
2568 
2569   ;
2570   return 0;
2571 }
2572 _ACEOF
2573 if ac_fn_cxx_try_compile "$LINENO"; then :
2574   ac_lo=0 ac_mid=0
2575   while :; do
2576     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h.  */
2578 $4
2579 int
2580 main ()
2581 {
2582 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2583 test_array [0] = 0;
2584 return test_array [0];
2585 
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590 if ac_fn_cxx_try_compile "$LINENO"; then :
2591   ac_hi=$ac_mid; break
2592 else
2593   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2594                         if test $ac_lo -le $ac_mid; then
2595                           ac_lo= ac_hi=
2596                           break
2597                         fi
2598                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601   done
2602 else
2603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 int
2607 main ()
2608 {
2609 static int test_array [1 - 2 * !(($2) < 0)];
2610 test_array [0] = 0;
2611 return test_array [0];
2612 
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 if ac_fn_cxx_try_compile "$LINENO"; then :
2618   ac_hi=-1 ac_mid=-1
2619   while :; do
2620     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 $4
2623 int
2624 main ()
2625 {
2626 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2627 test_array [0] = 0;
2628 return test_array [0];
2629 
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_cxx_try_compile "$LINENO"; then :
2635   ac_lo=$ac_mid; break
2636 else
2637   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2638                         if test $ac_mid -le $ac_hi; then
2639                           ac_lo= ac_hi=
2640                           break
2641                         fi
2642                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2643 fi
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645   done
2646 else
2647   ac_lo= ac_hi=
2648 fi
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 fi
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 # Binary search between lo and hi bounds.
2653 while test "x$ac_lo" != "x$ac_hi"; do
2654   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h.  */
2657 $4
2658 int
2659 main ()
2660 {
2661 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2662 test_array [0] = 0;
2663 return test_array [0];
2664 
2665   ;
2666   return 0;
2667 }
2668 _ACEOF
2669 if ac_fn_cxx_try_compile "$LINENO"; then :
2670   ac_hi=$ac_mid
2671 else
2672   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2673 fi
2674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 done
2676 case $ac_lo in #((
2677 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2678 '') ac_retval=1 ;;
2679 esac
2680   else
2681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h.  */
2683 $4
2684 static long int longval () { return $2; }
2685 static unsigned long int ulongval () { return $2; }
2686 #include <stdio.h>
2687 #include <stdlib.h>
2688 int
2689 main ()
2690 {
2691 
2692   FILE *f = fopen ("conftest.val", "w");
2693   if (! f)
2694     return 1;
2695   if (($2) < 0)
2696     {
2697       long int i = longval ();
2698       if (i != ($2))
2699         return 1;
2700       fprintf (f, "%ld", i);
2701     }
2702   else
2703     {
2704       unsigned long int i = ulongval ();
2705       if (i != ($2))
2706         return 1;
2707       fprintf (f, "%lu", i);
2708     }
2709   /* Do not output a trailing newline, as this causes \r\n confusion
2710      on some platforms.  */
2711   return ferror (f) || fclose (f) != 0;
2712 
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 if ac_fn_cxx_try_run "$LINENO"; then :
2718   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2719 else
2720   ac_retval=1
2721 fi
2722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2723   conftest.$ac_objext conftest.beam conftest.$ac_ext
2724 rm -f conftest.val
2725 
2726   fi
2727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728   as_fn_set_status $ac_retval
2729 
2730 } # ac_fn_cxx_compute_int
2731 
2732 # ac_fn_cxx_try_link LINENO
2733 # -------------------------
2734 # Try to link conftest.$ac_ext, and return whether this succeeded.
2735 ac_fn_cxx_try_link ()
2736 {
2737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2738   rm -f conftest.$ac_objext conftest$ac_exeext
2739   if { { ac_try="$ac_link"
2740 case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745 $as_echo "$ac_try_echo"; } >&5
2746   (eval "$ac_link") 2>conftest.err
2747   ac_status=$?
2748   if test -s conftest.err; then
2749     grep -v '^ *+' conftest.err >conftest.er1
2750     cat conftest.er1 >&5
2751     mv -f conftest.er1 conftest.err
2752   fi
2753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2754   test $ac_status = 0; } && {
2755          test -z "$ac_cxx_werror_flag" ||
2756          test ! -s conftest.err
2757        } && test -s conftest$ac_exeext && {
2758          test "$cross_compiling" = yes ||
2759          test -x conftest$ac_exeext
2760        }; then :
2761   ac_retval=0
2762 else
2763   $as_echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765 
2766         ac_retval=1
2767 fi
2768   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2769   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2770   # interfere with the next link command; also delete a directory that is
2771   # left behind by Apple's compiler.  We do this before executing the actions.
2772   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2773   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2774   as_fn_set_status $ac_retval
2775 
2776 } # ac_fn_cxx_try_link
2777 
2778 # ac_fn_cxx_check_func LINENO FUNC VAR
2779 # ------------------------------------
2780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2781 ac_fn_cxx_check_func ()
2782 {
2783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2785 $as_echo_n "checking for $2... " >&6; }
2786 if eval \${$3+:} false; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h.  */
2791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2793 #define $2 innocuous_$2
2794 
2795 /* System header to define __stub macros and hopefully few prototypes,
2796     which can conflict with char $2 (); below.
2797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2798     <limits.h> exists even on freestanding compilers.  */
2799 
2800 #ifdef __STDC__
2801 # include <limits.h>
2802 #else
2803 # include <assert.h>
2804 #endif
2805 
2806 #undef $2
2807 
2808 /* Override any GCC internal prototype to avoid an error.
2809    Use char because int might match the return type of a GCC
2810    builtin and then its argument prototype would still apply.  */
2811 #ifdef __cplusplus
2812 extern "C"
2813 #endif
2814 char $2 ();
2815 /* The GNU C library defines this for functions which it implements
2816     to always fail with ENOSYS.  Some functions are actually named
2817     something starting with __ and the normal name is an alias.  */
2818 #if defined __stub_$2 || defined __stub___$2
2819 choke me
2820 #endif
2821 
2822 int
2823 main ()
2824 {
2825 return $2 ();
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 if ac_fn_cxx_try_link "$LINENO"; then :
2831   eval "$3=yes"
2832 else
2833   eval "$3=no"
2834 fi
2835 rm -f core conftest.err conftest.$ac_objext \
2836     conftest$ac_exeext conftest.$ac_ext
2837 fi
2838 eval ac_res=\$$3
2839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2840 $as_echo "$ac_res" >&6; }
2841   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842 
2843 } # ac_fn_cxx_check_func
2844 
2845 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2846 # -------------------------------------------------------
2847 # Tests whether HEADER exists and can be compiled using the include files in
2848 # INCLUDES, setting the cache variable VAR accordingly.
2849 ac_fn_c_check_header_compile ()
2850 {
2851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2853 $as_echo_n "checking for $2... " >&6; }
2854 if eval \${$3+:} false; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h.  */
2859 $4
2860 #include <$2>
2861 _ACEOF
2862 if ac_fn_c_try_compile "$LINENO"; then :
2863   eval "$3=yes"
2864 else
2865   eval "$3=no"
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 fi
2869 eval ac_res=\$$3
2870                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2871 $as_echo "$ac_res" >&6; }
2872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2873 
2874 } # ac_fn_c_check_header_compile
2875 cat >config.log <<_ACEOF
2876 This file contains any messages produced by compilers while
2877 running configure, to aid debugging if configure makes a mistake.
2878 
2879 It was created by OpenJDK $as_me jdk8, which was
2880 generated by GNU Autoconf 2.69.  Invocation command line was
2881 
2882   $ $0 $@
2883 
2884 _ACEOF
2885 exec 5>>config.log
2886 {
2887 cat <<_ASUNAME
2888 ## --------- ##
2889 ## Platform. ##
2890 ## --------- ##
2891 
2892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2897 
2898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2899 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2900 
2901 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2902 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2904 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2905 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2906 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2907 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2908 
2909 _ASUNAME
2910 
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
2915   test -z "$as_dir" && as_dir=.
2916     $as_echo "PATH: $as_dir"
2917   done
2918 IFS=$as_save_IFS
2919 
2920 } >&5
2921 
2922 cat >&5 <<_ACEOF
2923 
2924 
2925 ## ----------- ##
2926 ## Core tests. ##
2927 ## ----------- ##
2928 
2929 _ACEOF
2930 
2931 
2932 # Keep a trace of the command line.
2933 # Strip out --no-create and --no-recursion so they do not pile up.
2934 # Strip out --silent because we don't want to record it for future runs.
2935 # Also quote any args containing shell meta-characters.
2936 # Make two passes to allow for proper duplicate-argument suppression.
2937 ac_configure_args=
2938 ac_configure_args0=
2939 ac_configure_args1=
2940 ac_must_keep_next=false
2941 for ac_pass in 1 2
2942 do
2943   for ac_arg
2944   do
2945     case $ac_arg in
2946     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2947     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2948     | -silent | --silent | --silen | --sile | --sil)
2949       continue ;;
2950     *\'*)
2951       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2952     esac
2953     case $ac_pass in
2954     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2955     2)
2956       as_fn_append ac_configure_args1 " '$ac_arg'"
2957       if test $ac_must_keep_next = true; then
2958         ac_must_keep_next=false # Got value, back to normal.
2959       else
2960         case $ac_arg in
2961           *=* | --config-cache | -C | -disable-* | --disable-* \
2962           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2963           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2964           | -with-* | --with-* | -without-* | --without-* | --x)
2965             case "$ac_configure_args0 " in
2966               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2967             esac
2968             ;;
2969           -* ) ac_must_keep_next=true ;;
2970         esac
2971       fi
2972       as_fn_append ac_configure_args " '$ac_arg'"
2973       ;;
2974     esac
2975   done
2976 done
2977 { ac_configure_args0=; unset ac_configure_args0;}
2978 { ac_configure_args1=; unset ac_configure_args1;}
2979 
2980 # When interrupted or exit'd, cleanup temporary files, and complete
2981 # config.log.  We remove comments because anyway the quotes in there
2982 # would cause problems or look ugly.
2983 # WARNING: Use '\'' to represent an apostrophe within the trap.
2984 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2985 trap 'exit_status=$?
2986   # Save into config.log some information that might help in debugging.
2987   {
2988     echo
2989 
2990     $as_echo "## ---------------- ##
2991 ## Cache variables. ##
2992 ## ---------------- ##"
2993     echo
2994     # The following way of writing the cache mishandles newlines in values,
2995 (
2996   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2997     eval ac_val=\$$ac_var
2998     case $ac_val in #(
2999     *${as_nl}*)
3000       case $ac_var in #(
3001       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3003       esac
3004       case $ac_var in #(
3005       _ | IFS | as_nl) ;; #(
3006       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3007       *) { eval $ac_var=; unset $ac_var;} ;;
3008       esac ;;
3009     esac
3010   done
3011   (set) 2>&1 |
3012     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3013     *${as_nl}ac_space=\ *)
3014       sed -n \
3015         "s/'\''/'\''\\\\'\'''\''/g;
3016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3017       ;; #(
3018     *)
3019       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3020       ;;
3021     esac |
3022     sort
3023 )
3024     echo
3025 
3026     $as_echo "## ----------------- ##
3027 ## Output variables. ##
3028 ## ----------------- ##"
3029     echo
3030     for ac_var in $ac_subst_vars
3031     do
3032       eval ac_val=\$$ac_var
3033       case $ac_val in
3034       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3035       esac
3036       $as_echo "$ac_var='\''$ac_val'\''"
3037     done | sort
3038     echo
3039 
3040     if test -n "$ac_subst_files"; then
3041       $as_echo "## ------------------- ##
3042 ## File substitutions. ##
3043 ## ------------------- ##"
3044       echo
3045       for ac_var in $ac_subst_files
3046       do
3047         eval ac_val=\$$ac_var
3048         case $ac_val in
3049         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050         esac
3051         $as_echo "$ac_var='\''$ac_val'\''"
3052       done | sort
3053       echo
3054     fi
3055 
3056     if test -s confdefs.h; then
3057       $as_echo "## ----------- ##
3058 ## confdefs.h. ##
3059 ## ----------- ##"
3060       echo
3061       cat confdefs.h
3062       echo
3063     fi
3064     test "$ac_signal" != 0 &&
3065       $as_echo "$as_me: caught signal $ac_signal"
3066     $as_echo "$as_me: exit $exit_status"
3067   } >&5
3068   rm -f core *.core core.conftest.* &&
3069     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3070     exit $exit_status
3071 ' 0
3072 for ac_signal in 1 2 13 15; do
3073   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3074 done
3075 ac_signal=0
3076 
3077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3078 rm -f -r conftest* confdefs.h
3079 
3080 $as_echo "/* confdefs.h */" > confdefs.h
3081 
3082 # Predefined preprocessor variables.
3083 
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_NAME "$PACKAGE_NAME"
3086 _ACEOF
3087 
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3090 _ACEOF
3091 
3092 cat >>confdefs.h <<_ACEOF
3093 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3094 _ACEOF
3095 
3096 cat >>confdefs.h <<_ACEOF
3097 #define PACKAGE_STRING "$PACKAGE_STRING"
3098 _ACEOF
3099 
3100 cat >>confdefs.h <<_ACEOF
3101 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3102 _ACEOF
3103 
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE_URL "$PACKAGE_URL"
3106 _ACEOF
3107 
3108 
3109 # Let the site file select an alternate cache file if it wants to.
3110 # Prefer an explicitly selected file to automatically selected ones.
3111 ac_site_file1=NONE
3112 ac_site_file2=NONE
3113 if test -n "$CONFIG_SITE"; then
3114   # We do not want a PATH search for config.site.
3115   case $CONFIG_SITE in #((
3116     -*)  ac_site_file1=./$CONFIG_SITE;;
3117     */*) ac_site_file1=$CONFIG_SITE;;
3118     *)   ac_site_file1=./$CONFIG_SITE;;
3119   esac
3120 elif test "x$prefix" != xNONE; then
3121   ac_site_file1=$prefix/share/config.site
3122   ac_site_file2=$prefix/etc/config.site
3123 else
3124   ac_site_file1=$ac_default_prefix/share/config.site
3125   ac_site_file2=$ac_default_prefix/etc/config.site
3126 fi
3127 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3128 do
3129   test "x$ac_site_file" = xNONE && continue
3130   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3131     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3132 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3133     sed 's/^/| /' "$ac_site_file" >&5
3134     . "$ac_site_file" \
3135       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 as_fn_error $? "failed to load site script $ac_site_file
3138 See \`config.log' for more details" "$LINENO" 5; }
3139   fi
3140 done
3141 
3142 if test -r "$cache_file"; then
3143   # Some versions of bash will fail to source /dev/null (special files
3144   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3145   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3146     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3147 $as_echo "$as_me: loading cache $cache_file" >&6;}
3148     case $cache_file in
3149       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3150       *)                      . "./$cache_file";;
3151     esac
3152   fi
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3155 $as_echo "$as_me: creating cache $cache_file" >&6;}
3156   >$cache_file
3157 fi
3158 
3159 # Check that the precious variables saved in the cache have kept the same
3160 # value.
3161 ac_cache_corrupted=false
3162 for ac_var in $ac_precious_vars; do
3163   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3164   eval ac_new_set=\$ac_env_${ac_var}_set
3165   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3166   eval ac_new_val=\$ac_env_${ac_var}_value
3167   case $ac_old_set,$ac_new_set in
3168     set,)
3169       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3171       ac_cache_corrupted=: ;;
3172     ,set)
3173       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3175       ac_cache_corrupted=: ;;
3176     ,);;
3177     *)
3178       if test "x$ac_old_val" != "x$ac_new_val"; then
3179         # differences in whitespace do not lead to failure.
3180         ac_old_val_w=`echo x $ac_old_val`
3181         ac_new_val_w=`echo x $ac_new_val`
3182         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3183           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3185           ac_cache_corrupted=:
3186         else
3187           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3189           eval $ac_var=\$ac_old_val
3190         fi
3191         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3192 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3193         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3194 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3195       fi;;
3196   esac
3197   # Pass precious variables to config.status.
3198   if test "$ac_new_set" = set; then
3199     case $ac_new_val in
3200     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3201     *) ac_arg=$ac_var=$ac_new_val ;;
3202     esac
3203     case " $ac_configure_args " in
3204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3205       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3206     esac
3207   fi
3208 done
3209 if $ac_cache_corrupted; then
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3214   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3215 fi
3216 ## -------------------- ##
3217 ## Main body of script. ##
3218 ## -------------------- ##
3219 
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 
3226 
3227 
3228 ac_aux_dir=
3229 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3230   if test -f "$ac_dir/install-sh"; then
3231     ac_aux_dir=$ac_dir
3232     ac_install_sh="$ac_aux_dir/install-sh -c"
3233     break
3234   elif test -f "$ac_dir/install.sh"; then
3235     ac_aux_dir=$ac_dir
3236     ac_install_sh="$ac_aux_dir/install.sh -c"
3237     break
3238   elif test -f "$ac_dir/shtool"; then
3239     ac_aux_dir=$ac_dir
3240     ac_install_sh="$ac_aux_dir/shtool install -c"
3241     break
3242   fi
3243 done
3244 if test -z "$ac_aux_dir"; then
3245   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5
3246 fi
3247 
3248 # These three variables are undocumented and unsupported,
3249 # and are intended to be withdrawn in a future Autoconf release.
3250 # They can cause serious problems if a builder's source tree is in a directory
3251 # whose full name contains unusual characters.
3252 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3253 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3254 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3255 
3256 
3257 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3258 
3259 #
3260 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3261 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3262 #
3263 # This code is free software; you can redistribute it and/or modify it
3264 # under the terms of the GNU General Public License version 2 only, as
3265 # published by the Free Software Foundation.  Oracle designates this
3266 # particular file as subject to the "Classpath" exception as provided
3267 # by Oracle in the LICENSE file that accompanied this code.
3268 #
3269 # This code is distributed in the hope that it will be useful, but WITHOUT
3270 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3271 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3272 # version 2 for more details (a copy is included in the LICENSE file that
3273 # accompanied this code).
3274 #
3275 # You should have received a copy of the GNU General Public License version
3276 # 2 along with this work; if not, write to the Free Software Foundation,
3277 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3278 #
3279 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3280 # or visit www.oracle.com if you need additional information or have any
3281 # questions.
3282 #
3283 
3284 #
3285 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3286 #
3287 # This program is free software; you can redistribute it and/or modify
3288 # it under the terms of the GNU General Public License as published by
3289 # the Free Software Foundation; either version 2 of the License, or
3290 # (at your option) any later version.
3291 #
3292 # This program is distributed in the hope that it will be useful, but
3293 # WITHOUT ANY WARRANTY; without even the implied warranty of
3294 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3295 # General Public License for more details.
3296 #
3297 # You should have received a copy of the GNU General Public License
3298 # along with this program; if not, write to the Free Software
3299 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3300 #
3301 # As a special exception to the GNU General Public License, if you
3302 # distribute this file as part of a program that contains a
3303 # configuration script generated by Autoconf, you may include it under
3304 # the same distribution terms that you use for the rest of that program.
3305 
3306 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3307 # ----------------------------------
3308 # PKG_PROG_PKG_CONFIG
3309 
3310 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3311 #
3312 # Check to see whether a particular set of modules exists.  Similar
3313 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3314 #
3315 #
3316 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3317 # this or PKG_CHECK_MODULES is called, or make sure to call
3318 # PKG_CHECK_EXISTS manually
3319 # --------------------------------------------------------------
3320 
3321 
3322 
3323 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3324 # ---------------------------------------------
3325 # _PKG_CONFIG
3326 
3327 # _PKG_SHORT_ERRORS_SUPPORTED
3328 # -----------------------------
3329 # _PKG_SHORT_ERRORS_SUPPORTED
3330 
3331 
3332 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3333 # [ACTION-IF-NOT-FOUND])
3334 #
3335 #
3336 # Note that if there is a possibility the first call to
3337 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3338 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3339 #
3340 #
3341 # --------------------------------------------------------------
3342 # PKG_CHECK_MODULES
3343 
3344 
3345 # Include these first...
3346 #
3347 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3348 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3349 #
3350 # This code is free software; you can redistribute it and/or modify it
3351 # under the terms of the GNU General Public License version 2 only, as
3352 # published by the Free Software Foundation.  Oracle designates this
3353 # particular file as subject to the "Classpath" exception as provided
3354 # by Oracle in the LICENSE file that accompanied this code.
3355 #
3356 # This code is distributed in the hope that it will be useful, but WITHOUT
3357 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3358 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3359 # version 2 for more details (a copy is included in the LICENSE file that
3360 # accompanied this code).
3361 #
3362 # You should have received a copy of the GNU General Public License version
3363 # 2 along with this work; if not, write to the Free Software Foundation,
3364 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3365 #
3366 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3367 # or visit www.oracle.com if you need additional information or have any
3368 # questions.
3369 #
3370 
3371 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3372 # If so, then append $1 to $2 \
3373 # Also set JVM_ARG_OK to true/false depending on outcome.
3374 
3375 
3376 # Appends a string to a path variable, only adding the : when needed.
3377 
3378 
3379 # Prepends a string to a path variable, only adding the : when needed.
3380 
3381 
3382 # This will make sure the given variable points to a full and proper
3383 # path. This means:
3384 # 1) There will be no spaces in the path. On posix platforms,
3385 #    spaces in the path will result in an error. On Windows,
3386 #    the path will be rewritten using short-style to be space-free.
3387 # 2) The path will be absolute, and it will be in unix-style (on
3388 #     cygwin).
3389 # $1: The name of the variable to fix
3390 
3391 
3392 # This will make sure the given variable points to a executable
3393 # with a full and proper path. This means:
3394 # 1) There will be no spaces in the path. On posix platforms,
3395 #    spaces in the path will result in an error. On Windows,
3396 #    the path will be rewritten using short-style to be space-free.
3397 # 2) The path will be absolute, and it will be in unix-style (on
3398 #     cygwin).
3399 # Any arguments given to the executable is preserved.
3400 # If the input variable does not have a directory specification, then
3401 # it need to be in the PATH.
3402 # $1: The name of the variable to fix
3403 
3404 
3405 
3406 
3407 # Register a --with argument but mark it as deprecated
3408 # $1: The name of the with argument to deprecate, not including --with-
3409 
3410 
3411 # Register a --enable argument but mark it as deprecated
3412 # $1: The name of the with argument to deprecate, not including --enable-
3413 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3414 
3415 
3416 
3417 
3418 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3419 # $1: variable to check
3420 
3421 
3422 # Check that there are no unprocessed overridden variables left.
3423 # If so, they are an incorrect argument and we will exit with an error.
3424 
3425 
3426 # Setup a tool for the given variable. If correctly specified by the user,
3427 # use that value, otherwise search for the tool using the supplied code snippet.
3428 # $1: variable to set
3429 # $2: code snippet to call to look for the tool
3430 
3431 
3432 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3433 # $1: variable to set
3434 # $2: executable name (or list of names) to look for
3435 
3436 
3437 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3438 # $1: variable to set
3439 # $2: executable name (or list of names) to look for
3440 
3441 
3442 # Like BASIC_PATH_PROGS but fails if no tool was found.
3443 # $1: variable to set
3444 # $2: executable name (or list of names) to look for
3445 
3446 
3447 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3448 # $1: variable to set
3449 # $2: autoconf macro to call to look for the special tool
3450 
3451 
3452 # Setup the most fundamental tools that relies on not much else to set up,
3453 # but is used by much of the early bootstrap code.
3454 
3455 
3456 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3457 
3458 
3459 # Evaluates platform specific overrides for devkit variables.
3460 # $1: Name of variable
3461 
3462 
3463 
3464 
3465 
3466 
3467 
3468 
3469 
3470 #%%% Simple tools %%%
3471 
3472 # Check if we have found a usable version of make
3473 # $1: the path to a potential make binary (or empty)
3474 # $2: the description on how we found this
3475 
3476 
3477 # Goes looking for a usable version of GNU make.
3478 
3479 
3480 
3481 
3482 
3483 
3484 # Check if build directory is on local disk. If not possible to determine,
3485 # we prefer to claim it's local.
3486 # Argument 1: directory to test
3487 # Argument 2: what to do if it is on local disk
3488 # Argument 3: what to do otherwise (remote disk or failure)
3489 
3490 
3491 # Check that source files have basic read permissions set. This might
3492 # not be the case in cygwin in certain conditions.
3493 
3494 
3495 
3496 
3497 #
3498 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3499 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3500 #
3501 # This code is free software; you can redistribute it and/or modify it
3502 # under the terms of the GNU General Public License version 2 only, as
3503 # published by the Free Software Foundation.  Oracle designates this
3504 # particular file as subject to the "Classpath" exception as provided
3505 # by Oracle in the LICENSE file that accompanied this code.
3506 #
3507 # This code is distributed in the hope that it will be useful, but WITHOUT
3508 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3509 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3510 # version 2 for more details (a copy is included in the LICENSE file that
3511 # accompanied this code).
3512 #
3513 # You should have received a copy of the GNU General Public License version
3514 # 2 along with this work; if not, write to the Free Software Foundation,
3515 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3516 #
3517 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3518 # or visit www.oracle.com if you need additional information or have any
3519 # questions.
3520 #
3521 
3522 
3523 
3524 
3525 
3526 # Helper function which possibly converts a path using DOS-style short mode.
3527 # If so, the updated path is stored in $new_path.
3528 # $1: The path to check
3529 
3530 
3531 # Helper function which possibly converts a path using DOS-style short mode.
3532 # If so, the updated path is stored in $new_path.
3533 # $1: The path to check
3534 
3535 
3536 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3537 # and could probably be heavily simplified. However, all changes in this
3538 # area tend to need lot of testing in different scenarios, and in lack of
3539 # proper unit testing, cleaning this up has not been deemed worth the effort
3540 # at the moment.
3541 
3542 
3543 
3544 
3545 
3546 
3547 
3548 
3549 
3550 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3551 
3552 
3553 
3554 
3555 #
3556 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3557 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3558 #
3559 # This code is free software; you can redistribute it and/or modify it
3560 # under the terms of the GNU General Public License version 2 only, as
3561 # published by the Free Software Foundation.  Oracle designates this
3562 # particular file as subject to the "Classpath" exception as provided
3563 # by Oracle in the LICENSE file that accompanied this code.
3564 #
3565 # This code is distributed in the hope that it will be useful, but WITHOUT
3566 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3567 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3568 # version 2 for more details (a copy is included in the LICENSE file that
3569 # accompanied this code).
3570 #
3571 # You should have received a copy of the GNU General Public License version
3572 # 2 along with this work; if not, write to the Free Software Foundation,
3573 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3574 #
3575 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3576 # or visit www.oracle.com if you need additional information or have any
3577 # questions.
3578 #
3579 
3580 
3581 
3582 
3583 
3584 
3585 
3586 
3587 
3588 
3589 
3590 # ... then the rest
3591 #
3592 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3593 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3594 #
3595 # This code is free software; you can redistribute it and/or modify it
3596 # under the terms of the GNU General Public License version 2 only, as
3597 # published by the Free Software Foundation.  Oracle designates this
3598 # particular file as subject to the "Classpath" exception as provided
3599 # by Oracle in the LICENSE file that accompanied this code.
3600 #
3601 # This code is distributed in the hope that it will be useful, but WITHOUT
3602 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3603 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3604 # version 2 for more details (a copy is included in the LICENSE file that
3605 # accompanied this code).
3606 #
3607 # You should have received a copy of the GNU General Public License version
3608 # 2 along with this work; if not, write to the Free Software Foundation,
3609 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3610 #
3611 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3612 # or visit www.oracle.com if you need additional information or have any
3613 # questions.
3614 #
3615 
3616 # Execute the check given as argument, and verify the result
3617 # If the Boot JDK was previously found, do nothing
3618 # $1 A command line (typically autoconf macro) to execute
3619 
3620 
3621 # Test: Is bootjdk explicitely set by command line arguments?
3622 
3623 
3624 # Test: Is bootjdk available from builddeps?
3625 
3626 
3627 # Test: Is $JAVA_HOME set?
3628 
3629 
3630 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3631 
3632 
3633 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3634 
3635 
3636 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3637 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3638 # $1 = Path to directory containing jdk installations.
3639 # $2 = String to append to the found JDK directory to get the proper JDK home
3640 
3641 
3642 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3643 # environmental variable as base for where to look.
3644 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3645 
3646 
3647 # Test: Is there a JDK installed in default, well-known locations?
3648 
3649 
3650 # Check that a command-line tool in the Boot JDK is correct
3651 # $1 = name of variable to assign
3652 # $2 = name of binary
3653 
3654 
3655 ###############################################################################
3656 #
3657 # We need a Boot JDK to bootstrap the build.
3658 #
3659 
3660 
3661 
3662 
3663 
3664 #
3665 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3666 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3667 #
3668 # This code is free software; you can redistribute it and/or modify it
3669 # under the terms of the GNU General Public License version 2 only, as
3670 # published by the Free Software Foundation.  Oracle designates this
3671 # particular file as subject to the "Classpath" exception as provided
3672 # by Oracle in the LICENSE file that accompanied this code.
3673 #
3674 # This code is distributed in the hope that it will be useful, but WITHOUT
3675 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3676 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3677 # version 2 for more details (a copy is included in the LICENSE file that
3678 # accompanied this code).
3679 #
3680 # You should have received a copy of the GNU General Public License version
3681 # 2 along with this work; if not, write to the Free Software Foundation,
3682 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3683 #
3684 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3685 # or visit www.oracle.com if you need additional information or have any
3686 # questions.
3687 #
3688 
3689 
3690 
3691 
3692 
3693 
3694 
3695 
3696 
3697 
3698 
3699 
3700 
3701 
3702 
3703 
3704 
3705 
3706 
3707 
3708 #
3709 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3710 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3711 #
3712 # This code is free software; you can redistribute it and/or modify it
3713 # under the terms of the GNU General Public License version 2 only, as
3714 # published by the Free Software Foundation.  Oracle designates this
3715 # particular file as subject to the "Classpath" exception as provided
3716 # by Oracle in the LICENSE file that accompanied this code.
3717 #
3718 # This code is distributed in the hope that it will be useful, but WITHOUT
3719 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3720 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3721 # version 2 for more details (a copy is included in the LICENSE file that
3722 # accompanied this code).
3723 #
3724 # You should have received a copy of the GNU General Public License version
3725 # 2 along with this work; if not, write to the Free Software Foundation,
3726 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3727 #
3728 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3729 # or visit www.oracle.com if you need additional information or have any
3730 # questions.
3731 #
3732 
3733 
3734 
3735 
3736 
3737 # Documentation on common flags used for solstudio in HIGHEST.
3738 #
3739 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3740 #          done with care, there are some assumptions below that need to
3741 #          be understood about the use of pointers, and IEEE behavior.
3742 #
3743 # -fns: Use non-standard floating point mode (not IEEE 754)
3744 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3745 # -fsingle: Use single precision floating point with 'float'
3746 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3747 #   (Source with excessing pointer casting and data access with mixed
3748 #    pointer types are not recommended)
3749 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3750 #   (If you expect perfect errno behavior, do not use this)
3751 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3752 # -xrestrict: Pointer parameters to functions do not overlap
3753 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3754 #    If you pass in multiple pointers to the same data, do not use this)
3755 # -xlibmil: Inline some library routines
3756 #   (If you expect perfect errno behavior, do not use this)
3757 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3758 #   (If you expect perfect errno behavior, do not use this)
3759 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3760 
3761     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3762     # Bug?
3763     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3764     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3765     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3766     #fi
3767 
3768 
3769 
3770 
3771 
3772 
3773 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3774 #                                  [RUN-IF-FALSE])
3775 # ------------------------------------------------------------
3776 # Check that the C compiler supports an argument
3777 
3778 
3779 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3780 #                                    [RUN-IF-FALSE])
3781 # ------------------------------------------------------------
3782 # Check that the C++ compiler supports an argument
3783 
3784 
3785 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3786 #                                [RUN-IF-FALSE])
3787 # ------------------------------------------------------------
3788 # Check that the C and C++ compilers support an argument
3789 
3790 
3791 
3792 
3793 
3794 
3795 
3796 #
3797 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3798 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3799 #
3800 # This code is free software; you can redistribute it and/or modify it
3801 # under the terms of the GNU General Public License version 2 only, as
3802 # published by the Free Software Foundation.  Oracle designates this
3803 # particular file as subject to the "Classpath" exception as provided
3804 # by Oracle in the LICENSE file that accompanied this code.
3805 #
3806 # This code is distributed in the hope that it will be useful, but WITHOUT
3807 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3808 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3809 # version 2 for more details (a copy is included in the LICENSE file that
3810 # accompanied this code).
3811 #
3812 # You should have received a copy of the GNU General Public License version
3813 # 2 along with this work; if not, write to the Free Software Foundation,
3814 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3815 #
3816 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3817 # or visit www.oracle.com if you need additional information or have any
3818 # questions.
3819 #
3820 
3821 
3822 
3823 
3824 
3825 cygwin_help() {
3826   case $1 in
3827     unzip)
3828       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3829       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3830       ;;
3831     zip)
3832       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3833       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3834       ;;
3835     make)
3836       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3837       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3838       ;;
3839     freetype)
3840       HELP_MSG="
3841 The freetype library can now be build during the configure process.
3842 Download the freetype sources and unpack them into an arbitrary directory:
3843 
3844 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3845 tar -xzf freetype-2.5.3.tar.gz
3846 
3847 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3848 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3849 builds or into '<freetype_src>/lib32' for 32-bit builds.
3850 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3851 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3852       ;;
3853   esac
3854 }
3855 
3856 msys_help() {
3857   PKGHANDLER_COMMAND=""
3858 }
3859 
3860 apt_help() {
3861   case $1 in
3862     devkit)
3863       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3864     openjdk)
3865       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3866     alsa)
3867       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3868     cups)
3869       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3870     fontconfig)
3871       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
3872     freetype)
3873       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3874     pulse)
3875       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3876     x11)
3877       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3878     ccache)
3879       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3880   esac
3881 }
3882 
3883 yum_help() {
3884   case $1 in
3885     devkit)
3886       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3887     openjdk)
3888       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3889     alsa)
3890       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3891     cups)
3892       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3893     fontconfig)
3894       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
3895     freetype)
3896       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3897     pulse)
3898       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3899     x11)
3900       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3901     ccache)
3902       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3903   esac
3904 }
3905 
3906 port_help() {
3907   PKGHANDLER_COMMAND=""
3908 }
3909 
3910 pkgutil_help() {
3911   PKGHANDLER_COMMAND=""
3912 }
3913 
3914 pkgadd_help() {
3915   PKGHANDLER_COMMAND=""
3916 }
3917 
3918 # This function will check if we're called from the "configure" wrapper while
3919 # printing --help. If so, we will print out additional information that can
3920 # only be extracted within the autoconf script, and then exit. This must be
3921 # called at the very beginning in configure.ac.
3922 
3923 
3924 
3925 
3926 #
3927 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3928 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3929 #
3930 # This code is free software; you can redistribute it and/or modify it
3931 # under the terms of the GNU General Public License version 2 only, as
3932 # published by the Free Software Foundation.  Oracle designates this
3933 # particular file as subject to the "Classpath" exception as provided
3934 # by Oracle in the LICENSE file that accompanied this code.
3935 #
3936 # This code is distributed in the hope that it will be useful, but WITHOUT
3937 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3938 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3939 # version 2 for more details (a copy is included in the LICENSE file that
3940 # accompanied this code).
3941 #
3942 # You should have received a copy of the GNU General Public License version
3943 # 2 along with this work; if not, write to the Free Software Foundation,
3944 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3945 #
3946 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3947 # or visit www.oracle.com if you need additional information or have any
3948 # questions.
3949 #
3950 
3951 
3952 
3953 
3954 
3955 
3956 
3957 
3958 
3959 
3960 ###############################################################################
3961 #
3962 # Should we build only OpenJDK even if closed sources are present?
3963 #
3964 
3965 
3966 
3967 
3968 ###############################################################################
3969 #
3970 # Setup version numbers
3971 #
3972 
3973 
3974 
3975 
3976 
3977 
3978 # Support for customization of the build process. Some build files
3979 # will include counterparts from this location, if they exist. This allows
3980 # for a degree of customization of the build targets and the rules/recipes
3981 # to create them
3982 
3983 # Check whether --with-custom-make-dir was given.
3984 if test "${with_custom_make_dir+set}" = set; then :
3985   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3986 fi
3987 
3988 
3989 
3990 #
3991 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3992 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3993 #
3994 # This code is free software; you can redistribute it and/or modify it
3995 # under the terms of the GNU General Public License version 2 only, as
3996 # published by the Free Software Foundation.  Oracle designates this
3997 # particular file as subject to the "Classpath" exception as provided
3998 # by Oracle in the LICENSE file that accompanied this code.
3999 #
4000 # This code is distributed in the hope that it will be useful, but WITHOUT
4001 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4002 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4003 # version 2 for more details (a copy is included in the LICENSE file that
4004 # accompanied this code).
4005 #
4006 # You should have received a copy of the GNU General Public License version
4007 # 2 along with this work; if not, write to the Free Software Foundation,
4008 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4009 #
4010 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4011 # or visit www.oracle.com if you need additional information or have any
4012 # questions.
4013 #
4014 
4015 
4016 
4017 
4018 
4019 
4020 
4021 
4022 
4023 
4024 
4025 
4026 
4027 
4028 
4029 ################################################################################
4030 # Setup fontconfig
4031 ################################################################################
4032 
4033 
4034 
4035 
4036 
4037 
4038 
4039 
4040 #
4041 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4042 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4043 #
4044 # This code is free software; you can redistribute it and/or modify it
4045 # under the terms of the GNU General Public License version 2 only, as
4046 # published by the Free Software Foundation.  Oracle designates this
4047 # particular file as subject to the "Classpath" exception as provided
4048 # by Oracle in the LICENSE file that accompanied this code.
4049 #
4050 # This code is distributed in the hope that it will be useful, but WITHOUT
4051 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4052 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4053 # version 2 for more details (a copy is included in the LICENSE file that
4054 # accompanied this code).
4055 #
4056 # You should have received a copy of the GNU General Public License version
4057 # 2 along with this work; if not, write to the Free Software Foundation,
4058 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4059 #
4060 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4061 # or visit www.oracle.com if you need additional information or have any
4062 # questions.
4063 #
4064 
4065 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4066 # Converts autoconf style CPU name to OpenJDK style, into
4067 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4068 
4069 
4070 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4071 # Converts autoconf style OS name to OpenJDK style, into
4072 # VAR_OS and VAR_OS_API.
4073 
4074 
4075 # Expects $host_os $host_cpu $build_os and $build_cpu
4076 # and $with_target_bits to have been setup!
4077 #
4078 # Translate the standard triplet(quadruplet) definition
4079 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4080 # OPENJDK_BUILD_OS, etc.
4081 
4082 
4083 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4084 # accordingly. Must be done after setting up build and target system, but before
4085 # doing anything else with these values.
4086 
4087 
4088 # Setup the legacy variables, for controlling the old makefiles.
4089 #
4090 
4091 
4092 
4093 
4094 #%%% Build and target systems %%%
4095 
4096 
4097 
4098 
4099 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4100 # Add -mX to various FLAGS variables.
4101 
4102 
4103 
4104 
4105 
4106 
4107 #
4108 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4109 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4110 #
4111 # This code is free software; you can redistribute it and/or modify it
4112 # under the terms of the GNU General Public License version 2 only, as
4113 # published by the Free Software Foundation.  Oracle designates this
4114 # particular file as subject to the "Classpath" exception as provided
4115 # by Oracle in the LICENSE file that accompanied this code.
4116 #
4117 # This code is distributed in the hope that it will be useful, but WITHOUT
4118 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4119 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4120 # version 2 for more details (a copy is included in the LICENSE file that
4121 # accompanied this code).
4122 #
4123 # You should have received a copy of the GNU General Public License version
4124 # 2 along with this work; if not, write to the Free Software Foundation,
4125 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4126 #
4127 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4128 # or visit www.oracle.com if you need additional information or have any
4129 # questions.
4130 #
4131 
4132 
4133 
4134 
4135 
4136 
4137 
4138 
4139 #
4140 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4141 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4142 #
4143 # This code is free software; you can redistribute it and/or modify it
4144 # under the terms of the GNU General Public License version 2 only, as
4145 # published by the Free Software Foundation.  Oracle designates this
4146 # particular file as subject to the "Classpath" exception as provided
4147 # by Oracle in the LICENSE file that accompanied this code.
4148 #
4149 # This code is distributed in the hope that it will be useful, but WITHOUT
4150 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4151 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4152 # version 2 for more details (a copy is included in the LICENSE file that
4153 # accompanied this code).
4154 #
4155 # You should have received a copy of the GNU General Public License version
4156 # 2 along with this work; if not, write to the Free Software Foundation,
4157 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4158 #
4159 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4160 # or visit www.oracle.com if you need additional information or have any
4161 # questions.
4162 #
4163 
4164 ########################################################################
4165 # This file is responsible for detecting, verifying and setting up the
4166 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4167 # proper paths to the binaries, but it will not setup any flags.
4168 #
4169 # The binaries used is determined by the toolchain type, which is the family of
4170 # compilers and related tools that are used.
4171 ########################################################################
4172 
4173 
4174 # All valid toolchains, regardless of platform (used by help.m4)
4175 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4176 
4177 # These toolchains are valid on different platforms
4178 VALID_TOOLCHAINS_linux="gcc clang"
4179 VALID_TOOLCHAINS_solaris="solstudio"
4180 VALID_TOOLCHAINS_macosx="gcc clang"
4181 VALID_TOOLCHAINS_aix="xlc"
4182 VALID_TOOLCHAINS_windows="microsoft"
4183 
4184 # Toolchain descriptions
4185 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4186 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4187 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4188 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4189 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4190 
4191 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4192 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4193 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4194 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4195 
4196 
4197 # Check if the configured compiler (C and C++) is of a specific version or
4198 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4199 #
4200 # Arguments:
4201 #   $1:   The version string to check against the found version
4202 #   $2:   block to run if the compiler is at least this version (>=)
4203 #   $3:   block to run if the compiler is older than this version (<)
4204 
4205 
4206 
4207 # Setup a number of variables describing how native output files are
4208 # named on this platform/toolchain.
4209 
4210 
4211 # Determine which toolchain type to use, and make sure it is valid for this
4212 # platform. Setup various information about the selected toolchain.
4213 
4214 
4215 # Before we start detecting the toolchain executables, we might need some
4216 # special setup, e.g. additional paths etc.
4217 
4218 
4219 # Restore path, etc
4220 
4221 
4222 # Check if a compiler is of the toolchain type we expect, and save the version
4223 # information from it. If the compiler does not match the expected type,
4224 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4225 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4226 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4227 #
4228 # $1 = compiler to test (CC or CXX)
4229 # $2 = human readable name of compiler (C or C++)
4230 
4231 
4232 
4233 # Try to locate the given C or C++ compiler in the path, or otherwise.
4234 #
4235 # $1 = compiler to test (CC or CXX)
4236 # $2 = human readable name of compiler (C or C++)
4237 # $3 = list of compiler names to search for
4238 
4239 
4240 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4241 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4242 # archiver (AR). Verify that the compilers are correct according to the
4243 # toolchain type.
4244 
4245 
4246 # Setup additional tools that is considered a part of the toolchain, but not the
4247 # core part. Many of these are highly platform-specific and do not exist,
4248 # and/or are not needed on all platforms.
4249 
4250 
4251 # Setup the build tools (i.e, the compiler and linker used to build programs
4252 # that should be run on the build platform, not the target platform, as a build
4253 # helper). Since the non-cross-compile case uses the normal, target compilers
4254 # for this, we can only do this after these have been setup.
4255 
4256 
4257 # Setup legacy variables that are still needed as alternative ways to refer to
4258 # parts of the toolchain.
4259 
4260 
4261 # Do some additional checks on the detected tools.
4262 
4263 
4264 # Setup the JTReg Regression Test Harness.
4265 
4266 
4267 
4268 #
4269 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4270 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4271 #
4272 # This code is free software; you can redistribute it and/or modify it
4273 # under the terms of the GNU General Public License version 2 only, as
4274 # published by the Free Software Foundation.  Oracle designates this
4275 # particular file as subject to the "Classpath" exception as provided
4276 # by Oracle in the LICENSE file that accompanied this code.
4277 #
4278 # This code is distributed in the hope that it will be useful, but WITHOUT
4279 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4280 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4281 # version 2 for more details (a copy is included in the LICENSE file that
4282 # accompanied this code).
4283 #
4284 # You should have received a copy of the GNU General Public License version
4285 # 2 along with this work; if not, write to the Free Software Foundation,
4286 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4287 #
4288 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4289 # or visit www.oracle.com if you need additional information or have any
4290 # questions.
4291 #
4292 
4293 ################################################################################
4294 # The order of these defines the priority by which we try to find them.
4295 VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4296 
4297 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4298 VS_VERSION_INTERNAL_2010=100
4299 VS_MSVCR_2010=msvcr100.dll
4300 # We don't use msvcp on Visual Studio 2010
4301 #VS_MSVCP_2010=msvcp100.dll
4302 VS_ENVVAR_2010="VS100COMNTOOLS"
4303 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4304 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4305 VS_VS_PLATFORM_NAME_2010="v100"
4306 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4307 
4308 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4309 VS_VERSION_INTERNAL_2012=110
4310 VS_MSVCR_2012=msvcr110.dll
4311 VS_MSVCP_2012=msvcp110.dll
4312 VS_ENVVAR_2012="VS110COMNTOOLS"
4313 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4314 VS_SDK_INSTALLDIR_2012=
4315 VS_VS_PLATFORM_NAME_2012="v110"
4316 VS_SDK_PLATFORM_NAME_2012=
4317 
4318 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4319 VS_VERSION_INTERNAL_2013=120
4320 VS_MSVCR_2013=msvcr120.dll
4321 VS_MSVCP_2013=msvcp120.dll
4322 VS_ENVVAR_2013="VS120COMNTOOLS"
4323 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4324 VS_SDK_INSTALLDIR_2013=
4325 VS_VS_PLATFORM_NAME_2013="v120"
4326 VS_SDK_PLATFORM_NAME_2013=
4327 
4328 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING"
4329 VS_VERSION_INTERNAL_2015=140
4330 VS_MSVCR_2015=vcruntime140.dll
4331 VS_MSVCP_2015=msvcp140.dll
4332 VS_ENVVAR_2015="VS140COMNTOOLS"
4333 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4334 VS_SDK_INSTALLDIR_2015=
4335 VS_VS_PLATFORM_NAME_2015="v140"
4336 VS_SDK_PLATFORM_NAME_2015=
4337 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by
4338 # explicitly specifying Windows Kit 8.1 to be used.
4339 VS_ENV_ARGS_2015="8.1"
4340 
4341 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING"
4342 VS_VERSION_INTERNAL_2017=141
4343 VS_MSVCR_2017=vcruntime140.dll
4344 VS_MSVCP_2017=msvcp140.dll
4345 VS_ENVVAR_2017="VS150COMNTOOLS"
4346 VS_USE_UCRT_2017="true"
4347 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
4348 VS_EDITIONS_2017="Community Professional Enterprise"
4349 VS_SDK_INSTALLDIR_2017=
4350 VS_VS_PLATFORM_NAME_2017="v141"
4351 VS_SDK_PLATFORM_NAME_2017=
4352 
4353 ################################################################################
4354 
4355 
4356 
4357 ################################################################################
4358 
4359 
4360 
4361 ################################################################################
4362 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4363 # build environment and assigns it to VS_ENV_CMD
4364 
4365 
4366 ################################################################################
4367 
4368 
4369 
4370 ################################################################################
4371 # Check if the VS env variables were setup prior to running configure.
4372 # If not, then find vcvarsall.bat and run it automatically, and integrate
4373 # the set env variables into the spec file.
4374 
4375 
4376 
4377 
4378 
4379 
4380 
4381 
4382 
4383 
4384 
4385 
4386 
4387 
4388 # This line needs to be here, verbatim, after all includes and the dummy hook
4389 # definitions. It is replaced with custom functionality when building
4390 # custom sources.
4391 #CUSTOM_AUTOCONF_INCLUDE
4392 
4393 # Do not change or remove the following line, it is needed for consistency checks:
4394 DATE_WHEN_GENERATED=1582132239
4395 
4396 ###############################################################################
4397 #
4398 # Initialization / Boot-strapping
4399 #
4400 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4401 # thus it jumps back and forth, each time gaining something needed later on.
4402 #
4403 ###############################################################################
4404 
4405 # If we are requested to print additional help, do that and then exit.
4406 # This must be the very first call.
4407 
4408   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4409     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4410     $PRINTF "Which are valid to use depends on the build platform.\n"
4411     for toolchain in $VALID_TOOLCHAINS_all; do
4412       # Use indirect variable referencing
4413       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4414       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4415       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4416     done
4417 
4418     # And now exit directly
4419     exit 0
4420   fi
4421 
4422 
4423 # Basic initialization that must happen first of all in the normal process.
4424 
4425   # Save the original command line. This is passed to us by the wrapper configure script.
4426 
4427   DATE_WHEN_CONFIGURED=`LANG=C date`
4428 
4429   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4430 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4432 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4433 
4434 
4435   # Start with tools that do not need have cross compilation support
4436   # and can be expected to be found in the default PATH. These tools are
4437   # used by configure. Nor are these tools expected to be found in the
4438   # devkit from the builddeps server either, since they are
4439   # needed to download the devkit.
4440 
4441   # First are all the simple required tools.
4442 
4443 
4444 
4445   # Publish this variable in the help.
4446 
4447 
4448   if test "x$BASENAME" = x; then
4449     # The variable is not set by user, try to locate tool using the code snippet
4450     for ac_prog in basename
4451 do
4452   # Extract the first word of "$ac_prog", so it can be a program name with args.
4453 set dummy $ac_prog; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_path_BASENAME+:} false; then :
4457   $as_echo_n "(cached) " >&6
4458 else
4459   case $BASENAME in
4460   [\\/]* | ?:[\\/]*)
4461   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4462   ;;
4463   *)
4464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469     for ac_exec_ext in '' $ac_executable_extensions; do
4470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476   done
4477 IFS=$as_save_IFS
4478 
4479   ;;
4480 esac
4481 fi
4482 BASENAME=$ac_cv_path_BASENAME
4483 if test -n "$BASENAME"; then
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4485 $as_echo "$BASENAME" >&6; }
4486 else
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490 
4491 
4492   test -n "$BASENAME" && break
4493 done
4494 
4495   else
4496     # The variable is set, but is it from the command line or the environment?
4497 
4498     # Try to remove the string !BASENAME! from our list.
4499     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4500     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4501       # If it failed, the variable was not from the command line. Ignore it,
4502       # but warn the user (except for BASH, which is always set by the calling BASH).
4503       if test "xBASENAME" != xBASH; then
4504         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4505 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4506       fi
4507       # Try to locate tool using the code snippet
4508       for ac_prog in basename
4509 do
4510   # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_path_BASENAME+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   case $BASENAME in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4520   ;;
4521   *)
4522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527     for ac_exec_ext in '' $ac_executable_extensions; do
4528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534   done
4535 IFS=$as_save_IFS
4536 
4537   ;;
4538 esac
4539 fi
4540 BASENAME=$ac_cv_path_BASENAME
4541 if test -n "$BASENAME"; then
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4543 $as_echo "$BASENAME" >&6; }
4544 else
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548 
4549 
4550   test -n "$BASENAME" && break
4551 done
4552 
4553     else
4554       # If it succeeded, then it was overridden by the user. We will use it
4555       # for the tool.
4556 
4557       # First remove it from the list of overridden variables, so we can test
4558       # for unknown variables in the end.
4559       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4560 
4561       # Check if the provided tool contains a complete path.
4562       tool_specified="$BASENAME"
4563       tool_basename="${tool_specified##*/}"
4564       if test "x$tool_basename" = "x$tool_specified"; then
4565         # A command without a complete path is provided, search $PATH.
4566         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4567 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4568         # Extract the first word of "$tool_basename", so it can be a program name with args.
4569 set dummy $tool_basename; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if ${ac_cv_path_BASENAME+:} false; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   case $BASENAME in
4576   [\\/]* | ?:[\\/]*)
4577   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4578   ;;
4579   *)
4580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585     for ac_exec_ext in '' $ac_executable_extensions; do
4586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592   done
4593 IFS=$as_save_IFS
4594 
4595   ;;
4596 esac
4597 fi
4598 BASENAME=$ac_cv_path_BASENAME
4599 if test -n "$BASENAME"; then
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4601 $as_echo "$BASENAME" >&6; }
4602 else
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 fi
4606 
4607 
4608         if test "x$BASENAME" = x; then
4609           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4610         fi
4611       else
4612         # Otherwise we believe it is a complete path. Use it as it is.
4613         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4614 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4616 $as_echo_n "checking for BASENAME... " >&6; }
4617         if test ! -x "$tool_specified"; then
4618           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4619 $as_echo "not found" >&6; }
4620           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4621         fi
4622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4623 $as_echo "$tool_specified" >&6; }
4624       fi
4625     fi
4626   fi
4627 
4628 
4629 
4630   if test "x$BASENAME" = x; then
4631     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4632   fi
4633 
4634 
4635 
4636 
4637 
4638   # Publish this variable in the help.
4639 
4640 
4641   if test "x$BASH" = x; then
4642     # The variable is not set by user, try to locate tool using the code snippet
4643     for ac_prog in bash
4644 do
4645   # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if ${ac_cv_path_BASH+:} false; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   case $BASH in
4653   [\\/]* | ?:[\\/]*)
4654   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4655   ;;
4656   *)
4657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671 
4672   ;;
4673 esac
4674 fi
4675 BASH=$ac_cv_path_BASH
4676 if test -n "$BASH"; then
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4678 $as_echo "$BASH" >&6; }
4679 else
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683 
4684 
4685   test -n "$BASH" && break
4686 done
4687 
4688   else
4689     # The variable is set, but is it from the command line or the environment?
4690 
4691     # Try to remove the string !BASH! from our list.
4692     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4693     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4694       # If it failed, the variable was not from the command line. Ignore it,
4695       # but warn the user (except for BASH, which is always set by the calling BASH).
4696       if test "xBASH" != xBASH; then
4697         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4698 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4699       fi
4700       # Try to locate tool using the code snippet
4701       for ac_prog in bash
4702 do
4703   # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy $ac_prog; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if ${ac_cv_path_BASH+:} false; then :
4708   $as_echo_n "(cached) " >&6
4709 else
4710   case $BASH in
4711   [\\/]* | ?:[\\/]*)
4712   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4713   ;;
4714   *)
4715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718   IFS=$as_save_IFS
4719   test -z "$as_dir" && as_dir=.
4720     for ac_exec_ext in '' $ac_executable_extensions; do
4721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724     break 2
4725   fi
4726 done
4727   done
4728 IFS=$as_save_IFS
4729 
4730   ;;
4731 esac
4732 fi
4733 BASH=$ac_cv_path_BASH
4734 if test -n "$BASH"; then
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4736 $as_echo "$BASH" >&6; }
4737 else
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741 
4742 
4743   test -n "$BASH" && break
4744 done
4745 
4746     else
4747       # If it succeeded, then it was overridden by the user. We will use it
4748       # for the tool.
4749 
4750       # First remove it from the list of overridden variables, so we can test
4751       # for unknown variables in the end.
4752       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4753 
4754       # Check if the provided tool contains a complete path.
4755       tool_specified="$BASH"
4756       tool_basename="${tool_specified##*/}"
4757       if test "x$tool_basename" = "x$tool_specified"; then
4758         # A command without a complete path is provided, search $PATH.
4759         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4760 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4761         # Extract the first word of "$tool_basename", so it can be a program name with args.
4762 set dummy $tool_basename; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_path_BASH+:} false; then :
4766   $as_echo_n "(cached) " >&6
4767 else
4768   case $BASH in
4769   [\\/]* | ?:[\\/]*)
4770   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4771   ;;
4772   *)
4773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776   IFS=$as_save_IFS
4777   test -z "$as_dir" && as_dir=.
4778     for ac_exec_ext in '' $ac_executable_extensions; do
4779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782     break 2
4783   fi
4784 done
4785   done
4786 IFS=$as_save_IFS
4787 
4788   ;;
4789 esac
4790 fi
4791 BASH=$ac_cv_path_BASH
4792 if test -n "$BASH"; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4794 $as_echo "$BASH" >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799 
4800 
4801         if test "x$BASH" = x; then
4802           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4803         fi
4804       else
4805         # Otherwise we believe it is a complete path. Use it as it is.
4806         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4807 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4809 $as_echo_n "checking for BASH... " >&6; }
4810         if test ! -x "$tool_specified"; then
4811           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4812 $as_echo "not found" >&6; }
4813           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4814         fi
4815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4816 $as_echo "$tool_specified" >&6; }
4817       fi
4818     fi
4819   fi
4820 
4821 
4822 
4823   if test "x$BASH" = x; then
4824     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4825   fi
4826 
4827 
4828 
4829 
4830 
4831   # Publish this variable in the help.
4832 
4833 
4834   if test "x$CAT" = x; then
4835     # The variable is not set by user, try to locate tool using the code snippet
4836     for ac_prog in cat
4837 do
4838   # Extract the first word of "$ac_prog", so it can be a program name with args.
4839 set dummy $ac_prog; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_path_CAT+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   case $CAT in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862   done
4863 IFS=$as_save_IFS
4864 
4865   ;;
4866 esac
4867 fi
4868 CAT=$ac_cv_path_CAT
4869 if test -n "$CAT"; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4871 $as_echo "$CAT" >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876 
4877 
4878   test -n "$CAT" && break
4879 done
4880 
4881   else
4882     # The variable is set, but is it from the command line or the environment?
4883 
4884     # Try to remove the string !CAT! from our list.
4885     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4886     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4887       # If it failed, the variable was not from the command line. Ignore it,
4888       # but warn the user (except for BASH, which is always set by the calling BASH).
4889       if test "xCAT" != xBASH; then
4890         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4891 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4892       fi
4893       # Try to locate tool using the code snippet
4894       for ac_prog in cat
4895 do
4896   # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_path_CAT+:} false; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903   case $CAT in
4904   [\\/]* | ?:[\\/]*)
4905   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4906   ;;
4907   *)
4908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913     for ac_exec_ext in '' $ac_executable_extensions; do
4914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920   done
4921 IFS=$as_save_IFS
4922 
4923   ;;
4924 esac
4925 fi
4926 CAT=$ac_cv_path_CAT
4927 if test -n "$CAT"; then
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4929 $as_echo "$CAT" >&6; }
4930 else
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4933 fi
4934 
4935 
4936   test -n "$CAT" && break
4937 done
4938 
4939     else
4940       # If it succeeded, then it was overridden by the user. We will use it
4941       # for the tool.
4942 
4943       # First remove it from the list of overridden variables, so we can test
4944       # for unknown variables in the end.
4945       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4946 
4947       # Check if the provided tool contains a complete path.
4948       tool_specified="$CAT"
4949       tool_basename="${tool_specified##*/}"
4950       if test "x$tool_basename" = "x$tool_specified"; then
4951         # A command without a complete path is provided, search $PATH.
4952         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4953 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4954         # Extract the first word of "$tool_basename", so it can be a program name with args.
4955 set dummy $tool_basename; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_path_CAT+:} false; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   case $CAT in
4962   [\\/]* | ?:[\\/]*)
4963   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4964   ;;
4965   *)
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980 
4981   ;;
4982 esac
4983 fi
4984 CAT=$ac_cv_path_CAT
4985 if test -n "$CAT"; then
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4987 $as_echo "$CAT" >&6; }
4988 else
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992 
4993 
4994         if test "x$CAT" = x; then
4995           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4996         fi
4997       else
4998         # Otherwise we believe it is a complete path. Use it as it is.
4999         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5000 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5002 $as_echo_n "checking for CAT... " >&6; }
5003         if test ! -x "$tool_specified"; then
5004           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5005 $as_echo "not found" >&6; }
5006           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5007         fi
5008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5009 $as_echo "$tool_specified" >&6; }
5010       fi
5011     fi
5012   fi
5013 
5014 
5015 
5016   if test "x$CAT" = x; then
5017     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5018   fi
5019 
5020 
5021 
5022 
5023 
5024   # Publish this variable in the help.
5025 
5026 
5027   if test "x$CHMOD" = x; then
5028     # The variable is not set by user, try to locate tool using the code snippet
5029     for ac_prog in chmod
5030 do
5031   # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_path_CHMOD+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   case $CHMOD in
5039   [\\/]* | ?:[\\/]*)
5040   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5041   ;;
5042   *)
5043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046   IFS=$as_save_IFS
5047   test -z "$as_dir" && as_dir=.
5048     for ac_exec_ext in '' $ac_executable_extensions; do
5049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055   done
5056 IFS=$as_save_IFS
5057 
5058   ;;
5059 esac
5060 fi
5061 CHMOD=$ac_cv_path_CHMOD
5062 if test -n "$CHMOD"; then
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5064 $as_echo "$CHMOD" >&6; }
5065 else
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5068 fi
5069 
5070 
5071   test -n "$CHMOD" && break
5072 done
5073 
5074   else
5075     # The variable is set, but is it from the command line or the environment?
5076 
5077     # Try to remove the string !CHMOD! from our list.
5078     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5079     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5080       # If it failed, the variable was not from the command line. Ignore it,
5081       # but warn the user (except for BASH, which is always set by the calling BASH).
5082       if test "xCHMOD" != xBASH; then
5083         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5084 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5085       fi
5086       # Try to locate tool using the code snippet
5087       for ac_prog in chmod
5088 do
5089   # Extract the first word of "$ac_prog", so it can be a program name with args.
5090 set dummy $ac_prog; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_path_CHMOD+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   case $CHMOD in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106     for ac_exec_ext in '' $ac_executable_extensions; do
5107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113   done
5114 IFS=$as_save_IFS
5115 
5116   ;;
5117 esac
5118 fi
5119 CHMOD=$ac_cv_path_CHMOD
5120 if test -n "$CHMOD"; then
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5122 $as_echo "$CHMOD" >&6; }
5123 else
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5126 fi
5127 
5128 
5129   test -n "$CHMOD" && break
5130 done
5131 
5132     else
5133       # If it succeeded, then it was overridden by the user. We will use it
5134       # for the tool.
5135 
5136       # First remove it from the list of overridden variables, so we can test
5137       # for unknown variables in the end.
5138       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5139 
5140       # Check if the provided tool contains a complete path.
5141       tool_specified="$CHMOD"
5142       tool_basename="${tool_specified##*/}"
5143       if test "x$tool_basename" = "x$tool_specified"; then
5144         # A command without a complete path is provided, search $PATH.
5145         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5146 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5147         # Extract the first word of "$tool_basename", so it can be a program name with args.
5148 set dummy $tool_basename; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_path_CHMOD+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   case $CHMOD in
5155   [\\/]* | ?:[\\/]*)
5156   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5157   ;;
5158   *)
5159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171   done
5172 IFS=$as_save_IFS
5173 
5174   ;;
5175 esac
5176 fi
5177 CHMOD=$ac_cv_path_CHMOD
5178 if test -n "$CHMOD"; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5180 $as_echo "$CHMOD" >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185 
5186 
5187         if test "x$CHMOD" = x; then
5188           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5189         fi
5190       else
5191         # Otherwise we believe it is a complete path. Use it as it is.
5192         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5193 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5195 $as_echo_n "checking for CHMOD... " >&6; }
5196         if test ! -x "$tool_specified"; then
5197           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5198 $as_echo "not found" >&6; }
5199           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5200         fi
5201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5202 $as_echo "$tool_specified" >&6; }
5203       fi
5204     fi
5205   fi
5206 
5207 
5208 
5209   if test "x$CHMOD" = x; then
5210     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5211   fi
5212 
5213 
5214 
5215 
5216 
5217   # Publish this variable in the help.
5218 
5219 
5220   if test "x$CMP" = x; then
5221     # The variable is not set by user, try to locate tool using the code snippet
5222     for ac_prog in cmp
5223 do
5224   # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_path_CMP+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   case $CMP in
5232   [\\/]* | ?:[\\/]*)
5233   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5234   ;;
5235   *)
5236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241     for ac_exec_ext in '' $ac_executable_extensions; do
5242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248   done
5249 IFS=$as_save_IFS
5250 
5251   ;;
5252 esac
5253 fi
5254 CMP=$ac_cv_path_CMP
5255 if test -n "$CMP"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5257 $as_echo "$CMP" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262 
5263 
5264   test -n "$CMP" && break
5265 done
5266 
5267   else
5268     # The variable is set, but is it from the command line or the environment?
5269 
5270     # Try to remove the string !CMP! from our list.
5271     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5272     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5273       # If it failed, the variable was not from the command line. Ignore it,
5274       # but warn the user (except for BASH, which is always set by the calling BASH).
5275       if test "xCMP" != xBASH; then
5276         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5277 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5278       fi
5279       # Try to locate tool using the code snippet
5280       for ac_prog in cmp
5281 do
5282   # Extract the first word of "$ac_prog", so it can be a program name with args.
5283 set dummy $ac_prog; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if ${ac_cv_path_CMP+:} false; then :
5287   $as_echo_n "(cached) " >&6
5288 else
5289   case $CMP in
5290   [\\/]* | ?:[\\/]*)
5291   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5292   ;;
5293   *)
5294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297   IFS=$as_save_IFS
5298   test -z "$as_dir" && as_dir=.
5299     for ac_exec_ext in '' $ac_executable_extensions; do
5300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303     break 2
5304   fi
5305 done
5306   done
5307 IFS=$as_save_IFS
5308 
5309   ;;
5310 esac
5311 fi
5312 CMP=$ac_cv_path_CMP
5313 if test -n "$CMP"; then
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5315 $as_echo "$CMP" >&6; }
5316 else
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320 
5321 
5322   test -n "$CMP" && break
5323 done
5324 
5325     else
5326       # If it succeeded, then it was overridden by the user. We will use it
5327       # for the tool.
5328 
5329       # First remove it from the list of overridden variables, so we can test
5330       # for unknown variables in the end.
5331       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5332 
5333       # Check if the provided tool contains a complete path.
5334       tool_specified="$CMP"
5335       tool_basename="${tool_specified##*/}"
5336       if test "x$tool_basename" = "x$tool_specified"; then
5337         # A command without a complete path is provided, search $PATH.
5338         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5339 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5340         # Extract the first word of "$tool_basename", so it can be a program name with args.
5341 set dummy $tool_basename; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_path_CMP+:} false; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   case $CMP in
5348   [\\/]* | ?:[\\/]*)
5349   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5350   ;;
5351   *)
5352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364   done
5365 IFS=$as_save_IFS
5366 
5367   ;;
5368 esac
5369 fi
5370 CMP=$ac_cv_path_CMP
5371 if test -n "$CMP"; then
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5373 $as_echo "$CMP" >&6; }
5374 else
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377 fi
5378 
5379 
5380         if test "x$CMP" = x; then
5381           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5382         fi
5383       else
5384         # Otherwise we believe it is a complete path. Use it as it is.
5385         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5386 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5388 $as_echo_n "checking for CMP... " >&6; }
5389         if test ! -x "$tool_specified"; then
5390           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5391 $as_echo "not found" >&6; }
5392           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5393         fi
5394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5395 $as_echo "$tool_specified" >&6; }
5396       fi
5397     fi
5398   fi
5399 
5400 
5401 
5402   if test "x$CMP" = x; then
5403     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5404   fi
5405 
5406 
5407 
5408 
5409 
5410   # Publish this variable in the help.
5411 
5412 
5413   if test "x$COMM" = x; then
5414     # The variable is not set by user, try to locate tool using the code snippet
5415     for ac_prog in comm
5416 do
5417   # Extract the first word of "$ac_prog", so it can be a program name with args.
5418 set dummy $ac_prog; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_path_COMM+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   case $COMM in
5425   [\\/]* | ?:[\\/]*)
5426   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5427   ;;
5428   *)
5429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443 
5444   ;;
5445 esac
5446 fi
5447 COMM=$ac_cv_path_COMM
5448 if test -n "$COMM"; then
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5450 $as_echo "$COMM" >&6; }
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455 
5456 
5457   test -n "$COMM" && break
5458 done
5459 
5460   else
5461     # The variable is set, but is it from the command line or the environment?
5462 
5463     # Try to remove the string !COMM! from our list.
5464     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5465     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5466       # If it failed, the variable was not from the command line. Ignore it,
5467       # but warn the user (except for BASH, which is always set by the calling BASH).
5468       if test "xCOMM" != xBASH; then
5469         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5470 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5471       fi
5472       # Try to locate tool using the code snippet
5473       for ac_prog in comm
5474 do
5475   # Extract the first word of "$ac_prog", so it can be a program name with args.
5476 set dummy $ac_prog; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_path_COMM+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   case $COMM in
5483   [\\/]* | ?:[\\/]*)
5484   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5485   ;;
5486   *)
5487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490   IFS=$as_save_IFS
5491   test -z "$as_dir" && as_dir=.
5492     for ac_exec_ext in '' $ac_executable_extensions; do
5493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496     break 2
5497   fi
5498 done
5499   done
5500 IFS=$as_save_IFS
5501 
5502   ;;
5503 esac
5504 fi
5505 COMM=$ac_cv_path_COMM
5506 if test -n "$COMM"; then
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5508 $as_echo "$COMM" >&6; }
5509 else
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5512 fi
5513 
5514 
5515   test -n "$COMM" && break
5516 done
5517 
5518     else
5519       # If it succeeded, then it was overridden by the user. We will use it
5520       # for the tool.
5521 
5522       # First remove it from the list of overridden variables, so we can test
5523       # for unknown variables in the end.
5524       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5525 
5526       # Check if the provided tool contains a complete path.
5527       tool_specified="$COMM"
5528       tool_basename="${tool_specified##*/}"
5529       if test "x$tool_basename" = "x$tool_specified"; then
5530         # A command without a complete path is provided, search $PATH.
5531         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5532 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5533         # Extract the first word of "$tool_basename", so it can be a program name with args.
5534 set dummy $tool_basename; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_path_COMM+:} false; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   case $COMM in
5541   [\\/]* | ?:[\\/]*)
5542   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5543   ;;
5544   *)
5545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548   IFS=$as_save_IFS
5549   test -z "$as_dir" && as_dir=.
5550     for ac_exec_ext in '' $ac_executable_extensions; do
5551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554     break 2
5555   fi
5556 done
5557   done
5558 IFS=$as_save_IFS
5559 
5560   ;;
5561 esac
5562 fi
5563 COMM=$ac_cv_path_COMM
5564 if test -n "$COMM"; then
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5566 $as_echo "$COMM" >&6; }
5567 else
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571 
5572 
5573         if test "x$COMM" = x; then
5574           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5575         fi
5576       else
5577         # Otherwise we believe it is a complete path. Use it as it is.
5578         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5579 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5581 $as_echo_n "checking for COMM... " >&6; }
5582         if test ! -x "$tool_specified"; then
5583           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5584 $as_echo "not found" >&6; }
5585           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5586         fi
5587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5588 $as_echo "$tool_specified" >&6; }
5589       fi
5590     fi
5591   fi
5592 
5593 
5594 
5595   if test "x$COMM" = x; then
5596     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5597   fi
5598 
5599 
5600 
5601 
5602 
5603   # Publish this variable in the help.
5604 
5605 
5606   if test "x$CP" = x; then
5607     # The variable is not set by user, try to locate tool using the code snippet
5608     for ac_prog in cp
5609 do
5610   # Extract the first word of "$ac_prog", so it can be a program name with args.
5611 set dummy $ac_prog; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_path_CP+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   case $CP in
5618   [\\/]* | ?:[\\/]*)
5619   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5620   ;;
5621   *)
5622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5624 do
5625   IFS=$as_save_IFS
5626   test -z "$as_dir" && as_dir=.
5627     for ac_exec_ext in '' $ac_executable_extensions; do
5628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631     break 2
5632   fi
5633 done
5634   done
5635 IFS=$as_save_IFS
5636 
5637   ;;
5638 esac
5639 fi
5640 CP=$ac_cv_path_CP
5641 if test -n "$CP"; then
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5643 $as_echo "$CP" >&6; }
5644 else
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648 
5649 
5650   test -n "$CP" && break
5651 done
5652 
5653   else
5654     # The variable is set, but is it from the command line or the environment?
5655 
5656     # Try to remove the string !CP! from our list.
5657     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5658     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5659       # If it failed, the variable was not from the command line. Ignore it,
5660       # but warn the user (except for BASH, which is always set by the calling BASH).
5661       if test "xCP" != xBASH; then
5662         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5663 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5664       fi
5665       # Try to locate tool using the code snippet
5666       for ac_prog in cp
5667 do
5668   # Extract the first word of "$ac_prog", so it can be a program name with args.
5669 set dummy $ac_prog; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_path_CP+:} false; then :
5673   $as_echo_n "(cached) " >&6
5674 else
5675   case $CP in
5676   [\\/]* | ?:[\\/]*)
5677   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5678   ;;
5679   *)
5680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683   IFS=$as_save_IFS
5684   test -z "$as_dir" && as_dir=.
5685     for ac_exec_ext in '' $ac_executable_extensions; do
5686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689     break 2
5690   fi
5691 done
5692   done
5693 IFS=$as_save_IFS
5694 
5695   ;;
5696 esac
5697 fi
5698 CP=$ac_cv_path_CP
5699 if test -n "$CP"; then
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5701 $as_echo "$CP" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706 
5707 
5708   test -n "$CP" && break
5709 done
5710 
5711     else
5712       # If it succeeded, then it was overridden by the user. We will use it
5713       # for the tool.
5714 
5715       # First remove it from the list of overridden variables, so we can test
5716       # for unknown variables in the end.
5717       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5718 
5719       # Check if the provided tool contains a complete path.
5720       tool_specified="$CP"
5721       tool_basename="${tool_specified##*/}"
5722       if test "x$tool_basename" = "x$tool_specified"; then
5723         # A command without a complete path is provided, search $PATH.
5724         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5725 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5726         # Extract the first word of "$tool_basename", so it can be a program name with args.
5727 set dummy $tool_basename; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if ${ac_cv_path_CP+:} false; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   case $CP in
5734   [\\/]* | ?:[\\/]*)
5735   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5736   ;;
5737   *)
5738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743     for ac_exec_ext in '' $ac_executable_extensions; do
5744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750   done
5751 IFS=$as_save_IFS
5752 
5753   ;;
5754 esac
5755 fi
5756 CP=$ac_cv_path_CP
5757 if test -n "$CP"; then
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5759 $as_echo "$CP" >&6; }
5760 else
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764 
5765 
5766         if test "x$CP" = x; then
5767           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5768         fi
5769       else
5770         # Otherwise we believe it is a complete path. Use it as it is.
5771         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5772 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5774 $as_echo_n "checking for CP... " >&6; }
5775         if test ! -x "$tool_specified"; then
5776           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5777 $as_echo "not found" >&6; }
5778           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5779         fi
5780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5781 $as_echo "$tool_specified" >&6; }
5782       fi
5783     fi
5784   fi
5785 
5786 
5787 
5788   if test "x$CP" = x; then
5789     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5790   fi
5791 
5792 
5793 
5794 
5795 
5796   # Publish this variable in the help.
5797 
5798 
5799   if test "x$CUT" = x; then
5800     # The variable is not set by user, try to locate tool using the code snippet
5801     for ac_prog in cut
5802 do
5803   # Extract the first word of "$ac_prog", so it can be a program name with args.
5804 set dummy $ac_prog; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_path_CUT+:} false; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   case $CUT in
5811   [\\/]* | ?:[\\/]*)
5812   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5813   ;;
5814   *)
5815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820     for ac_exec_ext in '' $ac_executable_extensions; do
5821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827   done
5828 IFS=$as_save_IFS
5829 
5830   ;;
5831 esac
5832 fi
5833 CUT=$ac_cv_path_CUT
5834 if test -n "$CUT"; then
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5836 $as_echo "$CUT" >&6; }
5837 else
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 fi
5841 
5842 
5843   test -n "$CUT" && break
5844 done
5845 
5846   else
5847     # The variable is set, but is it from the command line or the environment?
5848 
5849     # Try to remove the string !CUT! from our list.
5850     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5851     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5852       # If it failed, the variable was not from the command line. Ignore it,
5853       # but warn the user (except for BASH, which is always set by the calling BASH).
5854       if test "xCUT" != xBASH; then
5855         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5856 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5857       fi
5858       # Try to locate tool using the code snippet
5859       for ac_prog in cut
5860 do
5861   # Extract the first word of "$ac_prog", so it can be a program name with args.
5862 set dummy $ac_prog; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if ${ac_cv_path_CUT+:} false; then :
5866   $as_echo_n "(cached) " >&6
5867 else
5868   case $CUT in
5869   [\\/]* | ?:[\\/]*)
5870   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5871   ;;
5872   *)
5873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878     for ac_exec_ext in '' $ac_executable_extensions; do
5879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885   done
5886 IFS=$as_save_IFS
5887 
5888   ;;
5889 esac
5890 fi
5891 CUT=$ac_cv_path_CUT
5892 if test -n "$CUT"; then
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5894 $as_echo "$CUT" >&6; }
5895 else
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899 
5900 
5901   test -n "$CUT" && break
5902 done
5903 
5904     else
5905       # If it succeeded, then it was overridden by the user. We will use it
5906       # for the tool.
5907 
5908       # First remove it from the list of overridden variables, so we can test
5909       # for unknown variables in the end.
5910       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5911 
5912       # Check if the provided tool contains a complete path.
5913       tool_specified="$CUT"
5914       tool_basename="${tool_specified##*/}"
5915       if test "x$tool_basename" = "x$tool_specified"; then
5916         # A command without a complete path is provided, search $PATH.
5917         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5918 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5919         # Extract the first word of "$tool_basename", so it can be a program name with args.
5920 set dummy $tool_basename; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_path_CUT+:} false; then :
5924   $as_echo_n "(cached) " >&6
5925 else
5926   case $CUT in
5927   [\\/]* | ?:[\\/]*)
5928   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5929   ;;
5930   *)
5931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936     for ac_exec_ext in '' $ac_executable_extensions; do
5937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943   done
5944 IFS=$as_save_IFS
5945 
5946   ;;
5947 esac
5948 fi
5949 CUT=$ac_cv_path_CUT
5950 if test -n "$CUT"; then
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5952 $as_echo "$CUT" >&6; }
5953 else
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5956 fi
5957 
5958 
5959         if test "x$CUT" = x; then
5960           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5961         fi
5962       else
5963         # Otherwise we believe it is a complete path. Use it as it is.
5964         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5965 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5967 $as_echo_n "checking for CUT... " >&6; }
5968         if test ! -x "$tool_specified"; then
5969           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5970 $as_echo "not found" >&6; }
5971           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5972         fi
5973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5974 $as_echo "$tool_specified" >&6; }
5975       fi
5976     fi
5977   fi
5978 
5979 
5980 
5981   if test "x$CUT" = x; then
5982     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5983   fi
5984 
5985 
5986 
5987 
5988 
5989   # Publish this variable in the help.
5990 
5991 
5992   if test "x$DATE" = x; then
5993     # The variable is not set by user, try to locate tool using the code snippet
5994     for ac_prog in date
5995 do
5996   # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy $ac_prog; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_path_DATE+:} false; then :
6001   $as_echo_n "(cached) " >&6
6002 else
6003   case $DATE in
6004   [\\/]* | ?:[\\/]*)
6005   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6006   ;;
6007   *)
6008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013     for ac_exec_ext in '' $ac_executable_extensions; do
6014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020   done
6021 IFS=$as_save_IFS
6022 
6023   ;;
6024 esac
6025 fi
6026 DATE=$ac_cv_path_DATE
6027 if test -n "$DATE"; then
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6029 $as_echo "$DATE" >&6; }
6030 else
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034 
6035 
6036   test -n "$DATE" && break
6037 done
6038 
6039   else
6040     # The variable is set, but is it from the command line or the environment?
6041 
6042     # Try to remove the string !DATE! from our list.
6043     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6044     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6045       # If it failed, the variable was not from the command line. Ignore it,
6046       # but warn the user (except for BASH, which is always set by the calling BASH).
6047       if test "xDATE" != xBASH; then
6048         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6049 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6050       fi
6051       # Try to locate tool using the code snippet
6052       for ac_prog in date
6053 do
6054   # Extract the first word of "$ac_prog", so it can be a program name with args.
6055 set dummy $ac_prog; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if ${ac_cv_path_DATE+:} false; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   case $DATE in
6062   [\\/]* | ?:[\\/]*)
6063   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6064   ;;
6065   *)
6066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071     for ac_exec_ext in '' $ac_executable_extensions; do
6072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078   done
6079 IFS=$as_save_IFS
6080 
6081   ;;
6082 esac
6083 fi
6084 DATE=$ac_cv_path_DATE
6085 if test -n "$DATE"; then
6086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6087 $as_echo "$DATE" >&6; }
6088 else
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6091 fi
6092 
6093 
6094   test -n "$DATE" && break
6095 done
6096 
6097     else
6098       # If it succeeded, then it was overridden by the user. We will use it
6099       # for the tool.
6100 
6101       # First remove it from the list of overridden variables, so we can test
6102       # for unknown variables in the end.
6103       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6104 
6105       # Check if the provided tool contains a complete path.
6106       tool_specified="$DATE"
6107       tool_basename="${tool_specified##*/}"
6108       if test "x$tool_basename" = "x$tool_specified"; then
6109         # A command without a complete path is provided, search $PATH.
6110         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6111 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6112         # Extract the first word of "$tool_basename", so it can be a program name with args.
6113 set dummy $tool_basename; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_path_DATE+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   case $DATE in
6120   [\\/]* | ?:[\\/]*)
6121   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6122   ;;
6123   *)
6124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129     for ac_exec_ext in '' $ac_executable_extensions; do
6130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136   done
6137 IFS=$as_save_IFS
6138 
6139   ;;
6140 esac
6141 fi
6142 DATE=$ac_cv_path_DATE
6143 if test -n "$DATE"; then
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6145 $as_echo "$DATE" >&6; }
6146 else
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150 
6151 
6152         if test "x$DATE" = x; then
6153           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6154         fi
6155       else
6156         # Otherwise we believe it is a complete path. Use it as it is.
6157         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6158 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6160 $as_echo_n "checking for DATE... " >&6; }
6161         if test ! -x "$tool_specified"; then
6162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6163 $as_echo "not found" >&6; }
6164           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6165         fi
6166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6167 $as_echo "$tool_specified" >&6; }
6168       fi
6169     fi
6170   fi
6171 
6172 
6173 
6174   if test "x$DATE" = x; then
6175     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6176   fi
6177 
6178 
6179 
6180 
6181 
6182   # Publish this variable in the help.
6183 
6184 
6185   if test "x$DIFF" = x; then
6186     # The variable is not set by user, try to locate tool using the code snippet
6187     for ac_prog in gdiff diff
6188 do
6189   # Extract the first word of "$ac_prog", so it can be a program name with args.
6190 set dummy $ac_prog; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_path_DIFF+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   case $DIFF in
6197   [\\/]* | ?:[\\/]*)
6198   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6199   ;;
6200   *)
6201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206     for ac_exec_ext in '' $ac_executable_extensions; do
6207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213   done
6214 IFS=$as_save_IFS
6215 
6216   ;;
6217 esac
6218 fi
6219 DIFF=$ac_cv_path_DIFF
6220 if test -n "$DIFF"; then
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6222 $as_echo "$DIFF" >&6; }
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227 
6228 
6229   test -n "$DIFF" && break
6230 done
6231 
6232   else
6233     # The variable is set, but is it from the command line or the environment?
6234 
6235     # Try to remove the string !DIFF! from our list.
6236     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6237     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6238       # If it failed, the variable was not from the command line. Ignore it,
6239       # but warn the user (except for BASH, which is always set by the calling BASH).
6240       if test "xDIFF" != xBASH; then
6241         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6242 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6243       fi
6244       # Try to locate tool using the code snippet
6245       for ac_prog in gdiff diff
6246 do
6247   # Extract the first word of "$ac_prog", so it can be a program name with args.
6248 set dummy $ac_prog; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_path_DIFF+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   case $DIFF in
6255   [\\/]* | ?:[\\/]*)
6256   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6257   ;;
6258   *)
6259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264     for ac_exec_ext in '' $ac_executable_extensions; do
6265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271   done
6272 IFS=$as_save_IFS
6273 
6274   ;;
6275 esac
6276 fi
6277 DIFF=$ac_cv_path_DIFF
6278 if test -n "$DIFF"; then
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6280 $as_echo "$DIFF" >&6; }
6281 else
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285 
6286 
6287   test -n "$DIFF" && break
6288 done
6289 
6290     else
6291       # If it succeeded, then it was overridden by the user. We will use it
6292       # for the tool.
6293 
6294       # First remove it from the list of overridden variables, so we can test
6295       # for unknown variables in the end.
6296       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6297 
6298       # Check if the provided tool contains a complete path.
6299       tool_specified="$DIFF"
6300       tool_basename="${tool_specified##*/}"
6301       if test "x$tool_basename" = "x$tool_specified"; then
6302         # A command without a complete path is provided, search $PATH.
6303         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6304 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6305         # Extract the first word of "$tool_basename", so it can be a program name with args.
6306 set dummy $tool_basename; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_path_DIFF+:} false; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   case $DIFF in
6313   [\\/]* | ?:[\\/]*)
6314   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6315   ;;
6316   *)
6317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320   IFS=$as_save_IFS
6321   test -z "$as_dir" && as_dir=.
6322     for ac_exec_ext in '' $ac_executable_extensions; do
6323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326     break 2
6327   fi
6328 done
6329   done
6330 IFS=$as_save_IFS
6331 
6332   ;;
6333 esac
6334 fi
6335 DIFF=$ac_cv_path_DIFF
6336 if test -n "$DIFF"; then
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6338 $as_echo "$DIFF" >&6; }
6339 else
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343 
6344 
6345         if test "x$DIFF" = x; then
6346           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6347         fi
6348       else
6349         # Otherwise we believe it is a complete path. Use it as it is.
6350         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6351 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6353 $as_echo_n "checking for DIFF... " >&6; }
6354         if test ! -x "$tool_specified"; then
6355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6356 $as_echo "not found" >&6; }
6357           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6358         fi
6359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6360 $as_echo "$tool_specified" >&6; }
6361       fi
6362     fi
6363   fi
6364 
6365 
6366 
6367   if test "x$DIFF" = x; then
6368     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6369   fi
6370 
6371 
6372 
6373 
6374 
6375   # Publish this variable in the help.
6376 
6377 
6378   if test "x$DIRNAME" = x; then
6379     # The variable is not set by user, try to locate tool using the code snippet
6380     for ac_prog in dirname
6381 do
6382   # Extract the first word of "$ac_prog", so it can be a program name with args.
6383 set dummy $ac_prog; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_path_DIRNAME+:} false; then :
6387   $as_echo_n "(cached) " >&6
6388 else
6389   case $DIRNAME in
6390   [\\/]* | ?:[\\/]*)
6391   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6392   ;;
6393   *)
6394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399     for ac_exec_ext in '' $ac_executable_extensions; do
6400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406   done
6407 IFS=$as_save_IFS
6408 
6409   ;;
6410 esac
6411 fi
6412 DIRNAME=$ac_cv_path_DIRNAME
6413 if test -n "$DIRNAME"; then
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6415 $as_echo "$DIRNAME" >&6; }
6416 else
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420 
6421 
6422   test -n "$DIRNAME" && break
6423 done
6424 
6425   else
6426     # The variable is set, but is it from the command line or the environment?
6427 
6428     # Try to remove the string !DIRNAME! from our list.
6429     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6430     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6431       # If it failed, the variable was not from the command line. Ignore it,
6432       # but warn the user (except for BASH, which is always set by the calling BASH).
6433       if test "xDIRNAME" != xBASH; then
6434         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6435 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6436       fi
6437       # Try to locate tool using the code snippet
6438       for ac_prog in dirname
6439 do
6440   # Extract the first word of "$ac_prog", so it can be a program name with args.
6441 set dummy $ac_prog; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_path_DIRNAME+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   case $DIRNAME in
6448   [\\/]* | ?:[\\/]*)
6449   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6450   ;;
6451   *)
6452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457     for ac_exec_ext in '' $ac_executable_extensions; do
6458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464   done
6465 IFS=$as_save_IFS
6466 
6467   ;;
6468 esac
6469 fi
6470 DIRNAME=$ac_cv_path_DIRNAME
6471 if test -n "$DIRNAME"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6473 $as_echo "$DIRNAME" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478 
6479 
6480   test -n "$DIRNAME" && break
6481 done
6482 
6483     else
6484       # If it succeeded, then it was overridden by the user. We will use it
6485       # for the tool.
6486 
6487       # First remove it from the list of overridden variables, so we can test
6488       # for unknown variables in the end.
6489       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6490 
6491       # Check if the provided tool contains a complete path.
6492       tool_specified="$DIRNAME"
6493       tool_basename="${tool_specified##*/}"
6494       if test "x$tool_basename" = "x$tool_specified"; then
6495         # A command without a complete path is provided, search $PATH.
6496         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6497 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6498         # Extract the first word of "$tool_basename", so it can be a program name with args.
6499 set dummy $tool_basename; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_path_DIRNAME+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   case $DIRNAME in
6506   [\\/]* | ?:[\\/]*)
6507   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6508   ;;
6509   *)
6510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515     for ac_exec_ext in '' $ac_executable_extensions; do
6516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522   done
6523 IFS=$as_save_IFS
6524 
6525   ;;
6526 esac
6527 fi
6528 DIRNAME=$ac_cv_path_DIRNAME
6529 if test -n "$DIRNAME"; then
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6531 $as_echo "$DIRNAME" >&6; }
6532 else
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536 
6537 
6538         if test "x$DIRNAME" = x; then
6539           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6540         fi
6541       else
6542         # Otherwise we believe it is a complete path. Use it as it is.
6543         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6544 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6546 $as_echo_n "checking for DIRNAME... " >&6; }
6547         if test ! -x "$tool_specified"; then
6548           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6549 $as_echo "not found" >&6; }
6550           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6551         fi
6552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6553 $as_echo "$tool_specified" >&6; }
6554       fi
6555     fi
6556   fi
6557 
6558 
6559 
6560   if test "x$DIRNAME" = x; then
6561     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6562   fi
6563 
6564 
6565 
6566 
6567 
6568   # Publish this variable in the help.
6569 
6570 
6571   if test "x$ECHO" = x; then
6572     # The variable is not set by user, try to locate tool using the code snippet
6573     for ac_prog in echo
6574 do
6575   # Extract the first word of "$ac_prog", so it can be a program name with args.
6576 set dummy $ac_prog; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_path_ECHO+:} false; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582   case $ECHO in
6583   [\\/]* | ?:[\\/]*)
6584   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6585   ;;
6586   *)
6587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592     for ac_exec_ext in '' $ac_executable_extensions; do
6593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599   done
6600 IFS=$as_save_IFS
6601 
6602   ;;
6603 esac
6604 fi
6605 ECHO=$ac_cv_path_ECHO
6606 if test -n "$ECHO"; then
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6608 $as_echo "$ECHO" >&6; }
6609 else
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613 
6614 
6615   test -n "$ECHO" && break
6616 done
6617 
6618   else
6619     # The variable is set, but is it from the command line or the environment?
6620 
6621     # Try to remove the string !ECHO! from our list.
6622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6624       # If it failed, the variable was not from the command line. Ignore it,
6625       # but warn the user (except for BASH, which is always set by the calling BASH).
6626       if test "xECHO" != xBASH; then
6627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6628 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6629       fi
6630       # Try to locate tool using the code snippet
6631       for ac_prog in echo
6632 do
6633   # Extract the first word of "$ac_prog", so it can be a program name with args.
6634 set dummy $ac_prog; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_path_ECHO+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   case $ECHO in
6641   [\\/]* | ?:[\\/]*)
6642   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6643   ;;
6644   *)
6645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650     for ac_exec_ext in '' $ac_executable_extensions; do
6651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657   done
6658 IFS=$as_save_IFS
6659 
6660   ;;
6661 esac
6662 fi
6663 ECHO=$ac_cv_path_ECHO
6664 if test -n "$ECHO"; then
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6666 $as_echo "$ECHO" >&6; }
6667 else
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671 
6672 
6673   test -n "$ECHO" && break
6674 done
6675 
6676     else
6677       # If it succeeded, then it was overridden by the user. We will use it
6678       # for the tool.
6679 
6680       # First remove it from the list of overridden variables, so we can test
6681       # for unknown variables in the end.
6682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6683 
6684       # Check if the provided tool contains a complete path.
6685       tool_specified="$ECHO"
6686       tool_basename="${tool_specified##*/}"
6687       if test "x$tool_basename" = "x$tool_specified"; then
6688         # A command without a complete path is provided, search $PATH.
6689         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6690 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6691         # Extract the first word of "$tool_basename", so it can be a program name with args.
6692 set dummy $tool_basename; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_path_ECHO+:} false; then :
6696   $as_echo_n "(cached) " >&6
6697 else
6698   case $ECHO in
6699   [\\/]* | ?:[\\/]*)
6700   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6701   ;;
6702   *)
6703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708     for ac_exec_ext in '' $ac_executable_extensions; do
6709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715   done
6716 IFS=$as_save_IFS
6717 
6718   ;;
6719 esac
6720 fi
6721 ECHO=$ac_cv_path_ECHO
6722 if test -n "$ECHO"; then
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6724 $as_echo "$ECHO" >&6; }
6725 else
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729 
6730 
6731         if test "x$ECHO" = x; then
6732           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6733         fi
6734       else
6735         # Otherwise we believe it is a complete path. Use it as it is.
6736         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6737 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6739 $as_echo_n "checking for ECHO... " >&6; }
6740         if test ! -x "$tool_specified"; then
6741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6742 $as_echo "not found" >&6; }
6743           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6744         fi
6745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6746 $as_echo "$tool_specified" >&6; }
6747       fi
6748     fi
6749   fi
6750 
6751 
6752 
6753   if test "x$ECHO" = x; then
6754     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6755   fi
6756 
6757 
6758 
6759 
6760 
6761   # Publish this variable in the help.
6762 
6763 
6764   if test "x$EXPR" = x; then
6765     # The variable is not set by user, try to locate tool using the code snippet
6766     for ac_prog in expr
6767 do
6768   # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_path_EXPR+:} false; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   case $EXPR in
6776   [\\/]* | ?:[\\/]*)
6777   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6778   ;;
6779   *)
6780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785     for ac_exec_ext in '' $ac_executable_extensions; do
6786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792   done
6793 IFS=$as_save_IFS
6794 
6795   ;;
6796 esac
6797 fi
6798 EXPR=$ac_cv_path_EXPR
6799 if test -n "$EXPR"; then
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6801 $as_echo "$EXPR" >&6; }
6802 else
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806 
6807 
6808   test -n "$EXPR" && break
6809 done
6810 
6811   else
6812     # The variable is set, but is it from the command line or the environment?
6813 
6814     # Try to remove the string !EXPR! from our list.
6815     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6816     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6817       # If it failed, the variable was not from the command line. Ignore it,
6818       # but warn the user (except for BASH, which is always set by the calling BASH).
6819       if test "xEXPR" != xBASH; then
6820         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6821 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6822       fi
6823       # Try to locate tool using the code snippet
6824       for ac_prog in expr
6825 do
6826   # Extract the first word of "$ac_prog", so it can be a program name with args.
6827 set dummy $ac_prog; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_path_EXPR+:} false; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   case $EXPR in
6834   [\\/]* | ?:[\\/]*)
6835   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6836   ;;
6837   *)
6838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841   IFS=$as_save_IFS
6842   test -z "$as_dir" && as_dir=.
6843     for ac_exec_ext in '' $ac_executable_extensions; do
6844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847     break 2
6848   fi
6849 done
6850   done
6851 IFS=$as_save_IFS
6852 
6853   ;;
6854 esac
6855 fi
6856 EXPR=$ac_cv_path_EXPR
6857 if test -n "$EXPR"; then
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6859 $as_echo "$EXPR" >&6; }
6860 else
6861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6864 
6865 
6866   test -n "$EXPR" && break
6867 done
6868 
6869     else
6870       # If it succeeded, then it was overridden by the user. We will use it
6871       # for the tool.
6872 
6873       # First remove it from the list of overridden variables, so we can test
6874       # for unknown variables in the end.
6875       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6876 
6877       # Check if the provided tool contains a complete path.
6878       tool_specified="$EXPR"
6879       tool_basename="${tool_specified##*/}"
6880       if test "x$tool_basename" = "x$tool_specified"; then
6881         # A command without a complete path is provided, search $PATH.
6882         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6883 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6884         # Extract the first word of "$tool_basename", so it can be a program name with args.
6885 set dummy $tool_basename; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_path_EXPR+:} false; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   case $EXPR in
6892   [\\/]* | ?:[\\/]*)
6893   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6894   ;;
6895   *)
6896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910 
6911   ;;
6912 esac
6913 fi
6914 EXPR=$ac_cv_path_EXPR
6915 if test -n "$EXPR"; then
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6917 $as_echo "$EXPR" >&6; }
6918 else
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922 
6923 
6924         if test "x$EXPR" = x; then
6925           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6926         fi
6927       else
6928         # Otherwise we believe it is a complete path. Use it as it is.
6929         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6930 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6932 $as_echo_n "checking for EXPR... " >&6; }
6933         if test ! -x "$tool_specified"; then
6934           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6935 $as_echo "not found" >&6; }
6936           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6937         fi
6938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6939 $as_echo "$tool_specified" >&6; }
6940       fi
6941     fi
6942   fi
6943 
6944 
6945 
6946   if test "x$EXPR" = x; then
6947     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6948   fi
6949 
6950 
6951 
6952 
6953 
6954   # Publish this variable in the help.
6955 
6956 
6957   if test "x$FILE" = x; then
6958     # The variable is not set by user, try to locate tool using the code snippet
6959     for ac_prog in file
6960 do
6961   # Extract the first word of "$ac_prog", so it can be a program name with args.
6962 set dummy $ac_prog; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_path_FILE+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   case $FILE in
6969   [\\/]* | ?:[\\/]*)
6970   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6971   ;;
6972   *)
6973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978     for ac_exec_ext in '' $ac_executable_extensions; do
6979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985   done
6986 IFS=$as_save_IFS
6987 
6988   ;;
6989 esac
6990 fi
6991 FILE=$ac_cv_path_FILE
6992 if test -n "$FILE"; then
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6994 $as_echo "$FILE" >&6; }
6995 else
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999 
7000 
7001   test -n "$FILE" && break
7002 done
7003 
7004   else
7005     # The variable is set, but is it from the command line or the environment?
7006 
7007     # Try to remove the string !FILE! from our list.
7008     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7009     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7010       # If it failed, the variable was not from the command line. Ignore it,
7011       # but warn the user (except for BASH, which is always set by the calling BASH).
7012       if test "xFILE" != xBASH; then
7013         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7014 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7015       fi
7016       # Try to locate tool using the code snippet
7017       for ac_prog in file
7018 do
7019   # Extract the first word of "$ac_prog", so it can be a program name with args.
7020 set dummy $ac_prog; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_path_FILE+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   case $FILE in
7027   [\\/]* | ?:[\\/]*)
7028   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7029   ;;
7030   *)
7031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036     for ac_exec_ext in '' $ac_executable_extensions; do
7037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043   done
7044 IFS=$as_save_IFS
7045 
7046   ;;
7047 esac
7048 fi
7049 FILE=$ac_cv_path_FILE
7050 if test -n "$FILE"; then
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7052 $as_echo "$FILE" >&6; }
7053 else
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057 
7058 
7059   test -n "$FILE" && break
7060 done
7061 
7062     else
7063       # If it succeeded, then it was overridden by the user. We will use it
7064       # for the tool.
7065 
7066       # First remove it from the list of overridden variables, so we can test
7067       # for unknown variables in the end.
7068       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7069 
7070       # Check if the provided tool contains a complete path.
7071       tool_specified="$FILE"
7072       tool_basename="${tool_specified##*/}"
7073       if test "x$tool_basename" = "x$tool_specified"; then
7074         # A command without a complete path is provided, search $PATH.
7075         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7076 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7077         # Extract the first word of "$tool_basename", so it can be a program name with args.
7078 set dummy $tool_basename; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_path_FILE+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   case $FILE in
7085   [\\/]* | ?:[\\/]*)
7086   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7087   ;;
7088   *)
7089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103 
7104   ;;
7105 esac
7106 fi
7107 FILE=$ac_cv_path_FILE
7108 if test -n "$FILE"; then
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7110 $as_echo "$FILE" >&6; }
7111 else
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115 
7116 
7117         if test "x$FILE" = x; then
7118           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7119         fi
7120       else
7121         # Otherwise we believe it is a complete path. Use it as it is.
7122         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7123 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7125 $as_echo_n "checking for FILE... " >&6; }
7126         if test ! -x "$tool_specified"; then
7127           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7128 $as_echo "not found" >&6; }
7129           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7130         fi
7131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7132 $as_echo "$tool_specified" >&6; }
7133       fi
7134     fi
7135   fi
7136 
7137 
7138 
7139   if test "x$FILE" = x; then
7140     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7141   fi
7142 
7143 
7144 
7145 
7146 
7147   # Publish this variable in the help.
7148 
7149 
7150   if test "x$FIND" = x; then
7151     # The variable is not set by user, try to locate tool using the code snippet
7152     for ac_prog in find
7153 do
7154   # Extract the first word of "$ac_prog", so it can be a program name with args.
7155 set dummy $ac_prog; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_path_FIND+:} false; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   case $FIND in
7162   [\\/]* | ?:[\\/]*)
7163   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7164   ;;
7165   *)
7166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171     for ac_exec_ext in '' $ac_executable_extensions; do
7172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178   done
7179 IFS=$as_save_IFS
7180 
7181   ;;
7182 esac
7183 fi
7184 FIND=$ac_cv_path_FIND
7185 if test -n "$FIND"; then
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7187 $as_echo "$FIND" >&6; }
7188 else
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192 
7193 
7194   test -n "$FIND" && break
7195 done
7196 
7197   else
7198     # The variable is set, but is it from the command line or the environment?
7199 
7200     # Try to remove the string !FIND! from our list.
7201     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7202     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7203       # If it failed, the variable was not from the command line. Ignore it,
7204       # but warn the user (except for BASH, which is always set by the calling BASH).
7205       if test "xFIND" != xBASH; then
7206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7207 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7208       fi
7209       # Try to locate tool using the code snippet
7210       for ac_prog in find
7211 do
7212   # Extract the first word of "$ac_prog", so it can be a program name with args.
7213 set dummy $ac_prog; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_path_FIND+:} false; then :
7217   $as_echo_n "(cached) " >&6
7218 else
7219   case $FIND in
7220   [\\/]* | ?:[\\/]*)
7221   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7222   ;;
7223   *)
7224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229     for ac_exec_ext in '' $ac_executable_extensions; do
7230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236   done
7237 IFS=$as_save_IFS
7238 
7239   ;;
7240 esac
7241 fi
7242 FIND=$ac_cv_path_FIND
7243 if test -n "$FIND"; then
7244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7245 $as_echo "$FIND" >&6; }
7246 else
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7249 fi
7250 
7251 
7252   test -n "$FIND" && break
7253 done
7254 
7255     else
7256       # If it succeeded, then it was overridden by the user. We will use it
7257       # for the tool.
7258 
7259       # First remove it from the list of overridden variables, so we can test
7260       # for unknown variables in the end.
7261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7262 
7263       # Check if the provided tool contains a complete path.
7264       tool_specified="$FIND"
7265       tool_basename="${tool_specified##*/}"
7266       if test "x$tool_basename" = "x$tool_specified"; then
7267         # A command without a complete path is provided, search $PATH.
7268         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7269 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7270         # Extract the first word of "$tool_basename", so it can be a program name with args.
7271 set dummy $tool_basename; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_path_FIND+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   case $FIND in
7278   [\\/]* | ?:[\\/]*)
7279   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7280   ;;
7281   *)
7282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287     for ac_exec_ext in '' $ac_executable_extensions; do
7288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294   done
7295 IFS=$as_save_IFS
7296 
7297   ;;
7298 esac
7299 fi
7300 FIND=$ac_cv_path_FIND
7301 if test -n "$FIND"; then
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7303 $as_echo "$FIND" >&6; }
7304 else
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308 
7309 
7310         if test "x$FIND" = x; then
7311           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7312         fi
7313       else
7314         # Otherwise we believe it is a complete path. Use it as it is.
7315         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7316 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7318 $as_echo_n "checking for FIND... " >&6; }
7319         if test ! -x "$tool_specified"; then
7320           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7321 $as_echo "not found" >&6; }
7322           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7323         fi
7324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7325 $as_echo "$tool_specified" >&6; }
7326       fi
7327     fi
7328   fi
7329 
7330 
7331 
7332   if test "x$FIND" = x; then
7333     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7334   fi
7335 
7336 
7337 
7338 
7339 
7340   # Publish this variable in the help.
7341 
7342 
7343   if test "x$HEAD" = x; then
7344     # The variable is not set by user, try to locate tool using the code snippet
7345     for ac_prog in head
7346 do
7347   # Extract the first word of "$ac_prog", so it can be a program name with args.
7348 set dummy $ac_prog; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_path_HEAD+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   case $HEAD in
7355   [\\/]* | ?:[\\/]*)
7356   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7357   ;;
7358   *)
7359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373 
7374   ;;
7375 esac
7376 fi
7377 HEAD=$ac_cv_path_HEAD
7378 if test -n "$HEAD"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7380 $as_echo "$HEAD" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385 
7386 
7387   test -n "$HEAD" && break
7388 done
7389 
7390   else
7391     # The variable is set, but is it from the command line or the environment?
7392 
7393     # Try to remove the string !HEAD! from our list.
7394     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7395     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7396       # If it failed, the variable was not from the command line. Ignore it,
7397       # but warn the user (except for BASH, which is always set by the calling BASH).
7398       if test "xHEAD" != xBASH; then
7399         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7400 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7401       fi
7402       # Try to locate tool using the code snippet
7403       for ac_prog in head
7404 do
7405   # Extract the first word of "$ac_prog", so it can be a program name with args.
7406 set dummy $ac_prog; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if ${ac_cv_path_HEAD+:} false; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   case $HEAD in
7413   [\\/]* | ?:[\\/]*)
7414   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7415   ;;
7416   *)
7417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422     for ac_exec_ext in '' $ac_executable_extensions; do
7423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429   done
7430 IFS=$as_save_IFS
7431 
7432   ;;
7433 esac
7434 fi
7435 HEAD=$ac_cv_path_HEAD
7436 if test -n "$HEAD"; then
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7438 $as_echo "$HEAD" >&6; }
7439 else
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443 
7444 
7445   test -n "$HEAD" && break
7446 done
7447 
7448     else
7449       # If it succeeded, then it was overridden by the user. We will use it
7450       # for the tool.
7451 
7452       # First remove it from the list of overridden variables, so we can test
7453       # for unknown variables in the end.
7454       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7455 
7456       # Check if the provided tool contains a complete path.
7457       tool_specified="$HEAD"
7458       tool_basename="${tool_specified##*/}"
7459       if test "x$tool_basename" = "x$tool_specified"; then
7460         # A command without a complete path is provided, search $PATH.
7461         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7462 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7463         # Extract the first word of "$tool_basename", so it can be a program name with args.
7464 set dummy $tool_basename; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if ${ac_cv_path_HEAD+:} false; then :
7468   $as_echo_n "(cached) " >&6
7469 else
7470   case $HEAD in
7471   [\\/]* | ?:[\\/]*)
7472   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7473   ;;
7474   *)
7475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480     for ac_exec_ext in '' $ac_executable_extensions; do
7481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487   done
7488 IFS=$as_save_IFS
7489 
7490   ;;
7491 esac
7492 fi
7493 HEAD=$ac_cv_path_HEAD
7494 if test -n "$HEAD"; then
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7496 $as_echo "$HEAD" >&6; }
7497 else
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501 
7502 
7503         if test "x$HEAD" = x; then
7504           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7505         fi
7506       else
7507         # Otherwise we believe it is a complete path. Use it as it is.
7508         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7509 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7511 $as_echo_n "checking for HEAD... " >&6; }
7512         if test ! -x "$tool_specified"; then
7513           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7514 $as_echo "not found" >&6; }
7515           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7516         fi
7517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7518 $as_echo "$tool_specified" >&6; }
7519       fi
7520     fi
7521   fi
7522 
7523 
7524 
7525   if test "x$HEAD" = x; then
7526     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7527   fi
7528 
7529 
7530 
7531 
7532 
7533   # Publish this variable in the help.
7534 
7535 
7536   if test "x$LN" = x; then
7537     # The variable is not set by user, try to locate tool using the code snippet
7538     for ac_prog in ln
7539 do
7540   # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_path_LN+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   case $LN in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557     for ac_exec_ext in '' $ac_executable_extensions; do
7558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564   done
7565 IFS=$as_save_IFS
7566 
7567   ;;
7568 esac
7569 fi
7570 LN=$ac_cv_path_LN
7571 if test -n "$LN"; then
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7573 $as_echo "$LN" >&6; }
7574 else
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578 
7579 
7580   test -n "$LN" && break
7581 done
7582 
7583   else
7584     # The variable is set, but is it from the command line or the environment?
7585 
7586     # Try to remove the string !LN! from our list.
7587     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7588     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7589       # If it failed, the variable was not from the command line. Ignore it,
7590       # but warn the user (except for BASH, which is always set by the calling BASH).
7591       if test "xLN" != xBASH; then
7592         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7593 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7594       fi
7595       # Try to locate tool using the code snippet
7596       for ac_prog in ln
7597 do
7598   # Extract the first word of "$ac_prog", so it can be a program name with args.
7599 set dummy $ac_prog; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_path_LN+:} false; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   case $LN in
7606   [\\/]* | ?:[\\/]*)
7607   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7608   ;;
7609   *)
7610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615     for ac_exec_ext in '' $ac_executable_extensions; do
7616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622   done
7623 IFS=$as_save_IFS
7624 
7625   ;;
7626 esac
7627 fi
7628 LN=$ac_cv_path_LN
7629 if test -n "$LN"; then
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7631 $as_echo "$LN" >&6; }
7632 else
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636 
7637 
7638   test -n "$LN" && break
7639 done
7640 
7641     else
7642       # If it succeeded, then it was overridden by the user. We will use it
7643       # for the tool.
7644 
7645       # First remove it from the list of overridden variables, so we can test
7646       # for unknown variables in the end.
7647       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7648 
7649       # Check if the provided tool contains a complete path.
7650       tool_specified="$LN"
7651       tool_basename="${tool_specified##*/}"
7652       if test "x$tool_basename" = "x$tool_specified"; then
7653         # A command without a complete path is provided, search $PATH.
7654         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7655 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7656         # Extract the first word of "$tool_basename", so it can be a program name with args.
7657 set dummy $tool_basename; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_path_LN+:} false; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   case $LN in
7664   [\\/]* | ?:[\\/]*)
7665   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7666   ;;
7667   *)
7668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673     for ac_exec_ext in '' $ac_executable_extensions; do
7674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680   done
7681 IFS=$as_save_IFS
7682 
7683   ;;
7684 esac
7685 fi
7686 LN=$ac_cv_path_LN
7687 if test -n "$LN"; then
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7689 $as_echo "$LN" >&6; }
7690 else
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694 
7695 
7696         if test "x$LN" = x; then
7697           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7698         fi
7699       else
7700         # Otherwise we believe it is a complete path. Use it as it is.
7701         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7702 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7703         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7704 $as_echo_n "checking for LN... " >&6; }
7705         if test ! -x "$tool_specified"; then
7706           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7707 $as_echo "not found" >&6; }
7708           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7709         fi
7710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7711 $as_echo "$tool_specified" >&6; }
7712       fi
7713     fi
7714   fi
7715 
7716 
7717 
7718   if test "x$LN" = x; then
7719     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7720   fi
7721 
7722 
7723 
7724 
7725 
7726   # Publish this variable in the help.
7727 
7728 
7729   if test "x$LS" = x; then
7730     # The variable is not set by user, try to locate tool using the code snippet
7731     for ac_prog in ls
7732 do
7733   # Extract the first word of "$ac_prog", so it can be a program name with args.
7734 set dummy $ac_prog; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_path_LS+:} false; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   case $LS in
7741   [\\/]* | ?:[\\/]*)
7742   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7743   ;;
7744   *)
7745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748   IFS=$as_save_IFS
7749   test -z "$as_dir" && as_dir=.
7750     for ac_exec_ext in '' $ac_executable_extensions; do
7751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754     break 2
7755   fi
7756 done
7757   done
7758 IFS=$as_save_IFS
7759 
7760   ;;
7761 esac
7762 fi
7763 LS=$ac_cv_path_LS
7764 if test -n "$LS"; then
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7766 $as_echo "$LS" >&6; }
7767 else
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771 
7772 
7773   test -n "$LS" && break
7774 done
7775 
7776   else
7777     # The variable is set, but is it from the command line or the environment?
7778 
7779     # Try to remove the string !LS! from our list.
7780     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7781     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7782       # If it failed, the variable was not from the command line. Ignore it,
7783       # but warn the user (except for BASH, which is always set by the calling BASH).
7784       if test "xLS" != xBASH; then
7785         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7786 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7787       fi
7788       # Try to locate tool using the code snippet
7789       for ac_prog in ls
7790 do
7791   # Extract the first word of "$ac_prog", so it can be a program name with args.
7792 set dummy $ac_prog; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_path_LS+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   case $LS in
7799   [\\/]* | ?:[\\/]*)
7800   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7801   ;;
7802   *)
7803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808     for ac_exec_ext in '' $ac_executable_extensions; do
7809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815   done
7816 IFS=$as_save_IFS
7817 
7818   ;;
7819 esac
7820 fi
7821 LS=$ac_cv_path_LS
7822 if test -n "$LS"; then
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7824 $as_echo "$LS" >&6; }
7825 else
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829 
7830 
7831   test -n "$LS" && break
7832 done
7833 
7834     else
7835       # If it succeeded, then it was overridden by the user. We will use it
7836       # for the tool.
7837 
7838       # First remove it from the list of overridden variables, so we can test
7839       # for unknown variables in the end.
7840       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7841 
7842       # Check if the provided tool contains a complete path.
7843       tool_specified="$LS"
7844       tool_basename="${tool_specified##*/}"
7845       if test "x$tool_basename" = "x$tool_specified"; then
7846         # A command without a complete path is provided, search $PATH.
7847         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7848 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7849         # Extract the first word of "$tool_basename", so it can be a program name with args.
7850 set dummy $tool_basename; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_path_LS+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   case $LS in
7857   [\\/]* | ?:[\\/]*)
7858   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7859   ;;
7860   *)
7861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864   IFS=$as_save_IFS
7865   test -z "$as_dir" && as_dir=.
7866     for ac_exec_ext in '' $ac_executable_extensions; do
7867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870     break 2
7871   fi
7872 done
7873   done
7874 IFS=$as_save_IFS
7875 
7876   ;;
7877 esac
7878 fi
7879 LS=$ac_cv_path_LS
7880 if test -n "$LS"; then
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7882 $as_echo "$LS" >&6; }
7883 else
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887 
7888 
7889         if test "x$LS" = x; then
7890           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7891         fi
7892       else
7893         # Otherwise we believe it is a complete path. Use it as it is.
7894         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7895 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7897 $as_echo_n "checking for LS... " >&6; }
7898         if test ! -x "$tool_specified"; then
7899           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7900 $as_echo "not found" >&6; }
7901           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7902         fi
7903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7904 $as_echo "$tool_specified" >&6; }
7905       fi
7906     fi
7907   fi
7908 
7909 
7910 
7911   if test "x$LS" = x; then
7912     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7913   fi
7914 
7915 
7916 
7917 
7918 
7919   # Publish this variable in the help.
7920 
7921 
7922   if test "x$MKDIR" = x; then
7923     # The variable is not set by user, try to locate tool using the code snippet
7924     for ac_prog in mkdir
7925 do
7926   # Extract the first word of "$ac_prog", so it can be a program name with args.
7927 set dummy $ac_prog; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_path_MKDIR+:} false; then :
7931   $as_echo_n "(cached) " >&6
7932 else
7933   case $MKDIR in
7934   [\\/]* | ?:[\\/]*)
7935   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7936   ;;
7937   *)
7938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941   IFS=$as_save_IFS
7942   test -z "$as_dir" && as_dir=.
7943     for ac_exec_ext in '' $ac_executable_extensions; do
7944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7945     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947     break 2
7948   fi
7949 done
7950   done
7951 IFS=$as_save_IFS
7952 
7953   ;;
7954 esac
7955 fi
7956 MKDIR=$ac_cv_path_MKDIR
7957 if test -n "$MKDIR"; then
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7959 $as_echo "$MKDIR" >&6; }
7960 else
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7963 fi
7964 
7965 
7966   test -n "$MKDIR" && break
7967 done
7968 
7969   else
7970     # The variable is set, but is it from the command line or the environment?
7971 
7972     # Try to remove the string !MKDIR! from our list.
7973     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7974     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7975       # If it failed, the variable was not from the command line. Ignore it,
7976       # but warn the user (except for BASH, which is always set by the calling BASH).
7977       if test "xMKDIR" != xBASH; then
7978         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7979 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7980       fi
7981       # Try to locate tool using the code snippet
7982       for ac_prog in mkdir
7983 do
7984   # Extract the first word of "$ac_prog", so it can be a program name with args.
7985 set dummy $ac_prog; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_path_MKDIR+:} false; then :
7989   $as_echo_n "(cached) " >&6
7990 else
7991   case $MKDIR in
7992   [\\/]* | ?:[\\/]*)
7993   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7994   ;;
7995   *)
7996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999   IFS=$as_save_IFS
8000   test -z "$as_dir" && as_dir=.
8001     for ac_exec_ext in '' $ac_executable_extensions; do
8002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005     break 2
8006   fi
8007 done
8008   done
8009 IFS=$as_save_IFS
8010 
8011   ;;
8012 esac
8013 fi
8014 MKDIR=$ac_cv_path_MKDIR
8015 if test -n "$MKDIR"; then
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8017 $as_echo "$MKDIR" >&6; }
8018 else
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022 
8023 
8024   test -n "$MKDIR" && break
8025 done
8026 
8027     else
8028       # If it succeeded, then it was overridden by the user. We will use it
8029       # for the tool.
8030 
8031       # First remove it from the list of overridden variables, so we can test
8032       # for unknown variables in the end.
8033       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8034 
8035       # Check if the provided tool contains a complete path.
8036       tool_specified="$MKDIR"
8037       tool_basename="${tool_specified##*/}"
8038       if test "x$tool_basename" = "x$tool_specified"; then
8039         # A command without a complete path is provided, search $PATH.
8040         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8041 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8042         # Extract the first word of "$tool_basename", so it can be a program name with args.
8043 set dummy $tool_basename; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if ${ac_cv_path_MKDIR+:} false; then :
8047   $as_echo_n "(cached) " >&6
8048 else
8049   case $MKDIR in
8050   [\\/]* | ?:[\\/]*)
8051   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8052   ;;
8053   *)
8054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057   IFS=$as_save_IFS
8058   test -z "$as_dir" && as_dir=.
8059     for ac_exec_ext in '' $ac_executable_extensions; do
8060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063     break 2
8064   fi
8065 done
8066   done
8067 IFS=$as_save_IFS
8068 
8069   ;;
8070 esac
8071 fi
8072 MKDIR=$ac_cv_path_MKDIR
8073 if test -n "$MKDIR"; then
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8075 $as_echo "$MKDIR" >&6; }
8076 else
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080 
8081 
8082         if test "x$MKDIR" = x; then
8083           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8084         fi
8085       else
8086         # Otherwise we believe it is a complete path. Use it as it is.
8087         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8088 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8090 $as_echo_n "checking for MKDIR... " >&6; }
8091         if test ! -x "$tool_specified"; then
8092           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8093 $as_echo "not found" >&6; }
8094           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8095         fi
8096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8097 $as_echo "$tool_specified" >&6; }
8098       fi
8099     fi
8100   fi
8101 
8102 
8103 
8104   if test "x$MKDIR" = x; then
8105     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8106   fi
8107 
8108 
8109 
8110 
8111 
8112   # Publish this variable in the help.
8113 
8114 
8115   if test "x$MKTEMP" = x; then
8116     # The variable is not set by user, try to locate tool using the code snippet
8117     for ac_prog in mktemp
8118 do
8119   # Extract the first word of "$ac_prog", so it can be a program name with args.
8120 set dummy $ac_prog; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if ${ac_cv_path_MKTEMP+:} false; then :
8124   $as_echo_n "(cached) " >&6
8125 else
8126   case $MKTEMP in
8127   [\\/]* | ?:[\\/]*)
8128   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8129   ;;
8130   *)
8131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   test -z "$as_dir" && as_dir=.
8136     for ac_exec_ext in '' $ac_executable_extensions; do
8137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140     break 2
8141   fi
8142 done
8143   done
8144 IFS=$as_save_IFS
8145 
8146   ;;
8147 esac
8148 fi
8149 MKTEMP=$ac_cv_path_MKTEMP
8150 if test -n "$MKTEMP"; then
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8152 $as_echo "$MKTEMP" >&6; }
8153 else
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156 fi
8157 
8158 
8159   test -n "$MKTEMP" && break
8160 done
8161 
8162   else
8163     # The variable is set, but is it from the command line or the environment?
8164 
8165     # Try to remove the string !MKTEMP! from our list.
8166     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8167     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8168       # If it failed, the variable was not from the command line. Ignore it,
8169       # but warn the user (except for BASH, which is always set by the calling BASH).
8170       if test "xMKTEMP" != xBASH; then
8171         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8172 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8173       fi
8174       # Try to locate tool using the code snippet
8175       for ac_prog in mktemp
8176 do
8177   # Extract the first word of "$ac_prog", so it can be a program name with args.
8178 set dummy $ac_prog; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if ${ac_cv_path_MKTEMP+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   case $MKTEMP in
8185   [\\/]* | ?:[\\/]*)
8186   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8187   ;;
8188   *)
8189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192   IFS=$as_save_IFS
8193   test -z "$as_dir" && as_dir=.
8194     for ac_exec_ext in '' $ac_executable_extensions; do
8195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198     break 2
8199   fi
8200 done
8201   done
8202 IFS=$as_save_IFS
8203 
8204   ;;
8205 esac
8206 fi
8207 MKTEMP=$ac_cv_path_MKTEMP
8208 if test -n "$MKTEMP"; then
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8210 $as_echo "$MKTEMP" >&6; }
8211 else
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8214 fi
8215 
8216 
8217   test -n "$MKTEMP" && break
8218 done
8219 
8220     else
8221       # If it succeeded, then it was overridden by the user. We will use it
8222       # for the tool.
8223 
8224       # First remove it from the list of overridden variables, so we can test
8225       # for unknown variables in the end.
8226       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8227 
8228       # Check if the provided tool contains a complete path.
8229       tool_specified="$MKTEMP"
8230       tool_basename="${tool_specified##*/}"
8231       if test "x$tool_basename" = "x$tool_specified"; then
8232         # A command without a complete path is provided, search $PATH.
8233         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8234 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8235         # Extract the first word of "$tool_basename", so it can be a program name with args.
8236 set dummy $tool_basename; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if ${ac_cv_path_MKTEMP+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   case $MKTEMP in
8243   [\\/]* | ?:[\\/]*)
8244   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8245   ;;
8246   *)
8247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250   IFS=$as_save_IFS
8251   test -z "$as_dir" && as_dir=.
8252     for ac_exec_ext in '' $ac_executable_extensions; do
8253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256     break 2
8257   fi
8258 done
8259   done
8260 IFS=$as_save_IFS
8261 
8262   ;;
8263 esac
8264 fi
8265 MKTEMP=$ac_cv_path_MKTEMP
8266 if test -n "$MKTEMP"; then
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8268 $as_echo "$MKTEMP" >&6; }
8269 else
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8272 fi
8273 
8274 
8275         if test "x$MKTEMP" = x; then
8276           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8277         fi
8278       else
8279         # Otherwise we believe it is a complete path. Use it as it is.
8280         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8281 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8283 $as_echo_n "checking for MKTEMP... " >&6; }
8284         if test ! -x "$tool_specified"; then
8285           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8286 $as_echo "not found" >&6; }
8287           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8288         fi
8289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8290 $as_echo "$tool_specified" >&6; }
8291       fi
8292     fi
8293   fi
8294 
8295 
8296 
8297   if test "x$MKTEMP" = x; then
8298     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8299   fi
8300 
8301 
8302 
8303 
8304 
8305   # Publish this variable in the help.
8306 
8307 
8308   if test "x$MV" = x; then
8309     # The variable is not set by user, try to locate tool using the code snippet
8310     for ac_prog in mv
8311 do
8312   # Extract the first word of "$ac_prog", so it can be a program name with args.
8313 set dummy $ac_prog; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if ${ac_cv_path_MV+:} false; then :
8317   $as_echo_n "(cached) " >&6
8318 else
8319   case $MV in
8320   [\\/]* | ?:[\\/]*)
8321   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8322   ;;
8323   *)
8324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327   IFS=$as_save_IFS
8328   test -z "$as_dir" && as_dir=.
8329     for ac_exec_ext in '' $ac_executable_extensions; do
8330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333     break 2
8334   fi
8335 done
8336   done
8337 IFS=$as_save_IFS
8338 
8339   ;;
8340 esac
8341 fi
8342 MV=$ac_cv_path_MV
8343 if test -n "$MV"; then
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8345 $as_echo "$MV" >&6; }
8346 else
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350 
8351 
8352   test -n "$MV" && break
8353 done
8354 
8355   else
8356     # The variable is set, but is it from the command line or the environment?
8357 
8358     # Try to remove the string !MV! from our list.
8359     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8360     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8361       # If it failed, the variable was not from the command line. Ignore it,
8362       # but warn the user (except for BASH, which is always set by the calling BASH).
8363       if test "xMV" != xBASH; then
8364         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8365 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8366       fi
8367       # Try to locate tool using the code snippet
8368       for ac_prog in mv
8369 do
8370   # Extract the first word of "$ac_prog", so it can be a program name with args.
8371 set dummy $ac_prog; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if ${ac_cv_path_MV+:} false; then :
8375   $as_echo_n "(cached) " >&6
8376 else
8377   case $MV in
8378   [\\/]* | ?:[\\/]*)
8379   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8380   ;;
8381   *)
8382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385   IFS=$as_save_IFS
8386   test -z "$as_dir" && as_dir=.
8387     for ac_exec_ext in '' $ac_executable_extensions; do
8388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391     break 2
8392   fi
8393 done
8394   done
8395 IFS=$as_save_IFS
8396 
8397   ;;
8398 esac
8399 fi
8400 MV=$ac_cv_path_MV
8401 if test -n "$MV"; then
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8403 $as_echo "$MV" >&6; }
8404 else
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408 
8409 
8410   test -n "$MV" && break
8411 done
8412 
8413     else
8414       # If it succeeded, then it was overridden by the user. We will use it
8415       # for the tool.
8416 
8417       # First remove it from the list of overridden variables, so we can test
8418       # for unknown variables in the end.
8419       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8420 
8421       # Check if the provided tool contains a complete path.
8422       tool_specified="$MV"
8423       tool_basename="${tool_specified##*/}"
8424       if test "x$tool_basename" = "x$tool_specified"; then
8425         # A command without a complete path is provided, search $PATH.
8426         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8427 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8428         # Extract the first word of "$tool_basename", so it can be a program name with args.
8429 set dummy $tool_basename; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_path_MV+:} false; then :
8433   $as_echo_n "(cached) " >&6
8434 else
8435   case $MV in
8436   [\\/]* | ?:[\\/]*)
8437   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8438   ;;
8439   *)
8440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443   IFS=$as_save_IFS
8444   test -z "$as_dir" && as_dir=.
8445     for ac_exec_ext in '' $ac_executable_extensions; do
8446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8447     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449     break 2
8450   fi
8451 done
8452   done
8453 IFS=$as_save_IFS
8454 
8455   ;;
8456 esac
8457 fi
8458 MV=$ac_cv_path_MV
8459 if test -n "$MV"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8461 $as_echo "$MV" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466 
8467 
8468         if test "x$MV" = x; then
8469           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8470         fi
8471       else
8472         # Otherwise we believe it is a complete path. Use it as it is.
8473         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8474 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8476 $as_echo_n "checking for MV... " >&6; }
8477         if test ! -x "$tool_specified"; then
8478           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8479 $as_echo "not found" >&6; }
8480           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8481         fi
8482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8483 $as_echo "$tool_specified" >&6; }
8484       fi
8485     fi
8486   fi
8487 
8488 
8489 
8490   if test "x$MV" = x; then
8491     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8492   fi
8493 
8494 
8495 
8496 
8497 
8498   # Publish this variable in the help.
8499 
8500 
8501   if test "x$NAWK" = x; then
8502     # The variable is not set by user, try to locate tool using the code snippet
8503     for ac_prog in nawk gawk awk
8504 do
8505   # Extract the first word of "$ac_prog", so it can be a program name with args.
8506 set dummy $ac_prog; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if ${ac_cv_path_NAWK+:} false; then :
8510   $as_echo_n "(cached) " >&6
8511 else
8512   case $NAWK in
8513   [\\/]* | ?:[\\/]*)
8514   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8515   ;;
8516   *)
8517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520   IFS=$as_save_IFS
8521   test -z "$as_dir" && as_dir=.
8522     for ac_exec_ext in '' $ac_executable_extensions; do
8523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526     break 2
8527   fi
8528 done
8529   done
8530 IFS=$as_save_IFS
8531 
8532   ;;
8533 esac
8534 fi
8535 NAWK=$ac_cv_path_NAWK
8536 if test -n "$NAWK"; then
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8538 $as_echo "$NAWK" >&6; }
8539 else
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543 
8544 
8545   test -n "$NAWK" && break
8546 done
8547 
8548   else
8549     # The variable is set, but is it from the command line or the environment?
8550 
8551     # Try to remove the string !NAWK! from our list.
8552     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8553     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8554       # If it failed, the variable was not from the command line. Ignore it,
8555       # but warn the user (except for BASH, which is always set by the calling BASH).
8556       if test "xNAWK" != xBASH; then
8557         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8558 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8559       fi
8560       # Try to locate tool using the code snippet
8561       for ac_prog in nawk gawk awk
8562 do
8563   # Extract the first word of "$ac_prog", so it can be a program name with args.
8564 set dummy $ac_prog; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_path_NAWK+:} false; then :
8568   $as_echo_n "(cached) " >&6
8569 else
8570   case $NAWK in
8571   [\\/]* | ?:[\\/]*)
8572   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8573   ;;
8574   *)
8575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578   IFS=$as_save_IFS
8579   test -z "$as_dir" && as_dir=.
8580     for ac_exec_ext in '' $ac_executable_extensions; do
8581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8582     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584     break 2
8585   fi
8586 done
8587   done
8588 IFS=$as_save_IFS
8589 
8590   ;;
8591 esac
8592 fi
8593 NAWK=$ac_cv_path_NAWK
8594 if test -n "$NAWK"; then
8595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8596 $as_echo "$NAWK" >&6; }
8597 else
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8600 fi
8601 
8602 
8603   test -n "$NAWK" && break
8604 done
8605 
8606     else
8607       # If it succeeded, then it was overridden by the user. We will use it
8608       # for the tool.
8609 
8610       # First remove it from the list of overridden variables, so we can test
8611       # for unknown variables in the end.
8612       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8613 
8614       # Check if the provided tool contains a complete path.
8615       tool_specified="$NAWK"
8616       tool_basename="${tool_specified##*/}"
8617       if test "x$tool_basename" = "x$tool_specified"; then
8618         # A command without a complete path is provided, search $PATH.
8619         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8620 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8621         # Extract the first word of "$tool_basename", so it can be a program name with args.
8622 set dummy $tool_basename; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if ${ac_cv_path_NAWK+:} false; then :
8626   $as_echo_n "(cached) " >&6
8627 else
8628   case $NAWK in
8629   [\\/]* | ?:[\\/]*)
8630   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8631   ;;
8632   *)
8633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636   IFS=$as_save_IFS
8637   test -z "$as_dir" && as_dir=.
8638     for ac_exec_ext in '' $ac_executable_extensions; do
8639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642     break 2
8643   fi
8644 done
8645   done
8646 IFS=$as_save_IFS
8647 
8648   ;;
8649 esac
8650 fi
8651 NAWK=$ac_cv_path_NAWK
8652 if test -n "$NAWK"; then
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8654 $as_echo "$NAWK" >&6; }
8655 else
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8658 fi
8659 
8660 
8661         if test "x$NAWK" = x; then
8662           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8663         fi
8664       else
8665         # Otherwise we believe it is a complete path. Use it as it is.
8666         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8667 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8669 $as_echo_n "checking for NAWK... " >&6; }
8670         if test ! -x "$tool_specified"; then
8671           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8672 $as_echo "not found" >&6; }
8673           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8674         fi
8675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8676 $as_echo "$tool_specified" >&6; }
8677       fi
8678     fi
8679   fi
8680 
8681 
8682 
8683   if test "x$NAWK" = x; then
8684     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8685   fi
8686 
8687 
8688 
8689 
8690 
8691   # Publish this variable in the help.
8692 
8693 
8694   if test "x$PRINTF" = x; then
8695     # The variable is not set by user, try to locate tool using the code snippet
8696     for ac_prog in printf
8697 do
8698   # Extract the first word of "$ac_prog", so it can be a program name with args.
8699 set dummy $ac_prog; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_path_PRINTF+:} false; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   case $PRINTF in
8706   [\\/]* | ?:[\\/]*)
8707   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8708   ;;
8709   *)
8710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8712 do
8713   IFS=$as_save_IFS
8714   test -z "$as_dir" && as_dir=.
8715     for ac_exec_ext in '' $ac_executable_extensions; do
8716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719     break 2
8720   fi
8721 done
8722   done
8723 IFS=$as_save_IFS
8724 
8725   ;;
8726 esac
8727 fi
8728 PRINTF=$ac_cv_path_PRINTF
8729 if test -n "$PRINTF"; then
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8731 $as_echo "$PRINTF" >&6; }
8732 else
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736 
8737 
8738   test -n "$PRINTF" && break
8739 done
8740 
8741   else
8742     # The variable is set, but is it from the command line or the environment?
8743 
8744     # Try to remove the string !PRINTF! from our list.
8745     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8746     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8747       # If it failed, the variable was not from the command line. Ignore it,
8748       # but warn the user (except for BASH, which is always set by the calling BASH).
8749       if test "xPRINTF" != xBASH; then
8750         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8751 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8752       fi
8753       # Try to locate tool using the code snippet
8754       for ac_prog in printf
8755 do
8756   # Extract the first word of "$ac_prog", so it can be a program name with args.
8757 set dummy $ac_prog; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_path_PRINTF+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   case $PRINTF in
8764   [\\/]* | ?:[\\/]*)
8765   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8766   ;;
8767   *)
8768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771   IFS=$as_save_IFS
8772   test -z "$as_dir" && as_dir=.
8773     for ac_exec_ext in '' $ac_executable_extensions; do
8774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777     break 2
8778   fi
8779 done
8780   done
8781 IFS=$as_save_IFS
8782 
8783   ;;
8784 esac
8785 fi
8786 PRINTF=$ac_cv_path_PRINTF
8787 if test -n "$PRINTF"; then
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8789 $as_echo "$PRINTF" >&6; }
8790 else
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8793 fi
8794 
8795 
8796   test -n "$PRINTF" && break
8797 done
8798 
8799     else
8800       # If it succeeded, then it was overridden by the user. We will use it
8801       # for the tool.
8802 
8803       # First remove it from the list of overridden variables, so we can test
8804       # for unknown variables in the end.
8805       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8806 
8807       # Check if the provided tool contains a complete path.
8808       tool_specified="$PRINTF"
8809       tool_basename="${tool_specified##*/}"
8810       if test "x$tool_basename" = "x$tool_specified"; then
8811         # A command without a complete path is provided, search $PATH.
8812         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8813 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8814         # Extract the first word of "$tool_basename", so it can be a program name with args.
8815 set dummy $tool_basename; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_path_PRINTF+:} false; then :
8819   $as_echo_n "(cached) " >&6
8820 else
8821   case $PRINTF in
8822   [\\/]* | ?:[\\/]*)
8823   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8824   ;;
8825   *)
8826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in $PATH
8828 do
8829   IFS=$as_save_IFS
8830   test -z "$as_dir" && as_dir=.
8831     for ac_exec_ext in '' $ac_executable_extensions; do
8832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8833     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835     break 2
8836   fi
8837 done
8838   done
8839 IFS=$as_save_IFS
8840 
8841   ;;
8842 esac
8843 fi
8844 PRINTF=$ac_cv_path_PRINTF
8845 if test -n "$PRINTF"; then
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8847 $as_echo "$PRINTF" >&6; }
8848 else
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852 
8853 
8854         if test "x$PRINTF" = x; then
8855           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8856         fi
8857       else
8858         # Otherwise we believe it is a complete path. Use it as it is.
8859         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8860 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8861         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8862 $as_echo_n "checking for PRINTF... " >&6; }
8863         if test ! -x "$tool_specified"; then
8864           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8865 $as_echo "not found" >&6; }
8866           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8867         fi
8868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8869 $as_echo "$tool_specified" >&6; }
8870       fi
8871     fi
8872   fi
8873 
8874 
8875 
8876   if test "x$PRINTF" = x; then
8877     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8878   fi
8879 
8880 
8881 
8882 
8883 
8884   # Publish this variable in the help.
8885 
8886 
8887   if test "x$RM" = x; then
8888     # The variable is not set by user, try to locate tool using the code snippet
8889     for ac_prog in rm
8890 do
8891   # Extract the first word of "$ac_prog", so it can be a program name with args.
8892 set dummy $ac_prog; ac_word=$2
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894 $as_echo_n "checking for $ac_word... " >&6; }
8895 if ${ac_cv_path_RM+:} false; then :
8896   $as_echo_n "(cached) " >&6
8897 else
8898   case $RM in
8899   [\\/]* | ?:[\\/]*)
8900   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8901   ;;
8902   *)
8903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906   IFS=$as_save_IFS
8907   test -z "$as_dir" && as_dir=.
8908     for ac_exec_ext in '' $ac_executable_extensions; do
8909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912     break 2
8913   fi
8914 done
8915   done
8916 IFS=$as_save_IFS
8917 
8918   ;;
8919 esac
8920 fi
8921 RM=$ac_cv_path_RM
8922 if test -n "$RM"; then
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8924 $as_echo "$RM" >&6; }
8925 else
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8928 fi
8929 
8930 
8931   test -n "$RM" && break
8932 done
8933 
8934   else
8935     # The variable is set, but is it from the command line or the environment?
8936 
8937     # Try to remove the string !RM! from our list.
8938     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8939     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8940       # If it failed, the variable was not from the command line. Ignore it,
8941       # but warn the user (except for BASH, which is always set by the calling BASH).
8942       if test "xRM" != xBASH; then
8943         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8944 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8945       fi
8946       # Try to locate tool using the code snippet
8947       for ac_prog in rm
8948 do
8949   # Extract the first word of "$ac_prog", so it can be a program name with args.
8950 set dummy $ac_prog; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_path_RM+:} false; then :
8954   $as_echo_n "(cached) " >&6
8955 else
8956   case $RM in
8957   [\\/]* | ?:[\\/]*)
8958   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8959   ;;
8960   *)
8961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8963 do
8964   IFS=$as_save_IFS
8965   test -z "$as_dir" && as_dir=.
8966     for ac_exec_ext in '' $ac_executable_extensions; do
8967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8968     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970     break 2
8971   fi
8972 done
8973   done
8974 IFS=$as_save_IFS
8975 
8976   ;;
8977 esac
8978 fi
8979 RM=$ac_cv_path_RM
8980 if test -n "$RM"; then
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8982 $as_echo "$RM" >&6; }
8983 else
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 fi
8987 
8988 
8989   test -n "$RM" && break
8990 done
8991 
8992     else
8993       # If it succeeded, then it was overridden by the user. We will use it
8994       # for the tool.
8995 
8996       # First remove it from the list of overridden variables, so we can test
8997       # for unknown variables in the end.
8998       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8999 
9000       # Check if the provided tool contains a complete path.
9001       tool_specified="$RM"
9002       tool_basename="${tool_specified##*/}"
9003       if test "x$tool_basename" = "x$tool_specified"; then
9004         # A command without a complete path is provided, search $PATH.
9005         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9006 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9007         # Extract the first word of "$tool_basename", so it can be a program name with args.
9008 set dummy $tool_basename; ac_word=$2
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 $as_echo_n "checking for $ac_word... " >&6; }
9011 if ${ac_cv_path_RM+:} false; then :
9012   $as_echo_n "(cached) " >&6
9013 else
9014   case $RM in
9015   [\\/]* | ?:[\\/]*)
9016   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9017   ;;
9018   *)
9019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022   IFS=$as_save_IFS
9023   test -z "$as_dir" && as_dir=.
9024     for ac_exec_ext in '' $ac_executable_extensions; do
9025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9026     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028     break 2
9029   fi
9030 done
9031   done
9032 IFS=$as_save_IFS
9033 
9034   ;;
9035 esac
9036 fi
9037 RM=$ac_cv_path_RM
9038 if test -n "$RM"; then
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9040 $as_echo "$RM" >&6; }
9041 else
9042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9044 fi
9045 
9046 
9047         if test "x$RM" = x; then
9048           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9049         fi
9050       else
9051         # Otherwise we believe it is a complete path. Use it as it is.
9052         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9053 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9055 $as_echo_n "checking for RM... " >&6; }
9056         if test ! -x "$tool_specified"; then
9057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9058 $as_echo "not found" >&6; }
9059           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9060         fi
9061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9062 $as_echo "$tool_specified" >&6; }
9063       fi
9064     fi
9065   fi
9066 
9067 
9068 
9069   if test "x$RM" = x; then
9070     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9071   fi
9072 
9073 
9074 
9075 
9076 
9077   # Publish this variable in the help.
9078 
9079 
9080   if test "x$SH" = x; then
9081     # The variable is not set by user, try to locate tool using the code snippet
9082     for ac_prog in sh
9083 do
9084   # Extract the first word of "$ac_prog", so it can be a program name with args.
9085 set dummy $ac_prog; ac_word=$2
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087 $as_echo_n "checking for $ac_word... " >&6; }
9088 if ${ac_cv_path_SH+:} false; then :
9089   $as_echo_n "(cached) " >&6
9090 else
9091   case $SH in
9092   [\\/]* | ?:[\\/]*)
9093   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9094   ;;
9095   *)
9096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9098 do
9099   IFS=$as_save_IFS
9100   test -z "$as_dir" && as_dir=.
9101     for ac_exec_ext in '' $ac_executable_extensions; do
9102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105     break 2
9106   fi
9107 done
9108   done
9109 IFS=$as_save_IFS
9110 
9111   ;;
9112 esac
9113 fi
9114 SH=$ac_cv_path_SH
9115 if test -n "$SH"; then
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9117 $as_echo "$SH" >&6; }
9118 else
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9121 fi
9122 
9123 
9124   test -n "$SH" && break
9125 done
9126 
9127   else
9128     # The variable is set, but is it from the command line or the environment?
9129 
9130     # Try to remove the string !SH! from our list.
9131     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9132     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9133       # If it failed, the variable was not from the command line. Ignore it,
9134       # but warn the user (except for BASH, which is always set by the calling BASH).
9135       if test "xSH" != xBASH; then
9136         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9137 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9138       fi
9139       # Try to locate tool using the code snippet
9140       for ac_prog in sh
9141 do
9142   # Extract the first word of "$ac_prog", so it can be a program name with args.
9143 set dummy $ac_prog; ac_word=$2
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145 $as_echo_n "checking for $ac_word... " >&6; }
9146 if ${ac_cv_path_SH+:} false; then :
9147   $as_echo_n "(cached) " >&6
9148 else
9149   case $SH in
9150   [\\/]* | ?:[\\/]*)
9151   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9152   ;;
9153   *)
9154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155 for as_dir in $PATH
9156 do
9157   IFS=$as_save_IFS
9158   test -z "$as_dir" && as_dir=.
9159     for ac_exec_ext in '' $ac_executable_extensions; do
9160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9161     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163     break 2
9164   fi
9165 done
9166   done
9167 IFS=$as_save_IFS
9168 
9169   ;;
9170 esac
9171 fi
9172 SH=$ac_cv_path_SH
9173 if test -n "$SH"; then
9174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9175 $as_echo "$SH" >&6; }
9176 else
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9179 fi
9180 
9181 
9182   test -n "$SH" && break
9183 done
9184 
9185     else
9186       # If it succeeded, then it was overridden by the user. We will use it
9187       # for the tool.
9188 
9189       # First remove it from the list of overridden variables, so we can test
9190       # for unknown variables in the end.
9191       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9192 
9193       # Check if the provided tool contains a complete path.
9194       tool_specified="$SH"
9195       tool_basename="${tool_specified##*/}"
9196       if test "x$tool_basename" = "x$tool_specified"; then
9197         # A command without a complete path is provided, search $PATH.
9198         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9199 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9200         # Extract the first word of "$tool_basename", so it can be a program name with args.
9201 set dummy $tool_basename; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if ${ac_cv_path_SH+:} false; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   case $SH in
9208   [\\/]* | ?:[\\/]*)
9209   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9210   ;;
9211   *)
9212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 for as_dir in $PATH
9214 do
9215   IFS=$as_save_IFS
9216   test -z "$as_dir" && as_dir=.
9217     for ac_exec_ext in '' $ac_executable_extensions; do
9218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9219     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9221     break 2
9222   fi
9223 done
9224   done
9225 IFS=$as_save_IFS
9226 
9227   ;;
9228 esac
9229 fi
9230 SH=$ac_cv_path_SH
9231 if test -n "$SH"; then
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9233 $as_echo "$SH" >&6; }
9234 else
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9237 fi
9238 
9239 
9240         if test "x$SH" = x; then
9241           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9242         fi
9243       else
9244         # Otherwise we believe it is a complete path. Use it as it is.
9245         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9246 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9248 $as_echo_n "checking for SH... " >&6; }
9249         if test ! -x "$tool_specified"; then
9250           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9251 $as_echo "not found" >&6; }
9252           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9253         fi
9254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9255 $as_echo "$tool_specified" >&6; }
9256       fi
9257     fi
9258   fi
9259 
9260 
9261 
9262   if test "x$SH" = x; then
9263     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9264   fi
9265 
9266 
9267 
9268 
9269 
9270   # Publish this variable in the help.
9271 
9272 
9273   if test "x$SORT" = x; then
9274     # The variable is not set by user, try to locate tool using the code snippet
9275     for ac_prog in sort
9276 do
9277   # Extract the first word of "$ac_prog", so it can be a program name with args.
9278 set dummy $ac_prog; ac_word=$2
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280 $as_echo_n "checking for $ac_word... " >&6; }
9281 if ${ac_cv_path_SORT+:} false; then :
9282   $as_echo_n "(cached) " >&6
9283 else
9284   case $SORT in
9285   [\\/]* | ?:[\\/]*)
9286   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9287   ;;
9288   *)
9289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 for as_dir in $PATH
9291 do
9292   IFS=$as_save_IFS
9293   test -z "$as_dir" && as_dir=.
9294     for ac_exec_ext in '' $ac_executable_extensions; do
9295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9296     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298     break 2
9299   fi
9300 done
9301   done
9302 IFS=$as_save_IFS
9303 
9304   ;;
9305 esac
9306 fi
9307 SORT=$ac_cv_path_SORT
9308 if test -n "$SORT"; then
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9310 $as_echo "$SORT" >&6; }
9311 else
9312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9314 fi
9315 
9316 
9317   test -n "$SORT" && break
9318 done
9319 
9320   else
9321     # The variable is set, but is it from the command line or the environment?
9322 
9323     # Try to remove the string !SORT! from our list.
9324     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9325     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9326       # If it failed, the variable was not from the command line. Ignore it,
9327       # but warn the user (except for BASH, which is always set by the calling BASH).
9328       if test "xSORT" != xBASH; then
9329         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9330 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9331       fi
9332       # Try to locate tool using the code snippet
9333       for ac_prog in sort
9334 do
9335   # Extract the first word of "$ac_prog", so it can be a program name with args.
9336 set dummy $ac_prog; ac_word=$2
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9338 $as_echo_n "checking for $ac_word... " >&6; }
9339 if ${ac_cv_path_SORT+:} false; then :
9340   $as_echo_n "(cached) " >&6
9341 else
9342   case $SORT in
9343   [\\/]* | ?:[\\/]*)
9344   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9345   ;;
9346   *)
9347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348 for as_dir in $PATH
9349 do
9350   IFS=$as_save_IFS
9351   test -z "$as_dir" && as_dir=.
9352     for ac_exec_ext in '' $ac_executable_extensions; do
9353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9354     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9356     break 2
9357   fi
9358 done
9359   done
9360 IFS=$as_save_IFS
9361 
9362   ;;
9363 esac
9364 fi
9365 SORT=$ac_cv_path_SORT
9366 if test -n "$SORT"; then
9367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9368 $as_echo "$SORT" >&6; }
9369 else
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 $as_echo "no" >&6; }
9372 fi
9373 
9374 
9375   test -n "$SORT" && break
9376 done
9377 
9378     else
9379       # If it succeeded, then it was overridden by the user. We will use it
9380       # for the tool.
9381 
9382       # First remove it from the list of overridden variables, so we can test
9383       # for unknown variables in the end.
9384       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9385 
9386       # Check if the provided tool contains a complete path.
9387       tool_specified="$SORT"
9388       tool_basename="${tool_specified##*/}"
9389       if test "x$tool_basename" = "x$tool_specified"; then
9390         # A command without a complete path is provided, search $PATH.
9391         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9392 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9393         # Extract the first word of "$tool_basename", so it can be a program name with args.
9394 set dummy $tool_basename; ac_word=$2
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396 $as_echo_n "checking for $ac_word... " >&6; }
9397 if ${ac_cv_path_SORT+:} false; then :
9398   $as_echo_n "(cached) " >&6
9399 else
9400   case $SORT in
9401   [\\/]* | ?:[\\/]*)
9402   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9403   ;;
9404   *)
9405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9407 do
9408   IFS=$as_save_IFS
9409   test -z "$as_dir" && as_dir=.
9410     for ac_exec_ext in '' $ac_executable_extensions; do
9411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9412     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9414     break 2
9415   fi
9416 done
9417   done
9418 IFS=$as_save_IFS
9419 
9420   ;;
9421 esac
9422 fi
9423 SORT=$ac_cv_path_SORT
9424 if test -n "$SORT"; then
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9426 $as_echo "$SORT" >&6; }
9427 else
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9430 fi
9431 
9432 
9433         if test "x$SORT" = x; then
9434           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9435         fi
9436       else
9437         # Otherwise we believe it is a complete path. Use it as it is.
9438         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9439 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9441 $as_echo_n "checking for SORT... " >&6; }
9442         if test ! -x "$tool_specified"; then
9443           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9444 $as_echo "not found" >&6; }
9445           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9446         fi
9447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9448 $as_echo "$tool_specified" >&6; }
9449       fi
9450     fi
9451   fi
9452 
9453 
9454 
9455   if test "x$SORT" = x; then
9456     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9457   fi
9458 
9459 
9460 
9461 
9462 
9463   # Publish this variable in the help.
9464 
9465 
9466   if test "x$TAIL" = x; then
9467     # The variable is not set by user, try to locate tool using the code snippet
9468     for ac_prog in tail
9469 do
9470   # Extract the first word of "$ac_prog", so it can be a program name with args.
9471 set dummy $ac_prog; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if ${ac_cv_path_TAIL+:} false; then :
9475   $as_echo_n "(cached) " >&6
9476 else
9477   case $TAIL in
9478   [\\/]* | ?:[\\/]*)
9479   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9480   ;;
9481   *)
9482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483 for as_dir in $PATH
9484 do
9485   IFS=$as_save_IFS
9486   test -z "$as_dir" && as_dir=.
9487     for ac_exec_ext in '' $ac_executable_extensions; do
9488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9489     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491     break 2
9492   fi
9493 done
9494   done
9495 IFS=$as_save_IFS
9496 
9497   ;;
9498 esac
9499 fi
9500 TAIL=$ac_cv_path_TAIL
9501 if test -n "$TAIL"; then
9502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9503 $as_echo "$TAIL" >&6; }
9504 else
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506 $as_echo "no" >&6; }
9507 fi
9508 
9509 
9510   test -n "$TAIL" && break
9511 done
9512 
9513   else
9514     # The variable is set, but is it from the command line or the environment?
9515 
9516     # Try to remove the string !TAIL! from our list.
9517     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9518     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9519       # If it failed, the variable was not from the command line. Ignore it,
9520       # but warn the user (except for BASH, which is always set by the calling BASH).
9521       if test "xTAIL" != xBASH; then
9522         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9523 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9524       fi
9525       # Try to locate tool using the code snippet
9526       for ac_prog in tail
9527 do
9528   # Extract the first word of "$ac_prog", so it can be a program name with args.
9529 set dummy $ac_prog; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_path_TAIL+:} false; then :
9533   $as_echo_n "(cached) " >&6
9534 else
9535   case $TAIL in
9536   [\\/]* | ?:[\\/]*)
9537   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9538   ;;
9539   *)
9540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9542 do
9543   IFS=$as_save_IFS
9544   test -z "$as_dir" && as_dir=.
9545     for ac_exec_ext in '' $ac_executable_extensions; do
9546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549     break 2
9550   fi
9551 done
9552   done
9553 IFS=$as_save_IFS
9554 
9555   ;;
9556 esac
9557 fi
9558 TAIL=$ac_cv_path_TAIL
9559 if test -n "$TAIL"; then
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9561 $as_echo "$TAIL" >&6; }
9562 else
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9565 fi
9566 
9567 
9568   test -n "$TAIL" && break
9569 done
9570 
9571     else
9572       # If it succeeded, then it was overridden by the user. We will use it
9573       # for the tool.
9574 
9575       # First remove it from the list of overridden variables, so we can test
9576       # for unknown variables in the end.
9577       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9578 
9579       # Check if the provided tool contains a complete path.
9580       tool_specified="$TAIL"
9581       tool_basename="${tool_specified##*/}"
9582       if test "x$tool_basename" = "x$tool_specified"; then
9583         # A command without a complete path is provided, search $PATH.
9584         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9585 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9586         # Extract the first word of "$tool_basename", so it can be a program name with args.
9587 set dummy $tool_basename; ac_word=$2
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589 $as_echo_n "checking for $ac_word... " >&6; }
9590 if ${ac_cv_path_TAIL+:} false; then :
9591   $as_echo_n "(cached) " >&6
9592 else
9593   case $TAIL in
9594   [\\/]* | ?:[\\/]*)
9595   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9596   ;;
9597   *)
9598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599 for as_dir in $PATH
9600 do
9601   IFS=$as_save_IFS
9602   test -z "$as_dir" && as_dir=.
9603     for ac_exec_ext in '' $ac_executable_extensions; do
9604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9605     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9607     break 2
9608   fi
9609 done
9610   done
9611 IFS=$as_save_IFS
9612 
9613   ;;
9614 esac
9615 fi
9616 TAIL=$ac_cv_path_TAIL
9617 if test -n "$TAIL"; then
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9619 $as_echo "$TAIL" >&6; }
9620 else
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9623 fi
9624 
9625 
9626         if test "x$TAIL" = x; then
9627           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9628         fi
9629       else
9630         # Otherwise we believe it is a complete path. Use it as it is.
9631         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9632 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9634 $as_echo_n "checking for TAIL... " >&6; }
9635         if test ! -x "$tool_specified"; then
9636           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9637 $as_echo "not found" >&6; }
9638           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9639         fi
9640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9641 $as_echo "$tool_specified" >&6; }
9642       fi
9643     fi
9644   fi
9645 
9646 
9647 
9648   if test "x$TAIL" = x; then
9649     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9650   fi
9651 
9652 
9653 
9654 
9655 
9656   # Publish this variable in the help.
9657 
9658 
9659   if test "x$TAR" = x; then
9660     # The variable is not set by user, try to locate tool using the code snippet
9661     for ac_prog in tar
9662 do
9663   # Extract the first word of "$ac_prog", so it can be a program name with args.
9664 set dummy $ac_prog; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if ${ac_cv_path_TAR+:} false; then :
9668   $as_echo_n "(cached) " >&6
9669 else
9670   case $TAR in
9671   [\\/]* | ?:[\\/]*)
9672   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9673   ;;
9674   *)
9675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676 for as_dir in $PATH
9677 do
9678   IFS=$as_save_IFS
9679   test -z "$as_dir" && as_dir=.
9680     for ac_exec_ext in '' $ac_executable_extensions; do
9681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9682     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9684     break 2
9685   fi
9686 done
9687   done
9688 IFS=$as_save_IFS
9689 
9690   ;;
9691 esac
9692 fi
9693 TAR=$ac_cv_path_TAR
9694 if test -n "$TAR"; then
9695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9696 $as_echo "$TAR" >&6; }
9697 else
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9699 $as_echo "no" >&6; }
9700 fi
9701 
9702 
9703   test -n "$TAR" && break
9704 done
9705 
9706   else
9707     # The variable is set, but is it from the command line or the environment?
9708 
9709     # Try to remove the string !TAR! from our list.
9710     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9711     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9712       # If it failed, the variable was not from the command line. Ignore it,
9713       # but warn the user (except for BASH, which is always set by the calling BASH).
9714       if test "xTAR" != xBASH; then
9715         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9716 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9717       fi
9718       # Try to locate tool using the code snippet
9719       for ac_prog in tar
9720 do
9721   # Extract the first word of "$ac_prog", so it can be a program name with args.
9722 set dummy $ac_prog; ac_word=$2
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if ${ac_cv_path_TAR+:} false; then :
9726   $as_echo_n "(cached) " >&6
9727 else
9728   case $TAR in
9729   [\\/]* | ?:[\\/]*)
9730   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9731   ;;
9732   *)
9733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734 for as_dir in $PATH
9735 do
9736   IFS=$as_save_IFS
9737   test -z "$as_dir" && as_dir=.
9738     for ac_exec_ext in '' $ac_executable_extensions; do
9739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742     break 2
9743   fi
9744 done
9745   done
9746 IFS=$as_save_IFS
9747 
9748   ;;
9749 esac
9750 fi
9751 TAR=$ac_cv_path_TAR
9752 if test -n "$TAR"; then
9753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9754 $as_echo "$TAR" >&6; }
9755 else
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9758 fi
9759 
9760 
9761   test -n "$TAR" && break
9762 done
9763 
9764     else
9765       # If it succeeded, then it was overridden by the user. We will use it
9766       # for the tool.
9767 
9768       # First remove it from the list of overridden variables, so we can test
9769       # for unknown variables in the end.
9770       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9771 
9772       # Check if the provided tool contains a complete path.
9773       tool_specified="$TAR"
9774       tool_basename="${tool_specified##*/}"
9775       if test "x$tool_basename" = "x$tool_specified"; then
9776         # A command without a complete path is provided, search $PATH.
9777         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9778 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9779         # Extract the first word of "$tool_basename", so it can be a program name with args.
9780 set dummy $tool_basename; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if ${ac_cv_path_TAR+:} false; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   case $TAR in
9787   [\\/]* | ?:[\\/]*)
9788   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9789   ;;
9790   *)
9791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9793 do
9794   IFS=$as_save_IFS
9795   test -z "$as_dir" && as_dir=.
9796     for ac_exec_ext in '' $ac_executable_extensions; do
9797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9798     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800     break 2
9801   fi
9802 done
9803   done
9804 IFS=$as_save_IFS
9805 
9806   ;;
9807 esac
9808 fi
9809 TAR=$ac_cv_path_TAR
9810 if test -n "$TAR"; then
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9812 $as_echo "$TAR" >&6; }
9813 else
9814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9816 fi
9817 
9818 
9819         if test "x$TAR" = x; then
9820           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9821         fi
9822       else
9823         # Otherwise we believe it is a complete path. Use it as it is.
9824         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9825 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9827 $as_echo_n "checking for TAR... " >&6; }
9828         if test ! -x "$tool_specified"; then
9829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9830 $as_echo "not found" >&6; }
9831           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9832         fi
9833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9834 $as_echo "$tool_specified" >&6; }
9835       fi
9836     fi
9837   fi
9838 
9839 
9840 
9841   if test "x$TAR" = x; then
9842     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9843   fi
9844 
9845 
9846 
9847 
9848 
9849   # Publish this variable in the help.
9850 
9851 
9852   if test "x$TEE" = x; then
9853     # The variable is not set by user, try to locate tool using the code snippet
9854     for ac_prog in tee
9855 do
9856   # Extract the first word of "$ac_prog", so it can be a program name with args.
9857 set dummy $ac_prog; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_path_TEE+:} false; then :
9861   $as_echo_n "(cached) " >&6
9862 else
9863   case $TEE in
9864   [\\/]* | ?:[\\/]*)
9865   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9866   ;;
9867   *)
9868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9870 do
9871   IFS=$as_save_IFS
9872   test -z "$as_dir" && as_dir=.
9873     for ac_exec_ext in '' $ac_executable_extensions; do
9874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877     break 2
9878   fi
9879 done
9880   done
9881 IFS=$as_save_IFS
9882 
9883   ;;
9884 esac
9885 fi
9886 TEE=$ac_cv_path_TEE
9887 if test -n "$TEE"; then
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9889 $as_echo "$TEE" >&6; }
9890 else
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9893 fi
9894 
9895 
9896   test -n "$TEE" && break
9897 done
9898 
9899   else
9900     # The variable is set, but is it from the command line or the environment?
9901 
9902     # Try to remove the string !TEE! from our list.
9903     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9904     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9905       # If it failed, the variable was not from the command line. Ignore it,
9906       # but warn the user (except for BASH, which is always set by the calling BASH).
9907       if test "xTEE" != xBASH; then
9908         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9909 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9910       fi
9911       # Try to locate tool using the code snippet
9912       for ac_prog in tee
9913 do
9914   # Extract the first word of "$ac_prog", so it can be a program name with args.
9915 set dummy $ac_prog; ac_word=$2
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9917 $as_echo_n "checking for $ac_word... " >&6; }
9918 if ${ac_cv_path_TEE+:} false; then :
9919   $as_echo_n "(cached) " >&6
9920 else
9921   case $TEE in
9922   [\\/]* | ?:[\\/]*)
9923   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9924   ;;
9925   *)
9926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 for as_dir in $PATH
9928 do
9929   IFS=$as_save_IFS
9930   test -z "$as_dir" && as_dir=.
9931     for ac_exec_ext in '' $ac_executable_extensions; do
9932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935     break 2
9936   fi
9937 done
9938   done
9939 IFS=$as_save_IFS
9940 
9941   ;;
9942 esac
9943 fi
9944 TEE=$ac_cv_path_TEE
9945 if test -n "$TEE"; then
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9947 $as_echo "$TEE" >&6; }
9948 else
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9951 fi
9952 
9953 
9954   test -n "$TEE" && break
9955 done
9956 
9957     else
9958       # If it succeeded, then it was overridden by the user. We will use it
9959       # for the tool.
9960 
9961       # First remove it from the list of overridden variables, so we can test
9962       # for unknown variables in the end.
9963       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9964 
9965       # Check if the provided tool contains a complete path.
9966       tool_specified="$TEE"
9967       tool_basename="${tool_specified##*/}"
9968       if test "x$tool_basename" = "x$tool_specified"; then
9969         # A command without a complete path is provided, search $PATH.
9970         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9971 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9972         # Extract the first word of "$tool_basename", so it can be a program name with args.
9973 set dummy $tool_basename; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if ${ac_cv_path_TEE+:} false; then :
9977   $as_echo_n "(cached) " >&6
9978 else
9979   case $TEE in
9980   [\\/]* | ?:[\\/]*)
9981   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9982   ;;
9983   *)
9984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9986 do
9987   IFS=$as_save_IFS
9988   test -z "$as_dir" && as_dir=.
9989     for ac_exec_ext in '' $ac_executable_extensions; do
9990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993     break 2
9994   fi
9995 done
9996   done
9997 IFS=$as_save_IFS
9998 
9999   ;;
10000 esac
10001 fi
10002 TEE=$ac_cv_path_TEE
10003 if test -n "$TEE"; then
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10005 $as_echo "$TEE" >&6; }
10006 else
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10009 fi
10010 
10011 
10012         if test "x$TEE" = x; then
10013           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10014         fi
10015       else
10016         # Otherwise we believe it is a complete path. Use it as it is.
10017         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10018 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10020 $as_echo_n "checking for TEE... " >&6; }
10021         if test ! -x "$tool_specified"; then
10022           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10023 $as_echo "not found" >&6; }
10024           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10025         fi
10026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10027 $as_echo "$tool_specified" >&6; }
10028       fi
10029     fi
10030   fi
10031 
10032 
10033 
10034   if test "x$TEE" = x; then
10035     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10036   fi
10037 
10038 
10039 
10040 
10041 
10042   # Publish this variable in the help.
10043 
10044 
10045   if test "x$TOUCH" = x; then
10046     # The variable is not set by user, try to locate tool using the code snippet
10047     for ac_prog in touch
10048 do
10049   # Extract the first word of "$ac_prog", so it can be a program name with args.
10050 set dummy $ac_prog; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if ${ac_cv_path_TOUCH+:} false; then :
10054   $as_echo_n "(cached) " >&6
10055 else
10056   case $TOUCH in
10057   [\\/]* | ?:[\\/]*)
10058   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10059   ;;
10060   *)
10061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062 for as_dir in $PATH
10063 do
10064   IFS=$as_save_IFS
10065   test -z "$as_dir" && as_dir=.
10066     for ac_exec_ext in '' $ac_executable_extensions; do
10067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10068     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070     break 2
10071   fi
10072 done
10073   done
10074 IFS=$as_save_IFS
10075 
10076   ;;
10077 esac
10078 fi
10079 TOUCH=$ac_cv_path_TOUCH
10080 if test -n "$TOUCH"; then
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10082 $as_echo "$TOUCH" >&6; }
10083 else
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085 $as_echo "no" >&6; }
10086 fi
10087 
10088 
10089   test -n "$TOUCH" && break
10090 done
10091 
10092   else
10093     # The variable is set, but is it from the command line or the environment?
10094 
10095     # Try to remove the string !TOUCH! from our list.
10096     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10097     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10098       # If it failed, the variable was not from the command line. Ignore it,
10099       # but warn the user (except for BASH, which is always set by the calling BASH).
10100       if test "xTOUCH" != xBASH; then
10101         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10102 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10103       fi
10104       # Try to locate tool using the code snippet
10105       for ac_prog in touch
10106 do
10107   # Extract the first word of "$ac_prog", so it can be a program name with args.
10108 set dummy $ac_prog; ac_word=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if ${ac_cv_path_TOUCH+:} false; then :
10112   $as_echo_n "(cached) " >&6
10113 else
10114   case $TOUCH in
10115   [\\/]* | ?:[\\/]*)
10116   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10117   ;;
10118   *)
10119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in $PATH
10121 do
10122   IFS=$as_save_IFS
10123   test -z "$as_dir" && as_dir=.
10124     for ac_exec_ext in '' $ac_executable_extensions; do
10125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10126     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128     break 2
10129   fi
10130 done
10131   done
10132 IFS=$as_save_IFS
10133 
10134   ;;
10135 esac
10136 fi
10137 TOUCH=$ac_cv_path_TOUCH
10138 if test -n "$TOUCH"; then
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10140 $as_echo "$TOUCH" >&6; }
10141 else
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10144 fi
10145 
10146 
10147   test -n "$TOUCH" && break
10148 done
10149 
10150     else
10151       # If it succeeded, then it was overridden by the user. We will use it
10152       # for the tool.
10153 
10154       # First remove it from the list of overridden variables, so we can test
10155       # for unknown variables in the end.
10156       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10157 
10158       # Check if the provided tool contains a complete path.
10159       tool_specified="$TOUCH"
10160       tool_basename="${tool_specified##*/}"
10161       if test "x$tool_basename" = "x$tool_specified"; then
10162         # A command without a complete path is provided, search $PATH.
10163         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10164 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10165         # Extract the first word of "$tool_basename", so it can be a program name with args.
10166 set dummy $tool_basename; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if ${ac_cv_path_TOUCH+:} false; then :
10170   $as_echo_n "(cached) " >&6
10171 else
10172   case $TOUCH in
10173   [\\/]* | ?:[\\/]*)
10174   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10175   ;;
10176   *)
10177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10179 do
10180   IFS=$as_save_IFS
10181   test -z "$as_dir" && as_dir=.
10182     for ac_exec_ext in '' $ac_executable_extensions; do
10183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10184     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186     break 2
10187   fi
10188 done
10189   done
10190 IFS=$as_save_IFS
10191 
10192   ;;
10193 esac
10194 fi
10195 TOUCH=$ac_cv_path_TOUCH
10196 if test -n "$TOUCH"; then
10197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10198 $as_echo "$TOUCH" >&6; }
10199 else
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10202 fi
10203 
10204 
10205         if test "x$TOUCH" = x; then
10206           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10207         fi
10208       else
10209         # Otherwise we believe it is a complete path. Use it as it is.
10210         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10211 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10213 $as_echo_n "checking for TOUCH... " >&6; }
10214         if test ! -x "$tool_specified"; then
10215           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10216 $as_echo "not found" >&6; }
10217           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10218         fi
10219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10220 $as_echo "$tool_specified" >&6; }
10221       fi
10222     fi
10223   fi
10224 
10225 
10226 
10227   if test "x$TOUCH" = x; then
10228     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10229   fi
10230 
10231 
10232 
10233 
10234 
10235   # Publish this variable in the help.
10236 
10237 
10238   if test "x$TR" = x; then
10239     # The variable is not set by user, try to locate tool using the code snippet
10240     for ac_prog in tr
10241 do
10242   # Extract the first word of "$ac_prog", so it can be a program name with args.
10243 set dummy $ac_prog; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if ${ac_cv_path_TR+:} false; then :
10247   $as_echo_n "(cached) " >&6
10248 else
10249   case $TR in
10250   [\\/]* | ?:[\\/]*)
10251   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10252   ;;
10253   *)
10254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10256 do
10257   IFS=$as_save_IFS
10258   test -z "$as_dir" && as_dir=.
10259     for ac_exec_ext in '' $ac_executable_extensions; do
10260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263     break 2
10264   fi
10265 done
10266   done
10267 IFS=$as_save_IFS
10268 
10269   ;;
10270 esac
10271 fi
10272 TR=$ac_cv_path_TR
10273 if test -n "$TR"; then
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10275 $as_echo "$TR" >&6; }
10276 else
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279 fi
10280 
10281 
10282   test -n "$TR" && break
10283 done
10284 
10285   else
10286     # The variable is set, but is it from the command line or the environment?
10287 
10288     # Try to remove the string !TR! from our list.
10289     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10290     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10291       # If it failed, the variable was not from the command line. Ignore it,
10292       # but warn the user (except for BASH, which is always set by the calling BASH).
10293       if test "xTR" != xBASH; then
10294         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10295 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10296       fi
10297       # Try to locate tool using the code snippet
10298       for ac_prog in tr
10299 do
10300   # Extract the first word of "$ac_prog", so it can be a program name with args.
10301 set dummy $ac_prog; ac_word=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if ${ac_cv_path_TR+:} false; then :
10305   $as_echo_n "(cached) " >&6
10306 else
10307   case $TR in
10308   [\\/]* | ?:[\\/]*)
10309   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10310   ;;
10311   *)
10312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315   IFS=$as_save_IFS
10316   test -z "$as_dir" && as_dir=.
10317     for ac_exec_ext in '' $ac_executable_extensions; do
10318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321     break 2
10322   fi
10323 done
10324   done
10325 IFS=$as_save_IFS
10326 
10327   ;;
10328 esac
10329 fi
10330 TR=$ac_cv_path_TR
10331 if test -n "$TR"; then
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10333 $as_echo "$TR" >&6; }
10334 else
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10337 fi
10338 
10339 
10340   test -n "$TR" && break
10341 done
10342 
10343     else
10344       # If it succeeded, then it was overridden by the user. We will use it
10345       # for the tool.
10346 
10347       # First remove it from the list of overridden variables, so we can test
10348       # for unknown variables in the end.
10349       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10350 
10351       # Check if the provided tool contains a complete path.
10352       tool_specified="$TR"
10353       tool_basename="${tool_specified##*/}"
10354       if test "x$tool_basename" = "x$tool_specified"; then
10355         # A command without a complete path is provided, search $PATH.
10356         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10357 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10358         # Extract the first word of "$tool_basename", so it can be a program name with args.
10359 set dummy $tool_basename; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_path_TR+:} false; then :
10363   $as_echo_n "(cached) " >&6
10364 else
10365   case $TR in
10366   [\\/]* | ?:[\\/]*)
10367   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10368   ;;
10369   *)
10370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373   IFS=$as_save_IFS
10374   test -z "$as_dir" && as_dir=.
10375     for ac_exec_ext in '' $ac_executable_extensions; do
10376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379     break 2
10380   fi
10381 done
10382   done
10383 IFS=$as_save_IFS
10384 
10385   ;;
10386 esac
10387 fi
10388 TR=$ac_cv_path_TR
10389 if test -n "$TR"; then
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10391 $as_echo "$TR" >&6; }
10392 else
10393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10395 fi
10396 
10397 
10398         if test "x$TR" = x; then
10399           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10400         fi
10401       else
10402         # Otherwise we believe it is a complete path. Use it as it is.
10403         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10404 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10406 $as_echo_n "checking for TR... " >&6; }
10407         if test ! -x "$tool_specified"; then
10408           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10409 $as_echo "not found" >&6; }
10410           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10411         fi
10412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10413 $as_echo "$tool_specified" >&6; }
10414       fi
10415     fi
10416   fi
10417 
10418 
10419 
10420   if test "x$TR" = x; then
10421     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10422   fi
10423 
10424 
10425 
10426 
10427 
10428   # Publish this variable in the help.
10429 
10430 
10431   if test "x$UNAME" = x; then
10432     # The variable is not set by user, try to locate tool using the code snippet
10433     for ac_prog in uname
10434 do
10435   # Extract the first word of "$ac_prog", so it can be a program name with args.
10436 set dummy $ac_prog; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_path_UNAME+:} false; then :
10440   $as_echo_n "(cached) " >&6
10441 else
10442   case $UNAME in
10443   [\\/]* | ?:[\\/]*)
10444   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10445   ;;
10446   *)
10447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10449 do
10450   IFS=$as_save_IFS
10451   test -z "$as_dir" && as_dir=.
10452     for ac_exec_ext in '' $ac_executable_extensions; do
10453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456     break 2
10457   fi
10458 done
10459   done
10460 IFS=$as_save_IFS
10461 
10462   ;;
10463 esac
10464 fi
10465 UNAME=$ac_cv_path_UNAME
10466 if test -n "$UNAME"; then
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10468 $as_echo "$UNAME" >&6; }
10469 else
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10472 fi
10473 
10474 
10475   test -n "$UNAME" && break
10476 done
10477 
10478   else
10479     # The variable is set, but is it from the command line or the environment?
10480 
10481     # Try to remove the string !UNAME! from our list.
10482     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10483     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10484       # If it failed, the variable was not from the command line. Ignore it,
10485       # but warn the user (except for BASH, which is always set by the calling BASH).
10486       if test "xUNAME" != xBASH; then
10487         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10488 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10489       fi
10490       # Try to locate tool using the code snippet
10491       for ac_prog in uname
10492 do
10493   # Extract the first word of "$ac_prog", so it can be a program name with args.
10494 set dummy $ac_prog; ac_word=$2
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496 $as_echo_n "checking for $ac_word... " >&6; }
10497 if ${ac_cv_path_UNAME+:} false; then :
10498   $as_echo_n "(cached) " >&6
10499 else
10500   case $UNAME in
10501   [\\/]* | ?:[\\/]*)
10502   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10503   ;;
10504   *)
10505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10507 do
10508   IFS=$as_save_IFS
10509   test -z "$as_dir" && as_dir=.
10510     for ac_exec_ext in '' $ac_executable_extensions; do
10511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10512     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514     break 2
10515   fi
10516 done
10517   done
10518 IFS=$as_save_IFS
10519 
10520   ;;
10521 esac
10522 fi
10523 UNAME=$ac_cv_path_UNAME
10524 if test -n "$UNAME"; then
10525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10526 $as_echo "$UNAME" >&6; }
10527 else
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 fi
10531 
10532 
10533   test -n "$UNAME" && break
10534 done
10535 
10536     else
10537       # If it succeeded, then it was overridden by the user. We will use it
10538       # for the tool.
10539 
10540       # First remove it from the list of overridden variables, so we can test
10541       # for unknown variables in the end.
10542       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10543 
10544       # Check if the provided tool contains a complete path.
10545       tool_specified="$UNAME"
10546       tool_basename="${tool_specified##*/}"
10547       if test "x$tool_basename" = "x$tool_specified"; then
10548         # A command without a complete path is provided, search $PATH.
10549         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10550 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10551         # Extract the first word of "$tool_basename", so it can be a program name with args.
10552 set dummy $tool_basename; ac_word=$2
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554 $as_echo_n "checking for $ac_word... " >&6; }
10555 if ${ac_cv_path_UNAME+:} false; then :
10556   $as_echo_n "(cached) " >&6
10557 else
10558   case $UNAME in
10559   [\\/]* | ?:[\\/]*)
10560   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10561   ;;
10562   *)
10563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566   IFS=$as_save_IFS
10567   test -z "$as_dir" && as_dir=.
10568     for ac_exec_ext in '' $ac_executable_extensions; do
10569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572     break 2
10573   fi
10574 done
10575   done
10576 IFS=$as_save_IFS
10577 
10578   ;;
10579 esac
10580 fi
10581 UNAME=$ac_cv_path_UNAME
10582 if test -n "$UNAME"; then
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10584 $as_echo "$UNAME" >&6; }
10585 else
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10588 fi
10589 
10590 
10591         if test "x$UNAME" = x; then
10592           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10593         fi
10594       else
10595         # Otherwise we believe it is a complete path. Use it as it is.
10596         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10597 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10598         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10599 $as_echo_n "checking for UNAME... " >&6; }
10600         if test ! -x "$tool_specified"; then
10601           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10602 $as_echo "not found" >&6; }
10603           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10604         fi
10605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10606 $as_echo "$tool_specified" >&6; }
10607       fi
10608     fi
10609   fi
10610 
10611 
10612 
10613   if test "x$UNAME" = x; then
10614     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10615   fi
10616 
10617 
10618 
10619 
10620 
10621   # Publish this variable in the help.
10622 
10623 
10624   if test "x$UNIQ" = x; then
10625     # The variable is not set by user, try to locate tool using the code snippet
10626     for ac_prog in uniq
10627 do
10628   # Extract the first word of "$ac_prog", so it can be a program name with args.
10629 set dummy $ac_prog; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_path_UNIQ+:} false; then :
10633   $as_echo_n "(cached) " >&6
10634 else
10635   case $UNIQ in
10636   [\\/]* | ?:[\\/]*)
10637   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10638   ;;
10639   *)
10640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10642 do
10643   IFS=$as_save_IFS
10644   test -z "$as_dir" && as_dir=.
10645     for ac_exec_ext in '' $ac_executable_extensions; do
10646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10647     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649     break 2
10650   fi
10651 done
10652   done
10653 IFS=$as_save_IFS
10654 
10655   ;;
10656 esac
10657 fi
10658 UNIQ=$ac_cv_path_UNIQ
10659 if test -n "$UNIQ"; then
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10661 $as_echo "$UNIQ" >&6; }
10662 else
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665 fi
10666 
10667 
10668   test -n "$UNIQ" && break
10669 done
10670 
10671   else
10672     # The variable is set, but is it from the command line or the environment?
10673 
10674     # Try to remove the string !UNIQ! from our list.
10675     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10676     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10677       # If it failed, the variable was not from the command line. Ignore it,
10678       # but warn the user (except for BASH, which is always set by the calling BASH).
10679       if test "xUNIQ" != xBASH; then
10680         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10681 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10682       fi
10683       # Try to locate tool using the code snippet
10684       for ac_prog in uniq
10685 do
10686   # Extract the first word of "$ac_prog", so it can be a program name with args.
10687 set dummy $ac_prog; ac_word=$2
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689 $as_echo_n "checking for $ac_word... " >&6; }
10690 if ${ac_cv_path_UNIQ+:} false; then :
10691   $as_echo_n "(cached) " >&6
10692 else
10693   case $UNIQ in
10694   [\\/]* | ?:[\\/]*)
10695   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10696   ;;
10697   *)
10698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10700 do
10701   IFS=$as_save_IFS
10702   test -z "$as_dir" && as_dir=.
10703     for ac_exec_ext in '' $ac_executable_extensions; do
10704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10705     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707     break 2
10708   fi
10709 done
10710   done
10711 IFS=$as_save_IFS
10712 
10713   ;;
10714 esac
10715 fi
10716 UNIQ=$ac_cv_path_UNIQ
10717 if test -n "$UNIQ"; then
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10719 $as_echo "$UNIQ" >&6; }
10720 else
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 $as_echo "no" >&6; }
10723 fi
10724 
10725 
10726   test -n "$UNIQ" && break
10727 done
10728 
10729     else
10730       # If it succeeded, then it was overridden by the user. We will use it
10731       # for the tool.
10732 
10733       # First remove it from the list of overridden variables, so we can test
10734       # for unknown variables in the end.
10735       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10736 
10737       # Check if the provided tool contains a complete path.
10738       tool_specified="$UNIQ"
10739       tool_basename="${tool_specified##*/}"
10740       if test "x$tool_basename" = "x$tool_specified"; then
10741         # A command without a complete path is provided, search $PATH.
10742         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10743 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10744         # Extract the first word of "$tool_basename", so it can be a program name with args.
10745 set dummy $tool_basename; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if ${ac_cv_path_UNIQ+:} false; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751   case $UNIQ in
10752   [\\/]* | ?:[\\/]*)
10753   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10754   ;;
10755   *)
10756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759   IFS=$as_save_IFS
10760   test -z "$as_dir" && as_dir=.
10761     for ac_exec_ext in '' $ac_executable_extensions; do
10762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10765     break 2
10766   fi
10767 done
10768   done
10769 IFS=$as_save_IFS
10770 
10771   ;;
10772 esac
10773 fi
10774 UNIQ=$ac_cv_path_UNIQ
10775 if test -n "$UNIQ"; then
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10777 $as_echo "$UNIQ" >&6; }
10778 else
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780 $as_echo "no" >&6; }
10781 fi
10782 
10783 
10784         if test "x$UNIQ" = x; then
10785           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10786         fi
10787       else
10788         # Otherwise we believe it is a complete path. Use it as it is.
10789         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10790 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10792 $as_echo_n "checking for UNIQ... " >&6; }
10793         if test ! -x "$tool_specified"; then
10794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10795 $as_echo "not found" >&6; }
10796           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10797         fi
10798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10799 $as_echo "$tool_specified" >&6; }
10800       fi
10801     fi
10802   fi
10803 
10804 
10805 
10806   if test "x$UNIQ" = x; then
10807     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10808   fi
10809 
10810 
10811 
10812 
10813 
10814   # Publish this variable in the help.
10815 
10816 
10817   if test "x$WC" = x; then
10818     # The variable is not set by user, try to locate tool using the code snippet
10819     for ac_prog in wc
10820 do
10821   # Extract the first word of "$ac_prog", so it can be a program name with args.
10822 set dummy $ac_prog; ac_word=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if ${ac_cv_path_WC+:} false; then :
10826   $as_echo_n "(cached) " >&6
10827 else
10828   case $WC in
10829   [\\/]* | ?:[\\/]*)
10830   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10831   ;;
10832   *)
10833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10835 do
10836   IFS=$as_save_IFS
10837   test -z "$as_dir" && as_dir=.
10838     for ac_exec_ext in '' $ac_executable_extensions; do
10839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842     break 2
10843   fi
10844 done
10845   done
10846 IFS=$as_save_IFS
10847 
10848   ;;
10849 esac
10850 fi
10851 WC=$ac_cv_path_WC
10852 if test -n "$WC"; then
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10854 $as_echo "$WC" >&6; }
10855 else
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 $as_echo "no" >&6; }
10858 fi
10859 
10860 
10861   test -n "$WC" && break
10862 done
10863 
10864   else
10865     # The variable is set, but is it from the command line or the environment?
10866 
10867     # Try to remove the string !WC! from our list.
10868     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10869     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10870       # If it failed, the variable was not from the command line. Ignore it,
10871       # but warn the user (except for BASH, which is always set by the calling BASH).
10872       if test "xWC" != xBASH; then
10873         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10874 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10875       fi
10876       # Try to locate tool using the code snippet
10877       for ac_prog in wc
10878 do
10879   # Extract the first word of "$ac_prog", so it can be a program name with args.
10880 set dummy $ac_prog; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if ${ac_cv_path_WC+:} false; then :
10884   $as_echo_n "(cached) " >&6
10885 else
10886   case $WC in
10887   [\\/]* | ?:[\\/]*)
10888   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10889   ;;
10890   *)
10891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10893 do
10894   IFS=$as_save_IFS
10895   test -z "$as_dir" && as_dir=.
10896     for ac_exec_ext in '' $ac_executable_extensions; do
10897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900     break 2
10901   fi
10902 done
10903   done
10904 IFS=$as_save_IFS
10905 
10906   ;;
10907 esac
10908 fi
10909 WC=$ac_cv_path_WC
10910 if test -n "$WC"; then
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10912 $as_echo "$WC" >&6; }
10913 else
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10916 fi
10917 
10918 
10919   test -n "$WC" && break
10920 done
10921 
10922     else
10923       # If it succeeded, then it was overridden by the user. We will use it
10924       # for the tool.
10925 
10926       # First remove it from the list of overridden variables, so we can test
10927       # for unknown variables in the end.
10928       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10929 
10930       # Check if the provided tool contains a complete path.
10931       tool_specified="$WC"
10932       tool_basename="${tool_specified##*/}"
10933       if test "x$tool_basename" = "x$tool_specified"; then
10934         # A command without a complete path is provided, search $PATH.
10935         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10936 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10937         # Extract the first word of "$tool_basename", so it can be a program name with args.
10938 set dummy $tool_basename; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if ${ac_cv_path_WC+:} false; then :
10942   $as_echo_n "(cached) " >&6
10943 else
10944   case $WC in
10945   [\\/]* | ?:[\\/]*)
10946   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10947   ;;
10948   *)
10949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10951 do
10952   IFS=$as_save_IFS
10953   test -z "$as_dir" && as_dir=.
10954     for ac_exec_ext in '' $ac_executable_extensions; do
10955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10956     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958     break 2
10959   fi
10960 done
10961   done
10962 IFS=$as_save_IFS
10963 
10964   ;;
10965 esac
10966 fi
10967 WC=$ac_cv_path_WC
10968 if test -n "$WC"; then
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10970 $as_echo "$WC" >&6; }
10971 else
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10974 fi
10975 
10976 
10977         if test "x$WC" = x; then
10978           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10979         fi
10980       else
10981         # Otherwise we believe it is a complete path. Use it as it is.
10982         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10983 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10985 $as_echo_n "checking for WC... " >&6; }
10986         if test ! -x "$tool_specified"; then
10987           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10988 $as_echo "not found" >&6; }
10989           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10990         fi
10991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10992 $as_echo "$tool_specified" >&6; }
10993       fi
10994     fi
10995   fi
10996 
10997 
10998 
10999   if test "x$WC" = x; then
11000     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11001   fi
11002 
11003 
11004 
11005 
11006 
11007   # Publish this variable in the help.
11008 
11009 
11010   if test "x$WHICH" = x; then
11011     # The variable is not set by user, try to locate tool using the code snippet
11012     for ac_prog in which
11013 do
11014   # Extract the first word of "$ac_prog", so it can be a program name with args.
11015 set dummy $ac_prog; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_path_WHICH+:} false; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   case $WHICH in
11022   [\\/]* | ?:[\\/]*)
11023   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11024   ;;
11025   *)
11026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11028 do
11029   IFS=$as_save_IFS
11030   test -z "$as_dir" && as_dir=.
11031     for ac_exec_ext in '' $ac_executable_extensions; do
11032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11033     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035     break 2
11036   fi
11037 done
11038   done
11039 IFS=$as_save_IFS
11040 
11041   ;;
11042 esac
11043 fi
11044 WHICH=$ac_cv_path_WHICH
11045 if test -n "$WHICH"; then
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11047 $as_echo "$WHICH" >&6; }
11048 else
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11051 fi
11052 
11053 
11054   test -n "$WHICH" && break
11055 done
11056 
11057   else
11058     # The variable is set, but is it from the command line or the environment?
11059 
11060     # Try to remove the string !WHICH! from our list.
11061     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11062     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11063       # If it failed, the variable was not from the command line. Ignore it,
11064       # but warn the user (except for BASH, which is always set by the calling BASH).
11065       if test "xWHICH" != xBASH; then
11066         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11067 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11068       fi
11069       # Try to locate tool using the code snippet
11070       for ac_prog in which
11071 do
11072   # Extract the first word of "$ac_prog", so it can be a program name with args.
11073 set dummy $ac_prog; ac_word=$2
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if ${ac_cv_path_WHICH+:} false; then :
11077   $as_echo_n "(cached) " >&6
11078 else
11079   case $WHICH in
11080   [\\/]* | ?:[\\/]*)
11081   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11082   ;;
11083   *)
11084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087   IFS=$as_save_IFS
11088   test -z "$as_dir" && as_dir=.
11089     for ac_exec_ext in '' $ac_executable_extensions; do
11090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11091     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093     break 2
11094   fi
11095 done
11096   done
11097 IFS=$as_save_IFS
11098 
11099   ;;
11100 esac
11101 fi
11102 WHICH=$ac_cv_path_WHICH
11103 if test -n "$WHICH"; then
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11105 $as_echo "$WHICH" >&6; }
11106 else
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109 fi
11110 
11111 
11112   test -n "$WHICH" && break
11113 done
11114 
11115     else
11116       # If it succeeded, then it was overridden by the user. We will use it
11117       # for the tool.
11118 
11119       # First remove it from the list of overridden variables, so we can test
11120       # for unknown variables in the end.
11121       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11122 
11123       # Check if the provided tool contains a complete path.
11124       tool_specified="$WHICH"
11125       tool_basename="${tool_specified##*/}"
11126       if test "x$tool_basename" = "x$tool_specified"; then
11127         # A command without a complete path is provided, search $PATH.
11128         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11129 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11130         # Extract the first word of "$tool_basename", so it can be a program name with args.
11131 set dummy $tool_basename; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133 $as_echo_n "checking for $ac_word... " >&6; }
11134 if ${ac_cv_path_WHICH+:} false; then :
11135   $as_echo_n "(cached) " >&6
11136 else
11137   case $WHICH in
11138   [\\/]* | ?:[\\/]*)
11139   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11140   ;;
11141   *)
11142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143 for as_dir in $PATH
11144 do
11145   IFS=$as_save_IFS
11146   test -z "$as_dir" && as_dir=.
11147     for ac_exec_ext in '' $ac_executable_extensions; do
11148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11149     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11151     break 2
11152   fi
11153 done
11154   done
11155 IFS=$as_save_IFS
11156 
11157   ;;
11158 esac
11159 fi
11160 WHICH=$ac_cv_path_WHICH
11161 if test -n "$WHICH"; then
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11163 $as_echo "$WHICH" >&6; }
11164 else
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 $as_echo "no" >&6; }
11167 fi
11168 
11169 
11170         if test "x$WHICH" = x; then
11171           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11172         fi
11173       else
11174         # Otherwise we believe it is a complete path. Use it as it is.
11175         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11176 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11178 $as_echo_n "checking for WHICH... " >&6; }
11179         if test ! -x "$tool_specified"; then
11180           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11181 $as_echo "not found" >&6; }
11182           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11183         fi
11184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11185 $as_echo "$tool_specified" >&6; }
11186       fi
11187     fi
11188   fi
11189 
11190 
11191 
11192   if test "x$WHICH" = x; then
11193     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11194   fi
11195 
11196 
11197 
11198 
11199 
11200   # Publish this variable in the help.
11201 
11202 
11203   if test "x$XARGS" = x; then
11204     # The variable is not set by user, try to locate tool using the code snippet
11205     for ac_prog in xargs
11206 do
11207   # Extract the first word of "$ac_prog", so it can be a program name with args.
11208 set dummy $ac_prog; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_path_XARGS+:} false; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   case $XARGS in
11215   [\\/]* | ?:[\\/]*)
11216   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11217   ;;
11218   *)
11219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11221 do
11222   IFS=$as_save_IFS
11223   test -z "$as_dir" && as_dir=.
11224     for ac_exec_ext in '' $ac_executable_extensions; do
11225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11226     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228     break 2
11229   fi
11230 done
11231   done
11232 IFS=$as_save_IFS
11233 
11234   ;;
11235 esac
11236 fi
11237 XARGS=$ac_cv_path_XARGS
11238 if test -n "$XARGS"; then
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11240 $as_echo "$XARGS" >&6; }
11241 else
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245 
11246 
11247   test -n "$XARGS" && break
11248 done
11249 
11250   else
11251     # The variable is set, but is it from the command line or the environment?
11252 
11253     # Try to remove the string !XARGS! from our list.
11254     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11255     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11256       # If it failed, the variable was not from the command line. Ignore it,
11257       # but warn the user (except for BASH, which is always set by the calling BASH).
11258       if test "xXARGS" != xBASH; then
11259         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11260 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11261       fi
11262       # Try to locate tool using the code snippet
11263       for ac_prog in xargs
11264 do
11265   # Extract the first word of "$ac_prog", so it can be a program name with args.
11266 set dummy $ac_prog; ac_word=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if ${ac_cv_path_XARGS+:} false; then :
11270   $as_echo_n "(cached) " >&6
11271 else
11272   case $XARGS in
11273   [\\/]* | ?:[\\/]*)
11274   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11275   ;;
11276   *)
11277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11279 do
11280   IFS=$as_save_IFS
11281   test -z "$as_dir" && as_dir=.
11282     for ac_exec_ext in '' $ac_executable_extensions; do
11283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286     break 2
11287   fi
11288 done
11289   done
11290 IFS=$as_save_IFS
11291 
11292   ;;
11293 esac
11294 fi
11295 XARGS=$ac_cv_path_XARGS
11296 if test -n "$XARGS"; then
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11298 $as_echo "$XARGS" >&6; }
11299 else
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11302 fi
11303 
11304 
11305   test -n "$XARGS" && break
11306 done
11307 
11308     else
11309       # If it succeeded, then it was overridden by the user. We will use it
11310       # for the tool.
11311 
11312       # First remove it from the list of overridden variables, so we can test
11313       # for unknown variables in the end.
11314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11315 
11316       # Check if the provided tool contains a complete path.
11317       tool_specified="$XARGS"
11318       tool_basename="${tool_specified##*/}"
11319       if test "x$tool_basename" = "x$tool_specified"; then
11320         # A command without a complete path is provided, search $PATH.
11321         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11322 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11323         # Extract the first word of "$tool_basename", so it can be a program name with args.
11324 set dummy $tool_basename; ac_word=$2
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11326 $as_echo_n "checking for $ac_word... " >&6; }
11327 if ${ac_cv_path_XARGS+:} false; then :
11328   $as_echo_n "(cached) " >&6
11329 else
11330   case $XARGS in
11331   [\\/]* | ?:[\\/]*)
11332   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11333   ;;
11334   *)
11335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11337 do
11338   IFS=$as_save_IFS
11339   test -z "$as_dir" && as_dir=.
11340     for ac_exec_ext in '' $ac_executable_extensions; do
11341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344     break 2
11345   fi
11346 done
11347   done
11348 IFS=$as_save_IFS
11349 
11350   ;;
11351 esac
11352 fi
11353 XARGS=$ac_cv_path_XARGS
11354 if test -n "$XARGS"; then
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11356 $as_echo "$XARGS" >&6; }
11357 else
11358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11360 fi
11361 
11362 
11363         if test "x$XARGS" = x; then
11364           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11365         fi
11366       else
11367         # Otherwise we believe it is a complete path. Use it as it is.
11368         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11369 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11370         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11371 $as_echo_n "checking for XARGS... " >&6; }
11372         if test ! -x "$tool_specified"; then
11373           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11374 $as_echo "not found" >&6; }
11375           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11376         fi
11377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11378 $as_echo "$tool_specified" >&6; }
11379       fi
11380     fi
11381   fi
11382 
11383 
11384 
11385   if test "x$XARGS" = x; then
11386     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11387   fi
11388 
11389 
11390 
11391   # Then required tools that require some special treatment.
11392 
11393 
11394   # Publish this variable in the help.
11395 
11396 
11397   if test "x$AWK" = x; then
11398     # The variable is not set by user, try to locate tool using the code snippet
11399     for ac_prog in gawk mawk nawk awk
11400 do
11401   # Extract the first word of "$ac_prog", so it can be a program name with args.
11402 set dummy $ac_prog; ac_word=$2
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11404 $as_echo_n "checking for $ac_word... " >&6; }
11405 if ${ac_cv_prog_AWK+:} false; then :
11406   $as_echo_n "(cached) " >&6
11407 else
11408   if test -n "$AWK"; then
11409   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11410 else
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11413 do
11414   IFS=$as_save_IFS
11415   test -z "$as_dir" && as_dir=.
11416     for ac_exec_ext in '' $ac_executable_extensions; do
11417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418     ac_cv_prog_AWK="$ac_prog"
11419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11420     break 2
11421   fi
11422 done
11423   done
11424 IFS=$as_save_IFS
11425 
11426 fi
11427 fi
11428 AWK=$ac_cv_prog_AWK
11429 if test -n "$AWK"; then
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11431 $as_echo "$AWK" >&6; }
11432 else
11433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11435 fi
11436 
11437 
11438   test -n "$AWK" && break
11439 done
11440 
11441   else
11442     # The variable is set, but is it from the command line or the environment?
11443 
11444     # Try to remove the string !AWK! from our list.
11445     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11446     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11447       # If it failed, the variable was not from the command line. Ignore it,
11448       # but warn the user (except for BASH, which is always set by the calling BASH).
11449       if test "xAWK" != xBASH; then
11450         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11451 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11452       fi
11453       # Try to locate tool using the code snippet
11454       for ac_prog in gawk mawk nawk awk
11455 do
11456   # Extract the first word of "$ac_prog", so it can be a program name with args.
11457 set dummy $ac_prog; ac_word=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459 $as_echo_n "checking for $ac_word... " >&6; }
11460 if ${ac_cv_prog_AWK+:} false; then :
11461   $as_echo_n "(cached) " >&6
11462 else
11463   if test -n "$AWK"; then
11464   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11465 else
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11468 do
11469   IFS=$as_save_IFS
11470   test -z "$as_dir" && as_dir=.
11471     for ac_exec_ext in '' $ac_executable_extensions; do
11472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11473     ac_cv_prog_AWK="$ac_prog"
11474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475     break 2
11476   fi
11477 done
11478   done
11479 IFS=$as_save_IFS
11480 
11481 fi
11482 fi
11483 AWK=$ac_cv_prog_AWK
11484 if test -n "$AWK"; then
11485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11486 $as_echo "$AWK" >&6; }
11487 else
11488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490 fi
11491 
11492 
11493   test -n "$AWK" && break
11494 done
11495 
11496     else
11497       # If it succeeded, then it was overridden by the user. We will use it
11498       # for the tool.
11499 
11500       # First remove it from the list of overridden variables, so we can test
11501       # for unknown variables in the end.
11502       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11503 
11504       # Check if the provided tool contains a complete path.
11505       tool_specified="$AWK"
11506       tool_basename="${tool_specified##*/}"
11507       if test "x$tool_basename" = "x$tool_specified"; then
11508         # A command without a complete path is provided, search $PATH.
11509         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11510 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11511         # Extract the first word of "$tool_basename", so it can be a program name with args.
11512 set dummy $tool_basename; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if ${ac_cv_path_AWK+:} false; then :
11516   $as_echo_n "(cached) " >&6
11517 else
11518   case $AWK in
11519   [\\/]* | ?:[\\/]*)
11520   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11521   ;;
11522   *)
11523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11525 do
11526   IFS=$as_save_IFS
11527   test -z "$as_dir" && as_dir=.
11528     for ac_exec_ext in '' $ac_executable_extensions; do
11529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532     break 2
11533   fi
11534 done
11535   done
11536 IFS=$as_save_IFS
11537 
11538   ;;
11539 esac
11540 fi
11541 AWK=$ac_cv_path_AWK
11542 if test -n "$AWK"; then
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11544 $as_echo "$AWK" >&6; }
11545 else
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11548 fi
11549 
11550 
11551         if test "x$AWK" = x; then
11552           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11553         fi
11554       else
11555         # Otherwise we believe it is a complete path. Use it as it is.
11556         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11557 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11559 $as_echo_n "checking for AWK... " >&6; }
11560         if test ! -x "$tool_specified"; then
11561           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11562 $as_echo "not found" >&6; }
11563           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11564         fi
11565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11566 $as_echo "$tool_specified" >&6; }
11567       fi
11568     fi
11569   fi
11570 
11571 
11572   if test "x$AWK" = x; then
11573     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11574   fi
11575 
11576 
11577 
11578 
11579   # Publish this variable in the help.
11580 
11581 
11582   if test "x$GREP" = x; then
11583     # The variable is not set by user, try to locate tool using the code snippet
11584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11585 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11586 if ${ac_cv_path_GREP+:} false; then :
11587   $as_echo_n "(cached) " >&6
11588 else
11589   if test -z "$GREP"; then
11590   ac_path_GREP_found=false
11591   # Loop through the user's path and test for each of PROGNAME-LIST
11592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11594 do
11595   IFS=$as_save_IFS
11596   test -z "$as_dir" && as_dir=.
11597     for ac_prog in grep ggrep; do
11598     for ac_exec_ext in '' $ac_executable_extensions; do
11599       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11600       as_fn_executable_p "$ac_path_GREP" || continue
11601 # Check for GNU ac_path_GREP and select it if it is found.
11602   # Check for GNU $ac_path_GREP
11603 case `"$ac_path_GREP" --version 2>&1` in
11604 *GNU*)
11605   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11606 *)
11607   ac_count=0
11608   $as_echo_n 0123456789 >"conftest.in"
11609   while :
11610   do
11611     cat "conftest.in" "conftest.in" >"conftest.tmp"
11612     mv "conftest.tmp" "conftest.in"
11613     cp "conftest.in" "conftest.nl"
11614     $as_echo 'GREP' >> "conftest.nl"
11615     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11616     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11617     as_fn_arith $ac_count + 1 && ac_count=$as_val
11618     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11619       # Best one so far, save it but keep looking for a better one
11620       ac_cv_path_GREP="$ac_path_GREP"
11621       ac_path_GREP_max=$ac_count
11622     fi
11623     # 10*(2^10) chars as input seems more than enough
11624     test $ac_count -gt 10 && break
11625   done
11626   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11627 esac
11628 
11629       $ac_path_GREP_found && break 3
11630     done
11631   done
11632   done
11633 IFS=$as_save_IFS
11634   if test -z "$ac_cv_path_GREP"; then
11635     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11636   fi
11637 else
11638   ac_cv_path_GREP=$GREP
11639 fi
11640 
11641 fi
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11643 $as_echo "$ac_cv_path_GREP" >&6; }
11644  GREP="$ac_cv_path_GREP"
11645 
11646 
11647   else
11648     # The variable is set, but is it from the command line or the environment?
11649 
11650     # Try to remove the string !GREP! from our list.
11651     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11652     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11653       # If it failed, the variable was not from the command line. Ignore it,
11654       # but warn the user (except for BASH, which is always set by the calling BASH).
11655       if test "xGREP" != xBASH; then
11656         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11657 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11658       fi
11659       # Try to locate tool using the code snippet
11660       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11661 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11662 if ${ac_cv_path_GREP+:} false; then :
11663   $as_echo_n "(cached) " >&6
11664 else
11665   if test -z "$GREP"; then
11666   ac_path_GREP_found=false
11667   # Loop through the user's path and test for each of PROGNAME-LIST
11668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11670 do
11671   IFS=$as_save_IFS
11672   test -z "$as_dir" && as_dir=.
11673     for ac_prog in grep ggrep; do
11674     for ac_exec_ext in '' $ac_executable_extensions; do
11675       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11676       as_fn_executable_p "$ac_path_GREP" || continue
11677 # Check for GNU ac_path_GREP and select it if it is found.
11678   # Check for GNU $ac_path_GREP
11679 case `"$ac_path_GREP" --version 2>&1` in
11680 *GNU*)
11681   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11682 *)
11683   ac_count=0
11684   $as_echo_n 0123456789 >"conftest.in"
11685   while :
11686   do
11687     cat "conftest.in" "conftest.in" >"conftest.tmp"
11688     mv "conftest.tmp" "conftest.in"
11689     cp "conftest.in" "conftest.nl"
11690     $as_echo 'GREP' >> "conftest.nl"
11691     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11692     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11693     as_fn_arith $ac_count + 1 && ac_count=$as_val
11694     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11695       # Best one so far, save it but keep looking for a better one
11696       ac_cv_path_GREP="$ac_path_GREP"
11697       ac_path_GREP_max=$ac_count
11698     fi
11699     # 10*(2^10) chars as input seems more than enough
11700     test $ac_count -gt 10 && break
11701   done
11702   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11703 esac
11704 
11705       $ac_path_GREP_found && break 3
11706     done
11707   done
11708   done
11709 IFS=$as_save_IFS
11710   if test -z "$ac_cv_path_GREP"; then
11711     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11712   fi
11713 else
11714   ac_cv_path_GREP=$GREP
11715 fi
11716 
11717 fi
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11719 $as_echo "$ac_cv_path_GREP" >&6; }
11720  GREP="$ac_cv_path_GREP"
11721 
11722 
11723     else
11724       # If it succeeded, then it was overridden by the user. We will use it
11725       # for the tool.
11726 
11727       # First remove it from the list of overridden variables, so we can test
11728       # for unknown variables in the end.
11729       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11730 
11731       # Check if the provided tool contains a complete path.
11732       tool_specified="$GREP"
11733       tool_basename="${tool_specified##*/}"
11734       if test "x$tool_basename" = "x$tool_specified"; then
11735         # A command without a complete path is provided, search $PATH.
11736         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11737 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11738         # Extract the first word of "$tool_basename", so it can be a program name with args.
11739 set dummy $tool_basename; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if ${ac_cv_path_GREP+:} false; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   case $GREP in
11746   [\\/]* | ?:[\\/]*)
11747   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11748   ;;
11749   *)
11750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11752 do
11753   IFS=$as_save_IFS
11754   test -z "$as_dir" && as_dir=.
11755     for ac_exec_ext in '' $ac_executable_extensions; do
11756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11757     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759     break 2
11760   fi
11761 done
11762   done
11763 IFS=$as_save_IFS
11764 
11765   ;;
11766 esac
11767 fi
11768 GREP=$ac_cv_path_GREP
11769 if test -n "$GREP"; then
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11771 $as_echo "$GREP" >&6; }
11772 else
11773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775 fi
11776 
11777 
11778         if test "x$GREP" = x; then
11779           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11780         fi
11781       else
11782         # Otherwise we believe it is a complete path. Use it as it is.
11783         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11784 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11786 $as_echo_n "checking for GREP... " >&6; }
11787         if test ! -x "$tool_specified"; then
11788           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11789 $as_echo "not found" >&6; }
11790           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11791         fi
11792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11793 $as_echo "$tool_specified" >&6; }
11794       fi
11795     fi
11796   fi
11797 
11798 
11799   if test "x$GREP" = x; then
11800     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11801   fi
11802 
11803 
11804 
11805 
11806   # Publish this variable in the help.
11807 
11808 
11809   if test "x$EGREP" = x; then
11810     # The variable is not set by user, try to locate tool using the code snippet
11811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11812 $as_echo_n "checking for egrep... " >&6; }
11813 if ${ac_cv_path_EGREP+:} false; then :
11814   $as_echo_n "(cached) " >&6
11815 else
11816   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11817    then ac_cv_path_EGREP="$GREP -E"
11818    else
11819      if test -z "$EGREP"; then
11820   ac_path_EGREP_found=false
11821   # Loop through the user's path and test for each of PROGNAME-LIST
11822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11824 do
11825   IFS=$as_save_IFS
11826   test -z "$as_dir" && as_dir=.
11827     for ac_prog in egrep; do
11828     for ac_exec_ext in '' $ac_executable_extensions; do
11829       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11830       as_fn_executable_p "$ac_path_EGREP" || continue
11831 # Check for GNU ac_path_EGREP and select it if it is found.
11832   # Check for GNU $ac_path_EGREP
11833 case `"$ac_path_EGREP" --version 2>&1` in
11834 *GNU*)
11835   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11836 *)
11837   ac_count=0
11838   $as_echo_n 0123456789 >"conftest.in"
11839   while :
11840   do
11841     cat "conftest.in" "conftest.in" >"conftest.tmp"
11842     mv "conftest.tmp" "conftest.in"
11843     cp "conftest.in" "conftest.nl"
11844     $as_echo 'EGREP' >> "conftest.nl"
11845     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11846     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11847     as_fn_arith $ac_count + 1 && ac_count=$as_val
11848     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11849       # Best one so far, save it but keep looking for a better one
11850       ac_cv_path_EGREP="$ac_path_EGREP"
11851       ac_path_EGREP_max=$ac_count
11852     fi
11853     # 10*(2^10) chars as input seems more than enough
11854     test $ac_count -gt 10 && break
11855   done
11856   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11857 esac
11858 
11859       $ac_path_EGREP_found && break 3
11860     done
11861   done
11862   done
11863 IFS=$as_save_IFS
11864   if test -z "$ac_cv_path_EGREP"; then
11865     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11866   fi
11867 else
11868   ac_cv_path_EGREP=$EGREP
11869 fi
11870 
11871    fi
11872 fi
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11874 $as_echo "$ac_cv_path_EGREP" >&6; }
11875  EGREP="$ac_cv_path_EGREP"
11876 
11877 
11878   else
11879     # The variable is set, but is it from the command line or the environment?
11880 
11881     # Try to remove the string !EGREP! from our list.
11882     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11883     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11884       # If it failed, the variable was not from the command line. Ignore it,
11885       # but warn the user (except for BASH, which is always set by the calling BASH).
11886       if test "xEGREP" != xBASH; then
11887         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11888 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11889       fi
11890       # Try to locate tool using the code snippet
11891       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11892 $as_echo_n "checking for egrep... " >&6; }
11893 if ${ac_cv_path_EGREP+:} false; then :
11894   $as_echo_n "(cached) " >&6
11895 else
11896   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11897    then ac_cv_path_EGREP="$GREP -E"
11898    else
11899      if test -z "$EGREP"; then
11900   ac_path_EGREP_found=false
11901   # Loop through the user's path and test for each of PROGNAME-LIST
11902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11904 do
11905   IFS=$as_save_IFS
11906   test -z "$as_dir" && as_dir=.
11907     for ac_prog in egrep; do
11908     for ac_exec_ext in '' $ac_executable_extensions; do
11909       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11910       as_fn_executable_p "$ac_path_EGREP" || continue
11911 # Check for GNU ac_path_EGREP and select it if it is found.
11912   # Check for GNU $ac_path_EGREP
11913 case `"$ac_path_EGREP" --version 2>&1` in
11914 *GNU*)
11915   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11916 *)
11917   ac_count=0
11918   $as_echo_n 0123456789 >"conftest.in"
11919   while :
11920   do
11921     cat "conftest.in" "conftest.in" >"conftest.tmp"
11922     mv "conftest.tmp" "conftest.in"
11923     cp "conftest.in" "conftest.nl"
11924     $as_echo 'EGREP' >> "conftest.nl"
11925     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11926     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11927     as_fn_arith $ac_count + 1 && ac_count=$as_val
11928     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11929       # Best one so far, save it but keep looking for a better one
11930       ac_cv_path_EGREP="$ac_path_EGREP"
11931       ac_path_EGREP_max=$ac_count
11932     fi
11933     # 10*(2^10) chars as input seems more than enough
11934     test $ac_count -gt 10 && break
11935   done
11936   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11937 esac
11938 
11939       $ac_path_EGREP_found && break 3
11940     done
11941   done
11942   done
11943 IFS=$as_save_IFS
11944   if test -z "$ac_cv_path_EGREP"; then
11945     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11946   fi
11947 else
11948   ac_cv_path_EGREP=$EGREP
11949 fi
11950 
11951    fi
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11954 $as_echo "$ac_cv_path_EGREP" >&6; }
11955  EGREP="$ac_cv_path_EGREP"
11956 
11957 
11958     else
11959       # If it succeeded, then it was overridden by the user. We will use it
11960       # for the tool.
11961 
11962       # First remove it from the list of overridden variables, so we can test
11963       # for unknown variables in the end.
11964       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11965 
11966       # Check if the provided tool contains a complete path.
11967       tool_specified="$EGREP"
11968       tool_basename="${tool_specified##*/}"
11969       if test "x$tool_basename" = "x$tool_specified"; then
11970         # A command without a complete path is provided, search $PATH.
11971         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11972 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11973         # Extract the first word of "$tool_basename", so it can be a program name with args.
11974 set dummy $tool_basename; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if ${ac_cv_path_EGREP+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   case $EGREP in
11981   [\\/]* | ?:[\\/]*)
11982   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11983   ;;
11984   *)
11985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $PATH
11987 do
11988   IFS=$as_save_IFS
11989   test -z "$as_dir" && as_dir=.
11990     for ac_exec_ext in '' $ac_executable_extensions; do
11991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994     break 2
11995   fi
11996 done
11997   done
11998 IFS=$as_save_IFS
11999 
12000   ;;
12001 esac
12002 fi
12003 EGREP=$ac_cv_path_EGREP
12004 if test -n "$EGREP"; then
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12006 $as_echo "$EGREP" >&6; }
12007 else
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 fi
12011 
12012 
12013         if test "x$EGREP" = x; then
12014           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12015         fi
12016       else
12017         # Otherwise we believe it is a complete path. Use it as it is.
12018         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12019 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12021 $as_echo_n "checking for EGREP... " >&6; }
12022         if test ! -x "$tool_specified"; then
12023           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12024 $as_echo "not found" >&6; }
12025           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12026         fi
12027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12028 $as_echo "$tool_specified" >&6; }
12029       fi
12030     fi
12031   fi
12032 
12033 
12034   if test "x$EGREP" = x; then
12035     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12036   fi
12037 
12038 
12039 
12040 
12041   # Publish this variable in the help.
12042 
12043 
12044   if test "x$FGREP" = x; then
12045     # The variable is not set by user, try to locate tool using the code snippet
12046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12047 $as_echo_n "checking for fgrep... " >&6; }
12048 if ${ac_cv_path_FGREP+:} false; then :
12049   $as_echo_n "(cached) " >&6
12050 else
12051   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12052    then ac_cv_path_FGREP="$GREP -F"
12053    else
12054      if test -z "$FGREP"; then
12055   ac_path_FGREP_found=false
12056   # Loop through the user's path and test for each of PROGNAME-LIST
12057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12059 do
12060   IFS=$as_save_IFS
12061   test -z "$as_dir" && as_dir=.
12062     for ac_prog in fgrep; do
12063     for ac_exec_ext in '' $ac_executable_extensions; do
12064       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12065       as_fn_executable_p "$ac_path_FGREP" || continue
12066 # Check for GNU ac_path_FGREP and select it if it is found.
12067   # Check for GNU $ac_path_FGREP
12068 case `"$ac_path_FGREP" --version 2>&1` in
12069 *GNU*)
12070   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12071 *)
12072   ac_count=0
12073   $as_echo_n 0123456789 >"conftest.in"
12074   while :
12075   do
12076     cat "conftest.in" "conftest.in" >"conftest.tmp"
12077     mv "conftest.tmp" "conftest.in"
12078     cp "conftest.in" "conftest.nl"
12079     $as_echo 'FGREP' >> "conftest.nl"
12080     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12081     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12082     as_fn_arith $ac_count + 1 && ac_count=$as_val
12083     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12084       # Best one so far, save it but keep looking for a better one
12085       ac_cv_path_FGREP="$ac_path_FGREP"
12086       ac_path_FGREP_max=$ac_count
12087     fi
12088     # 10*(2^10) chars as input seems more than enough
12089     test $ac_count -gt 10 && break
12090   done
12091   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12092 esac
12093 
12094       $ac_path_FGREP_found && break 3
12095     done
12096   done
12097   done
12098 IFS=$as_save_IFS
12099   if test -z "$ac_cv_path_FGREP"; then
12100     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12101   fi
12102 else
12103   ac_cv_path_FGREP=$FGREP
12104 fi
12105 
12106    fi
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12109 $as_echo "$ac_cv_path_FGREP" >&6; }
12110  FGREP="$ac_cv_path_FGREP"
12111 
12112 
12113   else
12114     # The variable is set, but is it from the command line or the environment?
12115 
12116     # Try to remove the string !FGREP! from our list.
12117     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12118     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12119       # If it failed, the variable was not from the command line. Ignore it,
12120       # but warn the user (except for BASH, which is always set by the calling BASH).
12121       if test "xFGREP" != xBASH; then
12122         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12123 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12124       fi
12125       # Try to locate tool using the code snippet
12126       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12127 $as_echo_n "checking for fgrep... " >&6; }
12128 if ${ac_cv_path_FGREP+:} false; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12132    then ac_cv_path_FGREP="$GREP -F"
12133    else
12134      if test -z "$FGREP"; then
12135   ac_path_FGREP_found=false
12136   # Loop through the user's path and test for each of PROGNAME-LIST
12137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12139 do
12140   IFS=$as_save_IFS
12141   test -z "$as_dir" && as_dir=.
12142     for ac_prog in fgrep; do
12143     for ac_exec_ext in '' $ac_executable_extensions; do
12144       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12145       as_fn_executable_p "$ac_path_FGREP" || continue
12146 # Check for GNU ac_path_FGREP and select it if it is found.
12147   # Check for GNU $ac_path_FGREP
12148 case `"$ac_path_FGREP" --version 2>&1` in
12149 *GNU*)
12150   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12151 *)
12152   ac_count=0
12153   $as_echo_n 0123456789 >"conftest.in"
12154   while :
12155   do
12156     cat "conftest.in" "conftest.in" >"conftest.tmp"
12157     mv "conftest.tmp" "conftest.in"
12158     cp "conftest.in" "conftest.nl"
12159     $as_echo 'FGREP' >> "conftest.nl"
12160     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12161     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12162     as_fn_arith $ac_count + 1 && ac_count=$as_val
12163     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12164       # Best one so far, save it but keep looking for a better one
12165       ac_cv_path_FGREP="$ac_path_FGREP"
12166       ac_path_FGREP_max=$ac_count
12167     fi
12168     # 10*(2^10) chars as input seems more than enough
12169     test $ac_count -gt 10 && break
12170   done
12171   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12172 esac
12173 
12174       $ac_path_FGREP_found && break 3
12175     done
12176   done
12177   done
12178 IFS=$as_save_IFS
12179   if test -z "$ac_cv_path_FGREP"; then
12180     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12181   fi
12182 else
12183   ac_cv_path_FGREP=$FGREP
12184 fi
12185 
12186    fi
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12189 $as_echo "$ac_cv_path_FGREP" >&6; }
12190  FGREP="$ac_cv_path_FGREP"
12191 
12192 
12193     else
12194       # If it succeeded, then it was overridden by the user. We will use it
12195       # for the tool.
12196 
12197       # First remove it from the list of overridden variables, so we can test
12198       # for unknown variables in the end.
12199       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12200 
12201       # Check if the provided tool contains a complete path.
12202       tool_specified="$FGREP"
12203       tool_basename="${tool_specified##*/}"
12204       if test "x$tool_basename" = "x$tool_specified"; then
12205         # A command without a complete path is provided, search $PATH.
12206         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12207 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12208         # Extract the first word of "$tool_basename", so it can be a program name with args.
12209 set dummy $tool_basename; ac_word=$2
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211 $as_echo_n "checking for $ac_word... " >&6; }
12212 if ${ac_cv_path_FGREP+:} false; then :
12213   $as_echo_n "(cached) " >&6
12214 else
12215   case $FGREP in
12216   [\\/]* | ?:[\\/]*)
12217   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12218   ;;
12219   *)
12220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221 for as_dir in $PATH
12222 do
12223   IFS=$as_save_IFS
12224   test -z "$as_dir" && as_dir=.
12225     for ac_exec_ext in '' $ac_executable_extensions; do
12226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12227     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229     break 2
12230   fi
12231 done
12232   done
12233 IFS=$as_save_IFS
12234 
12235   ;;
12236 esac
12237 fi
12238 FGREP=$ac_cv_path_FGREP
12239 if test -n "$FGREP"; then
12240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12241 $as_echo "$FGREP" >&6; }
12242 else
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245 fi
12246 
12247 
12248         if test "x$FGREP" = x; then
12249           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12250         fi
12251       else
12252         # Otherwise we believe it is a complete path. Use it as it is.
12253         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12254 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12256 $as_echo_n "checking for FGREP... " >&6; }
12257         if test ! -x "$tool_specified"; then
12258           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12259 $as_echo "not found" >&6; }
12260           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12261         fi
12262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12263 $as_echo "$tool_specified" >&6; }
12264       fi
12265     fi
12266   fi
12267 
12268 
12269   if test "x$FGREP" = x; then
12270     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12271   fi
12272 
12273 
12274 
12275 
12276   # Publish this variable in the help.
12277 
12278 
12279   if test "x$SED" = x; then
12280     # The variable is not set by user, try to locate tool using the code snippet
12281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12282 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12283 if ${ac_cv_path_SED+:} false; then :
12284   $as_echo_n "(cached) " >&6
12285 else
12286             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12287      for ac_i in 1 2 3 4 5 6 7; do
12288        ac_script="$ac_script$as_nl$ac_script"
12289      done
12290      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12291      { ac_script=; unset ac_script;}
12292      if test -z "$SED"; then
12293   ac_path_SED_found=false
12294   # Loop through the user's path and test for each of PROGNAME-LIST
12295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298   IFS=$as_save_IFS
12299   test -z "$as_dir" && as_dir=.
12300     for ac_prog in sed gsed; do
12301     for ac_exec_ext in '' $ac_executable_extensions; do
12302       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12303       as_fn_executable_p "$ac_path_SED" || continue
12304 # Check for GNU ac_path_SED and select it if it is found.
12305   # Check for GNU $ac_path_SED
12306 case `"$ac_path_SED" --version 2>&1` in
12307 *GNU*)
12308   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12309 *)
12310   ac_count=0
12311   $as_echo_n 0123456789 >"conftest.in"
12312   while :
12313   do
12314     cat "conftest.in" "conftest.in" >"conftest.tmp"
12315     mv "conftest.tmp" "conftest.in"
12316     cp "conftest.in" "conftest.nl"
12317     $as_echo '' >> "conftest.nl"
12318     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12320     as_fn_arith $ac_count + 1 && ac_count=$as_val
12321     if test $ac_count -gt ${ac_path_SED_max-0}; then
12322       # Best one so far, save it but keep looking for a better one
12323       ac_cv_path_SED="$ac_path_SED"
12324       ac_path_SED_max=$ac_count
12325     fi
12326     # 10*(2^10) chars as input seems more than enough
12327     test $ac_count -gt 10 && break
12328   done
12329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12330 esac
12331 
12332       $ac_path_SED_found && break 3
12333     done
12334   done
12335   done
12336 IFS=$as_save_IFS
12337   if test -z "$ac_cv_path_SED"; then
12338     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12339   fi
12340 else
12341   ac_cv_path_SED=$SED
12342 fi
12343 
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12346 $as_echo "$ac_cv_path_SED" >&6; }
12347  SED="$ac_cv_path_SED"
12348   rm -f conftest.sed
12349 
12350   else
12351     # The variable is set, but is it from the command line or the environment?
12352 
12353     # Try to remove the string !SED! from our list.
12354     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12355     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12356       # If it failed, the variable was not from the command line. Ignore it,
12357       # but warn the user (except for BASH, which is always set by the calling BASH).
12358       if test "xSED" != xBASH; then
12359         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12360 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12361       fi
12362       # Try to locate tool using the code snippet
12363       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12364 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12365 if ${ac_cv_path_SED+:} false; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12369      for ac_i in 1 2 3 4 5 6 7; do
12370        ac_script="$ac_script$as_nl$ac_script"
12371      done
12372      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12373      { ac_script=; unset ac_script;}
12374      if test -z "$SED"; then
12375   ac_path_SED_found=false
12376   # Loop through the user's path and test for each of PROGNAME-LIST
12377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12379 do
12380   IFS=$as_save_IFS
12381   test -z "$as_dir" && as_dir=.
12382     for ac_prog in sed gsed; do
12383     for ac_exec_ext in '' $ac_executable_extensions; do
12384       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12385       as_fn_executable_p "$ac_path_SED" || continue
12386 # Check for GNU ac_path_SED and select it if it is found.
12387   # Check for GNU $ac_path_SED
12388 case `"$ac_path_SED" --version 2>&1` in
12389 *GNU*)
12390   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12391 *)
12392   ac_count=0
12393   $as_echo_n 0123456789 >"conftest.in"
12394   while :
12395   do
12396     cat "conftest.in" "conftest.in" >"conftest.tmp"
12397     mv "conftest.tmp" "conftest.in"
12398     cp "conftest.in" "conftest.nl"
12399     $as_echo '' >> "conftest.nl"
12400     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12401     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12402     as_fn_arith $ac_count + 1 && ac_count=$as_val
12403     if test $ac_count -gt ${ac_path_SED_max-0}; then
12404       # Best one so far, save it but keep looking for a better one
12405       ac_cv_path_SED="$ac_path_SED"
12406       ac_path_SED_max=$ac_count
12407     fi
12408     # 10*(2^10) chars as input seems more than enough
12409     test $ac_count -gt 10 && break
12410   done
12411   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12412 esac
12413 
12414       $ac_path_SED_found && break 3
12415     done
12416   done
12417   done
12418 IFS=$as_save_IFS
12419   if test -z "$ac_cv_path_SED"; then
12420     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12421   fi
12422 else
12423   ac_cv_path_SED=$SED
12424 fi
12425 
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12428 $as_echo "$ac_cv_path_SED" >&6; }
12429  SED="$ac_cv_path_SED"
12430   rm -f conftest.sed
12431 
12432     else
12433       # If it succeeded, then it was overridden by the user. We will use it
12434       # for the tool.
12435 
12436       # First remove it from the list of overridden variables, so we can test
12437       # for unknown variables in the end.
12438       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12439 
12440       # Check if the provided tool contains a complete path.
12441       tool_specified="$SED"
12442       tool_basename="${tool_specified##*/}"
12443       if test "x$tool_basename" = "x$tool_specified"; then
12444         # A command without a complete path is provided, search $PATH.
12445         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12446 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12447         # Extract the first word of "$tool_basename", so it can be a program name with args.
12448 set dummy $tool_basename; ac_word=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 $as_echo_n "checking for $ac_word... " >&6; }
12451 if ${ac_cv_path_SED+:} false; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454   case $SED in
12455   [\\/]* | ?:[\\/]*)
12456   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12457   ;;
12458   *)
12459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462   IFS=$as_save_IFS
12463   test -z "$as_dir" && as_dir=.
12464     for ac_exec_ext in '' $ac_executable_extensions; do
12465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12466     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468     break 2
12469   fi
12470 done
12471   done
12472 IFS=$as_save_IFS
12473 
12474   ;;
12475 esac
12476 fi
12477 SED=$ac_cv_path_SED
12478 if test -n "$SED"; then
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12480 $as_echo "$SED" >&6; }
12481 else
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485 
12486 
12487         if test "x$SED" = x; then
12488           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12489         fi
12490       else
12491         # Otherwise we believe it is a complete path. Use it as it is.
12492         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12493 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12495 $as_echo_n "checking for SED... " >&6; }
12496         if test ! -x "$tool_specified"; then
12497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12498 $as_echo "not found" >&6; }
12499           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12500         fi
12501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12502 $as_echo "$tool_specified" >&6; }
12503       fi
12504     fi
12505   fi
12506 
12507 
12508   if test "x$SED" = x; then
12509     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12510   fi
12511 
12512 
12513 
12514   # Always force rm.
12515   RM="$RM -f"
12516 
12517   # pwd behaves differently on various platforms and some don't support the -L flag.
12518   # Always use the bash builtin pwd to get uniform behavior.
12519   THEPWDCMD=pwd
12520 
12521   # These are not required on all platforms
12522 
12523 
12524   # Publish this variable in the help.
12525 
12526 
12527   if test "x$CYGPATH" = x; then
12528     # The variable is not set by user, try to locate tool using the code snippet
12529     for ac_prog in cygpath
12530 do
12531   # Extract the first word of "$ac_prog", so it can be a program name with args.
12532 set dummy $ac_prog; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if ${ac_cv_path_CYGPATH+:} false; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538   case $CYGPATH in
12539   [\\/]* | ?:[\\/]*)
12540   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12541   ;;
12542   *)
12543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12545 do
12546   IFS=$as_save_IFS
12547   test -z "$as_dir" && as_dir=.
12548     for ac_exec_ext in '' $ac_executable_extensions; do
12549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12550     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552     break 2
12553   fi
12554 done
12555   done
12556 IFS=$as_save_IFS
12557 
12558   ;;
12559 esac
12560 fi
12561 CYGPATH=$ac_cv_path_CYGPATH
12562 if test -n "$CYGPATH"; then
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12564 $as_echo "$CYGPATH" >&6; }
12565 else
12566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12568 fi
12569 
12570 
12571   test -n "$CYGPATH" && break
12572 done
12573 
12574   else
12575     # The variable is set, but is it from the command line or the environment?
12576 
12577     # Try to remove the string !CYGPATH! from our list.
12578     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12579     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12580       # If it failed, the variable was not from the command line. Ignore it,
12581       # but warn the user (except for BASH, which is always set by the calling BASH).
12582       if test "xCYGPATH" != xBASH; then
12583         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12584 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12585       fi
12586       # Try to locate tool using the code snippet
12587       for ac_prog in cygpath
12588 do
12589   # Extract the first word of "$ac_prog", so it can be a program name with args.
12590 set dummy $ac_prog; ac_word=$2
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if ${ac_cv_path_CYGPATH+:} false; then :
12594   $as_echo_n "(cached) " >&6
12595 else
12596   case $CYGPATH in
12597   [\\/]* | ?:[\\/]*)
12598   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12599   ;;
12600   *)
12601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12603 do
12604   IFS=$as_save_IFS
12605   test -z "$as_dir" && as_dir=.
12606     for ac_exec_ext in '' $ac_executable_extensions; do
12607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12608     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610     break 2
12611   fi
12612 done
12613   done
12614 IFS=$as_save_IFS
12615 
12616   ;;
12617 esac
12618 fi
12619 CYGPATH=$ac_cv_path_CYGPATH
12620 if test -n "$CYGPATH"; then
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12622 $as_echo "$CYGPATH" >&6; }
12623 else
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627 
12628 
12629   test -n "$CYGPATH" && break
12630 done
12631 
12632     else
12633       # If it succeeded, then it was overridden by the user. We will use it
12634       # for the tool.
12635 
12636       # First remove it from the list of overridden variables, so we can test
12637       # for unknown variables in the end.
12638       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12639 
12640       # Check if the provided tool contains a complete path.
12641       tool_specified="$CYGPATH"
12642       tool_basename="${tool_specified##*/}"
12643       if test "x$tool_basename" = "x$tool_specified"; then
12644         # A command without a complete path is provided, search $PATH.
12645         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12646 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12647         # Extract the first word of "$tool_basename", so it can be a program name with args.
12648 set dummy $tool_basename; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12650 $as_echo_n "checking for $ac_word... " >&6; }
12651 if ${ac_cv_path_CYGPATH+:} false; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   case $CYGPATH in
12655   [\\/]* | ?:[\\/]*)
12656   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12657   ;;
12658   *)
12659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12660 for as_dir in $PATH
12661 do
12662   IFS=$as_save_IFS
12663   test -z "$as_dir" && as_dir=.
12664     for ac_exec_ext in '' $ac_executable_extensions; do
12665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12666     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12668     break 2
12669   fi
12670 done
12671   done
12672 IFS=$as_save_IFS
12673 
12674   ;;
12675 esac
12676 fi
12677 CYGPATH=$ac_cv_path_CYGPATH
12678 if test -n "$CYGPATH"; then
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12680 $as_echo "$CYGPATH" >&6; }
12681 else
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12684 fi
12685 
12686 
12687         if test "x$CYGPATH" = x; then
12688           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12689         fi
12690       else
12691         # Otherwise we believe it is a complete path. Use it as it is.
12692         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12693 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12694         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12695 $as_echo_n "checking for CYGPATH... " >&6; }
12696         if test ! -x "$tool_specified"; then
12697           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12698 $as_echo "not found" >&6; }
12699           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12700         fi
12701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12702 $as_echo "$tool_specified" >&6; }
12703       fi
12704     fi
12705   fi
12706 
12707 
12708 
12709 
12710   # Publish this variable in the help.
12711 
12712 
12713   if test "x$READLINK" = x; then
12714     # The variable is not set by user, try to locate tool using the code snippet
12715     for ac_prog in greadlink readlink
12716 do
12717   # Extract the first word of "$ac_prog", so it can be a program name with args.
12718 set dummy $ac_prog; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_path_READLINK+:} false; then :
12722   $as_echo_n "(cached) " >&6
12723 else
12724   case $READLINK in
12725   [\\/]* | ?:[\\/]*)
12726   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12727   ;;
12728   *)
12729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12731 do
12732   IFS=$as_save_IFS
12733   test -z "$as_dir" && as_dir=.
12734     for ac_exec_ext in '' $ac_executable_extensions; do
12735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12736     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738     break 2
12739   fi
12740 done
12741   done
12742 IFS=$as_save_IFS
12743 
12744   ;;
12745 esac
12746 fi
12747 READLINK=$ac_cv_path_READLINK
12748 if test -n "$READLINK"; then
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12750 $as_echo "$READLINK" >&6; }
12751 else
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12754 fi
12755 
12756 
12757   test -n "$READLINK" && break
12758 done
12759 
12760   else
12761     # The variable is set, but is it from the command line or the environment?
12762 
12763     # Try to remove the string !READLINK! from our list.
12764     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12765     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12766       # If it failed, the variable was not from the command line. Ignore it,
12767       # but warn the user (except for BASH, which is always set by the calling BASH).
12768       if test "xREADLINK" != xBASH; then
12769         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12770 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12771       fi
12772       # Try to locate tool using the code snippet
12773       for ac_prog in greadlink readlink
12774 do
12775   # Extract the first word of "$ac_prog", so it can be a program name with args.
12776 set dummy $ac_prog; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if ${ac_cv_path_READLINK+:} false; then :
12780   $as_echo_n "(cached) " >&6
12781 else
12782   case $READLINK in
12783   [\\/]* | ?:[\\/]*)
12784   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12785   ;;
12786   *)
12787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $PATH
12789 do
12790   IFS=$as_save_IFS
12791   test -z "$as_dir" && as_dir=.
12792     for ac_exec_ext in '' $ac_executable_extensions; do
12793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12794     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796     break 2
12797   fi
12798 done
12799   done
12800 IFS=$as_save_IFS
12801 
12802   ;;
12803 esac
12804 fi
12805 READLINK=$ac_cv_path_READLINK
12806 if test -n "$READLINK"; then
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12808 $as_echo "$READLINK" >&6; }
12809 else
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12812 fi
12813 
12814 
12815   test -n "$READLINK" && break
12816 done
12817 
12818     else
12819       # If it succeeded, then it was overridden by the user. We will use it
12820       # for the tool.
12821 
12822       # First remove it from the list of overridden variables, so we can test
12823       # for unknown variables in the end.
12824       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12825 
12826       # Check if the provided tool contains a complete path.
12827       tool_specified="$READLINK"
12828       tool_basename="${tool_specified##*/}"
12829       if test "x$tool_basename" = "x$tool_specified"; then
12830         # A command without a complete path is provided, search $PATH.
12831         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12832 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12833         # Extract the first word of "$tool_basename", so it can be a program name with args.
12834 set dummy $tool_basename; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if ${ac_cv_path_READLINK+:} false; then :
12838   $as_echo_n "(cached) " >&6
12839 else
12840   case $READLINK in
12841   [\\/]* | ?:[\\/]*)
12842   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12843   ;;
12844   *)
12845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846 for as_dir in $PATH
12847 do
12848   IFS=$as_save_IFS
12849   test -z "$as_dir" && as_dir=.
12850     for ac_exec_ext in '' $ac_executable_extensions; do
12851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12852     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854     break 2
12855   fi
12856 done
12857   done
12858 IFS=$as_save_IFS
12859 
12860   ;;
12861 esac
12862 fi
12863 READLINK=$ac_cv_path_READLINK
12864 if test -n "$READLINK"; then
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12866 $as_echo "$READLINK" >&6; }
12867 else
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12870 fi
12871 
12872 
12873         if test "x$READLINK" = x; then
12874           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12875         fi
12876       else
12877         # Otherwise we believe it is a complete path. Use it as it is.
12878         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12879 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12881 $as_echo_n "checking for READLINK... " >&6; }
12882         if test ! -x "$tool_specified"; then
12883           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12884 $as_echo "not found" >&6; }
12885           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12886         fi
12887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12888 $as_echo "$tool_specified" >&6; }
12889       fi
12890     fi
12891   fi
12892 
12893 
12894 
12895 
12896   # Publish this variable in the help.
12897 
12898 
12899   if test "x$DF" = x; then
12900     # The variable is not set by user, try to locate tool using the code snippet
12901     for ac_prog in df
12902 do
12903   # Extract the first word of "$ac_prog", so it can be a program name with args.
12904 set dummy $ac_prog; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 $as_echo_n "checking for $ac_word... " >&6; }
12907 if ${ac_cv_path_DF+:} false; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   case $DF in
12911   [\\/]* | ?:[\\/]*)
12912   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12913   ;;
12914   *)
12915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12917 do
12918   IFS=$as_save_IFS
12919   test -z "$as_dir" && as_dir=.
12920     for ac_exec_ext in '' $ac_executable_extensions; do
12921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12922     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924     break 2
12925   fi
12926 done
12927   done
12928 IFS=$as_save_IFS
12929 
12930   ;;
12931 esac
12932 fi
12933 DF=$ac_cv_path_DF
12934 if test -n "$DF"; then
12935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12936 $as_echo "$DF" >&6; }
12937 else
12938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12940 fi
12941 
12942 
12943   test -n "$DF" && break
12944 done
12945 
12946   else
12947     # The variable is set, but is it from the command line or the environment?
12948 
12949     # Try to remove the string !DF! from our list.
12950     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12951     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12952       # If it failed, the variable was not from the command line. Ignore it,
12953       # but warn the user (except for BASH, which is always set by the calling BASH).
12954       if test "xDF" != xBASH; then
12955         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12956 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12957       fi
12958       # Try to locate tool using the code snippet
12959       for ac_prog in df
12960 do
12961   # Extract the first word of "$ac_prog", so it can be a program name with args.
12962 set dummy $ac_prog; ac_word=$2
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964 $as_echo_n "checking for $ac_word... " >&6; }
12965 if ${ac_cv_path_DF+:} false; then :
12966   $as_echo_n "(cached) " >&6
12967 else
12968   case $DF in
12969   [\\/]* | ?:[\\/]*)
12970   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12971   ;;
12972   *)
12973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12975 do
12976   IFS=$as_save_IFS
12977   test -z "$as_dir" && as_dir=.
12978     for ac_exec_ext in '' $ac_executable_extensions; do
12979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12980     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982     break 2
12983   fi
12984 done
12985   done
12986 IFS=$as_save_IFS
12987 
12988   ;;
12989 esac
12990 fi
12991 DF=$ac_cv_path_DF
12992 if test -n "$DF"; then
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12994 $as_echo "$DF" >&6; }
12995 else
12996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
12998 fi
12999 
13000 
13001   test -n "$DF" && break
13002 done
13003 
13004     else
13005       # If it succeeded, then it was overridden by the user. We will use it
13006       # for the tool.
13007 
13008       # First remove it from the list of overridden variables, so we can test
13009       # for unknown variables in the end.
13010       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13011 
13012       # Check if the provided tool contains a complete path.
13013       tool_specified="$DF"
13014       tool_basename="${tool_specified##*/}"
13015       if test "x$tool_basename" = "x$tool_specified"; then
13016         # A command without a complete path is provided, search $PATH.
13017         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13018 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13019         # Extract the first word of "$tool_basename", so it can be a program name with args.
13020 set dummy $tool_basename; ac_word=$2
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022 $as_echo_n "checking for $ac_word... " >&6; }
13023 if ${ac_cv_path_DF+:} false; then :
13024   $as_echo_n "(cached) " >&6
13025 else
13026   case $DF in
13027   [\\/]* | ?:[\\/]*)
13028   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13029   ;;
13030   *)
13031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13033 do
13034   IFS=$as_save_IFS
13035   test -z "$as_dir" && as_dir=.
13036     for ac_exec_ext in '' $ac_executable_extensions; do
13037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13038     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13040     break 2
13041   fi
13042 done
13043   done
13044 IFS=$as_save_IFS
13045 
13046   ;;
13047 esac
13048 fi
13049 DF=$ac_cv_path_DF
13050 if test -n "$DF"; then
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13052 $as_echo "$DF" >&6; }
13053 else
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13056 fi
13057 
13058 
13059         if test "x$DF" = x; then
13060           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13061         fi
13062       else
13063         # Otherwise we believe it is a complete path. Use it as it is.
13064         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13065 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13067 $as_echo_n "checking for DF... " >&6; }
13068         if test ! -x "$tool_specified"; then
13069           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13070 $as_echo "not found" >&6; }
13071           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13072         fi
13073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13074 $as_echo "$tool_specified" >&6; }
13075       fi
13076     fi
13077   fi
13078 
13079 
13080 
13081 
13082   # Publish this variable in the help.
13083 
13084 
13085   if test "x$SETFILE" = x; then
13086     # The variable is not set by user, try to locate tool using the code snippet
13087     for ac_prog in SetFile
13088 do
13089   # Extract the first word of "$ac_prog", so it can be a program name with args.
13090 set dummy $ac_prog; ac_word=$2
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092 $as_echo_n "checking for $ac_word... " >&6; }
13093 if ${ac_cv_path_SETFILE+:} false; then :
13094   $as_echo_n "(cached) " >&6
13095 else
13096   case $SETFILE in
13097   [\\/]* | ?:[\\/]*)
13098   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13099   ;;
13100   *)
13101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13103 do
13104   IFS=$as_save_IFS
13105   test -z "$as_dir" && as_dir=.
13106     for ac_exec_ext in '' $ac_executable_extensions; do
13107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110     break 2
13111   fi
13112 done
13113   done
13114 IFS=$as_save_IFS
13115 
13116   ;;
13117 esac
13118 fi
13119 SETFILE=$ac_cv_path_SETFILE
13120 if test -n "$SETFILE"; then
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13122 $as_echo "$SETFILE" >&6; }
13123 else
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13126 fi
13127 
13128 
13129   test -n "$SETFILE" && break
13130 done
13131 
13132   else
13133     # The variable is set, but is it from the command line or the environment?
13134 
13135     # Try to remove the string !SETFILE! from our list.
13136     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13137     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13138       # If it failed, the variable was not from the command line. Ignore it,
13139       # but warn the user (except for BASH, which is always set by the calling BASH).
13140       if test "xSETFILE" != xBASH; then
13141         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13142 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13143       fi
13144       # Try to locate tool using the code snippet
13145       for ac_prog in SetFile
13146 do
13147   # Extract the first word of "$ac_prog", so it can be a program name with args.
13148 set dummy $ac_prog; ac_word=$2
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150 $as_echo_n "checking for $ac_word... " >&6; }
13151 if ${ac_cv_path_SETFILE+:} false; then :
13152   $as_echo_n "(cached) " >&6
13153 else
13154   case $SETFILE in
13155   [\\/]* | ?:[\\/]*)
13156   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13157   ;;
13158   *)
13159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13161 do
13162   IFS=$as_save_IFS
13163   test -z "$as_dir" && as_dir=.
13164     for ac_exec_ext in '' $ac_executable_extensions; do
13165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13166     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13168     break 2
13169   fi
13170 done
13171   done
13172 IFS=$as_save_IFS
13173 
13174   ;;
13175 esac
13176 fi
13177 SETFILE=$ac_cv_path_SETFILE
13178 if test -n "$SETFILE"; then
13179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13180 $as_echo "$SETFILE" >&6; }
13181 else
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13184 fi
13185 
13186 
13187   test -n "$SETFILE" && break
13188 done
13189 
13190     else
13191       # If it succeeded, then it was overridden by the user. We will use it
13192       # for the tool.
13193 
13194       # First remove it from the list of overridden variables, so we can test
13195       # for unknown variables in the end.
13196       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13197 
13198       # Check if the provided tool contains a complete path.
13199       tool_specified="$SETFILE"
13200       tool_basename="${tool_specified##*/}"
13201       if test "x$tool_basename" = "x$tool_specified"; then
13202         # A command without a complete path is provided, search $PATH.
13203         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13204 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13205         # Extract the first word of "$tool_basename", so it can be a program name with args.
13206 set dummy $tool_basename; ac_word=$2
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208 $as_echo_n "checking for $ac_word... " >&6; }
13209 if ${ac_cv_path_SETFILE+:} false; then :
13210   $as_echo_n "(cached) " >&6
13211 else
13212   case $SETFILE in
13213   [\\/]* | ?:[\\/]*)
13214   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13215   ;;
13216   *)
13217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218 for as_dir in $PATH
13219 do
13220   IFS=$as_save_IFS
13221   test -z "$as_dir" && as_dir=.
13222     for ac_exec_ext in '' $ac_executable_extensions; do
13223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13224     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13226     break 2
13227   fi
13228 done
13229   done
13230 IFS=$as_save_IFS
13231 
13232   ;;
13233 esac
13234 fi
13235 SETFILE=$ac_cv_path_SETFILE
13236 if test -n "$SETFILE"; then
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13238 $as_echo "$SETFILE" >&6; }
13239 else
13240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242 fi
13243 
13244 
13245         if test "x$SETFILE" = x; then
13246           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13247         fi
13248       else
13249         # Otherwise we believe it is a complete path. Use it as it is.
13250         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13251 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13253 $as_echo_n "checking for SETFILE... " >&6; }
13254         if test ! -x "$tool_specified"; then
13255           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13256 $as_echo "not found" >&6; }
13257           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13258         fi
13259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13260 $as_echo "$tool_specified" >&6; }
13261       fi
13262     fi
13263   fi
13264 
13265 
13266 
13267 
13268   # Publish this variable in the help.
13269 
13270 
13271   if test "x$CPIO" = x; then
13272     # The variable is not set by user, try to locate tool using the code snippet
13273     for ac_prog in cpio bsdcpio
13274 do
13275   # Extract the first word of "$ac_prog", so it can be a program name with args.
13276 set dummy $ac_prog; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if ${ac_cv_path_CPIO+:} false; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   case $CPIO in
13283   [\\/]* | ?:[\\/]*)
13284   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13285   ;;
13286   *)
13287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13289 do
13290   IFS=$as_save_IFS
13291   test -z "$as_dir" && as_dir=.
13292     for ac_exec_ext in '' $ac_executable_extensions; do
13293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13294     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296     break 2
13297   fi
13298 done
13299   done
13300 IFS=$as_save_IFS
13301 
13302   ;;
13303 esac
13304 fi
13305 CPIO=$ac_cv_path_CPIO
13306 if test -n "$CPIO"; then
13307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13308 $as_echo "$CPIO" >&6; }
13309 else
13310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13312 fi
13313 
13314 
13315   test -n "$CPIO" && break
13316 done
13317 
13318   else
13319     # The variable is set, but is it from the command line or the environment?
13320 
13321     # Try to remove the string !CPIO! from our list.
13322     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13323     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13324       # If it failed, the variable was not from the command line. Ignore it,
13325       # but warn the user (except for BASH, which is always set by the calling BASH).
13326       if test "xCPIO" != xBASH; then
13327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13328 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13329       fi
13330       # Try to locate tool using the code snippet
13331       for ac_prog in cpio bsdcpio
13332 do
13333   # Extract the first word of "$ac_prog", so it can be a program name with args.
13334 set dummy $ac_prog; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if ${ac_cv_path_CPIO+:} false; then :
13338   $as_echo_n "(cached) " >&6
13339 else
13340   case $CPIO in
13341   [\\/]* | ?:[\\/]*)
13342   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13343   ;;
13344   *)
13345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13347 do
13348   IFS=$as_save_IFS
13349   test -z "$as_dir" && as_dir=.
13350     for ac_exec_ext in '' $ac_executable_extensions; do
13351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13352     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354     break 2
13355   fi
13356 done
13357   done
13358 IFS=$as_save_IFS
13359 
13360   ;;
13361 esac
13362 fi
13363 CPIO=$ac_cv_path_CPIO
13364 if test -n "$CPIO"; then
13365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13366 $as_echo "$CPIO" >&6; }
13367 else
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13370 fi
13371 
13372 
13373   test -n "$CPIO" && break
13374 done
13375 
13376     else
13377       # If it succeeded, then it was overridden by the user. We will use it
13378       # for the tool.
13379 
13380       # First remove it from the list of overridden variables, so we can test
13381       # for unknown variables in the end.
13382       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13383 
13384       # Check if the provided tool contains a complete path.
13385       tool_specified="$CPIO"
13386       tool_basename="${tool_specified##*/}"
13387       if test "x$tool_basename" = "x$tool_specified"; then
13388         # A command without a complete path is provided, search $PATH.
13389         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13390 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13391         # Extract the first word of "$tool_basename", so it can be a program name with args.
13392 set dummy $tool_basename; ac_word=$2
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394 $as_echo_n "checking for $ac_word... " >&6; }
13395 if ${ac_cv_path_CPIO+:} false; then :
13396   $as_echo_n "(cached) " >&6
13397 else
13398   case $CPIO in
13399   [\\/]* | ?:[\\/]*)
13400   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13401   ;;
13402   *)
13403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406   IFS=$as_save_IFS
13407   test -z "$as_dir" && as_dir=.
13408     for ac_exec_ext in '' $ac_executable_extensions; do
13409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13410     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412     break 2
13413   fi
13414 done
13415   done
13416 IFS=$as_save_IFS
13417 
13418   ;;
13419 esac
13420 fi
13421 CPIO=$ac_cv_path_CPIO
13422 if test -n "$CPIO"; then
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13424 $as_echo "$CPIO" >&6; }
13425 else
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429 
13430 
13431         if test "x$CPIO" = x; then
13432           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13433         fi
13434       else
13435         # Otherwise we believe it is a complete path. Use it as it is.
13436         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13437 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13439 $as_echo_n "checking for CPIO... " >&6; }
13440         if test ! -x "$tool_specified"; then
13441           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13442 $as_echo "not found" >&6; }
13443           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13444         fi
13445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13446 $as_echo "$tool_specified" >&6; }
13447       fi
13448     fi
13449   fi
13450 
13451 
13452 
13453 
13454 # Now we can determine OpenJDK build and target platforms. This is required to
13455 # have early on.
13456 # Make sure we can run config.sub.
13457 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13458   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13459 
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13461 $as_echo_n "checking build system type... " >&6; }
13462 if ${ac_cv_build+:} false; then :
13463   $as_echo_n "(cached) " >&6
13464 else
13465   ac_build_alias=$build_alias
13466 test "x$ac_build_alias" = x &&
13467   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13468 test "x$ac_build_alias" = x &&
13469   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13471   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13472 
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13475 $as_echo "$ac_cv_build" >&6; }
13476 case $ac_cv_build in
13477 *-*-*) ;;
13478 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13479 esac
13480 build=$ac_cv_build
13481 ac_save_IFS=$IFS; IFS='-'
13482 set x $ac_cv_build
13483 shift
13484 build_cpu=$1
13485 build_vendor=$2
13486 shift; shift
13487 # Remember, the first character of IFS is used to create $*,
13488 # except with old shells:
13489 build_os=$*
13490 IFS=$ac_save_IFS
13491 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13492 
13493 
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13495 $as_echo_n "checking host system type... " >&6; }
13496 if ${ac_cv_host+:} false; then :
13497   $as_echo_n "(cached) " >&6
13498 else
13499   if test "x$host_alias" = x; then
13500   ac_cv_host=$ac_cv_build
13501 else
13502   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13503     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13504 fi
13505 
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13508 $as_echo "$ac_cv_host" >&6; }
13509 case $ac_cv_host in
13510 *-*-*) ;;
13511 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13512 esac
13513 host=$ac_cv_host
13514 ac_save_IFS=$IFS; IFS='-'
13515 set x $ac_cv_host
13516 shift
13517 host_cpu=$1
13518 host_vendor=$2
13519 shift; shift
13520 # Remember, the first character of IFS is used to create $*,
13521 # except with old shells:
13522 host_os=$*
13523 IFS=$ac_save_IFS
13524 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13525 
13526 
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13528 $as_echo_n "checking target system type... " >&6; }
13529 if ${ac_cv_target+:} false; then :
13530   $as_echo_n "(cached) " >&6
13531 else
13532   if test "x$target_alias" = x; then
13533   ac_cv_target=$ac_cv_host
13534 else
13535   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13536     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13537 fi
13538 
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13541 $as_echo "$ac_cv_target" >&6; }
13542 case $ac_cv_target in
13543 *-*-*) ;;
13544 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13545 esac
13546 target=$ac_cv_target
13547 ac_save_IFS=$IFS; IFS='-'
13548 set x $ac_cv_target
13549 shift
13550 target_cpu=$1
13551 target_vendor=$2
13552 shift; shift
13553 # Remember, the first character of IFS is used to create $*,
13554 # except with old shells:
13555 target_os=$*
13556 IFS=$ac_save_IFS
13557 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13558 
13559 
13560 # The aliases save the names the user supplied, while $host etc.
13561 # will get canonicalized.
13562 test -n "$target_alias" &&
13563   test "$program_prefix$program_suffix$program_transform_name" = \
13564     NONENONEs,x,x, &&
13565   program_prefix=${target_alias}-
13566 
13567   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13568   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13569   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13570   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13571   # to use the configure naming style.
13572 
13573 
13574 
13575 
13576 
13577   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13578   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13579   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13580   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13581   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13582   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13583 
13584 
13585 
13586   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13587 
13588   case "$build_os" in
13589     *linux*)
13590       VAR_OS=linux
13591       VAR_OS_API=posix
13592       VAR_OS_ENV=linux
13593       ;;
13594     *solaris*)
13595       VAR_OS=solaris
13596       VAR_OS_API=posix
13597       VAR_OS_ENV=solaris
13598       ;;
13599     *darwin*)
13600       VAR_OS=macosx
13601       VAR_OS_API=posix
13602       VAR_OS_ENV=macosx
13603       ;;
13604     *bsd*)
13605       VAR_OS=bsd
13606       VAR_OS_API=posix
13607       VAR_OS_ENV=bsd
13608       ;;
13609     *cygwin*)
13610       VAR_OS=windows
13611       VAR_OS_API=winapi
13612       VAR_OS_ENV=windows.cygwin
13613       ;;
13614     *mingw*)
13615       VAR_OS=windows
13616       VAR_OS_API=winapi
13617       VAR_OS_ENV=windows.msys
13618       ;;
13619     *aix*)
13620       VAR_OS=aix
13621       VAR_OS_API=posix
13622       VAR_OS_ENV=aix
13623       ;;
13624     *)
13625       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13626       ;;
13627   esac
13628 
13629 
13630   # First argument is the cpu name from the trip/quad
13631   case "$build_cpu" in
13632     x86_64)
13633       VAR_CPU=x86_64
13634       VAR_CPU_ARCH=x86
13635       VAR_CPU_BITS=64
13636       VAR_CPU_ENDIAN=little
13637       ;;
13638     i?86)
13639       VAR_CPU=x86
13640       VAR_CPU_ARCH=x86
13641       VAR_CPU_BITS=32
13642       VAR_CPU_ENDIAN=little
13643       ;;
13644     arm*)
13645       VAR_CPU=arm
13646       VAR_CPU_ARCH=arm
13647       VAR_CPU_BITS=32
13648       VAR_CPU_ENDIAN=little
13649       ;;
13650     aarch64)
13651       VAR_CPU=aarch64
13652       VAR_CPU_ARCH=aarch64
13653       VAR_CPU_BITS=64
13654       VAR_CPU_ENDIAN=little
13655       ;;
13656     powerpc)
13657       VAR_CPU=ppc
13658       VAR_CPU_ARCH=ppc
13659       VAR_CPU_BITS=32
13660       VAR_CPU_ENDIAN=big
13661       ;;
13662     powerpc64)
13663       VAR_CPU=ppc64
13664       VAR_CPU_ARCH=ppc
13665       VAR_CPU_BITS=64
13666       VAR_CPU_ENDIAN=big
13667       ;;
13668     powerpc64le)
13669       VAR_CPU=ppc64le
13670       VAR_CPU_ARCH=ppc
13671       VAR_CPU_BITS=64
13672       VAR_CPU_ENDIAN=little
13673       ;;
13674     s390)
13675       VAR_CPU=s390
13676       VAR_CPU_ARCH=s390
13677       VAR_CPU_BITS=32
13678       VAR_CPU_ENDIAN=big
13679       ;;
13680     s390x)
13681       VAR_CPU=s390x
13682       VAR_CPU_ARCH=s390
13683       VAR_CPU_BITS=64
13684       VAR_CPU_ENDIAN=big
13685       ;;
13686     sparc)
13687       VAR_CPU=sparc
13688       VAR_CPU_ARCH=sparc
13689       VAR_CPU_BITS=32
13690       VAR_CPU_ENDIAN=big
13691       ;;
13692     sparcv9|sparc64)
13693       VAR_CPU=sparcv9
13694       VAR_CPU_ARCH=sparc
13695       VAR_CPU_BITS=64
13696       VAR_CPU_ENDIAN=big
13697       ;;
13698     *)
13699       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13700       ;;
13701   esac
13702 
13703   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13704   OPENJDK_BUILD_OS="$VAR_OS"
13705   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13706   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13707   OPENJDK_BUILD_CPU="$VAR_CPU"
13708   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13709   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13710   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13711 
13712 
13713 
13714 
13715 
13716 
13717 
13718 
13719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13720 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13722 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13723 
13724   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13725 
13726   case "$host_os" in
13727     *linux*)
13728       VAR_OS=linux
13729       VAR_OS_API=posix
13730       VAR_OS_ENV=linux
13731       ;;
13732     *solaris*)
13733       VAR_OS=solaris
13734       VAR_OS_API=posix
13735       VAR_OS_ENV=solaris
13736       ;;
13737     *darwin*)
13738       VAR_OS=macosx
13739       VAR_OS_API=posix
13740       VAR_OS_ENV=macosx
13741       ;;
13742     *bsd*)
13743       VAR_OS=bsd
13744       VAR_OS_API=posix
13745       VAR_OS_ENV=bsd
13746       ;;
13747     *cygwin*)
13748       VAR_OS=windows
13749       VAR_OS_API=winapi
13750       VAR_OS_ENV=windows.cygwin
13751       ;;
13752     *mingw*)
13753       VAR_OS=windows
13754       VAR_OS_API=winapi
13755       VAR_OS_ENV=windows.msys
13756       ;;
13757     *aix*)
13758       VAR_OS=aix
13759       VAR_OS_API=posix
13760       VAR_OS_ENV=aix
13761       ;;
13762     *)
13763       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13764       ;;
13765   esac
13766 
13767 
13768   # First argument is the cpu name from the trip/quad
13769   case "$host_cpu" in
13770     x86_64)
13771       VAR_CPU=x86_64
13772       VAR_CPU_ARCH=x86
13773       VAR_CPU_BITS=64
13774       VAR_CPU_ENDIAN=little
13775       ;;
13776     i?86)
13777       VAR_CPU=x86
13778       VAR_CPU_ARCH=x86
13779       VAR_CPU_BITS=32
13780       VAR_CPU_ENDIAN=little
13781       ;;
13782     arm*)
13783       VAR_CPU=arm
13784       VAR_CPU_ARCH=arm
13785       VAR_CPU_BITS=32
13786       VAR_CPU_ENDIAN=little
13787       ;;
13788     aarch64)
13789       VAR_CPU=aarch64
13790       VAR_CPU_ARCH=aarch64
13791       VAR_CPU_BITS=64
13792       VAR_CPU_ENDIAN=little
13793       ;;
13794     powerpc)
13795       VAR_CPU=ppc
13796       VAR_CPU_ARCH=ppc
13797       VAR_CPU_BITS=32
13798       VAR_CPU_ENDIAN=big
13799       ;;
13800     powerpc64)
13801       VAR_CPU=ppc64
13802       VAR_CPU_ARCH=ppc
13803       VAR_CPU_BITS=64
13804       VAR_CPU_ENDIAN=big
13805       ;;
13806     powerpc64le)
13807       VAR_CPU=ppc64le
13808       VAR_CPU_ARCH=ppc
13809       VAR_CPU_BITS=64
13810       VAR_CPU_ENDIAN=little
13811       ;;
13812     s390)
13813       VAR_CPU=s390
13814       VAR_CPU_ARCH=s390
13815       VAR_CPU_BITS=32
13816       VAR_CPU_ENDIAN=big
13817       ;;
13818     s390x)
13819       VAR_CPU=s390x
13820       VAR_CPU_ARCH=s390
13821       VAR_CPU_BITS=64
13822       VAR_CPU_ENDIAN=big
13823       ;;
13824     sparc)
13825       VAR_CPU=sparc
13826       VAR_CPU_ARCH=sparc
13827       VAR_CPU_BITS=32
13828       VAR_CPU_ENDIAN=big
13829       ;;
13830     sparcv9|sparc64)
13831       VAR_CPU=sparcv9
13832       VAR_CPU_ARCH=sparc
13833       VAR_CPU_BITS=64
13834       VAR_CPU_ENDIAN=big
13835       ;;
13836     *)
13837       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13838       ;;
13839   esac
13840 
13841   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13842   OPENJDK_TARGET_OS="$VAR_OS"
13843   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13844   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13845   OPENJDK_TARGET_CPU="$VAR_CPU"
13846   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13847   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13848   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13849 
13850 
13851 
13852 
13853 
13854 
13855 
13856 
13857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13858 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13860 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13861 
13862 
13863 
13864 # Check whether --with-target-bits was given.
13865 if test "${with_target_bits+set}" = set; then :
13866   withval=$with_target_bits;
13867 fi
13868 
13869 
13870   # We have three types of compiles:
13871   # native  == normal compilation, target system == build system
13872   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13873   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13874   #
13875   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13876     # We're doing a proper cross-compilation
13877     COMPILE_TYPE="cross"
13878   else
13879     COMPILE_TYPE="native"
13880   fi
13881 
13882   if test "x$with_target_bits" != x; then
13883     if test "x$COMPILE_TYPE" = "xcross"; then
13884       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13885     fi
13886 
13887     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13888       # A reduced build is requested
13889       COMPILE_TYPE="reduced"
13890       OPENJDK_TARGET_CPU_BITS=32
13891       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13892         OPENJDK_TARGET_CPU=x86
13893       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13894         OPENJDK_TARGET_CPU=sparc
13895       else
13896         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13897       fi
13898     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13899       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
13900     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13901       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13902 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13903     else
13904       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13905     fi
13906   fi
13907 
13908 
13909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13910 $as_echo_n "checking compilation type... " >&6; }
13911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13912 $as_echo "$COMPILE_TYPE" >&6; }
13913 
13914 
13915   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13916     REQUIRED_OS_NAME=SunOS
13917     REQUIRED_OS_VERSION=5.10
13918   fi
13919   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13920     REQUIRED_OS_NAME=Linux
13921     REQUIRED_OS_VERSION=2.6
13922   fi
13923   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13924     REQUIRED_OS_NAME=Windows
13925     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13926       REQUIRED_OS_VERSION=5.2
13927     else
13928       REQUIRED_OS_VERSION=5.1
13929     fi
13930   fi
13931   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13932     REQUIRED_OS_NAME=Darwin
13933     REQUIRED_OS_VERSION=11.2
13934   fi
13935 
13936 
13937 
13938 
13939 
13940   # Also store the legacy naming of the cpu.
13941   # Ie i586 and amd64 instead of x86 and x86_64
13942   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13943   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13944     OPENJDK_TARGET_CPU_LEGACY="i586"
13945   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13946     # On all platforms except MacOSX replace x86_64 with amd64.
13947     OPENJDK_TARGET_CPU_LEGACY="amd64"
13948   fi
13949 
13950 
13951   # And the second legacy naming of the cpu.
13952   # Ie i386 and amd64 instead of x86 and x86_64.
13953   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13954   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13955     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13956   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13957     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13958   fi
13959 
13960 
13961   # This is the name of the cpu (but using i386 and amd64 instead of
13962   # x86 and x86_64, respectively), preceeded by a /, to be used when
13963   # locating libraries. On macosx, it's empty, though.
13964   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13965   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13966     OPENJDK_TARGET_CPU_LIBDIR=""
13967   fi
13968 
13969 
13970   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13971   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13972   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13973   OPENJDK_TARGET_CPU_ISADIR=""
13974   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13975     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13976       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13977     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13978       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13979     fi
13980   fi
13981 
13982 
13983   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13984   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13985   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13986     # On linux only, we replace x86 with i386.
13987     OPENJDK_TARGET_CPU_OSARCH="i386"
13988   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13989     # On all platforms except macosx, we replace x86_64 with amd64.
13990     OPENJDK_TARGET_CPU_OSARCH="amd64"
13991   fi
13992 
13993 
13994   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13995   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13996     OPENJDK_TARGET_CPU_JLI="i386"
13997   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13998     # On all platforms except macosx, we replace x86_64 with amd64.
13999     OPENJDK_TARGET_CPU_JLI="amd64"
14000   fi
14001   # Now setup the -D flags for building libjli.
14002   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14003   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14004     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14005       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14006     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14007       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14008     fi
14009   fi
14010 
14011 
14012   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
14013   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
14014     OPENJDK_TARGET_OS_API_DIR="solaris"
14015   fi
14016   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
14017     OPENJDK_TARGET_OS_API_DIR="windows"
14018   fi
14019 
14020 
14021   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14022       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14023   else
14024       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
14025   fi
14026 
14027 
14028   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14029     A_LP64="LP64:="
14030     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14031     # unpack200.exe
14032     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14033       ADD_LP64="-D_LP64=1"
14034     fi
14035   fi
14036   LP64=$A_LP64
14037 
14038 
14039   if test "x$COMPILE_TYPE" = "xcross"; then
14040     # FIXME: ... or should this include reduced builds..?
14041     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14042   else
14043     DEFINE_CROSS_COMPILE_ARCH=""
14044   fi
14045 
14046 
14047   # ZERO_ARCHDEF is used to enable architecture-specific code
14048   case "${OPENJDK_TARGET_CPU}" in
14049     ppc)     ZERO_ARCHDEF=PPC32 ;;
14050     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14051     s390*)   ZERO_ARCHDEF=S390  ;;
14052     sparc*)  ZERO_ARCHDEF=SPARC ;;
14053     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14054     x86)     ZERO_ARCHDEF=IA32  ;;
14055     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14056   esac
14057 
14058 
14059 
14060 
14061 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14062 
14063   # Save the current directory this script was started from
14064   CURDIR="$PWD"
14065 
14066   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14067     PATH_SEP=";"
14068 
14069   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14070   if test $SRC_ROOT_LENGTH -gt 100; then
14071     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14072   fi
14073 
14074   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14076 $as_echo_n "checking cygwin release... " >&6; }
14077     CYGWIN_VERSION=`$UNAME -r`
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14079 $as_echo "$CYGWIN_VERSION" >&6; }
14080     WINDOWS_ENV_VENDOR='cygwin'
14081     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14082 
14083     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
14084     if test "x$CYGWIN_VERSION_OLD" != x; then
14085       { $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
14086 $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;}
14087       as_fn_error $? "Cannot continue" "$LINENO" 5
14088     fi
14089     if test "x$CYGPATH" = x; then
14090       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14091     fi
14092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14093 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14094     # The cmd output ends with Windows line endings (CR/LF)
14095     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14096     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14097     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14099 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14100     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14101     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14102     if test "x$test_cygdrive_prefix" = x; then
14103       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14104     fi
14105   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14107 $as_echo_n "checking msys release... " >&6; }
14108     MSYS_VERSION=`$UNAME -r`
14109     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14110 $as_echo "$MSYS_VERSION" >&6; }
14111 
14112     WINDOWS_ENV_VENDOR='msys'
14113     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14114 
14115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14116 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14117     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14118     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14119 
14120   windows_path="$MSYS_ROOT_PATH"
14121   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14122     unix_path=`$CYGPATH -u "$windows_path"`
14123     MSYS_ROOT_PATH="$unix_path"
14124   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14125     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14126     MSYS_ROOT_PATH="$unix_path"
14127   fi
14128 
14129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14130 $as_echo "$MSYS_ROOT_PATH" >&6; }
14131     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14132   else
14133     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14134   fi
14135 
14136   # Test if windows or unix (cygwin/msys) find is first in path.
14137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14138 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14139   FIND_BINARY_OUTPUT=`find --version 2>&1`
14140   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14142 $as_echo "unix style" >&6; }
14143   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14145 $as_echo "Windows" >&6; }
14146     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14147 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14148     { $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
14149 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14150     as_fn_error $? "Cannot continue" "$LINENO" 5
14151   else
14152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14153 $as_echo "unknown" >&6; }
14154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14155 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14156   fi
14157 
14158   else
14159     PATH_SEP=":"
14160   fi
14161 
14162 
14163   # We get the top-level directory from the supporting wrappers.
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14165 $as_echo_n "checking for top-level directory... " >&6; }
14166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14167 $as_echo "$TOPDIR" >&6; }
14168 
14169 
14170   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14171 
14172   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14173 
14174   # Input might be given as Windows format, start by converting to
14175   # unix format.
14176   path="$CURDIR"
14177   new_path=`$CYGPATH -u "$path"`
14178 
14179   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14180   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14181   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14182   # "foo.exe" is OK but "foo" is an error.
14183   #
14184   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14185   # It is also a way to make sure we got the proper file name for the real test later on.
14186   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14187   if test "x$test_shortpath" = x; then
14188     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14189 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14190     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14191   fi
14192 
14193   # Call helper function which possibly converts this using DOS-style short mode.
14194   # If so, the updated path is stored in $new_path.
14195 
14196   input_path="$new_path"
14197   # Check if we need to convert this using DOS-style short mode. If the path
14198   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14199   # take no chances and rewrite it.
14200   # Note: m4 eats our [], so we need to use [ and ] instead.
14201   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14202   if test "x$has_forbidden_chars" != x; then
14203     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14204     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14205     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14206     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14207       # Going to short mode and back again did indeed matter. Since short mode is
14208       # case insensitive, let's make it lowercase to improve readability.
14209       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14210       # Now convert it back to Unix-style (cygpath)
14211       input_path=`$CYGPATH -u "$shortmode_path"`
14212       new_path="$input_path"
14213     fi
14214   fi
14215 
14216   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14217   if test "x$test_cygdrive_prefix" = x; then
14218     # As a simple fix, exclude /usr/bin since it's not a real path.
14219     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14220       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14221       # a path prefixed by /cygdrive for fixpath to work.
14222       new_path="$CYGWIN_ROOT_PATH$input_path"
14223     fi
14224   fi
14225 
14226 
14227   if test "x$path" != "x$new_path"; then
14228     CURDIR="$new_path"
14229     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14230 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14231   fi
14232 
14233   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14234 
14235   path="$CURDIR"
14236   has_colon=`$ECHO $path | $GREP ^.:`
14237   new_path="$path"
14238   if test "x$has_colon" = x; then
14239     # Not in mixed or Windows style, start by that.
14240     new_path=`cmd //c echo $path`
14241   fi
14242 
14243 
14244   input_path="$new_path"
14245   # Check if we need to convert this using DOS-style short mode. If the path
14246   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14247   # take no chances and rewrite it.
14248   # Note: m4 eats our [], so we need to use [ and ] instead.
14249   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14250   if test "x$has_forbidden_chars" != x; then
14251     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14252     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14253   fi
14254 
14255 
14256   windows_path="$new_path"
14257   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14258     unix_path=`$CYGPATH -u "$windows_path"`
14259     new_path="$unix_path"
14260   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14261     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14262     new_path="$unix_path"
14263   fi
14264 
14265   if test "x$path" != "x$new_path"; then
14266     CURDIR="$new_path"
14267     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14268 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14269   fi
14270 
14271   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14272   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14273 
14274   else
14275     # We're on a posix platform. Hooray! :)
14276     path="$CURDIR"
14277     has_space=`$ECHO "$path" | $GREP " "`
14278     if test "x$has_space" != x; then
14279       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14280 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14281       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14282     fi
14283 
14284     # Use eval to expand a potential ~
14285     eval path="$path"
14286     if test ! -f "$path" && test ! -d "$path"; then
14287       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14288     fi
14289 
14290     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14291   fi
14292 
14293 
14294   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14295 
14296   # Input might be given as Windows format, start by converting to
14297   # unix format.
14298   path="$TOPDIR"
14299   new_path=`$CYGPATH -u "$path"`
14300 
14301   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14302   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14303   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14304   # "foo.exe" is OK but "foo" is an error.
14305   #
14306   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14307   # It is also a way to make sure we got the proper file name for the real test later on.
14308   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14309   if test "x$test_shortpath" = x; then
14310     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14311 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14312     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14313   fi
14314 
14315   # Call helper function which possibly converts this using DOS-style short mode.
14316   # If so, the updated path is stored in $new_path.
14317 
14318   input_path="$new_path"
14319   # Check if we need to convert this using DOS-style short mode. If the path
14320   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14321   # take no chances and rewrite it.
14322   # Note: m4 eats our [], so we need to use [ and ] instead.
14323   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14324   if test "x$has_forbidden_chars" != x; then
14325     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14326     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14327     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14328     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14329       # Going to short mode and back again did indeed matter. Since short mode is
14330       # case insensitive, let's make it lowercase to improve readability.
14331       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14332       # Now convert it back to Unix-style (cygpath)
14333       input_path=`$CYGPATH -u "$shortmode_path"`
14334       new_path="$input_path"
14335     fi
14336   fi
14337 
14338   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14339   if test "x$test_cygdrive_prefix" = x; then
14340     # As a simple fix, exclude /usr/bin since it's not a real path.
14341     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14342       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14343       # a path prefixed by /cygdrive for fixpath to work.
14344       new_path="$CYGWIN_ROOT_PATH$input_path"
14345     fi
14346   fi
14347 
14348 
14349   if test "x$path" != "x$new_path"; then
14350     TOPDIR="$new_path"
14351     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14352 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14353   fi
14354 
14355   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14356 
14357   path="$TOPDIR"
14358   has_colon=`$ECHO $path | $GREP ^.:`
14359   new_path="$path"
14360   if test "x$has_colon" = x; then
14361     # Not in mixed or Windows style, start by that.
14362     new_path=`cmd //c echo $path`
14363   fi
14364 
14365 
14366   input_path="$new_path"
14367   # Check if we need to convert this using DOS-style short mode. If the path
14368   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14369   # take no chances and rewrite it.
14370   # Note: m4 eats our [], so we need to use [ and ] instead.
14371   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14372   if test "x$has_forbidden_chars" != x; then
14373     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14374     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14375   fi
14376 
14377 
14378   windows_path="$new_path"
14379   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14380     unix_path=`$CYGPATH -u "$windows_path"`
14381     new_path="$unix_path"
14382   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14383     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14384     new_path="$unix_path"
14385   fi
14386 
14387   if test "x$path" != "x$new_path"; then
14388     TOPDIR="$new_path"
14389     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14390 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14391   fi
14392 
14393   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14394   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14395 
14396   else
14397     # We're on a posix platform. Hooray! :)
14398     path="$TOPDIR"
14399     has_space=`$ECHO "$path" | $GREP " "`
14400     if test "x$has_space" != x; then
14401       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14402 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14403       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14404     fi
14405 
14406     # Use eval to expand a potential ~
14407     eval path="$path"
14408     if test ! -f "$path" && test ! -d "$path"; then
14409       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14410     fi
14411 
14412     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14413   fi
14414 
14415   # SRC_ROOT is a traditional alias for TOPDIR.
14416   SRC_ROOT=$TOPDIR
14417 
14418   # Locate the directory of this script.
14419   AUTOCONF_DIR=$TOPDIR/common/autoconf
14420 
14421 
14422   # Setup default logging of stdout and stderr to build.log in the output root.
14423   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14424   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14425   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14426 
14427 
14428 
14429 
14430 
14431 # Check if it's a pure open build or if custom sources are to be used.
14432 
14433   # Check whether --enable-openjdk-only was given.
14434 if test "${enable_openjdk_only+set}" = set; then :
14435   enableval=$enable_openjdk_only;
14436 else
14437   enable_openjdk_only="no"
14438 fi
14439 
14440 
14441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14442 $as_echo_n "checking for presence of closed sources... " >&6; }
14443   if test -d "$SRC_ROOT/jdk/src/closed"; then
14444     CLOSED_SOURCE_PRESENT=yes
14445   else
14446     CLOSED_SOURCE_PRESENT=no
14447   fi
14448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14449 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14450 
14451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14452 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14453   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14455 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14456 
14457   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14458     OPENJDK=true
14459     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14460       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14461 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14462     fi
14463   else
14464     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14465       OPENJDK=true
14466     else
14467       OPENJDK=false
14468     fi
14469   fi
14470 
14471   if test "x$OPENJDK" = "xtrue"; then
14472     SET_OPENJDK="OPENJDK=true"
14473   fi
14474 
14475 
14476 
14477 
14478 # These are needed to be able to create a configuration name (and thus the output directory)
14479 
14480   ###############################################################################
14481   #
14482   # Check which variant of the JDK that we want to build.
14483   # Currently we have:
14484   #    normal:   standard edition
14485   # but the custom make system may add other variants
14486   #
14487   # Effectively the JDK variant gives a name to a specific set of
14488   # modules to compile into the JDK. In the future, these modules
14489   # might even be Jigsaw modules.
14490   #
14491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14492 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14493 
14494 # Check whether --with-jdk-variant was given.
14495 if test "${with_jdk_variant+set}" = set; then :
14496   withval=$with_jdk_variant;
14497 fi
14498 
14499 
14500   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14501     JDK_VARIANT="normal"
14502   else
14503     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14504   fi
14505 
14506 
14507 
14508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14509 $as_echo "$JDK_VARIANT" >&6; }
14510 
14511 
14512 ###############################################################################
14513 #
14514 # Check which interpreter of the JVM we want to build.
14515 # Currently we have:
14516 #    template: Template interpreter (the default)
14517 #    cpp     : C++ interpreter
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14519 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14520 
14521 # Check whether --with-jvm-interpreter was given.
14522 if test "${with_jvm_interpreter+set}" = set; then :
14523   withval=$with_jvm_interpreter;
14524 fi
14525 
14526 
14527 if test "x$with_jvm_interpreter" = x; then
14528      with_jvm_interpreter="template"
14529 fi
14530 
14531 JVM_INTERPRETER="$with_jvm_interpreter"
14532 
14533 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14534    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14535 fi
14536 
14537 
14538 
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14540 $as_echo "$with_jvm_interpreter" >&6; }
14541 
14542 
14543 
14544   ###############################################################################
14545   #
14546   # Check which variants of the JVM that we want to build.
14547   # Currently we have:
14548   #    server: normal interpreter and a tiered C1/C2 compiler
14549   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14550   #    minimal1: reduced form of client with optional VM services and features stripped out
14551   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14552   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14553   #    zero: no machine code interpreter, no compiler
14554   #    zeroshark: zero interpreter and shark/llvm compiler backend
14555 #    core: interpreter only, no compiler (only works on some platforms)
14556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14557 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14558 
14559 # Check whether --with-jvm-variants was given.
14560 if test "${with_jvm_variants+set}" = set; then :
14561   withval=$with_jvm_variants;
14562 fi
14563 
14564 
14565   if test "x$with_jvm_variants" = x; then
14566     with_jvm_variants="server"
14567   fi
14568 
14569   JVM_VARIANTS=",$with_jvm_variants,"
14570   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,//'`
14571 
14572   if test "x$TEST_VARIANTS" != "x,"; then
14573      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14574   fi
14575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14576 $as_echo "$with_jvm_variants" >&6; }
14577 
14578   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14579   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14580   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14581   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14582   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14583   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14584   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14585 
14586   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14587     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14588       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14589     fi
14590   fi
14591   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14592     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14593       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14594     fi
14595   fi
14596   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14597     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14598       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14599     fi
14600   fi
14601 
14602   # Replace the commas with AND for use in the build directory name.
14603   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14604   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/'`
14605   if test "x$COUNT_VARIANTS" != "x,1"; then
14606     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14607   else
14608     BUILDING_MULTIPLE_JVM_VARIANTS=no
14609   fi
14610 
14611 
14612 
14613 
14614 
14615 
14616 
14617 
14618 
14619 
14620   INCLUDE_SA=true
14621   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14622     INCLUDE_SA=false
14623   fi
14624   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14625     INCLUDE_SA=false
14626   fi
14627   if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
14628     INCLUDE_SA=false
14629   fi
14630   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14631     INCLUDE_SA=false
14632   fi
14633 
14634 
14635   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14636     MACOSX_UNIVERSAL="false"
14637   fi
14638 
14639 
14640 
14641 
14642   ###############################################################################
14643   #
14644   # Set the debug level
14645   #    release: no debug information, all optimizations, no asserts.
14646   #    fastdebug: debug information (-g), all optimizations, all asserts
14647   #    slowdebug: debug information (-g), no optimizations, all asserts
14648   #
14649   DEBUG_LEVEL="release"
14650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14651 $as_echo_n "checking which debug level to use... " >&6; }
14652   # Check whether --enable-debug was given.
14653 if test "${enable_debug+set}" = set; then :
14654   enableval=$enable_debug;
14655         ENABLE_DEBUG="${enableval}"
14656         DEBUG_LEVEL="fastdebug"
14657 
14658 else
14659   ENABLE_DEBUG="no"
14660 fi
14661 
14662 
14663 
14664 # Check whether --with-debug-level was given.
14665 if test "${with_debug_level+set}" = set; then :
14666   withval=$with_debug_level;
14667         DEBUG_LEVEL="${withval}"
14668         if test "x$ENABLE_DEBUG" = xyes; then
14669           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14670         fi
14671 
14672 fi
14673 
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14675 $as_echo "$DEBUG_LEVEL" >&6; }
14676 
14677   if test "x$DEBUG_LEVEL" != xrelease && \
14678       test "x$DEBUG_LEVEL" != xfastdebug && \
14679       test "x$DEBUG_LEVEL" != xslowdebug; then
14680     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14681   fi
14682 
14683 
14684   ###############################################################################
14685   #
14686   # Setup legacy vars/targets and new vars to deal with different debug levels.
14687   #
14688 
14689   case $DEBUG_LEVEL in
14690     release )
14691       VARIANT="OPT"
14692       FASTDEBUG="false"
14693       DEBUG_CLASSFILES="false"
14694       BUILD_VARIANT_RELEASE=""
14695       HOTSPOT_DEBUG_LEVEL="product"
14696       HOTSPOT_EXPORT="product"
14697       ;;
14698     fastdebug )
14699       VARIANT="DBG"
14700       FASTDEBUG="true"
14701       DEBUG_CLASSFILES="true"
14702       BUILD_VARIANT_RELEASE="-fastdebug"
14703       HOTSPOT_DEBUG_LEVEL="fastdebug"
14704       HOTSPOT_EXPORT="fastdebug"
14705       ;;
14706     slowdebug )
14707       VARIANT="DBG"
14708       FASTDEBUG="false"
14709       DEBUG_CLASSFILES="true"
14710       BUILD_VARIANT_RELEASE="-debug"
14711       HOTSPOT_DEBUG_LEVEL="jvmg"
14712       HOTSPOT_EXPORT="debug"
14713       ;;
14714   esac
14715 
14716   #####
14717   # Generate the legacy makefile targets for hotspot.
14718   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14719   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14720   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14721   # But until then ...
14722   HOTSPOT_TARGET=""
14723 
14724   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14725     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14726   fi
14727 
14728   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14729     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14730   fi
14731 
14732   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14733     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14734   fi
14735 
14736   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14737     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14738   fi
14739 
14740   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14741     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14742   fi
14743 
14744   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14745     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14746   fi
14747 
14748   if test "x$JVM_VARIANT_CORE" = xtrue; then
14749     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14750   fi
14751 
14752   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14753 
14754   # On Macosx universal binaries are produced, but they only contain
14755   # 64 bit intel. This invalidates control of which jvms are built
14756   # from configure, but only server is valid anyway. Fix this
14757   # when hotspot makefiles are rewritten.
14758   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14759     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14760   fi
14761 
14762   #####
14763 
14764 
14765 
14766 
14767 
14768 
14769 
14770 
14771 # With basic setup done, call the custom early hook.
14772 
14773 
14774 # Check if we have devkits, extra paths or sysroot set.
14775 
14776 
14777 # Check whether --with-devkit was given.
14778 if test "${with_devkit+set}" = set; then :
14779   withval=$with_devkit;
14780 fi
14781 
14782 
14783   if test "x$with_devkit" = xyes; then
14784     as_fn_error $? "--with-devkit must have a value" "$LINENO" 5
14785   elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
14786 
14787   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14788 
14789   # Input might be given as Windows format, start by converting to
14790   # unix format.
14791   path="$with_devkit"
14792   new_path=`$CYGPATH -u "$path"`
14793 
14794   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14795   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14796   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14797   # "foo.exe" is OK but "foo" is an error.
14798   #
14799   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14800   # It is also a way to make sure we got the proper file name for the real test later on.
14801   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14802   if test "x$test_shortpath" = x; then
14803     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14804 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14805     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14806   fi
14807 
14808   # Call helper function which possibly converts this using DOS-style short mode.
14809   # If so, the updated path is stored in $new_path.
14810 
14811   input_path="$new_path"
14812   # Check if we need to convert this using DOS-style short mode. If the path
14813   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14814   # take no chances and rewrite it.
14815   # Note: m4 eats our [], so we need to use [ and ] instead.
14816   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14817   if test "x$has_forbidden_chars" != x; then
14818     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14819     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14820     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14821     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14822       # Going to short mode and back again did indeed matter. Since short mode is
14823       # case insensitive, let's make it lowercase to improve readability.
14824       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14825       # Now convert it back to Unix-style (cygpath)
14826       input_path=`$CYGPATH -u "$shortmode_path"`
14827       new_path="$input_path"
14828     fi
14829   fi
14830 
14831   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14832   if test "x$test_cygdrive_prefix" = x; then
14833     # As a simple fix, exclude /usr/bin since it's not a real path.
14834     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14835       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14836       # a path prefixed by /cygdrive for fixpath to work.
14837       new_path="$CYGWIN_ROOT_PATH$input_path"
14838     fi
14839   fi
14840 
14841 
14842   if test "x$path" != "x$new_path"; then
14843     with_devkit="$new_path"
14844     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14845 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14846   fi
14847 
14848   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14849 
14850   path="$with_devkit"
14851   has_colon=`$ECHO $path | $GREP ^.:`
14852   new_path="$path"
14853   if test "x$has_colon" = x; then
14854     # Not in mixed or Windows style, start by that.
14855     new_path=`cmd //c echo $path`
14856   fi
14857 
14858 
14859   input_path="$new_path"
14860   # Check if we need to convert this using DOS-style short mode. If the path
14861   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14862   # take no chances and rewrite it.
14863   # Note: m4 eats our [], so we need to use [ and ] instead.
14864   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14865   if test "x$has_forbidden_chars" != x; then
14866     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14867     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14868   fi
14869 
14870 
14871   windows_path="$new_path"
14872   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14873     unix_path=`$CYGPATH -u "$windows_path"`
14874     new_path="$unix_path"
14875   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14876     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14877     new_path="$unix_path"
14878   fi
14879 
14880   if test "x$path" != "x$new_path"; then
14881     with_devkit="$new_path"
14882     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14883 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14884   fi
14885 
14886   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14887   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14888 
14889   else
14890     # We're on a posix platform. Hooray! :)
14891     path="$with_devkit"
14892     has_space=`$ECHO "$path" | $GREP " "`
14893     if test "x$has_space" != x; then
14894       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14895 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14896       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14897     fi
14898 
14899     # Use eval to expand a potential ~
14900     eval path="$path"
14901     if test ! -f "$path" && test ! -d "$path"; then
14902       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14903     fi
14904 
14905     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14906   fi
14907 
14908     DEVKIT_ROOT="$with_devkit"
14909     # Check for a meta data info file in the root of the devkit
14910     if test -f "$DEVKIT_ROOT/devkit.info"; then
14911       . $DEVKIT_ROOT/devkit.info
14912       # This potentially sets the following:
14913       # A descriptive name of the devkit
14914 
14915   if test "x$DEVKIT_NAME" = x; then
14916     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14917   fi
14918 
14919       # Corresponds to --with-extra-path
14920 
14921   if test "x$DEVKIT_EXTRA_PATH" = x; then
14922     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14923   fi
14924 
14925       # Corresponds to --with-toolchain-path
14926 
14927   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14928     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14929   fi
14930 
14931       # Corresponds to --with-sysroot
14932 
14933   if test "x$DEVKIT_SYSROOT" = x; then
14934     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14935   fi
14936 
14937 
14938       # Identifies the Visual Studio version in the devkit
14939 
14940   if test "x$DEVKIT_VS_VERSION" = x; then
14941     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14942   fi
14943 
14944       # The Visual Studio include environment variable
14945 
14946   if test "x$DEVKIT_VS_INCLUDE" = x; then
14947     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14948   fi
14949 
14950       # The Visual Studio lib environment variable
14951 
14952   if test "x$DEVKIT_VS_LIB" = x; then
14953     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14954   fi
14955 
14956       # Corresponds to --with-msvcr-dll
14957 
14958   if test "x$DEVKIT_MSVCR_DLL" = x; then
14959     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14960   fi
14961 
14962       # Corresponds to --with-msvcp-dll
14963 
14964   if test "x$DEVKIT_MSVCP_DLL" = x; then
14965     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14966   fi
14967 
14968       # Corresponds to --with-ucrt-dll-dir
14969 
14970   if test "x$DEVKIT_UCRT_DLL_DIR" = x; then
14971     eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}"
14972   fi
14973 
14974     fi
14975 
14976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14977 $as_echo_n "checking for devkit... " >&6; }
14978     if test "x$DEVKIT_NAME" != x; then
14979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14980 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14981     else
14982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14983 $as_echo "$DEVKIT_ROOT" >&6; }
14984     fi
14985 
14986 
14987   if test "x$DEVKIT_EXTRA_PATH" != x; then
14988     if test "x$EXTRA_PATH" = x; then
14989       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14990     else
14991       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14992     fi
14993   fi
14994 
14995 
14996     # Fallback default of just /bin if DEVKIT_PATH is not defined
14997     if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14998       DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14999     fi
15000 
15001   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
15002     if test "x$TOOLCHAIN_PATH" = x; then
15003       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
15004     else
15005       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
15006     fi
15007   fi
15008 
15009 
15010     # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
15011     # places for backwards compatiblity.
15012     if test "x$DEVKIT_SYSROOT" != x; then
15013       SYSROOT="$DEVKIT_SYSROOT"
15014     elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
15015       SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15016     elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15017       SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15018     fi
15019 
15020     if test "x$DEVKIT_ROOT" != x; then
15021       DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
15022       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15023         DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
15024       fi
15025 
15026     fi
15027   fi
15028 
15029   # You can force the sysroot if the sysroot encoded into the compiler tools
15030   # is not correct.
15031 
15032 # Check whether --with-sys-root was given.
15033 if test "${with_sys_root+set}" = set; then :
15034   withval=$with_sys_root; SYSROOT=$with_sys_root
15035 
15036 fi
15037 
15038 
15039 
15040 # Check whether --with-sysroot was given.
15041 if test "${with_sysroot+set}" = set; then :
15042   withval=$with_sysroot; SYSROOT=$with_sysroot
15043 
15044 fi
15045 
15046 
15047 
15048 # Check whether --with-tools-dir was given.
15049 if test "${with_tools_dir+set}" = set; then :
15050   withval=$with_tools_dir;
15051   if test "x$with_tools_dir" != x; then
15052     if test "x$TOOLCHAIN_PATH" = x; then
15053       TOOLCHAIN_PATH="$with_tools_dir"
15054     else
15055       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15056     fi
15057   fi
15058 
15059 
15060 fi
15061 
15062 
15063 
15064 # Check whether --with-toolchain-path was given.
15065 if test "${with_toolchain_path+set}" = set; then :
15066   withval=$with_toolchain_path;
15067   if test "x$with_toolchain_path" != x; then
15068     if test "x$TOOLCHAIN_PATH" = x; then
15069       TOOLCHAIN_PATH="$with_toolchain_path"
15070     else
15071       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15072     fi
15073   fi
15074 
15075 
15076 fi
15077 
15078 
15079 
15080 # Check whether --with-extra-path was given.
15081 if test "${with_extra_path+set}" = set; then :
15082   withval=$with_extra_path;
15083   if test "x$with_extra_path" != x; then
15084     if test "x$EXTRA_PATH" = x; then
15085       EXTRA_PATH="$with_extra_path"
15086     else
15087       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15088     fi
15089   fi
15090 
15091 
15092 fi
15093 
15094 
15095   # Prepend the extra path to the global path
15096 
15097   if test "x$EXTRA_PATH" != x; then
15098     if test "x$PATH" = x; then
15099       PATH="$EXTRA_PATH"
15100     else
15101       PATH="$EXTRA_PATH:$PATH"
15102     fi
15103   fi
15104 
15105 
15106   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15107     # Add extra search paths on solaris for utilities like ar and as etc...
15108     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15109   fi
15110 
15111   # Xcode version will be validated later
15112 
15113 # Check whether --with-xcode-path was given.
15114 if test "${with_xcode_path+set}" = set; then :
15115   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15116 
15117 fi
15118 
15119 
15120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15121 $as_echo_n "checking for sysroot... " >&6; }
15122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15123 $as_echo "$SYSROOT" >&6; }
15124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15125 $as_echo_n "checking for toolchain path... " >&6; }
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15127 $as_echo "$TOOLCHAIN_PATH" >&6; }
15128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15129 $as_echo_n "checking for extra path... " >&6; }
15130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15131 $as_echo "$EXTRA_PATH" >&6; }
15132 
15133 
15134 # To properly create a configuration name, we need to have the OpenJDK target
15135 # and options (variants and debug level) parsed.
15136 
15137 
15138 
15139 # Check whether --with-conf-name was given.
15140 if test "${with_conf_name+set}" = set; then :
15141   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15142 fi
15143 
15144 
15145   # Test from where we are running configure, in or outside of src root.
15146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15147 $as_echo_n "checking where to store configuration... " >&6; }
15148   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15149       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15150       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15151     # We are running configure from the src root.
15152     # Create a default ./build/target-variant-debuglevel output root.
15153     if test "x${CONF_NAME}" = x; then
15154       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15155 $as_echo "in default location" >&6; }
15156       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15157     else
15158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15159 $as_echo "in build directory with custom name" >&6; }
15160     fi
15161     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15162     $MKDIR -p "$OUTPUT_ROOT"
15163     if test ! -d "$OUTPUT_ROOT"; then
15164       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15165     fi
15166   else
15167     # We are running configure from outside of the src dir.
15168     # Then use the current directory as output dir!
15169     # If configuration is situated in normal build directory, just use the build
15170     # directory name as configuration name, otherwise use the complete path.
15171     if test "x${CONF_NAME}" = x; then
15172       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15173     fi
15174     OUTPUT_ROOT="$CURDIR"
15175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15176 $as_echo "in current directory" >&6; }
15177 
15178     # WARNING: This might be a bad thing to do. You need to be sure you want to
15179     # have a configuration in this directory. Do some sanity checks!
15180 
15181     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15182       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15183       # other files
15184       files_present=`$LS $OUTPUT_ROOT`
15185       # Configure has already touched config.log and confdefs.h in the current dir when this check
15186       # is performed.
15187       filtered_files=`$ECHO "$files_present" \
15188           | $SED -e 's/config.log//g' \
15189               -e 's/confdefs.h//g' \
15190               -e 's/fixpath.exe//g' \
15191               -e 's/ //g' \
15192           | $TR -d '\n'`
15193       if test "x$filtered_files" != x; then
15194         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15195 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15196         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15197 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15198         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15199 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15200         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15201 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15202         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15203 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15204         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15205 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15206         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15207 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15208         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15209       fi
15210     fi
15211   fi
15212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15213 $as_echo_n "checking what configuration name to use... " >&6; }
15214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15215 $as_echo "$CONF_NAME" >&6; }
15216 
15217 
15218   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15219 
15220   # Input might be given as Windows format, start by converting to
15221   # unix format.
15222   path="$OUTPUT_ROOT"
15223   new_path=`$CYGPATH -u "$path"`
15224 
15225   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15226   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15227   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15228   # "foo.exe" is OK but "foo" is an error.
15229   #
15230   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15231   # It is also a way to make sure we got the proper file name for the real test later on.
15232   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15233   if test "x$test_shortpath" = x; then
15234     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15235 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15236     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15237   fi
15238 
15239   # Call helper function which possibly converts this using DOS-style short mode.
15240   # If so, the updated path is stored in $new_path.
15241 
15242   input_path="$new_path"
15243   # Check if we need to convert this using DOS-style short mode. If the path
15244   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15245   # take no chances and rewrite it.
15246   # Note: m4 eats our [], so we need to use [ and ] instead.
15247   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15248   if test "x$has_forbidden_chars" != x; then
15249     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15250     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15251     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15252     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15253       # Going to short mode and back again did indeed matter. Since short mode is
15254       # case insensitive, let's make it lowercase to improve readability.
15255       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15256       # Now convert it back to Unix-style (cygpath)
15257       input_path=`$CYGPATH -u "$shortmode_path"`
15258       new_path="$input_path"
15259     fi
15260   fi
15261 
15262   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15263   if test "x$test_cygdrive_prefix" = x; then
15264     # As a simple fix, exclude /usr/bin since it's not a real path.
15265     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15266       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15267       # a path prefixed by /cygdrive for fixpath to work.
15268       new_path="$CYGWIN_ROOT_PATH$input_path"
15269     fi
15270   fi
15271 
15272 
15273   if test "x$path" != "x$new_path"; then
15274     OUTPUT_ROOT="$new_path"
15275     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15276 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15277   fi
15278 
15279   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15280 
15281   path="$OUTPUT_ROOT"
15282   has_colon=`$ECHO $path | $GREP ^.:`
15283   new_path="$path"
15284   if test "x$has_colon" = x; then
15285     # Not in mixed or Windows style, start by that.
15286     new_path=`cmd //c echo $path`
15287   fi
15288 
15289 
15290   input_path="$new_path"
15291   # Check if we need to convert this using DOS-style short mode. If the path
15292   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15293   # take no chances and rewrite it.
15294   # Note: m4 eats our [], so we need to use [ and ] instead.
15295   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15296   if test "x$has_forbidden_chars" != x; then
15297     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15298     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15299   fi
15300 
15301 
15302   windows_path="$new_path"
15303   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15304     unix_path=`$CYGPATH -u "$windows_path"`
15305     new_path="$unix_path"
15306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15307     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15308     new_path="$unix_path"
15309   fi
15310 
15311   if test "x$path" != "x$new_path"; then
15312     OUTPUT_ROOT="$new_path"
15313     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15314 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15315   fi
15316 
15317   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15318   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15319 
15320   else
15321     # We're on a posix platform. Hooray! :)
15322     path="$OUTPUT_ROOT"
15323     has_space=`$ECHO "$path" | $GREP " "`
15324     if test "x$has_space" != x; then
15325       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15326 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15327       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15328     fi
15329 
15330     # Use eval to expand a potential ~
15331     eval path="$path"
15332     if test ! -f "$path" && test ! -d "$path"; then
15333       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15334     fi
15335 
15336     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15337   fi
15338 
15339 
15340   SPEC=$OUTPUT_ROOT/spec.gmk
15341 
15342   CONF_NAME=$CONF_NAME
15343 
15344   OUTPUT_ROOT=$OUTPUT_ROOT
15345 
15346 
15347   # Most of the probed defines are put into config.h
15348   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15349 
15350   # The spec.gmk file contains all variables for the make system.
15351   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15352 
15353   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15354   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15355 
15356   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15357   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15358 
15359   # The compare.sh is used to compare the build output to other builds.
15360   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15361 
15362   # Spec.sh is currently used by compare-objects.sh
15363   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15364 
15365   # The generated Makefile knows where the spec.gmk is and where the source is.
15366   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15367   # which will look for generated configurations
15368   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15369 
15370 
15371 
15372 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15373 
15374   for ac_prog in apt-get yum port pkgutil pkgadd
15375 do
15376   # Extract the first word of "$ac_prog", so it can be a program name with args.
15377 set dummy $ac_prog; ac_word=$2
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15379 $as_echo_n "checking for $ac_word... " >&6; }
15380 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15381   $as_echo_n "(cached) " >&6
15382 else
15383   if test -n "$PKGHANDLER"; then
15384   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15385 else
15386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15387 for as_dir in $PATH
15388 do
15389   IFS=$as_save_IFS
15390   test -z "$as_dir" && as_dir=.
15391     for ac_exec_ext in '' $ac_executable_extensions; do
15392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15393     ac_cv_prog_PKGHANDLER="$ac_prog"
15394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15395     break 2
15396   fi
15397 done
15398   done
15399 IFS=$as_save_IFS
15400 
15401 fi
15402 fi
15403 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15404 if test -n "$PKGHANDLER"; then
15405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15406 $as_echo "$PKGHANDLER" >&6; }
15407 else
15408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15409 $as_echo "no" >&6; }
15410 fi
15411 
15412 
15413   test -n "$PKGHANDLER" && break
15414 done
15415 
15416 
15417 
15418 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15419 
15420 
15421   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15422   if test "x$MAKE" != x; then
15423     # User has supplied a make, test it.
15424     if test ! -f "$MAKE"; then
15425       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15426     fi
15427 
15428   MAKE_CANDIDATE=""$MAKE""
15429   DESCRIPTION="user supplied MAKE=$MAKE"
15430   if test "x$MAKE_CANDIDATE" != x; then
15431     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15432 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15433     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15434     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15435     if test "x$IS_GNU_MAKE" = x; then
15436       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15437 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15438     else
15439       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15440       if test "x$IS_MODERN_MAKE" = x; then
15441         { $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
15442 $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;}
15443       else
15444         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15445           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15446             MAKE_EXPECTED_ENV='cygwin'
15447           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15448             MAKE_EXPECTED_ENV='msys'
15449           else
15450             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15451           fi
15452           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15453           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15454         else
15455           # Not relevant for non-Windows
15456           IS_MAKE_CORRECT_ENV=true
15457         fi
15458         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15459           { $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
15460 $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;}
15461         else
15462           FOUND_MAKE=$MAKE_CANDIDATE
15463 
15464   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15465 
15466   # First separate the path from the arguments. This will split at the first
15467   # space.
15468   complete="$FOUND_MAKE"
15469   path="${complete%% *}"
15470   tmp="$complete EOL"
15471   arguments="${tmp#* }"
15472 
15473   # Input might be given as Windows format, start by converting to
15474   # unix format.
15475   new_path=`$CYGPATH -u "$path"`
15476 
15477   # Now try to locate executable using which
15478   new_path=`$WHICH "$new_path" 2> /dev/null`
15479   # bat and cmd files are not always considered executable in cygwin causing which
15480   # to not find them
15481   if test "x$new_path" = x \
15482       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15483       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15484     new_path=`$CYGPATH -u "$path"`
15485   fi
15486   if test "x$new_path" = x; then
15487     # Oops. Which didn't find the executable.
15488     # The splitting of arguments from the executable at a space might have been incorrect,
15489     # since paths with space are more likely in Windows. Give it another try with the whole
15490     # argument.
15491     path="$complete"
15492     arguments="EOL"
15493     new_path=`$CYGPATH -u "$path"`
15494     new_path=`$WHICH "$new_path" 2> /dev/null`
15495     # bat and cmd files are not always considered executable in cygwin causing which
15496     # to not find them
15497     if test "x$new_path" = x \
15498         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15499         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15500       new_path=`$CYGPATH -u "$path"`
15501     fi
15502     if test "x$new_path" = x; then
15503       # It's still not found. Now this is an unrecoverable error.
15504       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15505 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15506       has_space=`$ECHO "$complete" | $GREP " "`
15507       if test "x$has_space" != x; then
15508         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15509 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15510       fi
15511       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15512     fi
15513   fi
15514 
15515   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15516   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15517   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15518   # "foo.exe" is OK but "foo" is an error.
15519   #
15520   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15521   # It is also a way to make sure we got the proper file name for the real test later on.
15522   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15523   if test "x$test_shortpath" = x; then
15524     # Short path failed, file does not exist as specified.
15525     # Try adding .exe or .cmd
15526     if test -f "${new_path}.exe"; then
15527       input_to_shortpath="${new_path}.exe"
15528     elif test -f "${new_path}.cmd"; then
15529       input_to_shortpath="${new_path}.cmd"
15530     else
15531       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15532 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15533       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15534 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15535       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15536     fi
15537   else
15538     input_to_shortpath="$new_path"
15539   fi
15540 
15541   # Call helper function which possibly converts this using DOS-style short mode.
15542   # If so, the updated path is stored in $new_path.
15543   new_path="$input_to_shortpath"
15544 
15545   input_path="$input_to_shortpath"
15546   # Check if we need to convert this using DOS-style short mode. If the path
15547   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15548   # take no chances and rewrite it.
15549   # Note: m4 eats our [], so we need to use [ and ] instead.
15550   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15551   if test "x$has_forbidden_chars" != x; then
15552     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15553     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15554     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15555     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15556       # Going to short mode and back again did indeed matter. Since short mode is
15557       # case insensitive, let's make it lowercase to improve readability.
15558       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15559       # Now convert it back to Unix-style (cygpath)
15560       input_path=`$CYGPATH -u "$shortmode_path"`
15561       new_path="$input_path"
15562     fi
15563   fi
15564 
15565   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15566   if test "x$test_cygdrive_prefix" = x; then
15567     # As a simple fix, exclude /usr/bin since it's not a real path.
15568     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15569       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15570       # a path prefixed by /cygdrive for fixpath to work.
15571       new_path="$CYGWIN_ROOT_PATH$input_path"
15572     fi
15573   fi
15574 
15575   # remove trailing .exe if any
15576   new_path="${new_path/%.exe/}"
15577 
15578   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15579 
15580   # First separate the path from the arguments. This will split at the first
15581   # space.
15582   complete="$FOUND_MAKE"
15583   path="${complete%% *}"
15584   tmp="$complete EOL"
15585   arguments="${tmp#* }"
15586 
15587   # Input might be given as Windows format, start by converting to
15588   # unix format.
15589   new_path="$path"
15590 
15591   windows_path="$new_path"
15592   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15593     unix_path=`$CYGPATH -u "$windows_path"`
15594     new_path="$unix_path"
15595   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15596     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15597     new_path="$unix_path"
15598   fi
15599 
15600 
15601   # Now try to locate executable using which
15602   new_path=`$WHICH "$new_path" 2> /dev/null`
15603 
15604   if test "x$new_path" = x; then
15605     # Oops. Which didn't find the executable.
15606     # The splitting of arguments from the executable at a space might have been incorrect,
15607     # since paths with space are more likely in Windows. Give it another try with the whole
15608     # argument.
15609     path="$complete"
15610     arguments="EOL"
15611     new_path="$path"
15612 
15613   windows_path="$new_path"
15614   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15615     unix_path=`$CYGPATH -u "$windows_path"`
15616     new_path="$unix_path"
15617   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15618     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15619     new_path="$unix_path"
15620   fi
15621 
15622 
15623     new_path=`$WHICH "$new_path" 2> /dev/null`
15624     # bat and cmd files are not always considered executable in MSYS causing which
15625     # to not find them
15626     if test "x$new_path" = x \
15627         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15628         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15629       new_path="$path"
15630 
15631   windows_path="$new_path"
15632   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15633     unix_path=`$CYGPATH -u "$windows_path"`
15634     new_path="$unix_path"
15635   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15636     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15637     new_path="$unix_path"
15638   fi
15639 
15640     fi
15641 
15642     if test "x$new_path" = x; then
15643       # It's still not found. Now this is an unrecoverable error.
15644       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15645 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15646       has_space=`$ECHO "$complete" | $GREP " "`
15647       if test "x$has_space" != x; then
15648         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15649 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15650       fi
15651       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15652     fi
15653   fi
15654 
15655   # Now new_path has a complete unix path to the binary
15656   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15657     # Keep paths in /bin as-is, but remove trailing .exe if any
15658     new_path="${new_path/%.exe/}"
15659     # Do not save /bin paths to all_fixpath_prefixes!
15660   else
15661     # Not in mixed or Windows style, start by that.
15662     new_path=`cmd //c echo $new_path`
15663 
15664   input_path="$new_path"
15665   # Check if we need to convert this using DOS-style short mode. If the path
15666   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15667   # take no chances and rewrite it.
15668   # Note: m4 eats our [], so we need to use [ and ] instead.
15669   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15670   if test "x$has_forbidden_chars" != x; then
15671     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15672     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15673   fi
15674 
15675     # Output is in $new_path
15676 
15677   windows_path="$new_path"
15678   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15679     unix_path=`$CYGPATH -u "$windows_path"`
15680     new_path="$unix_path"
15681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15682     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15683     new_path="$unix_path"
15684   fi
15685 
15686     # remove trailing .exe if any
15687     new_path="${new_path/%.exe/}"
15688 
15689     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15690     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15691   fi
15692 
15693   else
15694     # We're on a posix platform. Hooray! :)
15695     # First separate the path from the arguments. This will split at the first
15696     # space.
15697     complete="$FOUND_MAKE"
15698     path="${complete%% *}"
15699     tmp="$complete EOL"
15700     arguments="${tmp#* }"
15701 
15702     # Cannot rely on the command "which" here since it doesn't always work.
15703     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15704     if test -z "$is_absolute_path"; then
15705       # Path to executable is not absolute. Find it.
15706       IFS_save="$IFS"
15707       IFS=:
15708       for p in $PATH; do
15709         if test -f "$p/$path" && test -x "$p/$path"; then
15710           new_path="$p/$path"
15711           break
15712         fi
15713       done
15714       IFS="$IFS_save"
15715     else
15716       # This is an absolute path, we can use it without further modifications.
15717       new_path="$path"
15718     fi
15719 
15720     if test "x$new_path" = x; then
15721       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15722 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15723       has_space=`$ECHO "$complete" | $GREP " "`
15724       if test "x$has_space" != x; then
15725         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15726 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15727       fi
15728       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15729     fi
15730   fi
15731 
15732   # Now join together the path and the arguments once again
15733   if test "x$arguments" != xEOL; then
15734     new_complete="$new_path ${arguments% *}"
15735   else
15736     new_complete="$new_path"
15737   fi
15738 
15739   if test "x$complete" != "x$new_complete"; then
15740     FOUND_MAKE="$new_complete"
15741     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15742 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15743   fi
15744 
15745         fi
15746       fi
15747     fi
15748   fi
15749 
15750     if test "x$FOUND_MAKE" = x; then
15751       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15752     fi
15753   else
15754     # Try our hardest to locate a correct version of GNU make
15755     for ac_prog in gmake
15756 do
15757   # Extract the first word of "$ac_prog", so it can be a program name with args.
15758 set dummy $ac_prog; ac_word=$2
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15760 $as_echo_n "checking for $ac_word... " >&6; }
15761 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15762   $as_echo_n "(cached) " >&6
15763 else
15764   case $CHECK_GMAKE in
15765   [\\/]* | ?:[\\/]*)
15766   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15767   ;;
15768   *)
15769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15770 for as_dir in $PATH
15771 do
15772   IFS=$as_save_IFS
15773   test -z "$as_dir" && as_dir=.
15774     for ac_exec_ext in '' $ac_executable_extensions; do
15775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15776     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15778     break 2
15779   fi
15780 done
15781   done
15782 IFS=$as_save_IFS
15783 
15784   ;;
15785 esac
15786 fi
15787 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15788 if test -n "$CHECK_GMAKE"; then
15789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15790 $as_echo "$CHECK_GMAKE" >&6; }
15791 else
15792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 $as_echo "no" >&6; }
15794 fi
15795 
15796 
15797   test -n "$CHECK_GMAKE" && break
15798 done
15799 
15800 
15801   MAKE_CANDIDATE=""$CHECK_GMAKE""
15802   DESCRIPTION="gmake in PATH"
15803   if test "x$MAKE_CANDIDATE" != x; then
15804     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15805 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15806     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15807     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15808     if test "x$IS_GNU_MAKE" = x; then
15809       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15810 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15811     else
15812       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15813       if test "x$IS_MODERN_MAKE" = x; then
15814         { $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
15815 $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;}
15816       else
15817         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15818           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15819             MAKE_EXPECTED_ENV='cygwin'
15820           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15821             MAKE_EXPECTED_ENV='msys'
15822           else
15823             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15824           fi
15825           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15826           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15827         else
15828           # Not relevant for non-Windows
15829           IS_MAKE_CORRECT_ENV=true
15830         fi
15831         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15832           { $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
15833 $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;}
15834         else
15835           FOUND_MAKE=$MAKE_CANDIDATE
15836 
15837   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15838 
15839   # First separate the path from the arguments. This will split at the first
15840   # space.
15841   complete="$FOUND_MAKE"
15842   path="${complete%% *}"
15843   tmp="$complete EOL"
15844   arguments="${tmp#* }"
15845 
15846   # Input might be given as Windows format, start by converting to
15847   # unix format.
15848   new_path=`$CYGPATH -u "$path"`
15849 
15850   # Now try to locate executable using which
15851   new_path=`$WHICH "$new_path" 2> /dev/null`
15852   # bat and cmd files are not always considered executable in cygwin causing which
15853   # to not find them
15854   if test "x$new_path" = x \
15855       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15856       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15857     new_path=`$CYGPATH -u "$path"`
15858   fi
15859   if test "x$new_path" = x; then
15860     # Oops. Which didn't find the executable.
15861     # The splitting of arguments from the executable at a space might have been incorrect,
15862     # since paths with space are more likely in Windows. Give it another try with the whole
15863     # argument.
15864     path="$complete"
15865     arguments="EOL"
15866     new_path=`$CYGPATH -u "$path"`
15867     new_path=`$WHICH "$new_path" 2> /dev/null`
15868     # bat and cmd files are not always considered executable in cygwin causing which
15869     # to not find them
15870     if test "x$new_path" = x \
15871         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15872         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15873       new_path=`$CYGPATH -u "$path"`
15874     fi
15875     if test "x$new_path" = x; then
15876       # It's still not found. Now this is an unrecoverable error.
15877       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15878 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15879       has_space=`$ECHO "$complete" | $GREP " "`
15880       if test "x$has_space" != x; then
15881         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15882 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15883       fi
15884       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15885     fi
15886   fi
15887 
15888   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15889   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15890   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15891   # "foo.exe" is OK but "foo" is an error.
15892   #
15893   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15894   # It is also a way to make sure we got the proper file name for the real test later on.
15895   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15896   if test "x$test_shortpath" = x; then
15897     # Short path failed, file does not exist as specified.
15898     # Try adding .exe or .cmd
15899     if test -f "${new_path}.exe"; then
15900       input_to_shortpath="${new_path}.exe"
15901     elif test -f "${new_path}.cmd"; then
15902       input_to_shortpath="${new_path}.cmd"
15903     else
15904       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15905 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15906       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15907 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15908       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15909     fi
15910   else
15911     input_to_shortpath="$new_path"
15912   fi
15913 
15914   # Call helper function which possibly converts this using DOS-style short mode.
15915   # If so, the updated path is stored in $new_path.
15916   new_path="$input_to_shortpath"
15917 
15918   input_path="$input_to_shortpath"
15919   # Check if we need to convert this using DOS-style short mode. If the path
15920   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15921   # take no chances and rewrite it.
15922   # Note: m4 eats our [], so we need to use [ and ] instead.
15923   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15924   if test "x$has_forbidden_chars" != x; then
15925     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15926     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15927     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15928     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15929       # Going to short mode and back again did indeed matter. Since short mode is
15930       # case insensitive, let's make it lowercase to improve readability.
15931       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15932       # Now convert it back to Unix-style (cygpath)
15933       input_path=`$CYGPATH -u "$shortmode_path"`
15934       new_path="$input_path"
15935     fi
15936   fi
15937 
15938   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15939   if test "x$test_cygdrive_prefix" = x; then
15940     # As a simple fix, exclude /usr/bin since it's not a real path.
15941     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15942       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15943       # a path prefixed by /cygdrive for fixpath to work.
15944       new_path="$CYGWIN_ROOT_PATH$input_path"
15945     fi
15946   fi
15947 
15948   # remove trailing .exe if any
15949   new_path="${new_path/%.exe/}"
15950 
15951   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15952 
15953   # First separate the path from the arguments. This will split at the first
15954   # space.
15955   complete="$FOUND_MAKE"
15956   path="${complete%% *}"
15957   tmp="$complete EOL"
15958   arguments="${tmp#* }"
15959 
15960   # Input might be given as Windows format, start by converting to
15961   # unix format.
15962   new_path="$path"
15963 
15964   windows_path="$new_path"
15965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15966     unix_path=`$CYGPATH -u "$windows_path"`
15967     new_path="$unix_path"
15968   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15969     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15970     new_path="$unix_path"
15971   fi
15972 
15973 
15974   # Now try to locate executable using which
15975   new_path=`$WHICH "$new_path" 2> /dev/null`
15976 
15977   if test "x$new_path" = x; then
15978     # Oops. Which didn't find the executable.
15979     # The splitting of arguments from the executable at a space might have been incorrect,
15980     # since paths with space are more likely in Windows. Give it another try with the whole
15981     # argument.
15982     path="$complete"
15983     arguments="EOL"
15984     new_path="$path"
15985 
15986   windows_path="$new_path"
15987   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15988     unix_path=`$CYGPATH -u "$windows_path"`
15989     new_path="$unix_path"
15990   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15991     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15992     new_path="$unix_path"
15993   fi
15994 
15995 
15996     new_path=`$WHICH "$new_path" 2> /dev/null`
15997     # bat and cmd files are not always considered executable in MSYS causing which
15998     # to not find them
15999     if test "x$new_path" = x \
16000         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16001         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16002       new_path="$path"
16003 
16004   windows_path="$new_path"
16005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16006     unix_path=`$CYGPATH -u "$windows_path"`
16007     new_path="$unix_path"
16008   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16009     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16010     new_path="$unix_path"
16011   fi
16012 
16013     fi
16014 
16015     if test "x$new_path" = x; then
16016       # It's still not found. Now this is an unrecoverable error.
16017       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16018 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16019       has_space=`$ECHO "$complete" | $GREP " "`
16020       if test "x$has_space" != x; then
16021         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16022 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16023       fi
16024       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16025     fi
16026   fi
16027 
16028   # Now new_path has a complete unix path to the binary
16029   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16030     # Keep paths in /bin as-is, but remove trailing .exe if any
16031     new_path="${new_path/%.exe/}"
16032     # Do not save /bin paths to all_fixpath_prefixes!
16033   else
16034     # Not in mixed or Windows style, start by that.
16035     new_path=`cmd //c echo $new_path`
16036 
16037   input_path="$new_path"
16038   # Check if we need to convert this using DOS-style short mode. If the path
16039   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16040   # take no chances and rewrite it.
16041   # Note: m4 eats our [], so we need to use [ and ] instead.
16042   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16043   if test "x$has_forbidden_chars" != x; then
16044     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16045     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16046   fi
16047 
16048     # Output is in $new_path
16049 
16050   windows_path="$new_path"
16051   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16052     unix_path=`$CYGPATH -u "$windows_path"`
16053     new_path="$unix_path"
16054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16055     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16056     new_path="$unix_path"
16057   fi
16058 
16059     # remove trailing .exe if any
16060     new_path="${new_path/%.exe/}"
16061 
16062     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16063     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16064   fi
16065 
16066   else
16067     # We're on a posix platform. Hooray! :)
16068     # First separate the path from the arguments. This will split at the first
16069     # space.
16070     complete="$FOUND_MAKE"
16071     path="${complete%% *}"
16072     tmp="$complete EOL"
16073     arguments="${tmp#* }"
16074 
16075     # Cannot rely on the command "which" here since it doesn't always work.
16076     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16077     if test -z "$is_absolute_path"; then
16078       # Path to executable is not absolute. Find it.
16079       IFS_save="$IFS"
16080       IFS=:
16081       for p in $PATH; do
16082         if test -f "$p/$path" && test -x "$p/$path"; then
16083           new_path="$p/$path"
16084           break
16085         fi
16086       done
16087       IFS="$IFS_save"
16088     else
16089       # This is an absolute path, we can use it without further modifications.
16090       new_path="$path"
16091     fi
16092 
16093     if test "x$new_path" = x; then
16094       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16095 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16096       has_space=`$ECHO "$complete" | $GREP " "`
16097       if test "x$has_space" != x; then
16098         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16099 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16100       fi
16101       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16102     fi
16103   fi
16104 
16105   # Now join together the path and the arguments once again
16106   if test "x$arguments" != xEOL; then
16107     new_complete="$new_path ${arguments% *}"
16108   else
16109     new_complete="$new_path"
16110   fi
16111 
16112   if test "x$complete" != "x$new_complete"; then
16113     FOUND_MAKE="$new_complete"
16114     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16115 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16116   fi
16117 
16118         fi
16119       fi
16120     fi
16121   fi
16122 
16123 
16124     if test "x$FOUND_MAKE" = x; then
16125       for ac_prog in make
16126 do
16127   # Extract the first word of "$ac_prog", so it can be a program name with args.
16128 set dummy $ac_prog; ac_word=$2
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16130 $as_echo_n "checking for $ac_word... " >&6; }
16131 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16132   $as_echo_n "(cached) " >&6
16133 else
16134   case $CHECK_MAKE in
16135   [\\/]* | ?:[\\/]*)
16136   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16137   ;;
16138   *)
16139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140 for as_dir in $PATH
16141 do
16142   IFS=$as_save_IFS
16143   test -z "$as_dir" && as_dir=.
16144     for ac_exec_ext in '' $ac_executable_extensions; do
16145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16146     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16148     break 2
16149   fi
16150 done
16151   done
16152 IFS=$as_save_IFS
16153 
16154   ;;
16155 esac
16156 fi
16157 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16158 if test -n "$CHECK_MAKE"; then
16159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16160 $as_echo "$CHECK_MAKE" >&6; }
16161 else
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16164 fi
16165 
16166 
16167   test -n "$CHECK_MAKE" && break
16168 done
16169 
16170 
16171   MAKE_CANDIDATE=""$CHECK_MAKE""
16172   DESCRIPTION="make in PATH"
16173   if test "x$MAKE_CANDIDATE" != x; then
16174     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16175 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16176     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16177     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16178     if test "x$IS_GNU_MAKE" = x; then
16179       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16180 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16181     else
16182       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16183       if test "x$IS_MODERN_MAKE" = x; then
16184         { $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
16185 $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;}
16186       else
16187         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16188           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16189             MAKE_EXPECTED_ENV='cygwin'
16190           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16191             MAKE_EXPECTED_ENV='msys'
16192           else
16193             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16194           fi
16195           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16196           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16197         else
16198           # Not relevant for non-Windows
16199           IS_MAKE_CORRECT_ENV=true
16200         fi
16201         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16202           { $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
16203 $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;}
16204         else
16205           FOUND_MAKE=$MAKE_CANDIDATE
16206 
16207   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16208 
16209   # First separate the path from the arguments. This will split at the first
16210   # space.
16211   complete="$FOUND_MAKE"
16212   path="${complete%% *}"
16213   tmp="$complete EOL"
16214   arguments="${tmp#* }"
16215 
16216   # Input might be given as Windows format, start by converting to
16217   # unix format.
16218   new_path=`$CYGPATH -u "$path"`
16219 
16220   # Now try to locate executable using which
16221   new_path=`$WHICH "$new_path" 2> /dev/null`
16222   # bat and cmd files are not always considered executable in cygwin causing which
16223   # to not find them
16224   if test "x$new_path" = x \
16225       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16226       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16227     new_path=`$CYGPATH -u "$path"`
16228   fi
16229   if test "x$new_path" = x; then
16230     # Oops. Which didn't find the executable.
16231     # The splitting of arguments from the executable at a space might have been incorrect,
16232     # since paths with space are more likely in Windows. Give it another try with the whole
16233     # argument.
16234     path="$complete"
16235     arguments="EOL"
16236     new_path=`$CYGPATH -u "$path"`
16237     new_path=`$WHICH "$new_path" 2> /dev/null`
16238     # bat and cmd files are not always considered executable in cygwin causing which
16239     # to not find them
16240     if test "x$new_path" = x \
16241         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16242         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16243       new_path=`$CYGPATH -u "$path"`
16244     fi
16245     if test "x$new_path" = x; then
16246       # It's still not found. Now this is an unrecoverable error.
16247       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16248 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16249       has_space=`$ECHO "$complete" | $GREP " "`
16250       if test "x$has_space" != x; then
16251         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16252 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16253       fi
16254       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16255     fi
16256   fi
16257 
16258   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16259   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16260   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16261   # "foo.exe" is OK but "foo" is an error.
16262   #
16263   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16264   # It is also a way to make sure we got the proper file name for the real test later on.
16265   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16266   if test "x$test_shortpath" = x; then
16267     # Short path failed, file does not exist as specified.
16268     # Try adding .exe or .cmd
16269     if test -f "${new_path}.exe"; then
16270       input_to_shortpath="${new_path}.exe"
16271     elif test -f "${new_path}.cmd"; then
16272       input_to_shortpath="${new_path}.cmd"
16273     else
16274       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16275 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16276       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16277 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16278       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16279     fi
16280   else
16281     input_to_shortpath="$new_path"
16282   fi
16283 
16284   # Call helper function which possibly converts this using DOS-style short mode.
16285   # If so, the updated path is stored in $new_path.
16286   new_path="$input_to_shortpath"
16287 
16288   input_path="$input_to_shortpath"
16289   # Check if we need to convert this using DOS-style short mode. If the path
16290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16291   # take no chances and rewrite it.
16292   # Note: m4 eats our [], so we need to use [ and ] instead.
16293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16294   if test "x$has_forbidden_chars" != x; then
16295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16296     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16297     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16298     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16299       # Going to short mode and back again did indeed matter. Since short mode is
16300       # case insensitive, let's make it lowercase to improve readability.
16301       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16302       # Now convert it back to Unix-style (cygpath)
16303       input_path=`$CYGPATH -u "$shortmode_path"`
16304       new_path="$input_path"
16305     fi
16306   fi
16307 
16308   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16309   if test "x$test_cygdrive_prefix" = x; then
16310     # As a simple fix, exclude /usr/bin since it's not a real path.
16311     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16312       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16313       # a path prefixed by /cygdrive for fixpath to work.
16314       new_path="$CYGWIN_ROOT_PATH$input_path"
16315     fi
16316   fi
16317 
16318   # remove trailing .exe if any
16319   new_path="${new_path/%.exe/}"
16320 
16321   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16322 
16323   # First separate the path from the arguments. This will split at the first
16324   # space.
16325   complete="$FOUND_MAKE"
16326   path="${complete%% *}"
16327   tmp="$complete EOL"
16328   arguments="${tmp#* }"
16329 
16330   # Input might be given as Windows format, start by converting to
16331   # unix format.
16332   new_path="$path"
16333 
16334   windows_path="$new_path"
16335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16336     unix_path=`$CYGPATH -u "$windows_path"`
16337     new_path="$unix_path"
16338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16340     new_path="$unix_path"
16341   fi
16342 
16343 
16344   # Now try to locate executable using which
16345   new_path=`$WHICH "$new_path" 2> /dev/null`
16346 
16347   if test "x$new_path" = x; then
16348     # Oops. Which didn't find the executable.
16349     # The splitting of arguments from the executable at a space might have been incorrect,
16350     # since paths with space are more likely in Windows. Give it another try with the whole
16351     # argument.
16352     path="$complete"
16353     arguments="EOL"
16354     new_path="$path"
16355 
16356   windows_path="$new_path"
16357   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16358     unix_path=`$CYGPATH -u "$windows_path"`
16359     new_path="$unix_path"
16360   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16361     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16362     new_path="$unix_path"
16363   fi
16364 
16365 
16366     new_path=`$WHICH "$new_path" 2> /dev/null`
16367     # bat and cmd files are not always considered executable in MSYS causing which
16368     # to not find them
16369     if test "x$new_path" = x \
16370         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16371         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16372       new_path="$path"
16373 
16374   windows_path="$new_path"
16375   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16376     unix_path=`$CYGPATH -u "$windows_path"`
16377     new_path="$unix_path"
16378   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16379     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16380     new_path="$unix_path"
16381   fi
16382 
16383     fi
16384 
16385     if test "x$new_path" = x; then
16386       # It's still not found. Now this is an unrecoverable error.
16387       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16388 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16389       has_space=`$ECHO "$complete" | $GREP " "`
16390       if test "x$has_space" != x; then
16391         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16392 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16393       fi
16394       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16395     fi
16396   fi
16397 
16398   # Now new_path has a complete unix path to the binary
16399   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16400     # Keep paths in /bin as-is, but remove trailing .exe if any
16401     new_path="${new_path/%.exe/}"
16402     # Do not save /bin paths to all_fixpath_prefixes!
16403   else
16404     # Not in mixed or Windows style, start by that.
16405     new_path=`cmd //c echo $new_path`
16406 
16407   input_path="$new_path"
16408   # Check if we need to convert this using DOS-style short mode. If the path
16409   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16410   # take no chances and rewrite it.
16411   # Note: m4 eats our [], so we need to use [ and ] instead.
16412   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16413   if test "x$has_forbidden_chars" != x; then
16414     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16415     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16416   fi
16417 
16418     # Output is in $new_path
16419 
16420   windows_path="$new_path"
16421   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16422     unix_path=`$CYGPATH -u "$windows_path"`
16423     new_path="$unix_path"
16424   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16425     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16426     new_path="$unix_path"
16427   fi
16428 
16429     # remove trailing .exe if any
16430     new_path="${new_path/%.exe/}"
16431 
16432     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16433     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16434   fi
16435 
16436   else
16437     # We're on a posix platform. Hooray! :)
16438     # First separate the path from the arguments. This will split at the first
16439     # space.
16440     complete="$FOUND_MAKE"
16441     path="${complete%% *}"
16442     tmp="$complete EOL"
16443     arguments="${tmp#* }"
16444 
16445     # Cannot rely on the command "which" here since it doesn't always work.
16446     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16447     if test -z "$is_absolute_path"; then
16448       # Path to executable is not absolute. Find it.
16449       IFS_save="$IFS"
16450       IFS=:
16451       for p in $PATH; do
16452         if test -f "$p/$path" && test -x "$p/$path"; then
16453           new_path="$p/$path"
16454           break
16455         fi
16456       done
16457       IFS="$IFS_save"
16458     else
16459       # This is an absolute path, we can use it without further modifications.
16460       new_path="$path"
16461     fi
16462 
16463     if test "x$new_path" = x; then
16464       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16465 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16466       has_space=`$ECHO "$complete" | $GREP " "`
16467       if test "x$has_space" != x; then
16468         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16469 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16470       fi
16471       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16472     fi
16473   fi
16474 
16475   # Now join together the path and the arguments once again
16476   if test "x$arguments" != xEOL; then
16477     new_complete="$new_path ${arguments% *}"
16478   else
16479     new_complete="$new_path"
16480   fi
16481 
16482   if test "x$complete" != "x$new_complete"; then
16483     FOUND_MAKE="$new_complete"
16484     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16485 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16486   fi
16487 
16488         fi
16489       fi
16490     fi
16491   fi
16492 
16493     fi
16494 
16495     if test "x$FOUND_MAKE" = x; then
16496       if test "x$TOOLCHAIN_PATH" != x; then
16497         # We have a toolchain path, check that as well before giving up.
16498         OLD_PATH=$PATH
16499         PATH=$TOOLCHAIN_PATH:$PATH
16500         for ac_prog in gmake
16501 do
16502   # Extract the first word of "$ac_prog", so it can be a program name with args.
16503 set dummy $ac_prog; ac_word=$2
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16505 $as_echo_n "checking for $ac_word... " >&6; }
16506 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16507   $as_echo_n "(cached) " >&6
16508 else
16509   case $CHECK_TOOLSDIR_GMAKE in
16510   [\\/]* | ?:[\\/]*)
16511   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16512   ;;
16513   *)
16514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517   IFS=$as_save_IFS
16518   test -z "$as_dir" && as_dir=.
16519     for ac_exec_ext in '' $ac_executable_extensions; do
16520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16521     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16523     break 2
16524   fi
16525 done
16526   done
16527 IFS=$as_save_IFS
16528 
16529   ;;
16530 esac
16531 fi
16532 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16533 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16535 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16536 else
16537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538 $as_echo "no" >&6; }
16539 fi
16540 
16541 
16542   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16543 done
16544 
16545 
16546   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16547   DESCRIPTION="gmake in tools-dir"
16548   if test "x$MAKE_CANDIDATE" != x; then
16549     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16550 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16551     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16552     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16553     if test "x$IS_GNU_MAKE" = x; then
16554       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16555 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16556     else
16557       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16558       if test "x$IS_MODERN_MAKE" = x; then
16559         { $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
16560 $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;}
16561       else
16562         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16563           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16564             MAKE_EXPECTED_ENV='cygwin'
16565           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16566             MAKE_EXPECTED_ENV='msys'
16567           else
16568             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16569           fi
16570           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16571           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16572         else
16573           # Not relevant for non-Windows
16574           IS_MAKE_CORRECT_ENV=true
16575         fi
16576         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16577           { $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
16578 $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;}
16579         else
16580           FOUND_MAKE=$MAKE_CANDIDATE
16581 
16582   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16583 
16584   # First separate the path from the arguments. This will split at the first
16585   # space.
16586   complete="$FOUND_MAKE"
16587   path="${complete%% *}"
16588   tmp="$complete EOL"
16589   arguments="${tmp#* }"
16590 
16591   # Input might be given as Windows format, start by converting to
16592   # unix format.
16593   new_path=`$CYGPATH -u "$path"`
16594 
16595   # Now try to locate executable using which
16596   new_path=`$WHICH "$new_path" 2> /dev/null`
16597   # bat and cmd files are not always considered executable in cygwin causing which
16598   # to not find them
16599   if test "x$new_path" = x \
16600       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16601       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16602     new_path=`$CYGPATH -u "$path"`
16603   fi
16604   if test "x$new_path" = x; then
16605     # Oops. Which didn't find the executable.
16606     # The splitting of arguments from the executable at a space might have been incorrect,
16607     # since paths with space are more likely in Windows. Give it another try with the whole
16608     # argument.
16609     path="$complete"
16610     arguments="EOL"
16611     new_path=`$CYGPATH -u "$path"`
16612     new_path=`$WHICH "$new_path" 2> /dev/null`
16613     # bat and cmd files are not always considered executable in cygwin causing which
16614     # to not find them
16615     if test "x$new_path" = x \
16616         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16617         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16618       new_path=`$CYGPATH -u "$path"`
16619     fi
16620     if test "x$new_path" = x; then
16621       # It's still not found. Now this is an unrecoverable error.
16622       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16623 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16624       has_space=`$ECHO "$complete" | $GREP " "`
16625       if test "x$has_space" != x; then
16626         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16627 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16628       fi
16629       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16630     fi
16631   fi
16632 
16633   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16634   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16635   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16636   # "foo.exe" is OK but "foo" is an error.
16637   #
16638   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16639   # It is also a way to make sure we got the proper file name for the real test later on.
16640   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16641   if test "x$test_shortpath" = x; then
16642     # Short path failed, file does not exist as specified.
16643     # Try adding .exe or .cmd
16644     if test -f "${new_path}.exe"; then
16645       input_to_shortpath="${new_path}.exe"
16646     elif test -f "${new_path}.cmd"; then
16647       input_to_shortpath="${new_path}.cmd"
16648     else
16649       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16650 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16651       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16652 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16653       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16654     fi
16655   else
16656     input_to_shortpath="$new_path"
16657   fi
16658 
16659   # Call helper function which possibly converts this using DOS-style short mode.
16660   # If so, the updated path is stored in $new_path.
16661   new_path="$input_to_shortpath"
16662 
16663   input_path="$input_to_shortpath"
16664   # Check if we need to convert this using DOS-style short mode. If the path
16665   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16666   # take no chances and rewrite it.
16667   # Note: m4 eats our [], so we need to use [ and ] instead.
16668   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16669   if test "x$has_forbidden_chars" != x; then
16670     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16671     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16672     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16673     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16674       # Going to short mode and back again did indeed matter. Since short mode is
16675       # case insensitive, let's make it lowercase to improve readability.
16676       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16677       # Now convert it back to Unix-style (cygpath)
16678       input_path=`$CYGPATH -u "$shortmode_path"`
16679       new_path="$input_path"
16680     fi
16681   fi
16682 
16683   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16684   if test "x$test_cygdrive_prefix" = x; then
16685     # As a simple fix, exclude /usr/bin since it's not a real path.
16686     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16687       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16688       # a path prefixed by /cygdrive for fixpath to work.
16689       new_path="$CYGWIN_ROOT_PATH$input_path"
16690     fi
16691   fi
16692 
16693   # remove trailing .exe if any
16694   new_path="${new_path/%.exe/}"
16695 
16696   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16697 
16698   # First separate the path from the arguments. This will split at the first
16699   # space.
16700   complete="$FOUND_MAKE"
16701   path="${complete%% *}"
16702   tmp="$complete EOL"
16703   arguments="${tmp#* }"
16704 
16705   # Input might be given as Windows format, start by converting to
16706   # unix format.
16707   new_path="$path"
16708 
16709   windows_path="$new_path"
16710   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16711     unix_path=`$CYGPATH -u "$windows_path"`
16712     new_path="$unix_path"
16713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16714     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16715     new_path="$unix_path"
16716   fi
16717 
16718 
16719   # Now try to locate executable using which
16720   new_path=`$WHICH "$new_path" 2> /dev/null`
16721 
16722   if test "x$new_path" = x; then
16723     # Oops. Which didn't find the executable.
16724     # The splitting of arguments from the executable at a space might have been incorrect,
16725     # since paths with space are more likely in Windows. Give it another try with the whole
16726     # argument.
16727     path="$complete"
16728     arguments="EOL"
16729     new_path="$path"
16730 
16731   windows_path="$new_path"
16732   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16733     unix_path=`$CYGPATH -u "$windows_path"`
16734     new_path="$unix_path"
16735   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16736     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16737     new_path="$unix_path"
16738   fi
16739 
16740 
16741     new_path=`$WHICH "$new_path" 2> /dev/null`
16742     # bat and cmd files are not always considered executable in MSYS causing which
16743     # to not find them
16744     if test "x$new_path" = x \
16745         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16746         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16747       new_path="$path"
16748 
16749   windows_path="$new_path"
16750   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16751     unix_path=`$CYGPATH -u "$windows_path"`
16752     new_path="$unix_path"
16753   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16754     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16755     new_path="$unix_path"
16756   fi
16757 
16758     fi
16759 
16760     if test "x$new_path" = x; then
16761       # It's still not found. Now this is an unrecoverable error.
16762       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16763 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16764       has_space=`$ECHO "$complete" | $GREP " "`
16765       if test "x$has_space" != x; then
16766         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16767 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16768       fi
16769       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16770     fi
16771   fi
16772 
16773   # Now new_path has a complete unix path to the binary
16774   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16775     # Keep paths in /bin as-is, but remove trailing .exe if any
16776     new_path="${new_path/%.exe/}"
16777     # Do not save /bin paths to all_fixpath_prefixes!
16778   else
16779     # Not in mixed or Windows style, start by that.
16780     new_path=`cmd //c echo $new_path`
16781 
16782   input_path="$new_path"
16783   # Check if we need to convert this using DOS-style short mode. If the path
16784   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16785   # take no chances and rewrite it.
16786   # Note: m4 eats our [], so we need to use [ and ] instead.
16787   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16788   if test "x$has_forbidden_chars" != x; then
16789     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16790     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16791   fi
16792 
16793     # Output is in $new_path
16794 
16795   windows_path="$new_path"
16796   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16797     unix_path=`$CYGPATH -u "$windows_path"`
16798     new_path="$unix_path"
16799   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16800     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16801     new_path="$unix_path"
16802   fi
16803 
16804     # remove trailing .exe if any
16805     new_path="${new_path/%.exe/}"
16806 
16807     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16808     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16809   fi
16810 
16811   else
16812     # We're on a posix platform. Hooray! :)
16813     # First separate the path from the arguments. This will split at the first
16814     # space.
16815     complete="$FOUND_MAKE"
16816     path="${complete%% *}"
16817     tmp="$complete EOL"
16818     arguments="${tmp#* }"
16819 
16820     # Cannot rely on the command "which" here since it doesn't always work.
16821     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16822     if test -z "$is_absolute_path"; then
16823       # Path to executable is not absolute. Find it.
16824       IFS_save="$IFS"
16825       IFS=:
16826       for p in $PATH; do
16827         if test -f "$p/$path" && test -x "$p/$path"; then
16828           new_path="$p/$path"
16829           break
16830         fi
16831       done
16832       IFS="$IFS_save"
16833     else
16834       # This is an absolute path, we can use it without further modifications.
16835       new_path="$path"
16836     fi
16837 
16838     if test "x$new_path" = x; then
16839       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16840 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16841       has_space=`$ECHO "$complete" | $GREP " "`
16842       if test "x$has_space" != x; then
16843         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16844 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16845       fi
16846       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16847     fi
16848   fi
16849 
16850   # Now join together the path and the arguments once again
16851   if test "x$arguments" != xEOL; then
16852     new_complete="$new_path ${arguments% *}"
16853   else
16854     new_complete="$new_path"
16855   fi
16856 
16857   if test "x$complete" != "x$new_complete"; then
16858     FOUND_MAKE="$new_complete"
16859     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16860 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16861   fi
16862 
16863         fi
16864       fi
16865     fi
16866   fi
16867 
16868         if test "x$FOUND_MAKE" = x; then
16869           for ac_prog in make
16870 do
16871   # Extract the first word of "$ac_prog", so it can be a program name with args.
16872 set dummy $ac_prog; ac_word=$2
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16874 $as_echo_n "checking for $ac_word... " >&6; }
16875 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16876   $as_echo_n "(cached) " >&6
16877 else
16878   case $CHECK_TOOLSDIR_MAKE in
16879   [\\/]* | ?:[\\/]*)
16880   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16881   ;;
16882   *)
16883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16884 for as_dir in $PATH
16885 do
16886   IFS=$as_save_IFS
16887   test -z "$as_dir" && as_dir=.
16888     for ac_exec_ext in '' $ac_executable_extensions; do
16889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16890     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16892     break 2
16893   fi
16894 done
16895   done
16896 IFS=$as_save_IFS
16897 
16898   ;;
16899 esac
16900 fi
16901 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16902 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16904 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16905 else
16906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16907 $as_echo "no" >&6; }
16908 fi
16909 
16910 
16911   test -n "$CHECK_TOOLSDIR_MAKE" && break
16912 done
16913 
16914 
16915   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16916   DESCRIPTION="make in tools-dir"
16917   if test "x$MAKE_CANDIDATE" != x; then
16918     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16919 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16920     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16921     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16922     if test "x$IS_GNU_MAKE" = x; then
16923       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16924 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16925     else
16926       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16927       if test "x$IS_MODERN_MAKE" = x; then
16928         { $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
16929 $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;}
16930       else
16931         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16932           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16933             MAKE_EXPECTED_ENV='cygwin'
16934           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16935             MAKE_EXPECTED_ENV='msys'
16936           else
16937             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16938           fi
16939           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16940           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16941         else
16942           # Not relevant for non-Windows
16943           IS_MAKE_CORRECT_ENV=true
16944         fi
16945         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16946           { $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
16947 $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;}
16948         else
16949           FOUND_MAKE=$MAKE_CANDIDATE
16950 
16951   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16952 
16953   # First separate the path from the arguments. This will split at the first
16954   # space.
16955   complete="$FOUND_MAKE"
16956   path="${complete%% *}"
16957   tmp="$complete EOL"
16958   arguments="${tmp#* }"
16959 
16960   # Input might be given as Windows format, start by converting to
16961   # unix format.
16962   new_path=`$CYGPATH -u "$path"`
16963 
16964   # Now try to locate executable using which
16965   new_path=`$WHICH "$new_path" 2> /dev/null`
16966   # bat and cmd files are not always considered executable in cygwin causing which
16967   # to not find them
16968   if test "x$new_path" = x \
16969       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16970       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16971     new_path=`$CYGPATH -u "$path"`
16972   fi
16973   if test "x$new_path" = x; then
16974     # Oops. Which didn't find the executable.
16975     # The splitting of arguments from the executable at a space might have been incorrect,
16976     # since paths with space are more likely in Windows. Give it another try with the whole
16977     # argument.
16978     path="$complete"
16979     arguments="EOL"
16980     new_path=`$CYGPATH -u "$path"`
16981     new_path=`$WHICH "$new_path" 2> /dev/null`
16982     # bat and cmd files are not always considered executable in cygwin causing which
16983     # to not find them
16984     if test "x$new_path" = x \
16985         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16986         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16987       new_path=`$CYGPATH -u "$path"`
16988     fi
16989     if test "x$new_path" = x; then
16990       # It's still not found. Now this is an unrecoverable error.
16991       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16992 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16993       has_space=`$ECHO "$complete" | $GREP " "`
16994       if test "x$has_space" != x; then
16995         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16996 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16997       fi
16998       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16999     fi
17000   fi
17001 
17002   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17003   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17004   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17005   # "foo.exe" is OK but "foo" is an error.
17006   #
17007   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17008   # It is also a way to make sure we got the proper file name for the real test later on.
17009   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17010   if test "x$test_shortpath" = x; then
17011     # Short path failed, file does not exist as specified.
17012     # Try adding .exe or .cmd
17013     if test -f "${new_path}.exe"; then
17014       input_to_shortpath="${new_path}.exe"
17015     elif test -f "${new_path}.cmd"; then
17016       input_to_shortpath="${new_path}.cmd"
17017     else
17018       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17019 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17020       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17021 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17022       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17023     fi
17024   else
17025     input_to_shortpath="$new_path"
17026   fi
17027 
17028   # Call helper function which possibly converts this using DOS-style short mode.
17029   # If so, the updated path is stored in $new_path.
17030   new_path="$input_to_shortpath"
17031 
17032   input_path="$input_to_shortpath"
17033   # Check if we need to convert this using DOS-style short mode. If the path
17034   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17035   # take no chances and rewrite it.
17036   # Note: m4 eats our [], so we need to use [ and ] instead.
17037   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17038   if test "x$has_forbidden_chars" != x; then
17039     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17040     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17041     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17042     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17043       # Going to short mode and back again did indeed matter. Since short mode is
17044       # case insensitive, let's make it lowercase to improve readability.
17045       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17046       # Now convert it back to Unix-style (cygpath)
17047       input_path=`$CYGPATH -u "$shortmode_path"`
17048       new_path="$input_path"
17049     fi
17050   fi
17051 
17052   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17053   if test "x$test_cygdrive_prefix" = x; then
17054     # As a simple fix, exclude /usr/bin since it's not a real path.
17055     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17056       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17057       # a path prefixed by /cygdrive for fixpath to work.
17058       new_path="$CYGWIN_ROOT_PATH$input_path"
17059     fi
17060   fi
17061 
17062   # remove trailing .exe if any
17063   new_path="${new_path/%.exe/}"
17064 
17065   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17066 
17067   # First separate the path from the arguments. This will split at the first
17068   # space.
17069   complete="$FOUND_MAKE"
17070   path="${complete%% *}"
17071   tmp="$complete EOL"
17072   arguments="${tmp#* }"
17073 
17074   # Input might be given as Windows format, start by converting to
17075   # unix format.
17076   new_path="$path"
17077 
17078   windows_path="$new_path"
17079   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17080     unix_path=`$CYGPATH -u "$windows_path"`
17081     new_path="$unix_path"
17082   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17083     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17084     new_path="$unix_path"
17085   fi
17086 
17087 
17088   # Now try to locate executable using which
17089   new_path=`$WHICH "$new_path" 2> /dev/null`
17090 
17091   if test "x$new_path" = x; then
17092     # Oops. Which didn't find the executable.
17093     # The splitting of arguments from the executable at a space might have been incorrect,
17094     # since paths with space are more likely in Windows. Give it another try with the whole
17095     # argument.
17096     path="$complete"
17097     arguments="EOL"
17098     new_path="$path"
17099 
17100   windows_path="$new_path"
17101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17102     unix_path=`$CYGPATH -u "$windows_path"`
17103     new_path="$unix_path"
17104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17105     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17106     new_path="$unix_path"
17107   fi
17108 
17109 
17110     new_path=`$WHICH "$new_path" 2> /dev/null`
17111     # bat and cmd files are not always considered executable in MSYS causing which
17112     # to not find them
17113     if test "x$new_path" = x \
17114         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17115         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17116       new_path="$path"
17117 
17118   windows_path="$new_path"
17119   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17120     unix_path=`$CYGPATH -u "$windows_path"`
17121     new_path="$unix_path"
17122   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17123     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17124     new_path="$unix_path"
17125   fi
17126 
17127     fi
17128 
17129     if test "x$new_path" = x; then
17130       # It's still not found. Now this is an unrecoverable error.
17131       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17132 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17133       has_space=`$ECHO "$complete" | $GREP " "`
17134       if test "x$has_space" != x; then
17135         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17136 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17137       fi
17138       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17139     fi
17140   fi
17141 
17142   # Now new_path has a complete unix path to the binary
17143   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17144     # Keep paths in /bin as-is, but remove trailing .exe if any
17145     new_path="${new_path/%.exe/}"
17146     # Do not save /bin paths to all_fixpath_prefixes!
17147   else
17148     # Not in mixed or Windows style, start by that.
17149     new_path=`cmd //c echo $new_path`
17150 
17151   input_path="$new_path"
17152   # Check if we need to convert this using DOS-style short mode. If the path
17153   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17154   # take no chances and rewrite it.
17155   # Note: m4 eats our [], so we need to use [ and ] instead.
17156   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17157   if test "x$has_forbidden_chars" != x; then
17158     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17159     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17160   fi
17161 
17162     # Output is in $new_path
17163 
17164   windows_path="$new_path"
17165   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17166     unix_path=`$CYGPATH -u "$windows_path"`
17167     new_path="$unix_path"
17168   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17169     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17170     new_path="$unix_path"
17171   fi
17172 
17173     # remove trailing .exe if any
17174     new_path="${new_path/%.exe/}"
17175 
17176     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17177     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17178   fi
17179 
17180   else
17181     # We're on a posix platform. Hooray! :)
17182     # First separate the path from the arguments. This will split at the first
17183     # space.
17184     complete="$FOUND_MAKE"
17185     path="${complete%% *}"
17186     tmp="$complete EOL"
17187     arguments="${tmp#* }"
17188 
17189     # Cannot rely on the command "which" here since it doesn't always work.
17190     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17191     if test -z "$is_absolute_path"; then
17192       # Path to executable is not absolute. Find it.
17193       IFS_save="$IFS"
17194       IFS=:
17195       for p in $PATH; do
17196         if test -f "$p/$path" && test -x "$p/$path"; then
17197           new_path="$p/$path"
17198           break
17199         fi
17200       done
17201       IFS="$IFS_save"
17202     else
17203       # This is an absolute path, we can use it without further modifications.
17204       new_path="$path"
17205     fi
17206 
17207     if test "x$new_path" = x; then
17208       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17209 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17210       has_space=`$ECHO "$complete" | $GREP " "`
17211       if test "x$has_space" != x; then
17212         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17213 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17214       fi
17215       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17216     fi
17217   fi
17218 
17219   # Now join together the path and the arguments once again
17220   if test "x$arguments" != xEOL; then
17221     new_complete="$new_path ${arguments% *}"
17222   else
17223     new_complete="$new_path"
17224   fi
17225 
17226   if test "x$complete" != "x$new_complete"; then
17227     FOUND_MAKE="$new_complete"
17228     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17229 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17230   fi
17231 
17232         fi
17233       fi
17234     fi
17235   fi
17236 
17237         fi
17238         PATH=$OLD_PATH
17239       fi
17240     fi
17241 
17242     if test "x$FOUND_MAKE" = x; then
17243       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
17244     fi
17245   fi
17246 
17247   MAKE=$FOUND_MAKE
17248 
17249   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17250 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17251 
17252 
17253 
17254   # Test if find supports -delete
17255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17256 $as_echo_n "checking if find supports -delete... " >&6; }
17257   FIND_DELETE="-delete"
17258 
17259   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17260 
17261   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17262 
17263   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17264   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17265     # No, it does not.
17266     rm $DELETEDIR/TestIfFindSupportsDelete
17267     FIND_DELETE="-exec rm \{\} \+"
17268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17269 $as_echo "no" >&6; }
17270   else
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17272 $as_echo "yes" >&6; }
17273   fi
17274   rmdir $DELETEDIR
17275 
17276 
17277 
17278   # These tools might not be installed by default,
17279   # need hint on how to install them.
17280 
17281 
17282 
17283   # Publish this variable in the help.
17284 
17285 
17286   if test "x$UNZIP" = x; then
17287     # The variable is not set by user, try to locate tool using the code snippet
17288     for ac_prog in unzip
17289 do
17290   # Extract the first word of "$ac_prog", so it can be a program name with args.
17291 set dummy $ac_prog; ac_word=$2
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17293 $as_echo_n "checking for $ac_word... " >&6; }
17294 if ${ac_cv_path_UNZIP+:} false; then :
17295   $as_echo_n "(cached) " >&6
17296 else
17297   case $UNZIP in
17298   [\\/]* | ?:[\\/]*)
17299   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17300   ;;
17301   *)
17302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17303 for as_dir in $PATH
17304 do
17305   IFS=$as_save_IFS
17306   test -z "$as_dir" && as_dir=.
17307     for ac_exec_ext in '' $ac_executable_extensions; do
17308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17309     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17311     break 2
17312   fi
17313 done
17314   done
17315 IFS=$as_save_IFS
17316 
17317   ;;
17318 esac
17319 fi
17320 UNZIP=$ac_cv_path_UNZIP
17321 if test -n "$UNZIP"; then
17322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17323 $as_echo "$UNZIP" >&6; }
17324 else
17325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17326 $as_echo "no" >&6; }
17327 fi
17328 
17329 
17330   test -n "$UNZIP" && break
17331 done
17332 
17333   else
17334     # The variable is set, but is it from the command line or the environment?
17335 
17336     # Try to remove the string !UNZIP! from our list.
17337     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17338     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17339       # If it failed, the variable was not from the command line. Ignore it,
17340       # but warn the user (except for BASH, which is always set by the calling BASH).
17341       if test "xUNZIP" != xBASH; then
17342         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17343 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17344       fi
17345       # Try to locate tool using the code snippet
17346       for ac_prog in unzip
17347 do
17348   # Extract the first word of "$ac_prog", so it can be a program name with args.
17349 set dummy $ac_prog; ac_word=$2
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17351 $as_echo_n "checking for $ac_word... " >&6; }
17352 if ${ac_cv_path_UNZIP+:} false; then :
17353   $as_echo_n "(cached) " >&6
17354 else
17355   case $UNZIP in
17356   [\\/]* | ?:[\\/]*)
17357   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17358   ;;
17359   *)
17360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17361 for as_dir in $PATH
17362 do
17363   IFS=$as_save_IFS
17364   test -z "$as_dir" && as_dir=.
17365     for ac_exec_ext in '' $ac_executable_extensions; do
17366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17367     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17369     break 2
17370   fi
17371 done
17372   done
17373 IFS=$as_save_IFS
17374 
17375   ;;
17376 esac
17377 fi
17378 UNZIP=$ac_cv_path_UNZIP
17379 if test -n "$UNZIP"; then
17380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17381 $as_echo "$UNZIP" >&6; }
17382 else
17383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17385 fi
17386 
17387 
17388   test -n "$UNZIP" && break
17389 done
17390 
17391     else
17392       # If it succeeded, then it was overridden by the user. We will use it
17393       # for the tool.
17394 
17395       # First remove it from the list of overridden variables, so we can test
17396       # for unknown variables in the end.
17397       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17398 
17399       # Check if the provided tool contains a complete path.
17400       tool_specified="$UNZIP"
17401       tool_basename="${tool_specified##*/}"
17402       if test "x$tool_basename" = "x$tool_specified"; then
17403         # A command without a complete path is provided, search $PATH.
17404         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17405 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17406         # Extract the first word of "$tool_basename", so it can be a program name with args.
17407 set dummy $tool_basename; ac_word=$2
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17409 $as_echo_n "checking for $ac_word... " >&6; }
17410 if ${ac_cv_path_UNZIP+:} false; then :
17411   $as_echo_n "(cached) " >&6
17412 else
17413   case $UNZIP in
17414   [\\/]* | ?:[\\/]*)
17415   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17416   ;;
17417   *)
17418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $PATH
17420 do
17421   IFS=$as_save_IFS
17422   test -z "$as_dir" && as_dir=.
17423     for ac_exec_ext in '' $ac_executable_extensions; do
17424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17427     break 2
17428   fi
17429 done
17430   done
17431 IFS=$as_save_IFS
17432 
17433   ;;
17434 esac
17435 fi
17436 UNZIP=$ac_cv_path_UNZIP
17437 if test -n "$UNZIP"; then
17438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17439 $as_echo "$UNZIP" >&6; }
17440 else
17441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442 $as_echo "no" >&6; }
17443 fi
17444 
17445 
17446         if test "x$UNZIP" = x; then
17447           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17448         fi
17449       else
17450         # Otherwise we believe it is a complete path. Use it as it is.
17451         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17452 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17453         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17454 $as_echo_n "checking for UNZIP... " >&6; }
17455         if test ! -x "$tool_specified"; then
17456           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17457 $as_echo "not found" >&6; }
17458           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17459         fi
17460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17461 $as_echo "$tool_specified" >&6; }
17462       fi
17463     fi
17464   fi
17465 
17466 
17467 
17468   if test "x$UNZIP" = x; then
17469     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17470   fi
17471 
17472 
17473 
17474 
17475 
17476   # Publish this variable in the help.
17477 
17478 
17479   if test "x$ZIP" = x; then
17480     # The variable is not set by user, try to locate tool using the code snippet
17481     for ac_prog in zip
17482 do
17483   # Extract the first word of "$ac_prog", so it can be a program name with args.
17484 set dummy $ac_prog; ac_word=$2
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17486 $as_echo_n "checking for $ac_word... " >&6; }
17487 if ${ac_cv_path_ZIP+:} false; then :
17488   $as_echo_n "(cached) " >&6
17489 else
17490   case $ZIP in
17491   [\\/]* | ?:[\\/]*)
17492   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17493   ;;
17494   *)
17495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17496 for as_dir in $PATH
17497 do
17498   IFS=$as_save_IFS
17499   test -z "$as_dir" && as_dir=.
17500     for ac_exec_ext in '' $ac_executable_extensions; do
17501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17502     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17504     break 2
17505   fi
17506 done
17507   done
17508 IFS=$as_save_IFS
17509 
17510   ;;
17511 esac
17512 fi
17513 ZIP=$ac_cv_path_ZIP
17514 if test -n "$ZIP"; then
17515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17516 $as_echo "$ZIP" >&6; }
17517 else
17518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17519 $as_echo "no" >&6; }
17520 fi
17521 
17522 
17523   test -n "$ZIP" && break
17524 done
17525 
17526   else
17527     # The variable is set, but is it from the command line or the environment?
17528 
17529     # Try to remove the string !ZIP! from our list.
17530     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17531     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17532       # If it failed, the variable was not from the command line. Ignore it,
17533       # but warn the user (except for BASH, which is always set by the calling BASH).
17534       if test "xZIP" != xBASH; then
17535         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17536 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17537       fi
17538       # Try to locate tool using the code snippet
17539       for ac_prog in zip
17540 do
17541   # Extract the first word of "$ac_prog", so it can be a program name with args.
17542 set dummy $ac_prog; ac_word=$2
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17544 $as_echo_n "checking for $ac_word... " >&6; }
17545 if ${ac_cv_path_ZIP+:} false; then :
17546   $as_echo_n "(cached) " >&6
17547 else
17548   case $ZIP in
17549   [\\/]* | ?:[\\/]*)
17550   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17551   ;;
17552   *)
17553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17554 for as_dir in $PATH
17555 do
17556   IFS=$as_save_IFS
17557   test -z "$as_dir" && as_dir=.
17558     for ac_exec_ext in '' $ac_executable_extensions; do
17559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17560     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17562     break 2
17563   fi
17564 done
17565   done
17566 IFS=$as_save_IFS
17567 
17568   ;;
17569 esac
17570 fi
17571 ZIP=$ac_cv_path_ZIP
17572 if test -n "$ZIP"; then
17573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17574 $as_echo "$ZIP" >&6; }
17575 else
17576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577 $as_echo "no" >&6; }
17578 fi
17579 
17580 
17581   test -n "$ZIP" && break
17582 done
17583 
17584     else
17585       # If it succeeded, then it was overridden by the user. We will use it
17586       # for the tool.
17587 
17588       # First remove it from the list of overridden variables, so we can test
17589       # for unknown variables in the end.
17590       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17591 
17592       # Check if the provided tool contains a complete path.
17593       tool_specified="$ZIP"
17594       tool_basename="${tool_specified##*/}"
17595       if test "x$tool_basename" = "x$tool_specified"; then
17596         # A command without a complete path is provided, search $PATH.
17597         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17598 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17599         # Extract the first word of "$tool_basename", so it can be a program name with args.
17600 set dummy $tool_basename; ac_word=$2
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17602 $as_echo_n "checking for $ac_word... " >&6; }
17603 if ${ac_cv_path_ZIP+:} false; then :
17604   $as_echo_n "(cached) " >&6
17605 else
17606   case $ZIP in
17607   [\\/]* | ?:[\\/]*)
17608   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17609   ;;
17610   *)
17611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17612 for as_dir in $PATH
17613 do
17614   IFS=$as_save_IFS
17615   test -z "$as_dir" && as_dir=.
17616     for ac_exec_ext in '' $ac_executable_extensions; do
17617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17618     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17620     break 2
17621   fi
17622 done
17623   done
17624 IFS=$as_save_IFS
17625 
17626   ;;
17627 esac
17628 fi
17629 ZIP=$ac_cv_path_ZIP
17630 if test -n "$ZIP"; then
17631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17632 $as_echo "$ZIP" >&6; }
17633 else
17634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17635 $as_echo "no" >&6; }
17636 fi
17637 
17638 
17639         if test "x$ZIP" = x; then
17640           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17641         fi
17642       else
17643         # Otherwise we believe it is a complete path. Use it as it is.
17644         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17645 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17646         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17647 $as_echo_n "checking for ZIP... " >&6; }
17648         if test ! -x "$tool_specified"; then
17649           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17650 $as_echo "not found" >&6; }
17651           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17652         fi
17653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17654 $as_echo "$tool_specified" >&6; }
17655       fi
17656     fi
17657   fi
17658 
17659 
17660 
17661   if test "x$ZIP" = x; then
17662     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17663   fi
17664 
17665 
17666 
17667   # Non-required basic tools
17668 
17669 
17670 
17671   # Publish this variable in the help.
17672 
17673 
17674   if test "x$LDD" = x; then
17675     # The variable is not set by user, try to locate tool using the code snippet
17676     for ac_prog in ldd
17677 do
17678   # Extract the first word of "$ac_prog", so it can be a program name with args.
17679 set dummy $ac_prog; ac_word=$2
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17681 $as_echo_n "checking for $ac_word... " >&6; }
17682 if ${ac_cv_path_LDD+:} false; then :
17683   $as_echo_n "(cached) " >&6
17684 else
17685   case $LDD in
17686   [\\/]* | ?:[\\/]*)
17687   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17688   ;;
17689   *)
17690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17691 for as_dir in $PATH
17692 do
17693   IFS=$as_save_IFS
17694   test -z "$as_dir" && as_dir=.
17695     for ac_exec_ext in '' $ac_executable_extensions; do
17696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17697     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17699     break 2
17700   fi
17701 done
17702   done
17703 IFS=$as_save_IFS
17704 
17705   ;;
17706 esac
17707 fi
17708 LDD=$ac_cv_path_LDD
17709 if test -n "$LDD"; then
17710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17711 $as_echo "$LDD" >&6; }
17712 else
17713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 $as_echo "no" >&6; }
17715 fi
17716 
17717 
17718   test -n "$LDD" && break
17719 done
17720 
17721   else
17722     # The variable is set, but is it from the command line or the environment?
17723 
17724     # Try to remove the string !LDD! from our list.
17725     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17726     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17727       # If it failed, the variable was not from the command line. Ignore it,
17728       # but warn the user (except for BASH, which is always set by the calling BASH).
17729       if test "xLDD" != xBASH; then
17730         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17731 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17732       fi
17733       # Try to locate tool using the code snippet
17734       for ac_prog in ldd
17735 do
17736   # Extract the first word of "$ac_prog", so it can be a program name with args.
17737 set dummy $ac_prog; ac_word=$2
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17739 $as_echo_n "checking for $ac_word... " >&6; }
17740 if ${ac_cv_path_LDD+:} false; then :
17741   $as_echo_n "(cached) " >&6
17742 else
17743   case $LDD in
17744   [\\/]* | ?:[\\/]*)
17745   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17746   ;;
17747   *)
17748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17750 do
17751   IFS=$as_save_IFS
17752   test -z "$as_dir" && as_dir=.
17753     for ac_exec_ext in '' $ac_executable_extensions; do
17754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17755     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17757     break 2
17758   fi
17759 done
17760   done
17761 IFS=$as_save_IFS
17762 
17763   ;;
17764 esac
17765 fi
17766 LDD=$ac_cv_path_LDD
17767 if test -n "$LDD"; then
17768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17769 $as_echo "$LDD" >&6; }
17770 else
17771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772 $as_echo "no" >&6; }
17773 fi
17774 
17775 
17776   test -n "$LDD" && break
17777 done
17778 
17779     else
17780       # If it succeeded, then it was overridden by the user. We will use it
17781       # for the tool.
17782 
17783       # First remove it from the list of overridden variables, so we can test
17784       # for unknown variables in the end.
17785       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17786 
17787       # Check if the provided tool contains a complete path.
17788       tool_specified="$LDD"
17789       tool_basename="${tool_specified##*/}"
17790       if test "x$tool_basename" = "x$tool_specified"; then
17791         # A command without a complete path is provided, search $PATH.
17792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17793 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17794         # Extract the first word of "$tool_basename", so it can be a program name with args.
17795 set dummy $tool_basename; ac_word=$2
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17797 $as_echo_n "checking for $ac_word... " >&6; }
17798 if ${ac_cv_path_LDD+:} false; then :
17799   $as_echo_n "(cached) " >&6
17800 else
17801   case $LDD in
17802   [\\/]* | ?:[\\/]*)
17803   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17804   ;;
17805   *)
17806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17807 for as_dir in $PATH
17808 do
17809   IFS=$as_save_IFS
17810   test -z "$as_dir" && as_dir=.
17811     for ac_exec_ext in '' $ac_executable_extensions; do
17812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17813     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17815     break 2
17816   fi
17817 done
17818   done
17819 IFS=$as_save_IFS
17820 
17821   ;;
17822 esac
17823 fi
17824 LDD=$ac_cv_path_LDD
17825 if test -n "$LDD"; then
17826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17827 $as_echo "$LDD" >&6; }
17828 else
17829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17831 fi
17832 
17833 
17834         if test "x$LDD" = x; then
17835           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17836         fi
17837       else
17838         # Otherwise we believe it is a complete path. Use it as it is.
17839         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17840 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17842 $as_echo_n "checking for LDD... " >&6; }
17843         if test ! -x "$tool_specified"; then
17844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17845 $as_echo "not found" >&6; }
17846           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17847         fi
17848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17849 $as_echo "$tool_specified" >&6; }
17850       fi
17851     fi
17852   fi
17853 
17854 
17855   if test "x$LDD" = "x"; then
17856     # List shared lib dependencies is used for
17857     # debug output and checking for forbidden dependencies.
17858     # We can build without it.
17859     LDD="true"
17860   fi
17861 
17862 
17863   # Publish this variable in the help.
17864 
17865 
17866   if test "x$READELF" = x; then
17867     # The variable is not set by user, try to locate tool using the code snippet
17868     for ac_prog in readelf greadelf
17869 do
17870   # Extract the first word of "$ac_prog", so it can be a program name with args.
17871 set dummy $ac_prog; ac_word=$2
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17873 $as_echo_n "checking for $ac_word... " >&6; }
17874 if ${ac_cv_path_READELF+:} false; then :
17875   $as_echo_n "(cached) " >&6
17876 else
17877   case $READELF in
17878   [\\/]* | ?:[\\/]*)
17879   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17880   ;;
17881   *)
17882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17883 for as_dir in $PATH
17884 do
17885   IFS=$as_save_IFS
17886   test -z "$as_dir" && as_dir=.
17887     for ac_exec_ext in '' $ac_executable_extensions; do
17888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17889     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17891     break 2
17892   fi
17893 done
17894   done
17895 IFS=$as_save_IFS
17896 
17897   ;;
17898 esac
17899 fi
17900 READELF=$ac_cv_path_READELF
17901 if test -n "$READELF"; then
17902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17903 $as_echo "$READELF" >&6; }
17904 else
17905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17906 $as_echo "no" >&6; }
17907 fi
17908 
17909 
17910   test -n "$READELF" && break
17911 done
17912 
17913   else
17914     # The variable is set, but is it from the command line or the environment?
17915 
17916     # Try to remove the string !READELF! from our list.
17917     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17918     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17919       # If it failed, the variable was not from the command line. Ignore it,
17920       # but warn the user (except for BASH, which is always set by the calling BASH).
17921       if test "xREADELF" != xBASH; then
17922         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17923 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17924       fi
17925       # Try to locate tool using the code snippet
17926       for ac_prog in readelf greadelf
17927 do
17928   # Extract the first word of "$ac_prog", so it can be a program name with args.
17929 set dummy $ac_prog; ac_word=$2
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17931 $as_echo_n "checking for $ac_word... " >&6; }
17932 if ${ac_cv_path_READELF+:} false; then :
17933   $as_echo_n "(cached) " >&6
17934 else
17935   case $READELF in
17936   [\\/]* | ?:[\\/]*)
17937   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17938   ;;
17939   *)
17940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17941 for as_dir in $PATH
17942 do
17943   IFS=$as_save_IFS
17944   test -z "$as_dir" && as_dir=.
17945     for ac_exec_ext in '' $ac_executable_extensions; do
17946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17947     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17949     break 2
17950   fi
17951 done
17952   done
17953 IFS=$as_save_IFS
17954 
17955   ;;
17956 esac
17957 fi
17958 READELF=$ac_cv_path_READELF
17959 if test -n "$READELF"; then
17960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17961 $as_echo "$READELF" >&6; }
17962 else
17963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964 $as_echo "no" >&6; }
17965 fi
17966 
17967 
17968   test -n "$READELF" && break
17969 done
17970 
17971     else
17972       # If it succeeded, then it was overridden by the user. We will use it
17973       # for the tool.
17974 
17975       # First remove it from the list of overridden variables, so we can test
17976       # for unknown variables in the end.
17977       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17978 
17979       # Check if the provided tool contains a complete path.
17980       tool_specified="$READELF"
17981       tool_basename="${tool_specified##*/}"
17982       if test "x$tool_basename" = "x$tool_specified"; then
17983         # A command without a complete path is provided, search $PATH.
17984         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17985 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17986         # Extract the first word of "$tool_basename", so it can be a program name with args.
17987 set dummy $tool_basename; ac_word=$2
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17989 $as_echo_n "checking for $ac_word... " >&6; }
17990 if ${ac_cv_path_READELF+:} false; then :
17991   $as_echo_n "(cached) " >&6
17992 else
17993   case $READELF in
17994   [\\/]* | ?:[\\/]*)
17995   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17996   ;;
17997   *)
17998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17999 for as_dir in $PATH
18000 do
18001   IFS=$as_save_IFS
18002   test -z "$as_dir" && as_dir=.
18003     for ac_exec_ext in '' $ac_executable_extensions; do
18004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18005     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18007     break 2
18008   fi
18009 done
18010   done
18011 IFS=$as_save_IFS
18012 
18013   ;;
18014 esac
18015 fi
18016 READELF=$ac_cv_path_READELF
18017 if test -n "$READELF"; then
18018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18019 $as_echo "$READELF" >&6; }
18020 else
18021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18022 $as_echo "no" >&6; }
18023 fi
18024 
18025 
18026         if test "x$READELF" = x; then
18027           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18028         fi
18029       else
18030         # Otherwise we believe it is a complete path. Use it as it is.
18031         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18032 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18034 $as_echo_n "checking for READELF... " >&6; }
18035         if test ! -x "$tool_specified"; then
18036           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18037 $as_echo "not found" >&6; }
18038           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18039         fi
18040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18041 $as_echo "$tool_specified" >&6; }
18042       fi
18043     fi
18044   fi
18045 
18046 
18047 
18048 
18049   # Publish this variable in the help.
18050 
18051 
18052   if test "x$HG" = x; then
18053     # The variable is not set by user, try to locate tool using the code snippet
18054     for ac_prog in hg
18055 do
18056   # Extract the first word of "$ac_prog", so it can be a program name with args.
18057 set dummy $ac_prog; ac_word=$2
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18059 $as_echo_n "checking for $ac_word... " >&6; }
18060 if ${ac_cv_path_HG+:} false; then :
18061   $as_echo_n "(cached) " >&6
18062 else
18063   case $HG in
18064   [\\/]* | ?:[\\/]*)
18065   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18066   ;;
18067   *)
18068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18069 for as_dir in $PATH
18070 do
18071   IFS=$as_save_IFS
18072   test -z "$as_dir" && as_dir=.
18073     for ac_exec_ext in '' $ac_executable_extensions; do
18074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18075     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18077     break 2
18078   fi
18079 done
18080   done
18081 IFS=$as_save_IFS
18082 
18083   ;;
18084 esac
18085 fi
18086 HG=$ac_cv_path_HG
18087 if test -n "$HG"; then
18088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18089 $as_echo "$HG" >&6; }
18090 else
18091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18092 $as_echo "no" >&6; }
18093 fi
18094 
18095 
18096   test -n "$HG" && break
18097 done
18098 
18099   else
18100     # The variable is set, but is it from the command line or the environment?
18101 
18102     # Try to remove the string !HG! from our list.
18103     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18104     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18105       # If it failed, the variable was not from the command line. Ignore it,
18106       # but warn the user (except for BASH, which is always set by the calling BASH).
18107       if test "xHG" != xBASH; then
18108         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18109 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18110       fi
18111       # Try to locate tool using the code snippet
18112       for ac_prog in hg
18113 do
18114   # Extract the first word of "$ac_prog", so it can be a program name with args.
18115 set dummy $ac_prog; ac_word=$2
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117 $as_echo_n "checking for $ac_word... " >&6; }
18118 if ${ac_cv_path_HG+:} false; then :
18119   $as_echo_n "(cached) " >&6
18120 else
18121   case $HG in
18122   [\\/]* | ?:[\\/]*)
18123   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18124   ;;
18125   *)
18126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18127 for as_dir in $PATH
18128 do
18129   IFS=$as_save_IFS
18130   test -z "$as_dir" && as_dir=.
18131     for ac_exec_ext in '' $ac_executable_extensions; do
18132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18133     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18135     break 2
18136   fi
18137 done
18138   done
18139 IFS=$as_save_IFS
18140 
18141   ;;
18142 esac
18143 fi
18144 HG=$ac_cv_path_HG
18145 if test -n "$HG"; then
18146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18147 $as_echo "$HG" >&6; }
18148 else
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150 $as_echo "no" >&6; }
18151 fi
18152 
18153 
18154   test -n "$HG" && break
18155 done
18156 
18157     else
18158       # If it succeeded, then it was overridden by the user. We will use it
18159       # for the tool.
18160 
18161       # First remove it from the list of overridden variables, so we can test
18162       # for unknown variables in the end.
18163       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18164 
18165       # Check if the provided tool contains a complete path.
18166       tool_specified="$HG"
18167       tool_basename="${tool_specified##*/}"
18168       if test "x$tool_basename" = "x$tool_specified"; then
18169         # A command without a complete path is provided, search $PATH.
18170         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18171 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18172         # Extract the first word of "$tool_basename", so it can be a program name with args.
18173 set dummy $tool_basename; ac_word=$2
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18175 $as_echo_n "checking for $ac_word... " >&6; }
18176 if ${ac_cv_path_HG+:} false; then :
18177   $as_echo_n "(cached) " >&6
18178 else
18179   case $HG in
18180   [\\/]* | ?:[\\/]*)
18181   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18182   ;;
18183   *)
18184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185 for as_dir in $PATH
18186 do
18187   IFS=$as_save_IFS
18188   test -z "$as_dir" && as_dir=.
18189     for ac_exec_ext in '' $ac_executable_extensions; do
18190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18193     break 2
18194   fi
18195 done
18196   done
18197 IFS=$as_save_IFS
18198 
18199   ;;
18200 esac
18201 fi
18202 HG=$ac_cv_path_HG
18203 if test -n "$HG"; then
18204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18205 $as_echo "$HG" >&6; }
18206 else
18207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208 $as_echo "no" >&6; }
18209 fi
18210 
18211 
18212         if test "x$HG" = x; then
18213           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18214         fi
18215       else
18216         # Otherwise we believe it is a complete path. Use it as it is.
18217         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18218 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18220 $as_echo_n "checking for HG... " >&6; }
18221         if test ! -x "$tool_specified"; then
18222           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18223 $as_echo "not found" >&6; }
18224           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18225         fi
18226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18227 $as_echo "$tool_specified" >&6; }
18228       fi
18229     fi
18230   fi
18231 
18232 
18233 
18234 
18235   # Publish this variable in the help.
18236 
18237 
18238   if test "x$STAT" = x; then
18239     # The variable is not set by user, try to locate tool using the code snippet
18240     for ac_prog in stat
18241 do
18242   # Extract the first word of "$ac_prog", so it can be a program name with args.
18243 set dummy $ac_prog; ac_word=$2
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18245 $as_echo_n "checking for $ac_word... " >&6; }
18246 if ${ac_cv_path_STAT+:} false; then :
18247   $as_echo_n "(cached) " >&6
18248 else
18249   case $STAT in
18250   [\\/]* | ?:[\\/]*)
18251   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18252   ;;
18253   *)
18254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18255 for as_dir in $PATH
18256 do
18257   IFS=$as_save_IFS
18258   test -z "$as_dir" && as_dir=.
18259     for ac_exec_ext in '' $ac_executable_extensions; do
18260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18261     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18263     break 2
18264   fi
18265 done
18266   done
18267 IFS=$as_save_IFS
18268 
18269   ;;
18270 esac
18271 fi
18272 STAT=$ac_cv_path_STAT
18273 if test -n "$STAT"; then
18274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18275 $as_echo "$STAT" >&6; }
18276 else
18277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18278 $as_echo "no" >&6; }
18279 fi
18280 
18281 
18282   test -n "$STAT" && break
18283 done
18284 
18285   else
18286     # The variable is set, but is it from the command line or the environment?
18287 
18288     # Try to remove the string !STAT! from our list.
18289     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18290     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18291       # If it failed, the variable was not from the command line. Ignore it,
18292       # but warn the user (except for BASH, which is always set by the calling BASH).
18293       if test "xSTAT" != xBASH; then
18294         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18295 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18296       fi
18297       # Try to locate tool using the code snippet
18298       for ac_prog in stat
18299 do
18300   # Extract the first word of "$ac_prog", so it can be a program name with args.
18301 set dummy $ac_prog; ac_word=$2
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18303 $as_echo_n "checking for $ac_word... " >&6; }
18304 if ${ac_cv_path_STAT+:} false; then :
18305   $as_echo_n "(cached) " >&6
18306 else
18307   case $STAT in
18308   [\\/]* | ?:[\\/]*)
18309   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18310   ;;
18311   *)
18312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18314 do
18315   IFS=$as_save_IFS
18316   test -z "$as_dir" && as_dir=.
18317     for ac_exec_ext in '' $ac_executable_extensions; do
18318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18319     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18321     break 2
18322   fi
18323 done
18324   done
18325 IFS=$as_save_IFS
18326 
18327   ;;
18328 esac
18329 fi
18330 STAT=$ac_cv_path_STAT
18331 if test -n "$STAT"; then
18332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18333 $as_echo "$STAT" >&6; }
18334 else
18335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18336 $as_echo "no" >&6; }
18337 fi
18338 
18339 
18340   test -n "$STAT" && break
18341 done
18342 
18343     else
18344       # If it succeeded, then it was overridden by the user. We will use it
18345       # for the tool.
18346 
18347       # First remove it from the list of overridden variables, so we can test
18348       # for unknown variables in the end.
18349       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18350 
18351       # Check if the provided tool contains a complete path.
18352       tool_specified="$STAT"
18353       tool_basename="${tool_specified##*/}"
18354       if test "x$tool_basename" = "x$tool_specified"; then
18355         # A command without a complete path is provided, search $PATH.
18356         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18357 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18358         # Extract the first word of "$tool_basename", so it can be a program name with args.
18359 set dummy $tool_basename; ac_word=$2
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18361 $as_echo_n "checking for $ac_word... " >&6; }
18362 if ${ac_cv_path_STAT+:} false; then :
18363   $as_echo_n "(cached) " >&6
18364 else
18365   case $STAT in
18366   [\\/]* | ?:[\\/]*)
18367   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18368   ;;
18369   *)
18370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18371 for as_dir in $PATH
18372 do
18373   IFS=$as_save_IFS
18374   test -z "$as_dir" && as_dir=.
18375     for ac_exec_ext in '' $ac_executable_extensions; do
18376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18377     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18379     break 2
18380   fi
18381 done
18382   done
18383 IFS=$as_save_IFS
18384 
18385   ;;
18386 esac
18387 fi
18388 STAT=$ac_cv_path_STAT
18389 if test -n "$STAT"; then
18390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18391 $as_echo "$STAT" >&6; }
18392 else
18393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394 $as_echo "no" >&6; }
18395 fi
18396 
18397 
18398         if test "x$STAT" = x; then
18399           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18400         fi
18401       else
18402         # Otherwise we believe it is a complete path. Use it as it is.
18403         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18404 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18406 $as_echo_n "checking for STAT... " >&6; }
18407         if test ! -x "$tool_specified"; then
18408           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18409 $as_echo "not found" >&6; }
18410           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18411         fi
18412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18413 $as_echo "$tool_specified" >&6; }
18414       fi
18415     fi
18416   fi
18417 
18418 
18419 
18420 
18421   # Publish this variable in the help.
18422 
18423 
18424   if test "x$TIME" = x; then
18425     # The variable is not set by user, try to locate tool using the code snippet
18426     for ac_prog in time
18427 do
18428   # Extract the first word of "$ac_prog", so it can be a program name with args.
18429 set dummy $ac_prog; ac_word=$2
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18431 $as_echo_n "checking for $ac_word... " >&6; }
18432 if ${ac_cv_path_TIME+:} false; then :
18433   $as_echo_n "(cached) " >&6
18434 else
18435   case $TIME in
18436   [\\/]* | ?:[\\/]*)
18437   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18438   ;;
18439   *)
18440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18441 for as_dir in $PATH
18442 do
18443   IFS=$as_save_IFS
18444   test -z "$as_dir" && as_dir=.
18445     for ac_exec_ext in '' $ac_executable_extensions; do
18446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18447     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18449     break 2
18450   fi
18451 done
18452   done
18453 IFS=$as_save_IFS
18454 
18455   ;;
18456 esac
18457 fi
18458 TIME=$ac_cv_path_TIME
18459 if test -n "$TIME"; then
18460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18461 $as_echo "$TIME" >&6; }
18462 else
18463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464 $as_echo "no" >&6; }
18465 fi
18466 
18467 
18468   test -n "$TIME" && break
18469 done
18470 
18471   else
18472     # The variable is set, but is it from the command line or the environment?
18473 
18474     # Try to remove the string !TIME! from our list.
18475     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18476     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18477       # If it failed, the variable was not from the command line. Ignore it,
18478       # but warn the user (except for BASH, which is always set by the calling BASH).
18479       if test "xTIME" != xBASH; then
18480         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18481 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18482       fi
18483       # Try to locate tool using the code snippet
18484       for ac_prog in time
18485 do
18486   # Extract the first word of "$ac_prog", so it can be a program name with args.
18487 set dummy $ac_prog; ac_word=$2
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18489 $as_echo_n "checking for $ac_word... " >&6; }
18490 if ${ac_cv_path_TIME+:} false; then :
18491   $as_echo_n "(cached) " >&6
18492 else
18493   case $TIME in
18494   [\\/]* | ?:[\\/]*)
18495   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18496   ;;
18497   *)
18498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18499 for as_dir in $PATH
18500 do
18501   IFS=$as_save_IFS
18502   test -z "$as_dir" && as_dir=.
18503     for ac_exec_ext in '' $ac_executable_extensions; do
18504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18505     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18507     break 2
18508   fi
18509 done
18510   done
18511 IFS=$as_save_IFS
18512 
18513   ;;
18514 esac
18515 fi
18516 TIME=$ac_cv_path_TIME
18517 if test -n "$TIME"; then
18518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18519 $as_echo "$TIME" >&6; }
18520 else
18521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18523 fi
18524 
18525 
18526   test -n "$TIME" && break
18527 done
18528 
18529     else
18530       # If it succeeded, then it was overridden by the user. We will use it
18531       # for the tool.
18532 
18533       # First remove it from the list of overridden variables, so we can test
18534       # for unknown variables in the end.
18535       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18536 
18537       # Check if the provided tool contains a complete path.
18538       tool_specified="$TIME"
18539       tool_basename="${tool_specified##*/}"
18540       if test "x$tool_basename" = "x$tool_specified"; then
18541         # A command without a complete path is provided, search $PATH.
18542         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18543 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18544         # Extract the first word of "$tool_basename", so it can be a program name with args.
18545 set dummy $tool_basename; ac_word=$2
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18547 $as_echo_n "checking for $ac_word... " >&6; }
18548 if ${ac_cv_path_TIME+:} false; then :
18549   $as_echo_n "(cached) " >&6
18550 else
18551   case $TIME in
18552   [\\/]* | ?:[\\/]*)
18553   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18554   ;;
18555   *)
18556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18557 for as_dir in $PATH
18558 do
18559   IFS=$as_save_IFS
18560   test -z "$as_dir" && as_dir=.
18561     for ac_exec_ext in '' $ac_executable_extensions; do
18562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18563     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18565     break 2
18566   fi
18567 done
18568   done
18569 IFS=$as_save_IFS
18570 
18571   ;;
18572 esac
18573 fi
18574 TIME=$ac_cv_path_TIME
18575 if test -n "$TIME"; then
18576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18577 $as_echo "$TIME" >&6; }
18578 else
18579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18581 fi
18582 
18583 
18584         if test "x$TIME" = x; then
18585           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18586         fi
18587       else
18588         # Otherwise we believe it is a complete path. Use it as it is.
18589         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18590 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18591         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18592 $as_echo_n "checking for TIME... " >&6; }
18593         if test ! -x "$tool_specified"; then
18594           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18595 $as_echo "not found" >&6; }
18596           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18597         fi
18598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18599 $as_echo "$tool_specified" >&6; }
18600       fi
18601     fi
18602   fi
18603 
18604 
18605   # Check if it's GNU time
18606   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18607   if test "x$IS_GNU_TIME" != x; then
18608     IS_GNU_TIME=yes
18609   else
18610     IS_GNU_TIME=no
18611   fi
18612 
18613 
18614   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18615 
18616 
18617 
18618   # Publish this variable in the help.
18619 
18620 
18621   if test "x$COMM" = x; then
18622     # The variable is not set by user, try to locate tool using the code snippet
18623     for ac_prog in comm
18624 do
18625   # Extract the first word of "$ac_prog", so it can be a program name with args.
18626 set dummy $ac_prog; ac_word=$2
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18628 $as_echo_n "checking for $ac_word... " >&6; }
18629 if ${ac_cv_path_COMM+:} false; then :
18630   $as_echo_n "(cached) " >&6
18631 else
18632   case $COMM in
18633   [\\/]* | ?:[\\/]*)
18634   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18635   ;;
18636   *)
18637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18638 for as_dir in $PATH
18639 do
18640   IFS=$as_save_IFS
18641   test -z "$as_dir" && as_dir=.
18642     for ac_exec_ext in '' $ac_executable_extensions; do
18643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18644     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18646     break 2
18647   fi
18648 done
18649   done
18650 IFS=$as_save_IFS
18651 
18652   ;;
18653 esac
18654 fi
18655 COMM=$ac_cv_path_COMM
18656 if test -n "$COMM"; then
18657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18658 $as_echo "$COMM" >&6; }
18659 else
18660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661 $as_echo "no" >&6; }
18662 fi
18663 
18664 
18665   test -n "$COMM" && break
18666 done
18667 
18668   else
18669     # The variable is set, but is it from the command line or the environment?
18670 
18671     # Try to remove the string !COMM! from our list.
18672     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18673     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18674       # If it failed, the variable was not from the command line. Ignore it,
18675       # but warn the user (except for BASH, which is always set by the calling BASH).
18676       if test "xCOMM" != xBASH; then
18677         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18678 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18679       fi
18680       # Try to locate tool using the code snippet
18681       for ac_prog in comm
18682 do
18683   # Extract the first word of "$ac_prog", so it can be a program name with args.
18684 set dummy $ac_prog; ac_word=$2
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18686 $as_echo_n "checking for $ac_word... " >&6; }
18687 if ${ac_cv_path_COMM+:} false; then :
18688   $as_echo_n "(cached) " >&6
18689 else
18690   case $COMM in
18691   [\\/]* | ?:[\\/]*)
18692   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18693   ;;
18694   *)
18695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696 for as_dir in $PATH
18697 do
18698   IFS=$as_save_IFS
18699   test -z "$as_dir" && as_dir=.
18700     for ac_exec_ext in '' $ac_executable_extensions; do
18701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18704     break 2
18705   fi
18706 done
18707   done
18708 IFS=$as_save_IFS
18709 
18710   ;;
18711 esac
18712 fi
18713 COMM=$ac_cv_path_COMM
18714 if test -n "$COMM"; then
18715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18716 $as_echo "$COMM" >&6; }
18717 else
18718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18719 $as_echo "no" >&6; }
18720 fi
18721 
18722 
18723   test -n "$COMM" && break
18724 done
18725 
18726     else
18727       # If it succeeded, then it was overridden by the user. We will use it
18728       # for the tool.
18729 
18730       # First remove it from the list of overridden variables, so we can test
18731       # for unknown variables in the end.
18732       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18733 
18734       # Check if the provided tool contains a complete path.
18735       tool_specified="$COMM"
18736       tool_basename="${tool_specified##*/}"
18737       if test "x$tool_basename" = "x$tool_specified"; then
18738         # A command without a complete path is provided, search $PATH.
18739         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18740 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18741         # Extract the first word of "$tool_basename", so it can be a program name with args.
18742 set dummy $tool_basename; ac_word=$2
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18744 $as_echo_n "checking for $ac_word... " >&6; }
18745 if ${ac_cv_path_COMM+:} false; then :
18746   $as_echo_n "(cached) " >&6
18747 else
18748   case $COMM in
18749   [\\/]* | ?:[\\/]*)
18750   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18751   ;;
18752   *)
18753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754 for as_dir in $PATH
18755 do
18756   IFS=$as_save_IFS
18757   test -z "$as_dir" && as_dir=.
18758     for ac_exec_ext in '' $ac_executable_extensions; do
18759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18762     break 2
18763   fi
18764 done
18765   done
18766 IFS=$as_save_IFS
18767 
18768   ;;
18769 esac
18770 fi
18771 COMM=$ac_cv_path_COMM
18772 if test -n "$COMM"; then
18773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18774 $as_echo "$COMM" >&6; }
18775 else
18776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18777 $as_echo "no" >&6; }
18778 fi
18779 
18780 
18781         if test "x$COMM" = x; then
18782           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18783         fi
18784       else
18785         # Otherwise we believe it is a complete path. Use it as it is.
18786         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18787 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18789 $as_echo_n "checking for COMM... " >&6; }
18790         if test ! -x "$tool_specified"; then
18791           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18792 $as_echo "not found" >&6; }
18793           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18794         fi
18795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18796 $as_echo "$tool_specified" >&6; }
18797       fi
18798     fi
18799   fi
18800 
18801 
18802 
18803   if test "x$COMM" = x; then
18804     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18805   fi
18806 
18807 
18808   fi
18809 
18810   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18811 
18812 
18813 
18814   # Publish this variable in the help.
18815 
18816 
18817   if test "x$DSYMUTIL" = x; then
18818     # The variable is not set by user, try to locate tool using the code snippet
18819     for ac_prog in dsymutil
18820 do
18821   # Extract the first word of "$ac_prog", so it can be a program name with args.
18822 set dummy $ac_prog; ac_word=$2
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18824 $as_echo_n "checking for $ac_word... " >&6; }
18825 if ${ac_cv_path_DSYMUTIL+:} false; then :
18826   $as_echo_n "(cached) " >&6
18827 else
18828   case $DSYMUTIL in
18829   [\\/]* | ?:[\\/]*)
18830   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18831   ;;
18832   *)
18833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18834 for as_dir in $PATH
18835 do
18836   IFS=$as_save_IFS
18837   test -z "$as_dir" && as_dir=.
18838     for ac_exec_ext in '' $ac_executable_extensions; do
18839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18840     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18842     break 2
18843   fi
18844 done
18845   done
18846 IFS=$as_save_IFS
18847 
18848   ;;
18849 esac
18850 fi
18851 DSYMUTIL=$ac_cv_path_DSYMUTIL
18852 if test -n "$DSYMUTIL"; then
18853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18854 $as_echo "$DSYMUTIL" >&6; }
18855 else
18856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18858 fi
18859 
18860 
18861   test -n "$DSYMUTIL" && break
18862 done
18863 
18864   else
18865     # The variable is set, but is it from the command line or the environment?
18866 
18867     # Try to remove the string !DSYMUTIL! from our list.
18868     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18869     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18870       # If it failed, the variable was not from the command line. Ignore it,
18871       # but warn the user (except for BASH, which is always set by the calling BASH).
18872       if test "xDSYMUTIL" != xBASH; then
18873         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18874 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18875       fi
18876       # Try to locate tool using the code snippet
18877       for ac_prog in dsymutil
18878 do
18879   # Extract the first word of "$ac_prog", so it can be a program name with args.
18880 set dummy $ac_prog; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if ${ac_cv_path_DSYMUTIL+:} false; then :
18884   $as_echo_n "(cached) " >&6
18885 else
18886   case $DSYMUTIL in
18887   [\\/]* | ?:[\\/]*)
18888   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18889   ;;
18890   *)
18891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894   IFS=$as_save_IFS
18895   test -z "$as_dir" && as_dir=.
18896     for ac_exec_ext in '' $ac_executable_extensions; do
18897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18898     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18900     break 2
18901   fi
18902 done
18903   done
18904 IFS=$as_save_IFS
18905 
18906   ;;
18907 esac
18908 fi
18909 DSYMUTIL=$ac_cv_path_DSYMUTIL
18910 if test -n "$DSYMUTIL"; then
18911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18912 $as_echo "$DSYMUTIL" >&6; }
18913 else
18914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18915 $as_echo "no" >&6; }
18916 fi
18917 
18918 
18919   test -n "$DSYMUTIL" && break
18920 done
18921 
18922     else
18923       # If it succeeded, then it was overridden by the user. We will use it
18924       # for the tool.
18925 
18926       # First remove it from the list of overridden variables, so we can test
18927       # for unknown variables in the end.
18928       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18929 
18930       # Check if the provided tool contains a complete path.
18931       tool_specified="$DSYMUTIL"
18932       tool_basename="${tool_specified##*/}"
18933       if test "x$tool_basename" = "x$tool_specified"; then
18934         # A command without a complete path is provided, search $PATH.
18935         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18936 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18937         # Extract the first word of "$tool_basename", so it can be a program name with args.
18938 set dummy $tool_basename; ac_word=$2
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18940 $as_echo_n "checking for $ac_word... " >&6; }
18941 if ${ac_cv_path_DSYMUTIL+:} false; then :
18942   $as_echo_n "(cached) " >&6
18943 else
18944   case $DSYMUTIL in
18945   [\\/]* | ?:[\\/]*)
18946   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18947   ;;
18948   *)
18949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18950 for as_dir in $PATH
18951 do
18952   IFS=$as_save_IFS
18953   test -z "$as_dir" && as_dir=.
18954     for ac_exec_ext in '' $ac_executable_extensions; do
18955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18956     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18958     break 2
18959   fi
18960 done
18961   done
18962 IFS=$as_save_IFS
18963 
18964   ;;
18965 esac
18966 fi
18967 DSYMUTIL=$ac_cv_path_DSYMUTIL
18968 if test -n "$DSYMUTIL"; then
18969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18970 $as_echo "$DSYMUTIL" >&6; }
18971 else
18972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 $as_echo "no" >&6; }
18974 fi
18975 
18976 
18977         if test "x$DSYMUTIL" = x; then
18978           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18979         fi
18980       else
18981         # Otherwise we believe it is a complete path. Use it as it is.
18982         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18983 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18985 $as_echo_n "checking for DSYMUTIL... " >&6; }
18986         if test ! -x "$tool_specified"; then
18987           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18988 $as_echo "not found" >&6; }
18989           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18990         fi
18991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18992 $as_echo "$tool_specified" >&6; }
18993       fi
18994     fi
18995   fi
18996 
18997 
18998 
18999   if test "x$DSYMUTIL" = x; then
19000     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
19001   fi
19002 
19003 
19004 
19005 
19006 
19007   # Publish this variable in the help.
19008 
19009 
19010   if test "x$XATTR" = x; then
19011     # The variable is not set by user, try to locate tool using the code snippet
19012     for ac_prog in xattr
19013 do
19014   # Extract the first word of "$ac_prog", so it can be a program name with args.
19015 set dummy $ac_prog; ac_word=$2
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19017 $as_echo_n "checking for $ac_word... " >&6; }
19018 if ${ac_cv_path_XATTR+:} false; then :
19019   $as_echo_n "(cached) " >&6
19020 else
19021   case $XATTR in
19022   [\\/]* | ?:[\\/]*)
19023   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19024   ;;
19025   *)
19026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027 for as_dir in $PATH
19028 do
19029   IFS=$as_save_IFS
19030   test -z "$as_dir" && as_dir=.
19031     for ac_exec_ext in '' $ac_executable_extensions; do
19032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19033     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035     break 2
19036   fi
19037 done
19038   done
19039 IFS=$as_save_IFS
19040 
19041   ;;
19042 esac
19043 fi
19044 XATTR=$ac_cv_path_XATTR
19045 if test -n "$XATTR"; then
19046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19047 $as_echo "$XATTR" >&6; }
19048 else
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051 fi
19052 
19053 
19054   test -n "$XATTR" && break
19055 done
19056 
19057   else
19058     # The variable is set, but is it from the command line or the environment?
19059 
19060     # Try to remove the string !XATTR! from our list.
19061     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19062     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19063       # If it failed, the variable was not from the command line. Ignore it,
19064       # but warn the user (except for BASH, which is always set by the calling BASH).
19065       if test "xXATTR" != xBASH; then
19066         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19067 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19068       fi
19069       # Try to locate tool using the code snippet
19070       for ac_prog in xattr
19071 do
19072   # Extract the first word of "$ac_prog", so it can be a program name with args.
19073 set dummy $ac_prog; ac_word=$2
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19075 $as_echo_n "checking for $ac_word... " >&6; }
19076 if ${ac_cv_path_XATTR+:} false; then :
19077   $as_echo_n "(cached) " >&6
19078 else
19079   case $XATTR in
19080   [\\/]* | ?:[\\/]*)
19081   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19082   ;;
19083   *)
19084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19085 for as_dir in $PATH
19086 do
19087   IFS=$as_save_IFS
19088   test -z "$as_dir" && as_dir=.
19089     for ac_exec_ext in '' $ac_executable_extensions; do
19090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19091     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19093     break 2
19094   fi
19095 done
19096   done
19097 IFS=$as_save_IFS
19098 
19099   ;;
19100 esac
19101 fi
19102 XATTR=$ac_cv_path_XATTR
19103 if test -n "$XATTR"; then
19104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19105 $as_echo "$XATTR" >&6; }
19106 else
19107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108 $as_echo "no" >&6; }
19109 fi
19110 
19111 
19112   test -n "$XATTR" && break
19113 done
19114 
19115     else
19116       # If it succeeded, then it was overridden by the user. We will use it
19117       # for the tool.
19118 
19119       # First remove it from the list of overridden variables, so we can test
19120       # for unknown variables in the end.
19121       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19122 
19123       # Check if the provided tool contains a complete path.
19124       tool_specified="$XATTR"
19125       tool_basename="${tool_specified##*/}"
19126       if test "x$tool_basename" = "x$tool_specified"; then
19127         # A command without a complete path is provided, search $PATH.
19128         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19129 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19130         # Extract the first word of "$tool_basename", so it can be a program name with args.
19131 set dummy $tool_basename; ac_word=$2
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19133 $as_echo_n "checking for $ac_word... " >&6; }
19134 if ${ac_cv_path_XATTR+:} false; then :
19135   $as_echo_n "(cached) " >&6
19136 else
19137   case $XATTR in
19138   [\\/]* | ?:[\\/]*)
19139   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19140   ;;
19141   *)
19142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19143 for as_dir in $PATH
19144 do
19145   IFS=$as_save_IFS
19146   test -z "$as_dir" && as_dir=.
19147     for ac_exec_ext in '' $ac_executable_extensions; do
19148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19149     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19151     break 2
19152   fi
19153 done
19154   done
19155 IFS=$as_save_IFS
19156 
19157   ;;
19158 esac
19159 fi
19160 XATTR=$ac_cv_path_XATTR
19161 if test -n "$XATTR"; then
19162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19163 $as_echo "$XATTR" >&6; }
19164 else
19165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166 $as_echo "no" >&6; }
19167 fi
19168 
19169 
19170         if test "x$XATTR" = x; then
19171           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19172         fi
19173       else
19174         # Otherwise we believe it is a complete path. Use it as it is.
19175         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19176 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19178 $as_echo_n "checking for XATTR... " >&6; }
19179         if test ! -x "$tool_specified"; then
19180           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19181 $as_echo "not found" >&6; }
19182           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19183         fi
19184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19185 $as_echo "$tool_specified" >&6; }
19186       fi
19187     fi
19188   fi
19189 
19190 
19191 
19192   if test "x$XATTR" = x; then
19193     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19194   fi
19195 
19196 
19197 
19198 
19199   # Publish this variable in the help.
19200 
19201 
19202   if test "x$CODESIGN" = x; then
19203     # The variable is not set by user, try to locate tool using the code snippet
19204     for ac_prog in codesign
19205 do
19206   # Extract the first word of "$ac_prog", so it can be a program name with args.
19207 set dummy $ac_prog; ac_word=$2
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19209 $as_echo_n "checking for $ac_word... " >&6; }
19210 if ${ac_cv_path_CODESIGN+:} false; then :
19211   $as_echo_n "(cached) " >&6
19212 else
19213   case $CODESIGN in
19214   [\\/]* | ?:[\\/]*)
19215   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19216   ;;
19217   *)
19218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19219 for as_dir in $PATH
19220 do
19221   IFS=$as_save_IFS
19222   test -z "$as_dir" && as_dir=.
19223     for ac_exec_ext in '' $ac_executable_extensions; do
19224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19225     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19227     break 2
19228   fi
19229 done
19230   done
19231 IFS=$as_save_IFS
19232 
19233   ;;
19234 esac
19235 fi
19236 CODESIGN=$ac_cv_path_CODESIGN
19237 if test -n "$CODESIGN"; then
19238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19239 $as_echo "$CODESIGN" >&6; }
19240 else
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19243 fi
19244 
19245 
19246   test -n "$CODESIGN" && break
19247 done
19248 
19249   else
19250     # The variable is set, but is it from the command line or the environment?
19251 
19252     # Try to remove the string !CODESIGN! from our list.
19253     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19254     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19255       # If it failed, the variable was not from the command line. Ignore it,
19256       # but warn the user (except for BASH, which is always set by the calling BASH).
19257       if test "xCODESIGN" != xBASH; then
19258         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19259 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19260       fi
19261       # Try to locate tool using the code snippet
19262       for ac_prog in codesign
19263 do
19264   # Extract the first word of "$ac_prog", so it can be a program name with args.
19265 set dummy $ac_prog; ac_word=$2
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19267 $as_echo_n "checking for $ac_word... " >&6; }
19268 if ${ac_cv_path_CODESIGN+:} false; then :
19269   $as_echo_n "(cached) " >&6
19270 else
19271   case $CODESIGN in
19272   [\\/]* | ?:[\\/]*)
19273   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19274   ;;
19275   *)
19276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19277 for as_dir in $PATH
19278 do
19279   IFS=$as_save_IFS
19280   test -z "$as_dir" && as_dir=.
19281     for ac_exec_ext in '' $ac_executable_extensions; do
19282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19283     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19285     break 2
19286   fi
19287 done
19288   done
19289 IFS=$as_save_IFS
19290 
19291   ;;
19292 esac
19293 fi
19294 CODESIGN=$ac_cv_path_CODESIGN
19295 if test -n "$CODESIGN"; then
19296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19297 $as_echo "$CODESIGN" >&6; }
19298 else
19299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300 $as_echo "no" >&6; }
19301 fi
19302 
19303 
19304   test -n "$CODESIGN" && break
19305 done
19306 
19307     else
19308       # If it succeeded, then it was overridden by the user. We will use it
19309       # for the tool.
19310 
19311       # First remove it from the list of overridden variables, so we can test
19312       # for unknown variables in the end.
19313       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19314 
19315       # Check if the provided tool contains a complete path.
19316       tool_specified="$CODESIGN"
19317       tool_basename="${tool_specified##*/}"
19318       if test "x$tool_basename" = "x$tool_specified"; then
19319         # A command without a complete path is provided, search $PATH.
19320         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19321 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19322         # Extract the first word of "$tool_basename", so it can be a program name with args.
19323 set dummy $tool_basename; ac_word=$2
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19325 $as_echo_n "checking for $ac_word... " >&6; }
19326 if ${ac_cv_path_CODESIGN+:} false; then :
19327   $as_echo_n "(cached) " >&6
19328 else
19329   case $CODESIGN in
19330   [\\/]* | ?:[\\/]*)
19331   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19332   ;;
19333   *)
19334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19335 for as_dir in $PATH
19336 do
19337   IFS=$as_save_IFS
19338   test -z "$as_dir" && as_dir=.
19339     for ac_exec_ext in '' $ac_executable_extensions; do
19340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19341     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19343     break 2
19344   fi
19345 done
19346   done
19347 IFS=$as_save_IFS
19348 
19349   ;;
19350 esac
19351 fi
19352 CODESIGN=$ac_cv_path_CODESIGN
19353 if test -n "$CODESIGN"; then
19354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19355 $as_echo "$CODESIGN" >&6; }
19356 else
19357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19358 $as_echo "no" >&6; }
19359 fi
19360 
19361 
19362         if test "x$CODESIGN" = x; then
19363           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19364         fi
19365       else
19366         # Otherwise we believe it is a complete path. Use it as it is.
19367         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19368 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19370 $as_echo_n "checking for CODESIGN... " >&6; }
19371         if test ! -x "$tool_specified"; then
19372           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19373 $as_echo "not found" >&6; }
19374           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19375         fi
19376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19377 $as_echo "$tool_specified" >&6; }
19378       fi
19379     fi
19380   fi
19381 
19382 
19383     if test "x$CODESIGN" != "x"; then
19384       # Verify that the openjdk_codesign certificate is present
19385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19386 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19387       rm -f codesign-testfile
19388       touch codesign-testfile
19389       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19390       rm -f codesign-testfile
19391       if test "x$CODESIGN" = x; then
19392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19393 $as_echo "no" >&6; }
19394       else
19395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19396 $as_echo "yes" >&6; }
19397       fi
19398     fi
19399   fi
19400 
19401 
19402 # Check if pkg-config is available.
19403 
19404 
19405 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19406         if test -n "$ac_tool_prefix"; then
19407   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19408 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19410 $as_echo_n "checking for $ac_word... " >&6; }
19411 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19412   $as_echo_n "(cached) " >&6
19413 else
19414   case $PKG_CONFIG in
19415   [\\/]* | ?:[\\/]*)
19416   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19417   ;;
19418   *)
19419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19420 for as_dir in $PATH
19421 do
19422   IFS=$as_save_IFS
19423   test -z "$as_dir" && as_dir=.
19424     for ac_exec_ext in '' $ac_executable_extensions; do
19425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19426     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19428     break 2
19429   fi
19430 done
19431   done
19432 IFS=$as_save_IFS
19433 
19434   ;;
19435 esac
19436 fi
19437 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19438 if test -n "$PKG_CONFIG"; then
19439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19440 $as_echo "$PKG_CONFIG" >&6; }
19441 else
19442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19443 $as_echo "no" >&6; }
19444 fi
19445 
19446 
19447 fi
19448 if test -z "$ac_cv_path_PKG_CONFIG"; then
19449   ac_pt_PKG_CONFIG=$PKG_CONFIG
19450   # Extract the first word of "pkg-config", so it can be a program name with args.
19451 set dummy pkg-config; ac_word=$2
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19453 $as_echo_n "checking for $ac_word... " >&6; }
19454 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19455   $as_echo_n "(cached) " >&6
19456 else
19457   case $ac_pt_PKG_CONFIG in
19458   [\\/]* | ?:[\\/]*)
19459   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19460   ;;
19461   *)
19462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19463 for as_dir in $PATH
19464 do
19465   IFS=$as_save_IFS
19466   test -z "$as_dir" && as_dir=.
19467     for ac_exec_ext in '' $ac_executable_extensions; do
19468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19469     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19471     break 2
19472   fi
19473 done
19474   done
19475 IFS=$as_save_IFS
19476 
19477   ;;
19478 esac
19479 fi
19480 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19481 if test -n "$ac_pt_PKG_CONFIG"; then
19482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19483 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19484 else
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486 $as_echo "no" >&6; }
19487 fi
19488 
19489   if test "x$ac_pt_PKG_CONFIG" = x; then
19490     PKG_CONFIG=""
19491   else
19492     case $cross_compiling:$ac_tool_warned in
19493 yes:)
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19496 ac_tool_warned=yes ;;
19497 esac
19498     PKG_CONFIG=$ac_pt_PKG_CONFIG
19499   fi
19500 else
19501   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19502 fi
19503 
19504 fi
19505 if test -n "$PKG_CONFIG"; then
19506         _pkg_min_version=0.9.0
19507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19508 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19509         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19510                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19511 $as_echo "yes" >&6; }
19512         else
19513                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19514 $as_echo "no" >&6; }
19515                 PKG_CONFIG=""
19516         fi
19517 
19518 fi
19519 
19520 # After basic tools have been setup, we can check build os specific details.
19521 
19522   ###############################################################################
19523 
19524   # Note that this is the build platform OS version!
19525 
19526   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19527   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19528   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19529   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19530 
19531 
19532 
19533 
19534 
19535 # Setup builddeps, for automatic downloading of tools we need.
19536 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19537 # boot-jdk setup, but we need to have basic tools setup first.
19538 
19539 
19540 # Check whether --with-builddeps-conf was given.
19541 if test "${with_builddeps_conf+set}" = set; then :
19542   withval=$with_builddeps_conf;
19543 fi
19544 
19545 
19546 
19547 # Check whether --with-builddeps-server was given.
19548 if test "${with_builddeps_server+set}" = set; then :
19549   withval=$with_builddeps_server;
19550 fi
19551 
19552 
19553 
19554 # Check whether --with-builddeps-dir was given.
19555 if test "${with_builddeps_dir+set}" = set; then :
19556   withval=$with_builddeps_dir;
19557 else
19558   with_builddeps_dir=/localhome/builddeps
19559 fi
19560 
19561 
19562 
19563 # Check whether --with-builddeps-group was given.
19564 if test "${with_builddeps_group+set}" = set; then :
19565   withval=$with_builddeps_group;
19566 fi
19567 
19568 
19569 
19570 
19571   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19572     if test "x$with_builddeps_conf" != x; then
19573       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19574 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19575       builddepsfile=$with_builddeps_conf
19576       if test -s $builddepsfile; then
19577         . $builddepsfile
19578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19579 $as_echo "loaded!" >&6; }
19580       else
19581         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19582       fi
19583     else
19584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19585 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19586       builddepsfile=`mktemp`
19587       touch $builddepsfile
19588       # Put all found confs into a single file.
19589       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19590       # Source the file to acquire the variables
19591       if test -s $builddepsfile; then
19592         . $builddepsfile
19593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19594 $as_echo "found at least one!" >&6; }
19595       else
19596         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19597       fi
19598     fi
19599     # Create build and target names that use _ instead of "-" and ".".
19600     # This is necessary to use them in variable names.
19601     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19602     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19603     # Extract rewrite information for build and target
19604     eval rewritten_build=\${REWRITE_${build_var}}
19605     if test "x$rewritten_build" = x; then
19606       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19607       echo Build stays the same $rewritten_build
19608     else
19609       echo Rewriting build for builddeps into $rewritten_build
19610     fi
19611     eval rewritten_target=\${REWRITE_${target_var}}
19612     if test "x$rewritten_target" = x; then
19613       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19614       echo Target stays the same $rewritten_target
19615     else
19616       echo Rewriting target for builddeps into $rewritten_target
19617     fi
19618     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19619     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19620   fi
19621   for ac_prog in 7z unzip
19622 do
19623   # Extract the first word of "$ac_prog", so it can be a program name with args.
19624 set dummy $ac_prog; ac_word=$2
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19626 $as_echo_n "checking for $ac_word... " >&6; }
19627 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19628   $as_echo_n "(cached) " >&6
19629 else
19630   if test -n "$BDEPS_UNZIP"; then
19631   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19632 else
19633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19634 for as_dir in $PATH
19635 do
19636   IFS=$as_save_IFS
19637   test -z "$as_dir" && as_dir=.
19638     for ac_exec_ext in '' $ac_executable_extensions; do
19639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19640     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19642     break 2
19643   fi
19644 done
19645   done
19646 IFS=$as_save_IFS
19647 
19648 fi
19649 fi
19650 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19651 if test -n "$BDEPS_UNZIP"; then
19652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19653 $as_echo "$BDEPS_UNZIP" >&6; }
19654 else
19655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19656 $as_echo "no" >&6; }
19657 fi
19658 
19659 
19660   test -n "$BDEPS_UNZIP" && break
19661 done
19662 
19663   if test "x$BDEPS_UNZIP" = x7z; then
19664     BDEPS_UNZIP="7z x"
19665   fi
19666 
19667   for ac_prog in wget lftp ftp
19668 do
19669   # Extract the first word of "$ac_prog", so it can be a program name with args.
19670 set dummy $ac_prog; ac_word=$2
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19672 $as_echo_n "checking for $ac_word... " >&6; }
19673 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19674   $as_echo_n "(cached) " >&6
19675 else
19676   if test -n "$BDEPS_FTP"; then
19677   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19678 else
19679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680 for as_dir in $PATH
19681 do
19682   IFS=$as_save_IFS
19683   test -z "$as_dir" && as_dir=.
19684     for ac_exec_ext in '' $ac_executable_extensions; do
19685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19686     ac_cv_prog_BDEPS_FTP="$ac_prog"
19687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19688     break 2
19689   fi
19690 done
19691   done
19692 IFS=$as_save_IFS
19693 
19694 fi
19695 fi
19696 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19697 if test -n "$BDEPS_FTP"; then
19698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19699 $as_echo "$BDEPS_FTP" >&6; }
19700 else
19701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19702 $as_echo "no" >&6; }
19703 fi
19704 
19705 
19706   test -n "$BDEPS_FTP" && break
19707 done
19708 
19709 
19710 
19711 ###############################################################################
19712 #
19713 # Determine OpenJDK variants, options and version numbers.
19714 #
19715 ###############################################################################
19716 
19717 # We need build & target for this.
19718 
19719 
19720   ###############################################################################
19721   #
19722   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19723   # We always build headless support.
19724   #
19725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19726 $as_echo_n "checking headful support... " >&6; }
19727   # Check whether --enable-headful was given.
19728 if test "${enable_headful+set}" = set; then :
19729   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19730 else
19731   SUPPORT_HEADFUL=yes
19732 fi
19733 
19734 
19735   SUPPORT_HEADLESS=yes
19736   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19737 
19738   if test "x$SUPPORT_HEADFUL" = xyes; then
19739     # We are building both headful and headless.
19740     headful_msg="include support for both headful and headless"
19741   fi
19742 
19743   if test "x$SUPPORT_HEADFUL" = xno; then
19744     # Thus we are building headless only.
19745     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19746     headful_msg="headless only"
19747   fi
19748 
19749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19750 $as_echo "$headful_msg" >&6; }
19751 
19752 
19753 
19754 
19755 
19756   # Control wether Hotspot runs Queens test after build.
19757   # Check whether --enable-hotspot-test-in-build was given.
19758 if test "${enable_hotspot_test_in_build+set}" = set; then :
19759   enableval=$enable_hotspot_test_in_build;
19760 else
19761   enable_hotspot_test_in_build=no
19762 fi
19763 
19764   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19765     TEST_IN_BUILD=true
19766   else
19767     TEST_IN_BUILD=false
19768   fi
19769 
19770 
19771   ###############################################################################
19772   #
19773   # Choose cacerts source file
19774   #
19775 
19776 # Check whether --with-cacerts-file was given.
19777 if test "${with_cacerts_file+set}" = set; then :
19778   withval=$with_cacerts_file;
19779 fi
19780 
19781   if test "x$with_cacerts_file" != x; then
19782     CACERTS_FILE=$with_cacerts_file
19783   else
19784     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19785   fi
19786 
19787 
19788   ###############################################################################
19789   #
19790   # Enable or disable unlimited crypto
19791   #
19792   # Check whether --enable-unlimited-crypto was given.
19793 if test "${enable_unlimited_crypto+set}" = set; then :
19794   enableval=$enable_unlimited_crypto;
19795 else
19796   enable_unlimited_crypto=no
19797 fi
19798 
19799   if test "x$enable_unlimited_crypto" = "xyes"; then
19800     UNLIMITED_CRYPTO=true
19801   else
19802     UNLIMITED_CRYPTO=false
19803   fi
19804 
19805 
19806   ###############################################################################
19807   #
19808   # Enable or disable the elliptic curve crypto implementation
19809   #
19810 
19811 
19812   ###############################################################################
19813   #
19814   # Compress jars
19815   #
19816   COMPRESS_JARS=false
19817 
19818 
19819 
19820   ###############################################################################
19821   #
19822   # Enable or disable JFR
19823   #
19824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build jfr" >&5
19825 $as_echo_n "checking whether to build jfr... " >&6; }
19826   # Check whether --enable-jfr was given.
19827 if test "${enable_jfr+set}" = set; then :
19828   enableval=$enable_jfr;
19829 else
19830   enable_jfr=auto
19831 fi
19832 
19833   if test "x$enable_jfr" = "xno"; then
19834     ENABLE_JFR=false
19835   elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then
19836     if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then
19837       if test "x$enable_jfr" = "xyes"; then
19838         as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5
19839       else
19840         ENABLE_JFR=false
19841       fi
19842     else
19843       ENABLE_JFR=true
19844     fi
19845   else
19846     as_fn_error $? "--enable-jfr must either be set to yes or no" "$LINENO" 5
19847   fi
19848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5
19849 $as_echo "$ENABLE_JFR" >&6; }
19850 
19851 
19852 
19853   # Source the version numbers
19854   . $AUTOCONF_DIR/version-numbers
19855 
19856   # Get the settings from parameters
19857 
19858 # Check whether --with-milestone was given.
19859 if test "${with_milestone+set}" = set; then :
19860   withval=$with_milestone;
19861 fi
19862 
19863   if test "x$with_milestone" = xyes; then
19864     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19865   elif test "x$with_milestone" != x; then
19866     MILESTONE="$with_milestone"
19867   fi
19868   if test "x$MILESTONE" = x; then
19869     MILESTONE=internal
19870   fi
19871 
19872 
19873 # Check whether --with-update-version was given.
19874 if test "${with_update_version+set}" = set; then :
19875   withval=$with_update_version;
19876 fi
19877 
19878   if test "x$with_update_version" = xyes; then
19879     as_fn_error $? "Update version must have a value" "$LINENO" 5
19880   elif test "x$with_update_version" != x; then
19881     JDK_UPDATE_VERSION="$with_update_version"
19882     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19883     # to a bug in expr (which reduces it to just X). To work around this, we
19884     # always add a 0 to one digit update versions.
19885     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19886       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19887     fi
19888   fi
19889 
19890 
19891 # Check whether --with-user-release-suffix was given.
19892 if test "${with_user_release_suffix+set}" = set; then :
19893   withval=$with_user_release_suffix;
19894 fi
19895 
19896   if test "x$with_user_release_suffix" = xyes; then
19897     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19898   elif test "x$with_user_release_suffix" != x; then
19899     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19900   fi
19901 
19902 
19903 # Check whether --with-build-number was given.
19904 if test "${with_build_number+set}" = set; then :
19905   withval=$with_build_number;
19906 fi
19907 
19908   if test "x$with_build_number" = xyes; then
19909     as_fn_error $? "Build number must have a value" "$LINENO" 5
19910   elif test "x$with_build_number" != x; then
19911     JDK_BUILD_NUMBER="$with_build_number"
19912   fi
19913   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19914   if test "x$JDK_BUILD_NUMBER" = x; then
19915     JDK_BUILD_NUMBER=b00
19916     if test "x$USER_RELEASE_SUFFIX" = x; then
19917       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19918       # Avoid [:alnum:] since it depends on the locale.
19919       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19920       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19921     fi
19922   fi
19923 
19924   # Now set the JDK version, milestone, build number etc.
19925 
19926 
19927 
19928 
19929 
19930 
19931 
19932 
19933 
19934 
19935 
19936 
19937 
19938 
19939   # The vendor name, if any
19940 
19941 # Check whether --with-vendor-name was given.
19942 if test "${with_vendor_name+set}" = set; then :
19943   withval=$with_vendor_name;
19944 fi
19945 
19946   if test "x$with_vendor_name" = xyes; then
19947     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
19948   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
19949     as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
19950   elif test "x$with_vendor_name" != x; then
19951     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
19952     # Otherwise we will use the value from "version-numbers" included above.
19953     COMPANY_NAME="$with_vendor_name"
19954   fi
19955 
19956 
19957   # The vendor URL, if any
19958 
19959 # Check whether --with-vendor-url was given.
19960 if test "${with_vendor_url+set}" = set; then :
19961   withval=$with_vendor_url;
19962 fi
19963 
19964   if test "x$with_vendor_url" = xyes; then
19965     as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5
19966   elif  ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then
19967     as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5
19968   else
19969     VENDOR_URL="$with_vendor_url"
19970   fi
19971 
19972 
19973   # The vendor bug URL, if any
19974 
19975 # Check whether --with-vendor-bug-url was given.
19976 if test "${with_vendor_bug_url+set}" = set; then :
19977   withval=$with_vendor_bug_url;
19978 fi
19979 
19980   if test "x$with_vendor_bug_url" = xyes; then
19981     as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5
19982   elif  ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then
19983     as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5
19984   else
19985     VENDOR_URL_BUG="$with_vendor_bug_url"
19986   fi
19987 
19988 
19989   # The vendor VM bug URL, if any
19990 
19991 # Check whether --with-vendor-vm-bug-url was given.
19992 if test "${with_vendor_vm_bug_url+set}" = set; then :
19993   withval=$with_vendor_vm_bug_url;
19994 fi
19995 
19996   if test "x$with_vendor_vm_bug_url" = xyes; then
19997     as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5
19998   elif  ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then
19999     as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5
20000   else
20001     VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
20002   fi
20003 
20004 
20005 
20006 # Check whether --with-copyright-year was given.
20007 if test "${with_copyright_year+set}" = set; then :
20008   withval=$with_copyright_year;
20009 fi
20010 
20011   if test "x$with_copyright_year" = xyes; then
20012     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20013   elif test "x$with_copyright_year" != x; then
20014     COPYRIGHT_YEAR="$with_copyright_year"
20015   else
20016     COPYRIGHT_YEAR=`date +'%Y'`
20017   fi
20018 
20019 
20020   if test "x$JDK_UPDATE_VERSION" != x; then
20021     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
20022   else
20023     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
20024   fi
20025 
20026 
20027   # The cooked update version used to encode trailing letters in the update
20028   # version into a trailing number. That is no longer needed, but need to
20029   # keep the format in 8u for compatibility.
20030   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
20031 
20032 
20033   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
20034 
20035 
20036 
20037 ###############################################################################
20038 #
20039 # Setup BootJDK, used to bootstrap the build.
20040 #
20041 ###############################################################################
20042 
20043 
20044   BOOT_JDK_FOUND=no
20045 
20046 # Check whether --with-boot-jdk was given.
20047 if test "${with_boot_jdk+set}" = set; then :
20048   withval=$with_boot_jdk;
20049 fi
20050 
20051 
20052   # We look for the Boot JDK through various means, going from more certain to
20053   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20054   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20055   # must check if this is indeed valid; otherwise we'll continue looking.
20056 
20057   # Test: Is bootjdk explicitely set by command line arguments?
20058 
20059   if test "x$BOOT_JDK_FOUND" = xno; then
20060     # Now execute the test
20061 
20062   if test "x$with_boot_jdk" != x; then
20063     BOOT_JDK=$with_boot_jdk
20064     BOOT_JDK_FOUND=maybe
20065     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20066 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20067   fi
20068 
20069 
20070     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20071     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20072       # Do we have a bin/java?
20073       if test ! -x "$BOOT_JDK/bin/java"; then
20074         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20075 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20076         BOOT_JDK_FOUND=no
20077       else
20078         # Do we have a bin/javac?
20079         if test ! -x "$BOOT_JDK/bin/javac"; then
20080           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20082           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20083 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20084           BOOT_JDK_FOUND=no
20085         else
20086           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20087           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20088             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20089 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20090             BOOT_JDK_FOUND=no
20091           else
20092             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20093             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20094 
20095             # Extra M4 quote needed to protect [] in grep expression.
20096             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20097             if test "x$FOUND_VERSION_78" = x; then
20098               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20099 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20100               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20101 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20102               BOOT_JDK_FOUND=no
20103             else
20104               # We're done! :-)
20105               BOOT_JDK_FOUND=yes
20106 
20107   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20108 
20109   # Input might be given as Windows format, start by converting to
20110   # unix format.
20111   path="$BOOT_JDK"
20112   new_path=`$CYGPATH -u "$path"`
20113 
20114   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20115   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20116   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20117   # "foo.exe" is OK but "foo" is an error.
20118   #
20119   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20120   # It is also a way to make sure we got the proper file name for the real test later on.
20121   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20122   if test "x$test_shortpath" = x; then
20123     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20125     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20126   fi
20127 
20128   # Call helper function which possibly converts this using DOS-style short mode.
20129   # If so, the updated path is stored in $new_path.
20130 
20131   input_path="$new_path"
20132   # Check if we need to convert this using DOS-style short mode. If the path
20133   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20134   # take no chances and rewrite it.
20135   # Note: m4 eats our [], so we need to use [ and ] instead.
20136   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20137   if test "x$has_forbidden_chars" != x; then
20138     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20139     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20140     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20141     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20142       # Going to short mode and back again did indeed matter. Since short mode is
20143       # case insensitive, let's make it lowercase to improve readability.
20144       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20145       # Now convert it back to Unix-style (cygpath)
20146       input_path=`$CYGPATH -u "$shortmode_path"`
20147       new_path="$input_path"
20148     fi
20149   fi
20150 
20151   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20152   if test "x$test_cygdrive_prefix" = x; then
20153     # As a simple fix, exclude /usr/bin since it's not a real path.
20154     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20155       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20156       # a path prefixed by /cygdrive for fixpath to work.
20157       new_path="$CYGWIN_ROOT_PATH$input_path"
20158     fi
20159   fi
20160 
20161 
20162   if test "x$path" != "x$new_path"; then
20163     BOOT_JDK="$new_path"
20164     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20165 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20166   fi
20167 
20168   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20169 
20170   path="$BOOT_JDK"
20171   has_colon=`$ECHO $path | $GREP ^.:`
20172   new_path="$path"
20173   if test "x$has_colon" = x; then
20174     # Not in mixed or Windows style, start by that.
20175     new_path=`cmd //c echo $path`
20176   fi
20177 
20178 
20179   input_path="$new_path"
20180   # Check if we need to convert this using DOS-style short mode. If the path
20181   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20182   # take no chances and rewrite it.
20183   # Note: m4 eats our [], so we need to use [ and ] instead.
20184   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20185   if test "x$has_forbidden_chars" != x; then
20186     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20187     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20188   fi
20189 
20190 
20191   windows_path="$new_path"
20192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20193     unix_path=`$CYGPATH -u "$windows_path"`
20194     new_path="$unix_path"
20195   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20196     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20197     new_path="$unix_path"
20198   fi
20199 
20200   if test "x$path" != "x$new_path"; then
20201     BOOT_JDK="$new_path"
20202     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20203 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20204   fi
20205 
20206   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20207   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20208 
20209   else
20210     # We're on a posix platform. Hooray! :)
20211     path="$BOOT_JDK"
20212     has_space=`$ECHO "$path" | $GREP " "`
20213     if test "x$has_space" != x; then
20214       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20215 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20216       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20217     fi
20218 
20219     # Use eval to expand a potential ~
20220     eval path="$path"
20221     if test ! -f "$path" && test ! -d "$path"; then
20222       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20223     fi
20224 
20225     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20226   fi
20227 
20228               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20229 $as_echo_n "checking for Boot JDK... " >&6; }
20230               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20231 $as_echo "$BOOT_JDK" >&6; }
20232               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20233 $as_echo_n "checking Boot JDK version... " >&6; }
20234               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20235               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20236 $as_echo "$BOOT_JDK_VERSION" >&6; }
20237             fi # end check jdk version
20238           fi # end check rt.jar
20239         fi # end check javac
20240       fi # end check java
20241     fi # end check boot jdk found
20242   fi
20243 
20244   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20245     # Having specified an argument which is incorrect will produce an instant failure;
20246     # we should not go on looking
20247     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20248   fi
20249 
20250   # Test: Is bootjdk available from builddeps?
20251 
20252   if test "x$BOOT_JDK_FOUND" = xno; then
20253     # Now execute the test
20254 
20255 
20256 
20257   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20258     # Source the builddeps file again, to make sure it uses the latest variables!
20259     . $builddepsfile
20260     # Look for a target and build machine specific resource!
20261     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20262     if test "x$resource" = x; then
20263       # Ok, lets instead look for a target specific resource
20264       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20265     fi
20266     if test "x$resource" = x; then
20267       # Ok, lets instead look for a build specific resource
20268       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20269     fi
20270     if test "x$resource" = x; then
20271       # Ok, lets instead look for a generic resource
20272       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20273       resource=${builddep_bootjdk}
20274     fi
20275     if test "x$resource" != x; then
20276       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20277 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20278       # If the resource in the builddeps.conf file is an existing directory,
20279       # for example /java/linux/cups
20280       if test -d ${resource}; then
20281         depdir=${resource}
20282       else
20283 
20284   # bootjdk is for example mymodule
20285   # $resource is for example libs/general/libmymod_1_2_3.zip
20286   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20287   # $with_builddeps_dir is for example /localhome/builddeps
20288   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20289   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20290   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20291   filename=`basename $resource`
20292   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20293   filebase=${filename%%.*}
20294   extension=${filename#*.}
20295   installdir=$with_builddeps_dir/$filebase
20296   if test ! -f $installdir/$filename.unpacked; then
20297     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20298 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20299     if test ! -d $installdir; then
20300       mkdir -p $installdir
20301     fi
20302     if test ! -d $installdir; then
20303       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20304     fi
20305     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20306     touch $tmpfile
20307     if test ! -f $tmpfile; then
20308       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20309     fi
20310 
20311   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20312   # $tmpfile is the local file name for the downloaded file.
20313   VALID_TOOL=no
20314   if test "x$BDEPS_FTP" = xwget; then
20315     VALID_TOOL=yes
20316     wget -O $tmpfile $with_builddeps_server/$resource
20317   fi
20318   if test "x$BDEPS_FTP" = xlftp; then
20319     VALID_TOOL=yes
20320     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20321   fi
20322   if test "x$BDEPS_FTP" = xftp; then
20323     VALID_TOOL=yes
20324     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20325     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20326     FTPUSERPWD=${FTPSERVER%%@*}
20327     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20328       FTPUSER=${userpwd%%:*}
20329       FTPPWD=${userpwd#*@}
20330       FTPSERVER=${FTPSERVER#*@}
20331     else
20332       FTPUSER=ftp
20333       FTPPWD=ftp
20334     fi
20335     # the "pass" command does not work on some
20336     # ftp clients (read ftp.exe) but if it works,
20337     # passive mode is better!
20338     ( \
20339         echo "user $FTPUSER $FTPPWD"        ; \
20340         echo "pass"                         ; \
20341         echo "bin"                          ; \
20342         echo "get $FTPPATH $tmpfile"              ; \
20343     ) | ftp -in $FTPSERVER
20344   fi
20345   if test "x$VALID_TOOL" != xyes; then
20346     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20347   fi
20348 
20349     mv $tmpfile $installdir/$filename
20350     if test ! -s $installdir/$filename; then
20351       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20352     fi
20353     case "$extension" in
20354       zip)  echo "Unzipping $installdir/$filename..."
20355         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20356         ;;
20357       tar.gz) echo "Untaring $installdir/$filename..."
20358         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20359         ;;
20360       tgz) echo "Untaring $installdir/$filename..."
20361         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20362         ;;
20363       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20364         ;;
20365     esac
20366   fi
20367   if test -f $installdir/$filename.unpacked; then
20368     depdir=$installdir
20369   fi
20370 
20371       fi
20372       # Source the builddeps file again, because in the previous command, the depdir
20373       # was updated to point at the current build dependency install directory.
20374       . $builddepsfile
20375       # Now extract variables from the builddeps.conf files.
20376       theroot=${builddep_bootjdk_ROOT}
20377       thecflags=${builddep_bootjdk_CFLAGS}
20378       thelibs=${builddep_bootjdk_LIBS}
20379       if test "x$depdir" = x; then
20380         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20381       fi
20382       BOOT_JDK=$depdir
20383       if test "x$theroot" != x; then
20384         BOOT_JDK="$theroot"
20385       fi
20386       if test "x$thecflags" != x; then
20387         BOOT_JDK_CFLAGS="$thecflags"
20388       fi
20389       if test "x$thelibs" != x; then
20390         BOOT_JDK_LIBS="$thelibs"
20391       fi
20392       BOOT_JDK_FOUND=maybe
20393       else BOOT_JDK_FOUND=no
20394 
20395     fi
20396     else BOOT_JDK_FOUND=no
20397 
20398   fi
20399 
20400 
20401 
20402     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20403     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20404       # Do we have a bin/java?
20405       if test ! -x "$BOOT_JDK/bin/java"; then
20406         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20407 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20408         BOOT_JDK_FOUND=no
20409       else
20410         # Do we have a bin/javac?
20411         if test ! -x "$BOOT_JDK/bin/javac"; then
20412           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20413 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20414           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20415 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20416           BOOT_JDK_FOUND=no
20417         else
20418           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20419           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20420             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20422             BOOT_JDK_FOUND=no
20423           else
20424             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20425             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20426 
20427             # Extra M4 quote needed to protect [] in grep expression.
20428             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20429             if test "x$FOUND_VERSION_78" = x; then
20430               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20431 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20432               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20433 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20434               BOOT_JDK_FOUND=no
20435             else
20436               # We're done! :-)
20437               BOOT_JDK_FOUND=yes
20438 
20439   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20440 
20441   # Input might be given as Windows format, start by converting to
20442   # unix format.
20443   path="$BOOT_JDK"
20444   new_path=`$CYGPATH -u "$path"`
20445 
20446   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20447   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20448   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20449   # "foo.exe" is OK but "foo" is an error.
20450   #
20451   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20452   # It is also a way to make sure we got the proper file name for the real test later on.
20453   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20454   if test "x$test_shortpath" = x; then
20455     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20456 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20457     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20458   fi
20459 
20460   # Call helper function which possibly converts this using DOS-style short mode.
20461   # If so, the updated path is stored in $new_path.
20462 
20463   input_path="$new_path"
20464   # Check if we need to convert this using DOS-style short mode. If the path
20465   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20466   # take no chances and rewrite it.
20467   # Note: m4 eats our [], so we need to use [ and ] instead.
20468   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20469   if test "x$has_forbidden_chars" != x; then
20470     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20471     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20472     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20473     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20474       # Going to short mode and back again did indeed matter. Since short mode is
20475       # case insensitive, let's make it lowercase to improve readability.
20476       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20477       # Now convert it back to Unix-style (cygpath)
20478       input_path=`$CYGPATH -u "$shortmode_path"`
20479       new_path="$input_path"
20480     fi
20481   fi
20482 
20483   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20484   if test "x$test_cygdrive_prefix" = x; then
20485     # As a simple fix, exclude /usr/bin since it's not a real path.
20486     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20487       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20488       # a path prefixed by /cygdrive for fixpath to work.
20489       new_path="$CYGWIN_ROOT_PATH$input_path"
20490     fi
20491   fi
20492 
20493 
20494   if test "x$path" != "x$new_path"; then
20495     BOOT_JDK="$new_path"
20496     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20497 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20498   fi
20499 
20500   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20501 
20502   path="$BOOT_JDK"
20503   has_colon=`$ECHO $path | $GREP ^.:`
20504   new_path="$path"
20505   if test "x$has_colon" = x; then
20506     # Not in mixed or Windows style, start by that.
20507     new_path=`cmd //c echo $path`
20508   fi
20509 
20510 
20511   input_path="$new_path"
20512   # Check if we need to convert this using DOS-style short mode. If the path
20513   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20514   # take no chances and rewrite it.
20515   # Note: m4 eats our [], so we need to use [ and ] instead.
20516   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20517   if test "x$has_forbidden_chars" != x; then
20518     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20519     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20520   fi
20521 
20522 
20523   windows_path="$new_path"
20524   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20525     unix_path=`$CYGPATH -u "$windows_path"`
20526     new_path="$unix_path"
20527   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20528     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20529     new_path="$unix_path"
20530   fi
20531 
20532   if test "x$path" != "x$new_path"; then
20533     BOOT_JDK="$new_path"
20534     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20535 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20536   fi
20537 
20538   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20539   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20540 
20541   else
20542     # We're on a posix platform. Hooray! :)
20543     path="$BOOT_JDK"
20544     has_space=`$ECHO "$path" | $GREP " "`
20545     if test "x$has_space" != x; then
20546       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20547 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20548       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20549     fi
20550 
20551     # Use eval to expand a potential ~
20552     eval path="$path"
20553     if test ! -f "$path" && test ! -d "$path"; then
20554       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20555     fi
20556 
20557     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20558   fi
20559 
20560               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20561 $as_echo_n "checking for Boot JDK... " >&6; }
20562               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20563 $as_echo "$BOOT_JDK" >&6; }
20564               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20565 $as_echo_n "checking Boot JDK version... " >&6; }
20566               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20567               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20568 $as_echo "$BOOT_JDK_VERSION" >&6; }
20569             fi # end check jdk version
20570           fi # end check rt.jar
20571         fi # end check javac
20572       fi # end check java
20573     fi # end check boot jdk found
20574   fi
20575 
20576 
20577   # Test: Is $JAVA_HOME set?
20578 
20579   if test "x$BOOT_JDK_FOUND" = xno; then
20580     # Now execute the test
20581 
20582   if test "x$JAVA_HOME" != x; then
20583     JAVA_HOME_PROCESSED="$JAVA_HOME"
20584 
20585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20586 
20587   # Input might be given as Windows format, start by converting to
20588   # unix format.
20589   path="$JAVA_HOME_PROCESSED"
20590   new_path=`$CYGPATH -u "$path"`
20591 
20592   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20593   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20594   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20595   # "foo.exe" is OK but "foo" is an error.
20596   #
20597   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20598   # It is also a way to make sure we got the proper file name for the real test later on.
20599   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20600   if test "x$test_shortpath" = x; then
20601     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20602 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20603     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20604   fi
20605 
20606   # Call helper function which possibly converts this using DOS-style short mode.
20607   # If so, the updated path is stored in $new_path.
20608 
20609   input_path="$new_path"
20610   # Check if we need to convert this using DOS-style short mode. If the path
20611   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20612   # take no chances and rewrite it.
20613   # Note: m4 eats our [], so we need to use [ and ] instead.
20614   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20615   if test "x$has_forbidden_chars" != x; then
20616     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20617     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20618     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20619     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20620       # Going to short mode and back again did indeed matter. Since short mode is
20621       # case insensitive, let's make it lowercase to improve readability.
20622       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20623       # Now convert it back to Unix-style (cygpath)
20624       input_path=`$CYGPATH -u "$shortmode_path"`
20625       new_path="$input_path"
20626     fi
20627   fi
20628 
20629   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20630   if test "x$test_cygdrive_prefix" = x; then
20631     # As a simple fix, exclude /usr/bin since it's not a real path.
20632     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20633       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20634       # a path prefixed by /cygdrive for fixpath to work.
20635       new_path="$CYGWIN_ROOT_PATH$input_path"
20636     fi
20637   fi
20638 
20639 
20640   if test "x$path" != "x$new_path"; then
20641     JAVA_HOME_PROCESSED="$new_path"
20642     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20643 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20644   fi
20645 
20646   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20647 
20648   path="$JAVA_HOME_PROCESSED"
20649   has_colon=`$ECHO $path | $GREP ^.:`
20650   new_path="$path"
20651   if test "x$has_colon" = x; then
20652     # Not in mixed or Windows style, start by that.
20653     new_path=`cmd //c echo $path`
20654   fi
20655 
20656 
20657   input_path="$new_path"
20658   # Check if we need to convert this using DOS-style short mode. If the path
20659   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20660   # take no chances and rewrite it.
20661   # Note: m4 eats our [], so we need to use [ and ] instead.
20662   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20663   if test "x$has_forbidden_chars" != x; then
20664     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20665     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20666   fi
20667 
20668 
20669   windows_path="$new_path"
20670   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20671     unix_path=`$CYGPATH -u "$windows_path"`
20672     new_path="$unix_path"
20673   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20674     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20675     new_path="$unix_path"
20676   fi
20677 
20678   if test "x$path" != "x$new_path"; then
20679     JAVA_HOME_PROCESSED="$new_path"
20680     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20681 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20682   fi
20683 
20684   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20685   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20686 
20687   else
20688     # We're on a posix platform. Hooray! :)
20689     path="$JAVA_HOME_PROCESSED"
20690     has_space=`$ECHO "$path" | $GREP " "`
20691     if test "x$has_space" != x; then
20692       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20693 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20694       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20695     fi
20696 
20697     # Use eval to expand a potential ~
20698     eval path="$path"
20699     if test ! -f "$path" && test ! -d "$path"; then
20700       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20701     fi
20702 
20703     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20704   fi
20705 
20706     if test ! -d "$JAVA_HOME_PROCESSED"; then
20707       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20708 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20709     else
20710       # Aha, the user has set a JAVA_HOME
20711       # let us use that as the Boot JDK.
20712       BOOT_JDK="$JAVA_HOME_PROCESSED"
20713       BOOT_JDK_FOUND=maybe
20714       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20715 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20716     fi
20717   fi
20718 
20719 
20720     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20721     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20722       # Do we have a bin/java?
20723       if test ! -x "$BOOT_JDK/bin/java"; then
20724         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20725 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20726         BOOT_JDK_FOUND=no
20727       else
20728         # Do we have a bin/javac?
20729         if test ! -x "$BOOT_JDK/bin/javac"; then
20730           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20731 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20732           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20733 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20734           BOOT_JDK_FOUND=no
20735         else
20736           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20737           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20738             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20739 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20740             BOOT_JDK_FOUND=no
20741           else
20742             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20743             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20744 
20745             # Extra M4 quote needed to protect [] in grep expression.
20746             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20747             if test "x$FOUND_VERSION_78" = x; then
20748               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20749 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20750               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20751 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20752               BOOT_JDK_FOUND=no
20753             else
20754               # We're done! :-)
20755               BOOT_JDK_FOUND=yes
20756 
20757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20758 
20759   # Input might be given as Windows format, start by converting to
20760   # unix format.
20761   path="$BOOT_JDK"
20762   new_path=`$CYGPATH -u "$path"`
20763 
20764   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20765   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20766   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20767   # "foo.exe" is OK but "foo" is an error.
20768   #
20769   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20770   # It is also a way to make sure we got the proper file name for the real test later on.
20771   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20772   if test "x$test_shortpath" = x; then
20773     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20774 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20775     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20776   fi
20777 
20778   # Call helper function which possibly converts this using DOS-style short mode.
20779   # If so, the updated path is stored in $new_path.
20780 
20781   input_path="$new_path"
20782   # Check if we need to convert this using DOS-style short mode. If the path
20783   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20784   # take no chances and rewrite it.
20785   # Note: m4 eats our [], so we need to use [ and ] instead.
20786   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20787   if test "x$has_forbidden_chars" != x; then
20788     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20789     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20790     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20791     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20792       # Going to short mode and back again did indeed matter. Since short mode is
20793       # case insensitive, let's make it lowercase to improve readability.
20794       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20795       # Now convert it back to Unix-style (cygpath)
20796       input_path=`$CYGPATH -u "$shortmode_path"`
20797       new_path="$input_path"
20798     fi
20799   fi
20800 
20801   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20802   if test "x$test_cygdrive_prefix" = x; then
20803     # As a simple fix, exclude /usr/bin since it's not a real path.
20804     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20805       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20806       # a path prefixed by /cygdrive for fixpath to work.
20807       new_path="$CYGWIN_ROOT_PATH$input_path"
20808     fi
20809   fi
20810 
20811 
20812   if test "x$path" != "x$new_path"; then
20813     BOOT_JDK="$new_path"
20814     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20815 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20816   fi
20817 
20818   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20819 
20820   path="$BOOT_JDK"
20821   has_colon=`$ECHO $path | $GREP ^.:`
20822   new_path="$path"
20823   if test "x$has_colon" = x; then
20824     # Not in mixed or Windows style, start by that.
20825     new_path=`cmd //c echo $path`
20826   fi
20827 
20828 
20829   input_path="$new_path"
20830   # Check if we need to convert this using DOS-style short mode. If the path
20831   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20832   # take no chances and rewrite it.
20833   # Note: m4 eats our [], so we need to use [ and ] instead.
20834   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20835   if test "x$has_forbidden_chars" != x; then
20836     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20837     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20838   fi
20839 
20840 
20841   windows_path="$new_path"
20842   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20843     unix_path=`$CYGPATH -u "$windows_path"`
20844     new_path="$unix_path"
20845   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20846     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20847     new_path="$unix_path"
20848   fi
20849 
20850   if test "x$path" != "x$new_path"; then
20851     BOOT_JDK="$new_path"
20852     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20853 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20854   fi
20855 
20856   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20857   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20858 
20859   else
20860     # We're on a posix platform. Hooray! :)
20861     path="$BOOT_JDK"
20862     has_space=`$ECHO "$path" | $GREP " "`
20863     if test "x$has_space" != x; then
20864       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20865 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20866       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20867     fi
20868 
20869     # Use eval to expand a potential ~
20870     eval path="$path"
20871     if test ! -f "$path" && test ! -d "$path"; then
20872       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20873     fi
20874 
20875     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20876   fi
20877 
20878               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20879 $as_echo_n "checking for Boot JDK... " >&6; }
20880               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20881 $as_echo "$BOOT_JDK" >&6; }
20882               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20883 $as_echo_n "checking Boot JDK version... " >&6; }
20884               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20885               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20886 $as_echo "$BOOT_JDK_VERSION" >&6; }
20887             fi # end check jdk version
20888           fi # end check rt.jar
20889         fi # end check javac
20890       fi # end check java
20891     fi # end check boot jdk found
20892   fi
20893 
20894 
20895   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20896 
20897   if test "x$BOOT_JDK_FOUND" = xno; then
20898     # Now execute the test
20899 
20900   if test -x /usr/libexec/java_home; then
20901     BOOT_JDK=`/usr/libexec/java_home`
20902     BOOT_JDK_FOUND=maybe
20903     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20904 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20905   fi
20906 
20907 
20908     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20909     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20910       # Do we have a bin/java?
20911       if test ! -x "$BOOT_JDK/bin/java"; then
20912         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20913 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20914         BOOT_JDK_FOUND=no
20915       else
20916         # Do we have a bin/javac?
20917         if test ! -x "$BOOT_JDK/bin/javac"; then
20918           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20919 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20920           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20921 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20922           BOOT_JDK_FOUND=no
20923         else
20924           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20925           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20926             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20927 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20928             BOOT_JDK_FOUND=no
20929           else
20930             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20931             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20932 
20933             # Extra M4 quote needed to protect [] in grep expression.
20934             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20935             if test "x$FOUND_VERSION_78" = x; then
20936               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20938               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20939 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20940               BOOT_JDK_FOUND=no
20941             else
20942               # We're done! :-)
20943               BOOT_JDK_FOUND=yes
20944 
20945   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20946 
20947   # Input might be given as Windows format, start by converting to
20948   # unix format.
20949   path="$BOOT_JDK"
20950   new_path=`$CYGPATH -u "$path"`
20951 
20952   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20953   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20954   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20955   # "foo.exe" is OK but "foo" is an error.
20956   #
20957   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20958   # It is also a way to make sure we got the proper file name for the real test later on.
20959   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20960   if test "x$test_shortpath" = x; then
20961     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20962 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20963     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20964   fi
20965 
20966   # Call helper function which possibly converts this using DOS-style short mode.
20967   # If so, the updated path is stored in $new_path.
20968 
20969   input_path="$new_path"
20970   # Check if we need to convert this using DOS-style short mode. If the path
20971   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20972   # take no chances and rewrite it.
20973   # Note: m4 eats our [], so we need to use [ and ] instead.
20974   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20975   if test "x$has_forbidden_chars" != x; then
20976     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20977     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20978     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20979     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20980       # Going to short mode and back again did indeed matter. Since short mode is
20981       # case insensitive, let's make it lowercase to improve readability.
20982       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20983       # Now convert it back to Unix-style (cygpath)
20984       input_path=`$CYGPATH -u "$shortmode_path"`
20985       new_path="$input_path"
20986     fi
20987   fi
20988 
20989   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20990   if test "x$test_cygdrive_prefix" = x; then
20991     # As a simple fix, exclude /usr/bin since it's not a real path.
20992     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20993       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20994       # a path prefixed by /cygdrive for fixpath to work.
20995       new_path="$CYGWIN_ROOT_PATH$input_path"
20996     fi
20997   fi
20998 
20999 
21000   if test "x$path" != "x$new_path"; then
21001     BOOT_JDK="$new_path"
21002     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21003 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21004   fi
21005 
21006   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21007 
21008   path="$BOOT_JDK"
21009   has_colon=`$ECHO $path | $GREP ^.:`
21010   new_path="$path"
21011   if test "x$has_colon" = x; then
21012     # Not in mixed or Windows style, start by that.
21013     new_path=`cmd //c echo $path`
21014   fi
21015 
21016 
21017   input_path="$new_path"
21018   # Check if we need to convert this using DOS-style short mode. If the path
21019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21020   # take no chances and rewrite it.
21021   # Note: m4 eats our [], so we need to use [ and ] instead.
21022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21023   if test "x$has_forbidden_chars" != x; then
21024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21025     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21026   fi
21027 
21028 
21029   windows_path="$new_path"
21030   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21031     unix_path=`$CYGPATH -u "$windows_path"`
21032     new_path="$unix_path"
21033   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21034     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21035     new_path="$unix_path"
21036   fi
21037 
21038   if test "x$path" != "x$new_path"; then
21039     BOOT_JDK="$new_path"
21040     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21041 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21042   fi
21043 
21044   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21045   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21046 
21047   else
21048     # We're on a posix platform. Hooray! :)
21049     path="$BOOT_JDK"
21050     has_space=`$ECHO "$path" | $GREP " "`
21051     if test "x$has_space" != x; then
21052       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21053 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21054       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21055     fi
21056 
21057     # Use eval to expand a potential ~
21058     eval path="$path"
21059     if test ! -f "$path" && test ! -d "$path"; then
21060       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21061     fi
21062 
21063     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21064   fi
21065 
21066               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21067 $as_echo_n "checking for Boot JDK... " >&6; }
21068               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21069 $as_echo "$BOOT_JDK" >&6; }
21070               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21071 $as_echo_n "checking Boot JDK version... " >&6; }
21072               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21073               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21074 $as_echo "$BOOT_JDK_VERSION" >&6; }
21075             fi # end check jdk version
21076           fi # end check rt.jar
21077         fi # end check javac
21078       fi # end check java
21079     fi # end check boot jdk found
21080   fi
21081 
21082 
21083   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21084 
21085   if test "x$BOOT_JDK_FOUND" = xno; then
21086     # Now execute the test
21087 
21088   # Extract the first word of "javac", so it can be a program name with args.
21089 set dummy javac; ac_word=$2
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21091 $as_echo_n "checking for $ac_word... " >&6; }
21092 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21093   $as_echo_n "(cached) " >&6
21094 else
21095   case $JAVAC_CHECK in
21096   [\\/]* | ?:[\\/]*)
21097   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21098   ;;
21099   *)
21100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21101 for as_dir in $PATH
21102 do
21103   IFS=$as_save_IFS
21104   test -z "$as_dir" && as_dir=.
21105     for ac_exec_ext in '' $ac_executable_extensions; do
21106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21107     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21109     break 2
21110   fi
21111 done
21112   done
21113 IFS=$as_save_IFS
21114 
21115   ;;
21116 esac
21117 fi
21118 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21119 if test -n "$JAVAC_CHECK"; then
21120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21121 $as_echo "$JAVAC_CHECK" >&6; }
21122 else
21123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21124 $as_echo "no" >&6; }
21125 fi
21126 
21127 
21128   # Extract the first word of "java", so it can be a program name with args.
21129 set dummy java; ac_word=$2
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21131 $as_echo_n "checking for $ac_word... " >&6; }
21132 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21133   $as_echo_n "(cached) " >&6
21134 else
21135   case $JAVA_CHECK in
21136   [\\/]* | ?:[\\/]*)
21137   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21138   ;;
21139   *)
21140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21141 for as_dir in $PATH
21142 do
21143   IFS=$as_save_IFS
21144   test -z "$as_dir" && as_dir=.
21145     for ac_exec_ext in '' $ac_executable_extensions; do
21146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21147     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21149     break 2
21150   fi
21151 done
21152   done
21153 IFS=$as_save_IFS
21154 
21155   ;;
21156 esac
21157 fi
21158 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21159 if test -n "$JAVA_CHECK"; then
21160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21161 $as_echo "$JAVA_CHECK" >&6; }
21162 else
21163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21164 $as_echo "no" >&6; }
21165 fi
21166 
21167 
21168   BINARY="$JAVAC_CHECK"
21169   if test "x$JAVAC_CHECK" = x; then
21170     BINARY="$JAVA_CHECK"
21171   fi
21172   if test "x$BINARY" != x; then
21173     # So there is a java(c) binary, it might be part of a JDK.
21174     # Lets find the JDK/JRE directory by following symbolic links.
21175     # Linux/GNU systems often have links from /usr/bin/java to
21176     # /etc/alternatives/java to the real JDK binary.
21177 
21178   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21179     # Follow a chain of symbolic links. Use readlink
21180     # where it exists, else fall back to horribly
21181     # complicated shell code.
21182     if test "x$READLINK_TESTED" != yes; then
21183       # On MacOSX there is a readlink tool with a different
21184       # purpose than the GNU readlink tool. Check the found readlink.
21185       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21186       if test "x$ISGNU" = x; then
21187         # A readlink that we do not know how to use.
21188         # Are there other non-GNU readlinks out there?
21189         READLINK_TESTED=yes
21190         READLINK=
21191       fi
21192     fi
21193 
21194     if test "x$READLINK" != x; then
21195       BINARY=`$READLINK -f $BINARY`
21196     else
21197       # Save the current directory for restoring afterwards
21198       STARTDIR=$PWD
21199       COUNTER=0
21200       sym_link_dir=`$DIRNAME $BINARY`
21201       sym_link_file=`$BASENAME $BINARY`
21202       cd $sym_link_dir
21203       # Use -P flag to resolve symlinks in directories.
21204       cd `$THEPWDCMD -P`
21205       sym_link_dir=`$THEPWDCMD -P`
21206       # Resolve file symlinks
21207       while test $COUNTER -lt 20; do
21208         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21209         if test "x$ISLINK" == x; then
21210           # This is not a symbolic link! We are done!
21211           break
21212         fi
21213         # Again resolve directory symlinks since the target of the just found
21214         # link could be in a different directory
21215         cd `$DIRNAME $ISLINK`
21216         sym_link_dir=`$THEPWDCMD -P`
21217         sym_link_file=`$BASENAME $ISLINK`
21218         let COUNTER=COUNTER+1
21219       done
21220       cd $STARTDIR
21221       BINARY=$sym_link_dir/$sym_link_file
21222     fi
21223   fi
21224 
21225     BOOT_JDK=`dirname "$BINARY"`
21226     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21227     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21228       # Looks like we found ourselves an JDK
21229       BOOT_JDK_FOUND=maybe
21230       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21231 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21232     fi
21233   fi
21234 
21235 
21236     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21237     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21238       # Do we have a bin/java?
21239       if test ! -x "$BOOT_JDK/bin/java"; then
21240         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21242         BOOT_JDK_FOUND=no
21243       else
21244         # Do we have a bin/javac?
21245         if test ! -x "$BOOT_JDK/bin/javac"; then
21246           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21248           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21249 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21250           BOOT_JDK_FOUND=no
21251         else
21252           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21253           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21254             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21256             BOOT_JDK_FOUND=no
21257           else
21258             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21259             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21260 
21261             # Extra M4 quote needed to protect [] in grep expression.
21262             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21263             if test "x$FOUND_VERSION_78" = x; then
21264               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21266               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21267 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21268               BOOT_JDK_FOUND=no
21269             else
21270               # We're done! :-)
21271               BOOT_JDK_FOUND=yes
21272 
21273   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21274 
21275   # Input might be given as Windows format, start by converting to
21276   # unix format.
21277   path="$BOOT_JDK"
21278   new_path=`$CYGPATH -u "$path"`
21279 
21280   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21281   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21282   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21283   # "foo.exe" is OK but "foo" is an error.
21284   #
21285   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21286   # It is also a way to make sure we got the proper file name for the real test later on.
21287   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21288   if test "x$test_shortpath" = x; then
21289     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21290 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21291     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21292   fi
21293 
21294   # Call helper function which possibly converts this using DOS-style short mode.
21295   # If so, the updated path is stored in $new_path.
21296 
21297   input_path="$new_path"
21298   # Check if we need to convert this using DOS-style short mode. If the path
21299   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21300   # take no chances and rewrite it.
21301   # Note: m4 eats our [], so we need to use [ and ] instead.
21302   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21303   if test "x$has_forbidden_chars" != x; then
21304     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21305     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21306     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21307     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21308       # Going to short mode and back again did indeed matter. Since short mode is
21309       # case insensitive, let's make it lowercase to improve readability.
21310       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21311       # Now convert it back to Unix-style (cygpath)
21312       input_path=`$CYGPATH -u "$shortmode_path"`
21313       new_path="$input_path"
21314     fi
21315   fi
21316 
21317   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21318   if test "x$test_cygdrive_prefix" = x; then
21319     # As a simple fix, exclude /usr/bin since it's not a real path.
21320     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21321       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21322       # a path prefixed by /cygdrive for fixpath to work.
21323       new_path="$CYGWIN_ROOT_PATH$input_path"
21324     fi
21325   fi
21326 
21327 
21328   if test "x$path" != "x$new_path"; then
21329     BOOT_JDK="$new_path"
21330     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21331 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21332   fi
21333 
21334   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21335 
21336   path="$BOOT_JDK"
21337   has_colon=`$ECHO $path | $GREP ^.:`
21338   new_path="$path"
21339   if test "x$has_colon" = x; then
21340     # Not in mixed or Windows style, start by that.
21341     new_path=`cmd //c echo $path`
21342   fi
21343 
21344 
21345   input_path="$new_path"
21346   # Check if we need to convert this using DOS-style short mode. If the path
21347   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21348   # take no chances and rewrite it.
21349   # Note: m4 eats our [], so we need to use [ and ] instead.
21350   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21351   if test "x$has_forbidden_chars" != x; then
21352     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21353     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21354   fi
21355 
21356 
21357   windows_path="$new_path"
21358   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21359     unix_path=`$CYGPATH -u "$windows_path"`
21360     new_path="$unix_path"
21361   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21362     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21363     new_path="$unix_path"
21364   fi
21365 
21366   if test "x$path" != "x$new_path"; then
21367     BOOT_JDK="$new_path"
21368     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21369 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21370   fi
21371 
21372   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21373   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21374 
21375   else
21376     # We're on a posix platform. Hooray! :)
21377     path="$BOOT_JDK"
21378     has_space=`$ECHO "$path" | $GREP " "`
21379     if test "x$has_space" != x; then
21380       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21381 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21382       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21383     fi
21384 
21385     # Use eval to expand a potential ~
21386     eval path="$path"
21387     if test ! -f "$path" && test ! -d "$path"; then
21388       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21389     fi
21390 
21391     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21392   fi
21393 
21394               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21395 $as_echo_n "checking for Boot JDK... " >&6; }
21396               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21397 $as_echo "$BOOT_JDK" >&6; }
21398               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21399 $as_echo_n "checking Boot JDK version... " >&6; }
21400               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21402 $as_echo "$BOOT_JDK_VERSION" >&6; }
21403             fi # end check jdk version
21404           fi # end check rt.jar
21405         fi # end check javac
21406       fi # end check java
21407     fi # end check boot jdk found
21408   fi
21409 
21410 
21411   # Test: Is there a JDK installed in default, well-known locations?
21412 
21413   if test "x$BOOT_JDK_FOUND" = xno; then
21414     # Now execute the test
21415 
21416   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21417 
21418   if test "x$BOOT_JDK_FOUND" = xno; then
21419     # Now execute the test
21420 
21421   if test "x$ProgramW6432" != x; then
21422     VIRTUAL_DIR="$ProgramW6432/Java"
21423 
21424   windows_path="$VIRTUAL_DIR"
21425   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21426     unix_path=`$CYGPATH -u "$windows_path"`
21427     VIRTUAL_DIR="$unix_path"
21428   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21429     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21430     VIRTUAL_DIR="$unix_path"
21431   fi
21432 
21433 
21434   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21435   BOOT_JDK_SUFFIX=""
21436   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21437   if test "x$ALL_JDKS_FOUND" != x; then
21438     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21439 
21440   if test "x$BOOT_JDK_FOUND" = xno; then
21441     # Now execute the test
21442 
21443         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21444         if test -d "$BOOT_JDK"; then
21445           BOOT_JDK_FOUND=maybe
21446           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21447 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21448         fi
21449 
21450 
21451     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21452     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21453       # Do we have a bin/java?
21454       if test ! -x "$BOOT_JDK/bin/java"; then
21455         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21456 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21457         BOOT_JDK_FOUND=no
21458       else
21459         # Do we have a bin/javac?
21460         if test ! -x "$BOOT_JDK/bin/javac"; then
21461           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21462 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21463           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21464 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21465           BOOT_JDK_FOUND=no
21466         else
21467           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21468           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21469             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21470 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21471             BOOT_JDK_FOUND=no
21472           else
21473             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21474             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21475 
21476             # Extra M4 quote needed to protect [] in grep expression.
21477             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21478             if test "x$FOUND_VERSION_78" = x; then
21479               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21480 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21481               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21482 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21483               BOOT_JDK_FOUND=no
21484             else
21485               # We're done! :-)
21486               BOOT_JDK_FOUND=yes
21487 
21488   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21489 
21490   # Input might be given as Windows format, start by converting to
21491   # unix format.
21492   path="$BOOT_JDK"
21493   new_path=`$CYGPATH -u "$path"`
21494 
21495   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21496   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21497   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21498   # "foo.exe" is OK but "foo" is an error.
21499   #
21500   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21501   # It is also a way to make sure we got the proper file name for the real test later on.
21502   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21503   if test "x$test_shortpath" = x; then
21504     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21505 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21506     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21507   fi
21508 
21509   # Call helper function which possibly converts this using DOS-style short mode.
21510   # If so, the updated path is stored in $new_path.
21511 
21512   input_path="$new_path"
21513   # Check if we need to convert this using DOS-style short mode. If the path
21514   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21515   # take no chances and rewrite it.
21516   # Note: m4 eats our [], so we need to use [ and ] instead.
21517   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21518   if test "x$has_forbidden_chars" != x; then
21519     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21520     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21521     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21522     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21523       # Going to short mode and back again did indeed matter. Since short mode is
21524       # case insensitive, let's make it lowercase to improve readability.
21525       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21526       # Now convert it back to Unix-style (cygpath)
21527       input_path=`$CYGPATH -u "$shortmode_path"`
21528       new_path="$input_path"
21529     fi
21530   fi
21531 
21532   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21533   if test "x$test_cygdrive_prefix" = x; then
21534     # As a simple fix, exclude /usr/bin since it's not a real path.
21535     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21536       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21537       # a path prefixed by /cygdrive for fixpath to work.
21538       new_path="$CYGWIN_ROOT_PATH$input_path"
21539     fi
21540   fi
21541 
21542 
21543   if test "x$path" != "x$new_path"; then
21544     BOOT_JDK="$new_path"
21545     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21546 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21547   fi
21548 
21549   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21550 
21551   path="$BOOT_JDK"
21552   has_colon=`$ECHO $path | $GREP ^.:`
21553   new_path="$path"
21554   if test "x$has_colon" = x; then
21555     # Not in mixed or Windows style, start by that.
21556     new_path=`cmd //c echo $path`
21557   fi
21558 
21559 
21560   input_path="$new_path"
21561   # Check if we need to convert this using DOS-style short mode. If the path
21562   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21563   # take no chances and rewrite it.
21564   # Note: m4 eats our [], so we need to use [ and ] instead.
21565   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21566   if test "x$has_forbidden_chars" != x; then
21567     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21568     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21569   fi
21570 
21571 
21572   windows_path="$new_path"
21573   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21574     unix_path=`$CYGPATH -u "$windows_path"`
21575     new_path="$unix_path"
21576   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21577     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21578     new_path="$unix_path"
21579   fi
21580 
21581   if test "x$path" != "x$new_path"; then
21582     BOOT_JDK="$new_path"
21583     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21584 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21585   fi
21586 
21587   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21588   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21589 
21590   else
21591     # We're on a posix platform. Hooray! :)
21592     path="$BOOT_JDK"
21593     has_space=`$ECHO "$path" | $GREP " "`
21594     if test "x$has_space" != x; then
21595       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21596 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21597       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21598     fi
21599 
21600     # Use eval to expand a potential ~
21601     eval path="$path"
21602     if test ! -f "$path" && test ! -d "$path"; then
21603       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21604     fi
21605 
21606     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21607   fi
21608 
21609               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21610 $as_echo_n "checking for Boot JDK... " >&6; }
21611               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21612 $as_echo "$BOOT_JDK" >&6; }
21613               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21614 $as_echo_n "checking Boot JDK version... " >&6; }
21615               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21616               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21617 $as_echo "$BOOT_JDK_VERSION" >&6; }
21618             fi # end check jdk version
21619           fi # end check rt.jar
21620         fi # end check javac
21621       fi # end check java
21622     fi # end check boot jdk found
21623   fi
21624 
21625     done
21626   fi
21627 
21628   fi
21629 
21630 
21631     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21632     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21633       # Do we have a bin/java?
21634       if test ! -x "$BOOT_JDK/bin/java"; then
21635         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21636 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21637         BOOT_JDK_FOUND=no
21638       else
21639         # Do we have a bin/javac?
21640         if test ! -x "$BOOT_JDK/bin/javac"; then
21641           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21642 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21643           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21644 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21645           BOOT_JDK_FOUND=no
21646         else
21647           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21648           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21649             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21651             BOOT_JDK_FOUND=no
21652           else
21653             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21654             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21655 
21656             # Extra M4 quote needed to protect [] in grep expression.
21657             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21658             if test "x$FOUND_VERSION_78" = x; then
21659               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21660 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21661               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21662 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21663               BOOT_JDK_FOUND=no
21664             else
21665               # We're done! :-)
21666               BOOT_JDK_FOUND=yes
21667 
21668   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21669 
21670   # Input might be given as Windows format, start by converting to
21671   # unix format.
21672   path="$BOOT_JDK"
21673   new_path=`$CYGPATH -u "$path"`
21674 
21675   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21676   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21677   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21678   # "foo.exe" is OK but "foo" is an error.
21679   #
21680   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21681   # It is also a way to make sure we got the proper file name for the real test later on.
21682   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21683   if test "x$test_shortpath" = x; then
21684     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21685 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21686     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21687   fi
21688 
21689   # Call helper function which possibly converts this using DOS-style short mode.
21690   # If so, the updated path is stored in $new_path.
21691 
21692   input_path="$new_path"
21693   # Check if we need to convert this using DOS-style short mode. If the path
21694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21695   # take no chances and rewrite it.
21696   # Note: m4 eats our [], so we need to use [ and ] instead.
21697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21698   if test "x$has_forbidden_chars" != x; then
21699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21700     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21701     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21702     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21703       # Going to short mode and back again did indeed matter. Since short mode is
21704       # case insensitive, let's make it lowercase to improve readability.
21705       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21706       # Now convert it back to Unix-style (cygpath)
21707       input_path=`$CYGPATH -u "$shortmode_path"`
21708       new_path="$input_path"
21709     fi
21710   fi
21711 
21712   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21713   if test "x$test_cygdrive_prefix" = x; then
21714     # As a simple fix, exclude /usr/bin since it's not a real path.
21715     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21716       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21717       # a path prefixed by /cygdrive for fixpath to work.
21718       new_path="$CYGWIN_ROOT_PATH$input_path"
21719     fi
21720   fi
21721 
21722 
21723   if test "x$path" != "x$new_path"; then
21724     BOOT_JDK="$new_path"
21725     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21726 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21727   fi
21728 
21729   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21730 
21731   path="$BOOT_JDK"
21732   has_colon=`$ECHO $path | $GREP ^.:`
21733   new_path="$path"
21734   if test "x$has_colon" = x; then
21735     # Not in mixed or Windows style, start by that.
21736     new_path=`cmd //c echo $path`
21737   fi
21738 
21739 
21740   input_path="$new_path"
21741   # Check if we need to convert this using DOS-style short mode. If the path
21742   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21743   # take no chances and rewrite it.
21744   # Note: m4 eats our [], so we need to use [ and ] instead.
21745   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21746   if test "x$has_forbidden_chars" != x; then
21747     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21748     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21749   fi
21750 
21751 
21752   windows_path="$new_path"
21753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21754     unix_path=`$CYGPATH -u "$windows_path"`
21755     new_path="$unix_path"
21756   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21757     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21758     new_path="$unix_path"
21759   fi
21760 
21761   if test "x$path" != "x$new_path"; then
21762     BOOT_JDK="$new_path"
21763     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21764 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21765   fi
21766 
21767   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21768   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21769 
21770   else
21771     # We're on a posix platform. Hooray! :)
21772     path="$BOOT_JDK"
21773     has_space=`$ECHO "$path" | $GREP " "`
21774     if test "x$has_space" != x; then
21775       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21776 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21777       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21778     fi
21779 
21780     # Use eval to expand a potential ~
21781     eval path="$path"
21782     if test ! -f "$path" && test ! -d "$path"; then
21783       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21784     fi
21785 
21786     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21787   fi
21788 
21789               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21790 $as_echo_n "checking for Boot JDK... " >&6; }
21791               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21792 $as_echo "$BOOT_JDK" >&6; }
21793               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21794 $as_echo_n "checking Boot JDK version... " >&6; }
21795               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21796               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21797 $as_echo "$BOOT_JDK_VERSION" >&6; }
21798             fi # end check jdk version
21799           fi # end check rt.jar
21800         fi # end check javac
21801       fi # end check java
21802     fi # end check boot jdk found
21803   fi
21804 
21805 
21806   if test "x$BOOT_JDK_FOUND" = xno; then
21807     # Now execute the test
21808 
21809   if test "x$PROGRAMW6432" != x; then
21810     VIRTUAL_DIR="$PROGRAMW6432/Java"
21811 
21812   windows_path="$VIRTUAL_DIR"
21813   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21814     unix_path=`$CYGPATH -u "$windows_path"`
21815     VIRTUAL_DIR="$unix_path"
21816   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21817     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21818     VIRTUAL_DIR="$unix_path"
21819   fi
21820 
21821 
21822   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21823   BOOT_JDK_SUFFIX=""
21824   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21825   if test "x$ALL_JDKS_FOUND" != x; then
21826     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21827 
21828   if test "x$BOOT_JDK_FOUND" = xno; then
21829     # Now execute the test
21830 
21831         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21832         if test -d "$BOOT_JDK"; then
21833           BOOT_JDK_FOUND=maybe
21834           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21835 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21836         fi
21837 
21838 
21839     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21840     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21841       # Do we have a bin/java?
21842       if test ! -x "$BOOT_JDK/bin/java"; then
21843         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21844 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21845         BOOT_JDK_FOUND=no
21846       else
21847         # Do we have a bin/javac?
21848         if test ! -x "$BOOT_JDK/bin/javac"; then
21849           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21850 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21851           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21852 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21853           BOOT_JDK_FOUND=no
21854         else
21855           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21856           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21857             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21859             BOOT_JDK_FOUND=no
21860           else
21861             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21862             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21863 
21864             # Extra M4 quote needed to protect [] in grep expression.
21865             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21866             if test "x$FOUND_VERSION_78" = x; then
21867               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21869               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21870 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21871               BOOT_JDK_FOUND=no
21872             else
21873               # We're done! :-)
21874               BOOT_JDK_FOUND=yes
21875 
21876   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21877 
21878   # Input might be given as Windows format, start by converting to
21879   # unix format.
21880   path="$BOOT_JDK"
21881   new_path=`$CYGPATH -u "$path"`
21882 
21883   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21884   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21885   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21886   # "foo.exe" is OK but "foo" is an error.
21887   #
21888   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21889   # It is also a way to make sure we got the proper file name for the real test later on.
21890   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21891   if test "x$test_shortpath" = x; then
21892     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21893 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21894     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21895   fi
21896 
21897   # Call helper function which possibly converts this using DOS-style short mode.
21898   # If so, the updated path is stored in $new_path.
21899 
21900   input_path="$new_path"
21901   # Check if we need to convert this using DOS-style short mode. If the path
21902   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21903   # take no chances and rewrite it.
21904   # Note: m4 eats our [], so we need to use [ and ] instead.
21905   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21906   if test "x$has_forbidden_chars" != x; then
21907     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21908     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21909     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21910     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21911       # Going to short mode and back again did indeed matter. Since short mode is
21912       # case insensitive, let's make it lowercase to improve readability.
21913       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21914       # Now convert it back to Unix-style (cygpath)
21915       input_path=`$CYGPATH -u "$shortmode_path"`
21916       new_path="$input_path"
21917     fi
21918   fi
21919 
21920   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21921   if test "x$test_cygdrive_prefix" = x; then
21922     # As a simple fix, exclude /usr/bin since it's not a real path.
21923     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21924       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21925       # a path prefixed by /cygdrive for fixpath to work.
21926       new_path="$CYGWIN_ROOT_PATH$input_path"
21927     fi
21928   fi
21929 
21930 
21931   if test "x$path" != "x$new_path"; then
21932     BOOT_JDK="$new_path"
21933     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21935   fi
21936 
21937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21938 
21939   path="$BOOT_JDK"
21940   has_colon=`$ECHO $path | $GREP ^.:`
21941   new_path="$path"
21942   if test "x$has_colon" = x; then
21943     # Not in mixed or Windows style, start by that.
21944     new_path=`cmd //c echo $path`
21945   fi
21946 
21947 
21948   input_path="$new_path"
21949   # Check if we need to convert this using DOS-style short mode. If the path
21950   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21951   # take no chances and rewrite it.
21952   # Note: m4 eats our [], so we need to use [ and ] instead.
21953   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21954   if test "x$has_forbidden_chars" != x; then
21955     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21956     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21957   fi
21958 
21959 
21960   windows_path="$new_path"
21961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21962     unix_path=`$CYGPATH -u "$windows_path"`
21963     new_path="$unix_path"
21964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21965     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21966     new_path="$unix_path"
21967   fi
21968 
21969   if test "x$path" != "x$new_path"; then
21970     BOOT_JDK="$new_path"
21971     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21972 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21973   fi
21974 
21975   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21976   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21977 
21978   else
21979     # We're on a posix platform. Hooray! :)
21980     path="$BOOT_JDK"
21981     has_space=`$ECHO "$path" | $GREP " "`
21982     if test "x$has_space" != x; then
21983       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21984 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21985       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21986     fi
21987 
21988     # Use eval to expand a potential ~
21989     eval path="$path"
21990     if test ! -f "$path" && test ! -d "$path"; then
21991       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21992     fi
21993 
21994     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21995   fi
21996 
21997               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21998 $as_echo_n "checking for Boot JDK... " >&6; }
21999               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22000 $as_echo "$BOOT_JDK" >&6; }
22001               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22002 $as_echo_n "checking Boot JDK version... " >&6; }
22003               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22004               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22005 $as_echo "$BOOT_JDK_VERSION" >&6; }
22006             fi # end check jdk version
22007           fi # end check rt.jar
22008         fi # end check javac
22009       fi # end check java
22010     fi # end check boot jdk found
22011   fi
22012 
22013     done
22014   fi
22015 
22016   fi
22017 
22018 
22019     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22020     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22021       # Do we have a bin/java?
22022       if test ! -x "$BOOT_JDK/bin/java"; then
22023         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22024 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22025         BOOT_JDK_FOUND=no
22026       else
22027         # Do we have a bin/javac?
22028         if test ! -x "$BOOT_JDK/bin/javac"; then
22029           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22031           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22032 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22033           BOOT_JDK_FOUND=no
22034         else
22035           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22036           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22037             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22039             BOOT_JDK_FOUND=no
22040           else
22041             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22042             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22043 
22044             # Extra M4 quote needed to protect [] in grep expression.
22045             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22046             if test "x$FOUND_VERSION_78" = x; then
22047               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22048 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22049               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22050 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22051               BOOT_JDK_FOUND=no
22052             else
22053               # We're done! :-)
22054               BOOT_JDK_FOUND=yes
22055 
22056   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22057 
22058   # Input might be given as Windows format, start by converting to
22059   # unix format.
22060   path="$BOOT_JDK"
22061   new_path=`$CYGPATH -u "$path"`
22062 
22063   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22064   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22065   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22066   # "foo.exe" is OK but "foo" is an error.
22067   #
22068   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22069   # It is also a way to make sure we got the proper file name for the real test later on.
22070   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22071   if test "x$test_shortpath" = x; then
22072     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22073 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22074     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22075   fi
22076 
22077   # Call helper function which possibly converts this using DOS-style short mode.
22078   # If so, the updated path is stored in $new_path.
22079 
22080   input_path="$new_path"
22081   # Check if we need to convert this using DOS-style short mode. If the path
22082   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22083   # take no chances and rewrite it.
22084   # Note: m4 eats our [], so we need to use [ and ] instead.
22085   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22086   if test "x$has_forbidden_chars" != x; then
22087     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22088     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22089     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22090     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22091       # Going to short mode and back again did indeed matter. Since short mode is
22092       # case insensitive, let's make it lowercase to improve readability.
22093       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22094       # Now convert it back to Unix-style (cygpath)
22095       input_path=`$CYGPATH -u "$shortmode_path"`
22096       new_path="$input_path"
22097     fi
22098   fi
22099 
22100   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22101   if test "x$test_cygdrive_prefix" = x; then
22102     # As a simple fix, exclude /usr/bin since it's not a real path.
22103     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22104       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22105       # a path prefixed by /cygdrive for fixpath to work.
22106       new_path="$CYGWIN_ROOT_PATH$input_path"
22107     fi
22108   fi
22109 
22110 
22111   if test "x$path" != "x$new_path"; then
22112     BOOT_JDK="$new_path"
22113     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22114 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22115   fi
22116 
22117   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22118 
22119   path="$BOOT_JDK"
22120   has_colon=`$ECHO $path | $GREP ^.:`
22121   new_path="$path"
22122   if test "x$has_colon" = x; then
22123     # Not in mixed or Windows style, start by that.
22124     new_path=`cmd //c echo $path`
22125   fi
22126 
22127 
22128   input_path="$new_path"
22129   # Check if we need to convert this using DOS-style short mode. If the path
22130   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22131   # take no chances and rewrite it.
22132   # Note: m4 eats our [], so we need to use [ and ] instead.
22133   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22134   if test "x$has_forbidden_chars" != x; then
22135     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22136     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22137   fi
22138 
22139 
22140   windows_path="$new_path"
22141   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22142     unix_path=`$CYGPATH -u "$windows_path"`
22143     new_path="$unix_path"
22144   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22145     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22146     new_path="$unix_path"
22147   fi
22148 
22149   if test "x$path" != "x$new_path"; then
22150     BOOT_JDK="$new_path"
22151     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22153   fi
22154 
22155   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22156   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22157 
22158   else
22159     # We're on a posix platform. Hooray! :)
22160     path="$BOOT_JDK"
22161     has_space=`$ECHO "$path" | $GREP " "`
22162     if test "x$has_space" != x; then
22163       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22164 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22165       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22166     fi
22167 
22168     # Use eval to expand a potential ~
22169     eval path="$path"
22170     if test ! -f "$path" && test ! -d "$path"; then
22171       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22172     fi
22173 
22174     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22175   fi
22176 
22177               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22178 $as_echo_n "checking for Boot JDK... " >&6; }
22179               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22180 $as_echo "$BOOT_JDK" >&6; }
22181               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22182 $as_echo_n "checking Boot JDK version... " >&6; }
22183               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22184               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22185 $as_echo "$BOOT_JDK_VERSION" >&6; }
22186             fi # end check jdk version
22187           fi # end check rt.jar
22188         fi # end check javac
22189       fi # end check java
22190     fi # end check boot jdk found
22191   fi
22192 
22193 
22194   if test "x$BOOT_JDK_FOUND" = xno; then
22195     # Now execute the test
22196 
22197   if test "x$PROGRAMFILES" != x; then
22198     VIRTUAL_DIR="$PROGRAMFILES/Java"
22199 
22200   windows_path="$VIRTUAL_DIR"
22201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22202     unix_path=`$CYGPATH -u "$windows_path"`
22203     VIRTUAL_DIR="$unix_path"
22204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22206     VIRTUAL_DIR="$unix_path"
22207   fi
22208 
22209 
22210   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22211   BOOT_JDK_SUFFIX=""
22212   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22213   if test "x$ALL_JDKS_FOUND" != x; then
22214     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22215 
22216   if test "x$BOOT_JDK_FOUND" = xno; then
22217     # Now execute the test
22218 
22219         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22220         if test -d "$BOOT_JDK"; then
22221           BOOT_JDK_FOUND=maybe
22222           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22223 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22224         fi
22225 
22226 
22227     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22228     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22229       # Do we have a bin/java?
22230       if test ! -x "$BOOT_JDK/bin/java"; then
22231         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22233         BOOT_JDK_FOUND=no
22234       else
22235         # Do we have a bin/javac?
22236         if test ! -x "$BOOT_JDK/bin/javac"; then
22237           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22239           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22240 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22241           BOOT_JDK_FOUND=no
22242         else
22243           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22244           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22245             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22247             BOOT_JDK_FOUND=no
22248           else
22249             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22250             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22251 
22252             # Extra M4 quote needed to protect [] in grep expression.
22253             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22254             if test "x$FOUND_VERSION_78" = x; then
22255               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22257               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22258 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22259               BOOT_JDK_FOUND=no
22260             else
22261               # We're done! :-)
22262               BOOT_JDK_FOUND=yes
22263 
22264   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22265 
22266   # Input might be given as Windows format, start by converting to
22267   # unix format.
22268   path="$BOOT_JDK"
22269   new_path=`$CYGPATH -u "$path"`
22270 
22271   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22272   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22273   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22274   # "foo.exe" is OK but "foo" is an error.
22275   #
22276   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22277   # It is also a way to make sure we got the proper file name for the real test later on.
22278   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22279   if test "x$test_shortpath" = x; then
22280     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22282     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22283   fi
22284 
22285   # Call helper function which possibly converts this using DOS-style short mode.
22286   # If so, the updated path is stored in $new_path.
22287 
22288   input_path="$new_path"
22289   # Check if we need to convert this using DOS-style short mode. If the path
22290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22291   # take no chances and rewrite it.
22292   # Note: m4 eats our [], so we need to use [ and ] instead.
22293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22294   if test "x$has_forbidden_chars" != x; then
22295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22296     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22297     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22298     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22299       # Going to short mode and back again did indeed matter. Since short mode is
22300       # case insensitive, let's make it lowercase to improve readability.
22301       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22302       # Now convert it back to Unix-style (cygpath)
22303       input_path=`$CYGPATH -u "$shortmode_path"`
22304       new_path="$input_path"
22305     fi
22306   fi
22307 
22308   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22309   if test "x$test_cygdrive_prefix" = x; then
22310     # As a simple fix, exclude /usr/bin since it's not a real path.
22311     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22312       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22313       # a path prefixed by /cygdrive for fixpath to work.
22314       new_path="$CYGWIN_ROOT_PATH$input_path"
22315     fi
22316   fi
22317 
22318 
22319   if test "x$path" != "x$new_path"; then
22320     BOOT_JDK="$new_path"
22321     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22323   fi
22324 
22325   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22326 
22327   path="$BOOT_JDK"
22328   has_colon=`$ECHO $path | $GREP ^.:`
22329   new_path="$path"
22330   if test "x$has_colon" = x; then
22331     # Not in mixed or Windows style, start by that.
22332     new_path=`cmd //c echo $path`
22333   fi
22334 
22335 
22336   input_path="$new_path"
22337   # Check if we need to convert this using DOS-style short mode. If the path
22338   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22339   # take no chances and rewrite it.
22340   # Note: m4 eats our [], so we need to use [ and ] instead.
22341   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22342   if test "x$has_forbidden_chars" != x; then
22343     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22344     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22345   fi
22346 
22347 
22348   windows_path="$new_path"
22349   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22350     unix_path=`$CYGPATH -u "$windows_path"`
22351     new_path="$unix_path"
22352   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22353     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22354     new_path="$unix_path"
22355   fi
22356 
22357   if test "x$path" != "x$new_path"; then
22358     BOOT_JDK="$new_path"
22359     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22361   fi
22362 
22363   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22364   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22365 
22366   else
22367     # We're on a posix platform. Hooray! :)
22368     path="$BOOT_JDK"
22369     has_space=`$ECHO "$path" | $GREP " "`
22370     if test "x$has_space" != x; then
22371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22372 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22373       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22374     fi
22375 
22376     # Use eval to expand a potential ~
22377     eval path="$path"
22378     if test ! -f "$path" && test ! -d "$path"; then
22379       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22380     fi
22381 
22382     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22383   fi
22384 
22385               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22386 $as_echo_n "checking for Boot JDK... " >&6; }
22387               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22388 $as_echo "$BOOT_JDK" >&6; }
22389               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22390 $as_echo_n "checking Boot JDK version... " >&6; }
22391               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22392               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22393 $as_echo "$BOOT_JDK_VERSION" >&6; }
22394             fi # end check jdk version
22395           fi # end check rt.jar
22396         fi # end check javac
22397       fi # end check java
22398     fi # end check boot jdk found
22399   fi
22400 
22401     done
22402   fi
22403 
22404   fi
22405 
22406 
22407     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22408     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22409       # Do we have a bin/java?
22410       if test ! -x "$BOOT_JDK/bin/java"; then
22411         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22412 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22413         BOOT_JDK_FOUND=no
22414       else
22415         # Do we have a bin/javac?
22416         if test ! -x "$BOOT_JDK/bin/javac"; then
22417           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22418 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22419           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22420 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22421           BOOT_JDK_FOUND=no
22422         else
22423           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22424           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22425             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22427             BOOT_JDK_FOUND=no
22428           else
22429             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22430             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22431 
22432             # Extra M4 quote needed to protect [] in grep expression.
22433             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22434             if test "x$FOUND_VERSION_78" = x; then
22435               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22436 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22437               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22438 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22439               BOOT_JDK_FOUND=no
22440             else
22441               # We're done! :-)
22442               BOOT_JDK_FOUND=yes
22443 
22444   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22445 
22446   # Input might be given as Windows format, start by converting to
22447   # unix format.
22448   path="$BOOT_JDK"
22449   new_path=`$CYGPATH -u "$path"`
22450 
22451   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22452   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22453   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22454   # "foo.exe" is OK but "foo" is an error.
22455   #
22456   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22457   # It is also a way to make sure we got the proper file name for the real test later on.
22458   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22459   if test "x$test_shortpath" = x; then
22460     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22461 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22462     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22463   fi
22464 
22465   # Call helper function which possibly converts this using DOS-style short mode.
22466   # If so, the updated path is stored in $new_path.
22467 
22468   input_path="$new_path"
22469   # Check if we need to convert this using DOS-style short mode. If the path
22470   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22471   # take no chances and rewrite it.
22472   # Note: m4 eats our [], so we need to use [ and ] instead.
22473   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22474   if test "x$has_forbidden_chars" != x; then
22475     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22476     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22477     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22478     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22479       # Going to short mode and back again did indeed matter. Since short mode is
22480       # case insensitive, let's make it lowercase to improve readability.
22481       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22482       # Now convert it back to Unix-style (cygpath)
22483       input_path=`$CYGPATH -u "$shortmode_path"`
22484       new_path="$input_path"
22485     fi
22486   fi
22487 
22488   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22489   if test "x$test_cygdrive_prefix" = x; then
22490     # As a simple fix, exclude /usr/bin since it's not a real path.
22491     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22492       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22493       # a path prefixed by /cygdrive for fixpath to work.
22494       new_path="$CYGWIN_ROOT_PATH$input_path"
22495     fi
22496   fi
22497 
22498 
22499   if test "x$path" != "x$new_path"; then
22500     BOOT_JDK="$new_path"
22501     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22502 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22503   fi
22504 
22505   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22506 
22507   path="$BOOT_JDK"
22508   has_colon=`$ECHO $path | $GREP ^.:`
22509   new_path="$path"
22510   if test "x$has_colon" = x; then
22511     # Not in mixed or Windows style, start by that.
22512     new_path=`cmd //c echo $path`
22513   fi
22514 
22515 
22516   input_path="$new_path"
22517   # Check if we need to convert this using DOS-style short mode. If the path
22518   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22519   # take no chances and rewrite it.
22520   # Note: m4 eats our [], so we need to use [ and ] instead.
22521   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22522   if test "x$has_forbidden_chars" != x; then
22523     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22524     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22525   fi
22526 
22527 
22528   windows_path="$new_path"
22529   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22530     unix_path=`$CYGPATH -u "$windows_path"`
22531     new_path="$unix_path"
22532   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22533     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22534     new_path="$unix_path"
22535   fi
22536 
22537   if test "x$path" != "x$new_path"; then
22538     BOOT_JDK="$new_path"
22539     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22540 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22541   fi
22542 
22543   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22544   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22545 
22546   else
22547     # We're on a posix platform. Hooray! :)
22548     path="$BOOT_JDK"
22549     has_space=`$ECHO "$path" | $GREP " "`
22550     if test "x$has_space" != x; then
22551       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22552 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22553       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22554     fi
22555 
22556     # Use eval to expand a potential ~
22557     eval path="$path"
22558     if test ! -f "$path" && test ! -d "$path"; then
22559       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22560     fi
22561 
22562     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22563   fi
22564 
22565               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22566 $as_echo_n "checking for Boot JDK... " >&6; }
22567               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22568 $as_echo "$BOOT_JDK" >&6; }
22569               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22570 $as_echo_n "checking Boot JDK version... " >&6; }
22571               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22572               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22573 $as_echo "$BOOT_JDK_VERSION" >&6; }
22574             fi # end check jdk version
22575           fi # end check rt.jar
22576         fi # end check javac
22577       fi # end check java
22578     fi # end check boot jdk found
22579   fi
22580 
22581 
22582   if test "x$BOOT_JDK_FOUND" = xno; then
22583     # Now execute the test
22584 
22585   if test "x$ProgramFiles" != x; then
22586     VIRTUAL_DIR="$ProgramFiles/Java"
22587 
22588   windows_path="$VIRTUAL_DIR"
22589   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22590     unix_path=`$CYGPATH -u "$windows_path"`
22591     VIRTUAL_DIR="$unix_path"
22592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22593     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22594     VIRTUAL_DIR="$unix_path"
22595   fi
22596 
22597 
22598   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22599   BOOT_JDK_SUFFIX=""
22600   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22601   if test "x$ALL_JDKS_FOUND" != x; then
22602     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22603 
22604   if test "x$BOOT_JDK_FOUND" = xno; then
22605     # Now execute the test
22606 
22607         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22608         if test -d "$BOOT_JDK"; then
22609           BOOT_JDK_FOUND=maybe
22610           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22611 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22612         fi
22613 
22614 
22615     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22616     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22617       # Do we have a bin/java?
22618       if test ! -x "$BOOT_JDK/bin/java"; then
22619         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22621         BOOT_JDK_FOUND=no
22622       else
22623         # Do we have a bin/javac?
22624         if test ! -x "$BOOT_JDK/bin/javac"; then
22625           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22627           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22628 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22629           BOOT_JDK_FOUND=no
22630         else
22631           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22632           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22633             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22635             BOOT_JDK_FOUND=no
22636           else
22637             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22638             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22639 
22640             # Extra M4 quote needed to protect [] in grep expression.
22641             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22642             if test "x$FOUND_VERSION_78" = x; then
22643               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22645               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22646 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22647               BOOT_JDK_FOUND=no
22648             else
22649               # We're done! :-)
22650               BOOT_JDK_FOUND=yes
22651 
22652   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22653 
22654   # Input might be given as Windows format, start by converting to
22655   # unix format.
22656   path="$BOOT_JDK"
22657   new_path=`$CYGPATH -u "$path"`
22658 
22659   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22660   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22661   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22662   # "foo.exe" is OK but "foo" is an error.
22663   #
22664   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22665   # It is also a way to make sure we got the proper file name for the real test later on.
22666   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22667   if test "x$test_shortpath" = x; then
22668     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22670     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22671   fi
22672 
22673   # Call helper function which possibly converts this using DOS-style short mode.
22674   # If so, the updated path is stored in $new_path.
22675 
22676   input_path="$new_path"
22677   # Check if we need to convert this using DOS-style short mode. If the path
22678   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22679   # take no chances and rewrite it.
22680   # Note: m4 eats our [], so we need to use [ and ] instead.
22681   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22682   if test "x$has_forbidden_chars" != x; then
22683     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22684     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22685     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22686     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22687       # Going to short mode and back again did indeed matter. Since short mode is
22688       # case insensitive, let's make it lowercase to improve readability.
22689       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22690       # Now convert it back to Unix-style (cygpath)
22691       input_path=`$CYGPATH -u "$shortmode_path"`
22692       new_path="$input_path"
22693     fi
22694   fi
22695 
22696   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22697   if test "x$test_cygdrive_prefix" = x; then
22698     # As a simple fix, exclude /usr/bin since it's not a real path.
22699     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22700       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22701       # a path prefixed by /cygdrive for fixpath to work.
22702       new_path="$CYGWIN_ROOT_PATH$input_path"
22703     fi
22704   fi
22705 
22706 
22707   if test "x$path" != "x$new_path"; then
22708     BOOT_JDK="$new_path"
22709     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22711   fi
22712 
22713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22714 
22715   path="$BOOT_JDK"
22716   has_colon=`$ECHO $path | $GREP ^.:`
22717   new_path="$path"
22718   if test "x$has_colon" = x; then
22719     # Not in mixed or Windows style, start by that.
22720     new_path=`cmd //c echo $path`
22721   fi
22722 
22723 
22724   input_path="$new_path"
22725   # Check if we need to convert this using DOS-style short mode. If the path
22726   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22727   # take no chances and rewrite it.
22728   # Note: m4 eats our [], so we need to use [ and ] instead.
22729   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22730   if test "x$has_forbidden_chars" != x; then
22731     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22732     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22733   fi
22734 
22735 
22736   windows_path="$new_path"
22737   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22738     unix_path=`$CYGPATH -u "$windows_path"`
22739     new_path="$unix_path"
22740   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22741     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22742     new_path="$unix_path"
22743   fi
22744 
22745   if test "x$path" != "x$new_path"; then
22746     BOOT_JDK="$new_path"
22747     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22749   fi
22750 
22751   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22752   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22753 
22754   else
22755     # We're on a posix platform. Hooray! :)
22756     path="$BOOT_JDK"
22757     has_space=`$ECHO "$path" | $GREP " "`
22758     if test "x$has_space" != x; then
22759       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22761       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22762     fi
22763 
22764     # Use eval to expand a potential ~
22765     eval path="$path"
22766     if test ! -f "$path" && test ! -d "$path"; then
22767       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22768     fi
22769 
22770     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22771   fi
22772 
22773               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22774 $as_echo_n "checking for Boot JDK... " >&6; }
22775               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22776 $as_echo "$BOOT_JDK" >&6; }
22777               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22778 $as_echo_n "checking Boot JDK version... " >&6; }
22779               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22780               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22781 $as_echo "$BOOT_JDK_VERSION" >&6; }
22782             fi # end check jdk version
22783           fi # end check rt.jar
22784         fi # end check javac
22785       fi # end check java
22786     fi # end check boot jdk found
22787   fi
22788 
22789     done
22790   fi
22791 
22792   fi
22793 
22794 
22795     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22796     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22797       # Do we have a bin/java?
22798       if test ! -x "$BOOT_JDK/bin/java"; then
22799         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22801         BOOT_JDK_FOUND=no
22802       else
22803         # Do we have a bin/javac?
22804         if test ! -x "$BOOT_JDK/bin/javac"; then
22805           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22807           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22808 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22809           BOOT_JDK_FOUND=no
22810         else
22811           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22812           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22813             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22815             BOOT_JDK_FOUND=no
22816           else
22817             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22818             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22819 
22820             # Extra M4 quote needed to protect [] in grep expression.
22821             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22822             if test "x$FOUND_VERSION_78" = x; then
22823               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22825               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22826 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22827               BOOT_JDK_FOUND=no
22828             else
22829               # We're done! :-)
22830               BOOT_JDK_FOUND=yes
22831 
22832   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22833 
22834   # Input might be given as Windows format, start by converting to
22835   # unix format.
22836   path="$BOOT_JDK"
22837   new_path=`$CYGPATH -u "$path"`
22838 
22839   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22840   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22841   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22842   # "foo.exe" is OK but "foo" is an error.
22843   #
22844   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22845   # It is also a way to make sure we got the proper file name for the real test later on.
22846   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22847   if test "x$test_shortpath" = x; then
22848     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22849 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22850     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22851   fi
22852 
22853   # Call helper function which possibly converts this using DOS-style short mode.
22854   # If so, the updated path is stored in $new_path.
22855 
22856   input_path="$new_path"
22857   # Check if we need to convert this using DOS-style short mode. If the path
22858   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22859   # take no chances and rewrite it.
22860   # Note: m4 eats our [], so we need to use [ and ] instead.
22861   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22862   if test "x$has_forbidden_chars" != x; then
22863     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22864     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22865     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22866     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22867       # Going to short mode and back again did indeed matter. Since short mode is
22868       # case insensitive, let's make it lowercase to improve readability.
22869       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22870       # Now convert it back to Unix-style (cygpath)
22871       input_path=`$CYGPATH -u "$shortmode_path"`
22872       new_path="$input_path"
22873     fi
22874   fi
22875 
22876   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22877   if test "x$test_cygdrive_prefix" = x; then
22878     # As a simple fix, exclude /usr/bin since it's not a real path.
22879     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22880       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22881       # a path prefixed by /cygdrive for fixpath to work.
22882       new_path="$CYGWIN_ROOT_PATH$input_path"
22883     fi
22884   fi
22885 
22886 
22887   if test "x$path" != "x$new_path"; then
22888     BOOT_JDK="$new_path"
22889     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22890 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22891   fi
22892 
22893   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22894 
22895   path="$BOOT_JDK"
22896   has_colon=`$ECHO $path | $GREP ^.:`
22897   new_path="$path"
22898   if test "x$has_colon" = x; then
22899     # Not in mixed or Windows style, start by that.
22900     new_path=`cmd //c echo $path`
22901   fi
22902 
22903 
22904   input_path="$new_path"
22905   # Check if we need to convert this using DOS-style short mode. If the path
22906   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22907   # take no chances and rewrite it.
22908   # Note: m4 eats our [], so we need to use [ and ] instead.
22909   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22910   if test "x$has_forbidden_chars" != x; then
22911     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22912     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22913   fi
22914 
22915 
22916   windows_path="$new_path"
22917   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22918     unix_path=`$CYGPATH -u "$windows_path"`
22919     new_path="$unix_path"
22920   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22921     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22922     new_path="$unix_path"
22923   fi
22924 
22925   if test "x$path" != "x$new_path"; then
22926     BOOT_JDK="$new_path"
22927     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22928 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22929   fi
22930 
22931   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22932   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22933 
22934   else
22935     # We're on a posix platform. Hooray! :)
22936     path="$BOOT_JDK"
22937     has_space=`$ECHO "$path" | $GREP " "`
22938     if test "x$has_space" != x; then
22939       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22940 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22941       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22942     fi
22943 
22944     # Use eval to expand a potential ~
22945     eval path="$path"
22946     if test ! -f "$path" && test ! -d "$path"; then
22947       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22948     fi
22949 
22950     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22951   fi
22952 
22953               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22954 $as_echo_n "checking for Boot JDK... " >&6; }
22955               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22956 $as_echo "$BOOT_JDK" >&6; }
22957               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22958 $as_echo_n "checking Boot JDK version... " >&6; }
22959               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22960               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22961 $as_echo "$BOOT_JDK_VERSION" >&6; }
22962             fi # end check jdk version
22963           fi # end check rt.jar
22964         fi # end check javac
22965       fi # end check java
22966     fi # end check boot jdk found
22967   fi
22968 
22969 
22970   if test "x$BOOT_JDK_FOUND" = xno; then
22971     # Now execute the test
22972 
22973   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22974   BOOT_JDK_SUFFIX=""
22975   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22976   if test "x$ALL_JDKS_FOUND" != x; then
22977     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22978 
22979   if test "x$BOOT_JDK_FOUND" = xno; then
22980     # Now execute the test
22981 
22982         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22983         if test -d "$BOOT_JDK"; then
22984           BOOT_JDK_FOUND=maybe
22985           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22986 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22987         fi
22988 
22989 
22990     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22991     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22992       # Do we have a bin/java?
22993       if test ! -x "$BOOT_JDK/bin/java"; then
22994         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22995 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22996         BOOT_JDK_FOUND=no
22997       else
22998         # Do we have a bin/javac?
22999         if test ! -x "$BOOT_JDK/bin/javac"; then
23000           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23001 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23002           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23003 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23004           BOOT_JDK_FOUND=no
23005         else
23006           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23007           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23008             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23009 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23010             BOOT_JDK_FOUND=no
23011           else
23012             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23013             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23014 
23015             # Extra M4 quote needed to protect [] in grep expression.
23016             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23017             if test "x$FOUND_VERSION_78" = x; then
23018               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23019 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23020               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23021 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23022               BOOT_JDK_FOUND=no
23023             else
23024               # We're done! :-)
23025               BOOT_JDK_FOUND=yes
23026 
23027   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23028 
23029   # Input might be given as Windows format, start by converting to
23030   # unix format.
23031   path="$BOOT_JDK"
23032   new_path=`$CYGPATH -u "$path"`
23033 
23034   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23035   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23036   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23037   # "foo.exe" is OK but "foo" is an error.
23038   #
23039   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23040   # It is also a way to make sure we got the proper file name for the real test later on.
23041   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23042   if test "x$test_shortpath" = x; then
23043     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23044 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23045     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23046   fi
23047 
23048   # Call helper function which possibly converts this using DOS-style short mode.
23049   # If so, the updated path is stored in $new_path.
23050 
23051   input_path="$new_path"
23052   # Check if we need to convert this using DOS-style short mode. If the path
23053   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23054   # take no chances and rewrite it.
23055   # Note: m4 eats our [], so we need to use [ and ] instead.
23056   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23057   if test "x$has_forbidden_chars" != x; then
23058     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23059     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23060     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23061     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23062       # Going to short mode and back again did indeed matter. Since short mode is
23063       # case insensitive, let's make it lowercase to improve readability.
23064       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23065       # Now convert it back to Unix-style (cygpath)
23066       input_path=`$CYGPATH -u "$shortmode_path"`
23067       new_path="$input_path"
23068     fi
23069   fi
23070 
23071   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23072   if test "x$test_cygdrive_prefix" = x; then
23073     # As a simple fix, exclude /usr/bin since it's not a real path.
23074     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23075       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23076       # a path prefixed by /cygdrive for fixpath to work.
23077       new_path="$CYGWIN_ROOT_PATH$input_path"
23078     fi
23079   fi
23080 
23081 
23082   if test "x$path" != "x$new_path"; then
23083     BOOT_JDK="$new_path"
23084     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23085 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23086   fi
23087 
23088   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23089 
23090   path="$BOOT_JDK"
23091   has_colon=`$ECHO $path | $GREP ^.:`
23092   new_path="$path"
23093   if test "x$has_colon" = x; then
23094     # Not in mixed or Windows style, start by that.
23095     new_path=`cmd //c echo $path`
23096   fi
23097 
23098 
23099   input_path="$new_path"
23100   # Check if we need to convert this using DOS-style short mode. If the path
23101   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23102   # take no chances and rewrite it.
23103   # Note: m4 eats our [], so we need to use [ and ] instead.
23104   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23105   if test "x$has_forbidden_chars" != x; then
23106     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23107     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23108   fi
23109 
23110 
23111   windows_path="$new_path"
23112   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23113     unix_path=`$CYGPATH -u "$windows_path"`
23114     new_path="$unix_path"
23115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23116     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23117     new_path="$unix_path"
23118   fi
23119 
23120   if test "x$path" != "x$new_path"; then
23121     BOOT_JDK="$new_path"
23122     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23123 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23124   fi
23125 
23126   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23127   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23128 
23129   else
23130     # We're on a posix platform. Hooray! :)
23131     path="$BOOT_JDK"
23132     has_space=`$ECHO "$path" | $GREP " "`
23133     if test "x$has_space" != x; then
23134       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23135 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23136       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23137     fi
23138 
23139     # Use eval to expand a potential ~
23140     eval path="$path"
23141     if test ! -f "$path" && test ! -d "$path"; then
23142       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23143     fi
23144 
23145     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23146   fi
23147 
23148               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23149 $as_echo_n "checking for Boot JDK... " >&6; }
23150               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23151 $as_echo "$BOOT_JDK" >&6; }
23152               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23153 $as_echo_n "checking Boot JDK version... " >&6; }
23154               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23155               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23156 $as_echo "$BOOT_JDK_VERSION" >&6; }
23157             fi # end check jdk version
23158           fi # end check rt.jar
23159         fi # end check javac
23160       fi # end check java
23161     fi # end check boot jdk found
23162   fi
23163 
23164     done
23165   fi
23166 
23167 
23168     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23169     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23170       # Do we have a bin/java?
23171       if test ! -x "$BOOT_JDK/bin/java"; then
23172         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23173 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23174         BOOT_JDK_FOUND=no
23175       else
23176         # Do we have a bin/javac?
23177         if test ! -x "$BOOT_JDK/bin/javac"; then
23178           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23179 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23180           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23181 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23182           BOOT_JDK_FOUND=no
23183         else
23184           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23185           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23186             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23188             BOOT_JDK_FOUND=no
23189           else
23190             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23191             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23192 
23193             # Extra M4 quote needed to protect [] in grep expression.
23194             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23195             if test "x$FOUND_VERSION_78" = x; then
23196               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23197 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23198               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23199 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23200               BOOT_JDK_FOUND=no
23201             else
23202               # We're done! :-)
23203               BOOT_JDK_FOUND=yes
23204 
23205   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23206 
23207   # Input might be given as Windows format, start by converting to
23208   # unix format.
23209   path="$BOOT_JDK"
23210   new_path=`$CYGPATH -u "$path"`
23211 
23212   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23213   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23214   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23215   # "foo.exe" is OK but "foo" is an error.
23216   #
23217   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23218   # It is also a way to make sure we got the proper file name for the real test later on.
23219   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23220   if test "x$test_shortpath" = x; then
23221     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23222 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23223     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23224   fi
23225 
23226   # Call helper function which possibly converts this using DOS-style short mode.
23227   # If so, the updated path is stored in $new_path.
23228 
23229   input_path="$new_path"
23230   # Check if we need to convert this using DOS-style short mode. If the path
23231   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23232   # take no chances and rewrite it.
23233   # Note: m4 eats our [], so we need to use [ and ] instead.
23234   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23235   if test "x$has_forbidden_chars" != x; then
23236     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23237     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23238     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23239     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23240       # Going to short mode and back again did indeed matter. Since short mode is
23241       # case insensitive, let's make it lowercase to improve readability.
23242       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23243       # Now convert it back to Unix-style (cygpath)
23244       input_path=`$CYGPATH -u "$shortmode_path"`
23245       new_path="$input_path"
23246     fi
23247   fi
23248 
23249   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23250   if test "x$test_cygdrive_prefix" = x; then
23251     # As a simple fix, exclude /usr/bin since it's not a real path.
23252     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23253       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23254       # a path prefixed by /cygdrive for fixpath to work.
23255       new_path="$CYGWIN_ROOT_PATH$input_path"
23256     fi
23257   fi
23258 
23259 
23260   if test "x$path" != "x$new_path"; then
23261     BOOT_JDK="$new_path"
23262     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23263 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23264   fi
23265 
23266   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23267 
23268   path="$BOOT_JDK"
23269   has_colon=`$ECHO $path | $GREP ^.:`
23270   new_path="$path"
23271   if test "x$has_colon" = x; then
23272     # Not in mixed or Windows style, start by that.
23273     new_path=`cmd //c echo $path`
23274   fi
23275 
23276 
23277   input_path="$new_path"
23278   # Check if we need to convert this using DOS-style short mode. If the path
23279   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23280   # take no chances and rewrite it.
23281   # Note: m4 eats our [], so we need to use [ and ] instead.
23282   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23283   if test "x$has_forbidden_chars" != x; then
23284     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23285     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23286   fi
23287 
23288 
23289   windows_path="$new_path"
23290   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23291     unix_path=`$CYGPATH -u "$windows_path"`
23292     new_path="$unix_path"
23293   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23294     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23295     new_path="$unix_path"
23296   fi
23297 
23298   if test "x$path" != "x$new_path"; then
23299     BOOT_JDK="$new_path"
23300     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23301 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23302   fi
23303 
23304   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23305   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23306 
23307   else
23308     # We're on a posix platform. Hooray! :)
23309     path="$BOOT_JDK"
23310     has_space=`$ECHO "$path" | $GREP " "`
23311     if test "x$has_space" != x; then
23312       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23313 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23314       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23315     fi
23316 
23317     # Use eval to expand a potential ~
23318     eval path="$path"
23319     if test ! -f "$path" && test ! -d "$path"; then
23320       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23321     fi
23322 
23323     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23324   fi
23325 
23326               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23327 $as_echo_n "checking for Boot JDK... " >&6; }
23328               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23329 $as_echo "$BOOT_JDK" >&6; }
23330               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23331 $as_echo_n "checking Boot JDK version... " >&6; }
23332               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23333               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23334 $as_echo "$BOOT_JDK_VERSION" >&6; }
23335             fi # end check jdk version
23336           fi # end check rt.jar
23337         fi # end check javac
23338       fi # end check java
23339     fi # end check boot jdk found
23340   fi
23341 
23342   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23343 
23344   if test "x$BOOT_JDK_FOUND" = xno; then
23345     # Now execute the test
23346 
23347   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23348   BOOT_JDK_SUFFIX="/Contents/Home"
23349   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23350   if test "x$ALL_JDKS_FOUND" != x; then
23351     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23352 
23353   if test "x$BOOT_JDK_FOUND" = xno; then
23354     # Now execute the test
23355 
23356         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23357         if test -d "$BOOT_JDK"; then
23358           BOOT_JDK_FOUND=maybe
23359           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23360 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23361         fi
23362 
23363 
23364     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23365     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23366       # Do we have a bin/java?
23367       if test ! -x "$BOOT_JDK/bin/java"; then
23368         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23370         BOOT_JDK_FOUND=no
23371       else
23372         # Do we have a bin/javac?
23373         if test ! -x "$BOOT_JDK/bin/javac"; then
23374           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23375 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23376           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23377 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23378           BOOT_JDK_FOUND=no
23379         else
23380           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23381           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23382             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23384             BOOT_JDK_FOUND=no
23385           else
23386             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23387             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23388 
23389             # Extra M4 quote needed to protect [] in grep expression.
23390             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23391             if test "x$FOUND_VERSION_78" = x; then
23392               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23393 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23394               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23395 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23396               BOOT_JDK_FOUND=no
23397             else
23398               # We're done! :-)
23399               BOOT_JDK_FOUND=yes
23400 
23401   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23402 
23403   # Input might be given as Windows format, start by converting to
23404   # unix format.
23405   path="$BOOT_JDK"
23406   new_path=`$CYGPATH -u "$path"`
23407 
23408   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23409   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23410   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23411   # "foo.exe" is OK but "foo" is an error.
23412   #
23413   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23414   # It is also a way to make sure we got the proper file name for the real test later on.
23415   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23416   if test "x$test_shortpath" = x; then
23417     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23418 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23419     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23420   fi
23421 
23422   # Call helper function which possibly converts this using DOS-style short mode.
23423   # If so, the updated path is stored in $new_path.
23424 
23425   input_path="$new_path"
23426   # Check if we need to convert this using DOS-style short mode. If the path
23427   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23428   # take no chances and rewrite it.
23429   # Note: m4 eats our [], so we need to use [ and ] instead.
23430   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23431   if test "x$has_forbidden_chars" != x; then
23432     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23433     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23434     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23435     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23436       # Going to short mode and back again did indeed matter. Since short mode is
23437       # case insensitive, let's make it lowercase to improve readability.
23438       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23439       # Now convert it back to Unix-style (cygpath)
23440       input_path=`$CYGPATH -u "$shortmode_path"`
23441       new_path="$input_path"
23442     fi
23443   fi
23444 
23445   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23446   if test "x$test_cygdrive_prefix" = x; then
23447     # As a simple fix, exclude /usr/bin since it's not a real path.
23448     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23449       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23450       # a path prefixed by /cygdrive for fixpath to work.
23451       new_path="$CYGWIN_ROOT_PATH$input_path"
23452     fi
23453   fi
23454 
23455 
23456   if test "x$path" != "x$new_path"; then
23457     BOOT_JDK="$new_path"
23458     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23459 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23460   fi
23461 
23462   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23463 
23464   path="$BOOT_JDK"
23465   has_colon=`$ECHO $path | $GREP ^.:`
23466   new_path="$path"
23467   if test "x$has_colon" = x; then
23468     # Not in mixed or Windows style, start by that.
23469     new_path=`cmd //c echo $path`
23470   fi
23471 
23472 
23473   input_path="$new_path"
23474   # Check if we need to convert this using DOS-style short mode. If the path
23475   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23476   # take no chances and rewrite it.
23477   # Note: m4 eats our [], so we need to use [ and ] instead.
23478   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23479   if test "x$has_forbidden_chars" != x; then
23480     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23481     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23482   fi
23483 
23484 
23485   windows_path="$new_path"
23486   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23487     unix_path=`$CYGPATH -u "$windows_path"`
23488     new_path="$unix_path"
23489   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23490     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23491     new_path="$unix_path"
23492   fi
23493 
23494   if test "x$path" != "x$new_path"; then
23495     BOOT_JDK="$new_path"
23496     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23497 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23498   fi
23499 
23500   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23501   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23502 
23503   else
23504     # We're on a posix platform. Hooray! :)
23505     path="$BOOT_JDK"
23506     has_space=`$ECHO "$path" | $GREP " "`
23507     if test "x$has_space" != x; then
23508       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23509 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23510       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23511     fi
23512 
23513     # Use eval to expand a potential ~
23514     eval path="$path"
23515     if test ! -f "$path" && test ! -d "$path"; then
23516       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23517     fi
23518 
23519     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23520   fi
23521 
23522               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23523 $as_echo_n "checking for Boot JDK... " >&6; }
23524               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23525 $as_echo "$BOOT_JDK" >&6; }
23526               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23527 $as_echo_n "checking Boot JDK version... " >&6; }
23528               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23529               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23530 $as_echo "$BOOT_JDK_VERSION" >&6; }
23531             fi # end check jdk version
23532           fi # end check rt.jar
23533         fi # end check javac
23534       fi # end check java
23535     fi # end check boot jdk found
23536   fi
23537 
23538     done
23539   fi
23540 
23541 
23542     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23543     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23544       # Do we have a bin/java?
23545       if test ! -x "$BOOT_JDK/bin/java"; then
23546         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23547 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23548         BOOT_JDK_FOUND=no
23549       else
23550         # Do we have a bin/javac?
23551         if test ! -x "$BOOT_JDK/bin/javac"; then
23552           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23553 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23554           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23555 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23556           BOOT_JDK_FOUND=no
23557         else
23558           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23559           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23560             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23562             BOOT_JDK_FOUND=no
23563           else
23564             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23565             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23566 
23567             # Extra M4 quote needed to protect [] in grep expression.
23568             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23569             if test "x$FOUND_VERSION_78" = x; then
23570               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23571 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23572               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23573 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23574               BOOT_JDK_FOUND=no
23575             else
23576               # We're done! :-)
23577               BOOT_JDK_FOUND=yes
23578 
23579   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23580 
23581   # Input might be given as Windows format, start by converting to
23582   # unix format.
23583   path="$BOOT_JDK"
23584   new_path=`$CYGPATH -u "$path"`
23585 
23586   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23587   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23588   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23589   # "foo.exe" is OK but "foo" is an error.
23590   #
23591   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23592   # It is also a way to make sure we got the proper file name for the real test later on.
23593   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23594   if test "x$test_shortpath" = x; then
23595     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23596 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23597     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23598   fi
23599 
23600   # Call helper function which possibly converts this using DOS-style short mode.
23601   # If so, the updated path is stored in $new_path.
23602 
23603   input_path="$new_path"
23604   # Check if we need to convert this using DOS-style short mode. If the path
23605   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23606   # take no chances and rewrite it.
23607   # Note: m4 eats our [], so we need to use [ and ] instead.
23608   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23609   if test "x$has_forbidden_chars" != x; then
23610     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23611     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23612     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23613     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23614       # Going to short mode and back again did indeed matter. Since short mode is
23615       # case insensitive, let's make it lowercase to improve readability.
23616       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23617       # Now convert it back to Unix-style (cygpath)
23618       input_path=`$CYGPATH -u "$shortmode_path"`
23619       new_path="$input_path"
23620     fi
23621   fi
23622 
23623   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23624   if test "x$test_cygdrive_prefix" = x; then
23625     # As a simple fix, exclude /usr/bin since it's not a real path.
23626     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23627       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23628       # a path prefixed by /cygdrive for fixpath to work.
23629       new_path="$CYGWIN_ROOT_PATH$input_path"
23630     fi
23631   fi
23632 
23633 
23634   if test "x$path" != "x$new_path"; then
23635     BOOT_JDK="$new_path"
23636     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23637 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23638   fi
23639 
23640   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23641 
23642   path="$BOOT_JDK"
23643   has_colon=`$ECHO $path | $GREP ^.:`
23644   new_path="$path"
23645   if test "x$has_colon" = x; then
23646     # Not in mixed or Windows style, start by that.
23647     new_path=`cmd //c echo $path`
23648   fi
23649 
23650 
23651   input_path="$new_path"
23652   # Check if we need to convert this using DOS-style short mode. If the path
23653   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23654   # take no chances and rewrite it.
23655   # Note: m4 eats our [], so we need to use [ and ] instead.
23656   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23657   if test "x$has_forbidden_chars" != x; then
23658     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23659     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23660   fi
23661 
23662 
23663   windows_path="$new_path"
23664   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23665     unix_path=`$CYGPATH -u "$windows_path"`
23666     new_path="$unix_path"
23667   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23668     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23669     new_path="$unix_path"
23670   fi
23671 
23672   if test "x$path" != "x$new_path"; then
23673     BOOT_JDK="$new_path"
23674     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23675 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23676   fi
23677 
23678   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23679   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23680 
23681   else
23682     # We're on a posix platform. Hooray! :)
23683     path="$BOOT_JDK"
23684     has_space=`$ECHO "$path" | $GREP " "`
23685     if test "x$has_space" != x; then
23686       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23687 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23688       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23689     fi
23690 
23691     # Use eval to expand a potential ~
23692     eval path="$path"
23693     if test ! -f "$path" && test ! -d "$path"; then
23694       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23695     fi
23696 
23697     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23698   fi
23699 
23700               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23701 $as_echo_n "checking for Boot JDK... " >&6; }
23702               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23703 $as_echo "$BOOT_JDK" >&6; }
23704               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23705 $as_echo_n "checking Boot JDK version... " >&6; }
23706               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23707               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23708 $as_echo "$BOOT_JDK_VERSION" >&6; }
23709             fi # end check jdk version
23710           fi # end check rt.jar
23711         fi # end check javac
23712       fi # end check java
23713     fi # end check boot jdk found
23714   fi
23715 
23716 
23717   if test "x$BOOT_JDK_FOUND" = xno; then
23718     # Now execute the test
23719 
23720   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23721   BOOT_JDK_SUFFIX="/Contents/Home"
23722   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23723   if test "x$ALL_JDKS_FOUND" != x; then
23724     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23725 
23726   if test "x$BOOT_JDK_FOUND" = xno; then
23727     # Now execute the test
23728 
23729         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23730         if test -d "$BOOT_JDK"; then
23731           BOOT_JDK_FOUND=maybe
23732           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23733 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23734         fi
23735 
23736 
23737     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23738     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23739       # Do we have a bin/java?
23740       if test ! -x "$BOOT_JDK/bin/java"; then
23741         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23742 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23743         BOOT_JDK_FOUND=no
23744       else
23745         # Do we have a bin/javac?
23746         if test ! -x "$BOOT_JDK/bin/javac"; then
23747           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23749           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23750 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23751           BOOT_JDK_FOUND=no
23752         else
23753           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23754           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23755             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23756 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23757             BOOT_JDK_FOUND=no
23758           else
23759             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23760             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23761 
23762             # Extra M4 quote needed to protect [] in grep expression.
23763             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23764             if test "x$FOUND_VERSION_78" = x; then
23765               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23767               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23768 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23769               BOOT_JDK_FOUND=no
23770             else
23771               # We're done! :-)
23772               BOOT_JDK_FOUND=yes
23773 
23774   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23775 
23776   # Input might be given as Windows format, start by converting to
23777   # unix format.
23778   path="$BOOT_JDK"
23779   new_path=`$CYGPATH -u "$path"`
23780 
23781   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23782   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23783   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23784   # "foo.exe" is OK but "foo" is an error.
23785   #
23786   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23787   # It is also a way to make sure we got the proper file name for the real test later on.
23788   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23789   if test "x$test_shortpath" = x; then
23790     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23791 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23792     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23793   fi
23794 
23795   # Call helper function which possibly converts this using DOS-style short mode.
23796   # If so, the updated path is stored in $new_path.
23797 
23798   input_path="$new_path"
23799   # Check if we need to convert this using DOS-style short mode. If the path
23800   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23801   # take no chances and rewrite it.
23802   # Note: m4 eats our [], so we need to use [ and ] instead.
23803   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23804   if test "x$has_forbidden_chars" != x; then
23805     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23806     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23807     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23808     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23809       # Going to short mode and back again did indeed matter. Since short mode is
23810       # case insensitive, let's make it lowercase to improve readability.
23811       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23812       # Now convert it back to Unix-style (cygpath)
23813       input_path=`$CYGPATH -u "$shortmode_path"`
23814       new_path="$input_path"
23815     fi
23816   fi
23817 
23818   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23819   if test "x$test_cygdrive_prefix" = x; then
23820     # As a simple fix, exclude /usr/bin since it's not a real path.
23821     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23822       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23823       # a path prefixed by /cygdrive for fixpath to work.
23824       new_path="$CYGWIN_ROOT_PATH$input_path"
23825     fi
23826   fi
23827 
23828 
23829   if test "x$path" != "x$new_path"; then
23830     BOOT_JDK="$new_path"
23831     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23832 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23833   fi
23834 
23835   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23836 
23837   path="$BOOT_JDK"
23838   has_colon=`$ECHO $path | $GREP ^.:`
23839   new_path="$path"
23840   if test "x$has_colon" = x; then
23841     # Not in mixed or Windows style, start by that.
23842     new_path=`cmd //c echo $path`
23843   fi
23844 
23845 
23846   input_path="$new_path"
23847   # Check if we need to convert this using DOS-style short mode. If the path
23848   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23849   # take no chances and rewrite it.
23850   # Note: m4 eats our [], so we need to use [ and ] instead.
23851   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23852   if test "x$has_forbidden_chars" != x; then
23853     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23854     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23855   fi
23856 
23857 
23858   windows_path="$new_path"
23859   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23860     unix_path=`$CYGPATH -u "$windows_path"`
23861     new_path="$unix_path"
23862   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23863     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23864     new_path="$unix_path"
23865   fi
23866 
23867   if test "x$path" != "x$new_path"; then
23868     BOOT_JDK="$new_path"
23869     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23870 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23871   fi
23872 
23873   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23874   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23875 
23876   else
23877     # We're on a posix platform. Hooray! :)
23878     path="$BOOT_JDK"
23879     has_space=`$ECHO "$path" | $GREP " "`
23880     if test "x$has_space" != x; then
23881       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23882 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23883       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23884     fi
23885 
23886     # Use eval to expand a potential ~
23887     eval path="$path"
23888     if test ! -f "$path" && test ! -d "$path"; then
23889       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23890     fi
23891 
23892     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23893   fi
23894 
23895               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23896 $as_echo_n "checking for Boot JDK... " >&6; }
23897               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23898 $as_echo "$BOOT_JDK" >&6; }
23899               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23900 $as_echo_n "checking Boot JDK version... " >&6; }
23901               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23902               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23903 $as_echo "$BOOT_JDK_VERSION" >&6; }
23904             fi # end check jdk version
23905           fi # end check rt.jar
23906         fi # end check javac
23907       fi # end check java
23908     fi # end check boot jdk found
23909   fi
23910 
23911     done
23912   fi
23913 
23914 
23915     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23916     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23917       # Do we have a bin/java?
23918       if test ! -x "$BOOT_JDK/bin/java"; then
23919         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23920 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23921         BOOT_JDK_FOUND=no
23922       else
23923         # Do we have a bin/javac?
23924         if test ! -x "$BOOT_JDK/bin/javac"; then
23925           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23926 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23927           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23928 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23929           BOOT_JDK_FOUND=no
23930         else
23931           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23932           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23933             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23934 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23935             BOOT_JDK_FOUND=no
23936           else
23937             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23938             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23939 
23940             # Extra M4 quote needed to protect [] in grep expression.
23941             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23942             if test "x$FOUND_VERSION_78" = x; then
23943               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23944 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23945               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23946 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23947               BOOT_JDK_FOUND=no
23948             else
23949               # We're done! :-)
23950               BOOT_JDK_FOUND=yes
23951 
23952   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23953 
23954   # Input might be given as Windows format, start by converting to
23955   # unix format.
23956   path="$BOOT_JDK"
23957   new_path=`$CYGPATH -u "$path"`
23958 
23959   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23960   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23961   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23962   # "foo.exe" is OK but "foo" is an error.
23963   #
23964   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23965   # It is also a way to make sure we got the proper file name for the real test later on.
23966   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23967   if test "x$test_shortpath" = x; then
23968     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23969 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23970     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23971   fi
23972 
23973   # Call helper function which possibly converts this using DOS-style short mode.
23974   # If so, the updated path is stored in $new_path.
23975 
23976   input_path="$new_path"
23977   # Check if we need to convert this using DOS-style short mode. If the path
23978   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23979   # take no chances and rewrite it.
23980   # Note: m4 eats our [], so we need to use [ and ] instead.
23981   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23982   if test "x$has_forbidden_chars" != x; then
23983     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23984     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23985     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23986     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23987       # Going to short mode and back again did indeed matter. Since short mode is
23988       # case insensitive, let's make it lowercase to improve readability.
23989       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23990       # Now convert it back to Unix-style (cygpath)
23991       input_path=`$CYGPATH -u "$shortmode_path"`
23992       new_path="$input_path"
23993     fi
23994   fi
23995 
23996   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23997   if test "x$test_cygdrive_prefix" = x; then
23998     # As a simple fix, exclude /usr/bin since it's not a real path.
23999     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24000       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24001       # a path prefixed by /cygdrive for fixpath to work.
24002       new_path="$CYGWIN_ROOT_PATH$input_path"
24003     fi
24004   fi
24005 
24006 
24007   if test "x$path" != "x$new_path"; then
24008     BOOT_JDK="$new_path"
24009     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24010 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24011   fi
24012 
24013   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24014 
24015   path="$BOOT_JDK"
24016   has_colon=`$ECHO $path | $GREP ^.:`
24017   new_path="$path"
24018   if test "x$has_colon" = x; then
24019     # Not in mixed or Windows style, start by that.
24020     new_path=`cmd //c echo $path`
24021   fi
24022 
24023 
24024   input_path="$new_path"
24025   # Check if we need to convert this using DOS-style short mode. If the path
24026   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24027   # take no chances and rewrite it.
24028   # Note: m4 eats our [], so we need to use [ and ] instead.
24029   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24030   if test "x$has_forbidden_chars" != x; then
24031     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24032     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24033   fi
24034 
24035 
24036   windows_path="$new_path"
24037   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24038     unix_path=`$CYGPATH -u "$windows_path"`
24039     new_path="$unix_path"
24040   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24041     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24042     new_path="$unix_path"
24043   fi
24044 
24045   if test "x$path" != "x$new_path"; then
24046     BOOT_JDK="$new_path"
24047     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24048 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24049   fi
24050 
24051   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24052   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24053 
24054   else
24055     # We're on a posix platform. Hooray! :)
24056     path="$BOOT_JDK"
24057     has_space=`$ECHO "$path" | $GREP " "`
24058     if test "x$has_space" != x; then
24059       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24060 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24061       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24062     fi
24063 
24064     # Use eval to expand a potential ~
24065     eval path="$path"
24066     if test ! -f "$path" && test ! -d "$path"; then
24067       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24068     fi
24069 
24070     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24071   fi
24072 
24073               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24074 $as_echo_n "checking for Boot JDK... " >&6; }
24075               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24076 $as_echo "$BOOT_JDK" >&6; }
24077               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24078 $as_echo_n "checking Boot JDK version... " >&6; }
24079               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24080               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24081 $as_echo "$BOOT_JDK_VERSION" >&6; }
24082             fi # end check jdk version
24083           fi # end check rt.jar
24084         fi # end check javac
24085       fi # end check java
24086     fi # end check boot jdk found
24087   fi
24088 
24089   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24090 
24091   if test "x$BOOT_JDK_FOUND" = xno; then
24092     # Now execute the test
24093 
24094   BOOT_JDK_PREFIX="/usr/lib/jvm"
24095   BOOT_JDK_SUFFIX=""
24096   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24097   if test "x$ALL_JDKS_FOUND" != x; then
24098     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24099 
24100   if test "x$BOOT_JDK_FOUND" = xno; then
24101     # Now execute the test
24102 
24103         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24104         if test -d "$BOOT_JDK"; then
24105           BOOT_JDK_FOUND=maybe
24106           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24107 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24108         fi
24109 
24110 
24111     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24112     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24113       # Do we have a bin/java?
24114       if test ! -x "$BOOT_JDK/bin/java"; then
24115         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24116 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24117         BOOT_JDK_FOUND=no
24118       else
24119         # Do we have a bin/javac?
24120         if test ! -x "$BOOT_JDK/bin/javac"; then
24121           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24123           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24124 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24125           BOOT_JDK_FOUND=no
24126         else
24127           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24128           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24129             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24130 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24131             BOOT_JDK_FOUND=no
24132           else
24133             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24134             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24135 
24136             # Extra M4 quote needed to protect [] in grep expression.
24137             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24138             if test "x$FOUND_VERSION_78" = x; then
24139               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24140 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24141               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24142 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24143               BOOT_JDK_FOUND=no
24144             else
24145               # We're done! :-)
24146               BOOT_JDK_FOUND=yes
24147 
24148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24149 
24150   # Input might be given as Windows format, start by converting to
24151   # unix format.
24152   path="$BOOT_JDK"
24153   new_path=`$CYGPATH -u "$path"`
24154 
24155   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24156   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24157   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24158   # "foo.exe" is OK but "foo" is an error.
24159   #
24160   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24161   # It is also a way to make sure we got the proper file name for the real test later on.
24162   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24163   if test "x$test_shortpath" = x; then
24164     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24165 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24166     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24167   fi
24168 
24169   # Call helper function which possibly converts this using DOS-style short mode.
24170   # If so, the updated path is stored in $new_path.
24171 
24172   input_path="$new_path"
24173   # Check if we need to convert this using DOS-style short mode. If the path
24174   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24175   # take no chances and rewrite it.
24176   # Note: m4 eats our [], so we need to use [ and ] instead.
24177   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24178   if test "x$has_forbidden_chars" != x; then
24179     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24180     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24181     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24182     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24183       # Going to short mode and back again did indeed matter. Since short mode is
24184       # case insensitive, let's make it lowercase to improve readability.
24185       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24186       # Now convert it back to Unix-style (cygpath)
24187       input_path=`$CYGPATH -u "$shortmode_path"`
24188       new_path="$input_path"
24189     fi
24190   fi
24191 
24192   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24193   if test "x$test_cygdrive_prefix" = x; then
24194     # As a simple fix, exclude /usr/bin since it's not a real path.
24195     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24196       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24197       # a path prefixed by /cygdrive for fixpath to work.
24198       new_path="$CYGWIN_ROOT_PATH$input_path"
24199     fi
24200   fi
24201 
24202 
24203   if test "x$path" != "x$new_path"; then
24204     BOOT_JDK="$new_path"
24205     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24206 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24207   fi
24208 
24209   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24210 
24211   path="$BOOT_JDK"
24212   has_colon=`$ECHO $path | $GREP ^.:`
24213   new_path="$path"
24214   if test "x$has_colon" = x; then
24215     # Not in mixed or Windows style, start by that.
24216     new_path=`cmd //c echo $path`
24217   fi
24218 
24219 
24220   input_path="$new_path"
24221   # Check if we need to convert this using DOS-style short mode. If the path
24222   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24223   # take no chances and rewrite it.
24224   # Note: m4 eats our [], so we need to use [ and ] instead.
24225   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24226   if test "x$has_forbidden_chars" != x; then
24227     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24228     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24229   fi
24230 
24231 
24232   windows_path="$new_path"
24233   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24234     unix_path=`$CYGPATH -u "$windows_path"`
24235     new_path="$unix_path"
24236   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24237     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24238     new_path="$unix_path"
24239   fi
24240 
24241   if test "x$path" != "x$new_path"; then
24242     BOOT_JDK="$new_path"
24243     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24244 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24245   fi
24246 
24247   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24248   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24249 
24250   else
24251     # We're on a posix platform. Hooray! :)
24252     path="$BOOT_JDK"
24253     has_space=`$ECHO "$path" | $GREP " "`
24254     if test "x$has_space" != x; then
24255       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24256 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24257       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24258     fi
24259 
24260     # Use eval to expand a potential ~
24261     eval path="$path"
24262     if test ! -f "$path" && test ! -d "$path"; then
24263       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24264     fi
24265 
24266     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24267   fi
24268 
24269               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24270 $as_echo_n "checking for Boot JDK... " >&6; }
24271               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24272 $as_echo "$BOOT_JDK" >&6; }
24273               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24274 $as_echo_n "checking Boot JDK version... " >&6; }
24275               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24276               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24277 $as_echo "$BOOT_JDK_VERSION" >&6; }
24278             fi # end check jdk version
24279           fi # end check rt.jar
24280         fi # end check javac
24281       fi # end check java
24282     fi # end check boot jdk found
24283   fi
24284 
24285     done
24286   fi
24287 
24288 
24289     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24290     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24291       # Do we have a bin/java?
24292       if test ! -x "$BOOT_JDK/bin/java"; then
24293         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24295         BOOT_JDK_FOUND=no
24296       else
24297         # Do we have a bin/javac?
24298         if test ! -x "$BOOT_JDK/bin/javac"; then
24299           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24301           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24302 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24303           BOOT_JDK_FOUND=no
24304         else
24305           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24306           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24307             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24309             BOOT_JDK_FOUND=no
24310           else
24311             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24312             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24313 
24314             # Extra M4 quote needed to protect [] in grep expression.
24315             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24316             if test "x$FOUND_VERSION_78" = x; then
24317               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24318 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24319               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24320 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24321               BOOT_JDK_FOUND=no
24322             else
24323               # We're done! :-)
24324               BOOT_JDK_FOUND=yes
24325 
24326   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24327 
24328   # Input might be given as Windows format, start by converting to
24329   # unix format.
24330   path="$BOOT_JDK"
24331   new_path=`$CYGPATH -u "$path"`
24332 
24333   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24334   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24335   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24336   # "foo.exe" is OK but "foo" is an error.
24337   #
24338   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24339   # It is also a way to make sure we got the proper file name for the real test later on.
24340   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24341   if test "x$test_shortpath" = x; then
24342     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24343 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24344     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24345   fi
24346 
24347   # Call helper function which possibly converts this using DOS-style short mode.
24348   # If so, the updated path is stored in $new_path.
24349 
24350   input_path="$new_path"
24351   # Check if we need to convert this using DOS-style short mode. If the path
24352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24353   # take no chances and rewrite it.
24354   # Note: m4 eats our [], so we need to use [ and ] instead.
24355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24356   if test "x$has_forbidden_chars" != x; then
24357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24358     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24359     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24360     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24361       # Going to short mode and back again did indeed matter. Since short mode is
24362       # case insensitive, let's make it lowercase to improve readability.
24363       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24364       # Now convert it back to Unix-style (cygpath)
24365       input_path=`$CYGPATH -u "$shortmode_path"`
24366       new_path="$input_path"
24367     fi
24368   fi
24369 
24370   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24371   if test "x$test_cygdrive_prefix" = x; then
24372     # As a simple fix, exclude /usr/bin since it's not a real path.
24373     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24374       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24375       # a path prefixed by /cygdrive for fixpath to work.
24376       new_path="$CYGWIN_ROOT_PATH$input_path"
24377     fi
24378   fi
24379 
24380 
24381   if test "x$path" != "x$new_path"; then
24382     BOOT_JDK="$new_path"
24383     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24385   fi
24386 
24387   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24388 
24389   path="$BOOT_JDK"
24390   has_colon=`$ECHO $path | $GREP ^.:`
24391   new_path="$path"
24392   if test "x$has_colon" = x; then
24393     # Not in mixed or Windows style, start by that.
24394     new_path=`cmd //c echo $path`
24395   fi
24396 
24397 
24398   input_path="$new_path"
24399   # Check if we need to convert this using DOS-style short mode. If the path
24400   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24401   # take no chances and rewrite it.
24402   # Note: m4 eats our [], so we need to use [ and ] instead.
24403   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24404   if test "x$has_forbidden_chars" != x; then
24405     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24406     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24407   fi
24408 
24409 
24410   windows_path="$new_path"
24411   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24412     unix_path=`$CYGPATH -u "$windows_path"`
24413     new_path="$unix_path"
24414   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24415     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24416     new_path="$unix_path"
24417   fi
24418 
24419   if test "x$path" != "x$new_path"; then
24420     BOOT_JDK="$new_path"
24421     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24422 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24423   fi
24424 
24425   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24426   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24427 
24428   else
24429     # We're on a posix platform. Hooray! :)
24430     path="$BOOT_JDK"
24431     has_space=`$ECHO "$path" | $GREP " "`
24432     if test "x$has_space" != x; then
24433       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24434 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24435       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24436     fi
24437 
24438     # Use eval to expand a potential ~
24439     eval path="$path"
24440     if test ! -f "$path" && test ! -d "$path"; then
24441       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24442     fi
24443 
24444     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24445   fi
24446 
24447               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24448 $as_echo_n "checking for Boot JDK... " >&6; }
24449               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24450 $as_echo "$BOOT_JDK" >&6; }
24451               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24452 $as_echo_n "checking Boot JDK version... " >&6; }
24453               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24454               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24455 $as_echo "$BOOT_JDK_VERSION" >&6; }
24456             fi # end check jdk version
24457           fi # end check rt.jar
24458         fi # end check javac
24459       fi # end check java
24460     fi # end check boot jdk found
24461   fi
24462 
24463   fi
24464 
24465 
24466     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24467     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24468       # Do we have a bin/java?
24469       if test ! -x "$BOOT_JDK/bin/java"; then
24470         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24472         BOOT_JDK_FOUND=no
24473       else
24474         # Do we have a bin/javac?
24475         if test ! -x "$BOOT_JDK/bin/javac"; then
24476           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24478           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24479 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24480           BOOT_JDK_FOUND=no
24481         else
24482           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24483           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24484             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24485 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24486             BOOT_JDK_FOUND=no
24487           else
24488             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24489             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24490 
24491             # Extra M4 quote needed to protect [] in grep expression.
24492             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24493             if test "x$FOUND_VERSION_78" = x; then
24494               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24495 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24496               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24497 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24498               BOOT_JDK_FOUND=no
24499             else
24500               # We're done! :-)
24501               BOOT_JDK_FOUND=yes
24502 
24503   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24504 
24505   # Input might be given as Windows format, start by converting to
24506   # unix format.
24507   path="$BOOT_JDK"
24508   new_path=`$CYGPATH -u "$path"`
24509 
24510   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24511   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24512   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24513   # "foo.exe" is OK but "foo" is an error.
24514   #
24515   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24516   # It is also a way to make sure we got the proper file name for the real test later on.
24517   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24518   if test "x$test_shortpath" = x; then
24519     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24520 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24521     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24522   fi
24523 
24524   # Call helper function which possibly converts this using DOS-style short mode.
24525   # If so, the updated path is stored in $new_path.
24526 
24527   input_path="$new_path"
24528   # Check if we need to convert this using DOS-style short mode. If the path
24529   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24530   # take no chances and rewrite it.
24531   # Note: m4 eats our [], so we need to use [ and ] instead.
24532   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24533   if test "x$has_forbidden_chars" != x; then
24534     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24535     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24536     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24537     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24538       # Going to short mode and back again did indeed matter. Since short mode is
24539       # case insensitive, let's make it lowercase to improve readability.
24540       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24541       # Now convert it back to Unix-style (cygpath)
24542       input_path=`$CYGPATH -u "$shortmode_path"`
24543       new_path="$input_path"
24544     fi
24545   fi
24546 
24547   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24548   if test "x$test_cygdrive_prefix" = x; then
24549     # As a simple fix, exclude /usr/bin since it's not a real path.
24550     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24551       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24552       # a path prefixed by /cygdrive for fixpath to work.
24553       new_path="$CYGWIN_ROOT_PATH$input_path"
24554     fi
24555   fi
24556 
24557 
24558   if test "x$path" != "x$new_path"; then
24559     BOOT_JDK="$new_path"
24560     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24562   fi
24563 
24564   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24565 
24566   path="$BOOT_JDK"
24567   has_colon=`$ECHO $path | $GREP ^.:`
24568   new_path="$path"
24569   if test "x$has_colon" = x; then
24570     # Not in mixed or Windows style, start by that.
24571     new_path=`cmd //c echo $path`
24572   fi
24573 
24574 
24575   input_path="$new_path"
24576   # Check if we need to convert this using DOS-style short mode. If the path
24577   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24578   # take no chances and rewrite it.
24579   # Note: m4 eats our [], so we need to use [ and ] instead.
24580   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24581   if test "x$has_forbidden_chars" != x; then
24582     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24583     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24584   fi
24585 
24586 
24587   windows_path="$new_path"
24588   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24589     unix_path=`$CYGPATH -u "$windows_path"`
24590     new_path="$unix_path"
24591   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24592     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24593     new_path="$unix_path"
24594   fi
24595 
24596   if test "x$path" != "x$new_path"; then
24597     BOOT_JDK="$new_path"
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24599 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24600   fi
24601 
24602   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24603   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24604 
24605   else
24606     # We're on a posix platform. Hooray! :)
24607     path="$BOOT_JDK"
24608     has_space=`$ECHO "$path" | $GREP " "`
24609     if test "x$has_space" != x; then
24610       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24611 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24612       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24613     fi
24614 
24615     # Use eval to expand a potential ~
24616     eval path="$path"
24617     if test ! -f "$path" && test ! -d "$path"; then
24618       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24619     fi
24620 
24621     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24622   fi
24623 
24624               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24625 $as_echo_n "checking for Boot JDK... " >&6; }
24626               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24627 $as_echo "$BOOT_JDK" >&6; }
24628               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24629 $as_echo_n "checking Boot JDK version... " >&6; }
24630               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24631               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24632 $as_echo "$BOOT_JDK_VERSION" >&6; }
24633             fi # end check jdk version
24634           fi # end check rt.jar
24635         fi # end check javac
24636       fi # end check java
24637     fi # end check boot jdk found
24638   fi
24639 
24640 
24641   # If we haven't found anything yet, we've truly lost. Give up.
24642   if test "x$BOOT_JDK_FOUND" = xno; then
24643 
24644   # Print a helpful message on how to acquire the necessary build dependency.
24645   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24646   MISSING_DEPENDENCY=openjdk
24647 
24648   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24649     cygwin_help $MISSING_DEPENDENCY
24650   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24651     msys_help $MISSING_DEPENDENCY
24652   else
24653     PKGHANDLER_COMMAND=
24654 
24655     case $PKGHANDLER in
24656       apt-get)
24657         apt_help     $MISSING_DEPENDENCY ;;
24658       yum)
24659         yum_help     $MISSING_DEPENDENCY ;;
24660       port)
24661         port_help    $MISSING_DEPENDENCY ;;
24662       pkgutil)
24663         pkgutil_help $MISSING_DEPENDENCY ;;
24664       pkgadd)
24665         pkgadd_help  $MISSING_DEPENDENCY ;;
24666     esac
24667 
24668     if test "x$PKGHANDLER_COMMAND" != x; then
24669       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24670     fi
24671   fi
24672 
24673     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24674 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24675     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24676 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24677     as_fn_error $? "Cannot continue" "$LINENO" 5
24678   fi
24679 
24680   # Setup proper paths for what we found
24681   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24682   if test ! -f "$BOOT_RTJAR"; then
24683     # On MacOSX it is called classes.jar
24684     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24685     if test -f "$BOOT_RTJAR"; then
24686       # Remove the ..
24687       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24688     fi
24689   fi
24690   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24691   BOOT_JDK="$BOOT_JDK"
24692 
24693 
24694 
24695 
24696   # Setup tools from the Boot JDK.
24697 
24698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24699 $as_echo_n "checking for java in Boot JDK... " >&6; }
24700   JAVA=$BOOT_JDK/bin/java
24701   if test ! -x $JAVA; then
24702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24703 $as_echo "not found" >&6; }
24704     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24705 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24706     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24707   fi
24708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24709 $as_echo "ok" >&6; }
24710 
24711 
24712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24713 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24714   JAVAC=$BOOT_JDK/bin/javac
24715   if test ! -x $JAVAC; then
24716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24717 $as_echo "not found" >&6; }
24718     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24719 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24720     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24721   fi
24722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24723 $as_echo "ok" >&6; }
24724 
24725 
24726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24727 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24728   JAVAH=$BOOT_JDK/bin/javah
24729   if test ! -x $JAVAH; then
24730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24731 $as_echo "not found" >&6; }
24732     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24733 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24734     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24735   fi
24736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24737 $as_echo "ok" >&6; }
24738 
24739 
24740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24741 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24742   JAVAP=$BOOT_JDK/bin/javap
24743   if test ! -x $JAVAP; then
24744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24745 $as_echo "not found" >&6; }
24746     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24747 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24748     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24749   fi
24750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24751 $as_echo "ok" >&6; }
24752 
24753 
24754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24755 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24756   JAR=$BOOT_JDK/bin/jar
24757   if test ! -x $JAR; then
24758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24759 $as_echo "not found" >&6; }
24760     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24761 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24762     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24763   fi
24764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24765 $as_echo "ok" >&6; }
24766 
24767 
24768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24769 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24770   RMIC=$BOOT_JDK/bin/rmic
24771   if test ! -x $RMIC; then
24772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24773 $as_echo "not found" >&6; }
24774     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24775 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24776     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24777   fi
24778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24779 $as_echo "ok" >&6; }
24780 
24781 
24782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24783 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24784   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24785   if test ! -x $NATIVE2ASCII; then
24786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24787 $as_echo "not found" >&6; }
24788     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24789 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24790     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24791   fi
24792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24793 $as_echo "ok" >&6; }
24794 
24795 
24796   # Finally, set some other options...
24797 
24798   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24799   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24800 
24801 
24802 
24803   # Check if the boot jdk is 32 or 64 bit
24804   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24805     BOOT_JDK_BITS="64"
24806   else
24807     BOOT_JDK_BITS="32"
24808   fi
24809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24810 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24812 $as_echo "$BOOT_JDK_BITS" >&6; }
24813 
24814 
24815 
24816   ##############################################################################
24817   #
24818   # Specify options for anything that is run with the Boot JDK.
24819   #
24820 
24821 # Check whether --with-boot-jdk-jvmargs was given.
24822 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24823   withval=$with_boot_jdk_jvmargs;
24824 fi
24825 
24826 
24827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24828 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24829 
24830   # Disable special log output when a debug build is used as Boot JDK...
24831 
24832   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24833   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24834   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24835   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24836   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24837   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24838     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOp